function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var o=[],i=0;ie.maxAttempts||e.includes(t)||(e.queue.push(t),0))});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e){var t=this;if(0===this.getAttempts(e))return this.push(e)[0];var n=this.updateAttempts(e);if(n>this.maxAttempts||this.includes(e))return!1;var r=P({attempt:n-1});return setTimeout(function(){t.queue.push(e),t.future=t.future.filter(function(t){return t.id!==e.id}),t.emit(T)},r),this.future.push(e),!0},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find(function(t){return t.id===e.id}))||Boolean(this.future.find(function(t){return t.id===e.id}))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(E),M=256,L=[];M--;)L[M]=(M+256).toString(16).substring(1);function U(){var e,t=0,n="";if(!N||M+16>256){for(N=Array(t=256);t--;)N[t]=256*Math.random()|0;t=M=0}for(;t<16;t++)e=N[M+t],n+=6==t?L[15&e|64]:8==t?L[63&e|128]:L[e],1&t&&t>1&&t<11&&(n+="-");return M++,n}var O=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var n,r,o,i=d(d({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete i.time;var s=null!==(o=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==o?o:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),d(d({},e),((n={})[s]=i,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),B=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return d(d({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t})},e}(),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.gauge=function(){},t.prototype.increment=function(){},t.prototype.flush=function(){},t.prototype.serialize=function(){return[]},t}(B),R=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},H=function(){function e(e,t,n,r){void 0===t&&(t=U()),void 0===n&&(n=new V),void 0===r&&(r=new O),this.attempts=0,this.event=e,this._id=t,this.logger=r,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new R({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return m(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}();function F(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),r=t[e.event.type];return void 0===r?Promise.resolve(e):function(){return p(this,void 0,void 0,function(){var n;return h(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,r.apply(t,[e])];case 1:return[2,o.sent()];case 2:return n=o.sent(),[2,Promise.reject(n)];case 3:return[2]}})})}().then(function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e}).catch(function(n){if(n instanceof R&&"middleware_cancellation"===n.type)throw n;return n instanceof R?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)})}function j(e,t){return F(e,t).then(function(t){if(t instanceof H)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}var z=function(e){function t(t){var n,r,o,i=e.call(this)||this;return i.criticalTasks=(o=0,{done:function(){return n},run:function(e){var t,i=e();return"object"==typeof(t=i)&&null!==t&&"then"in t&&"function"==typeof t.then&&(1==++o&&(n=new Promise(function(e){return r=e})),i.finally(function(){return 0==--o&&r()})),i}}),i.plugins=[],i.failedInitializations=[],i.flushing=!1,i.queue=t,i.queue.on(T,function(){i.scheduleFlush(0)}),i}return u(t,e),t.prototype.register=function(e,t,n){return p(this,void 0,void 0,function(){var r,o,i=this;return h(this,function(s){switch(s.label){case 0:return this.plugins.push(t),r=function(n){i.failedInitializations.push(t.name),i.emit("initialization_failure",t),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n}),i.plugins=i.plugins.filter(function(e){return e!==t})},"destination"!==t.type||"Segment.io"===t.name?[3,1]:(t.load(e,n).catch(r),[3,4]);case 1:return s.trys.push([1,3,,4]),[4,t.load(e,n)];case 2:return s.sent(),[3,4];case 3:return o=s.sent(),r(o),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(e,t,n){return p(this,void 0,void 0,function(){var r;return h(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:o.sent(),o.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return r=o.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(e){return p(this,void 0,void 0,function(){var t;return h(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},t.prototype.subscribeToDelivery=function(e){return p(this,void 0,void 0,function(){var t=this;return h(this,function(n){return[2,new Promise(function(n){var r=function(o,i){o.isSame(e)&&(t.off("flush",r),n(o))};t.on("flush",r)})]})})},t.prototype.dispatchSingle=function(e){return p(this,void 0,void 0,function(){var t=this;return h(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)})]})})},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},t.prototype.deliver=function(e){return p(this,void 0,void 0,function(){var t,n,r,o;return h(this,function(i){switch(i.label){case 0:return[4,this.criticalTasks.done()];case 1:i.sent(),t=Date.now(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=i.sent(),n=Date.now()-t,this.emit("delivery_success",e),e.stats.gauge("delivered",n),e.log("debug","Delivered",e.event),[2,e];case 4:throw r=i.sent(),e.log("error","Failed to deliver",o=r),this.emit("delivery_failure",e,o),e.stats.increment("delivery_failed"),r;case 5:return[2]}})})},t.prototype.enqueuRetry=function(e,t){return!(e instanceof R&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return p(this,void 0,void 0,function(){var e,t;return h(this,function(n){switch(n.label){case 0:if(0===this.queue.length)return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=n.sent(),this.emit("flush",e,!0),[3,4];case 3:return t=n.sent(),this.enqueuRetry(t,e)||(e.setFailedDelivery({reason:t}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t,n=this.plugins.filter(function(t){var n,r,o;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var i=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach(function(t){void 0!==e[t]&&(i=e[t])}),null!==(o=null!==(r=e[t.name])&&void 0!==r?r:i)&&void 0!==o?o:!1!==("Segment.io"===t.name||e.All)}),r=(t={},n.forEach(function(e){var n,r,o=e.type;void 0!==(r="string"!=typeof o?JSON.stringify(o):o)&&(t[r]=f(f([],null!==(n=t[r])&&void 0!==n?n:[],!0),[e],!1))}),t),o=r.before,i=r.enrichment,s=r.destination,a=r.after;return{before:void 0===o?[]:o,enrichment:void 0===i?[]:i,destinations:void 0===s?[]:s,after:void 0===a?[]:a}},t.prototype.flushOne=function(e){var t,n;return p(this,void 0,void 0,function(){var r,o,i,s,a,l,c,u,d,p,f,m,g;return h(this,function(h){switch(h.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),r=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),o=r.enrichment,i=0,s=r.before,h.label=1;case 1:return i32768?{success:!1,message:"Event exceeds maximum event size of 32 KB"}:this.sizeInBytes+t>491520?{success:!1,message:"Event has caused batch size to exceed 480 KB"}:(this.items.push(e),this.sizeInBytes+=t,{success:!0})}get length(){return this.items.length}calculateSize(e){return encodeURI(JSON.stringify(e.event)).split(/%..|i/).length}getEvents(){return this.items.map(({context:e})=>e.event)}getContexts(){return this.items.map(e=>e.context)}resolveEvents(){this.items.forEach(({resolver:e,context:t})=>e(t))}}var G=crypto;const K=e=>e instanceof CryptoKey,J=new TextEncoder,W=new TextDecoder,Y=e=>(e=>{let t=e;"string"==typeof t&&(t=J.encode(t));const n=[];for(let e=0;e2){const t=n.pop();e+=`one of type ${n.join(", ")}, or ${t}.`}else e+=2===n.length?`one of type ${n[0]} or ${n[1]}.`:`of type ${n[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}var ie=(e,...t)=>oe("Key must be ",e,...t);function se(e,t,...n){return oe(`Key for the ${e} algorithm must be `,t,...n)}var ae=e=>K(e);const le=["CryptoKey"],ce=(e,t,n=0)=>{0===n&&(t.unshift(t.length),t.unshift(6));const r=e.indexOf(t[0],n);if(-1===r)return!1;const o=e.subarray(r,r+t.length);return o.length===t.length&&(o.every((e,n)=>e===t[n])||ce(e,t,r+1))},ue=e=>{switch(!0){case ce(e,[42,134,72,206,61,3,1,7]):return"P-256";case ce(e,[43,129,4,0,34]):return"P-384";case ce(e,[43,129,4,0,35]):return"P-521";case ce(e,[43,101,110]):return"X25519";case ce(e,[43,101,111]):return"X448";case ce(e,[43,101,112]):return"Ed25519";case ce(e,[43,101,113]):return"Ed448";default:throw new X("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}};var de=e=>Math.floor(e.getTime()/1e3);const pe=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var he=e=>{const t=pe.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const n=parseFloat(t[2]);let r;switch(t[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":r=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":r=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":r=Math.round(3600*n);break;case"day":case"days":case"d":r=Math.round(86400*n);break;case"week":case"weeks":case"w":r=Math.round(604800*n);break;default:r=Math.round(31557600*n)}return"-"===t[1]||"ago"===t[4]?-r:r};class fe{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){if(!this._protectedHeader&&!this._unprotectedHeader)throw new $("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!(()=>{const e=[this._protectedHeader,this._unprotectedHeader].filter(Boolean);if(0===e.length||1===e.length)return!0;let t;for(const n of e){const e=Object.keys(n);if(t&&0!==t.size)for(const n of e){if(t.has(n))return!1;t.add(n)}else t=new Set(e)}return!0})())throw new $("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader},r=function(e,t,n,r,o){if(void 0!==o.crit&&void 0===r?.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!r||void 0===r.crit)return new Set;if(!Array.isArray(r.crit)||0===r.crit.length||r.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let i;i=void 0!==n?new Map([...Object.entries(n),...t.entries()]):t;for(const t of r.crit){if(!i.has(t))throw new X(`Extension Header Parameter "${t}" is not recognized`);if(void 0===o[t])throw new e(`Extension Header Parameter "${t}" is missing`);if(i.get(t)&&void 0===r[t])throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}return new Set(r.crit)}($,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n);let o=!0;if(r.has("b64")&&(o=this._protectedHeader.b64,"boolean"!=typeof o))throw new $('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:i}=n;if("string"!=typeof i||!i)throw new $('JWS "alg" (Algorithm) Header Parameter missing or invalid');((e,t)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?((e,t)=>{if(!(t instanceof Uint8Array)){if(!ae(t))throw new TypeError(se(e,t,...le,"Uint8Array"));if("secret"!==t.type)throw new TypeError(`${le.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}})(e,t):((e,t)=>{if(!ae(t))throw new TypeError(se(e,t,...le));if("secret"===t.type)throw new TypeError(`${le.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("public"===t.type)throw new TypeError(`${le.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`)})(e,t)})(i,e);let s,a=this._payload;o&&(a=J.encode(Y(a))),s=J.encode(this._protectedHeader?Y(JSON.stringify(this._protectedHeader)):"");const l=function(...e){const t=e.reduce((e,{length:t})=>e+t,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(s,J.encode("."),a),c=await(async(e,t,n)=>{const r=await function(e,t,n){if(K(t))return function(e,t,...n){switch(t){case"HS256":case"HS384":case"HS512":{if(!ne(e.algorithm,"HMAC"))throw te("HMAC");const n=parseInt(t.slice(2),10);if(re(e.algorithm.hash)!==n)throw te(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!ne(e.algorithm,"RSASSA-PKCS1-v1_5"))throw te("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(re(e.algorithm.hash)!==n)throw te(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!ne(e.algorithm,"RSA-PSS"))throw te("RSA-PSS");const n=parseInt(t.slice(2),10);if(re(e.algorithm.hash)!==n)throw te(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw te("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!ne(e.algorithm,"ECDSA"))throw te("ECDSA");const n=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(t);if(e.algorithm.namedCurve!==n)throw te(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}!function(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();e+=`one of ${t.join(", ")}, or ${n}.`}else e+=2===t.length?`one of ${t[0]} or ${t[1]}.`:`${t[0]}.`;throw new TypeError(e)}}(e,n)}(t,e,n),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(ie(t,...le));return G.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError(ie(t,...le,"Uint8Array"))}(e,t,"sign");((e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:n}=t.algorithm;if("number"!=typeof n||n<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}})(e,r);const o=await G.subtle.sign(function(e,t){const n=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:n,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:n,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:n,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:n,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new X(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}(e,r.algorithm),r,n);return new Uint8Array(o)})(i,e,l),u={signature:Y(c),payload:""};return o&&(u.payload=W.decode(a)),this._unprotectedHeader&&(u.header=this._unprotectedHeader),this._protectedHeader&&(u.protected=W.decode(s)),u}}class me{constructor(e){this._flattened=new fe(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){const n=await this._flattened.sign(e,t);if(void 0===n.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function ge(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}class ve{constructor(e={}){if(!function(e){if("object"!=typeof(t=e)||null===t||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t;if(null===Object.getPrototypeOf(e))return!0;let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return this._payload="number"==typeof e?{...this._payload,nbf:ge("setNotBefore",e)}:e instanceof Date?{...this._payload,nbf:ge("setNotBefore",de(e))}:{...this._payload,nbf:de(new Date)+he(e)},this}setExpirationTime(e){return this._payload="number"==typeof e?{...this._payload,exp:ge("setExpirationTime",e)}:e instanceof Date?{...this._payload,exp:ge("setExpirationTime",de(e))}:{...this._payload,exp:de(new Date)+he(e)},this}setIssuedAt(e){return this._payload=void 0===e?{...this._payload,iat:de(new Date)}:e instanceof Date?{...this._payload,iat:ge("setIssuedAt",de(e))}:"string"==typeof e?{...this._payload,iat:ge("setIssuedAt",de(new Date)+he(e))}:{...this._payload,iat:ge("setIssuedAt",e)},this}}class ye extends ve{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){const n=new me(J.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new ee("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class _e{alg="RS256";grantType="client_credentials";clientAssertionType="urn:ietf:params:oauth:client-assertion-type:jwt-bearer";clientId;clientKey;keyId;scope;authServer;httpClient;maxRetries;clockSkewInSeconds=0;accessToken;tokenEmitter=new E;retryCount;pollerTimer;constructor(e){this.keyId=e.keyId,this.clientId=e.clientId,this.clientKey=e.clientKey,this.authServer=e.authServer??"https://oauth2.segment.io",this.scope=e.scope??"tracking_api:write",this.httpClient=e.httpClient,this.maxRetries=e.maxRetries,this.tokenEmitter.on("access_token",e=>{"token"in e&&(this.accessToken=e.token)}),this.retryCount=0}stopPoller(){clearTimeout(this.pollerTimer)}async pollerLoop(){let e,t=25;try{e=await this.requestAccessToken()}catch(e){return this.handleTransientError({error:e})}if(!(e=>"function"==typeof e.text)(e))return this.handleInvalidCustomResponse();const n=function(e){const t={};if(!e)return{};if("object"==typeof(n=e)&&null!==n&&"entries"in Object(n)&&"function"==typeof Object(n).entries){for(const[n,r]of e.entries())t[n.toLowerCase()]=r;return t}var n;for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}(e.headers);if(n.date&&this.updateClockSkew(Date.parse(n.date)),200!==e.status)return 429===e.status?await this.handleRateLimited(e,n,t):[400,401,415].includes(e.status)?this.handleUnrecoverableErrors(e):this.handleTransientError({error:new Error(`[${e.status}] ${e.statusText}`)});try{const n=await e.text(),o=JSON.parse(n);if(r=o,!Boolean(r&&"object"==typeof r&&"access_token"in r&&"expires_in"in r&&"string"==typeof r.access_token&&"number"==typeof r.expires_in))throw new Error("Response did not contain a valid access_token and expires_in");return o.expires_at=Math.round(Date.now()/1e3)+o.expires_in,this.tokenEmitter.emit("access_token",{token:o}),this.retryCount=0,t=o.expires_in/2*1e3,this.queueNextPoll(t)}catch(e){return this.handleTransientError({error:e,forceEmitError:!0})}var r}handleTransientError({error:e,forceEmitError:t}){this.incrementRetries({error:e,forceEmitError:t});const n=P({attempt:this.retryCount,minTimeout:25,maxTimeout:1e3});this.queueNextPoll(n)}handleInvalidCustomResponse(){this.tokenEmitter.emit("access_token",{error:new Error("HTTPClient does not implement response.text method")})}async handleRateLimited(e,t,n){if(this.incrementRetries({error:new Error(`[${e.status}] ${e.statusText}`)}),t["x-ratelimit-reset"]){const e=parseInt(t["x-ratelimit-reset"],10);n=isFinite(e)?e-Date.now()+1e3*this.clockSkewInSeconds:5e3,await I(n),n=0}this.queueNextPoll(n)}handleUnrecoverableErrors(e){this.retryCount=0,this.tokenEmitter.emit("access_token",{error:new Error(`[${e.status}] ${e.statusText}`)}),this.stopPoller()}updateClockSkew(e){this.clockSkewInSeconds=(Date.now()-e)/1e3}incrementRetries({error:e,forceEmitError:t}){this.retryCount++,(t||this.retryCount%this.maxRetries==0)&&(this.retryCount=0,this.tokenEmitter.emit("access_token",{error:e}))}queueNextPoll(e){this.pollerTimer=setTimeout(()=>this.pollerLoop(),e),this.pollerTimer.unref&&this.pollerTimer.unref()}async requestAccessToken(){const e=U(),t=Math.round(Date.now()/1e3)-this.clockSkewInSeconds,n={iss:this.clientId,sub:this.clientId,aud:this.authServer,iat:t-5,exp:t+55,jti:e},r=await async function(e){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw new TypeError('"pkcs8" must be PKCS#8 formatted string');return(async(e,t,n,r)=>{let o,i;const s=new Uint8Array(atob(n.replace(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"")).split("").map(e=>e.charCodeAt(0)));switch(r){case"PS256":case"PS384":case"PS512":o={name:"RSA-PSS",hash:`SHA-${r.slice(-3)}`},i=["sign"];break;case"RS256":case"RS384":case"RS512":o={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${r.slice(-3)}`},i=["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":o={name:"RSA-OAEP",hash:`SHA-${parseInt(r.slice(-3),10)||1}`},i=["decrypt","unwrapKey"];break;case"ES256":o={name:"ECDSA",namedCurve:"P-256"},i=["sign"];break;case"ES384":o={name:"ECDSA",namedCurve:"P-384"},i=["sign"];break;case"ES512":o={name:"ECDSA",namedCurve:"P-521"},i=["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{const e=ue(s);o=e.startsWith("P-")?{name:"ECDH",namedCurve:e}:{name:e},i=["deriveBits"];break}case"EdDSA":o={name:ue(s)},i=["sign"];break;default:throw new X('Invalid or unsupported "alg" (Algorithm) value')}return G.subtle.importKey("pkcs8",s,o,!1,i)})(0,0,e,"RS256")}(this.clientKey),o=await new ye(n).setProtectedHeader({alg:this.alg,kid:this.keyId,typ:"JWT"}).sign(r);return this.httpClient.makeRequest({method:"POST",url:`${this.authServer}/token`,body:`grant_type=${this.grantType}&client_assertion_type=${this.clientAssertionType}&client_assertion=${o}&scope=${this.scope}`,headers:{"Content-Type":"application/x-www-form-urlencoded"},httpRequestTimeout:1e4})}async getAccessToken(){return this.isValidToken(this.accessToken)?this.accessToken:(this.stopPoller(),this.pollerLoop().catch(()=>{}),new Promise((e,t)=>{this.tokenEmitter.once("access_token",n=>{"token"in n?e(n.token):t(n.error)})}))}clearToken(){this.accessToken=void 0}isValidToken(e){return null!=e&&e.expires_insetTimeout(t,e))}function be(){}class Ce{pendingFlushTimeout;_batch;_flushInterval;_flushAt;_maxRetries;_url;_flushPendingItemsCount;_httpRequestTimeout;_emitter;_disable;_httpClient;_writeKey;_tokenManager;constructor({host:e,path:t,maxRetries:n,flushAt:r,flushInterval:o,writeKey:i,httpRequestTimeout:s,httpClient:a,disable:l,oauthSettings:c},u){this._emitter=u,this._maxRetries=n,this._flushAt=Math.max(r,1),this._flushInterval=o,this._url=((e,t)=>new URL(t||"",e).href.replace(/\/$/,""))(e??"https://api.segment.io",t??"/v1/batch"),this._httpRequestTimeout=s??1e4,this._disable=Boolean(l),this._httpClient=a,this._writeKey=i,c&&(this._tokenManager=new _e({...c,httpClient:c.httpClient??a,maxRetries:c.maxRetries??n}))}createBatch(){this.pendingFlushTimeout&&clearTimeout(this.pendingFlushTimeout);const e=new Z(this._flushAt);return this._batch=e,this.pendingFlushTimeout=setTimeout(()=>{e===this._batch&&(this._batch=void 0),this.pendingFlushTimeout=void 0,e.length&&this.send(e).catch(be)},this._flushInterval),e}clearBatch(){this.pendingFlushTimeout&&clearTimeout(this.pendingFlushTimeout),this._batch=void 0}flush(e){e?(this._flushPendingItemsCount=e,this._batch&&this._batch.length===e&&(this.send(this._batch).catch(be).finally(()=>{this._tokenManager&&this._tokenManager.stopPoller()}),this.clearBatch())):this._tokenManager&&this._tokenManager.stopPoller()}enqueue(e){const t=this._batch??this.createBatch(),{promise:n,resolve:r}=function(){var e,t,n=!1,r=new Promise(function(r,o){e=function(){for(var e=[],t=0;t=200&&s.status<300)return void e.resolveEvents();if(!this._tokenManager||400!==s.status&&401!==s.status&&403!==s.status){if(400===s.status)return void xe(e,new Error(`[${s.status}] ${s.statusText}`));o=new Error(`[${s.status}] ${s.statusText}`)}else this._tokenManager.clearToken(),o=new Error(`[${s.status}] ${s.statusText}`)}catch(e){o=e}if(r===n)return void xe(e,o);await we(P({attempt:r,minTimeout:25,maxTimeout:1e3}))}}}function xe(e,t){e.getContexts().forEach(e=>e.setFailedDelivery({reason:t})),e.resolveEvents()}const Se=()=>"object"==typeof process&&process&&"object"==typeof process.env&&process.env&&"string"==typeof process.version?"node":"object"==typeof window?"browser":"undefined"!=typeof WebSocketPair?"cloudflare-worker":"string"==typeof EdgeRuntime?"vercel-edge":"undefined"!=typeof WorkerGlobalScope&&"function"==typeof importScripts?"web-worker":"unknown";function Ae(e){function t(t){return function(e){e.updateEvent("context.library.name","@segment/analytics-node"),e.updateEvent("context.library.version",q);const t=Se();"node"===t&&e.updateEvent("_metadata.nodeVersion",process.version),e.updateEvent("_metadata.jsRuntime",t)}(t),e.enqueue(t)}return{name:"Segment.io",type:"destination",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),alias:t,group:t,identify:t,page:t,screen:t,track:t}}const Ie=()=>`node-next-${Date.now()}-${U()}`;class ke extends S{constructor(){super({createMessageId:Ie,onFinishedEvent:e=>{!function(e){var t=".userId/anonymousId/previousId/groupId",n=function(e){var t,n,r;return null!==(r=null!==(n=null!==(t=e.userId)&&void 0!==t?t:e.anonymousId)&&void 0!==n?n:e.groupId)&&void 0!==r?r:e.previousId}(e);if(!y(n))throw new g(t,C);if(!v(n))throw new g(t,w)}(e)}})}}class Ee extends H{static system(){return new this({type:"track",event:"system"})}}const Pe=async(e,t,n,r)=>{try{const i=new Ee(e),s=await function(e,t,n,r){return p(this,void 0,void 0,function(){var o,i;return h(this,function(s){switch(s.label){case 0:return n.emit("dispatch_start",e),o=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return i=s.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:i=s.sent(),s.label=4;case 4:return(null==r?void 0:r.callback)?[4,k(i,r.callback,(a=o,l=r.timeout,c=Date.now()-a,Math.max((null!=l?l:300)-c,0)))]:[3,6];case 5:i=s.sent(),s.label=6;case 6:return(null==r?void 0:r.debug)&&i.flush(),[2,i]}var a,l,c})})}(i,t,n,{...r?{callback:(o=r,e=>{const t=e.failedDelivery();return o(t?t.reason:void 0,e)})}:{}}),a=s.failedDelivery();a?n.emit("error",{code:"delivery_failure",reason:a.reason,ctx:s}):n.emit(e.type,s)}catch(e){n.emit("error",{code:"unknown",reason:e})}var o};class Ne extends E{}class Te extends D{constructor(){super(1,[])}getAttempts(e){return e.attempts??0}updateAttempts(e){return e.attempts=this.getAttempts(e)+1,this.getAttempts(e)}}class De extends z{constructor(){super(new Te)}}class Me{onabort=null;aborted=!1;eventEmitter=new E;toString(){return"[object AbortSignal]"}get[Symbol.toStringTag](){return"AbortSignal"}removeEventListener(...e){this.eventEmitter.off(...e)}addEventListener(...e){this.eventEmitter.on(...e)}dispatchEvent(e){const t={type:e,target:this},n=`on${e}`;"function"==typeof this[n]&&this[n](t),this.eventEmitter.emit(e,t)}}class Le{signal=new Me;abort(){this.signal.aborted||(this.signal.aborted=!0,this.signal.dispatchEvent("abort"))}toString(){return"[object AbortController]"}get[Symbol.toStringTag](){return"AbortController"}}const Ue=async(...e)=>{if(globalThis.fetch)return globalThis.fetch(...e);if("string"!=typeof EdgeRuntime)return(await import("./browser-d221fb98.js").then(function(e){return e.b})).default(...e);throw new Error("Invariant: an edge runtime that does not support fetch should not exist")};class Oe{_fetch;constructor(e){this._fetch=e??Ue}async makeRequest(e){const[t,n]=(e=>{if("cloudflare-worker"===Se())return[];const t=new(globalThis.AbortController||Le),n=setTimeout(()=>{t.abort()},e);return n?.unref?.(),[t.signal,n]})(e.httpRequestTimeout);return this._fetch(e.url,{url:e.url,method:e.method,headers:e.headers,body:e.body,signal:t}).finally(()=>clearTimeout(n))}}const Be=/^https:\/\/app(-staging)?.archive.com\/s\/c\/[\w\d-]{36}$/,Ve=/^[\w\d-]{36}$/,Re=e=>!!e&&Ve.test(e);function He(e,t){return null!=e&&e.includes("cdninstagram.com")?e:null!=e&&e.includes("?")?`${e}&${t}`:`${e}?${t}`}const Fe=(...e)=>{var t;("true"===new URLSearchParams(window.location.search).get("_shoppables_debug")||(null==(t=window)||null==(t=t.Shopify)?void 0:t.designMode))&&je(...e)},je=(...e)=>{console.log("[Shoppable UGC Feed]",...e)},ze=(...e)=>{console.error("[Shoppable UGC Feed]",...e)};var qe;!function(e){e.fatal="fatal",e.error="error",e.warning="warning",e.log="log",e.info="info",e.debug="debug",e.critical="critical"}(qe||(qe={}));const Ze=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ke=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Je="?",We=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ye(e){return(e&&e.message||"No error message").split("\n").filter(e=>!!e)[0]}function Qe(e){try{const t=function(e){if(!e.stack)return null;const t=[],n=e.stack.split("\n");let r,o;for(let i=0;i{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function $e(e,t){return"[object RegExp]"===Object.prototype.toString.call(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t)}const et=100;function tt(){return window}class nt extends Xe{constructor(e,t=tt()){super(e),this.options=e,this.window=t,this.breadcrumbsKeyName="breadcrumbs",this.destroyed=!1,this._state={};const{plugins:n=[],beforeSend:r=e=>e,beforeBreadcrumb:o=e=>e,blacklistUrls:i=[],ignoreErrors:s=[],release:a,maxBreadcrumbs:l=et}=this.options||{}||[];this.plugins=n.map(e=>new e(this)),this.beforeSend=r,this.beforeBreadcrumb=o,this.blacklistUrls=i,this.ignoreErrors=s,this.release=a,this.maxBreadcrumbs=l>=0?l:et}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",e?{...e}:void 0),this}clone(){const e=new nt({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){const t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){const t=this.beforeBreadcrumb(e);t&&(this.extendState({[this.breadcrumbsKeyName]:[{timestamp:Date.now()/1e3,...t}]}),this.trimBreadcrumbs())}setBreadcrumbs(e){this.setKeyState(this.breadcrumbsKeyName,e),this.trimBreadcrumbs()}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return!!this.ignoreErrors.length&&this.getPossibleEventMessages(e).some(e=>this.ignoreErrors.some(t=>$e(e,t)))}extractQueryString(e){let t=e;if(t){t.startsWith("/")&&(t=`http://prefix${t}`);try{const e=new URL(t).search.slice(1);return e.length?e:void 0}catch(e){return}}}getRequestBlank(){const e=this.window.location.toString();return{request:{url:e,query_string:this.extractQueryString(e),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){if(this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e))return;const t=this.beforeSend({release:this.release,...e});t&&(super.send(t),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(e){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;const t=this.getEventFilterUrl(e);return!!t&&this.blacklistUrls.some(e=>$e(t,e))}getEventFilterUrl(e){try{if(e.exception){const t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(e){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{const r=this._state[n],o=Array.isArray(r)?r:null,i=e[n],s=Array.isArray(i)?i:null;return{...t,[n]:o||s?[...o||[],...s||[]]:{..."string"!=typeof r?r:{},..."string"!=typeof i?i:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}getKeyState(e){return this._state[e]}trimBreadcrumbs(){const e=this.getKeyState(this.breadcrumbsKeyName);e&&(e.length??0)>this.maxBreadcrumbs&&this.setKeyState(this.breadcrumbsKeyName,this.maxBreadcrumbs>0?e.slice(-this.maxBreadcrumbs):[])}}const rt="Free Plan Limit Exceeded for this month. Go to https://app.archive.com/pricing/table/sho to upgrade your plan to continue using this feature.",ot="Shoppable UGC Feeds is not enabled for this shop. Contact shoppables@archive.com to request a demo.",it="No active subscription is found. Go to https://app.archive.com/pricing/table/sho to select a plan.",st=new nt({dsn:"https://514535344b0a21744d0f3e1985e62813@o406666.ingest.sentry.io/4506234968801280",ignoreErrors:[rt,ot,it,/The user aborted a request/,/The operation was aborted/,/network connection was lost/,/Fetch is aborted/,/Failed to fetch/,/Load failed/,/The operation is insecure/,/NetworkError when attempting to fetch resource/,/signal is aborted without reason/,/TypeError: Resource blocked by content blocker/,/TypeError: cancelled/,/^cancelled$/,/Error: \[400]/,/Error: \[500]/,/Unexpected end of JSON input/,/Can't find variable: IntersectionObserver/,/Can't find variable: ResizeObserver/,/Failed to read the 'localStorage' property from 'Window': Access is denied for this document/,/Collection ID is empty/,/You are in the A\/B test control group/,/Could not find the following Feed/,/Feed ID is missing/,/Cannot create property '__' on string/,/Invalid Feed ID/,/Field 'collection' doesn't exist on type 'ShoppableFolder/,/Field 'itemsCount' doesn't exist on type 'ShoppableFeed'/,/Cannot return null for non-nullable field ShoppableFeed.folder'/]});function at(){return Math.min(window.devicePixelRatio||1,2)}var lt,ct,ut;function dt(){var e;switch(null==(e=navigator.connection)?void 0:e.effectiveType){case"4g":case void 0:return 80;default:return 50}}!function(e){e.Static="STATIC",e.Product="PRODUCT",e.Collection="COLLECTION"}(lt||(lt={})),function(e){e.instagramPost="1-1",e.instagramStory="9-16"}(ct||(ct={})),function(e){e.Carousel="carousel",e.Single="single",e.Stories="stories"}(ut||(ut={}));const pt=(e,t,n)=>He(e,`tr=h-${t},ar-${ct[n]},fo-auto,pr-true,q-${dt()}`),ht=(e,t=140)=>{const[n]=e.split("?");return He(n,`width=${t}`)},ft=(e,t,n)=>He(e,`tr=h-${t},ar-${ct[n]},fo-center,f-auto`),mt=(e,t,n)=>{const r=function(){var e;switch(null==(e=navigator.connection)?void 0:e.effectiveType){case"4g":case void 0:return 70;default:return 50}}();return He(e,`tr=h-${t},ar-${ct[n]},fo-center,f-auto,q-${r}`)},gt=(e,t,n)=>He(e,`tr=h-${t},ar-${ct[n]},fo-center,pr-true,q-${dt()}`),vt=e=>{if(e<1e3)return e.toString();const t=[{v:1e3,s:"k"},{v:1e6,s:"m"},{v:1e9,s:"b"}];let n;for(n=t.length-1;n>0&&!(e>=t[n].v);n--);return(e/t[n].v).toFixed(1).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+t[n].s},yt=e=>(e=>{if("object"==typeof(t=e)&&null!==t&&"message"in t&&"string"==typeof t.message)return e;var t;try{return new Error(JSON.stringify(e))}catch(t){return new Error(String(e))}})(e).message,_t=(e,t="")=>{ze(`${t} ${yt(e)}`)};function wt(...e){return e.map(e=>"string"==typeof e?e:e&&"object"==typeof e?Object.entries(e).filter(([,e])=>e).map(([e])=>e).join(" "):"").filter(Boolean).join(" ")}const bt=["timeout"];async function Ct(n,r={}){const{timeout:o=5e3}=r,i=t(r,bt),s=new AbortController,{signal:a}=s,l=setTimeout(()=>s.abort(),o),c=await fetch(n,e({signal:a},i));return clearTimeout(l),c}function xt(e,t=20){let n=0;return(...r)=>{clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}const St=function(){},At=new class extends Ne{_eventFactory;_isClosed=!1;_pendingEvents=0;_closeAndFlushDefaultTimeout;_publisher;_isFlushing=!1;_queue;ready;constructor(e){super(),(e=>{if(!e.writeKey)throw new g("writeKey","writeKey is missing.")})(e),this._eventFactory=new ke,this._queue=new De;const t=e.flushInterval??1e4;this._closeAndFlushDefaultTimeout=1.25*t;const{plugin:n,publisher:r}=(e=>{const t=new Ce(e,this);return{publisher:t,plugin:Ae(t)}})({writeKey:e.writeKey,host:e.host,path:e.path,maxRetries:e.maxRetries??3,flushAt:e.flushAt??e.maxEventsInBatch??15,httpRequestTimeout:e.httpRequestTimeout,disable:e.disable,flushInterval:t,httpClient:"function"==typeof e.httpClient?new Oe(e.httpClient):e.httpClient??new Oe,oauthSettings:e.oauthSettings});this._publisher=r,this.ready=this.register(n).then(()=>{}),this.emit("initialize",e),function(e){for(var t=0,n=Object.getOwnPropertyNames(e.constructor.prototype);t{this._pendingEvents?this.once("drained",()=>{e()}):e()}).finally(()=>{this._isFlushing=!1});return e?A(n,e).catch(()=>{}):n}_dispatch(e,t){this._isClosed?this.emit("call_after_close",e):(this._pendingEvents++,Pe(e,this._queue,this,t).catch(e=>e).finally(()=>{this._pendingEvents--,this._pendingEvents||this.emit("drained")}))}alias({userId:e,previousId:t,context:n,timestamp:r,integrations:o,messageId:i},s){const a=this._eventFactory.alias(e,t,{context:n,integrations:o,timestamp:r,messageId:i});this._dispatch(a,s)}group({timestamp:e,groupId:t,userId:n,anonymousId:r,traits:o={},context:i,integrations:s,messageId:a},l){const c=this._eventFactory.group(t,o,{context:i,anonymousId:r,userId:n,timestamp:e,integrations:s,messageId:a});this._dispatch(c,l)}identify({userId:e,anonymousId:t,traits:n={},context:r,timestamp:o,integrations:i,messageId:s},a){const l=this._eventFactory.identify(e,n,{context:r,anonymousId:t,userId:e,timestamp:o,integrations:i,messageId:s});this._dispatch(l,a)}page({userId:e,anonymousId:t,category:n,name:r,properties:o,context:i,timestamp:s,integrations:a,messageId:l},c){const u=this._eventFactory.page(n??null,r??null,o,{context:i,anonymousId:t,userId:e,timestamp:s,integrations:a,messageId:l});this._dispatch(u,c)}screen({userId:e,anonymousId:t,category:n,name:r,properties:o,context:i,timestamp:s,integrations:a,messageId:l},c){const u=this._eventFactory.screen(n??null,r??null,o,{context:i,anonymousId:t,userId:e,timestamp:s,integrations:a,messageId:l});this._dispatch(u,c)}track({userId:e,anonymousId:t,event:n,properties:r,context:o,timestamp:i,integrations:s,messageId:a},l){const c=this._eventFactory.track(n,r,{context:o,userId:e,anonymousId:t,timestamp:i,integrations:s,messageId:a});this._dispatch(c,l)}register(...e){return this._queue.criticalTasks.run(async()=>{const t=Ee.system(),n=e.map(e=>this._queue.register(t,e,this));await Promise.all(n),this.emit("register",e.map(e=>e.name))})}async deregister(...e){const t=Ee.system(),n=e.map(e=>{const n=this._queue.plugins.find(t=>t.name===e);if(n)return this._queue.deregister(t,n,this);t.log("warn",`plugin ${e} not found`)});await Promise.all(n),this.emit("deregister",e)}}({writeKey:"v5w78nPe3m3YdRxbsEl5S60uSJjb8Tby",maxEventsInBatch:1});let It;const kt="SHOPPABLE_SEGMENT_ANON_ID",Et=()=>{let e=localStorage.getItem(kt);return e||(e=Math.random().toString(36).substring(2),localStorage.setItem(kt,e)),e},Pt=()=>{if(!r)throw new Error("PAGE_URL is empty");return r},Nt=(t,n={})=>{It=t,At.identify({anonymousId:Et(),userId:t,traits:n}),st.setUser(e({anonymousId:Et(),id:It},n))};var Tt,Dt,Mt,Lt,Ut,Ot,Bt,Vt,Rt={},Ht=[],Ft=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,jt=Array.isArray;function zt(e,t){for(var n in t)e[n]=t[n];return e}function qt(e){var t=e.parentNode;t&&t.removeChild(e)}function Zt(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?Tt.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return Gt(e,s,r,o,null)}function Gt(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++Mt:o,__i:-1,__u:0};return null==o&&null!=Dt.vnode&&Dt.vnode(i),i}function Kt(e){return e.children}function Jt(e,t){this.props=e,this.context=t}function Wt(e,t){if(null==t)return e.__?Wt(e.__,e.__i+1):null;for(var n;tn?(un(r,t,o),o.length=r.length=0,t=void 0,Lt.sort(Bt)):t&&Dt.__c&&Dt.__c(t,Ht));t&&un(r,t,o),$t.__r=0}function en(e,t,n,r,o,i,s,a,l,c,u){var d,p,h,f,m,g=r&&r.__k||Ht,v=t.length;for(n.__d=l,function(e,t,n){var r,o,i,s,a,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r0?Gt(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=rn(o,n,s,u),o.__i=a,i=null,-1!==a&&(u--,(i=n[a])&&(i.__u|=131072)),null==i||null===i.__v?(-1==a&&d--,"function"!=typeof o.type&&(o.__u|=65536)):a!==s&&(a===s+1?d++:a>s?u>l-s?d+=a-s:d--:a(null==l||131072&l.__u?0:1))for(;s>=0||a=0){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s--}if(a{let r=[],o=document.currentScript||(()=>{let e=document.getElementsByTagName("script");return e[e.length-1]})();return!0===t&&r.push(o.parentNode),!0!==n||e||(e=(e=>{let t=e.attributes,n=null;return Object.keys(t).forEach(e=>{t.hasOwnProperty(e)&&"data-mount-in"===t[e].name&&(n=t[e].nodeValue)}),n})(o)),e&&[].forEach.call(document.querySelectorAll(e),e=>{r.push(e)}),r},yn=e=>{let t=e;return{render:({selector:e=null,inline:n=!1,clean:r=!1,clientSpecified:o=!1,defaultProps:i={}}={})=>{let s=vn({selector:e,inline:n,clientSpecified:o}),a=()=>{if(s.length>0){let s=vn({selector:e,inline:n,clientSpecified:o});return((e,t,n,r,o)=>{t.forEach(t=>{let n=t;if(n._habitat)return;n._habitat=!0;let i=((e,t={})=>{let n=e.attributes,r=Object.assign({},t);return Object.keys(n).forEach(e=>{if(n.hasOwnProperty(e)){let t=n[e].name;if(!t||"string"!=typeof t)return!1;let o=t.split(/(data-props?-)/).pop()||"";o=o.replace(/-([a-z])/gi,(e,t)=>t.toUpperCase()),t!==o&&(r[o]=n[e].nodeValue)}}),[].forEach.call(e.getElementsByTagName("script"),e=>{let t={};if(e.hasAttribute("type")){if("text/props"!==e.getAttribute("type")&&"application/json"!==e.getAttribute("type"))return;try{t=JSON.parse(e.innerHTML)}catch(e){throw new Error(e)}Object.assign(r,t)}}),r})(t,o)||o;r&&(n.innerHTML="");const s=n.attachShadow({mode:"open"});{const e=document.querySelector("link[href$='ugc_feed.css']");!function(e){const t=e.cloneNode(!0);s.append(t)}(e),("true"===new URLSearchParams(window.location.search).get("_shoppables_debug")||(null==(a=window)||null==(a=a.Shopify)?void 0:a.designMode))&&console.log("[Shoppable UGC Feed] Attaching ugc_feed.css to shadow root...",e)}var a;return mn(Zt(e,i),s,null)})})(t,s,0,r,i)}};a(),document.addEventListener("DOMContentLoaded",a),document.addEventListener("load",a)}}};var _n,wn,bn,Cn,xn=0,Sn=[],An=[],In=Dt,kn=In.__b,En=In.__r,Pn=In.diffed,Nn=In.__c,Tn=In.unmount,Dn=In.__;function Mn(e,t){In.__h&&In.__h(wn,e,xn||t),xn=0;var n=wn.__H||(wn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:An}),n.__[e]}function Ln(e){return xn=1,function(e,t){var n=Mn(_n++,2);if(n.t=e,!n.__c&&(n.__=[Kn(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=wn,!wn.u)){var r=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!o||o.call(this,e,t,r);var s=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),!(!s&&n.__c.props===e)&&(!o||o.call(this,e,t,r))};wn.u=!0;var o=wn.shouldComponentUpdate,i=wn.componentWillUpdate;wn.componentWillUpdate=function(e,t,n){if(this.__e){var s=o;o=void 0,r(e,t,n),o=s}i&&i.call(this,e,t,n)},wn.shouldComponentUpdate=r}return n.__N||n.__}(Kn,e)}function Un(e,t){var n=Mn(_n++,3);!In.__s&&Gn(n.__H,t)&&(n.__=e,n.i=t,wn.__H.__h.push(n))}function On(e,t){var n=Mn(_n++,4);!In.__s&&Gn(n.__H,t)&&(n.__=e,n.i=t,wn.__h.push(n))}function Bn(e){return xn=5,Vn(function(){return{current:e}},[])}function Vn(e,t){var n=Mn(_n++,7);return Gn(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Rn(e,t){return xn=8,Vn(function(){return e},t)}function Hn(e){var t=wn.context[e.__c],n=Mn(_n++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(wn)),t.props.value):e.__}function Fn(){for(var e;e=Sn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(qn),e.__H.__h.forEach(Zn),e.__H.__h=[]}catch(t){e.__H.__h=[],In.__e(t,e.__v)}}In.__b=function(e){wn=null,kn&&kn(e)},In.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Dn&&Dn(e,t)},In.__r=function(e){En&&En(e),_n=0;var t=(wn=e.__c).__H;t&&(bn===wn?(t.__h=[],wn.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=An,e.__N=e.i=void 0})):(t.__h.forEach(qn),t.__h.forEach(Zn),t.__h=[],_n=0)),bn=wn},In.diffed=function(e){Pn&&Pn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Sn.push(t)&&Cn===In.requestAnimationFrame||((Cn=In.requestAnimationFrame)||zn)(Fn)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==An&&(e.__=e.__V),e.i=void 0,e.__V=An})),bn=wn=null},In.__c=function(e,t){t.some(function(e){try{e.__h.forEach(qn),e.__h=e.__h.filter(function(e){return!e.__||Zn(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],In.__e(n,e.__v)}}),Nn&&Nn(e,t)},In.unmount=function(e){Tn&&Tn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{qn(e)}catch(e){t=e}}),n.__H=void 0,t&&In.__e(t,n.__v))};var jn="function"==typeof requestAnimationFrame;function zn(e){var t,n=function(){clearTimeout(r),jn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);jn&&(t=requestAnimationFrame(n))}function qn(e){var t=wn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),wn=t}function Zn(e){var t=wn;e.__c=e.__(),wn=t}function Gn(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Kn(e,t){return"function"==typeof t?t(e):t}const Jn=e=>{const t=Bn(!1);Un(()=>{t.current||(e(),t.current=!0)},[])},Wn=gn({});function Yn(e,t){for(var n in t)e[n]=t[n];return e}function Qn(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Xn(e,t){this.props=e,this.context=t}function $n(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Qn(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Zt(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Xn.prototype=new Jt).isPureReactComponent=!0,Xn.prototype.shouldComponentUpdate=function(e,t){return Qn(this.props,e)||Qn(this.state,t)};var er=Dt.__b;Dt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),er&&er(e)};var tr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function nr(e){function t(t){var n=Yn({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=tr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var rr=Dt.__e;Dt.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);rr(e,t,n,r)};var or=Dt.unmount;function ir(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=Yn({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return ir(e,t,n)})),e}function sr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return sr(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ar(){this.__u=0,this.t=null,this.__b=null}function lr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function cr(){this.u=null,this.o=null}Dt.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),or&&or(e)},(ar.prototype=new Jt).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=lr(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=sr(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},ar.prototype.componentWillUnmount=function(){this.t=[]},ar.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ir(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&Zt(Kt,null,e.fallback);return o&&(o.__u&=-33),[Zt(Kt,null,t.__a?null:e.children),o]};var ur=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),mn(Zt(dr,{context:t.context},e.__v),t.l)}function hr(e,t){var n=Zt(pr,{__v:e,i:t});return n.containerInfo=t,n}(cr.prototype=new Jt).__a=function(e){var t=this,n=lr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ur(t,e,r)):o()};n?n(i):i()}},cr.prototype.render=function(e){this.u=null,this.o=new Map;var t=nn(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},cr.prototype.componentDidUpdate=cr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ur(e,n,t)})};var fr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,mr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,gr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,vr=/[A-Z0-9]/g,yr="undefined"!=typeof document,_r=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};Jt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Jt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var wr=Dt.event;function br(){}function Cr(){return this.cancelBubble}function xr(){return this.defaultPrevented}Dt.event=function(e){return wr&&(e=wr(e)),e.persist=br,e.isPropagationStopped=Cr,e.isDefaultPrevented=xr,e.nativeEvent=e};var Sr={enumerable:!1,configurable:!0,get:function(){return this.class}},Ar=Dt.vnode;Dt.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||yr&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===s&&"no"===i?i=!1:"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||_r(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":gr.test(o)?o=s:-1===n.indexOf("-")&&mr.test(o)?o=o.replace(vr,"-$&").toLowerCase():null===i&&(i=void 0):s=o="oninput","oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=nn(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==n&&null!=r.defaultValue&&(r.value=nn(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Sr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=fr,Ar&&Ar(e)};var Ir=Dt.__r;Dt.__r=function(e){Ir&&Ir(e)};var kr=Dt.diffed;Dt.diffed=function(e){kr&&kr(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};const Er=+new Date,Pr=$n(({children:e})=>{const[t,n]=Ln(0),[r,o]=Ln(0),[i,s]=Ln(null),a=Rn(()=>o(e=>e+1),[]),l=Rn(()=>n(e=>e+1),[]),c=Vn(()=>({imagesEngaged:r,videosEngaged:t,increaseImagesEngaged:a,increaseVideosEngaged:l,totalEngaged:r+t,currentSlide:i,setCurrentSlide:s,startTime:Er}),[r,t,a,l,i]);return Zt(Wn.Provider,{value:c},e)}),Nr=()=>Hn(Wn),Tr=gn({}),Dr=gn({}),Mr=$n(({children:e,items:t,hasMoreData:n})=>{const[r,o]=Ln(void 0),[i,s]=Ln(void 0),[a,l]=Ln(!1),c=t.length-1,u=Rn(()=>{l(!1)},[l]),d=Rn(e=>"number"==typeof e&&e>=0&&e<=c?(o(e),void s(void 0)):"number"==typeof e&&e<0?(o(0),void s(void 0)):(o(c),void s(void 0)),[o,c]),p=Rn(e=>{const n=e?t.findIndex(t=>t.id===e.id):void 0;o(n),s(void 0),-1!==n&&l(!0)},[o,t]),h=Vn(()=>({mediaItem:t[r],items:t,mediaItemIndex:r,mediaItemLoadingIndex:i,hasMoreData:n,open:a}),[t,r,i,n,a]),f=Vn(()=>({setMediaItem:p,onClose:u,setMediaItemIndex:d,setMediaItemLoadingIndex:s}),[u,p,d]);return Zt(Tr.Provider,{value:h},Zt(Dr.Provider,{value:f},e))}),Lr=gn({}),Ur=["children"],Or=$n(e=>{let{children:n}=e,r=t(e,Ur);return Zt(Lr.Provider,{value:r},n)}),Br=()=>Hn(Lr);function Vr(){const e=navigator.userAgent;return/android/i.test(e)?"Android Device":/iPad|iPhone|iPod/i.test(e)?"iOS Device":/Windows/i.test(e)?"Windows Device":/Macintosh/i.test(e)?"Mac Device":/Linux/i.test(e)?"Linux Device":"Unknown Device"}function Rr(){const e=navigator.userAgent;return/chrome|crios|crmo/i.test(e)&&!/edge/i.test(e)?"Chrome":/firefox|fxios/i.test(e)?"Firefox":/safari/i.test(e)&&!/chrome|crios|crmo/i.test(e)?"Safari":/opr\//i.test(e)||/opera/i.test(e)?"Opera":/edg/i.test(e)?"Edge":/msie|trident/i.test(e)?"Internet Explorer":"Unknown Browser"}const Hr=gn({}),Fr=({children:e,enabled:t})=>{const n=Rn((...e)=>{if(t)return Nt(...e);je("[Skipped identify call")},[t]);return Zt(Hr.Provider,{value:n},e)},jr=gn({}),zr=({children:e,enabled:t})=>{const n=Rn(async(e,n={})=>{if(t)return((e,t={})=>{const n=JSON.stringify(t,null,2);Fe(`${e}: ${n}`);const r=Et();return new Promise(n=>{At.track({anonymousId:r,event:e,properties:t,userId:It},e=>{e&&(je(e.toString()),st.captureMessage(e.toString())),n()})})})(e,n);je(`Skipped "${e}" event`,n)},[t]);return Zt(jr.Provider,{value:n},e)},qr=$n(({children:e,enabled:t})=>Zt(Fr,{enabled:t},Zt(zr,{enabled:t},e))),Zr=$n(({children:t,additionalFields:n})=>{const r=Hn(jr),o=Rn((t,o={})=>r(t,e({},n,o)),[r,n]);return Zt(jr.Provider,{value:o},t)}),Gr=()=>Hn(jr),Kr=()=>{const e=Gr();return Rn(({type:t,url:n,originalUrl:r,isPreview:o,blobSize:i})=>{e("Asset Loaded",{assetType:t,assetOriginalUrl:r,assetUrl:n,assetIsPreview:o,assetSize:i,userAgentDevice:Vr(),userAgent:navigator.userAgent,userAgentBrowser:Rr()})},[e])},Jr=()=>Zt("div",{className:"_o7wvu"});var Wr="_I8rpd";const Yr=({designMode:e=!1,children:t})=>Zt("div",{className:wt("_npNeS",{[Wr]:!e})},Zt("span",{className:"_ink3b"},"🛈 This message is hidden from the live website"),t);class Qr extends Jt{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e.message}}componentDidCatch(e){Fe(e),st.report(e),this.setState({error:e.message})}render(){return this.state.error?Zt(Yr,{designMode:this.props.designMode},this.state.error):this.props.children}}const Xr=e=>{const[t,n]=Ln((null==e?void 0:e.defaultInView)||!1),r=Bn(),o=Bn(),i=Bn();return window&&!r.current&&(r.current=new IntersectionObserver(e=>{o.current=e[0],n(e[0].isIntersecting)},Object.assign(Object.assign({},e),{root:i.current}))),Un(()=>{o.current?(null==e?void 0:e.triggerOnce)&&i.current&&r.current.unobserve(i.current):r.current.observe(i.current)},[i,t,e]),[i,t,o.current]},$r=e=>{const[t,n]=Ln(!1),[r,o]=Xr({triggerOnce:!1,rootMargin:`${e}px 0px 0px 0px`,threshold:0});return Un(()=>{o&&n(!0)},[o]),[r,t]};function eo(){return Math.ceil(window.pageYOffset||document.documentElement.scrollTop)}const to="Update Shoppable Settings",no="Refetch Shoppable Items",ro="Shoppables Edit Media Item Clicked",oo=e=>"internal"===e.provider?"Content from Archive App":`Content by ${e.accountName}. Originally posted on ${e.provider}. This influencer has ${e.followers} followers.`;var io,so;!function(e){e.Cart="cart",e.Checkout="checkout",e.ProductPage="product_page"}(io||(io={}));const ao=(null==(so=navigator)?void 0:so.language.replace("@posix",""))||"en-US",lo=(e,t="USD")=>{try{return Number(e).toLocaleString(ao,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2})}catch(n){throw n.message.endsWith("Incorrect locale information provided")&&console.log("RangeError!",{price:e,currency:t,browserLocale:ao}),n}},co=({price:e})=>{const{shopCurrency:t}=Br();return Zt("span",{className:"_2Tu8w"},lo(e,t))},uo=e=>(e.title||"").replace(/<[^>]*>/g,""),po=({product:e})=>Zt("span",{className:"_zdmAn"},uo(e));function ho(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function fo(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{const r=e[n],o=t[n];return"function"==typeof r?`${r}`==`${o}`:ho(r)&&ho(o)?fo(r,o):r===o})}function mo(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function go(e){return"number"==typeof e}function vo(e){return"string"==typeof e}function yo(e){return"boolean"==typeof e}function _o(e){return"[object Object]"===Object.prototype.toString.call(e)}function wo(e){return Math.abs(e)}function bo(e){return Math.sign(e)}function Co(e,t){return wo(e-t)}function xo(e){return Eo(e).map(Number)}function So(e){return e[Ao(e)]}function Ao(e){return Math.max(0,e.length-1)}function Io(e,t){return t===Ao(e)}function ko(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function Eo(e){return Object.keys(e)}function Po(e,t){return[e,t].reduce((e,t)=>(Eo(t).forEach(n=>{const r=e[n],o=t[n],i=_o(r)&&_o(o);e[n]=i?Po(r,o):o}),e),{})}function No(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function To(){let e=[];const t={add:function(n,r,o,i={passive:!0}){let s;if("addEventListener"in n)n.addEventListener(r,o,i),s=()=>n.removeEventListener(r,o,i);else{const e=n;e.addListener(o),s=()=>e.removeListener(o)}return e.push(s),t},clear:function(){e=e.filter(e=>e())}};return t}function Do(e=0,t=0){const n=wo(e-t);function r(t){return tt}function i(e){return r(e)||o(e)}const s={length:n,max:t,min:e,constrain:function(n){return i(n)?r(n)?e:t:n},reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}};return s}function Mo(e,t,n){const{constrain:r}=Do(0,e),o=e+1;let i=s(t);function s(e){return n?wo((o+e)%o):r(e)}function a(){return i}function l(){return Mo(e,a(),n)}const c={get:a,set:function(e){return i=s(e),c},add:function(e){return l().set(a()+e)},clone:l};return c}function Lo(e,t,n,r,o,i,s,a,l,c,u,d,p,h,f,m,g,v,y){const{cross:_,direction:w}=e,b=["INPUT","SELECT","TEXTAREA"],C={passive:!1},x=To(),S=To(),A=Do(50,225).constrain(h.measure(20)),I={mouse:300,touch:400},k={mouse:500,touch:600},E=f?43:25;let P=!1,N=0,T=0,D=!1,M=!1,L=!1,U=!1;function O(e){if(!No(e,r)&&e.touches.length>=2)return B(e);const t=i.readPoint(e),n=i.readPoint(e,_),s=Co(t,N),l=Co(n,T);if(!M&&!U){if(!e.cancelable)return B(e);if(M=s>l,!M)return B(e)}const u=i.pointerMove(e);s>m&&(L=!0),c.useFriction(.3).useDuration(.75),a.start(),o.add(w(u)),e.preventDefault()}function B(e){const t=u.byDistance(0,!1).index!==d.get(),n=i.pointerUp(e)*(f?k:I)[U?"mouse":"touch"],r=function(e,t){const n=d.add(-1*bo(e)),r=u.byDistance(e,!f).distance;return f||wo(e)=2,a&&0!==e.button||function(e){return b.includes(e.nodeName||"")}(e.target)||(D=!0,i.pointerDown(e),c.useFriction(0).useDuration(0),o.set(s),function(){const e=U?n:t;S.add(e,"touchmove",O,C).add(e,"touchend",B).add(e,"mousemove",O,C).add(e,"mouseup",B)}(),N=i.readPoint(e),T=i.readPoint(e,_),p.emit("pointerDown"))}(a)}const l=t;x.add(l,"dragstart",e=>e.preventDefault(),C).add(l,"touchmove",()=>{},C).add(l,"touchend",()=>{}).add(l,"touchstart",a).add(l,"mousedown",a).add(l,"touchcancel",B).add(l,"contextmenu",B).add(l,"click",V,!0)},destroy:function(){x.clear(),S.clear()},pointerDown:function(){return D}}}function Uo(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){const o="client"+("x"===(r||e.scroll)?"X":"Y");return(No(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){const t=i(e)-i(r),s=o(e)-o(n)>170;return r=e,s&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=i(r)-i(n),s=o(e)-o(n),a=o(e)-o(r)>170,l=t/s;return s&&!a&&wo(l)>.1?l:0},readPoint:i}}function Oo(e,t,n,r,o,i,s){let a,l,c=[],u=!1;function d(e){return o.measureSize(s.measure(e))}return{init:function(o){i&&(l=d(e),c=r.map(d),a=new ResizeObserver(s=>{u||(yo(i)||i(o,s))&&function(i){for(const s of i){const i=s.target===e,a=r.indexOf(s.target),u=i?l:c[a];if(wo(d(i?e:r[a])-u)>=.5){n.requestAnimationFrame(()=>{o.reInit(),t.emit("resize")});break}}}(s)}),[e].concat(r).forEach(e=>a.observe(e)))},destroy:function(){a&&a.disconnect(),u=!0}}}function Bo(e,t,n,r,o){const i=o.measure(10),s=o.measure(50),a=Do(.1,.99);let l=!1;return{constrain:function(o){if(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))return;const c=e.reachedMin(t.get())?"min":"max",u=wo(e[c]-t.get()),d=n.get()-t.get(),p=a.constrain(u/s);n.subtract(d*p),!o&&wo(d)e.add(o))}};return l}function Ro(e){let t=e;function n(e){return go(e)?e:e.get()}const r={get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}};return r}function Ho(e,t){const n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style;let o=!1;return{clear:function(){o||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){o||(r.transform=n(e.direction(t)))},toggleActive:function(e){o=!e}}}function Fo(e,t,n,r,o,i,s,a,l){const c=xo(o),u=h(p(xo(o).reverse(),s[0]),n,!1).concat(h(p(c,t-s[0]-1),-n,!0));function d(e,t){return e.reduce((e,t)=>e-o[t],t)}function p(e,t){return e.reduce((e,n)=>d(e,t)>0?e.concat([n]):e,[])}function h(o,s,c){const u=function(e){return i.map((n,o)=>({start:n-r[o]+.5+e,end:n+t-.5+e}))}(s);return o.map(t=>{const r=c?0:-n,o=c?n:0,i=u[t][c?"end":"start"];return{index:t,loopPoint:i,slideLocation:Ro(-1),translate:Ho(e,l[t]),target:()=>a.get()>i?r:o}})}const f={canLoop:function(){return u.every(({index:e})=>{const n=c.filter(t=>t!==e);return d(n,t)<=.1})},clear:function(){u.forEach(e=>e.translate.clear())},loop:function(){u.forEach(e=>{const{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))})},loopPoints:u};return f}function jo(e,t,n){let r,o=!1;return{init:function(i){n&&(r=new MutationObserver(e=>{o||(yo(n)||n(i,e))&&function(e){for(const n of e)if("childList"===n.type){i.reInit(),t.emit("slidesChanged");break}}(e)}),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function zo(e,t,n,r,o,i,s){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:p,dragFree:h,dragThreshold:f,inViewThreshold:m,slidesToScroll:g,skipSnaps:v,containScroll:y,watchResize:_,watchSlides:w,watchDrag:b}=i,C={measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}},x=C.measure(t),S=n.map(C.measure),A=function(e,t){const n="rtl"===t,r="y"===e,o=!r&&n?-1:1,i={scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){const{height:t,width:n}=e;return r?t:n},direction:function(e){return e*o}};return i}(l,c),I=A.measureSize(x),k=function(e){const t={measure:function(t){return e*(t/100)}};return t}(I),E=function(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}const o={measure:function(r,o){return vo(e)?n[e](r):e(t,r,o)}};return o}(a,I),P=!d&&!!y,N=d||!!y,{slideSizes:T,slideSizesWithGaps:D,startGap:M,endGap:L}=function(e,t,n,r,o,i){const{measureSize:s,startEdge:a,endEdge:l}=e,c=n[0]&&o,u=c?wo(t[a]-n[0][a]):0,d=function(){if(!c)return 0;const e=i.getComputedStyle(So(r));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),p=n.map(s),h=n.map((e,t,n)=>{const r=!t,o=Io(n,t);return r?p[t]+u:o?p[t]+d:n[t+1][a]-e[a]}).map(wo);return{slideSizes:p,slideSizesWithGaps:h,startGap:u,endGap:d}}(A,x,S,n,N,o),U=function(e,t,n,r,o,i,s,a){const{startEdge:l,endEdge:c,direction:u}=e,d=go(n),p={groupSlides:function(e){return d?function(e,t){return xo(e).filter(e=>e%t==0).map(n=>e.slice(n,n+t))}(e,n):function(e){return e.length?xo(e).reduce((n,d,p)=>{const h=So(n)||0,f=0===h,m=d===Ao(e),g=o[l]-i[h][l],v=o[l]-i[d][c],y=!r&&f?u(s):0,_=wo(v-(!r&&m?u(a):0)-(g+y));return p&&_>t+2&&n.push(d),m&&n.push(e.length),n},[]).map((t,n,r)=>{const o=Math.max(r[n-1]||0);return e.slice(o,t)}):[]}(e)}};return p}(A,I,g,d,x,S,M,L),{snaps:O,snapsAligned:B}=function(e,t,n,r,o){const{startEdge:i,endEdge:s}=e,{groupSlides:a}=o,l=a(r).map(e=>So(e)[s]-e[0][i]).map(wo).map(t.measure),c=r.map(e=>n[i]-e[i]).map(e=>-wo(e)),u=a(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:u}}(A,E,x,S,U),V=-So(O)+So(D),{snapsContained:R,scrollContainLimit:H}=function(e,t,n,r){const o=Do(-t+e,0),i=n.map((e,t)=>{const{min:r,max:i}=o,s=o.constrain(e),l=!t,c=Io(n,t);return l?i:c||a(r,s)?r:a(i,s)?i:s}).map(e=>parseFloat(e.toFixed(3))),s=function(){const e=i[0],t=So(i);return Do(i.lastIndexOf(e),i.indexOf(t)+1)}();function a(e,t){return Co(e,t)<1}return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return i;const{min:n,max:a}=s;return i.slice(n,a)}(),scrollContainLimit:s}}(I,V,B,y),F=P?R:B,{limit:j}=function(e,t,n){const r=t[0];return{limit:Do(n?r-e:So(t),r)}}(V,F,d),z=Mo(Ao(F),u,d),q=z.clone(),Z=xo(n),G=function(e,t,n,r){const o=To(),i=1e3/60;let s=null,a=0,l=0;function c(e){if(!l)return;s||(s=e);const o=e-s;for(s=e,a+=o;a>=i;)n(),a-=i;const u=wo(a/i);r(u),l&&t.requestAnimationFrame(c)}function u(){t.cancelAnimationFrame(l),s=null,a=0,l=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(s=null,a=0)})},destroy:function(){u(),o.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:n,render:r}}(r,o,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(ie),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:i,dragHandler:s,animation:a,eventHandler:l,options:{loop:c}},u)=>{const d=e.velocity(),p=e.settled();p&&!s.pointerDown()&&(a.stop(),l.emit("settle")),p||l.emit("scroll"),r.set(n.get()-d+d*u),c&&(o.loop(e.direction()),i.loop()),t.to(r.get())})(ie,e)),K=F[z.get()],J=Ro(K),W=Ro(K),Y=Ro(K),Q=function(e,t,n,r){let o=0,i=0,s=r,a=.68,l=e.get(),c=0;function u(e){return s=e,p}function d(e){return a=e,p}const p={direction:function(){return i},duration:function(){return s},velocity:function(){return o},seek:function(){const t=n.get()-e.get();let r=0;return s?(o+=t/s,o*=a,l+=o,e.add(o),r=l-c):(o=0,e.set(n),r=t),i=bo(r),c=l,p},settled:function(){return wo(n.get()-t.get())<.001},useBaseFriction:function(){return d(.68)},useBaseDuration:function(){return u(r)},useFriction:d,useDuration:u};return p}(J,W,Y,p),X=function(e,t,n,r,o){const{reachedAny:i,removeOffset:s,constrain:a}=r;function l(e){return e.concat().sort((e,t)=>wo(e)-wo(t))[0]}function c(t,r){const o=[t,t+n,t-n];if(!e)return t;if(!r)return l(o);const i=o.filter(e=>bo(e)===r);return i.length?l(i):So(o)-n}return{byDistance:function(n,r){const l=o.get()+n,{index:u,distance:d}=function(n){const r=e?s(n):a(n),o=t.map((e,t)=>({diff:c(e-r,0),index:t})).sort((e,t)=>wo(e.diff)-wo(t.diff)),{index:i}=o[0];return{index:i,distance:r}}(l),p=!e&&i(l);return!r||p?{index:u,distance:n}:{index:u,distance:n+c(t[u]-d,0)}},byIndex:function(e,n){return{index:e,distance:c(t[e]-o.get(),n)}},shortcut:c}}(d,F,V,j,Y),$=function(e,t,n,r,o,i,s){function a(o){const a=o.distance,l=o.index!==t.get();i.add(a),a&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(o.index),s.emit("select"))}const l={distance:function(e,t){a(o.byDistance(e,t))},index:function(e,n){const r=t.clone().set(e);a(o.byIndex(r.get(),n))}};return l}(G,z,q,Q,X,Y,s),ee=function(e){const{max:t,length:n}=e,r={get:function(e){return n?(e-t)/-n:0}};return r}(j),te=To(),ne=function(e,t,n,r){const o={};let i,s=null,a=null,l=!1;return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{const n=t.indexOf(e.target);o[n]=e}),s=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&s)return s;if(!e&&a)return a;const t=function(e){return Eo(o).reduce((t,n)=>{const r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t},[])}(e);return e&&(s=t),e||(a=t),t}}}(t,n,s,m),{slideRegistry:re}=function(e,t,n,r,o,i){const{groupSlides:s}=o,{min:a,max:l}=r;return{slideRegistry:function(){const r=s(i);return 1===n.length?[i]:e&&"keepSnaps"!==t?r.slice(a,l).map((e,t,n)=>{const r=!t,o=Io(n,t);return r?ko(So(n[0])+1):o?ko(Ao(i)-So(n)[0]+1,So(n)[0]):e}):r}()}}(P,y,F,H,U,Z),oe=function(e,t,n,r,o,i,s){let a=0;function l(e){"Tab"===e.code&&(a=(new Date).getTime())}function c(l){i.add(l,"focus",()=>{if((new Date).getTime()-a>10)return;e.scrollLeft=0;const i=t.indexOf(l),c=n.findIndex(e=>e.includes(i));go(c)&&(o.useDuration(0),r.index(c,0),s.emit("slideFocus"))},{passive:!0,capture:!0})}return{init:function(){i.add(document,"keydown",l,!1),t.forEach(c)}}}(e,n,re,$,Q,te,s),ie={ownerDocument:r,ownerWindow:o,eventHandler:s,containerRect:x,slideRects:S,animation:G,axis:A,dragHandler:Lo(A,e,r,o,Y,Uo(A,o),J,G,$,Q,X,z,s,k,h,f,v,.68,b),eventStore:te,percentOfView:k,index:z,indexPrevious:q,limit:j,location:J,offsetLocation:W,options:i,resizeHandler:Oo(t,s,o,n,A,_,C),scrollBody:Q,scrollBounds:Bo(j,W,Y,Q,k),scrollLooper:Vo(V,j,W,[J,W,Y]),scrollProgress:ee,scrollSnapList:F.map(ee.get),scrollSnaps:F,scrollTarget:X,scrollTo:$,slideLooper:Fo(A,I,V,T,D,O,F,W,n),slideFocus:oe,slidesHandler:jo(t,s,w),slidesInView:ne,slideIndexes:Z,slideRegistry:re,slidesToScroll:U,target:Y,translate:Ho(A,t)};return ie}const qo={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};function Zo(e){function t(e,t){return Po(e,t||{})}const n={mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},o=Eo(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,o)},optionsMediaQueries:function(t){return t.map(e=>Eo(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}};return n}function Go(e,t,n){const r=e.ownerDocument,o=r.defaultView,i=Zo(o),s=function(e){let t=[];return{init:function(n,r){return t=r.filter(({options:t})=>!1!==e.optionsAtMedia(t).active),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){t=t.filter(e=>e.destroy())}}}(i),a=To(),l=function(){let e,t={};function n(e){return t[e]||[]}const r={init:function(t){e=t},emit:function(t){return n(t).forEach(n=>n(e,t)),r},off:function(e,o){return t[e]=n(e).filter(e=>e!==o),r},on:function(e,o){return t[e]=n(e).concat([o]),r},clear:function(){t={}}};return r}(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:p,off:h,emit:f}=l,m=I;let g,v,y,_,w=!1,b=c(qo,Go.globalOptions),C=c(b),x=[];function S(t){const n=zo(e,y,_,r,o,t,l);return t.loop&&!n.slideLooper.canLoop()?S(Object.assign({},t,{loop:!1})):n}function A(t,n){w||(b=c(b,t),C=u(b),x=n||x,function(){const{container:t,slides:n}=C,r=vo(t)?e.querySelector(t):t;y=r||e.children[0];const o=vo(n)?y.querySelectorAll(n):n;_=[].slice.call(o||y.children)}(),g=S(C),d([b,...x.map(({options:e})=>e)]).forEach(e=>a.add(e,"change",I)),C.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(),g.eventHandler.init(N),g.resizeHandler.init(N),g.slidesHandler.init(N),g.options.loop&&g.slideLooper.loop(),y.offsetParent&&_.length&&g.dragHandler.init(N),v=s.init(N,x)))}function I(e,t){const n=P();k(),A(c({startIndex:n},e),t),l.emit("reInit")}function k(){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 E(e,t,n){C.active&&!w&&(g.scrollBody.useBaseFriction().useDuration(!0===t?0:C.duration),g.scrollTo.index(e,n||0))}function P(){return g.index.get()}const N={canScrollNext:function(){return g.index.add(1).get()!==P()},canScrollPrev:function(){return g.index.add(-1).get()!==P()},containerNode:function(){return y},internalEngine:function(){return g},destroy:function(){w||(w=!0,a.clear(),k(),l.emit("destroy"),l.clear())},off:h,on:p,emit:f,plugins:function(){return v},previousScrollSnap:function(){return g.indexPrevious.get()},reInit:m,rootNode:function(){return e},scrollNext:function(e){E(g.index.add(1).get(),e,-1)},scrollPrev:function(e){E(g.index.add(-1).get(),e,1)},scrollProgress:function(){return g.scrollProgress.get(g.location.get())},scrollSnapList:function(){return g.scrollSnapList},scrollTo:E,selectedScrollSnap:P,slideNodes:function(){return _},slidesInView:function(){return g.slidesInView.get()},slidesNotInView:function(){return g.slidesInView.get(!1)}};return A(t,n),setTimeout(()=>l.emit("init"),0),N}Go.globalOptions=void 0;const Ko={prevBtnDisabled:!0,nextBtnDisabled:!0,selectedIndex:0,slidesInView:0,scrollSnaps:[]},Jo=(t={},n=[])=>{const[r,o]=function(e={},t=[]){const n=Bn(e),r=Bn(t),[o,i]=Ln(),[s,a]=Ln(),l=Rn(()=>{o&&o.reInit(n.current,r.current)},[o]);return Un(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&s){Go.globalOptions=void 0;const e=Go(s,n.current,r.current);return i(e),()=>e.destroy()}i(void 0)},[s,i]),Un(()=>{fo(n.current,e)||(n.current=e,l())},[e,l]),Un(()=>{(function(e,t){if(e.length!==t.length)return!1;const n=mo(e),r=mo(t);return n.every((e,t)=>fo(e,r[t]))})(r.current,t)||(r.current=t,l())},[t,l]),[a,o]}(t,n),[i,s]=Ln(Ko),a=Rn(t=>{s(n=>e({},n,{scrollSnaps:t.scrollSnapList()}))},[]),l=Rn(t=>{s(n=>e({},n,{selectedIndex:t.selectedScrollSnap(),prevBtnDisabled:!t.canScrollPrev(),nextBtnDisabled:!t.canScrollNext(),slidesInView:t.slidesInView().length}))},[]);return Un(()=>{o&&(a(o),l(o),o.on("reInit",a),o.on("reInit",l),o.on("select",l))},[o,a,l]),{state:i,carouselRef:r,carouselApi:o}};var Wo={embla:"_Pvt7E",embla__viewport:"_P1TJ-","full-width":"_NGHr2",vertical:"_Y8V-7",embla__container:"_ToW4D",embla__slide:"_A1U7V",embla__left_button:"_o4sKY",embla__right_button:"_BNA3x"};const Yo=()=>null,Qo=$n(nr(({slides:e,PrevButton:t,NextButton:n,className:r={},Footer:o=Yo,state:i,carouselRef:s,carouselApi:a,direction:l="horizontal",viewPortType:c="fit-content",height:u})=>{const{assetsAlignment:d="center"}=Br();return Zt("div",{"data-initialized":!!a},Zt("div",{style:{justifyContent:d},className:wt(Wo.embla,r.root)},Zt("div",{className:wt(Wo.embla__viewport,r.viewPort,Wo[l],Wo[c]),ref:s},Zt("div",{style:u?{height:u}:void 0,className:wt(Wo.embla__container,Wo[l],r.container)},e)),t&&Zt("div",{className:Wo.embla__left_button},Zt(t,{onClick:null==a?void 0:a.scrollPrev,isDisabled:i.prevBtnDisabled,isHidden:e.length<=1})),n&&Zt("div",{className:Wo.embla__right_button},Zt(n,{onClick:null==a?void 0:a.scrollNext,isDisabled:i.nextBtnDisabled,isHidden:e.length<=1}))),Zt(o,null))}));function Xo(e){return{onClick:e,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),null==e||e(t))}}}const $o=({disabled:t,display:n,onClick:r,className:o})=>Zt("span",e({style:{opacity:t?.3:1,display:n?"inline":"none",cursor:"pointer"}},Xo(r),{role:"button",className:o}),Zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",style:{transform:"rotate(180deg)"}},Zt("path",{d:"M7.03073 18.8841L7.03073 20.6958C7.03073 20.8528 7.2112 20.9395 7.33307 20.8434L17.8987 12.5911C17.9885 12.5213 18.0611 12.4319 18.1111 12.3297C18.161 12.2276 18.187 12.1154 18.187 12.0016C18.187 11.8879 18.161 11.7757 18.1111 11.6736C18.0611 11.5714 17.9885 11.482 17.8987 11.4122L7.33307 3.15985C7.20885 3.06376 7.03073 3.15047 7.03073 3.30751L7.03073 5.11923C7.03073 5.23407 7.08463 5.34422 7.1737 5.41454L15.6112 12.0005L7.1737 18.5888C7.08463 18.6591 7.03073 18.7692 7.03073 18.8841Z",fill:"black"}))),ei=({disabled:t,display:n,onClick:r,className:o})=>Zt("span",e({style:{opacity:t?.3:1,display:n?"inline":"none",cursor:"pointer"},className:o},Xo(r),{role:"button"}),Zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},Zt("path",{d:"M7.03073 18.8841L7.03073 20.6958C7.03073 20.8528 7.2112 20.9395 7.33307 20.8434L17.8987 12.5911C17.9885 12.5213 18.0611 12.4319 18.1111 12.3297C18.161 12.2276 18.187 12.1154 18.187 12.0016C18.187 11.8879 18.161 11.7757 18.1111 11.6736C18.0611 11.5714 17.9885 11.482 17.8987 11.4122L7.33307 3.15985C7.20885 3.06376 7.03073 3.15047 7.03073 3.30751L7.03073 5.11923C7.03073 5.23407 7.08463 5.34422 7.1737 5.41454L15.6112 12.0005L7.1737 18.5888C7.08463 18.6591 7.03073 18.7692 7.03073 18.8841Z",fill:"black"}))),ti=({product:t,variantExternalId:n})=>{const r=((e,t,n)=>Vn(()=>((e,t)=>{const n=e.variants.filter(e=>!!e.imageUrl&&+e.externalId===t);return n.length?n:(e=>e.imageUrls.map(e=>({id:e,imageUrl:e})))(e)})(e,t).map(t=>Zt("span",{key:t.id,className:wt("_to3Sf","_jy3dU",n)},Zt("img",{alt:`Product "${e.title}"`,src:ht(t.imageUrl,200),loading:"lazy",className:"_YJctT"}))),[e,t,n]))(t,n),o=Jo({duration:50});return Zt(Qo,e({},o,{slides:r,PrevButton:e=>Zt($o,{display:!e.isHidden,disabled:e.isDisabled,onClick:e.onClick}),NextButton:e=>Zt(ei,{display:!e.isHidden,disabled:e.isDisabled,onClick:e.onClick})}))},ni=({mediaItem:t,children:n})=>{const r=Vn(()=>t?(t=>{var n;const r=null==(n=t.products)?void 0:n[0];return e({mediaItemId:t.id,shoppableItemId:t.shoppableItemId},{influencerName:(i=t.influencer).accountName,influencerId:i.id,influencerProvider:i.provider},r?(e=>({productExternalId:e.externalId,productHandle:e.handle,productId:e.id,productPrice:e.price,productTitle:e.title,productType:"shopify"}))(r):{},t.customProduct?{productId:(o=t.customProduct).id,productTitle:o.title,productType:"custom"}:{});var o,i})(t):{},[t]);return Zt(Zr,{additionalFields:r},n)};var ri;function oi(e){for(var t=1;t{if(e)return t===ut.Stories?fi[n]:"250px"},gi=(e,t)=>{const n=Bn(!1);Un(()=>{let r;return e&&!n.current&&(r=t(),n.current=!0),r},[e])},vi=e=>{window.location.href=e},yi=(e,t)=>`https://${e}/products/${t}`,_i=()=>t=>{if(void 0===window.Shopify)return void Fe("Skipped saving Cart attributes on standalone",t);const n=e({aaaFakeEmptyAttributeToPrint:" "},t);try{!function(e){!function(e,t="shoppable"){const n=Object.entries(e).reduce((e,[n,r])=>{var o;return e[`${t}_${o=n,o.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}`]=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"1":"0";default:return JSON.stringify(e)}}(r),e},{}),r=new Blob([JSON.stringify({attributes:n})],{type:"application/json"});if(!navigator.sendBeacon("/cart/update.js",r))throw new Error("Cart was not updated")}(Object.entries(e).reduce((e,[t,n])=>(e[t]=n,e),{}))}(n),Fe("Cart note saved successfully",n)}catch(e){Fe("Error trying to update Cart",e)}},wi={arrowColor:"#000",aspectRatio:"instagramStory",autoplay:!1,borderRadius:10,brandingTheme:"light",designMode:!1,influencerInfo:!0,template:ut.Carousel,productID:[],playOnHover:!0,showBranding:!0,slideSize:"medium",platformType:"standalone_legacy",enableFocusTrap:!0},bi=(t,n)=>{const[r,o]=Ln(function(t,n){const r=!!t.autoplay;return t.isLegacyApi?e({abTestingControlWeight:0,abTestingEnabled:!1,abTestingExperimentWeight:0,abTestingParticipant:!1,arrowColor:"#000",aspectRatio:"instagramStory",autoplay:r,sourceType:"Collection",borderRadius:10,brandingTheme:"dark",designMode:!!t.designMode,interval:null,slideSize:"medium",showBranding:!0,playOnHover:!0,influencerInfo:!0,backgroundColor:"transparent",shopCurrency:"USD",shopUUID:n.data.shopUUID,collectionName:n.data.collectionName,assetsAlignment:"center"},t,{airtableIntegration:n.data.shopUUID===a}):e({},t,n.data.settings,{autoplay:r,collectionID:null,collectionName:n.data.collectionName,designMode:!!t.designMode,shopUUID:n.data.shopUUID,airtableIntegration:n.data.shopUUID===a})}(t,n));return Un(()=>{const t=t=>{const n=t;Fe(`Received "${to}" event:`,n.detail),o(t=>e({},t,n.detail))};return document.body.addEventListener(to,t),()=>{document.body.removeEventListener(to,t)}},[]),gi(!!n.data.shopUUID,()=>{o(r=>t.isLegacyApi?e({},r,{collectionID:n.data.collectionID,collectionName:n.data.collectionID,shopUUID:n.data.shopUUID,shopCurrency:"USD"},t.isShopify&&{shopDomain:n.data.shopifyDomain}):e({},r,n.data.settings,{collectionID:n.data.collectionID,collectionName:n.data.collectionID,shopUUID:n.data.shopUUID},t.isShopify&&{shopDomain:n.data.shopifyDomain},{template:"single"===r.template?"single":n.data.settings.template||r.template,abTestingControlWeight:n.data.abTestingControlWeight,abTestingEnabled:n.data.abTestingEnabled,abTestingExperimentWeight:n.data.abTestingExperimentWeight,abTestingParticipant:n.data.abTestingParticipant}))}),r},Ci="shoppable-popup-mode",xi=({children:e,playerDisplayMode:t})=>{const[n,r]=Ln(null);return Un(()=>{const e=document.querySelectorAll('*:is(link[href$="ugc_feed.css"])');Fe({styleElements:e});let n=document.getElementById("shoppables-root-modal");if(n||(n=document.createElement("div"),n.setAttribute("id","shoppables-root-modal"),document.body.appendChild(n)),n.shadowRoot)r(n.shadowRoot),e.forEach(e=>{var t;return null==(t=n)||null==(t=t.shadowRoot)?void 0:t.appendChild(e.cloneNode(!0))}),Fe("Shadow root created",n.shadowRoot);else{const t=n.attachShadow({mode:"open"});e.forEach(e=>t.appendChild(e.cloneNode(!0))),r(t),Fe("Shadow root created",t)}return"popup"===t&&n.classList.add(Ci),()=>{var e;n&&(null==(e=n.parentNode)||e.removeChild(n))}},[t]),n?hr(Zt("div",{id:"shoppables-root-modal",className:"popup"===t?Ci:void 0},e),n):null},Si=gn({}),Ai=$n(({children:e})=>{const[t,n]=Ln(null),r=Vn(()=>({state:t,setState:n,cleanState:()=>n(null)}),[t,n]);return Zt(Si.Provider,{value:r},e)}),Ii=()=>Hn(Si),ki=({description:e})=>Zt("span",{className:"_x0aX1"},e);var Ei={button:"_vCxXA",anchor:"_G7B8F",medium:"_CE4di",large:"_o3tgA",primary:"_G8ZV-",secondary:"_yiJnf",block:"_LVpPK"};const Pi=["size","children","onClick","type","className","block","href"],Ni=n=>{let{size:r="medium",children:o,onClick:i,type:s="primary",className:a="",block:l=!1,href:c}=n,u=t(n,Pi);const d=Zt("button",e({className:wt(a,Ei.button,Ei[r],Ei[s],{[Ei.block]:l})},Xo(i),u),o);return c?Zt("a",{target:"_blank",rel:"noreferrer",href:c,className:wt(Ei.anchor,{[Ei.block]:l})},d):d};var Ti="_2Ab6m";const Di=({className:e,value:t,setValue:n})=>{const r=e=>{t<2&&n(1),n(Math.round(e))};return Zt("span",{className:wt("_cRo45",e)},Zt(Ni,{className:Ti,onClick:()=>r(t-1),disabled:t<2,type:"secondary","data-testid":"minus"},Zt("div",{className:"_LCzkI"})),Zt("input",{value:t,type:"number","data-testid":"amountInputValue",min:1,className:wt("_dYXFU",Ti),onChange:e=>r(Number(e.target.value))}),Zt(Ni,{className:Ti,onClick:()=>r(t+1),type:"secondary","data-testid":"plus"},Zt("div",{className:"_zNn-8"})))};var Mi="_d2jXh";const Li=["label","onClick","underlined","className"],Ui=n=>{let{label:r,onClick:o,underlined:i=!1,className:s=""}=n,a=t(n,Li);return Zt("a",e({target:"_blank",rel:"noopener noreferrer",className:wt(s,"_toJTE",{[Mi]:i}),role:"presentation"},Xo(o),a),r)},Oi=()=>{};function Bi(e,t=Oi){Un(()=>{const n=[e].flat(),r=e=>{n.includes(e.code)&&t(e)};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[e,t])}const Vi=(e=!1)=>{const[t,n]=Ln(e),r=Rn(e=>n(t=>null!=e?e:!t),[]);return[t,r]},Ri=()=>Zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},Zt("path",{d:"M13.8125 4H12.6406C12.561 4 12.486 4.03906 12.4391 4.10313L8.00002 10.2219L3.56095 4.10313C3.51408 4.03906 3.43908 4 3.35939 4H2.18751C2.08595 4 2.02658 4.11563 2.08595 4.19844L7.59533 11.7937C7.79533 12.0687 8.2047 12.0687 8.40314 11.7937L13.9125 4.19844C13.9735 4.11563 13.9141 4 13.8125 4Z",fill:"black","fill-opacity":"0.88"}));var Hi="_DldN2",Fi="_pe7Q4",ji="_CrrWf",zi="_nwAAs";const qi=({value:t,onChange:n,options:r,className:o,defaultOpen:i=!1})=>{var s;const[a,l]=Vi(i),[c,u]=Ln(0),d=Bn(null),p=null==(s=r.find(e=>e.value===t))?void 0:s.label,h=Rn(e=>{e.value!==t&&n(e.value)},[t,n]);function f(e){return e.value===t}return Un(()=>{a&&u(0)},[a]),Bi(["Enter","Space"],e=>{const t=d.current;t&&e.target==t&&(e.preventDefault(),l(),a&&h(r[c]))}),Bi(["ArrowUp","ArrowDown"],e=>{const t=d.current;if(!t)return;if(e.target!=t)return;a||l(!0);const n=c+("ArrowDown"===e.code?1:-1);n>=0&&n{const t=d.current;t&&e.target==t&&l(!1)}),Zt("section",{className:"_xfetW"},Zt("header",e({ref:d,tabIndex:0,role:"list","aria-label":"Select Item",className:wt("_6rWU8",o,{[Hi]:a})},Xo(()=>l())),Zt("div",{className:wt("_LCKxf",{[Hi]:a})},Zt("span",{className:"_M4Lwb"},p),Zt("div",{className:"_fReLs"},Zt(Ri,null)))),Zt("ul",{className:wt("_P6gxK",{[Fi]:a}),role:"presentation"},r.map((t,n)=>Zt("li",e({},Xo(e=>{e.stopPropagation(),h(t),l(!1)}),{onMouseEnter:()=>u(n),key:n,className:wt("_b1GNe","_vRimL",{[ji]:f(t),[zi]:n===c})}),t.label))))},Zi={[io.ProductPage]:async(e,t,n,r=1)=>{vi(((e,t,n)=>`https://${n}/products/${t.handle}?variant=${e}`)(e,t,n))},[io.Cart]:async(e,t,n,r=1)=>{await(async(e,t,n=1)=>{const r=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,quantity:n})});if(!r.ok)throw new Error("Failed to add product to cart");return r.json()})(e,0,r)},[io.Checkout]:async(e,t,n,r=1)=>{vi(((e,t,n=1)=>`https://${t}/cart/${e}:${n}`)(e,n,r))}},Gi=(e,t,n,r,o=1)=>()=>Zi[e](t,n,r,o);var Ki={container:"_leILP",controls:"_XwgJr",titleGroup:"_kyBLg",buttonGroup:"_jFgKN"};const Ji=({shopifyDomain:e,product:t,variantExternalId:n,setVariantExternalId:r,productLinkType:o,backgroundColor:i,textColor:s})=>{const a=(e=>{var t;return((null==e||null==(t=e.variants)?void 0:t.length)||0)<2?[{value:+e.defaultVariantId,label:e.title}]:e.variants.map(e=>({value:+e.externalId,label:e.title}))})(t),[l,c]=Ln(1),u=((e,t,n)=>{const r=e.variants.find(e=>+e.externalId===n);return r?Number(r.price)*t:(Fe(`Variant with externalId=${n} not found`,e.variants.map(e=>e.externalId)),Number(e.price)*t)})(t,l,n),d=Gr(),p=Gi(o,n,t,e,l),h=Gi(io.ProductPage,n,t,e);return Zt("div",{className:Ki.container},Zt("div",null,Zt("div",{className:Ki.titleGroup},Zt(po,{product:t}),Zt(co,{price:u})),Zt("div",{className:Ki.controls},Zt(qi,{options:a,value:n,className:Ki.select,onChange:e=>{e&&r(Number(e))}}),Zt(Di,{value:l,setValue:c})),t.description&&Zt(ki,{description:t.description})),Zt("div",{className:Ki.buttonGroup},Zt(Ni,{type:"primary",block:!0,size:"large",onClick:async()=>{await p(),d("Product Variant Buy Now Clicked",{shopifyDomain:e,productLinkType:o})},style:{backgroundColor:i,color:s}},"Buy Now"),Zt(Ui,{label:"Learn More",onClick:async()=>{await h(),d("Product Variant Learn More Clicked",{shopifyDomain:e,productLinkType:o})}})))},Wi=({onClick:t,className:n,disabled:r})=>Zt("span",e({className:n},Xo(t),{style:{height:"32px",width:"32px"},tabIndex:r?-1:0,role:"button","aria-label":"Exit"}),Zt("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",boxShadow:"0px 2px 0px 0px rgba(255, 255, 255, 0.04)"}},Zt("g",{filter:"url(#filter0_d_1045_257)"},Zt("rect",{width:"32",height:"32",rx:"10",fill:"black",fillOpacity:"0.85",shapeRendering:"crispEdges"}),Zt("path",{d:"M16.8092 16L20.9108 11.1109C20.9796 11.0297 20.9217 10.9062 20.8155 10.9062H19.5686C19.4952 10.9062 19.4249 10.9391 19.3764 10.9953L15.9936 15.0281L12.6108 10.9953C12.5639 10.9391 12.4936 10.9062 12.4186 10.9062H11.1717C11.0655 10.9062 11.0077 11.0297 11.0764 11.1109L15.178 16L11.0764 20.8891C11.061 20.9072 11.0511 20.9293 11.048 20.9529C11.0448 20.9764 11.0484 21.0004 11.0584 21.022C11.0685 21.0435 11.0845 21.0617 11.1046 21.0745C11.1247 21.0872 11.148 21.0939 11.1717 21.0938H12.4186C12.4921 21.0938 12.5624 21.0609 12.6108 21.0047L15.9936 16.9719L19.3764 21.0047C19.4233 21.0609 19.4936 21.0938 19.5686 21.0938H20.8155C20.9217 21.0938 20.9796 20.9703 20.9108 20.8891L16.8092 16Z",fill:"white"})),Zt("defs",null,Zt("filter",{id:"filter0_d_1045_257",x:"0",y:"0",width:"32",height:"32",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},Zt("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Zt("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),Zt("feOffset",{dy:"2"}),Zt("feComposite",{in2:"hardAlpha",operator:"out"}),Zt("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"}),Zt("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1045_257"}),Zt("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1045_257",result:"shape"})))));var Yi="_MRAD0";const Qi=["onClose","product","noBorderRadius"],Xi=n=>{let{onClose:r,product:o,noBorderRadius:i}=n,s=t(n,Qi);const[a,l]=Ln(s.variantExternalId||+o.defaultVariantId);return Zt("div",{className:wt("_tp3Ib",{[Yi]:!!i})},Zt(Wi,{onClick:r,className:"_Je4Ob"}),Zt(ti,{product:o,variantExternalId:a}),Zt(Ji,e({product:o},s,{setVariantExternalId:l,variantExternalId:a})))},$i="undefined"!=typeof window?On:Un;function es(e,t){const n=ns(e),r=ns(t),o=Math.max(n,r);return ts(n,o)-ts(r,o)}function ts(e,t){if(e<0)throw new Error(`Unable to sort given input. A negative value is not part of the tab order: ${e}`);return 0===e?t+1:e}function ns(e){return parseInt(e.getAttribute("tabindex"),10)||0}function rs({itemIndex:e,itemsCount:t,fetchMore:n,hasMoreData:r,visibleItemsCount:o}){((e,t,n=[])=>{const r=Bn(!1);Un(()=>{if(!r.current)return void(r.current=!0);const n=setTimeout(()=>{e()},t);return()=>{clearTimeout(n)}},[t,...n])})(()=>{(e+5>=t||o+5>=t)&&r&&n()},300,[e,t,n,r])}const os=["onClick","className","disabled"],is=n=>{let{onClick:r,className:o,disabled:i=!1}=n,s=t(n,os);return Zt("span",e({className:o,style:{height:"32px",width:"32px"}},Xo(r),s),Zt("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{opacity:i?.3:1}},Zt("g",{filter:"url(#filter0_d_1151_11864)"},Zt("rect",{width:"32",height:"32",rx:"8",fill:"black",fillOpacity:"0.85",shapeRendering:"crispEdges"}),Zt("path",{d:"M21.8126 12H20.6407C20.561 12 20.486 12.0391 20.4391 12.1031L16.0001 18.2219L11.561 12.1031C11.5141 12.0391 11.4391 12 11.3595 12H10.1876C10.086 12 10.0266 12.1156 10.086 12.1984L15.5954 19.7937C15.7954 20.0687 16.2048 20.0687 16.4032 19.7937L21.9126 12.1984C21.9735 12.1156 21.9141 12 21.8126 12Z",fill:"white"})),Zt("defs",null,Zt("filter",{id:"filter0_d_1151_11864",x:"0",y:"0",width:"32",height:"32",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},Zt("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Zt("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),Zt("feOffset",{dy:"2"}),Zt("feComposite",{in2:"hardAlpha",operator:"out"}),Zt("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"}),Zt("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1151_11864"}),Zt("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1151_11864",result:"shape"})))))},ss=["onClick","className","disabled"],as=n=>{let{onClick:r,className:o,disabled:i=!1}=n,s=t(n,ss);return Zt("span",e({className:o,style:{height:"32px",width:"32px"}},Xo(r),s),Zt("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{opacity:i?.3:1}},Zt("g",{filter:"url(#filter0_d_1151_11868)"},Zt("rect",{width:"32",height:"32",rx:"8",fill:"black",fillOpacity:"0.85",shapeRendering:"crispEdges"}),Zt("path",{d:"M21.9135 19.8016L16.4041 12.2063C16.2041 11.9313 15.7947 11.9313 15.5963 12.2063L10.0854 19.8016C10.0718 19.8202 10.0637 19.8423 10.0619 19.8653C10.0601 19.8883 10.0647 19.9114 10.0753 19.932C10.0858 19.9525 10.1018 19.9697 10.1215 19.9817C10.1412 19.9938 10.1638 20.0001 10.1869 20H11.3588C11.4385 20 11.5135 19.9609 11.5604 19.8969L15.9994 13.7781L20.4385 19.8969C20.4854 19.9609 20.5604 20 20.6401 20H21.8119C21.9135 20 21.9729 19.8844 21.9135 19.8016Z",fill:"white"})),Zt("defs",null,Zt("filter",{id:"filter0_d_1151_11868",x:"0",y:"0",width:"32",height:"32",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},Zt("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Zt("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),Zt("feOffset",{dy:"2"}),Zt("feComposite",{in2:"hardAlpha",operator:"out"}),Zt("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"}),Zt("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1151_11868"}),Zt("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1151_11868",result:"shape"})))))};function ls(e){var t;const n=e,[r,o]=Ln((null==(t=n.current)?void 0:t.offsetHeight)||0);return Un(()=>{function e(){n.current&&o(n.current.offsetHeight)}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[n]),r}const cs=({progress:e})=>{const t=Bn(null);return Un(()=>{const n=t.current;e<=1&&n&&(n.style.transition="none",getComputedStyle(n).getPropertyValue("width"),n.style.transition="")},[e]),Zt("div",{className:"_rLYIo","data-chromatic":"ignore"},Zt("div",{ref:t,className:wt("_YbMtm",{}),style:{width:`${e}%`}}))},us=()=>Zt("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("path",{d:"M24 0C10.7464 0 0 10.7464 0 24C0 37.2536 10.7464 48 24 48C37.2536 48 48 37.2536 48 24C48 10.7464 37.2536 0 24 0ZM31.7196 24.3696L20.0196 32.8821C19.9555 32.9282 19.8799 32.9558 19.8011 32.9617C19.7224 32.9676 19.6435 32.9517 19.5732 32.9157C19.5029 32.8797 19.4438 32.825 19.4026 32.7577C19.3613 32.6903 19.3394 32.6129 19.3393 32.5339V15.5196C19.339 15.4405 19.3607 15.3628 19.4019 15.2952C19.4431 15.2277 19.5021 15.1728 19.5726 15.1367C19.643 15.1007 19.7221 15.0848 19.801 15.091C19.8799 15.0971 19.9556 15.1249 20.0196 15.1714L31.7196 23.6786C31.7749 23.7177 31.82 23.7694 31.8511 23.8296C31.8822 23.8897 31.8985 23.9564 31.8985 24.0241C31.8985 24.0918 31.8822 24.1585 31.8511 24.2186C31.82 24.2788 31.7749 24.3306 31.7196 24.3696Z",fill:"black","fill-opacity":"0.45"})),ds=()=>Zt("div",{className:"_H05T-","data-testid":"shoppable-play-button"},Zt(us,null)),ps=e=>e?Math.ceil(e.size/1024):0,hs=["alt","srcSet","onLoad","everInView","height","noCors"],fs=new Map,ms=$n(n=>{let{alt:r,srcSet:o,onLoad:i,everInView:a=!0,height:l,noCors:c}=n,u=t(n,hs);const d=Bn(null),{isLegacyApi:p}=Br();var h,f,m;return f=()=>{const e="string"==typeof o?o:function(e,t,n=!1){const r=t*at(),{srcXss:o,srcXs:i,srcSm:a,srcMd:l,srcLg:c}=e;if(!r)return n||(st.addBreadcrumb({data:e,message:"srcSet"}),Fe(`getImageSrc: height: ${r}`)),l;switch(!0){case r>=768:return c;case r>=s:return l;case r>=320:return a;case r>=240:return i;default:return o}}(o,l,p);if(fs.has(e)){const t=fs.get(e);d.current&&(d.current.src=t,d.current.dataset.src=e),null==i||i(t.size,e)}else(async(e,t)=>{const n=await fetch(e,{cache:"force-cache",mode:t?"no-cors":void 0});if(!n.ok)throw new Error("Network response was not ok");const r=await n.blob();return{objectUrl:URL.createObjectURL(r),blobSize:ps(r)}})(e,c).then(t=>{fs.set(e,t.objectUrl),null==i||i(t.blobSize,e),d.current&&(d.current.src=t.objectUrl,d.current.dataset.src=e)}).catch(t=>{_t(t,`There was a problem fetching the content: ${e}`)})},m=[i,o,l,c],Un(()=>h?f():void 0,[h=a,...m]),Zt("img",e({ref:d,alt:r},u))});var gs="_bVY5H";const vs=$n(({alt:e,aspectRatio:t,everInView:n=!0,fetchPriority:r="high",height:o,showPlayIcon:i=!1,src:s,className:a,fallback:l})=>{const{increaseImagesEngaged:c}=Nr(),[u,d]=Ln(!1),{airtableIntegration:p}=Br(),h=Kr(),f=n||"high"===r?"eager":"lazy",m=Vn(()=>((e,t)=>({srcXss:pt(e,240,t),srcXs:pt(e,360,t),srcSm:pt(e,480,t),srcMd:pt(e,576,t),srcLg:pt(e,720,t)}))(s,t),[t,s]),g=Rn((e,t)=>{!n&&h({type:"image",url:t,originalUrl:s,isPreview:!1,blobSize:e}),d(!0),c()},[s,n,c,h]);return p&&s.includes("cdninstagram.com")?Zt("div",{className:wt(gs,a)},Zt("img",{alt:e,style:{width:"100%"},src:m.srcXs,loading:f,draggable:!1})):Zt("div",{className:wt(gs,a)},!u&&l,Zt(ms,{alt:e,style:{height:"100%"},srcSet:m,everInView:n,loading:f,height:o,fetchpriority:r,onLoad:g,draggable:!1,noCors:p}),i&&Zt(ds,null))}),ys=(e,t,n=50)=>{const r=Rn(()=>{const{current:r}=e;if(!r)return;let o=!1;const i=()=>{o=!0},s=()=>{o||setTimeout(t,n),r.removeEventListener("mousemove",i),r.removeEventListener("mouseup",s)};r.addEventListener("mousemove",i),r.addEventListener("mouseup",s)},[t,n]);Un(()=>{const t=e.current;if(t)return t.addEventListener("mousedown",r),()=>t.removeEventListener("mousedown",r)},[r])};var _s="_gKUxz";const ws=["disabled"],bs=n=>{let{disabled:r=!1}=n,o=t(n,ws);const i=e({className:_s},o);return Zt("span",e({},i),r?Zt("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("g",{filter:"url(#filter0_d_1187_29476)"},Zt("rect",{width:"32",height:"32",rx:"8",fill:"black","fill-opacity":"0.85","shape-rendering":"crispEdges"}),Zt("path",{d:"M19.7797 9.79688C19.6875 9.79688 19.5937 9.82188 19.5078 9.87969L13.9687 13.5H11.4062C11.2687 13.5 11.1562 13.6125 11.1562 13.75V18.25C11.1562 18.3875 11.2687 18.5 11.4062 18.5H13.9687L19.5078 22.1203C19.5937 22.1766 19.6891 22.2031 19.7797 22.2031C20.0406 22.2031 20.2812 21.9953 20.2812 21.7016V10.2984C20.2812 10.0047 20.0406 9.79688 19.7797 9.79688ZM19.1562 20.5469L14.5844 17.5578L14.3031 17.375H12.2812V14.625H14.3031L19.1562 11.4531V20.5469Z",fill:"white"}),Zt("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.8047 11.1381L13.1381 21.8047L12.1953 20.8619L22.8619 10.1953L23.8047 11.1381Z",fill:"white"})),Zt("defs",null,Zt("filter",{id:"filter0_d_1187_29476",x:"0",y:"0",width:"32",height:"34",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},Zt("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),Zt("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),Zt("feOffset",{dy:"2"}),Zt("feComposite",{in2:"hardAlpha",operator:"out"}),Zt("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"}),Zt("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1187_29476"}),Zt("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1187_29476",result:"shape"})))):Zt("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("g",{filter:"url(#filter0_d_1153_332)"},Zt("rect",{width:"32",height:"32",rx:"8",fill:"black",fillOpacity:"0.85",shapeRendering:"crispEdges"}),Zt("path",{d:"M17.7797 9.79688C17.6875 9.79688 17.5938 9.82188 17.5078 9.87969L11.9688 13.5H9.40625C9.26875 13.5 9.15625 13.6125 9.15625 13.75V18.25C9.15625 18.3875 9.26875 18.5 9.40625 18.5H11.9688L17.5078 22.1203C17.5938 22.1766 17.6891 22.2031 17.7797 22.2031C18.0406 22.2031 18.2812 21.9953 18.2812 21.7016V10.2984C18.2812 10.0047 18.0406 9.79688 17.7797 9.79688ZM17.1562 20.5469L12.5844 17.5578L12.3031 17.375H10.2812V14.625H12.3031L12.5828 14.4422L17.1562 11.4531V20.5469ZM22.5938 15.4375H20.5938C20.4563 15.4375 20.3438 15.55 20.3438 15.6875V16.3125C20.3438 16.45 20.4563 16.5625 20.5938 16.5625H22.5938C22.7312 16.5625 22.8438 16.45 22.8438 16.3125V15.6875C22.8438 15.55 22.7312 15.4375 22.5938 15.4375ZM21.9391 19.5281L20.2156 18.5328C20.1873 18.5166 20.1561 18.5061 20.1237 18.502C20.0913 18.4978 20.0585 18.5001 20.027 18.5087C19.9955 18.5172 19.966 18.5319 19.9402 18.5519C19.9144 18.5718 19.8928 18.5967 19.8766 18.625L19.5656 19.1641C19.4969 19.2828 19.5375 19.4359 19.6562 19.5047L21.3797 20.5C21.408 20.5162 21.4392 20.5267 21.4716 20.5308C21.504 20.535 21.5368 20.5327 21.5683 20.5241C21.5998 20.5156 21.6293 20.5009 21.6551 20.4809C21.6809 20.461 21.7025 20.4361 21.7188 20.4078L22.0297 19.8687C22.0984 19.75 22.0562 19.5969 21.9391 19.5281ZM19.875 13.375C19.8912 13.4033 19.9128 13.4282 19.9386 13.4481C19.9645 13.4681 19.994 13.4828 20.0254 13.4913C20.0569 13.4999 20.0898 13.5022 20.1222 13.498C20.1545 13.4939 20.1857 13.4834 20.2141 13.4672L21.9375 12.4719C22.0562 12.4031 22.0969 12.25 22.0281 12.1312L21.7188 11.5938C21.7025 11.5654 21.6809 11.5406 21.6551 11.5206C21.6293 11.5007 21.5998 11.486 21.5683 11.4774C21.5368 11.4689 21.504 11.4666 21.4716 11.4707C21.4392 11.4749 21.408 11.4853 21.3797 11.5016L19.6562 12.4969C19.5992 12.5301 19.5576 12.5847 19.5406 12.6485C19.5237 12.7123 19.5326 12.7803 19.5656 12.8375L19.875 13.375Z",fill:"white"})),Zt("defs",null,Zt("filter",{id:"filter0_d_1153_334",x:"0",y:"0",width:"32",height:"32",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},Zt("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Zt("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),Zt("feOffset",{dy:"2"}),Zt("feComposite",{in2:"hardAlpha",operator:"out"}),Zt("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"}),Zt("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1153_334"}),Zt("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1153_334",result:"shape"})))))},Cs=t=>{let n=e({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(t),t));return Zt("svg",e({version:"1.1",id:"L9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100",enableBackground:"new 0 0 0 0",xmlSpace:"preserve"},n),Zt("path",{fill:"#fff",d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},Zt("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})))},xs=["disabled","onClick"],Ss=n=>{let{disabled:r=!1,onClick:o}=n,i=t(n,xs);const s=e({className:_s},Xo(o),i);return Zt("span",e({},s),r?Zt("svg",{width:"32",height:"35",viewBox:"0 0 32 35",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("g",{filter:"url(#filter0_d_2622_18414)"},Zt("rect",{width:"32",height:"32",rx:"8",fill:"black","fill-opacity":"0.85","shape-rendering":"crispEdges"}),Zt("g",{"clip-path":"url(#clip0_2622_18414)"},Zt("path",{d:"M23.3785 12.9C22.9749 11.9411 22.3963 11.0804 21.6589 10.3411C20.9265 9.60607 20.0572 9.02182 19.1 8.62143C18.1178 8.20893 17.075 8 16 8H15.9643C14.8822 8.00536 13.834 8.21964 12.8483 8.64107C11.8993 9.04557 11.038 9.63085 10.3126 10.3643C9.58222 11.1018 9.00902 11.9589 8.61259 12.9143C8.20188 13.9036 7.99474 14.9554 8.0001 16.0375C8.00616 17.2776 8.29955 18.4995 8.85723 19.6071V22.3214C8.85723 22.5393 8.94378 22.7482 9.09782 22.9023C9.25187 23.0563 9.4608 23.1429 9.67865 23.1429H12.3947C13.5023 23.7006 14.7242 23.9939 15.9643 24H16.0018C17.0714 24 18.1089 23.7929 19.0857 23.3875C20.038 22.9919 20.9042 22.4144 21.6356 21.6875C22.3731 20.9571 22.9535 20.1036 23.3588 19.1518C23.7803 18.1661 23.9945 17.1179 23.9999 16.0357C24.0053 14.9482 23.7945 13.8929 23.3785 12.9ZM20.6803 20.7214C19.4285 21.9607 17.7678 22.6429 16 22.6429H15.9696C14.8929 22.6375 13.8232 22.3696 12.8786 21.8661L12.7286 21.7857H10.2144V19.2714L10.134 19.1214C9.63044 18.1768 9.36258 17.1071 9.35723 16.0304C9.35008 14.25 10.0304 12.5786 11.2786 11.3196C12.525 10.0607 14.1911 9.36429 15.9714 9.35714H16.0018C16.8946 9.35714 17.7607 9.53036 18.5768 9.87321C19.3732 10.2071 20.0875 10.6875 20.7017 11.3018C21.3142 11.9143 21.7964 12.6304 22.1303 13.4268C22.4767 14.2518 22.6499 15.1268 22.6463 16.0304C22.6356 17.8089 21.9374 19.475 20.6803 20.7214Z",fill:"white"}),Zt("path",{d:"M14.7011 15.1464C14.6386 14.3714 14.7428 13.8432 13.9146 13.8432C12.8959 13.8432 12.986 14.601 12.9844 15.9604V16.1156C12.9844 17.4547 12.8928 18.2031 13.9131 18.2031C14.7396 18.2031 14.6339 17.7078 14.6995 16.9875C14.7058 16.9234 14.7589 16.8734 14.8245 16.8734H15.712C15.7527 16.8734 15.7855 16.9062 15.7855 16.9469C15.7855 18.2375 15.3787 19.1563 13.91 19.1563C12.1928 19.1563 11.8688 18.0125 11.8688 16.1109V15.9604C11.8688 14.0448 12.1928 12.8854 13.91 12.8854C15.3834 12.8854 15.7855 13.8339 15.7855 15.1885C15.7855 15.2292 15.7527 15.262 15.712 15.262H14.8261C14.7605 15.262 14.7058 15.212 14.7011 15.1464Z",fill:"white"}),Zt("path",{d:"M19.1656 15.1464C19.1031 14.3714 19.2073 13.8432 18.3791 13.8432C17.3604 13.8432 17.4505 14.601 17.4489 15.9604V16.1156C17.4489 17.4547 17.3573 18.2031 18.3776 18.2031C19.2041 18.2031 19.0984 17.7078 19.164 16.9875C19.1703 16.9234 19.2234 16.8734 19.289 16.8734H20.1765C20.2172 16.8734 20.25 16.9062 20.25 16.9469C20.25 18.2375 19.8432 19.1563 18.3745 19.1563C16.6573 19.1563 16.3333 18.0125 16.3333 16.1109V15.9604C16.3333 14.0448 16.6573 12.8854 18.3745 12.8854C19.8479 12.8854 20.25 13.8339 20.25 15.1885C20.25 15.2292 20.2172 15.262 20.1765 15.262H19.2906C19.225 15.262 19.1703 15.212 19.1656 15.1464Z",fill:"white"}),Zt("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.3645 21.1929L10.3073 10.7502L11.2501 9.80737L21.3073 20.2501L20.3645 21.1929Z",fill:"white"}))),Zt("defs",null,Zt("filter",{id:"filter0_d_2622_18414",x:"0",y:"0",width:"32",height:"35",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},Zt("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),Zt("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),Zt("feOffset",{dy:"2"}),Zt("feComposite",{in2:"hardAlpha",operator:"out"}),Zt("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"}),Zt("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2622_18414"}),Zt("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2622_18414",result:"shape"})),Zt("clipPath",{id:"clip0_2622_18414"},Zt("rect",{width:"16",height:"16",fill:"white",transform:"translate(8 8)"})))):Zt("svg",{width:"32",height:"35",viewBox:"0 0 32 35",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("g",{filter:"url(#filter0_d_2622_16790)"},Zt("rect",{y:"0.333252",width:"32",height:"32",rx:"8",fill:"black","fill-opacity":"0.85","shape-rendering":"crispEdges"}),Zt("g",{"clip-path":"url(#clip0_2622_16790)"},Zt("path",{d:"M23.3785 13.2333C22.9749 12.2743 22.3963 11.4136 21.6589 10.6743C20.9265 9.93932 20.0572 9.35508 19.1 8.95468C18.1178 8.54218 17.075 8.33325 16 8.33325H15.9643C14.8822 8.33861 13.834 8.55289 12.8483 8.97432C11.8993 9.37883 11.038 9.9641 10.3126 10.6975C9.58222 11.435 9.00902 12.2922 8.61259 13.2475C8.20188 14.2368 7.99474 15.2886 8.0001 16.3708C8.00616 17.6109 8.29955 18.8327 8.85723 19.9404V22.6547C8.85723 22.8725 8.94378 23.0815 9.09782 23.2355C9.25187 23.3896 9.4608 23.4761 9.67865 23.4761H12.3947C13.5023 24.0338 14.7242 24.3272 15.9643 24.3333H16.0018C17.0714 24.3333 18.1089 24.1261 19.0857 23.7208C20.038 23.3251 20.9042 22.7477 21.6356 22.0208C22.3731 21.2904 22.9535 20.4368 23.3588 19.485C23.7803 18.4993 23.9945 17.4511 23.9999 16.369C24.0053 15.2815 23.7945 14.2261 23.3785 13.2333ZM20.6803 21.0547C19.4285 22.294 17.7678 22.9761 16 22.9761H15.9696C14.8929 22.9708 13.8232 22.7029 12.8786 22.1993L12.7286 22.119H10.2144V19.6047L10.134 19.4547C9.63044 18.51 9.36258 17.4404 9.35723 16.3636C9.35008 14.5833 10.0304 12.9118 11.2786 11.6529C12.525 10.394 14.1911 9.69754 15.9714 9.69039H16.0018C16.8946 9.69039 17.7607 9.86361 18.5768 10.2065C19.3732 10.5404 20.0875 11.0208 20.7017 11.635C21.3142 12.2475 21.7964 12.9636 22.1303 13.76C22.4767 14.585 22.6499 15.46 22.6463 16.3636C22.6356 18.1422 21.9374 19.8083 20.6803 21.0547Z",fill:"white"}),Zt("path",{d:"M14.7011 15.4796C14.6386 14.7046 14.7428 14.1765 13.9146 14.1765C12.8959 14.1765 12.986 14.9343 12.9844 16.2937V16.4489C12.9844 17.7879 12.8928 18.5364 13.9131 18.5364C14.7396 18.5364 14.6339 18.0411 14.6995 17.3208C14.7058 17.2567 14.7589 17.2067 14.8245 17.2067H15.712C15.7527 17.2067 15.7855 17.2395 15.7855 17.2801C15.7855 18.5708 15.3787 19.4895 13.91 19.4895C12.1928 19.4895 11.8688 18.3458 11.8688 16.4442V16.2937C11.8688 14.378 12.1928 13.2187 13.91 13.2187C15.3834 13.2187 15.7855 14.1671 15.7855 15.5218C15.7855 15.5624 15.7527 15.5952 15.712 15.5952H14.8261C14.7605 15.5952 14.7058 15.5452 14.7011 15.4796Z",fill:"white"}),Zt("path",{d:"M19.1656 15.4796C19.1031 14.7046 19.2073 14.1765 18.3791 14.1765C17.3604 14.1765 17.4505 14.9343 17.4489 16.2937V16.4489C17.4489 17.7879 17.3573 18.5364 18.3776 18.5364C19.2041 18.5364 19.0984 18.0411 19.164 17.3208C19.1703 17.2567 19.2234 17.2067 19.289 17.2067H20.1765C20.2172 17.2067 20.25 17.2395 20.25 17.2801C20.25 18.5708 19.8432 19.4895 18.3745 19.4895C16.6573 19.4895 16.3333 18.3458 16.3333 16.4442V16.2937C16.3333 14.378 16.6573 13.2187 18.3745 13.2187C19.8479 13.2187 20.25 14.1671 20.25 15.5218C20.25 15.5624 20.2172 15.5952 20.1765 15.5952H19.2906C19.225 15.5952 19.1703 15.5452 19.1656 15.4796Z",fill:"white"}))),Zt("defs",null,Zt("filter",{id:"filter0_d_2622_16790",x:"0",y:"0.333252",width:"32",height:"34",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},Zt("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),Zt("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),Zt("feOffset",{dy:"2"}),Zt("feComposite",{in2:"hardAlpha",operator:"out"}),Zt("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"}),Zt("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2622_16790"}),Zt("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2622_16790",result:"shape"})),Zt("clipPath",{id:"clip0_2622_16790"},Zt("rect",{width:"16",height:"16",fill:"white",transform:"translate(8 8.33325)"})))))},As=new Map,Is=["preload","srcSet","onLoadStart"],ks=$n(nr((n,r)=>{const{preload:o="auto"}=n,i=t(n,Is),a=(({srcSet:e,preload:t,onLoadStart:n,onCanPlayThrough:r,noCors:o,onPreload:i,height:a})=>{const[l,c]=Ln(""),{isLegacyApi:u}=Br();return function(e,t){const n=function(){const e=Bn(!0);return e.current?(e.current=!1,!0):e.current}();Un(()=>{n||c("")},t)}(0,[e]),Un(()=>{const l=function(e,t,n=!1){const r=t*at(),{srcSm:o,srcLg:i}=e;return r?1==r>=s?i:o:(n||(st.captureMessage(`getVideoSrc: height: ${r}`),Fe(`getVideoSrc: height: ${r}`)),i)}(e,a,u);l&&!As.has(l)?"auto"===t&&async function(e){try{null==n||n();const t=await fetch(e,{cache:"force-cache",mode:o?"no-cors":void 0}),s=await t.blob();null==i||i(s,e);const a=URL.createObjectURL(s);As.set(e,a),c(a),null==r||r()}catch(e){ze("Error preloading video:",e)}}(l):c(As.get(l))},[e,t,a,o,n,i,r,l,u]),l})(n);return Zt("video",e({ref:r,controls:!1,src:a,"data-src":a,preload:o},i))})),Es="instagramStory";function Ps(){const[,e]=Ln(0);return Rn(()=>{e(e=>e+1)},[])}const Ns=e=>{const t=Bn(e);return t.current=e,t},Ts=(e,t={})=>{var n,r,o,i,s,a,l;const c=Ps(),[u,d]=Ln(null!=(n=t.isPlaying)&&n),[p,h]=Ln(null!=(r=t.isSubtitled)&&r),[f,m]=Ln(null!=(o=t.progress)?o:0),[g,v]=Ln(null!=(i=t.speed)?i:1),[y,_]=Ln(null!=(s=t.isMuted)&&s),[w,b]=Ln(null!=(a=t.canBePlayed)&&a),[C,x]=Ln(null!=(l=t.isLoading)&&l),[S,A]=Ln(!1);Un(()=>{e.current&&(e.current.muted=y)},[y]),Un(()=>{e.current&&u&&(e.current.autoplay=!0)},[e]),Un(()=>{e.current&&(u?w?e.current.play().catch(e=>{_t(e,"Playback error: ")}):(Fe("Loading video..."),setTimeout(c,1e3)):e.current.pause())},[u,w,c]);const I=Rn(e=>{d(t=>null!=e?e:!t)},[]),k=Rn(()=>{if(!e.current)return;const t=e.current.currentTime/e.current.duration*100;isNaN(t)||(m(t),A(!(e.current.currentTime<=.01)))},[]),E=Rn(()=>{b(!0),x(!1)},[]),P=Rn(e=>{_(t=>null!=e?e:!t)},[]),N=Rn(e=>{x(t=>null!=e?e:!t)},[]),T=Rn(e=>{h(t=>null!=e?e:!t)},[]),D=Vn(()=>({canBePlayed:w,isLoading:C,isMuted:y,isPlaying:u,isSubtitled:p,progress:f,speed:g,hasVideoStarted:S}),[u,f,g,y,p,w,C,S]),M=Ns(D);return{playerState:D,togglePlay:I,handleOnTimeUpdate:k,handleVideoCanBePlayed:E,toggleMute:P,toggleLoading:N,toggleSubtitled:T,setPlayerState:Rn(e=>{const t="function"==typeof e?e(M.current):e;void 0!==t.canBePlayed&&b(t.canBePlayed),void 0!==t.isLoading&&x(t.isLoading),void 0!==t.isMuted&&_(t.isMuted),void 0!==t.isPlaying&&d(t.isPlaying),void 0!==t.isSubtitled&&h(t.isSubtitled),void 0!==t.progress&&m(t.progress),void 0!==t.speed&&v(t.speed)},[M])}},Ds=["playerState"],Ms=$n(({soundIconContainerRef:n,setProgress:r,onFinish:o,isPlaying:i=!0,showSubtitles:l=!0,src:c,poster:u,height:d,subtitles:p,visible:h,loading:f=!1})=>{const m=Gr(),g=Bn(null),v=Ts(g,{isPlaying:i,isMuted:!i,isSubtitled:l}),{playerState:y}=v,_=t(v,Ds),{toggleLoading:w,handleOnTimeUpdate:b,toggleSubtitled:C,setPlayerState:x}=_,{shopUUID:S}=Br(),{croppedPoster:A,srcSet:I}=function({height:e,poster:t,src:n}){const r=Vn(()=>e?function(e){e||Fe(`getMediaHeight: height: ${e}`);const t=e*at();switch(!0){case t>=768:return 710;case t>=s:return 640;case t>=320:return 576;default:return 480}}(e):null,[e]),o=Vn(()=>r?gt(t,r,Es):void 0,[t,r]);return{srcSet:Vn(()=>((e,t)=>({srcXss:mt(e,360,t),srcXs:mt(e,480,t),srcSm:mt(e,576,t),srcMd:mt(e,640,t),srcLg:mt(e,710,t)}))(n,Es),[n]),croppedPoster:o}}({height:d,poster:u,src:c,playerState:y});Un(()=>{void 0!==h&&x({isPlaying:h,isMuted:!h})},[h,x]);const k=Rn(e=>{m("Play Video Clicked",{playValue:e.value,playIsHover:e.isHover})},[m]),{handleClick:E,handleSoundIconClick:P,handleCanPlayThrough:N,handlePreload:T}=(({setPlayerState:e,playerState:t,toggleMute:n,handleVideoCanBePlayed:r,onPlay:o,src:i})=>{const s=Kr(),a=Gr(),{increaseVideosEngaged:l}=Nr();return{handleClick:()=>{e(e=>({isPlaying:!e.isPlaying,isMuted:e.isPlaying})),null==o||o({value:!t.isPlaying,isHover:!1})},handleSoundIconClick:e=>{e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),n(),a("Sound Icon Clicked",{playIsMuted:!t.isMuted})},handleCanPlayThrough:Vn(()=>xt(r,100),[r]),handlePreload:Rn((e,t)=>{s({type:"video",url:t,originalUrl:i,isPreview:!1,blobSize:ps(e)}),l()},[s,i,l])}})(e({playerState:y,onPlay:k,src:c},_));Un(()=>{null==r||r(y.progress)},[y.progress,r]),ys(g,E);const D=!y.isPlaying&&!y.isLoading&&!f,M=y.isLoading||f,L=((e,t=!0)=>Vn(()=>{if(e&&t){const t=new Blob([e],{type:"text/vtt"});return URL.createObjectURL(t)}return null},[t,e]))(p,y.isSubtitled);return Zt("div",{className:"_b85co"},Zt(ks,{onEnded:o,preload:h||f?"auto":"metadata",className:"_2mxjn",height:d,onCanPlayThrough:N,onLoadStart:w,onPreload:T,onTimeUpdate:b,playsInline:!0,poster:A,ref:g,srcSet:I,noCors:S===a,"data-testid":"video-player-element"},L&&Zt("track",{kind:"subtitles",src:L,srclang:"en",default:!0})),M&&Zt(Cs,{"data-chromatic":"ignore",style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}}),D&&Zt("div",e({"data-chromatic":"ignore",className:"_gc4Dc",role:"button",tabIndex:0,"aria-label":"Play video"},Xo(E)),Zt(us,null)),(null==n?void 0:n.current)&&hr(Zt(Kt,null,p&&Zt(Ss,{draggable:!0,disabled:!y.isSubtitled,onClick:()=>C(),tabIndex:0,"aria-label":"Toggle subtitles",role:"checkbox","aria-checked":y.isSubtitled}),Zt("div",e({draggable:!0,tabIndex:0,"aria-checked":y.isMuted,"aria-label":"Toggle sound",style:{height:"32px"},role:"checkbox"},Xo(P)),Zt(bs,{disabled:y.isMuted}))),n.current))}),Ls=()=>Zt(Cs,{"data-chromatic":"ignore",style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}}),Us=({onClick:t})=>Zt("div",e({"data-chromatic":"ignore",className:"_kV3w7",role:"button",tabIndex:0,"aria-label":"Play video"},Xo(t)),Zt(us,null)),Os="instagramStory",Bs=["playerState"],Vs=$n(({soundIconContainerRef:n,setProgress:r,onFinish:o,isPlaying:i=!0,showSubtitles:s=!0,src:a,poster:l,height:c,subtitles:u,visible:d,loading:p=!1})=>{const h=Gr(),f=Bn(null),m=((e,t={})=>{var n,r,o,i,s,a,l;const c=Ps(),[u,d]=Ln(null!=(n=t.isPlaying)&&n),[p,h]=Ln(null!=(r=t.isSubtitled)&&r),[f,m]=Ln(null!=(o=t.progress)?o:0),[g,v]=Ln(null!=(i=t.speed)?i:1),[y,_]=Ln(null!=(s=t.isMuted)&&s),[w,b]=Ln(null!=(a=t.canBePlayed)&&a),[C,x]=Ln(null!=(l=t.isLoading)&&l),[S,A]=Ln(!1);Un(()=>{e.current&&(e.current.muted=y)},[y]),Un(()=>{e.current&&(u?w?e.current.play().catch(e=>{_t(e,"Playback error: ")}):(Fe("Loading video..."),setTimeout(c,1e3)):e.current.pause())},[u,w,c]);const I=Rn(e=>{d(t=>null!=e?e:!t)},[]),k=Rn(()=>{if(!e.current)return;const t=e.current.currentTime/e.current.duration*100;isNaN(t)||(m(t),A(!(e.current.currentTime<=.01)))},[]),E=Rn(()=>{b(!0),x(!1)},[]),P=Rn(e=>{_(t=>null!=e?e:!t)},[]),N=Rn(e=>{x(t=>null!=e?e:!t)},[]),T=Rn(e=>{h(t=>null!=e?e:!t)},[]),D=Vn(()=>({canBePlayed:w,isLoading:C,isMuted:y,isPlaying:u,isSubtitled:p,progress:f,speed:g,hasVideoStarted:S}),[u,f,g,y,p,w,C,S]),M=Ns(D);return{playerState:D,togglePlay:I,handleOnTimeUpdate:k,handleVideoCanBePlayed:E,toggleMute:P,toggleLoading:N,toggleSubtitled:T,setPlayerState:Rn(e=>{const t="function"==typeof e?e(M.current):e;void 0!==t.canBePlayed&&b(t.canBePlayed),void 0!==t.isLoading&&x(t.isLoading),void 0!==t.isMuted&&_(t.isMuted),void 0!==t.isPlaying&&d(t.isPlaying),void 0!==t.isSubtitled&&h(t.isSubtitled),void 0!==t.progress&&m(t.progress),void 0!==t.speed&&v(t.speed)},[M])}})(f,{isPlaying:i,isMuted:!i,isSubtitled:s,isLoading:!0}),{playerState:g}=m,v=t(m,Bs),{handleOnTimeUpdate:y,toggleSubtitled:_,setPlayerState:w,toggleLoading:b}=v,{poster:C,src:x}=function({height:e,originalPosterUrl:t,src:n}){const r=gt(t,e,Os);return{src:Vn(()=>mt(n,704,Os),[n]),poster:r}}({height:c,originalPosterUrl:l,src:a,playerState:g});Un(()=>{void 0!==d&&w({isPlaying:d,isMuted:!d})},[d,w]);const S=Rn(e=>{h("Play Video Clicked",{playValue:e.value,playIsHover:e.isHover})},[h]),{handleClick:A,handleSoundIconClick:I,handleCanPlay:k,handleCanPlayThrough:E}=(({setPlayerState:e,playerState:t,toggleMute:n,handleVideoCanBePlayed:r,onPlay:o,originalUrl:i,src:s})=>{const a=Kr(),l=Gr(),{increaseVideosEngaged:c}=Nr();return{handleClick:()=>{e(e=>({isPlaying:!e.isPlaying,isMuted:e.isPlaying})),null==o||o({value:!t.isPlaying,isHover:!1})},handleSoundIconClick:e=>{e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),n(),l("Sound Icon Clicked",{playIsMuted:!t.isMuted})},handleCanPlay:Vn(()=>xt(r,500),[r]),handleCanPlayThrough:Rn(()=>{r(),a({type:"video",url:s,originalUrl:i,isPreview:!1,blobSize:0}),c()},[r,c,i,s,a])}})(e({playerState:g,onPlay:S,originalUrl:a,src:x},v));Un(()=>{null==r||r(g.progress)},[g.progress,r]),ys(f,A);const P=!g.isPlaying&&!g.isLoading&&!p,N=g.isLoading||p,T=((e,t=!0)=>Vn(()=>{if(e&&t){const t=new Blob([e],{type:"text/vtt"});return URL.createObjectURL(t)}return null},[t,e]))(u,g.isSubtitled),D=d||p;return Zt("div",{className:"_ClsjU"},Zt("video",{controls:!1,onEnded:o,preload:D?"auto":"metadata",className:"_HMGg1",onCanPlay:k,onLoadedMetadata:k,onCanPlayThrough:E,onTimeUpdate:y,playsInline:!0,poster:C,ref:f,src:D||g.canBePlayed?x:void 0,playsinline:!0,"data-playing":g.isPlaying,"data-loading":g.isLoading,"data-can-be-played":g.canBePlayed,"data-testid":"video-player-element",onWaiting:()=>b(!0),onPlaying:()=>b(!1)},T&&Zt("track",{kind:"subtitles",src:T,srclang:"en",default:!0})),N&&Zt(Ls,null),P&&Zt(Us,{onClick:A}),(null==n?void 0:n.current)&&hr(Zt(Kt,null,u&&Zt(Ss,{draggable:!0,disabled:!g.isSubtitled,onClick:()=>_(),tabIndex:0,"aria-label":"Toggle subtitles",role:"checkbox","aria-checked":g.isSubtitled}),Zt("div",e({draggable:!0,tabIndex:0,"aria-checked":g.isMuted,"aria-label":"Toggle sound",style:{height:"32px"},role:"checkbox"},Xo(I)),Zt(bs,{disabled:g.isMuted}))),n.current))}),Rs=t=>{const{airtableIntegration:n}=Br();return Zt(n?Ms:Vs,e({},t))},Hs=$n(({mediaItem:e,soundIconContainerRef:t,onFinish:n,isPlaying:r,visible:o,loading:i})=>{const[s,a]=$r(100),{displaySubtitlesByDefault:l}=Br(),[c,u]=((e,t,n,r)=>{const[o,i]=Ln(0),s=e||!n||!r,a=Ns(n),l=Bn(null),c=o>=99,u=Rn(()=>{l.current&&(clearInterval(l.current),l.current=null)},[]);return Un(()=>{if(!s)return l.current=setInterval(()=>{i(e=>{a.current||u();const t=e+4;return t>=100?100:t})},200),u},[s,t,i,u,a]),Un(()=>{c&&(i(0),a.current&&(null==t||t()),u())},[c,t,a,u]),[o,i]})(e.isVideo,n,a,r),d=ls(s),p=!r&&e.isVideo,h=Rn(()=>d?e.isVideo?Zt(Rs,{src:e.src,poster:e.poster,soundIconContainerRef:t,setProgress:u,height:d,isPlaying:r,subtitles:e.subtitles,showSubtitles:l,visible:o,loading:i}):Zt(vs,{alt:"Popup media content",src:e.src,aspectRatio:"instagramStory",height:d,showPlayIcon:p,fallback:null}):null,[d,e.isVideo,e.src,e.poster,e.subtitles,t,u,r,l,o,i,p]);return Zt("div",{className:"_BkxDL",ref:s},Zt(cs,{progress:c}),h())}),Fs=({className:e})=>Zt("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAArVJREFUWAntlz9oFEEUxqNi75/KRrS3s1AxSEDMvNmYSkUR8dRCK8FGU+YQrCLBTkW4aKGGvZk5A0Ii2MRaiIpgwOJE1ECiJLfz5paEXEb2dHJ7YXZn9y6N4MLezM6b932/eezO7vX0/D8yVuCkH+4FhmPA8DWwoLAxjfryLGGqAhzHep8u7dwY7/oauBSUozYnMBw9+FZv7xtb3OGJ+jMzHrUgVLlrw7gAVMJ9cYNYv+pxuRi7NoCrEVhco6s+cHXNYmLMrC0pB5c7NqXjtcPgB5fMSTlW8wJQhjMmH4Q8NyDkgUxAlKs7uc1i90ZaLuF4wwlBOa6liXQTA47fswD87MYkNVfgjBMAyvJBqkjGcts0gKuHTgBawX5b8maMgR8ccQIAl1c3w8yqMVE/mgigtd5CBY5YEzOW/dZ0XV+ZUtZ9wegCV8NWCMpxykzqpH3+aUVHR7C8lgrQ1Baq1AZBuBrIYvotaOg5bOjCZGuVFyeV/rCw2jSPfkofl90AHLXHaofWIaAs+7IAfA0aTSMDMfSmrn+Fa82xedXQN6fDTOaRlzcRHlsHiDqUY8kFUZis6zn1xzAqtTneza/q8y9bVXHpUIYjbebmAipq2LUTxiEigCcZS/4Xaom6tuN+H0+4VhBBvPi8kqvkkSaIsNcsNrEFViMugE7j0b2WaGwCIPBxpwauPMLkPeOT2FKhfriEuohXE41NwBNo+8TK/Hilw6kvxiexpaI+lC7S+jDNO88ry2KicTww6If7vehpYMEgETWgQr3Pa0YZzhImTwFDAkx5hC/siXvk6tOyvJ4XABheyGWSNvm4CHZbAZicpUJZP1gJ152v2AZDBb6KQ3gsGD3j623Fot5KK3g3HqM8aH/b2QTzjhFf76JM3gcuH9k2FMrlacLlOOXy9qb+KckL+s/N/w3P+K/OGseZcwAAAABJRU5ErkJggg==",alt:"Verified",className:e});var js="_bQhBE";const zs=({className:e})=>Zt("img",{src:"data:image/png;base64,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",className:wt(js,e),alt:"Default avatar"}),qs=({accountName:e,src:t,className:n})=>{const[r,o]=Vi(!1);return Zt(Kt,null,t&&Zt("img",{alt:`${e} influencer avatar`,style:{opacity:Number(r),position:r?"static":"absolute"},src:He(t,"tr=h-64"),loading:"lazy",className:wt(js,n),onLoad:()=>o()}),!r&&Zt(zs,{accountName:e,className:n}))},Zs=()=>Zt("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"3.5",fill:"url(#paint0_linear_1033_4824)"}),Zt("circle",{cx:"8",cy:"8",r:"3.5",stroke:"white"}),Zt("circle",{cx:"12",cy:"4",r:"1",fill:"white"}),Zt("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"3.5",stroke:"white"}),Zt("defs",null,Zt("linearGradient",{id:"paint0_linear_1033_4824",x1:"1",y1:"15",x2:"15",y2:"1",gradientUnits:"userSpaceOnUse"},Zt("stop",{"stop-color":"#FE6242"}),Zt("stop",{offset:"1","stop-color":"#C53AA4"})))),Gs=()=>Zt("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"3.5",fill:"url(#paint0_linear_1064_5873)"}),Zt("g",{style:"mix-blend-mode:color-dodge"},Zt("path",{d:"M12.5 6.66667C10.26 6.66667 9.7 4.88889 9.7 4V10C9.7 11.1046 8.7598 12 7.6 12C6.4402 12 5.5 11.1046 5.5 10C5.5 8.89543 6.4402 8 7.6 8",stroke:"#FD014D",strokeWidth:"2"})),Zt("g",{style:"mix-blend-mode:color-dodge"},Zt("path",{d:"M11.9 6.06666C9.66002 6.06666 9.10002 4.28888 9.10002 3.39999V9.39999C9.10002 10.5046 8.15982 11.4 7.00002 11.4C5.84023 11.4 4.90002 10.5046 4.90002 9.39999C4.90002 8.29542 5.84023 7.39999 7.00002 7.39999",stroke:"#01F2E7",strokeWidth:"2"})),Zt("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"3.5",stroke:"white"}),Zt("defs",null,Zt("linearGradient",{id:"paint0_linear_1064_5873",x1:"1",y1:"15",x2:"15",y2:"1",gradientUnits:"userSpaceOnUse"},Zt("stop",null),Zt("stop",{offset:"1",stopColor:"#494147"}))));var Ks={root:"_aTgK4",medium:"_ToDgA",large:"_iSjtD",avatar:"_RjNh6",provider:"_720TG"};const Js=({accountName:e,provider:t,avatar:n,size:r="large",className:o})=>{const i="instagram"===t;return Zt("div",{className:wt(Ks.root,Ks[r],o)},Zt(qs,{accountName:e,src:n,className:Ks.avatar}),Zt("div",{className:Ks.provider},Zt(i?Zs:Gs,null)))};var Ws={root:"_kzFbL",medium:"_KpqKI",large:"_OZc55",details:"_1wkmD",avatar:"_micf1",accountName:"_CJTCc",followers:"_5in0G",verified:"_9KZFy",accountContainer:"_ge4-r"};const Ys=$n(({influencer:{avatar:e,accountName:t,followers:n,provider:r,verified:o},size:i="large"})=>Zt("span",{className:wt(Ws.root,Ws[i]),"data-size":i},e&&Zt(Js,{accountName:t,avatar:e,provider:r,size:i,className:Ws.avatar}),Zt("span",{className:Ws.details},Zt("span",{className:Ws.accountContainer},Zt("span",{className:Ws.accountName},t),o&&Zt(Fs,{className:Ws.verified})),Zt("span",{className:Ws.followers},vt(n)," followers"))));var Qs={root:"_sU4AV",details:"_Z9VJz",detailsBottom:"_zkEuj",title:"_4P7JZ",btn:"_S4Fjq"};const Xs=({product:t,cta:n="Buy now",textColor:r,backgroundColor:o})=>{const i=Gr(),s=Br(),{slideSize:a,aspectRatio:l}=s,c=_i(),u=t.action||n;return Zt("a",e({className:wt(Qs.root,Qs[a],Qs[l]),href:t.link,target:"_blank",rel:"noopener noreferrer","data-testid":"card-custom-cta","aria-label":u,tabIndex:0},Xo(()=>{i("Product Opened"),c({productOpened:!0})})),Zt("div",{className:Qs.details},Zt("span",{className:Qs.title,style:{color:r}},t.title),Zt("div",{className:Qs.detailsBottom},Zt("span",{className:Qs.btn,style:{color:r,backgroundColor:o}},u))))},$s=({onClick:t,className:n,disabled:r=!1,display:o=!0})=>Zt("span",e({style:{opacity:r?.3:1,display:o?"inline":"none",padding:"8px",cursor:"pointer"}},Xo(t),{className:n,"data-testid":"shoppable-product-right-button"}),Zt("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("g",{filter:"url(#filter0_d_1537_1138)"},Zt("rect",{y:"0.5",width:"24",height:"24",rx:"12",fill:"black",fillOpacity:"0.85",shapeRendering:"crispEdges"}),Zt("rect",{x:"0.5",y:"1",width:"23",height:"23",rx:"11.5",stroke:"white",strokeOpacity:"0.3",shapeRendering:"crispEdges"}),Zt("path",{d:"M14.973 12.2048L9.69023 8.07861C9.67643 8.06774 9.65984 8.06099 9.64237 8.05912C9.6249 8.05726 9.60726 8.06036 9.59147 8.06807C9.57569 8.07578 9.5624 8.08778 9.55312 8.10271C9.54385 8.11763 9.53898 8.13487 9.53906 8.15244V9.05829C9.53906 9.11572 9.56602 9.17079 9.61055 9.20595L13.8293 12.5001L9.61055 15.7942C9.56484 15.8294 9.53906 15.8845 9.53906 15.9419V16.8477C9.53906 16.9263 9.6293 16.9696 9.69023 16.9216L14.973 12.7954C15.0179 12.7604 15.0543 12.7156 15.0792 12.6644C15.1042 12.6132 15.1172 12.557 15.1172 12.5001C15.1172 12.4431 15.1042 12.387 15.0792 12.3358C15.0543 12.2846 15.0179 12.2398 14.973 12.2048Z",fill:"white"})),Zt("defs",null,Zt("filter",{id:"filter0_d_1537_1138",x:"0",y:"0.5",width:"24",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},Zt("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Zt("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),Zt("feOffset",{dy:"2"}),Zt("feComposite",{in2:"hardAlpha",operator:"out"}),Zt("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"}),Zt("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1537_1138"}),Zt("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1537_1138",result:"shape"}))))),ea=({onClick:t,className:n,disabled:r=!1,display:o=!0})=>Zt("span",e({style:{opacity:r?.3:1,display:o?"inline":"none",padding:"8px",cursor:"pointer"}},Xo(t),{className:n,"data-testid":"shoppable-product-left-button"}),Zt("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:"rotate(180deg)"}},Zt("g",{filter:"url(#filter0_d_1537_1138)"},Zt("rect",{y:"0.5",width:"24",height:"24",rx:"12",fill:"black",fillOpacity:"0.85","shape-rendering":"crispEdges"}),Zt("rect",{x:"0.5",y:"1",width:"23",height:"23",rx:"11.5",stroke:"white",strokeOpacity:"0.3",shapeRendering:"crispEdges"}),Zt("path",{d:"M14.973 12.2048L9.69023 8.07861C9.67643 8.06774 9.65984 8.06099 9.64237 8.05912C9.6249 8.05726 9.60726 8.06036 9.59147 8.06807C9.57569 8.07578 9.5624 8.08778 9.55312 8.10271C9.54385 8.11763 9.53898 8.13487 9.53906 8.15244V9.05829C9.53906 9.11572 9.56602 9.17079 9.61055 9.20595L13.8293 12.5001L9.61055 15.7942C9.56484 15.8294 9.53906 15.8845 9.53906 15.9419V16.8477C9.53906 16.9263 9.6293 16.9696 9.69023 16.9216L14.973 12.7954C15.0179 12.7604 15.0543 12.7156 15.0792 12.6644C15.1042 12.6132 15.1172 12.557 15.1172 12.5001C15.1172 12.4431 15.1042 12.387 15.0792 12.3358C15.0543 12.2846 15.0179 12.2398 14.973 12.2048Z",fill:"white"})),Zt("defs",null,Zt("filter",{id:"filter0_d_1537_1138",x:"0",y:"0.5",width:"24",height:"26",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},Zt("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Zt("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),Zt("feOffset",{dy:"2"}),Zt("feComposite",{in2:"hardAlpha",operator:"out"}),Zt("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"}),Zt("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1537_1138"}),Zt("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1537_1138",result:"shape"}))))),ta=["Enter"," "];var na="_sTsPF",ra="_lTeGu";const oa=e=>{const{product:t,cta:n,textColor:r,backgroundColor:o,isLast:i,isFirst:s}=e,{href:a,imageUrl:l,price:c}=(({product:e})=>{const{shopDomain:t,showProductDescription:n,shopCurrency:r}=Br(),o=yi(t,e.handle),{imageUrls:i}=e,s=null!=i&&i.length?ht(i[0]):null;return{price:lo(e.price,r),title:n?`${e.title} - ${e.description}`:e.title,imageUrl:s,href:o}})(e),{handleClick:u,handleKeyDown:d}=(({product:e,productLinkType:t,href:n})=>{const r=Gr(),{shopDomain:o}=Br(),i=_i(),{setState:s}=Ii(),a=Rn(()=>{r(t===io.ProductPage?"Product Opened":"Product Variant Opened"),i({productOpened:!0})},[t,r,i]),l=Rn(n=>{a(),t!==io.ProductPage&&(n.preventDefault(),s({product:e,shopifyDomain:o,productLinkType:t}))},[a,e,t,s,o]),c=Rn(e=>{ta.includes(e.key)&&(l(e),n&&t===io.ProductPage&&window.open(n,"_blank"))},[l,t,n]);return{handleClick:l,handleKeyDown:c}})(e);return Zt("a",{className:wt("_u6FdJ",{[na]:i,[ra]:s}),key:t.id,href:a,target:"_blank",rel:"noopener noreferrer",tabIndex:-1,onClick:u,onKeyDown:d,"aria-label":"UGC CTA","data-testid":"product-slide"},Zt("div",{className:"_u4pv-"},l&&Zt("img",{alt:`${t.title}`,src:l,loading:"lazy",className:"_9iVZB"}),Zt("div",{className:"_Ly-rx"},Zt("span",{className:"_517oB"},uo(t)),Zt("div",{className:"_PJbeB"},Zt("span",{className:"_X-Zvj"},c),Zt("span",{tabIndex:0,role:"button","aria-label":"Shop now",className:"_GWK1i",style:{color:r,backgroundColor:o}},n)))))},ia=({products:t=[],cta:n="Shop now",productLinkType:r=io.ProductPage,textColor:o,backgroundColor:i})=>{const s=Jo({duration:50,align:"start"}),a=(({products:e,productLinkType:t,cta:n,currentIndex:r,textColor:o,backgroundColor:i})=>Vn(()=>e.map((s,a)=>Zt(oa,{key:s.id,product:s,cta:n,textColor:o,backgroundColor:i,productLinkType:t,isCurrent:r===a,isFirst:0===a,isLast:a===e.length-1})),[i,n,r,t,e,o]))({products:t,currentIndex:s.state.selectedIndex,cta:n,productLinkType:r,textColor:o,backgroundColor:i});return Bi("ArrowRight",()=>{var e;return null==(e=s.carouselApi)?void 0:e.scrollNext()}),Bi("ArrowLeft",()=>{var e;return null==(e=s.carouselApi)?void 0:e.scrollPrev()}),Zt(Qo,e({},s,{slides:a,viewPortType:"full-width",PrevButton:e=>Zt(ea,{display:!e.isHidden,disabled:e.isDisabled,onClick:e.onClick}),NextButton:e=>Zt($s,{display:!e.isHidden,disabled:e.isDisabled,onClick:e.onClick})}))};var sa="_09sSd",aa="_QlOY3",la="_NFM9k",ca="_PeXSZ";const ua=({mediaItem:e,children:t,onFinish:n,isPlaying:r,inert:o,className:i,visible:s=!1,loading:a=!1,noBorderRadius:l})=>{const{influencerInfo:c,type:u,buttonTextColor:d,buttonBackgroundColor:p}=Br(),h=e.backgroundColor||p,f=e.textColor||d,{products:m,customProduct:g}=e,v=Bn(null),y=!(null==m||!m.length)||!!g,_=(u!==lt.Product||e.productLinkType!==io.ProductPage)&&y;return On(()=>{v.current&&o&&(v.current.tabIndex=-1)}),"youtube"===e.influencer.provider?(Fe("YOUTUBE IS CURRENTLY NOT SUPPORTED"),null):Zt("section",{className:wt("_GGQkU",i,{[sa]:!!l}),draggable:!1,"data-testid":"shoppable-card"},c&&"internal"!==e.influencer.provider&&Zt("figcaption",{className:"_V0HYy"},Zt(Ys,{influencer:e.influencer})),Zt(Hs,{mediaItem:e,soundIconContainerRef:v,onFinish:r?n:void 0,isPlaying:r,visible:s,loading:a}),Zt("div",{className:"_kPBn-"},t,e.isVideo?Zt("div",{className:wt(la,{[ca]:_}),ref:v,"data-testid":"shoppable-sound-toggle"}):Zt("span",{className:la})),y&&_&&Zt("div",{className:aa},Zt(ia,{products:m,backgroundColor:h,textColor:f,productLinkType:e.productLinkType})),!!g&&_&&Zt("div",{className:aa},Zt(Xs,{product:g,backgroundColor:h,textColor:f})))};var da={carousel:"_LOX-I",outer:"_s45To",popup:"_eHvkQ",root:"_qs69u",left:"_d6N2e",height:"_jMaio",relative:"_-eK6M",close:"_I37hs",arrows:"_GfJVq",arrow:"_BsDdS"};const pa="card-popup-shortcuts-description",ha=({mediaItem:e})=>Zt("div",{id:pa,class:"shoppables-visually-hidden"},"Use Space to play or pause the video, Top Arrow to show previous Video, Bottom Arrow to show next Video",(null==e?void 0:e.products)&&"Right Arrow to show next Product, Left Arrow to show previous Product",(e.customProduct||e.products.length)&&"Enter to activate the call to action"),fa=({className:t,onClose:n,mediaItem:r,mediaItemIndex:o,mediaItemLoadingIndex:i,items:s,fetchMore:a,hasMoreData:l,setMediaItemIndex:c,setMediaItemLoadingIndex:u,play:d})=>{const p=Bn(null),[h,f]=Ln(!1),m=Gr(),{playerPosition:g,playerDisplayMode:v,buttonTextColor:y,buttonBackgroundColor:_,fontFamily:w}=Br(),b=(null==r?void 0:r.backgroundColor)||_,C=(null==r?void 0:r.textColor)||y,x=(()=>{const e=new URLSearchParams(window.location.search).get("variant");return e?+e:void 0})();rs({itemIndex:o,fetchMore:a,itemsCount:s.length,hasMoreData:l,visibleItemsCount:1}),Un(()=>(document.body.classList.add("shoppables-body-no-scroll"),()=>{document.body.classList.remove("shoppables-body-no-scroll")}),[]);const{state:S,cleanState:A}=Ii(),I=Jo({axis:"y",startIndex:o}),{carouselApi:k}=I,E=Rn(()=>{null!=k&&k.canScrollNext()&&(null==k||k.scrollNext())},[k]),P=Rn(()=>{null!=k&&k.canScrollPrev()&&(u(o-1),null==k||k.scrollPrev(),m("Scroll Down"))},[k,m,u,o]),N=Rn(()=>{null!=k&&k.canScrollNext()&&(u(o+1),null==k||k.scrollNext(),m("Scroll Down"))},[k,m,u,o]);Un(()=>{null==k||k.on("settle",e=>{const t=e.selectedScrollSnap();c(t),f(!1)})},[k,c]),Un(()=>{null==k||k.on("select",()=>{f(!0)})},[k,c]);const T=Rn(()=>{m("Card Closed"),null==n||n()},[n,m]);(function(e){const{enableFocusTrap:t}=Br(),n=Rn((e,t=!1)=>{const n=e.length-1,r=(e=>{var t;const n=null==(t=document.activeElement)||null==(t=t.shadowRoot)?void 0:t.activeElement,r=e.indexOf(n);return r>=0?r:void 0})(e),o=((e,t,n)=>{if(void 0===e)return 0;const r=n?e-1:e+1;return r>t?0:r<0?t:r})(r,n,t),i=e[o];console.log({maxIndex:n,currentIndex:r,nextIndex:o}),i.focus()},[]),r=Rn(t=>{const r=e.current;if(r&&(9===t.code||"Tab"===t.key)){t.preventDefault();const e=!!t.shiftKey,o=Array.from(r.querySelectorAll("a[href], area[href], input:not([disabled]):not([type=hidden]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]")).filter(e=>ns(e)>=0);o.sort(es),n(o,e)}},[]);Un(()=>{if(t)return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[])})(p),Bi("Escape",S?A:T),Bi("ArrowDown",e=>{e.preventDefault(),N()}),Bi("ArrowUp",e=>{e.preventDefault(),P()}),function(e,t,{exceptionSelector:n,eventType:r="mousedown",eventListenerOptions:o={}}={}){!function(e,t,n,r){const o=Bn(t);$i(()=>{o.current=t},[t]),Un(()=>{const t=window;if(!t||!t.addEventListener)return;const n=e=>o.current(e);return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}},[e,void 0,r])}(r,r=>{const o=r.target;if(!o||!o.isConnected)return;const i=Array.isArray(e)?e.filter(e=>Boolean(e.current)).every(e=>e.current&&!e.current.contains(o)):e.current&&!e.current.contains(o),s=!!n&&o.matches(n);i&&!s&&t(r)},0,o)}(p,T,{exceptionSelector:"#shoppables-root-modal"});const D=(({items:e,mediaItemIndex:t,mediaItemLoadingIndex:n,isScrolling:r,onClose:o,handleScrollUp:i,handleScrollDown:s,inert:a,scrollDown:l,play:c})=>{const u=e.length-1;return Vn(()=>e.map((e,d)=>Zt(ua,{key:e.id,mediaItem:e,onFinish:l,isPlaying:void 0===c?!a&&d===t&&!r:c,visible:d===t&&!r,loading:d===n,inert:a,className:da.height},Zt(Kt,null,Zt(Wi,{onClick:o,disabled:a}),Zt("div",{className:da.arrows},Zt(as,{onClick:i,className:da.arrow,disabled:0===d}),Zt(is,{onClick:s,className:da.arrow,disabled:d===u}))))),[e,c,a,t,r,n,l,o,i,s,u])})({items:s,mediaItemIndex:o,mediaItemLoadingIndex:i,isScrolling:h,onClose:n,handleScrollUp:P,handleScrollDown:N,inert:!!S,scrollDown:E,play:d});return Zt("div",{onClick:"popup"===v?T:void 0,className:wt(da.outer,da[v]),style:{"--font-family":w}},Zt("div",{className:wt(da.root,t,da[g],da[v]),ref:p,role:"dialog","aria-label":"UGC Video","aria-describedby":pa,onClick:e=>"popup"===v&&e.stopPropagation()},r&&Zt(ha,{mediaItem:r}),S&&Zt(Xi,e({},S,{textColor:C,backgroundColor:b,onClose:A,variantExternalId:x})),Zt(Qo,e({},I,{direction:"vertical",className:{root:da.carousel,container:da.height},slides:D}))))},ma=({fetchMore:t})=>{const{playerDisplayMode:n}=Br(),r=Hn(Tr),o=Hn(Dr),{mediaItemIndex:i,open:s,mediaItem:a}=r;return void 0!==i&&s?Zt(ni,{mediaItem:a},Zt(Ai,null,Zt(xi,{playerDisplayMode:n},Zt(fa,e({},r,o,{fetchMore:t}))))):null},ga=()=>Hn(Dr).setMediaItem;function va(e){const t=Bn(e);return e&&(t.current=e),t.current}const ya=e=>{const t=Gr();Un(()=>{e&&t("Slide Viewed")},[e])},_a=()=>Rn((e,t)=>{const n=new CustomEvent(e,{bubbles:!0,cancelable:!1,detail:t});Fe("Event sent",{event:n}),document.body.dispatchEvent(n)},[]),wa=$n(({mediaItemId:t})=>{const{platformType:n}=Br(),r=_a();return"archive_app_preview"!==n?null:Zt("span",e({className:wt("_vEz-K")},Xo(e=>{e.preventDefault(),e.stopPropagation(),r(ro,{mediaItemId:t})})),Zt("button",{className:"_ugylU"},"Edit Card"))}),ba=$n(({onLoad:e})=>Zt("svg",{width:"100%",height:"100%",viewBox:"0 0 240 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",onLoad:e},Zt("rect",{width:"240",height:"240",rx:"16",fill:"#D9D9D9"}),Zt("path",{d:"M147 135L129 145.392L129 124.608L147 135Z",fill:"#D9D9D9"}))),Ca=$n(({onLoad:e})=>Zt("svg",{width:"100%",height:"100%",viewBox:"0 0 240 440",fill:"none",xmlns:"http://www.w3.org/2000/svg",onLoad:e},Zt("rect",{width:"240",height:"440",rx:"16",fill:"#D9D9D9"}),Zt("path",{d:"M147 240L129 250.392L129 229.608L147 240Z",fill:"#D9D9D9"}))),xa=$n(({aspectRatio:e,alt:t,everInView:n,fetchPriority:r="high",height:o,poster:i,className:s,showPlayIcon:a=!1,fallback:l})=>{const c=Kr(),[u,d]=Ln(!1),{increaseImagesEngaged:p}=Nr(),h=n||"high"===r?"eager":"lazy",{airtableIntegration:f}=Br(),{srcs:m}=function({src:e,aspectRatio:t}){return{srcs:Vn(()=>((e,t)=>({srcXss:gt(e,240,t),srcXs:gt(e,360,t),srcSm:gt(e,480,t),srcMd:gt(e,576,t),srcLg:gt(e,720,t)}))(e,t),[t,e])}}({aspectRatio:e,src:i}),g=Rn((e,t)=>{!n&&c({type:"image",url:t,originalUrl:i,isPreview:!0,blobSize:e}),d(!0),p()},[n,c,i,p]);return Zt("div",{className:wt("_2Va5Z",s)},!u&&l,Zt(ms,{alt:t,style:{height:"100%"},srcSet:m,everInView:n,loading:h,height:o,fetchpriority:r,decoding:"async",onLoad:g,draggable:!1,noCors:f}),a&&Zt(ds,null))}),Sa=["mediaItem","index","className"],Aa={instagramPost:ba,instagramStory:Ca},Ia=$n(n=>{let{mediaItem:r,index:o,className:i}=n,s=t(n,Sa);const a=Aa[s.aspectRatio];return r.isVideo?Zt(xa,e({},s,{src:r.src,poster:r.poster,alt:`Slide #${o}`,fallback:Zt(a,null)})):Zt("div",{className:wt("_MMRtZ",i)},Zt(vs,e({},s,{src:r.src,alt:`Slide #${o}`,fallback:Zt(a,null)})))});var ka={root:"_OMEEc",content:"_sqJl6",medium:"_pz2N5",large:"_bogei",influencerInfo:"_Q474G",instagramPost:"_4Pch0",instagramStory:"_OZn1c"};const Ea=$n(({fetchPriority:e="low",previewFetchPriority:t="low",mediaItem:n,size:r,aspectRatio:o,index:i})=>{const{id:s,influencer:a}=n,l=ga(),c=Gr(),{borderRadius:u,aspectRatio:d,slideSize:p,influencerInfo:h,showEditSlideButton:f}=Br(),m=r||p,g=o||d,[v,y]=Xr({triggerOnce:!1,rootMargin:"0px 0px 0px 0px",threshold:0}),_=va(y);ya(_);const w=ls(v),b=_i(),C="internal"!==n.influencer.provider,{onClick:x,onKeyDown:S}=Xo(()=>{c("Card Opened"),l(n),b({cardOpened:!0})});return Zt("div",{tabIndex:0,role:"button","aria-haspopup":"dialog",onClick:x,"aria-label":oo(n.influencer),onKeyDown:S,className:wt(ka.root,ka[m],ka[g]),style:{borderRadius:`${u}px`},ref:v},Zt("figure",{className:wt(ka.content,ka[g])},h&&C&&Zt("figcaption",{className:ka.influencerInfo},Zt(Ys,{influencer:a,size:m})),Zt(Ia,{aspectRatio:g,mediaItem:n,fetchPriority:e,previewFetchPriority:t,inView:y,everInView:_,height:w,showPlayIcon:!0,index:i})),f&&Zt(wa,{mediaItemId:s}))}),Pa=()=>Zt("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H12C14.2091 0 16 1.79086 16 4V12C16 14.2091 14.2091 16 12 16H4C1.79086 16 0 14.2091 0 12V4Z",fill:"url(#paint0_radial_2_12066)"}),Zt("rect",{width:"16",height:"16",rx:"4",fill:"url(#paint1_radial_2_12066)"}),Zt("path",{d:"M7.99875 2.09229C6.39462 2.09229 6.1933 2.0993 5.56327 2.12798C4.93446 2.15678 4.50525 2.25636 4.12969 2.40247C3.74121 2.55337 3.41167 2.75523 3.08336 3.08375C2.75481 3.41215 2.553 3.74178 2.40165 4.13024C2.25521 4.50603 2.15554 4.93548 2.12724 5.56421C2.09918 6.19442 2.0918 6.39591 2.0918 8.00048C2.0918 9.60505 2.09893 9.8058 2.12748 10.436C2.1564 11.065 2.25595 11.4943 2.40189 11.87C2.55288 12.2586 2.75469 12.5882 3.08312 12.9166C3.4113 13.2452 3.74084 13.4476 4.12908 13.5985C4.50488 13.7446 4.93422 13.8442 5.5629 13.873C6.19294 13.9017 6.39413 13.9087 7.99814 13.9087C9.60239 13.9087 9.80309 13.9017 10.4331 13.873C11.0619 13.8442 11.4916 13.7446 11.8674 13.5985C12.2558 13.4476 12.5848 13.2452 12.913 12.9166C13.2416 12.5882 13.4434 12.2586 13.5947 11.8701C13.7399 11.4943 13.8396 11.0649 13.8692 10.4361C13.8975 9.80593 13.9048 9.60505 13.9048 8.00048C13.9048 6.39591 13.8975 6.19454 13.8692 5.56433C13.8396 4.93536 13.7399 4.50603 13.5947 4.13037C13.4434 3.74178 13.2416 3.41215 12.913 3.08375C12.5845 2.75511 12.2559 2.55325 11.8671 2.40247C11.4905 2.25636 11.0611 2.15678 10.4323 2.12798C9.80223 2.0993 9.60165 2.09229 7.99703 2.09229H7.99875ZM7.46888 3.15699C7.62614 3.15674 7.80162 3.15699 7.99875 3.15699C9.57581 3.15699 9.76273 3.16265 10.3855 3.19096C10.9614 3.2173 11.274 3.31356 11.4822 3.39443C11.7578 3.50151 11.9543 3.62952 12.1609 3.83631C12.3677 4.0431 12.4956 4.24004 12.6029 4.51575C12.6838 4.72377 12.7801 5.03641 12.8063 5.61246C12.8346 6.23528 12.8408 6.42238 12.8408 7.99913C12.8408 9.57588 12.8346 9.76297 12.8063 10.3858C12.78 10.9618 12.6838 11.2745 12.6029 11.4825C12.4959 11.7582 12.3677 11.9545 12.1609 12.1612C11.9542 12.368 11.7579 12.496 11.4822 12.6031C11.2742 12.6843 10.9614 12.7803 10.3855 12.8067C9.76285 12.835 9.57581 12.8411 7.99875 12.8411C6.42157 12.8411 6.23465 12.835 5.612 12.8067C5.03611 12.7801 4.72355 12.6838 4.51522 12.603C4.23958 12.4959 4.04269 12.3679 3.83596 12.1611C3.62923 11.9543 3.50126 11.7578 3.39395 11.482C3.31311 11.274 3.21676 10.9613 3.19054 10.3853C3.16224 9.76248 3.15658 9.57538 3.15658 7.99765C3.15658 6.41991 3.16224 6.23381 3.19054 5.61099C3.21688 5.03494 3.31311 4.72229 3.39395 4.51403C3.50101 4.23831 3.62923 4.04137 3.83596 3.83459C4.04269 3.6278 4.23958 3.49979 4.51522 3.39246C4.72343 3.31122 5.03611 3.21521 5.612 3.18875C6.15688 3.16413 6.36804 3.15675 7.46888 3.15551V3.15699ZM11.1516 4.138C11.0114 4.138 10.8744 4.17959 10.7578 4.2575C10.6413 4.33542 10.5504 4.44616 10.4968 4.57572C10.4431 4.70529 10.4291 4.84785 10.4565 4.98539C10.4839 5.12292 10.5514 5.24925 10.6505 5.3484C10.7497 5.44754 10.876 5.51504 11.0135 5.54237C11.151 5.5697 11.2935 5.55563 11.423 5.50193C11.5526 5.44823 11.6632 5.35732 11.7411 5.24069C11.8189 5.12407 11.8605 4.98697 11.8604 4.84673C11.8604 4.45532 11.5429 4.13775 11.1516 4.13775V4.138ZM7.99875 4.96638C6.32362 4.96638 4.96547 6.32489 4.96547 8.00048C4.96547 9.67607 6.32362 11.034 7.99875 11.034C9.67388 11.034 11.0317 9.67607 11.0317 8.00048C11.0317 6.32489 9.67376 4.96638 7.99863 4.96638H7.99875ZM7.99875 6.03108C9.08605 6.03108 9.96761 6.91276 9.96761 8.00048C9.96761 9.08808 9.08605 9.96988 7.99875 9.96988C6.91132 9.96988 6.02989 9.08808 6.02989 8.00048C6.02989 6.91276 6.91132 6.03108 7.99875 6.03108V6.03108Z",fill:"white"}),Zt("defs",null,Zt("radialGradient",{id:"paint0_radial_2_12066",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(4.25002 17.2323) rotate(-90) scale(15.8572 14.7484)"},Zt("stop",{stopColor:"#FFDD55"}),Zt("stop",{offset:"0.1",stopColor:"#FFDD55"}),Zt("stop",{offset:"0.5",stopColor:"#FF543E"}),Zt("stop",{offset:"1",stopColor:"#C837AB"})),Zt("radialGradient",{id:"paint1_radial_2_12066",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(-2.68008 1.15261) rotate(78.6806) scale(7.08823 29.218)"},Zt("stop",{stopColor:"#3771C8"}),Zt("stop",{offset:"0.128",stopColor:"#3771C8"}),Zt("stop",{offset:"1",stopColor:"#6600FF",stopOpacity:"0"})))),Na=()=>Zt("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"Avatar-module__logo___3aWrD"},Zt("rect",{width:"16",height:"16",rx:"4",fill:"#010101"}),Zt("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3147 6.50792C11.0151 7.00834 11.8732 7.3028 12.7999 7.3028V5.52034C12.6245 5.52041 12.4496 5.50211 12.278 5.46575V6.86882C11.3514 6.86882 10.4934 6.57436 9.79277 6.07394V9.71138C9.79277 11.531 8.31693 13.006 6.49645 13.006C5.81722 13.006 5.18586 12.8008 4.66138 12.4488C5.25997 13.0605 6.09472 13.44 7.01824 13.44C8.83885 13.44 10.3148 11.965 10.3148 10.1453V6.50792H10.3147ZM10.9585 4.70965C10.6006 4.3188 10.3656 3.81365 10.3147 3.25519V3.02594H9.8201C9.94458 3.7357 10.3692 4.3421 10.9585 4.70965ZM5.8128 11.0525C5.61283 10.7904 5.50473 10.4698 5.50522 10.1401C5.50522 9.30786 6.18029 8.63311 7.01312 8.63311C7.16831 8.633 7.32259 8.65681 7.47053 8.7037V6.88143C7.29768 6.85775 7.12323 6.84772 6.9488 6.85141V8.26978C6.8008 8.22289 6.64646 8.19908 6.4912 8.19919C5.65837 8.19919 4.98336 8.87394 4.98336 9.70626C4.98336 10.2947 5.32077 10.8043 5.8128 11.0525Z",fill:"#EA445A"}),Zt("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.79277 6.07394C10.4934 6.57436 11.3514 6.86882 12.278 6.86882V5.46575C11.7608 5.35567 11.3029 5.08546 10.9585 4.70965C10.3692 4.3421 9.94458 3.7357 9.8201 3.02594H8.52097V10.1452C8.51802 10.9752 7.8441 11.6472 7.01306 11.6472C6.52333 11.6472 6.08826 11.4139 5.81274 11.0525C5.32071 10.8043 4.9833 10.2947 4.9833 9.70626C4.9833 8.87394 5.65831 8.19919 6.49114 8.19919C6.65069 8.19919 6.80449 8.22402 6.94874 8.26978V6.85141C5.16026 6.88834 3.72186 8.34895 3.72186 10.1453C3.72186 11.042 4.08007 11.8549 4.66138 12.4489C5.18586 12.8008 5.81722 13.0061 6.49645 13.0061C8.31693 13.0061 9.79277 11.531 9.79277 9.71144V6.07394Z",fill:"white"}),Zt("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.278 5.46571V5.08632C11.8116 5.08702 11.3543 4.95645 10.9585 4.70955C11.3089 5.09289 11.7702 5.35726 12.278 5.46571ZM9.8201 3.0259C9.80821 2.95808 9.7991 2.8898 9.79278 2.82123V2.59198H7.99899V9.71134C7.99611 10.5412 7.32225 11.2132 6.49115 11.2132C6.24711 11.2132 6.01678 11.1554 5.81275 11.0525C6.08827 11.4139 6.52334 11.6471 7.01307 11.6471C7.84404 11.6471 8.51803 10.9751 8.52097 10.1452V3.0259H9.8201ZM6.94881 6.85137V6.44747C6.79892 6.42697 6.64781 6.41673 6.49652 6.41681C4.67585 6.41681 3.20001 7.89188 3.20001 9.71134C3.20001 10.8521 3.78004 11.8574 4.66145 12.4487C4.08014 11.8548 3.72193 11.0419 3.72193 10.1452C3.72193 8.34891 5.16027 6.8883 6.94881 6.85137Z",fill:"#74F0ED"})),Ta=({className:e})=>Zt("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAFNElEQVR4Xq1XSU9bVxT+1Fat1FV+R9d0RRdVpVT0B3RD9+0mSJVaUkoBG2I8YEaDw5gyGDo40FZV1S0sAotQCUoI2MYOxnYgAcpgSBoSwuv53vMNj4tLMMmRjnj4vXu+7557pgtcVFyRItRFpuBbmUJzqkh//Xrk0/CbcMxcwud/vWs+Uxzzb8MZK0VzJoq+PQPBTQMtq1HUJ0rNd2qdU9ZwrVp3IfHES1C7NA1PcgIN6TC8yQCuJULwLGcxcmTgF8PAr6I3HhvyLgtnNISaaACV82E4YhNoXZtGS/QT3ez5pOzPd+C5N4rgloH+JwYGDgx07RrokV2HnhsYE+DRHIGw6A+ivY+sb/h9n5DqeGigNTZq2ipYvLMfwJvYMkFu2pRgds337uec8rdAZguNYqsgcYy/BV+iE93blhFlkPqTTfm/nYz+DX/rFg/W/d2JD8XmS4Wuqo4Uo2qxC/70DkLPThqm/mhTRUIHtr8bOTTQsLIrcdMJt9jOexwOxxsSZCXwpsfgXd1GcNcywvO1A+gEqGcRUCToxUFR/4Nt2dgYGpZLTMxjApIudfHbCO6c3nGhSjBmB4OU/+tx0rouGZOexpfjl44JMM/dqXEzerlAP+dCVXmGJKh2AjcEw5OaMDFfCIsF85ypVigBPSt6JP3aNo/Q88hKUzs4tf+pBGXi5ukC5Um2mzn8qgTcKzuouNMGVzKBwcPTBK4LRlW04yQ4SygrXHf2mEC+IMsH+rthBevgc4JnBfgKKhY/liNNmTGlE+gVD1XFhl+UbVPqpI67E/tmeX0ZAX3HBB86ssCvzl3B1YXLqF+Jm0fA6qgTGBKizev78KQ/s8B9iSLJ0wiGnlrG+JEOehYBtfPy2TLUCLhzKW7unN/qAahs82g86QiqE+8DjelJ9OZcrxbwWQHqXtAJmOB3LHBvJm66mDvnu5GcPbvydwYnSVYsTAL+5CS6cvnP/NUJ9AtbV+oQ7sxz09WM4pBh7bxpPStVU8Bjl9G4Zrl92DgOYNrRCfyR+9smbbwmKgQ4TATWIxg8OE4bO4F2IeeMD0ngBATwmUmg918pr6tZAS4MnEovd0lH9WYicCVyg4w3WSok9sw2q+duh6SN78EtfCcTkGOpCdezh7iW3EPl3TLUauAkfBY4lcfjWt5HTSQXhBSmhCcZMiuhTmBASPXIjpse3jKDpibhwNezX1iplj65c+U1HdSu3H357LAUIlsaUr6dbzcHClU+SYRKgzx7Vrjm9Ul8Nf+eeOAjtKxbAWcPyHxBqhPgmvI5rRCZM1wsbE47dg+oZxoOHVmLqyNzaLi/jO8PLKKFEqAHKhe1UswBks2oM5e/qhCp81RAJNG6YRnhu980MJ1MvuNgKa6La82I7bgpcxuBfyxgBgpzmEog5Q19h+rcdXA7Ad2j7TIh+diOZ2ztWA0k/rVRdDzeQqvssC/XSBQBe5E6jyoCXM9hJMhA3tyWOBpD86o2kCjhuOS+X4z6TCd8mR30Pjl2o71GnEeVZwakbrhkJKuKdUnV/J+RTBcOpZ5IJ4IblhGVEYUQUOu6ZLB1nHcotYt7phjtq1uvTKA1LUeaKHAsp9BVfrlUdO9Y3Ytpx+hnKrKlMlB5vqztav7jO0Y5xy6WbK5tWrrgxYTSIFczd3JaCs+EVL0wau8F4JDrV8tG1iShihaB2RW/uRuCIx6Q5zDqZY0/NY3G+AWvZhQWC06v+uXUmy6FXy6k3C3bqlcuqk4ZalR55bdcw1Q7Nfu9LmEnq1yYkh1PSbu+8PX8PzaYeteTmavNAAAAAElFTkSuQmCC",alt:"Verified",className:e});var Da="_SFquV";const Ma=()=>Zt("img",{src:"data:image/png;base64,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",className:Da}),La=({avatar:e})=>{const[t,n]=Ln(!1);return Zt(Kt,null,e&&Zt("img",{style:{opacity:Number(t),position:t?"static":"absolute"},src:He(e,"tr=h-64"),loading:"lazy",className:Da,onLoad:()=>n(!0)}),!t&&Zt(Ma,null))};var Ua={root:"_iFjDp",provider:"_I3aVG",info:"_VKERp",accountName:"_mRiqC",followers:"_6B2MV",verified:"_l-GPE"};const Oa=({avatar:e,accountName:t,followers:n,provider:r,verified:o})=>{const i="instagram"===r,{slideSize:s}=Br();return Zt("span",{className:wt(Ua.root,Ua[s])},Zt(La,{avatar:e}),Zt("div",{className:Ua.provider},Zt(i?Pa:Na,null)),Zt("div",{className:Ua.info},Zt("span",{className:Ua.accountName},t,o&&Zt(Ta,{className:Ua.verified})),Zt("span",{className:Ua.followers},vt(n||0)," followers")))};var Ba={root:"_Gezky",content:"_hVm8W",info:"_eu32R",title:"_UWj-E",price:"_A8srQ",image:"_6hwpq",small:"_D8n-6",instagramPost:"_gB3oj",btn:"_pJe-B",video:"_3oUNS"};const Va=({products:e,isVideo:t,textColor:n,backgroundColor:r})=>{const o=Gr(),i=Br(),s=null==e?void 0:e[0];if(!s)throw new Error("Product not found");const{slideSize:a,aspectRatio:l,shopDomain:c}=i,u=yi(c,s.handle),{imageUrls:d}=s,p=null!=d&&d.length?ht(d[0]):null,h=_i();return Zt("a",{className:wt(Ba.root,Ba[a],Ba[l],{[Ba.video]:t}),href:u,target:"_blank",rel:"noopener noreferrer",onClick:()=>{o("Product Opened"),h({productOpened:!0})}},Zt("div",{className:Ba.content},p&&Zt("img",{src:p,loading:"lazy",className:Ba.image}),Zt("div",{className:Ba.info},Zt("span",{className:Ba.title,style:{color:n}},s.title),Zt("span",{className:Ba.price,style:{color:n}},lo(s.price,i.shopCurrency)))),Zt("span",{className:Ba.btn,style:{color:n,backgroundColor:r}},"Shop now"))},Ra=()=>Zt("svg",{className:"_-1Y6q",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("path",{d:"M12.758 3.36a1.265 1.265 0 0 0-1.367.235L6.117 8.283H2.875A1.85 1.85 0 0 0 1 10.158v3.75c0 1.015.82 1.875 1.875 1.875h3.242l5.274 4.648c.234.235.546.313.859.313.156 0 .313 0 .508-.078a1.31 1.31 0 0 0 .742-1.172V4.533a1.31 1.31 0 0 0-.742-1.172Zm8.281 8.634 1.836-1.836a.855.855 0 0 0 0-1.29.856.856 0 0 0-1.29 0l-1.835 1.837-1.875-1.836a.856.856 0 0 0-1.29 0 .855.855 0 0 0 0 1.289l1.837 1.836-1.836 1.875a.856.856 0 0 0 0 1.289c.352.39.937.39 1.289 0l1.875-1.836 1.836 1.836c.352.39.937.39 1.289 0a.856.856 0 0 0 0-1.29l-1.836-1.874Z",fill:"white"})),Ha=()=>Zt("img",{className:"_7u3cI",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAC/ZJREFUeAHtnV2MFUkVx/kQnAEdd0XdkIBC3AAPDoEEeMFhhH2AEIjEBPlISHwi8kDw0YchrhMIq4mL2YkDruKDqPggm0VCkAQfQAgPC4FkBTZmJIB8LQIzywwMMDLj+TEUud1dfbv73q7u6tt1kpr+qlt16vz7nDp1qqpnzBhHTgJOAk4CTgKWSmCspXwlZYt2jJf0uYrE9ThJPCOpczkdMyJp+OVRnT+X6/9VJK55VmgqKsCA9fmXaaIcAdYEAfgzSU9fJl6KQlGRAAbQJkkcTQEaBR6AA/aTl8eo/Lk/tx1ggJwkqVkSJtcmwoQPSnosCeCtJBsBhicAnSxpgpVSCzI1JLceSQJwq/ptmwCGF7T1C5Js01ZhKRah1QOS0GorgLYBYBwmBSznjUA4YwroXB2zvAHGFLdIKqrGRr2MaPRDSZjuXCgvgHGeviQJj7gMhOf9maTMnbGsAaY++tgvSioj9UujMd2Z9c9ZAozWvi6pKJ6xsGqE8Lh7JWWizVn1fQQopkjKqj6pylpCBjiVAGwcZNMCx0LQ15KytBZSndWELHAwGTUQCjVGJoUO81+WRKzYUbgEAPiBJCPDKVMaTLmYZAeuCCGCkBWjCTzt1J0vEwDjTH1FEkdH8SQADphsQE5Vk9MGGA8ZcNMuV4pseKJLSx3kNIFQmtso4cY83ijlfDEdmYompwUw5TjNTeeVAGSGlYBcd5+cBsBoLA6V63NFCCkRMsXxqhvkegHmbXPeckqo+ooBG0YhdU1U1AswAQwcA0dmJAA+aDPedU1Uj0NEP8GqC0dmJYCMkXVNVCvA9LdMHDjKRgLIuiYfpxaA6XepkKOjbCRQs8xr6YOZy3X9bjbAVtaisEo0OZFUgzETZZ2srxR2XufIPpGpTgowXrOjfCWQCIMkAGOWy7KGKl8Iq9cOBrG7yLgAk4/Vj47skABYxMIuViYpjCUmqpO3o4nl5gIswCSS4gCMi85KSEd2SQBMIoeqcQDmTYmTz67mNz43YBKpxVHAWau9mzdvbrl79+6PBwcHDwwMDLx/9erVH6xZsya289Eg+EdqcZSK84a8Zpswtm7d+tru3buPjh8//uuVvA0PDz+4fv36zxYsWPDH+/fv1z2XWlm2xed9whub3bQUBfBX5VfWLVS/d+/e9ilTpvxQ2yK5+ezZs49Pnz7dsWzZsrNheRroPgvp/xvWnmommoiJdeDSkJaWlqVhDeL+xIkTW5cuXfrhw4cPf9nZ2clL2sgERqHRrWoazFjLSu95ZGTkivAWK+gieQdu3rz57ooVK/ZdvHjR+E6CnN4k9juxizFA1QB+Q3JbOfYV0G4GWhJxY2hoqOfChQsdixYt+kdE1iI+ZpvqpzrGw0w02mEluLpGxLk3YcKENxcuXPhn8bh/s2fPnmlxflOgPGCltWhhGkxA29rVGrVosA+swTt37vxq3bp13SdPnqx5OYyvzLwv+UbIZ34mwgD+mmQM7bj9hWR9nQLAL1h+/vz5fy5duvSTuXPnHsu6DQbqw7+46y9XZ6K5Zy24/gbUcy3j6Omtra2/e/z48Z8OHDjwzXrKsuC3YBbAM3BDMmltuQUNMMZCc3Nz+/r16/8u4+uOjRs3Wts1xRBAADudiSZyFRnjjFGZsSxpmWgdgxIN+7Snp2fH/PnzPxDN1mWx+R4ME9l6RToNLvWWz3Hjxr0xa9asLgl1fnj48OFvvZJUMU4C2PkBRqNL0f9G4dXU1LRw1apVR3t7e3cR+47Kb8lzsPNYZc+FPCQDHrTVZNJE6xou9fVeu3aNSYw/FGASA0/6VcTOr8FOezUIjx079vUZM2a8c/v27aMnTpxYoMli0y0Phg7gBNBINKx1yZIlh2QS472dO3faauk8APtNtPUeNHhkbaJ174DwMHDr1q3dy5cv/61lkxgeT9oPMFtBA2MpXQPzvGcDwKr9Eg3rOX/+/HaJc59U93I+Enq9r3jwm2j/tcrnjiESkGjYm+J8sWxonyWTGB4M/RpMv+Kx4SHtyvW2TRrsE8TgjRs33pk3b96+HL1tT0zag7Yw6wfcx7+7jJBA87Rp034qQ6r3JRKW12oYD4Z+gP3XEe1xj3USmDx58spjx479SPcsg3seDD0XUrkH/QyYadgqZFHg93NqnAdDP8A58dR41UpwxIq9XH6Ay7KW2Pgb9eTJk4+MV6KvwIOhH+BUvq6mr7c8d8XL7z1y5EhnTi32YOgH2IN+TgwWulpZvfnJwYMHv7d27dp/5dQQD4b+Ma/nYU4MFrVaFvJ1r1y5sksiW+w2yIs8GPo12KPeeXFYtHofPXp0dO/evd+ZOnXquzmDi+g8GPo1mAXUjmJKwNLF9B4M/QC/miiO2cZSZrN4Jgk8PBj6TbTnYSnRq97okf7+/r/s2rWrTUKSey2bJlScezB0GqzEEnEUc/zxmTNnOtrb223fkloVYI/9jmhzKR6LOX4gkwc/L8h6LDDxYOg30bjYnjegFCjqGznc19f3+23btrXNnDlzf47Tf3ru9HfBzjNM8ptofsa3EHX3eVYKIsx4/PjxjtWrV/+zYA0OfMdSByRLPqze2WBK6GpXw+zZsz8wVYfhcgM7Jf0mmvoDmQwzZUPxQ2KC92zatKmtwOBqsdNpMJEQbLnumQ1gpMqDfIbpxKFDh7Zv2LDh36kWnH1hYOaJYsFCGIhocdgzfld4Ym/w5cuX35bto38rfGNGG6C1vDoTTXb+nUujEpMCv5BPLLU3ELhgpcUsTEt5GxhPNdR3OpgU2L9//9tbtmy5gUQaiMBKq8FhANN2/l+PlZ9REr4Y63nWHsl1KFk6KRDKbw0PQv+3UpiJpg62QFhJMpy5HYcxJgVknXKnLGF9q0E/n6TEEIpVNYDxyvKcuFbMB45Pnz69HLjpvfFiUmDHjh3fnj59+q8tnRTwclz7FRiBlZaqmWh+wKd5rNv8fPbs2a62tra3dC1iUuDUqVNl+U6lwkgnihf3ovoxnrOdxTpnSz5/9N05c+bsZO8uLRFgP7ly5cp7ixcv/mtB4sawXS/hXLHh2xN/riw0CmDy8tWZRP/po7ICk+eTJk0a09XV9Y1z5871dXd3Bz4CZrJuS8qmzVjZUIoDMHn4bmW1/jq0AvfAmASIWvF9ylDtpeY4oFEAXzN1ZJcEwKQquLAbB2Dy4YZj7x3ZIQGwCB0aVbIYF2DMgfZ7xJWFufPMJAAWgYkFXe1xAea3REu04TBdwe6eMQmAQWjkyl9rEoD5bRk9Vb/M8r5OhEHS8a0yC9Z/qCVvFAzV3y/lameNwupLqsGUg/dmZQgzrJENch+ZJx7N1AIwrnmvpEgXvUEEa0MzapZ5UhOtGoupJsBdtv80ptqf9RGFCqyYjMNErQBTNgBjAQKfsOWho9QkQCiyajiyWk31AEy5vFU4XPWWQ1mOghJAvn3B2/HvpAEMXp0DOb7M4+bEqXogqS5fJw2AYYDBN/1xLU6b/MyRTwKEIvnepBqW+h7Hv0wDYGqrBDnODFV8DsuXE1ABN5XYf1oAAwOMKU12ICOR5KTADV2Ck7TINAGmbhikT26S5My1CCEBKbOcGrjUnTbAlKlAdo4X0ohHOFSpmeXKKk0ATPn0yWgyY2RTdUjRDUEMhfCWUYzUyaTwAZlpLRcMCYeNAAbjXGRlhEwCrBjG8cIE0S8752tUKgBK+LHmCNVoMdF/swAYLnAcnMkexUP1tzXFlkeLiP83K4DhiD5GrUQo63wy87mYZCP9rZQboLxMJjsqWGtdFqDppliJkeoQSMqLpLwAVowR3uTD2VlaElV3FkfGtiyQU5Yrizo9deQNMMzgZfPRF7aqNkpwBBPM6guWtmZmjqWuANkAsGIKXhTQRdVoNFYBa2zoowQW52gTwIpfeMJ0sycqr39No3iJe8QzZsiDKbYCWMW4jQAr3jjijKHVAG6bVqOtAIoZztx5kjpjke0Aq0bAJ2FPgiV43lH7miWLEQJIPGLG9Bytp6IA7BckzhhAkwDeFOAASkACMEm5OkxSf2IqKsD+htIOTDhAq8Q1LwLPSOpcTl/0k4BFf0niHJMLoCpxbVV/Kvw4chJwEnAScBJoHAn8H5OD8PLyPN6wAAAAAElFTkSuQmCC",alt:"Play Video",draggable:!1}),Fa=()=>Zt("svg",{className:"_qISIH",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("path",{d:"M17.094 9.103c-.39-.312-.977-.234-1.328.156a.942.942 0 0 0 .156 1.328c.43.352.703.86.703 1.446 0 .547-.273 1.055-.703 1.406a.942.942 0 0 0-.156 1.328.962.962 0 0 0 .742.352c.195 0 .43-.078.586-.196.898-.742 1.406-1.796 1.406-2.89 0-1.133-.508-2.188-1.406-2.93Zm2.383-2.852a.93.93 0 0 0-1.329.118c-.351.39-.273.976.118 1.328a5.555 5.555 0 0 1 2.109 4.336c0 1.64-.781 3.242-2.11 4.297-.39.351-.468.937-.117 1.328.196.234.43.351.704.351.234 0 .43-.078.625-.195 1.757-1.445 2.773-3.555 2.773-5.781a7.371 7.371 0 0 0-2.773-5.782Zm-6.72-2.89a1.265 1.265 0 0 0-1.366.234L6.117 8.283H2.875A1.85 1.85 0 0 0 1 10.158v3.75c0 1.015.82 1.875 1.875 1.875h3.242l5.274 4.648c.234.235.546.313.859.313.156 0 .313 0 .508-.078a1.31 1.31 0 0 0 .742-1.172V4.533a1.31 1.31 0 0 0-.742-1.172Z",fill:"#fff"})),ja=["playerState"],za=$n(({fetchPriority:r="high",inView:o,src:i,height:l,poster:c})=>{const u=Kr(),d=Gr(),{shopUUID:p,autoplay:h}=Br(),f=Bn(null),{increaseVideosEngaged:m}=Nr(),g=Ts(f,{isPlaying:h,isMuted:!0}),{playerState:v}=g,y=t(g,ja),{toggleLoading:_,setPlayerState:w}=y,{croppedPoster:b,posterLowQuality:C,renderLowQualityPoster:x,srcSet:S}=function({ref:e,poster:t,src:n,playerState:r}){const{aspectRatio:o}=Br(),i=ls(e),a=i?function(e){e||Fe(`getMediaHeight: height: ${e}`);const t=e*at();switch(!0){case t>=768:return 720;case t>=s:return 576;case t>=320:return 480;case t>=240:return 360;default:return 240}}(i):null,l=a?gt(t,a,o):void 0,c=a?((e,t,n)=>`${gt(e,t,n)},bl-20,q-20`)(t,a,o):void 0,[u]=(e=>{const[t,n]=Ln(!1);return Un(()=>{(async()=>{if(!t&&e)try{await(r=e,new Promise((e,t)=>{const n=new Image;n.src=r,n.onload=()=>e(n),n.onerror=e=>t(e)})),n(!0)}catch(t){ze(t,e)}var r})()},[e,t]),[t]})(l);return{croppedPoster:l,posterLowQuality:c,renderLowQualityPoster:!r.canBePlayed&&!u&&!!c,srcSet:Vn(()=>((e,t)=>({srcXss:ft(e,360,t),srcXs:ft(e,480,t),srcSm:ft(e,576,t),srcMd:ft(e,640,t),srcLg:ft(e,710,t)}))(n,o),[n,o])}}({ref:f,poster:c,src:i,playerState:v}),[A,I]=function(e){return Ln(e?"auto":"none")}(h),{handleClick:k,handleMouseEnter:E,handleMouseLeave:P,handleSoundIconClick:N,handleCanPlayThrough:T}=(({src:e,setPlayerState:t,playerState:r,setPreload:o,toggleMute:i,togglePlay:s,handleVideoCanBePlayed:a,onPlay:l})=>{const c=Gr(),{autoplay:u,playOnHover:d}=Br(),{setCurrentSlide:p}=Nr(),h=!u&&!n&&d;return{handleClick:()=>{o("auto"),p(t=>e===t?null:e),t(e=>({isPlaying:!e.isPlaying,isMuted:e.isPlaying})),null==l||l({value:!r.isPlaying,isHover:!1})},handleMouseEnter:()=>{h&&(o("auto"),s(!0),p(t=>e===t?null:e),null==l||l({value:!0,isHover:!0}))},handleMouseLeave:()=>{h&&r.isPlaying&&(s(!1),null==l||l({value:!1,isHover:!0}))},handleSoundIconClick:t=>{t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),p(t=>e===t?null:e),i(),c("Sound Icon Clicked",{playIsMuted:!r.isMuted})},handleCanPlayThrough:Vn(()=>xt(a,300),[a])}})(e({src:i,playerState:v,setPreload:I},y)),D=Rn((e,t)=>{u({type:"video",url:t,originalUrl:i,isPreview:!1,blobSize:ps(e)}),m()},[u,i,m]),M=Rn(e=>{d("Play Video Clicked",{playValue:e.value,playIsHover:e.isHover})},[d]);return ys(f,k),(({setPlayerState:t,src:n,playerState:r,inView:o,onPlay:i})=>{const{autoplay:s}=Br(),{currentSlide:a}=Nr(),l=n===a;Un(()=>{o||r.isMuted?!l&&null!==a&&!r.isMuted&&(t(t=>e({},t,{isMuted:!0,isPlaying:!!s&&t.isPlaying})),null==i||i({value:!!s&&r.isPlaying,isHover:!1})):(t(t=>e({},t,{isMuted:!0,isPlaying:!1})),null==i||i({value:!1,isHover:!1}))},[s,t,a,n,r.isPlaying,r.isMuted,l,o,i])})({setPlayerState:w,playerState:v,src:i,inView:o,onPlay:M}),Zt("div",{onMouseEnter:E,onMouseLeave:P,className:"_ZLuPP"},Zt(ks,{height:l,className:"_4mEIX",loop:!0,poster:b,onCanPlayThrough:T,playsInline:!0,ref:f,role:"presentation",preload:A,srcSet:S,onLoadStart:_,onPreload:D,noCors:p===a}),v.isLoading&&Zt(Cs,{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}}),x&&Zt("img",{src:C,className:"_KVWAi",role:"presentation",loading:"low"===r?"lazy":"eager",decoding:"low"===r?"async":"auto",fetchpriority:r,draggable:!1}),!v.isPlaying&&!v.isLoading&&Zt("div",{className:"_V4fMO",onClick:k},Zt(Ha,null)),Zt("div",{className:"_PwmUu",onMouseDown:N,draggable:!0},Zt(v.isMuted?Ra:Fa,null)))}),qa=["mediaItem"],Za={instagramPost:ba,instagramStory:Ca},Ga=$n(n=>{let{mediaItem:r}=n,o=t(n,qa);return Zt(r.isVideo?za:vs,e({},o,{alt:"",src:r.src,poster:r.poster,fallback:Zt(Za[o.aspectRatio],null)}))});var Ka={root:"_-SGJn",content:"_CtJTX",shoppingCart:"_2EMnx",influencerInfo:"_y-5aJ",medium:"_tGo-I",large:"_K4z9V",selected:"_JBvJ-",video:"_P1Ft-",instagramPost:"_0og46",instagramStory:"_zOTUo"};const Ja=$n(({mediaItem:t,fetchPriority:n="low"})=>{const{products:r,id:o,influencer:i}=t,{src:s}=t,{borderRadius:a,aspectRatio:l,slideSize:c,influencerInfo:u,type:d}=Br(),{currentSlide:p}=Nr(),h=s===p,f="internal"!==t.influencer.provider,m=r.length&&d!==lt.Product,[g,v]=Xr({triggerOnce:!1,rootMargin:"0px 0px 0px 0px",threshold:0}),y=va(v),_=ls(g),w=_i(),b=Vn(()=>({aspectRatio:l,everInView:y,fetchPriority:n,mediaItem:t,height:_,inView:v}),[l,y,n,_,v,t]);return Zt(Kt,null,Zt("div",{onClick:()=>{w({cardOpened:!0})},className:wt(Ka.root,Ka[c],Ka[l],{[Ka.selected]:h}),style:{borderRadius:`${a}px`},ref:g},Zt("figure",{className:wt(Ka.content,Ka[l],{[Ka.video]:t.isVideo})},u&&f&&Zt("figcaption",{className:Ka.influencerInfo},Zt(Oa,e({},i))),Zt(Ga,e({},b)),m&&Zt("footer",{className:Ka.shoppingCart},Zt(Va,{products:r,isVideo:t.isVideo,backgroundColor:t.backgroundColor,textColor:t.textColor,influencer:i,mediaItemId:o})))))}),Wa=({className:e})=>Zt("svg",{width:"64",height:"64",viewBox:"0 0 64 64",className:e,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M32 64C49.6729 64 64 49.6731 64 32C64 14.3269 49.6729 0 32 0C14.3271 0 0 14.3269 0 32C0 49.6731 14.3271 64 32 64ZM32 62C48.5684 62 62 48.5686 62 32C62 15.4314 48.5684 2 32 2C15.4316 2 2 15.4314 2 32C2 48.5686 15.4316 62 32 62Z",fill:"url(#paint0_linear_2436_11806)"}),Zt("defs",null,Zt("linearGradient",{id:"paint0_linear_2436_11806",x1:"0",y1:"64",x2:"64",y2:"0",gradientUnits:"userSpaceOnUse"},Zt("stop",{"stop-color":"#FF8C1D"}),Zt("stop",{offset:"1","stop-color":"#E106A5"})))),Ya=({className:e})=>Zt("svg",{className:e,width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("circle",{cx:"28",cy:"28",r:"28",fill:"#D9D9D9"}));var Qa={outer:"_NWqIh",large:"_VwhY9",container:"_uXEyZ",background:"_bM-2E",cover:"_S3NGZ",imageContainer:"_oBo84",image:"_JkgLS"};const Xa={small:Wa,medium:Wa,large:({className:e})=>Zt("svg",{width:"96",height:"96",viewBox:"0 0 96 96",className:e,fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M48 96C74.5098 96 96 74.5098 96 48C96 21.4902 74.5098 0 48 0C21.4902 0 0 21.4902 0 48C0 74.5098 21.4902 96 48 96ZM48 94C73.4053 94 94 73.405 94 48C94 22.595 73.4053 2 48 2C22.5947 2 2 22.595 2 48C2 73.405 22.5947 94 48 94Z",fill:"url(#paint0_linear_2436_11804)"}),Zt("defs",null,Zt("linearGradient",{id:"paint0_linear_2436_11804",x1:"0",y1:"96",x2:"96",y2:"0",gradientUnits:"userSpaceOnUse"},Zt("stop",{"stop-color":"#FF8C1D"}),Zt("stop",{offset:"1","stop-color":"#E106A5"}))))},$a={small:Zt(Ya,null),medium:Zt(Ya,null),large:Zt(({className:e})=>Zt("svg",{className:e,width:"88",height:"88",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("circle",{cx:"44",cy:"44",r:"44",fill:"#D9D9D9"})),null)},el=nr(({Image:e,size:t="medium",Cover:n,onKeyDown:r,ariaLabel:o},i)=>{const s=ls(i),a=Xa[t],l=$a[t];return Zt("span",{ref:i,className:wt(Qa.outer,Qa[t])},Zt("span",{className:wt(Qa.container,Qa[t]),onTouchStart:St,role:"button",tabIndex:0,"aria-label":o,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),null==r||r(e))}},Zt(a,{className:Qa.background}),Zt("span",{className:Qa.imageContainer},n&&Zt(n,{className:Qa.cover}),Zt(e,{className:Qa.image,fallback:l,height:s}))))}),tl=()=>Zt("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("path",{d:"M6.03984 17.625C6.08672 17.625 6.13359 17.6203 6.18047 17.6133L10.1227 16.9219C10.1695 16.9125 10.2141 16.8914 10.2469 16.8563L20.182 6.92109C20.2038 6.89941 20.221 6.87366 20.2328 6.8453C20.2445 6.81695 20.2506 6.78656 20.2506 6.75586C20.2506 6.72516 20.2445 6.69477 20.2328 6.66642C20.221 6.63806 20.2038 6.61231 20.182 6.59063L16.2867 2.69297C16.2422 2.64844 16.1836 2.625 16.1203 2.625C16.057 2.625 15.9984 2.64844 15.9539 2.69297L6.01875 12.6281C5.98359 12.6633 5.9625 12.7055 5.95312 12.7523L5.26172 16.6945C5.23892 16.8201 5.24707 16.9493 5.28545 17.071C5.32384 17.1927 5.39132 17.3032 5.48203 17.393C5.63672 17.543 5.83125 17.625 6.03984 17.625ZM7.61953 13.5375L16.1203 5.03906L17.8383 6.75703L9.3375 15.2555L7.25391 15.6234L7.61953 13.5375ZM20.625 19.5938H3.375C2.96016 19.5938 2.625 19.9289 2.625 20.3438V21.1875C2.625 21.2906 2.70937 21.375 2.8125 21.375H21.1875C21.2906 21.375 21.375 21.2906 21.375 21.1875V20.3438C21.375 19.9289 21.0398 19.5938 20.625 19.5938Z",fill:"white"})),nl=({className:e})=>Zt("span",{className:wt(e,"_yHsyC")},Zt(tl,null)),rl=$n(({fetchPriority:e="low",mediaItem:t,size:n})=>{const{slideSize:r,platformType:o,showEditSlideButton:i}=Br(),s=n||r,[a,l]=Xr({triggerOnce:!1,rootMargin:"0px 0px 0px 0px",threshold:0}),c=va(l);ya(c);const u=((e,t,n)=>{const r=_i(),o=ga(),i=_a(),s=Gr(),a=()=>{"archive_app_preview"!==n?(s("Card Opened"),o(t),r({cardOpened:!0})):i(ro,{mediaItemId:t.id})};return ys(e,a),a})(a,t,o),d=Rn(({className:n,height:r,fallback:o})=>t.isVideo?Zt(xa,{aspectRatio:"instagramPost",className:n,src:t.src,poster:t.poster,fetchPriority:e,inView:l,everInView:c,height:r,showPlayIcon:!1,alt:"Content Slide",fallback:o}):Zt(vs,{aspectRatio:"instagramPost",className:n,src:t.src,fetchPriority:e,inView:l,everInView:c,height:r,showPlayIcon:!1,alt:"Content Slide",fallback:o}),[t,c,e,l]);return Zt(el,{ariaLabel:oo(t.influencer),ref:a,size:s,Image:d,onKeyDown:u,Cover:i?nl:void 0})}),ol=({color:e="none"})=>Zt("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("path",{d:"M19.964 15.6064L12.9203 10.1048C12.9018 10.0903 12.8797 10.0813 12.8564 10.0788C12.8331 10.0763 12.8096 10.0805 12.7886 10.0908C12.7675 10.101 12.7498 10.117 12.7374 10.1369C12.7251 10.1568 12.7186 10.1798 12.7187 10.2032V11.4111C12.7187 11.4876 12.7546 11.5611 12.814 11.6079L18.439 16.0001L12.814 20.3923C12.7531 20.4392 12.7187 20.5126 12.7187 20.5892V21.797C12.7187 21.9017 12.839 21.9595 12.9203 21.8954L19.964 16.3939C20.0239 16.3472 20.0723 16.2874 20.1056 16.2192C20.1389 16.151 20.1562 16.076 20.1562 16.0001C20.1562 15.9242 20.1389 15.8493 20.1056 15.781C20.0723 15.7128 20.0239 15.6531 19.964 15.6064Z",fill:e,fillOpacity:"0.88"}));var il="_S1OLC";const sl=({isDisabled:t,isHidden:n,onClick:r})=>{const o=Gr(),i=Br();return n?null:Zt("div",e({tabindex:t?-1:0,className:wt("_vh4Gj",{[il]:t})},Xo(()=>{t||(null==r||r(),o("Slide Changed",{slideDirection:"forward"}))}),{role:"button","aria-label":"Next Slide"}),Zt(ol,{color:i.arrowColor}))},al=({color:e="none"})=>Zt("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("path",{d:"M19.3128 11.4107V10.2029C19.3128 10.0982 19.1925 10.0404 19.1112 10.1045L12.0675 15.606C12.0076 15.6526 11.9592 15.7122 11.9259 15.7803C11.8926 15.8484 11.8752 15.9232 11.8752 15.999C11.8752 16.0748 11.8926 16.1496 11.9259 16.2177C11.9592 16.2858 12.0076 16.3454 12.0675 16.392L19.1112 21.8935C19.194 21.9576 19.3128 21.8998 19.3128 21.7951V20.5873C19.3128 20.5107 19.2768 20.4373 19.2175 20.3904L13.5925 15.9998L19.2175 11.6076C19.2768 11.5607 19.3128 11.4873 19.3128 11.4107Z",fill:e,fillOpacity:"0.88"}));var ll="_91mD5";const cl=({isDisabled:t,isHidden:n,onClick:r})=>{const o=Gr(),i=Br();return n?null:Zt("div",e({tabindex:t?-1:0,className:wt("_7SR5l",{[ll]:t})},Xo(()=>{t||(null==r||r(),o("Slide Changed",{slideDirection:"backward"}))}),{role:"button","aria-label":"Previous Slide"}),Zt(al,{color:i.arrowColor}))},ul=()=>Zt("svg",{width:"62",height:"18",viewBox:"44 0 128 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zt("path",{d:"M33.8885 44.3061C40.0336 44.3061 43.7501 42.8342 45.9211 39.7801C45.9211 41.1416 45.9947 42.4294 46.1787 43.6069H49.8216C49.4904 41.6935 49.4168 40.4424 49.4168 36.9835V32.2735C49.4168 27.1955 45.4795 24.5094 37.973 24.5094C30.724 24.5094 26.014 27.3059 25.4252 31.3536H29.2889C29.8776 28.6306 32.9318 27.1955 37.973 27.1955C42.9405 27.1955 45.8843 28.925 45.8843 31.8687V32.2367L34.4037 32.8991C29.7305 33.1566 28.001 33.819 26.6763 34.7757C25.4252 35.6956 24.7261 37.1307 24.7261 38.7866C24.7261 42.2823 28.3322 44.3061 33.8885 44.3061ZM35.066 41.6935C30.7976 41.6935 28.4426 40.7 28.4426 38.713C28.4426 36.5787 29.9144 35.622 35.1028 35.2909L45.8843 34.6285V35.4748C45.8843 39.3385 41.3583 41.6935 35.066 41.6935Z",fill:"#132659"}),Zt("path",{d:"M58.892 25.2085H55.6539V43.6069H59.1496V36.7259C59.1496 34.0766 59.6647 31.8319 61.1366 30.2865C62.4245 28.8514 64.0804 28.0419 66.9873 28.0419C67.9808 28.0419 68.6064 28.1155 69.4527 28.2626V24.8773C68.68 24.6933 68.0176 24.6565 67.0241 24.6565C63.0868 24.6565 59.9591 26.9748 58.892 30.5441V25.2085Z",fill:"#132659"}),Zt("path",{d:"M83.1567 44.3061C89.7433 44.3061 94.4165 41.8407 95.7412 37.6091L92.0615 37.0571C90.7 39.9273 87.7931 41.3991 83.2671 41.3991C77.4899 41.3991 73.9574 38.7498 73.9574 34.4077C73.9574 29.9185 77.306 27.4163 83.2303 27.4163C88.0139 27.4163 90.8472 28.8882 91.9143 31.9791L95.8148 31.464C94.3797 26.754 90.2953 24.5094 83.3774 24.5094C75.3925 24.5094 70.241 28.373 70.241 34.4077C70.241 40.4056 75.3557 44.3061 83.1567 44.3061Z",fill:"#132659"}),Zt("path",{d:"M103.853 43.6069V35.3276C103.853 30.6544 107.644 27.4899 113.163 27.4899C118.683 27.4899 121.626 30.5073 121.626 36.2108V43.6069H125.122V35.7324C125.122 28.373 121.332 24.5094 114.157 24.5094C109.483 24.5094 105.804 26.386 103.853 29.6977V16.9292H100.358V43.6069H103.853Z",fill:"#132659"}),Zt("path",{d:"M135.107 21.86V17.5915H130.912V21.86H135.107ZM134.776 43.6069V25.2085H131.28V43.6069H134.776Z",fill:"#132659"}),Zt("path",{d:"M153.236 43.6069L164.57 25.2085H160.559L151.801 39.6329C151.544 40.0377 151.397 40.4056 151.249 40.7736H151.213C151.065 40.4056 150.918 40.0377 150.661 39.6329L141.903 25.2085H137.892L149.225 43.6069H153.236Z",fill:"#132659"}),Zt("path",{d:"M190.801 34.0766C190.801 28.1155 185.797 24.5094 177.775 24.5094C170.195 24.5094 164.859 27.9315 164.859 34.6285C164.859 40.6632 169.974 44.3061 178.033 44.3061C183.994 44.3061 188.005 42.5398 190.47 39.0441L187.489 37.6091C185.686 40.148 182.559 41.4359 178.069 41.4359C172.145 41.4359 168.76 39.1545 168.502 35.4012H190.801V34.0766ZM168.502 32.8255C168.833 29.293 172.476 27.0483 177.775 27.0483C182.853 27.0483 187.085 29.109 187.121 32.7887V32.8255H168.502Z",fill:"#132659"}),Zt("path",{d:"M32 2H183.239C199.808 2 213.239 15.4315 213.239 32C213.239 48.5685 199.808 62 183.239 62H32C15.4315 62 2 48.5685 2 32C2 15.4315 15.4315 2 32 2Z",stroke:"#132659",strokeWidth:"4"}));var dl={root:"_cqdKs",light:"_j8Bb-",dark:"_f7Oc6"};const pl=()=>{const e=Gr(),{shopDomain:t,showBranding:r,shopUUID:o,brandingTheme:i}=Br();if(!r)return null;const s=(({shopDomain:e,shopUUID:t})=>{const r={domain:e,utm_content:"shoppables_gallery",utm_medium:n?"shoppables_mobile_web":"shoppables_desktop_web",utm_campaign:`${t}_shoppables_link`,utm_source:"shoppables",utm_referrer:window.location.hostname};return`https://archive.com?${new URLSearchParams(r).toString()}`})({shopDomain:t,shopUUID:o});return Zt("a",{className:wt(dl.root,dl[i]),onMouseDown:({button:t})=>{0!==t&&1!==t||e("Clicked Branding Block")},href:s,target:"_blank",rel:"noreferrer"},Zt("span",null,"This widget is powered by"),Zt(ul,null))},hl={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function fl(e={}){let t,n,r,o=!1,i=!0,s=!1,a=0;function l(){if(r)return;if(!i)return;o||n.emit("autoplay:play");const{ownerWindow:e}=n.internalEngine();e.clearInterval(a),a=e.setInterval(h,t.delay),o=!0}function c(){if(r)return;o&&n.emit("autoplay:stop");const{ownerWindow:e}=n.internalEngine();e.clearInterval(a),a=0,o=!1}function u(){if(d())return i=o,c();i&&l()}function d(){const{ownerDocument:e}=n.internalEngine();return"hidden"===e.visibilityState}function p(e){void 0!==e&&(s=e),i=!0,l()}function h(){const{index:e}=n.internalEngine(),r=e.clone().add(1).get(),o=n.scrollSnapList().length-1;t.stopOnLastSnap&&r===o&&c(),n.canScrollNext()?n.scrollNext(s):n.scrollTo(0,s)}return{name:"autoplay",options:e,init:function(o,a){n=o;const{mergeOptions:p,optionsAtMedia:h}=a,f=p(hl,fl.globalOptions),m=p(f,e);if(t=h(m),n.scrollSnapList().length<=1)return;s=t.jump,r=!1;const{eventStore:g,ownerDocument:v}=n.internalEngine(),y=n.rootNode(),_=t.rootNode&&t.rootNode(y)||y,w=n.containerNode();n.on("pointerDown",c),t.stopOnInteraction||n.on("pointerUp",l),t.stopOnMouseEnter&&(g.add(_,"mouseenter",()=>{i=!1,c()}),t.stopOnInteraction||g.add(_,"mouseleave",()=>{i=!0,l()})),t.stopOnFocusIn&&(g.add(w,"focusin",c),t.stopOnInteraction||g.add(w,"focusout",l)),g.add(v,"visibilitychange",u),t.playOnInit&&!d()&&l()},destroy:function(){n.off("pointerDown",c).off("pointerUp",l),c(),r=!0,o=!1},play:p,stop:function(){o&&c()},reset:function(){o&&p()},isPlaying:function(){return o}}}fl.globalOptions=void 0;var ml={root:"_TU97I",viewPort:"_dMAkB"};const gl=$n(({items:t,fetchMore:n,hasMoreData:r,Slide:o})=>{const{interval:i}=Br(),s=Jo({duration:50},(e=>e>0?[fl({delay:e,stopOnInteraction:!0,stopOnMouseEnter:!0,stopOnFocusIn:!0,stopOnLastSnap:!0})]:[])(i));rs({itemIndex:s.state.selectedIndex,itemsCount:t.length,visibleItemsCount:s.state.slidesInView,fetchMore:n,hasMoreData:r});const a=((e,t,n)=>{const r=n+3,o=n+1;return Vn(()=>t.map((t,n)=>Zt(ni,{mediaItem:t,key:t.id},Zt(e,{mediaItem:t,fetchPriority:o>=n?"high":"low",previewFetchPriority:r>=n?"high":"low",index:n}))),[t,e,r,o])})(o,t,s.state.selectedIndex);return Zt(Qo,e({},s,{slides:a,NextButton:sl,PrevButton:cl,className:ml,Footer:pl}))}),vl=$n(({items:t})=>{const n=(t=>{const{mediaItemId:n}=Br(),r=n?t.find(({id:e})=>e===n)||(Fe(`Media Item with ID '${n}' not found!`),t[0]):t[0],[o,i]=Ln(r);var s,a;return s=t=>{const n=t.detail;i(t=>t?e({},t,n,{products:n.products,customProduct:n.customProduct}):t)},Un(()=>(document.body.addEventListener(a,s),()=>{document.body.removeEventListener(a,s)}),[s,a="Shoppables Incoming Update Item Settings"]),o})(t),{state:r,cleanState:o}=Ii();return Zt("div",{className:"_BdySg"},r&&Zt("div",{className:"_36aLi"},Zt(Xi,e({},r,{onClose:o,noBorderRadius:!0}))),Zt(ni,{mediaItem:n},Zt(ua,{mediaItem:n,isPlaying:!1,noBorderRadius:!0,visible:!0})))}),yl=t=>Zt(Ai,null,Zt(vl,e({},t))),_l=()=>{const{productTitle:e,collectionID:t,sourceType:n,productID:r}=Br();return r.length?Zt("span",null,"No assets have been tagged with"," ",Zt("strong",null,e?(e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value})(e):"the product"),".",Zt("br",null),"Please"," ",Zt("a","FilterPreset"===n?{href:"https://app.archive.com/",target:"_blank",rel:"noreferrer noopener"}:{href:`https://app.archive.com/content/collections/${t}`,target:"_blank",rel:"noreferrer noopener"},"tag some assets")," ","or select a different ",Zt("strong",null,"Preview Product")," in the sidebar on the left.",Zt("br",null),"Note that only published products could be tagged with."):Zt("span",null,"No Assets have been found")},wl=()=>{const{collectionName:t,collectionID:n,sourceType:r}=Br(),o={href:`https://app.archive.com/content/collections/${n}`,target:"_blank",rel:"noreferrer noopener"};return"FilterPreset"===r?Zt("span",null,t," View is empty! Please"," ",Zt("a",{href:"https://app.archive.com"},"update the view settings.")):Zt("span",null,t?Zt("a",e({},o),t):"Archive App"," ","Collection is empty! Please add some assets to it.")},bl=()=>{const{categoryName:t,collectionID:n,sourceType:r,productID:o}=Br(),i={target:"_blank",rel:"noreferrer noopener"};return o.length?"FilterPreset"===r?Zt("span",null,"No assets have been tagged with products from the ",t," ","collection.",Zt("br",null),"Please"," ",Zt("a",e({href:"https://go.archive.ai/shoppable-link-products"},i),"tag some assets")," ","or select a different ",Zt("strong",null,"Preview Collection")," in the sidebar on the left.",Zt("br",null),"Note that only published products could be tagged with."):Zt("span",null,"No assets have been tagged with products from the"," ",Zt("a",e({href:`https://app.archive.com/content/collections/${n}`},i),t)," ","collection.",Zt("br",null),"Please"," ",Zt("a",e({href:"https://go.archive.ai/shoppable-link-products"},i),"tag some assets")," ","or select a different ",Zt("strong",null,"Preview Collection")," in the sidebar on the left.",Zt("br",null),"Note that only published products could be tagged with."):Zt("span",null,"No Assets have been found")},Cl=()=>{const{type:e,designMode:t}=Br(),n=(e=>{switch(e){case lt.Product:return Zt(_l,null);case lt.Collection:return Zt(bl,null);default:return Zt(wl,null)}})(e);return Zt(Yr,{designMode:t},n)},xl={[ut.Carousel]:Ea,[ut.Stories]:rl,[ut.Single]:()=>Zt("span",{"data-message":"Single Template"})},Sl=(e,t)=>e?Ja:xl[t];var Al=$n(({items:e,mediaDeck:t,hasMoreData:n})=>{const r=!!e.length;(e=>{const t=Gr(),n=_i();Jn(()=>{e&&(t("Feed Viewed",{feedOffsetFromTop:eo()}),n({feedViewed:!0}))})})(r);const{template:o,isLegacyApi:i}=Br();if(!r)return Zt(Cl,null);switch(o){case ut.Carousel:case ut.Stories:return Zt(Kt,null,Zt(ma,{fetchMore:t.fetchMore}),Zt(gl,{Slide:Sl(i,o),fetchMore:t.fetchMore,items:e,hasMoreData:n}));case ut.Single:return Zt(yl,{items:e})}}),Il=$n(({items:e,mediaDeck:t,intersectionObserverTopMargin:n,hasMoreData:r})=>{const o=(e=>{const{backgroundColor:t,designMode:n,fontFamily:r,template:o,slideSize:i}=Br();return{background:e?t:"none",border:n?"1px dashed #CCC":"none",display:"flex",flexDirection:"column",gap:"12px",margin:"0 auto",width:"100%",minHeight:mi(e,o,i),padding:e&&o!==ut.Single?"15px 0 10px 0":"0","--font-family":r}})(!!e.length),[i,s]=$r(n),{abTestingParticipant:a,abTestingEnabled:l,abTestingControlWeight:c,abTestingExperimentWeight:u,platformType:d,designMode:p,shopUUID:h}=Br();if(function(){const e=Gr(),{totalEngaged:t,imagesEngaged:n,videosEngaged:r,startTime:o}=Nr();Un(()=>{const i=()=>{const i=+new Date,s=Math.ceil((i-o)/1e3);e("Feed Exited",{engagedTotal:t,engagedImages:n,engagedVideos:r,feedOffsetFromTop:eo(),pageTimeSpent:s})};return window.addEventListener("beforeunload",i),()=>{window.removeEventListener("beforeunload",i)}},[e,t,n,r,o])}(),Jn(()=>{const e=new CustomEvent("Shoppables Ready",{bubbles:!0,cancelable:!1});document.body.dispatchEvent(e)}),h&&"archive_app_preview"!==d&&l&&!p&&!a)throw new Error(`You are in the A/B test control group (no Feed). A(control) weight: ${c}, B(experiment) weight: ${u}`);return Zt("section",{ref:i,className:"shoppables-root",style:o},s&&Zt(Al,{items:e,mediaDeck:t,hasMoreData:r}))});const kl=t=>{const{intersectionObserverTopMargin:n=o,platformType:r}=t,{settings:s,mediaDeck:a}=(t=>{if("true"===new URLSearchParams(window.location.search).get("_shoppables_disable"))throw new Error("Shoppables is disabled using URL query.");const n=(t=>{var n,r;const{platformType:o=wi.platformType,font:s}=t,a="shopify_legacy"===o||"standalone_legacy"===o,l=((e,t)=>{if(t){if(e.type===lt.Static&&e.galleryLink)return(e=>{if(!Be.test(e))throw new Error(`Invalid collection link ${e}. It should follow the format: https://app.archive.com/s/c/:id`);return e.split("/").pop()})(e.galleryLink);if(!e.collectionID)throw new Error("Collection ID is empty. Please contact us at shoppables@archive.com to fix the issue.");if(!Re(e.collectionID))throw new Error(`Invalid Collection ID: ${e.collectionID}. It should contain 36 symbols.`);return e.collectionID}return null})(t,a),c="shopify_legacy"===o||"shopify"===o,u=[null==s?void 0:s.family,i].filter(Boolean).join(", ");if(t.feedId&&!Re(t.feedId))throw new Error(`Invalid Feed ID: ${t.feedId}. It should look like this: 854952db-e0af-41dc-ab01-3ef46211c0e2. Check whether you have accidentally pasted a feed URL instead of an ID.`);if(t.template===ut.Single&&t.mediaItemId&&!Re(t.mediaItemId))throw new Error(`Invalid Media Item ID: ${t.mediaItemId}. It should contain 36 symbols.`);return((t,n)=>Object.keys(n).reduce((e,t)=>(null==e[t]&&void 0!==n[t]&&(e[t]=n[t]),e),e({},t)))(e({},t,{arrowColor:t.arrowColor,collectionID:l,font:t.font,fontFamily:u,feedId:null!=(n=t.feedId)?n:null,isLegacyApi:a,template:null!=(r=t.template)?r:ut.Carousel,platformType:null!=o?o:"standalone_legacy",productID:(d=t,d.type!==lt.Static&&d.productID?d.productID:[]),shopDomain:window.location.hostname.replace("www.",""),isShopify:c,slideSize:t.slideSize,shopCurrency:t.shopCurrency||"USD",gqlUrl:t.gqlUrl?decodeURIComponent(t.gqlUrl):"https://shoppables-api.archive.com/public_graphql",airtableIntegration:!1}),wi);var d})(t);st.addBreadcrumb({message:"Base Settings",data:n});const{collectionID:r,feedId:o,productID:s,gqlUrl:a,isLegacyApi:l}=n,c=(({isLegacyApi:t,collectionID:n,feedId:r,productID:o,gqlUrl:i,platform:s})=>{const[a,l]=Ln(di),[c,u]=Ln(!1),[d,p]=Ln(!1),[h,f]=Ln(!1),[m,g]=Ln(null),v=Rn(()=>{if(t)return(async({collectionID:t,productID:n,after:r,gqlUrl:o})=>{const i=JSON.stringify({query:li,variables:e({},t&&{collectionIDs:[t]},t&&{collectionID:t},n&&{productID:n.map(e=>e.toString())},{after:r})});return(await Ct(o,{timeout:1e4,body:i,method:"POST",headers:{"Content-Type":"application/json"}})).json()})({gqlUrl:i,collectionID:n,productID:o,after:a.pageInfo.endCursor});if(!r)throw new pi;return(async({feedId:t,productID:n,after:r,gqlUrl:o,platform:i})=>{const s=e({feedId:t},(null==n?void 0:n.length)&&{productExternalIds:n.map(e=>e.toString())},{after:r,shoppablePlatform:i,cacheEnabled:"true"===new URLSearchParams(window.location.search).get("_shoppables_cache")}),a=JSON.stringify({query:ci,variables:s});return(await Ct(o,{timeout:1e4,body:a,method:"POST",headers:{"Content-Type":"application/json"}})).json()})({gqlUrl:i,feedId:r,productID:o,after:a.pageInfo.endCursor,platform:s})},[n,r,i,t,s,o,a.pageInfo.endCursor]),y=Rn(async()=>{if(!d){p(!0);try{st.addBreadcrumb({message:"Fetching Data"});const e=await v();return e.errors&&(t&&(e=>{const t=e.map(({message:e})=>e),n=t.join(",");throw new Error(n)})(e.errors),((e,t)=>{const n=e.map(({message:e})=>e),r=n.join(",");switch(r){case"Feed not found":throw new Error(`Could not find the following Feed: "${t}". Go to https://app.archive.com/shoppable/feed/${t} to verify that it actually exists.`);case"Free Plan Limit Exceeded":throw new Error(rt);case"No Active Plan Found":throw new Error(it);case"Feature Disabled":throw new Error(ot);default:throw new Error(r)}})(e.errors,r)),g(null),e}catch(e){g(yt(e))}finally{p(!1)}}},[d,v,t,r]),_=Rn(e=>{if(e){if(t){const t=e,n=t.data.mediaDeck.nodes.flatMap(e=>{const{id:t,provider:n,instagramInfluencer:{id:r,avatar:o,followers:i,accountName:s,verified:a},instagramContents:l,products:c=[],customProduct:u=null}=e,d={id:r,avatar:o,followers:i,provider:n,accountName:s,verified:a},[p]=l;if(!p)throw new Error("MediaContent not found");const h=p.contentType;return{id:t,poster:p.displayUrl,src:p.contentUrl,contentType:h,influencer:d,products:c,customProduct:u,isVideo:h===ri.Video,isImage:h===ri.Image}});l(e=>{var r,o,i,s;return{items:e.items.concat(n),collectionName:null==(r=t.data.collection)?void 0:r.name,collectionID:null==(o=t.data.collection)?void 0:o.id,sourceType:"Collection",shopifyDomain:null==(i=t.data.collection)||null==(i=i.shop)?void 0:i.shopifyDomain,shopUUID:null==(s=t.data.collection)||null==(s=s.shop)?void 0:s.uuid,pageInfo:t.data.mediaDeck.pageInfo,totalCount:t.data.mediaDeck.totalCount,settings:null,hasMoreData:n.length{var t;const{id:n,backgroundColor:r,textColor:o,productLinkType:i,mediaItem:{id:s,creator:{id:a,avatar:l,followers:c,accountName:u,verified:d,provider:p},contents:h,products:f=[],customProduct:m=null,transcription:g}}=e,v={id:a,avatar:l,followers:c||0,provider:p.toLowerCase(),accountName:u,verified:null!=d&&d},[y]=h;if(!y)throw new Error("Content not found");const _=y.contentType;return{id:s,poster:y.displayUrl,src:y.contentUrl,contentType:_,influencer:v,products:f,customProduct:m,backgroundColor:r,textColor:o,productLinkType:i,isVideo:_===ri.Video,isImage:_===ri.Image,shoppableItemId:n,subtitles:null!=(t=null==g?void 0:g.subtitles)?t:void 0}}),r=t.data.shoppableFeed.feed.settings,o=t.data.shoppableFeed.feed.settings.abTestingEnabled,i=100-t.data.shoppableFeed.feed.settings.abTestingWeight,s=t.data.shoppableFeed.feed.settings.abTestingWeight;l(e=>{var a,l,c,u;return{items:e.items.concat(n),collectionName:null==(a=t.data.shoppableFeed.feed.folder)?void 0:a.name,collectionID:null==(l=t.data.shoppableFeed.feed.folder)?void 0:l.id,sourceType:t.data.shoppableFeed.feed.folder.sourceType,shopifyDomain:null==(c=t.data.shoppableFeed.feed.folder)||null==(c=c.shop)?void 0:c.shopifyDomain,shopUUID:null==(u=t.data.shoppableFeed.feed.folder)||null==(u=u.shop)?void 0:u.uuid,pageInfo:t.data.shoppableFeed.items.pageInfo,settings:r,totalCount:t.data.shoppableFeed.items.totalCount,hasMoreData:n.length{if(!a.pageInfo.hasNextPage||h)return;f(!0);const e=await y();_(e)},[a.pageInfo.hasNextPage,h,y,_]);if(Un(()=>{const e=()=>{l(di),y().then(e=>{_(e)}).catch(e=>{throw ze(e),e})};return document.body.addEventListener(no,e),e(),()=>{document.body.removeEventListener(no,e)}},[]),m)throw new hi(m);return{data:a,loading:d,fetched:c,fetchMore:w,legacy:t,settings:a.settings}})({collectionID:r,feedId:o,productID:s,gqlUrl:a,isLegacyApi:l,platform:t.platformType});return{settings:bi(n,c),mediaDeck:c}})(t),l="archive_app_preview"===r;return(({settings:t,totalCount:n,fetched:r})=>{((t,n,{totalCount:r})=>{const o=_i(),{platformType:i}=n,s="archive_app_preview"===i,a=window.location.hostname.includes(".shopifypreview.com"),l=s||a;gi(t,()=>{!async function(t){const i=e({},n,{font:null==(t=n.font)?void 0:t.family,slideTotalCount:r});!l&&r&&(Fe("Trying to identify user"),await(async(e={})=>{window.archiveShoppables.userIdentified?Fe("Skipping subsequent identify call",e):(await(async()=>{Fe("Loaded Segment")})(),await Nt(Pt(),e),await void At.page({anonymousId:Et(),userId:It,properties:{url:window.location.href,title:document.title,path:window.location.pathname,referrer:document.referrer,search:window.location.search},context:{locale:navigator.language,userAgent:navigator.userAgent,page:{url:window.location.href,title:document.title,path:window.location.pathname,referrer:document.referrer,search:window.location.search}}}),window.archiveShoppables.userIdentified=!0,Fe("identify",e))})(i),Fe("User identified")),o({abTestingEnabled:n.abTestingEnabled,abTestingParticipant:n.abTestingParticipant,pageViewed:!0,anonymousUserId:Et(),shopUUID:n.shopUUID,feedId:n.feedId,productId:[n.productID].flat(),userId:Pt()})}()})})(r,t,{totalCount:n}),(e=>{gi(!!e.shopUUID,()=>{var t;Fe(`[${e.platformType}] Mounting ${t=e.type,t.toLowerCase().replace(/^./,t[0].toUpperCase())}Feed...`,e),st.addBreadcrumb({data:e,message:"Settings Loaded"})})})(t)})({settings:s,totalCount:a.data.totalCount,fetched:!!s.shopUUID}),a.fetched?Zt(Or,e({},s),Zt(qr,{enabled:!l},Zt(Pr,null,Zt(Mr,{items:a.data.items,hasMoreData:a.data.hasMoreData},Zt(Qr,{designMode:s.designMode},Zt(Il,{fetched:a.fetched,totalCount:a.data.totalCount,items:a.data.items,mediaDeck:a,intersectionObserverTopMargin:n,hasMoreData:a.data.hasMoreData})))))):Zt(Jr,null)};function El(t){return Jn(()=>{if(!document.querySelector('head link[href="https://ik.imagekit.io/"][rel="preconnect"]')){const e=document.createElement("link");e.rel="preconnect",e.href="https://ik.imagekit.io/",document.head.appendChild(e)}}),Zt(Qr,{designMode:t.designMode},Zt(kl,e({},t)))}const{render:Pl}=yn(t=>Zt(El,e({},t,{type:lt.Static}))),{render:Nl}=yn(t=>Zt(El,e({},t,{type:lt.Collection}))),{render:Tl}=yn(t=>Zt(El,e({},t,{type:lt.Product})));window.archiveShoppables={initializeStaticFeed:(t,n={})=>{Pl(e({},n,{selector:t,clean:!0}))},initializeProductFeed:(t,n={})=>{Pl(e({},n,{selector:t,clean:!0}))},initializeCollectionFeed:(t,n={})=>{Pl(e({},n,{selector:t,clean:!0}))},analytics:At,userIdentified:!1},Pl({selector:'[data-widget-host="habitat-static-feed"]',clean:!0}),Nl({selector:'[data-widget-host="habitat-collection-feed"]',clean:!0}),Tl({selector:'[data-widget-host="habitat-product-feed"]',clean:!0});