PageSourceSearch

https://www.ruggles-horse-rugs.co.uk/cdn/shopifycloud/checkout-web/assets/c1/sandbox.DNKTFXG1.worker.js

js ruggles-horse-rugs.co.uk collected 2026-10-04 02:23:45 UTC 156,558 bytes, 3 lines download raw bytes

1var __freeze=Object.freeze;var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __typeError2=msg=>{throw TypeError(msg)};var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value}):obj[key]=value;var __spreadValues=(a,b)=>{for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b)){if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop])}return a};var __spreadProps=(a,b)=>__defProps(a,__getOwnPropDescs(b));var __objRest=(source,exclude)=>{var target={};for(var prop in source)if(__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];if(source!=null&&__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(source)){if(exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop))target[prop]=source[prop]}return target};var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!=="symbol"?key+"":key,value);var __accessCheck2=(obj,member,msg)=>member.has(obj)||__typeError2("Cannot "+msg);var __privateGet2=(obj,member,getter)=>(__accessCheck2(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj));var __privateAdd2=(obj,member,value)=>member.has(obj)?__typeError2("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value);var __privateSet2=(obj,member,value,setter)=>(__accessCheck2(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value);var __privateMethod2=(obj,member,method)=>(__accessCheck2(obj,member,"access private method"),method);var __template=(cooked,raw)=>__freeze(__defProp(cooked,"raw",{value:__freeze(raw||cooked.slice())}));var __async=(__this,__arguments,generator)=>{return new Promise((resolve,reject)=>{var fulfilled=value=>{try{step(generator.next(value))}catch(e){reject(e)}};var rejected=value=>{try{step(generator.throw(value))}catch(e){reject(e)}};var step=x=>x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())})};var _a;var __typeError=e=>{throw TypeError(e)},__accessCheck=(e,t,i)=>t.has(e)||__typeError("Cannot "+i),__privateGet=(e,t,i)=>(__accessCheck(e,t,"read from private field"),i?i.call(e):t.get(e)),__privateAdd=(e,t,i)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),__privateSet=(e,t,i,n)=>(__accessCheck(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),__privateMethod=(e,t,i)=>(__accessCheck(e,t,"access private method"),i);!(function(){"use strict";var _a3,_b,_c,_d,_e2,_f,_g,_h,_i2,_j,_k,_l2,_m,_n2,_o2,_p,_q,_r2,_s2,_t2,_u,_v,_w,_x,_y,_z,_A,_B,_C,_D,_E,_F,_G,_H,_I,_e3,_t3,_i3,_n3,_J,_r3,_K,_s3,_a4,_o3,_l3,_c2,_u2,_d2,_b2,_h2,_p2,_f2,_m2,_g2,_v2,_Al_instances,y_fn,w_fn,S_fn,__fn,E_fn,k_fn,x_fn;var e,t,i,n,r,s,a,o,l,c,u,d,b,h,p,f,m,g,v,y,E,w,_,S,k,x,A,N,T,C,D,O,V,M,R;const P=Symbol("name"),z=Symbol("value"),I=Symbol("ns"),L=Symbol("owner"),j=Symbol("owner_document"),B=Symbol("attributes"),F=Symbol("prev"),$=Symbol("next"),U=Symbol("child"),G=Symbol("parent"),q=Symbol("data"),W=Symbol("listeners"),H=Symbol("isTrusted"),Y=Symbol("path"),X=Symbol("stop_immediate_propagation"),J=Symbol("content"),Z=Symbol("hooks"),K=Symbol("is_connected");let Q=(function(e2){return e2[e2.NODE=0]="NODE",e2[e2.ELEMENT_NODE=1]="ELEMENT_NODE",e2[e2.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e2[e2.TEXT_NODE=3]="TEXT_NODE",e2[e2.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e2[e2.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e2[e2.ENTITY_NODE=6]="ENTITY_NODE",e2[e2.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e2[e2.COMMENT_NODE=8]="COMMENT_NODE",e2[e2.DOCUMENT_NODE=9]="DOCUMENT_NODE",e2[e2.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e2[e2.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e2})({}),ee=(function(e2){return e2.XHTML="http://www.w3.org/1999/xhtml",e2.SVG="http://www.w3.org/2000/svg",e2})({}),te=(function(e2){return e2[e2.NONE=0]="NONE",e2[e2.CAPTURING_PHASE=1]="CAPTURING_PHASE",e2[e2.AT_TARGET=2]="AT_TARGET",e2[e2.BUBBLING_PHASE=3]="BUBBLING_PHASE",e2})({});const ie="undefined"==typeof performance?Date.now:performance.now.bind(performance);let ne=(_b=Y,_a3=X,_c=class{constructor(e2,t2){__publicField(this,"timeStamp",(()=>ie())());__publicField(this,"target",null);__publicField(this,"currentTarget",null);__publicField(this,"srcElement",null);__publicField(this,"bubbles",false);__publicField(this,"cancelable",false);__publicField(this,"composed",false);
1__publicField(this,"defaultPrevented",false);__publicField(this,"cancelBubble",false);__publicField(this,"eventPhase",0);__publicField(this,_b,[]);__publicField(this,_a3,false);this.type=e2,Object.defineProperty(this,H,{writable:true,value:false}),t2&&(t2.bubbles&&(this.bubbles=t2.bubbles),t2.cancelable&&(this.cancelable=t2.cancelable),t2.composed&&(this.composed=t2.composed))}get isTrusted(){return this[H]}composedPath(){return this[Y]}stopPropagation(){this.cancelBubble=true}stopImmediatePropagation(){this[X]=true,this.cancelBubble=true}preventDefault(){this.defaultPrevented=true}set returnValue(e2){this.defaultPrevented=e2}get returnValue(){return this.defaultPrevented}initEvent(e2,t2,i2){this.type=e2,this.bubbles=Boolean(t2),this.cancelable=Boolean(i2)}},__publicField(_c,"NONE",(()=>te.NONE)()),__publicField(_c,"CAPTURING_PHASE",(()=>te.CAPTURING_PHASE)()),__publicField(_c,"AT_TARGET",(()=>te.AT_TARGET)()),__publicField(_c,"BUBBLING_PHASE",(()=>te.BUBBLING_PHASE)()),_c);function re(e2,t2,i2){const n2=t2[W],r2=n2==null?void 0:n2.get("".concat(e2.type).concat(i2===te.CAPTURING_PHASE?"@":""));if(r2)for(const a2 of r2){e2.eventPhase=e2.target===t2?te.AT_TARGET:i2,e2.currentTarget=t2;try{"object"==typeof a2?a2.handleEvent(e2):a2.call(t2,e2)}catch(s2){setTimeout(se,0,s2)}if(e2[X])break}}function se(e2){throw e2}const ae=Symbol("onceListeners");_f=W,_e2=ae,_d=j;class oe{constructor(){__publicField(this,_f);__publicField(this,_e2);__publicField(this,_d)}addEventListener(e2,t2,i2){var _a5,_b3,_c3;if(null==t2)return;const n2=true===i2||i2&&true===i2.capture,r2="object"==typeof i2&&true===i2.once,s2="object"==typeof i2?i2.signal:void 0,a2="".concat(e2).concat(n2?"@":"");let o2=t2;if(r2){o2=function(...n4){return this.removeEventListener(e2,t2,i2),"object"==typeof t2?t2.handleEvent(...n4):t2.call(this,...n4)};let n3=this[ae];n3||(n3=new WeakMap,this[ae]=n3),n3.set(t2,o2)}let l2=this[W];l2||(l2=new Map,this[W]=l2);let c2=l2.get(a2);c2||(c2=new Set,l2.set(a2,c2)),c2.has(o2)||(s2==null?void 0:s2.addEventListener("abort",()=>{le.call(this,e2,t2,i2)},{once:true}),c2.add(o2),(_c3=(_a5=this[j])==null?void 0:(_b3=_a5.defaultView[Z]).addEventListener)==null?void 0:_c3.call(_b3,this,e2,t2,i2))}removeEventListener(e2,t2,i2){return le.call(this,e2,t2,i2)}dispatchEvent(e2){const t2=[];let i2=this;for(;null!=i2;)t2.push(i2),i2=i2.parentNode;e2.target=this,e2.srcElement=this,e2[Y]=t2;for(let r2=t2.length;r2--;)if(re(e2,t2[r2],te.CAPTURING_PHASE),e2.cancelBubble)return e2.defaultPrevented;const n2=e2.bubbles?t2:t2.slice(0,1);for(let r2=0;r2<n2.length;r2++)if(re(e2,n2[r2],te.BUBBLING_PHASE),e2.cancelBubble)return e2.defaultPrevented;return e2.defaultPrevented}}function le(e2,t2,i2){var _a5,_b3,_c3,_d3,_e4;if(null==t2)return;const n2=this[ae],r2=(_a5=n2==null?void 0:n2.get(t2))!=null?_a5:t2;n2==null?void 0:n2.delete(t2);const s2="".concat(e2).concat(true===i2||i2&&true===i2.capture?"@":""),a2=(_b3=this[W])==null?void 0:_b3.get(s2);a2&&a2.delete(r2)&&((_e4=(_c3=this[j])==null?void 0:(_d3=_c3.defaultView[Z]).removeEventListener)==null?void 0:_e4.call(_d3,this,e2,t2,i2))}function ce(e2){return q in e2}function ue(e2){return e2.nodeType===Q.TEXT_NODE}function de(e2){return e2.nodeType===Q.ELEMENT_NODE}function be(e2){return"appendChild"in e2}function he(e2,t2,i2=e2.ownerDocument){if(ue(e2))return i2.createTextNode(e2.data);if((function(e3){return e3.nodeType===Q.COMMENT_NODE})(e2))return i2.createComment(e2.data);if(de(e2)){const n2=i2.createElement(e2.localName);if(e2[B])for(let t3=0;t3<e2[B].length;t3++){const i3=e2[B].item(t3);n2.setAttributeNS(i3.namespaceURI,i3.name,i3.value)}if(t2)for(const t3 of e2.childNodes)n2.appendChild(he(t3,true,i2));return n2}if((function(e3){return e3.nodeType===Q.DOCUMENT_FRAGMENT_NODE})(e2)){const n2=i2.createDocumentFragment();if(t2)for(const t3 of e2.childNodes)n2.appendChild(he(t3,true,i2));return n2}{const t3=new e2.constructor;return t3[j]=i2,t3}}function pe(e2){const t2=[],i2=e3=>{t2.push(e3);const n3=e3[U];n3&&i2(n3);const r2=e3[$];r2&&i2(r2)},n2=e2[U];return n2&&i2(n2),t2}function fe(e2){const t2=pe(e2);return t2.unshift(e2),t2}class me extends oe{constructor(){super(...arguments);__publicField(this,"nodeType",(()=>Q.NODE)());__publicField(this,_l2,"");__publicField(this,_k,null);__publicField(this,_j,null);__publicField(this,_i2,null);__publicField(this,_h,null);__publicField(this,_g,false)}get[(_l2=P,_k=G,_j=U,_i2=F,_h=$,_g=K,Z)](){return this[j].defaultView[Z
1]}get localName(){return this[P]}get nodeName(){return this[P].toUpperCase()}get ownerDocument(){return this[j]}get isConnected(){return this[K]}isDefaultNamespace(e2){return e2===ee.XHTML}get parentNode(){return this[G]}set parentNode(e2){}get parentElement(){const e2=this[G];return e2&&1===e2.nodeType?e2:null}set parentElement(e2){}get previousSibling(){return this[F]}set previousSibling(e2){}get nextSibling(){return this[$]}set nextSibling(e2){}get previousElementSibling(){let e2=this[F];for(;e2&&1!==e2.nodeType;)e2=e2[F];return e2}set previousElementSibling(e2){}get nextElementSibling(){let e2=this[$];for(;e2&&1!==e2.nodeType;)e2=e2[$];return e2}set nextElementSibling(e2){}get firstChild(){return this[U]}set firstChild(e2){}get lastChild(){let e2=this[U];for(;e2;){const t2=e2[$];if(null==t2)break;e2=t2}return e2}set lastChild(e2){}get nodeValue(){return ce(this)?this.data:null}set nodeValue(e2){ce(this)&&(this.data=e2)}get textContent(){if(ce(this))return this.data;let e2="";for(const t2 of pe(this))ue(t2)&&(e2+=t2.data);return e2}set textContent(e2){if(ce(this))this.data=e2;else if(be(this)){let t2;for(;t2=this[U];)this.removeChild(t2);this.append(e2)}}cloneNode(e2){return he(this,e2)}contains(e2){let t2=e2;for(;;){if(null==t2)return false;if(t2===this)return true;t2=e2.parentNode}}}class ge extends me{remove(){const e2=this.parentNode;e2&&e2.removeChild(this)}replaceWith(...e2){const t2=this.parentNode;if(!t2)return;const i2=ve(t2,e2[0]),n2=i2[$];t2.replaceChild(this,i2);for(let r2=1;r2<e2.length;r2++)t2.insertBefore(ve(t2,e2[r2]),n2)}before(...e2){const t2=this.parentNode;if(t2)for(const i2 of e2)t2.insertBefore(ve(t2,i2),this)}after(...e2){const t2=this.parentNode;if(!t2)return;const i2=this[$];for(const n2 of e2)t2.insertBefore(ve(t2,n2),i2)}}function ve(e2,t2){return t2 instanceof me?t2:e2.ownerDocument.createTextNode(String(t2))}class ye extends Array{item(e2){return this[e2]}}var Ee=(function(e2){return e2[e2.Descendant=0]="Descendant",e2[e2.Child=1]="Child",e2[e2.Sibling=2]="Sibling",e2[e2.Adjacent=3]="Adjacent",e2[e2.Inner=4]="Inner",e2})(Ee||{}),we=(function(e2){return e2[e2.Unknown=0]="Unknown",e2[e2.Element=1]="Element",e2[e2.Id=2]="Id",e2[e2.Class=3]="Class",e2[e2.Attribute=4]="Attribute",e2[e2.Pseudo=5]="Pseudo",e2[e2.Function=6]="Function",e2})(we||{});const _e=/[a-z]/;function Se(e2){var _a5,_b3;let t2={combinator:Ee.Inner,matchers:[]};const i2=[t2],n2=/\s*?([>\s+~]?)\s*?(?:(?:\[\s*([^\]=]+)(?:=(['"])(.*?)\3)?\s*\])|([#.]?)([^\s#.[>:+~]+)|:(\w+)(?:\((.*?)\))?)/gi;let r2;for(;r2=n2.exec(e2);){r2[1]&&(">"===r2[1]?t2.combinator=Ee.Child:"+"===r2[1]?t2.combinator=Ee.Adjacent:"~"===r2[1]?t2.combinator=Ee.Sibling:t2.combinator=Ee.Descendant,t2={combinator:Ee.Inner,matchers:[]},i2.push(t2));let e3=we.Unknown;r2[2]?e3=we.Attribute:r2[5]?e3="#"===r2[5]?we.Id:we.Class:r2[7]?e3=null==r2[8]?we.Pseudo:we.Function:r2[6]&&("*"===r2[6]?e3=we.Unknown:_e.test(r2[6])&&(e3=we.Element)),t2.matchers.push({type:e3,name:r2[2]||r2[6]||r2[7],value:(_b3=(_a5=r2[4])!=null?_a5:r2[6])!=null?_b3:r2[8]})}return i2}function ke(e2,t2){const i2=Se(t2);let n2;for(;n2=i2.pop();)if(!Ne(e2,n2))return false;return true}function xe(e2,t2,i2){if(de(e2)){if(Ae(e2,t2)&&false===i2(e2))return false;const n3=e2[U];if(n3&&false===xe(n3,t2,i2))return false}const n2=e2[$];return!n2||false!==xe(n2,t2,i2)}function Ae(e2,t2){const{combinator:i2,matchers:n2}=t2[t2.length-1];if(i2===Ee.Inner){if(!Te(e2,n2))return false;const i3=t2.slice(0,-1);return 0===i3.length||Ae(e2,i3)}const r2=i2===Ee.Child||i2===Ee.Descendant?G:F;let s2=e2[r2];if(!s2)return false;if(i2===Ee.Descendant||i2===Ee.Sibling){for(;s2;){if(de(s2)&&Te(s2,n2)){const i3=t2.slice(0,-1);if(0===i3.length)return true;if(Ae(e2,i3))return true}s2=s2[r2]}return false}{if(i2===Ee.Adjacent&&!de(s2)){for(;s2&&!de(s2);)s2=s2[r2];if(!s2)return false}if(!de(s2)||!Te(s2,n2))return false;const a2=t2.slice(0,-1);return 0===a2.length||Ae(e2,a2)}}function Ne(e2,{combinator:t2,matchers:i2}){if(t2===Ee.Inner)return Te(e2,i2);const n2=t2===Ee.Child||t2===Ee.Descendant?G:F;let r2=e2[n2];if(!r2)return false;if(t2===Ee.Adjacent&&!de(r2)){for(;r2&&!de(r2);)r2=r2[n2];if(!r2)return false}if(!de(r2)||!Te(r2,i2))return false;if(t2===Ee.Descendant||t2===Ee.Sibling){for(;r2=r2[n2];)if(de(r2)&&Te(r2,i2))return true}return true}function Te(e2,t2){if(!e2)return false;if(Array.isArray(t2)){for(const i3 of t2)if(false===Te(e2,i3))return false;return true}const{type:i2,name:n2,value:r2}=t2;switch(i2){case we.Unknown:return"*"===n2;case we.Element:return e2.localName===n2;case we.Id:return e2.getAttribute("id")===n2;case we.Class:const t3=e2.getAttribute("class");return!!t3&&t3.split(/\s+/).includes(n2);case we.Attribute:return null==r2?e2.hasAttribute(n2):e2.getAttribute(n2)===r2;case we.Pseudo:throw Error("Pseudo :".concat(n2," not implemented"));case we.Function:switch(n2){case"has":return ke(e2,r2||"");case"not":return!ke(e2,r2||"");
1default:throw Error("Function :".concat(n2,"(").concat(r2,") not implemented"))}}return false}class Ce extends ge{constructor(){super(...arguments);__publicField(this,"childNodes",(()=>new ye)());__publicField(this,"children",(()=>new ye)())}appendChild(e2){this.insertInto(e2,null)}insertBefore(e2,t2){this.insertInto(e2,t2||null)}append(...e2){for(const t2 of e2)null!=t2&&this.appendChild(ve(this,t2))}prepend(...e2){const t2=this.firstChild;for(const i2 of e2)null!=i2&&this.insertBefore(ve(this,i2),t2)}replaceChildren(...e2){let t2;for(;t2=this.firstChild;)this.removeChild(t2);this.append(...e2)}removeChild(e2){var _a5,_b3,_c3;if(e2.parentNode!==this)throw Error("not a child of this node");const t2=e2[F],i2=e2[$];t2?t2[$]=i2:this[U]=i2,i2&&(i2[F]=t2);const n2=this.childNodes,r2=n2.indexOf(e2);if(n2.splice(r2,1),1===e2.nodeType){const t3=this.children;t3.splice(t3.indexOf(e2),1)}if(e2[G]=null,e2[$]=null,e2[F]=null,this[K])for(const s2 of fe(e2))s2[K]=false,(_a5=s2.disconnectedCallback)==null?void 0:_a5.call(s2);this.nodeType===Q.ELEMENT_NODE&&((_c3=(_b3=this[Z]).removeChild)==null?void 0:_c3.call(_b3,this,e2,r2))}replaceChild(e2,t2){if(t2.parentNode!==this)throw Error("reference node is not a child of this parent");const i2=t2[$];this.removeChild(t2),this.insertInto(e2,i2)}querySelectorAll(e2){return(function(e3,t2){const i2=Se(t2),n2=[],r2=e3[U];return r2&&i2[0].matchers.length&&xe(r2,i2,e4=>{n2.push(e4)}),n2})(this,e2)}querySelector(e2){return(function(e3,t2){const i2=Se(t2);let n2=null;const r2=e3[U];return r2&&i2[0].matchers.length&&xe(r2,i2,e4=>(n2=e4,false)),n2})(this,e2)}insertInto(e2,t2){var _a5,_b3,_c3;if(e2.nodeType===Q.DOCUMENT_FRAGMENT_NODE){let i3=e2[U];for(;i3;){const e3=i3[$];this.insertInto(i3,t2),i3=e3}return}if(null!==e2.parentNode&&e2.parentNode.removeChild(e2),t2){if(t2.parentNode!==this)throw Error("reference node is not a child of this parent");e2[$]=t2,e2[F]=t2[F],null===t2[F]&&(this[U]=e2),t2[F]=e2}else{e2[$]=null;let t3=this[U];if(t3){let i3;for(;i3=t3[$];)t3=i3;t3[$]=e2,e2[F]=t3}else this[U]=e2,e2[F]=null}const i2=this[j],n2=e2.nodeType===Q.ELEMENT_NODE;e2[G]=this,e2[j]=i2;const r2=this.childNodes;let s2;if(t2){if(s2=r2.indexOf(t2),r2.splice(s2,0,e2),n2){const i3=this.children;let n3=t2;for(;n3&&1!==n3.nodeType;)n3=n3[$];n3?i3.splice(i3.indexOf(n3),0,e2):i3.push(e2)}}else s2=r2.length,r2.push(e2),n2&&this.children.push(e2);if(this[K])for(const a2 of fe(e2))a2[K]=true,(_a5=a2.connectedCallback)==null?void 0:_a5.call(a2);this.nodeType===Q.ELEMENT_NODE&&((_c3=(_b3=this[Z]).insertChild)==null?void 0:_c3.call(_b3,this,e2,s2))}}class De{constructor(e2){__publicField(this,_m,null);this[L]=e2}getNamedItem(e2){return this.getNamedItemNS(null,e2)}getNamedItemNS(e2,t2){let i2=this[U];for(;i2;){if(i2.name===t2&&i2[I]==e2)return i2;i2=i2[$]}return null}item(e2){let t2=this[U],i2=0;for(;t2;){if(i2++===e2)return t2;t2=t2[$]}return null}get length(){let e2=0,t2=this[U];for(;t2;)e2++,t2=t2[$];return e2}removeNamedItem(e2){return this.removeNamedItemNS(null,e2)}removeNamedItemNS(e2,t2){var _a5,_b3;const i2=this[L];let n2=this[U],r2=null;for(;null!=n2;){if(n2.name===t2&&n2[I]==e2)return r2&&(r2[$]=n2[$]),this[U]===n2&&(this[U]=n2[$]),Oe(i2,n2.name,n2.value,null),(_b3=(_a5=i2[Z]).removeAttribute)==null?void 0:_b3.call(_a5,i2,t2,e2),n2;r2=n2,n2=n2[$]}return null}setNamedItem(e2){var _a5,_b3,_c3;const t2=this[L];let i2=null,n2=this[U];if(e2[L]=t2,null==n2)this[U]=e2;else{let t3;for(;n2;){if(n2.name===e2.name&&n2[I]==e2[I]){t3?t3[$]=e2:this[U]=e2,e2[$]=n2[$],n2[$]=null,i2=n2;break}t3=n2,n2=n2[$]}t3?t3[$]=e2:this[U]=e2}return i2&&i2.value===e2.value||(Oe(t2,e2.name,(_a5=i2==null?void 0:i2.value)!=null?_a5:null,e2.value),(_c3=(_b3=t2[Z]).setAttribute)==null?void 0:_c3.call(_b3,t2,e2.name,e2.value,e2[I])),i2}setNamedItemNS(e2){return this.setNamedItem(e2)}*[(_m=U,Symbol.iterator)](){let e2=this[U];for(;e2;)yield e2,e2=e2[$]}}function Oe(e2,t2,i2,n2){const{observedAttributes:r2}=e2.constructor,{attributeChangedCallback:s2}=e2;if("slot"===t2&&(e2.slot=n2!=null?n2:""),null!=s2&&null!=r2&&r2.includes(t2))return s2.call(e2,t2,i2,n2)}class Ve extends(_q=me,_p=I,_o2=$,_n2=L,_q){constructor(e2,t2,i2){super();__publicField(this,"nodeType",(()=>Q.ATTRIBUTE_NODE)());__publicField(this,_p,null);__publicField(this,_o2,null);__publicField(this,_n2,null);this[P]=e2,this[z]=t2,i2&&(this[I]=i2)}get nodeName(){return this[P]}set nodeName(e2){}get name(){return this[P]}set name(e2){}get value(){return this[z]}set value(e2){var _a5,_b3;const t2=String(e2);this[z]=t2;
1const i2=this[L];i2&&((_b3=(_a5=this[Z]).setAttribute)==null?void 0:_b3.call(_a5,i2,this[P],t2,this[I]))}get nodeValue(){return this.value}set nodeValue(e2){this.value=e2}get ownerElement(){return this[L]}get namespaceURI(){return this[I]}get specified(){return true}}const Me=/(?:<([a-z][a-z0-9-:]*)((?:[\s]+[^<>'"=\s]+(?:=(['"])[^]*?\3|=[^>'"\s]*|))*)[\s]*(\/?)\s*>|<\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^&<>]+))/gi,Re=/\s([^<>'"=\n\s]+)(?:=(["'])([\s\S]*?)\2|=([^>'"\n\s]*)|)/g;function Pe(e2,t2){const i2=t2.ownerDocument,n2=i2.createDocumentFragment(),r2=[n2];let s2,a2=n2;for(Me.lastIndex=0;s2=Me.exec(e2);){const e3=s2[1];if(e3){const t3=i2.createElement(e3),n3=s2[2];let o2;for(Re.lastIndex=0;o2=Re.exec(n3);)t3.setAttribute(o2[1],o2[3]||o2[4]||"");a2.append(t3),r2.push(a2),a2=t3}else s2[5]?a2=r2.pop()||n2:s2[6]?a2.append(i2.createComment(s2[6])):a2.append(s2[7])}return n2}function ze(e2){let t2="",i2=e2[U];for(;i2;)t2+=Ie(i2),i2=i2[$];return t2}function Ie(e2){var _a5;switch(e2.nodeType){case Q.ELEMENT_NODE:{const t2=e2;let i2="<".concat(t2[P]),n2=(_a5=t2[B])==null?void 0:_a5[U];for(;n2;){i2+=" ".concat(n2[P]);let e3=n2[z];""!==e3&&(e3=String(e3).replace(/&/g,"&amp;").replace(/"/g,"&quot;"),i2+='="'.concat(e3,'"')),n2=n2[$]}return i2+=">",i2+=ze(t2),i2+="</".concat(t2[P],">"),i2}case Q.TEXT_NODE:return e2[q].replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;");case Q.COMMENT_NODE:return"<!--".concat(e2[q],"-->")}return""}let Le=class extends(_s2=Ce,_r2=I,_s2){constructor(){super(...arguments);__publicField(this,"nodeType",(()=>Q.ELEMENT_NODE)());__publicField(this,_r2,(()=>ee.XHTML)())}get namespaceURI(){return this[I]}get tagName(){return this.nodeName}get slot(){var _a5;return(_a5=this.getAttribute("slot"))!=null?_a5:""}set slot(e2){const t2=String(e2);this.getAttribute("slot")!==t2&&this.attributes.setNamedItem(new Ve("slot",t2))}get attributes(){let e2=this[B];return e2||(e2=new De(this),this[B]=e2),e2}getAttributeNames(){return[...this.attributes].map(e2=>e2.name)}get firstElementChild(){var _a5;return(_a5=this.children[0])!=null?_a5:null}get lastElementChild(){var _a5;return(_a5=this.children[this.children.length-1])!=null?_a5:null}get nextElementSibling(){let e2=this.nextSibling;for(;e2&&1!==e2.nodeType;)e2=e2.nextSibling;return e2}get previousElementSibling(){let e2=this.previousSibling;for(;e2&&1!==e2.nodeType;)e2=e2.previousSibling;return e2}setAttribute(e2,t2){this.attributes.setNamedItem(new Ve(e2,String(t2)))}setAttributeNS(e2,t2,i2){this.attributes.setNamedItemNS(new Ve(t2,String(i2),e2))}getAttribute(e2){const t2=this.attributes.getNamedItem(e2);return t2&&t2.value}getAttributeNS(e2,t2){const i2=this.attributes.getNamedItemNS(e2,t2);return i2&&i2.value}hasAttribute(e2){return null!=this.attributes.getNamedItem(e2)}hasAttributeNS(e2,t2){return null!=this.attributes.getNamedItemNS(e2,t2)}removeAttribute(e2){this.attributes.removeNamedItem(e2)}removeAttributeNS(e2,t2){this.attributes.removeNamedItemNS(e2,t2)}get outerHTML(){return Ie(this)}get innerHTML(){return ze(this)}set innerHTML(e2){if(null==e2||""===e2)this.replaceChildren();else{const t2=Pe(String(e2),this);this.replaceChildren(t2)}}};class je extends(_u=Le,_t2=I,_u){constructor(){super(...arguments);__publicField(this,_t2,(()=>ee.SVG)())}get ownerSVGElement(){let e2=null,t2=this.parentNode;for(;t2 instanceof je;)e2=t2,t2=t2.parentNode;return e2}}class Be extends(_w=ge,_v=q,_w){constructor(e2){super();__publicField(this,_v,"");this[q]=null==e2?"":String(e2)}setData(e2){var _a5,_b3;let t2="";null!=e2&&(t2="string"==typeof e2?e2:String(e2)),this[q]=t2,(_b3=(_a5=this[Z]).setText)==null?void 0:_b3.call(_a5,this,t2)}get data(){return this[q]}set data(e2){this.setData(e2)}}class Fe extends(_y=Be,_x=P,_y){constructor(){super(...arguments);__publicField(this,"nodeType",(()=>Q.TEXT_NODE)());__publicField(this,_x,"#text")}}class $e extends(_A=Be,_z=P,_A){constructor(){super(...arguments);__publicField(this,"nodeType",8);__publicField(this,_z,"#comment")}}let Ue=class extends(_D=Ce,_C=P,_B=j,_D){constructor(){super(...arguments);__publicField(this,"nodeType",(()=>Q.DOCUMENT_FRAGMENT_NODE)());__publicField(this,_C,"#document-fragment");__publicField(this,_B,(()=>"undefined"!=typeof window?window.document:null)())}};class Ge extends Le{get content(){let e2=this[J];return e2||(e2=this.ownerDocument.createDocumentFragment(),this[J]=e2),e2}set content(e2){}set innerHTML(e2){this.content.replaceChildren(Pe(String(e2),this))}get innerHTML(){const e2=this[J];return e2?ze(e2):""}}class qe extends Le{}class We extends Le{}class He extends Le{}class Ye extends(_G=Ce,_F=P,_E=K,_G){constructor(e2){super();__publicField(this,"nodeType",(()=>Q.DOCUMENT_NODE)());__publicField(this,_F,"#document");__publicField(this,_E,true);this.defaultView=e2,this[j]=this,this.documentElement=Ze(new He,this,"html"),this.body=Ze(new qe,this,"body"),this.head=Ze(ne
1w We,this,"head"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}createElement(e2){return Je(this,e2)}createElementNS(e2,t2){return Je(this,t2,e2)}createTextNode(e2){var _a5,_b3;const t2=Xe(new Fe(e2),this);return(_b3=(_a5=this[Z]).createText)==null?void 0:_b3.call(_a5,t2,String(e2)),t2}createComment(e2){return Xe(new $e(e2),this)}createDocumentFragment(){return Xe(new Ue,this)}createEvent(){return new ne("")}importNode(e2,t2){return he(e2,t2,this)}adoptNode(e2){var _a5;return e2[j]===this||((_a5=e2.parentNode)==null?void 0:_a5.removeChild(e2),Ke(e2,this)),e2}}function Xe(e2,t2){return Object.defineProperty(e2,j,{value:t2,writable:true,enumerable:false}),e2}function Je(e2,t2,i2){let n2;const r2=String(t2).toLowerCase();if(i2===ee.SVG)n2=new je;else if("template"===r2)n2=new Ge;else{const i3=e2.defaultView.customElements.get(t2);n2=i3?new i3:new Le}return Ze(n2,e2,t2,i2)}function Ze(e2,t2,i2,n2){var _a5,_b3;return Xe(e2,t2),Object.defineProperty(e2,P,{value:i2}),n2&&Object.defineProperty(e2,I,{value:n2}),(_b3=(_a5=t2[Z]).createElement)==null?void 0:_b3.call(_a5,e2,n2),e2}function Ke(e2,t2){if(e2[j]=t2,be(e2))for(const i2 of e2.childNodes)Ke(i2,t2)}let Qe=class extends ne{constructor(e2,t2){super(e2,t2),this.detail=t2==null?void 0:t2.detail}initCustomEvent(e2,t2,i2,n2){super.initEvent(e2,t2,i2),this.detail=n2}},et=class extends ne{constructor(e2,t2){super(e2,t2),this.message=t2.message,this.filename=t2.filename,this.lineno=t2.lineno,this.colno=t2.colno,this.error=t2.error}},tt=class extends ne{constructor(e2,t2){super(e2,t2),this.promise=t2.promise,this.reason=t2.reason}},it=class extends ne{constructor(e2,t2){super(e2,t2),this.oldState=t2.oldState,this.newState=t2.newState}},nt=class extends ne{constructor(e2,t2={}){var _a5;super(e2,t2),this.relatedTarget=(_a5=t2.relatedTarget)!=null?_a5:null}},rt=class extends ne{constructor(e2,t2={}){var _a5;super(e2,t2),this.clipboardData=(_a5=t2.clipboardData)!=null?_a5:null}},st=class extends Le{};class at{constructor(){__publicField(this,"registry",(()=>new Map)());__publicField(this,"listenersByName",(()=>new Map)())}define(e2,t2,i2){this.registry.set(e2,t2);const n2=this.listenersByName.get(e2);if(null!=n2){this.listenersByName.delete(e2);for(const e3 of n2)e3(t2)}}get(e2){return this.registry.get(e2)}getName(e2){for(const[t2,i2]of this.registry)if(i2===e2)return t2;return null}whenDefined(e2){const t2=this.registry.get(e2);if(null!=t2)return Promise.resolve(t2);let i2=this.listenersByName.get(e2);return null==i2&&(i2=[],this.listenersByName.set(e2,i2)),new Promise(e3=>{i2.push(e3)})}upgrade(e2){}}class ot{}class lt extends(_I=oe,_H=Z,_I){constructor(){super(...arguments);__publicField(this,_H,{});__publicField(this,"name","");__publicField(this,"window",this);__publicField(this,"parent",this);__publicField(this,"self",this);__publicField(this,"top",this);__publicField(this,"document",(()=>new Ye(this))());__publicField(this,"customElements",(()=>new at)());__publicField(this,"location",(()=>globalThis.location)());__publicField(this,"navigator",(()=>globalThis.navigator)());__publicField(this,"Event",(()=>ne)());__publicField(this,"ErrorEvent",(()=>et)());__publicField(this,"PromiseRejectionEvent",(()=>tt)());__publicField(this,"ToggleEvent",(()=>it)());__publicField(this,"FocusEvent",(()=>nt)());__publicField(this,"ClipboardEvent",(()=>rt)());__publicField(this,"EventTarget",(()=>oe)());__publicField(this,"CustomEvent",(()=>Qe)());__publicField(this,"Node",(()=>me)());__publicField(this,"ParentNode",(()=>Ce)());__publicField(this,"ChildNode",(()=>ge)());__publicField(this,"DocumentFragment",(()=>Ue)());__publicField(this,"Document",(()=>Ye)());__publicField(this,"CharacterData",(()=>Be)());__publicField(this,"Comment",(()=>$e)());__publicField(this,"Text",(()=>Fe)());__publicField(this,"Element",(()=>Le)());__publicField(this,"HTMLElement",(()=>st)());__publicField(this,"SVGElement",(()=>je)());__publicField(this,"HTMLTemplateElement",(()=>Ge)());__publicField(this,"MutationObserver",(()=>ot)());
1__privateAdd2(this,_e3,null);__privateAdd2(this,_t3,null);__privateAdd2(this,_i3,null)}get onerror(){return __privateGet2(this,_t3)}set onerror(e2){__privateGet2(this,_e3)&&this.removeEventListener("error",__privateGet2(this,_e3)),e2&&"function"==typeof e2?(__privateSet2(this,_t3,e2),__privateSet2(this,_e3,t2=>{var _a5;e2((_a5=t2.message)!=null?_a5:"Error",t2.filename,t2.lineno,t2.colno,t2.error)}),this.addEventListener("error",__privateGet2(this,_e3))):(__privateSet2(this,_e3,null),__privateSet2(this,_t3,null))}get onunhandledrejection(){return __privateGet2(this,_i3)}set onunhandledrejection(e2){__privateGet2(this,_i3)&&this.removeEventListener("unhandledrejection",__privateGet2(this,_i3)),e2&&"function"==typeof e2?(__privateSet2(this,_i3,e2),this.addEventListener("unhandledrejection",__privateGet2(this,_i3))):__privateSet2(this,_i3,null)}static setGlobal(e2){const t2=Object.getOwnPropertyDescriptors(e2);delete t2.self,Object.defineProperties(globalThis,t2),void 0===globalThis.self?Object.defineProperty(globalThis,"self",{value:e2,configurable:true,writable:true,enumerable:true}):Object.defineProperties(self,t2)}static setGlobalThis(e2){for(const n2 in e2)e2[n2]===e2&&(e2[n2]=globalThis);const t2=Object.getOwnPropertyDescriptors(e2),i2=Object.getOwnPropertyDescriptors(oe.prototype);for(const n2 of Object.values(i2))"function"==typeof n2.value&&(n2.value=n2.value.bind(e2));Object.defineProperties(globalThis,t2),Object.defineProperties(globalThis,i2)}}_e3=new WeakMap;_t3=new WeakMap;_i3=new WeakMap;const ct=new lt,ut=new WeakMap;function dt(e2){return ut.get(e2)}const bt=new WeakMap;let ht=0;function pt(e2){let t2=bt.get(e2);return null==t2&&(t2=String(ht++),ft(e2,t2)),t2}function ft(e2,t2){bt.set(e2,t2)}const mt=new WeakMap;function gt(e2){return mt.get(e2)}const vt=new WeakMap;function yt(e2){let t2=vt.get(e2);if(null!=t2)return t2;if(e2 instanceof Element&&!e2.tagName.includes("-")){t2={};for(const{name:i2,value:n2}of e2.attributes)t2[i2]=n2;return t2}}const Et=new WeakMap;function wt(e2){return Et.get(e2)}function _t(e2,t2,i2){let n2=mt.get(e2);if(null==n2&&(n2={},mt.set(e2,n2)),n2[t2]===i2)return;n2[t2]=i2;const r2=ut.get(e2);null!=r2&&r2.mutate([[3,pt(e2),t2,i2,1]])}function St(e2,t2,i2){let n2=vt.get(e2);if(null==n2&&(n2={},vt.set(e2,n2)),n2[t2]===i2)return;null==i2?delete n2[t2]:n2[t2]=String(i2);const r2=ut.get(e2);null!=r2&&r2.mutate([[3,pt(e2),t2,i2,2]])}function kt(e2,t2,i2){let n2=Et.get(e2);if(null==n2&&(n2={},Et.set(e2,n2)),n2[t2]===i2)return;null==i2?delete n2[t2]:n2[t2]=i2;const r2=ut.get(e2);null!=r2&&r2.mutate([[3,pt(e2),t2,i2,3]])}function xt(e2,t2){if(ut.get(e2)!==t2&&(ut.set(e2,t2),e2.childNodes))for(let i2=0;i2<e2.childNodes.length;i2++)xt(e2.childNodes[i2],t2)}function At(e2){if(null!=ut.get(e2)&&(ut.delete(e2),e2.childNodes))for(let t2=0;t2<e2.childNodes.length;t2++)At(e2.childNodes[t2])}function Nt(e2){const{nodeType:t2}=e2;switch(t2){case 1:return{id:pt(e2),type:t2,element:e2.localName,properties:Tt(gt(e2)),attributes:Tt(yt(e2)),eventListeners:Tt(wt(e2)),children:Array.from(e2.childNodes).map(Nt)};case 3:case 8:return{id:pt(e2),type:t2,data:e2.data};default:throw new Error("Cannot serialize node of type ".concat(e2.nodeType," (").concat(typeof e2.nodeType,")"))}}function Tt(e2){return e2?__spreadValues({},e2):void 0}const Ct=ct[Z];Ct.insertChild=(e2,t2,i2)=>{const n2=dt(e2);null!=n2&&(xt(t2,n2),n2.mutate([[0,pt(e2),Nt(t2),i2]]))},Ct.removeChild=(e2,t2,i2)=>{const n2=dt(e2);null!=n2&&(At(t2),n2.mutate([[1,pt(e2),i2]]))},Ct.setText=(e2,t2)=>{const i2=dt(e2);null!=i2&&i2.mutate([[2,pt(e2),t2]])},Ct.setAttribute=(e2,t2,i2)=>{e2.tagName.includes("-")||St(e2,t2,i2)},Ct.removeAttribute=(e2,t2)=>{e2.tagName.includes("-")||St(e2,t2)},lt.setGlobal(ct);var Dt=Symbol.for("preact-signals");function Ot(){if(zt>1)zt--;else{var e2,t2=false;for((function(){var e3=Lt;for(Lt=void 0;void 0!==e3;){var t3=e3.S;if(t3.v===e3.v)for(var i3=t3.t;void 0!==i3;i3=i3.x)i3.i===e3.i&&(i3.i=t3.i);e3=e3.o}})();void 0!==Pt;){var i2=Pt;for(Pt=void 0,It++;void 0!==i2;){var n2=i2.u;if(i2.u=void 0,i2.f&=-3,!(8&i2.f)&&$t(i2))try{i2.c()}catch(r2){t2||(e2=r2,t2=true)}i2=n2}}if(It=0,zt--,t2)throw e2}}var Vt,Mt=void 0;function Rt(e2){var t2=Mt,i2=Vt;Mt=void 0,Vt=void 0;try{return e2()}finally{Mt=t2,Vt=i2}}var Pt=void 0,zt=0,It=0,Lt=void 0,jt=0;function Bt(e2){if(void 0!==Mt){var t2=e2.n;if(void 0===t2||t2.t!==Mt)return t2={i:0,S:e2,p:Mt.s,n:void 0,t:Mt,e:void 0,x:void 0,r:t2},void 0!==Mt.s&&(Mt.s.n=t2),Mt.s=t2,e2.n=t2,32&Mt.f&&e2.S(t2),t2;if(-1===t2.i)return t2.i=0,void 0!==t2.n&&(t2.n.p=t2.p,void 0!==t2.p&&(t2.p.n=t2.n),t2.p=Mt.
1s,t2.n=void 0,Mt.s.n=t2,Mt.s=t2),t2}}function Ft(e2,t2){this.v=e2,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t2?void 0:t2.watched,this.Z=null==t2?void 0:t2.unwatched,this.name=null==t2?void 0:t2.name}function $t(e2){for(var t2=e2.s;void 0!==t2;t2=t2.n)if(t2.S.i!==t2.i||!t2.S.h()||t2.S.i!==t2.i)return true;return false}function Ut(e2){for(var t2=e2.s;void 0!==t2;t2=t2.n){var i2=t2.S.n;if(void 0!==i2&&(t2.r=i2),t2.S.n=t2,t2.i=-1,void 0===t2.n){e2.s=t2;break}}}function Gt(e2){for(var t2=e2.s,i2=void 0;void 0!==t2;){var n2=t2.p;-1===t2.i?(t2.S.U(t2),void 0!==n2&&(n2.n=t2.n),void 0!==t2.n&&(t2.n.p=n2)):i2=t2,t2.S.n=t2.r,void 0!==t2.r&&(t2.r=void 0),t2=n2}e2.s=i2}function qt(e2,t2){Ft.call(this,void 0,t2),this.x=e2,this.s=void 0,this.g=jt-1,this.f=4}function Wt(e2){var t2=e2.m;if(e2.m=void 0,"function"==typeof t2){zt++;var i2=Mt;Mt=void 0;try{t2()}catch(n2){throw e2.f&=-2,e2.f|=8,Ht(e2),n2}finally{Mt=i2,Ot()}}}function Ht(e2){for(var t2=e2.s;void 0!==t2;t2=t2.n)t2.S.U(t2);e2.x=void 0,e2.s=void 0,Wt(e2)}function Yt(e2){if(Mt!==this)throw new Error("Out-of-order effect");Gt(this),Mt=e2,this.f&=-2,8&this.f&&Ht(this),Ot()}function Xt(e2,t2){this.x=e2,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t2?void 0:t2.name,Vt&&Vt.push(this)}Ft.prototype.brand=Dt,Ft.prototype.h=function(){return true},Ft.prototype.S=function(e2){var t2=this,i2=this.t;i2!==e2&&void 0===e2.e&&(e2.x=i2,this.t=e2,void 0!==i2?i2.e=e2:Rt(function(){var e3;null==(e3=t2.W)||e3.call(t2)}))},Ft.prototype.U=function(e2){var t2=this;if(void 0!==this.t){var i2=e2.e,n2=e2.x;void 0!==i2&&(i2.x=n2,e2.e=void 0),void 0!==n2&&(n2.e=i2,e2.x=void 0),e2===this.t&&(this.t=n2,void 0===n2&&Rt(function(){var e3;null==(e3=t2.Z)||e3.call(t2)}))}},Ft.prototype.subscribe=function(e2){var t2=this;return(function(e3){var t3=new Xt(e3,{name:"sub"});try{t3.c()}catch(n2){throw t3.d(),n2}var i2=t3.d.bind(t3);return i2[Symbol.dispose]=i2,i2})(function(){var i2=t2.value;Rt(function(){return e2(i2)})})},Ft.prototype.valueOf=function(){return this.value},Ft.prototype.toString=function(){return this.value+""},Ft.prototype.toJSON=function(){return this.value},Ft.prototype.peek=function(){var e2=this;return Rt(function(){return e2.value})},Object.defineProperty(Ft.prototype,"value",{get:function(){var e2=Bt(this);return void 0!==e2&&(e2.i=this.i),this.v},set:function(e2){if(e2!==this.v){if(It>100)throw new Error("Cycle detected");i2=this,0!==zt&&0===It&&0!==i2.l&&(i2.l=0,Lt={S:i2,v:i2.v,i:i2.i,o:Lt}),this.v=e2,this.i++,jt++,zt++;try{for(var t2=this.t;void 0!==t2;t2=t2.x)t2.t.N()}finally{Ot()}}var i2}}),qt.prototype=new Ft,qt.prototype.h=function(){if(this.f&=-3,1&this.f)return false;if(32==(36&this.f))return true;if(this.f&=-5,this.g===jt)return true;if(this.g=jt,this.f|=1,this.i>0&&!$t(this))return this.f&=-2,true;var e2=Mt;try{Ut(this),Mt=this;var t2=this.x();(16&this.f||this.v!==t2||0===this.i)&&(this.v=t2,this.f&=-17,this.i++)}catch(i2){this.v=i2,this.f|=16,this.i++}return Mt=e2,Gt(this),this.f&=-2,true},qt.prototype.S=function(e2){if(void 0===this.t){this.f|=36;for(var t2=this.s;void 0!==t2;t2=t2.n)t2.S.S(t2)}Ft.prototype.S.call(this,e2)},qt.prototype.U=function(e2){if(void 0!==this.t&&(Ft.prototype.U.call(this,e2),void 0===this.t)){this.f&=-33;for(var t2=this.s;void 0!==t2;t2=t2.n)t2.S.U(t2)}},qt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e2=this.t;void 0!==e2;e2=e2.x)e2.t.N()}},Object.defineProperty(qt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e2=Bt(this);if(this.h(),void 0!==e2&&(e2.i=this.i),16&this.f)throw this.v;return this.v}}),Xt.prototype.c=function(){var e2=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t2=this.x();"function"==typeof t2&&(this.m=t2)}finally{e2()}},Xt.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Wt(this),Ut(this),zt++;var e2=Mt;return Mt=this,Yt.bind(this,e2)},Xt.prototype.N=function(){2&this.f||(this.f|=2,this.u=Pt,Pt=this)},Xt.prototype.d=function(){this.f|=8,1&this.f||Ht(this)},Xt.prototype.dispose=function(){this.d()};var Jt=0;function Zt(e2){return"__private_"+Jt+++"_"+e2}function Kt(e2,t2){if(!Object.prototype.hasOwnProperty.call(e2,t2))throw new TypeError("attempted to use private field on non-instance");return e2}const Qt=Symbol.for("RemoteUi::Retain"),ei=Symbol.for("RemoteUi::Release"),ti=Symbol.for("RemoteUi::RetainedBy");class ii{constructor(){this.memoryManaged=new Set}add(e2){this.memoryManaged.add(e2),e2[ti].add(this),e2[Qt]()}release(){for(const e2 of this.memoryManaged)e2[ti].delete(this),e2[ei]();this.memoryManaged.clear()}}function ni(e2){return Boolean(e2&&e2[Qt]&&e2[ei])}function ri(e2,{deep:t2=true}={}){return si(e2,t2,new Map)}function si(e2,t2,i2){const n2=i2.get(e2);if(null!=n2)return n2;const r2=ni(e2);if(r2&&e2[Qt](),i2.set(e2,r2),t2){if(Array.isArray(e2)){const n3=e2.reduce((e3,n4)=>si(n4,t2,i2)||e3,r2);return i2.set(e2,n3),n3}if(li(e2)){const n3=Object.keys(e2).reduce((n4,r3)=>si(e2[r3],t2,i2)||n4,r2);return i2.set(e2,n3),n3}}return i2.set(e2,r2),r2}function ai(e2,{deep:t2=true}={}){return oi(e2,t2,new Map)}function oi(e2,t2,i2){const n2=i2.get(e2);if(null!=n2)return n2;const r2=ni(e2);
1if(r2&&e2[ei](),i2.set(e2,r2),t2){if(Array.isArray(e2)){const n3=e2.reduce((e3,n4)=>oi(n4,t2,i2)||e3,r2);return i2.set(e2,n3),n3}if(li(e2)){const n3=Object.keys(e2).reduce((n4,r3)=>oi(e2[r3],t2,i2)||n4,r2);return i2.set(e2,n3),n3}}return r2}function li(e2){if(null==e2||"object"!=typeof e2)return false;const t2=Object.getPrototypeOf(e2);return null==t2||t2===Object.prototype}const ci="_@f",ui="_@fn";function di(e2){var _a5;const t2="undefined"!=typeof self&&self.name||((_a5=globalThis.location)==null?void 0:_a5.origin)||"unknown",i2=e2.uuid();let n2=null;const r2=new Map,s2=new Map,a2=new Map,o2=new Map;return{encode:function t3(i3,n3=new Map){if(null==i3)return[i3];const a3=n3.get(i3);if(a3)return a3;if("object"==typeof i3){if(Array.isArray(i3)){n3.set(i3,[void 0]);const e3=[],r3=[i3.map(i4=>{const[r4,s3=[]]=t3(i4,n3);return e3.push(...s3),r4}),e3];return n3.set(i3,r3),r3}if(li(i3)){n3.set(i3,[void 0]);const e3=[],r3=[Object.keys(i3).reduce((r4,s3)=>{const[a4,o4=[]]=t3(i3[s3],n3);return e3.push(...o4),__spreadProps(__spreadValues({},r4),{[s3]:a4})},{}),e3];return n3.set(i3,r3),r3}}if("function"==typeof i3){if(r2.has(i3)){const e3=r2.get(i3),t5=[{[ci]:e3}];return n3.set(i3,t5),t5}const t4=e2.uuid();r2.set(i3,t4),s2.set(t4,i3);const a4=[{[ci]:t4,[ui]:i3.name||String(i3).slice(0,100)}];return n3.set(i3,a4),a4}const o3=[i3];return n3.set(i3,o3),o3},decode:l2,call(e3,r3){return __async(this,null,function*(){const a3=new ii,c2=s2.get(e3);if(null==c2){const r4=o2.get(e3)||"unknown",s3=new Error("[".concat(t2,"] You attempted to call a function that was already released. (function: ").concat(r4,", endpoint: ").concat(i2).concat(null!=n2?", endpoint terminated ".concat(Date.now()-n2,"ms ago"):"",")"));throw s3.name="RemoteFunctionReleasedError",s3}try{const e4=ni(c2)?[a3,...c2[ti]]:[a3];return yield c2(...l2(r3,e4))}finally{a3.release()}})},release(e3){const t3=s2.get(e3);t3&&(s2.delete(e3),r2.delete(t3),o2.set(e3,t3.name||"unknown"))},terminate(){n2=Date.now(),r2.clear(),s2.clear(),a2.clear(),o2.clear()}};function l2(r3,s3){if("object"==typeof r3){if(null==r3)return r3;if(Array.isArray(r3))return r3.map(e3=>l2(e3,s3));if(ci in r3){const o3=r3[ci];if(a2.has(o3))return a2.get(o3);let l3=0,c2=false,u2=null;const d2=()=>{l3-=1,0===l3&&(c2=true,u2=Date.now(),a2.delete(o3),e2.release(o3))},b2=()=>{l3+=1},h2=new Set(s3),p2=ui in r3&&r3[ui]||"unknown",f2=(...r4)=>{if(c2){const e3=new Error("[".concat(t2,"] You attempted to call a function that was already released. (function: ").concat(p2,", endpoint: ").concat(i2).concat(null!=u2?", released ".concat(Date.now()-u2,"ms ago"):"",", retained by ").concat(h2.size,")"));throw e3.name="RemoteFunctionReleasedError",e3}if(!a2.has(o3)){const e3=new Error("[".concat(t2,"] You attempted to call a function that was already revoked. (function: ").concat(p2,", endpoint: ").concat(i2).concat(null!=n2?", endpoint terminated ".concat(Date.now()-n2,"ms ago"):"",", retained by ").concat(h2.size,")"));throw e3.name="RemoteFunctionRevokedError",e3}return e2.call(o3,r4)};Object.defineProperties(f2,{[ei]:{value:d2,writable:false},[Qt]:{value:b2,writable:false},[ti]:{value:h2,writable:false}});for(const e3 of h2)e3.add(f2);return a2.set(o3,f2),f2}if(li(r3))return Object.keys(r3).reduce((e3,t3)=>__spreadProps(__spreadValues({},e3),{[t3]:l2(r3[t3],s3)}),{})}return r3}}class bi extends Error{constructor(e2){const{callId:t2,error:i2,result:n2}=e2;super("No resolver found for call ID: ".concat(t2).concat(i2?" Error: ".concat(String(i2)):"").concat(null==n2?"":" Result: ".concat(JSON.stringify(n2)))),this.callId=void 0,this.error=void 0,this.result=void 0,this.groupingHash="RemoteUI::MissingResolverError",this.name="MissingResolverError",this.callId=t2,this.error=i2,this.result=n2}}function hi(){return"".concat(pi(),"-").concat(pi(),"-").concat(pi(),"-").concat(pi())}function pi(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)}const fi="__remote_signal__",mi=vi(true);function gi(e2,t2=mi,i2=new Map){const n2=i2.get(e2);if(n2)return n2;if(null!=(r2=e2)&&"object"==typeof r2&&true===r2[fi]){const n3=(function(e3,{SignalLike:t3,updateSignalValue:i3}){const n4=new t3(e3.value);return e3.subscribe(e4=>i3(n4,e4)),n4})(e2,t2);return i2.set(e2,n3),n3}var r2;if(Array.isArray(e2)){const n3=[];
1return i2.set(e2,n3),n3.push(...e2.map(e3=>gi(e3,t2,i2))),n3}if((function(e3){if(null==e3||"object"!=typeof e3)return false;const t3=Object.getPrototypeOf(e3);return null==t3||t3===Object.prototype})(e2)){const n3={};i2.set(e2,n3);for(const r3 in e2)n3[r3]=gi(e2[r3],t2,i2);return n3}return e2}function vi(e2=false){let t2=null,i2=e2?null:new Set;var n2=Zt("value"),r2=Zt("callbacks");class s2{constructor(e3){var t3;Object.defineProperty(this,n2,{writable:true,value:void 0}),Object.defineProperty(this,r2,{writable:true,value:new Set}),Kt(this,n2)[n2]=e3,null==(t3=i2)||t3.add(this)}get value(){return Kt(this,n2)[n2]}set value(e3){e3!==Kt(this,n2)[n2]&&(Kt(this,n2)[n2]=e3,Kt(this,r2)[r2].forEach(t3=>t3(e3)))}subscribe(e3){return Kt(this,r2)[r2].add(e3),()=>{Kt(this,r2)[r2].delete(e3)}}}class a2 extends s2{constructor(e3){var i3;super(e3),null==(i3=t2)||i3.call(this,e3)}get current(){return this.value}get value(){return l2().get.call(this)}set value(e3){throw Error("This signal is read-only")}}let o2=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a2.prototype),"value");function l2(){if(!o2||"function"!=typeof o2.get||"function"!=typeof o2.set)throw Error("Value descriptor is not found");return o2}function c2(){i2=null}return{SignalLike:a2,applyRealSignal:function(e3){if(!i2)return;t2=e3;const n3=l2();if(Object.setPrototypeOf(a2.prototype,e3.prototype),o2=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a2.prototype),"value"),i2)for(const t3 of i2){const i3=n3.get.call(t3);e3.call(t3,i3)}c2()},sealImplementation:c2,updateSignalValue:function(e3,t3){l2().set.call(e3,t3)}}}function yi(e2){const t2=vi();t2.applyRealSignal(Ft),Object.assign(e2.protectedApi,gi(e2.protectedApi,t2));const i2=vi();Object.assign(e2.api,__spreadProps(__spreadValues({},gi(e2.api,i2)),{setSignals(e3){i2.applyRealSignal(e3)}})),setTimeout(()=>i2.sealImplementation())}const Ei=/\/\/# sourceMappingURL=(.+)$/gm,wi=new Map,{eval:_i}=globalThis,Si='\n  (function(__eval__) {\n    with (this) {\n      const eval = __eval__;\n      const _fnProto_ = Function.prototype;\n      this.eval = eval;\n      this.Function = function Function(...args) {\n        var body = args.pop();\n        return eval("(function(" + args.join(\',\') + ") { " + body + " })");\n      };\n      Object.setPrototypeOf(this.Function.prototype, _fnProto_);\n      (function(_fnProto_) {\n        "use strict";\n        __SOURCE__\n      }).call(this);\n    }\n  })\n'.replace(/\n\s*/g,"");class ki{constructor(e2,t2,i2){this.extension=e2,this.url=t2,this.factories=i2,this.realmFactory=void 0,this.timers=new Set,this.global={},this.api={},this.protectedApi={},this.output=void 0;const n2=(r2=t2,e2.replace(Ei,(e3,t3)=>{let i3;try{i3=new URL(t3,r2)}catch(n3){return console.warn("Couldn't resolve source map URL",{sourceMapURL:t3,sourceURL:r2}),e3}return/http(s):/.test(i3.protocol)?"//# sourceMappingURL=".concat(i3):e3}));var r2;this.realmFactory=wi.get(n2),this.realmFactory||(this.realmFactory=(function(e3){const t3="".concat(Si.replace("__SOURCE__",()=>"".concat(e3,"\n")));return _i(t3)})(n2),wi.set(n2,this.realmFactory))}run({target:e2,api:t2,protectedApi:i2}){var n2;const{timers:r2}=this;ri(t2),ri(i2),Object.assign(this.api,t2),Object.assign(this.protectedApi,i2),this.global.self=this.global,this.global.globalThis=this.global,this.global.shopify=this.api,this.global.open=function(e3,i3){return t2.navigation.navigate(String(e3),i3?String(i3):void 0),null},this.global.setInterval=function(){const e3=setInterval.apply(globalThis,arguments);return r2.add(e3),e3},this.global.setTimeout=function(){const e3=setTimeout.apply(globalThis,arguments);return r2.add(e3),e3},this.global.clearInterval=function(e3){clearInterval.call(globalThis,e3),r2.delete(e3)},this.global.clearTimeout=function(e3){clearTimeout.call(globalThis,e3),r2.delete(e3)};const s2=new Map;this.global.shopify.extend=(e3,t3)=>{s2.set(e3,t3)},this.factories.forEach(e3=>e3.bind(this.global)(this)),this.realmFactory.call(this.global,_i),this.output=null==(n2=s2.get(e2))?void 0:n2()}terminate(){return __async(this,null,function*(){var e2,t2;yield this.cleanup(),ai(this.protectedApi),ai(this.global.shopify),null==(e2=this.global.document)||null==(t2=e2.documentElement)||t2.remove();const i2=this.global;for(const n2 in i2)i2[n2]=void 0;for(const n2 of this.timers)clearInterval(n2)})}cleanup(){return __async(this,null,function*(){try{const e2=yield this.output;"function"==typeof e2&&(yield null==e2?void 0:e2())}catch(e2){}})}}const xi={"Checkout::Actions::RenderBefore":"purchase.checkout.actions.render-before","Checkout::CartLineDetails::RenderAfter":"purchase.checkout.cart-line-item.render-after","Checkout::CartLineDetails::RenderLineComponents":"purchase.cart-line-item.line-components.render","Checkout::CartLines::RenderAfter":"purchase.checkout.cart-line-list.render-after","Checkout::Contact::RenderAfter":"purchase.checkout.contact.render-after","Checkout::CustomerInformation::RenderAfter":"purchase.thank-you.customer-information.render-after","Checkout::DeliveryAddress::RenderBefore":"purchase.checkout.delivery-address.render-before","Checkout::Dynamic::Render":"purchase.checkout.block.render","Checkout::GiftCard::Render":"purchase.checkout.gift-card.render","Checkout::PaymentMethod::Render":"purchase.checkout.payment-option-item.details.render","Checkout::PaymentMethod::HostedFields::RenderAfter":"purchase.checkout.payment-option-item.hosted-fields.render-after","Checkout::PaymentMethod::RenderRequiredAction":"purchase.checkout.payment-option-item.action-required.render","Checkout::PickupLocations::RenderAfter":"purchase.checkout.pickup-location-list.render-after","Checkout::PickupLocations::RenderBefore":"purchase.checkout.pickup-location-list.render-before","Checkout::PickupPoints::RenderAfter":"purchase.checkout.pickup-point-list.render-after","Checkout::PickupPoints::RenderBefore":"purchase.checkout.pickup-point-list.render-before","Checkout::Reductions::RenderAfter":"purchase.checkout.reductions.render-after","Checkout::Reductions::RenderBefore":"purchase.checkout.reductions.render-before","Checkout::ShippingMethodDetails::RenderAfter":"purchase.checkout.shipping-option-item.render-after","Checkout::ShippingMethodDetails::RenderExpanded":"purchase.checkout.shipping-option-item.details.render","Checkout::ShippingMethods::RenderAfter":"purchase.checkout.shipping-option-list.render-after","Checkout::ShippingMethods::RenderBefore":"purchase.checkout.shipping-option-list.render-before","Checkout::ThankYou::CartLineDetails::RenderAfter":"purchase.thank-you.cart-line-item.render-after","Checkout::ThankYou::CartLines::RenderAfter":"purchase.thank-you.cart-line-list.render-after","Checkout::ThankYou::CustomerInformation::RenderAfter":"purchase.thank-you.customer-information.render-after","Checkout::ThankYou::Dynamic::Render":"purchase.thank-you.block.render"};function Ai(e2){var _a5;return(_a5=xi[e2])!=null?_a5:e2}function Ni(e2){if(null!=(t2=e2)&&null!=t2.aborted&&"function"==typeof t2.addEventListener)return e2;var t2;
1const i2=new AbortController,{aborted:n2,start:r2}=e2;return n2?(i2.abort(),i2.signal):(r2&&(ri(r2),r2(e3=>{e3&&i2.abort()})),i2.signal.addEventListener("abort",()=>__async(null,null,function*(){ai(r2)}),{once:true}),i2.signal)}(()=>{const e2={};for(const[t2,i2]of Object.entries(xi))e2[i2]=t2})(),new Set(["purchase.checkout.block.render","Checkout::Dynamic::Render","purchase.thank-you.block.render","Checkout::ThankYou::Dynamic::Render"]);class Ti extends Error{constructor(){super(...arguments),this.name="ExtensionSandboxError"}}class Ci extends Error{constructor(){super(...arguments),this.name="ExtensionUsageError"}}class Di extends Error{constructor(){super(...arguments),this.name="ExtensionAssetFetchError"}}class Oi extends Error{constructor(){super(...arguments),this.name="ExtensionSandboxAssetFetchError"}}function Vi(e2){return(...t2)=>{var _a5;try{return e2(...t2)}catch(i2){if("ExtensionUsageError"===i2.name)throw i2;throw new Ti((_a5=i2==null?void 0:i2.message)!=null?_a5:"Unknown error",{cause:i2})}}}const Mi="latn",Ri="-u-nu-".concat(Mi);function Pi(e2){try{const t2=new Intl.Locale(e2);return new Intl.Locale(t2.baseName,{numberingSystem:Mi}).toString()}catch(e3){return(function(e4){return e4.includes("-u-nu-")?e4.replace(/-u-nu-[a-z0-9]+/i,Ri):"".concat(e4).concat(Ri)})(e2)}}function zi(e2,t2,i2){const n2=new Map,r2=new Map;function s2(t3,_a5={}){var _b3=_a5,{inExtensionLocale:i3}=_b3,r3=__objRest(_b3,["inExtensionLocale"]);if("currency"===r3.style&&("string"!=typeof r3.currency||0===r3.currency.length))throw new Ci('i18n.formatNumber(): currency option must be a valid currency code string when style is "currency"');const s3=ji(true===i3?e2.extensionLanguage:e2.language),a2=Ii(s3,r3);let o2=n2.get(a2);return o2||(o2=(function(e3,t4){return Li(e3,e4=>new Intl.NumberFormat(Pi(e4),t4))})(s3,r3),n2.set(a2,o2)),o2.format(t3)}return{formatNumber:Vi(s2),formatCurrency:Vi(function(t3,_c3={}){var _d3=_c3,{inExtensionLocale:i3}=_d3,n3=__objRest(_d3,["inExtensionLocale"]);return s2(t3,__spreadValues({inExtensionLocale:i3,style:"currency",currency:(r3=e2.currency,"current"in r3?r3.current.isoCode:r3.isoCode)},n3));var r3}),formatDate:Vi(function(t3,_e4={}){var _f3=_e4,{inExtensionLocale:i3}=_f3,n3=__objRest(_f3,["inExtensionLocale"]);const s3=ji(true===i3?e2.extensionLanguage:e2.language),a2=Ii(s3,n3);let o2=r2.get(a2);return o2||(o2=(function(e3,t4){return Li(e3,e4=>new Intl.DateTimeFormat(Pi(e4),t4))})(s3,n3),r2.set(a2,o2)),o2.format(t3)}),translate:Vi((n3,r3={})=>{let s3=t2[n3],a2=false;const o2=ji(e2.extensionLanguage);function l2(e3){if("local"===i2)throw new Ci("translate(): ".concat(e3));console.error(new Ci("translate(): ".concat(e3)))}if("number"==typeof r3.count){const e3=(function(e4){return Li(e4,e5=>new Intl.PluralRules(e5))})(o2).select(r3.count),i3="".concat(n3,".").concat(e3);if(s3=t2[i3],void 0===s3){const r4=t2["".concat(n3,".other")];if("other"!==e3&&void 0!==r4)s3=r4,console.warn(new Ci('translate(): MISSING PLURALIZATION KEY for locale "'.concat(o2,'": "').concat(i3,'". Using fallback key of "').concat(n3,'.other".')));else{if("string"!=typeof t2[n3]){const e4='MISSING PLURALIZATION KEY for locale "'.concat(o2,'": "').concat(i3,'"');return l2(e4),e4}a2=true,s3=t2[n3]}}}else if("string"==typeof r3.count&&"string"==typeof t2[n3])s3=t2[n3];else if(void 0!==r3.count){const e3='INCORRECT TYPE for options.count. Must be typeof "number".';return l2(e3),e3}if(void 0===s3){const e3=["".concat(n3,".zero"),"".concat(n3,".one"),"".concat(n3,".two"),"".concat(n3,".few"),"".concat(n3,".many"),"".concat(n3,".other")];let i3='MISSING KEY for locale "'.concat(o2,'": "').concat(n3,'"');for(const n4 of e3)if(void 0!==t2[n4]){i3='MISSING PROPERTY "options.count" for pluralization.',l2(i3);break}return l2(i3),i3}const c2=[],u2=/(.*?(?={{|$|\n))(?:{{(.+?(?=}}))}})?/g,d2=new Set(Object.keys(r3)),b2=new Set,h2=[];let p2=u2.exec(s3),f2=false;for(;p2&&!(p2.index>=s3.length);){const e3=p2[0],t3=p2[2],i3=t3==null?void 0:t3.trim(),a3=c2.length-1;let h3=p2[1]||"",m2=false;if(void 0!==i3){if(!d2.has(i3)){l2('MISSING PLACEHOLDER VALUE for locale "'.concat(o2,'": "options.').concat(t3,'" is required for "').concat(n3,'"')),c2.push(e3),p2=u2.exec(s3);continue}"string"==typeof r3[i3]||"number"==typeof r3[i3]?h3+=String(r3[i3]):void 0!==t3&&(f2=true,m2=true),b2.add(i3)}"string"==typeof c2[a3]?c2[a3]+=h3:c2.push(h3),m2&&void 0!==i3&&c2.push(r3[i3]),p2=u2.exec(s3)}for(const e3 of d2)false===a2&&"count"===e3||b2.has(e3)||h2.push('"{{'.concat(e3,'}}"'));return h2.length>0&&l2("".concat(1===h2.length?"MISSING PLACEHOLDER":"MISSING PLACEHOLDERS",' for locale "').concat(o2,'": ').concat(h2.join(", "),' not found in "').concat(n3,'"')),f2?c2:c2.join("")})}}function Ii(e2,t2={}){return"".concat(e2,"|").concat(JSON.stringify(t2))}function Li(e2,t2){try{return t2(e2)}catch(i2){const n2=(function(e3){var _a5;return(_a5=e3.match(/^([a-z]{2,3})(?:[-_].*)?$/i))==null?void 0:_a5[1]})(e2);if(n2&&n2!==e2)return t2(n2);throw i2}}function ji(e2){return"current"in e2?e2.current.isoCode:e2.isoCode}function Bi(e2,t2,i2,n2,r2){const s2=Fi(e2),a2=__spreadProps(__spreadValues({},s2),{i18n:zi(s2.localization,i2,n2)}
1);var o2;return"signal"in(o2=a2)&&Object.assign(o2,{signal:Ni(o2.signal)}),a2.extensionPoint=t2,a2.extension.target=t2,a2}function Fi(e2){if((function(e3){return"object"==typeof e3&&null!=e3&&"initial"in e3&&"function"==typeof e3.subscribe})(e2))return(function(e3){const t2=(function(e4){ri(e4);let t3=e4.initial,i2=true,n2=false;const r2=new Set,s2=Promise.resolve(e4.subscribe(a2)).then(e5=>(n2||a2(e5[1]),e5));return{get current(){return t3},subscribe:e5=>(r2.add(e5),()=>{r2.delete(e5)}),destroy(){return __async(this,null,function*(){i2=false,r2.clear();const[t4]=yield s2;t4(),ai(e4)})}};function a2(e5){if(n2=true,i2&&t3!==e5){t3=e5;for(const e6 of r2)e6(t3)}}})(e3);return Object.defineProperty(t2,fi,{value:true}),Object.defineProperty(t2,"value",{get:()=>t2.current}),t2})(e2);if("object"==typeof e2&&null!=e2&&!(function(e3){return"object"==typeof e3&&null!=e3&&"current"in e3&&"function"==typeof e3.subscribe})(e2)){for(const t2 of Object.keys(e2)){const i2=e2;i2[t2]=Fi(i2[t2])}return e2}return e2}const $i=new(_J=class{constructor(){__privateAdd2(this,_n3,new Set)}throwDetachedOnce(e2,t2){const i2=(()=>{try{return String(t2)}catch(e3){return"unknown error"}})();try{if(__privateGet2(this,_n3).has(e2))return;const n2=new Ti("[extension-tts] ".concat(e2," ExtensionSandboxError: ").concat(i2),{cause:t2});setTimeout(()=>{throw n2},0),__privateGet2(this,_n3).add(e2)}catch(e3){}}reset(){__privateGet2(this,_n3).clear()}},_n3=new WeakMap,_J),Ui=(function(e2,{uuid:t2=hi,createEncoder:i2=di,callable:n2}={}){let r2=false,s2=e2;const a2=new Map,o2=new Map,l2=(function(e3,t3){let i3;if(null==t3){if("function"!=typeof Proxy)throw new Error("You must pass an array of callable methods in environments without Proxies.");const t4=new Map;i3=new Proxy({},{get(i4,n3){if(t4.has(n3))return t4.get(n3);const r3=e3(n3);return t4.set(n3,r3),r3}})}else{i3={};for(const n3 of t3)Object.defineProperty(i3,n3,{value:e3(n3),writable:false,configurable:true,enumerable:true})}return i3})(b2,n2),c2=i2({uuid:t2,release(e3){u2(3,[e3])},call(e3,i3,n3){const r3=t2(),s3=h2(r3,n3),[a3,o3]=c2.encode(i3);return u2(5,[r3,e3,a3],o3),s3}});return s2.addEventListener("message",d2),{call:l2,replace(e3){const t3=s2;s2=e3,t3.removeEventListener("message",d2),e3.addEventListener("message",d2)},expose(e3){for(const t3 of Object.keys(e3)){const i3=e3[t3];"function"==typeof i3?a2.set(t3,i3):a2.delete(t3)}},callable(...e3){if(null!=n2)for(const t3 of e3)Object.defineProperty(l2,t3,{value:b2(t3),writable:false,configurable:true,enumerable:true})},terminate(){u2(2,void 0),p2(),s2.terminate&&s2.terminate()}};function u2(e3,t3,i3){r2||s2.postMessage(t3?[e3,t3]:[e3],i3)}function d2(e3){return __async(this,null,function*(){if(r2)return;const{data:t3}=e3;var i3;if(i3=t3,Array.isArray(i3)&&"number"==typeof i3[0]&&(null==i3[1]||Array.isArray(i3[1])))switch(t3[0]){case 2:p2();break;case 0:{const e4=new ii,[i4,r3,s3]=t3[1],o3=a2.get(r3);try{if(null==o3)throw new Error("No '".concat(r3,"' method is exposed on this endpoint"));const[t4,n3]=c2.encode(yield o3(...c2.decode(s3,[e4])));u2(1,[i4,void 0,t4],n3)}catch(n3){const{name:e5,message:t4,stack:r4}=n3;throw u2(1,[i4,{name:e5,message:t4,stack:r4}]),n3}finally{e4.release()}break}case 1:{const[e4,i4,n3]=t3[1],r3=o2.get(e4);if(null==r3)throw new bi({callId:e4,error:i4,result:n3});r3(...t3[1]),o2.delete(e4);break}case 3:{const[e4]=t3[1];c2.release(e4);break}case 6:{const[e4,i4,n3]=t3[1],r3=o2.get(e4);if(null==r3)throw new bi({callId:e4,error:i4,result:n3});r3(...t3[1]),o2.delete(e4);break}case 5:{const[e4,i4,r3]=t3[1];try{const t4=yield c2.call(i4,r3),[n3,s3]=c2.encode(t4);u2(6,[e4,void 0,n3],s3)}catch(n3){const{name:t4,message:i5,stack:r4}=n3;throw u2(6,[e4,{name:t4,message:i5,stack:r4}]),n3}break}}})}function b2(e3){return(...i3)=>{if(r2)return Promise.reject(new Error("You attempted to call a function on a terminated web worker."));if("string"!=typeof e3&&"number"!=typeof e3)return Promise.reject(new Error("Can\u2019t call a symbol method on a remote endpoint: ".concat(e3.toString())));const n3=t2(),s3=h2(n3),[a3,o3]=c2.encode(i3);return u2(0,[n3,e3,a3],o3),s3}}function h2(e3,t3){return new Promise((i3,n3)=>{o2.set(e3,(e4,r3,s3)=>{if(null==r3)i3(s3&&c2.decode(s3,t3));else{const e5=new Error;Object.assign(e5,r3),n3(e5)}})})}function p2(){var e3;r2=true,a2.clear(),o2.clear(),null===(e3=c2.terminate)||void 0===e3||e3.call(c2),s2.removeEventListener("message",d2)}})(self,{callable:[]});function Gi(e2){return"object"==typeof e2&&null!==e2&&"ExtensionSandboxError"===e2.name}function qi(e2,t2){try{if(!e2||"object"!=typeof e2)return null;const i2=e2.stack;if(!i2||"string"!=typeof i2)return null;for(const e3 of t2.keys())if(i2.includes(e3))return e3}catch(e3){return null}return null}self.addEventListener("message",({data:e2})=>{null!=e2&&e2.__replace instanceof MessagePort&&(Ui.replace(e2.__replace),e2.__replace.start())}),Object.defineProperty(self,"endpoint",{value:Ui,enumerable:false,writable:false,configurable:true});
1class Wi extends Error{constructor(){super(...arguments),this.name="RealmTeardownTimeoutError"}}let Hi=0;const Yi=new Map,Xi=new Map;function Ji(e2,t2){var _a5;e2.set(t2,((_a5=e2.get(t2))!=null?_a5:0)+1)}function Zi(){return Hi>0}function Ki(e2){var _a5;return((_a5=Yi.get(e2))!=null?_a5:0)>0}function Qi(e2){var _a5;return((_a5=Xi.get(e2))!=null?_a5:0)>0}function en(e2){return Xi.has(e2)}function tn(e2,{anyRealmIsTearingDown:t2,realmScriptIsTearingDown:i2,realmScriptWasActivated:n2,hasLiveRealmForScript:r2}){return e2?i2(e2)||n2(e2)&&!r2(e2):t2()}function nn(e2){const t2=Xi.get(e2);void 0!==t2&&Xi.set(e2,Math.max(0,t2-1))}function rn(e2,t2){let i2;return()=>i2!=null?i2:i2=(function(e3,t3){return(()=>__async(null,null,function*(){let i3;Hi+=1,Ji(Yi,t3),nn(t3);try{yield Promise.race([e3(),new Promise((e4,t4)=>{i3=setTimeout(()=>t4(new Wi("Realm teardown timed out")),5e3)})])}finally{clearTimeout(i3),setTimeout(()=>{Hi=Math.max(0,Hi-1),(function(e4,t4){var _a5;const i4=((_a5=e4.get(t4))!=null?_a5:0)-1;i4>0?e4.set(t4,i4):e4.delete(t4)})(Yi,t3)},2e3)}}))()})(e2,t2)}function sn(e2){console.error("Unexpected sandbox error. This has been reported to the host.",e2)}const an=/^\/api\/.+\/graphql\.json$/,on=/^(\/\/)?(\/)?storefront\/api\/(.+\/)?graphql\.json$/;function ln(){return __async(this,null,function*(){throw new Ci('permission to use fetch() must be specified under [capabilities] with flag "network_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access')})}function cn(){throw new Ci('permission to use WebSocket must be specified under [capabilities] with flag "network_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access')}const un={XMLHttpRequestUpload:true,XMLHttpRequestEventTarget:true,XMLHttpRequest:true,BackgroundFetchManager:true,BackgroundFetchRecord:true,BackgroundFetchRegistration:true,BackgroundFetchEvent:true,BackgroundFetchUpdateUIEvent:true,Cache:true,CacheStorage:true,caches:true,fetch:ln,Request:true,Response:true,Headers:true,Worker:true,SharedWorker:true,WebSocket:cn,EventSource:true,PaymentMethodChangeEvent:true,PaymentRequest:true,PaymentRequestUpdateEvent:true,PaymentResponse:true,PushEvent:true,PushManager:true,PushMessageData:true,PushSubscription:true,PushSubscriptionOptions:true,ServiceWorkerRegistration:true,importScripts:true};function dn(e2){if("function"==typeof e2||e2 instanceof AbortSignal)return;if("object"!=typeof e2||null==e2)return e2;const t2={};for(const i2 in e2)t2[i2]=dn(e2[i2]);return t2}const bn=Request,hn=Response,pn=[101,103,204,205,304];function fn(_0){return __async(this,arguments,function*(e2,t2={}){const{port1:i2,port2:n2}=new MessageChannel;try{const r2=new bn(e2,t2);if(new URL(r2.url).origin===self.origin)throw Error("Fetches to the iframe's origin are not allowed.");r2.signal.throwIfAborted(),r2.signal.addEventListener("abort",()=>{i2.postMessage({action:"abort",reason:r2.signal.reason})});const s2=r2.url,a2={method:r2.method,headers:[...r2.headers],mode:r2.mode,credentials:r2.credentials,cache:r2.cache,redirect:r2.redirect,referrer:r2.referrer,integrity:r2.integrity,keepalive:r2.keepalive},o2=[n2];"GET"!==r2.method&&"HEAD"!==r2.method&&(a2.body=yield r2.arrayBuffer(),o2.push(a2.body));const l2={action:"fetch",url:s2,requestInit:a2,returnPort:n2};return self.postMessage(l2,o2),new Promise((e3,t3)=>{i2.addEventListener("message",n3=>{if(n3.data){if(n3.data.error)t3(n3.data.error),i2.close();else if(n3.data.response){const{status:t4}=n3.data.response.init,r3=pn.includes(t4)?null:n3.data.response.body;e3(new hn(r3,n3.data.response.init)),i2.close()}}}),i2.start()})}catch(r2){return i2==null?void 0:i2.close(),Promise.reject(r2)}})}const mn=Date.now();function gn(e2){return"number"==typeof(performance==null?void 0:performance.timeOrigin)?e2+performance.timeOrigin:e2+mn}function vn(e2){const t2=gn(e2.settledAt);return __spreadValues({startTime:t2,timestamp:t2,ttsCompletionReason:e2.reason,ttsRenderObserved:e2.renderedContent},true===e2.fetchAttributable&&{ttsRequestCount:e2.fetchCount})}function yn(){return{startTime:gn(performance.now()),timestamp:Date.now()}}
1const En=new(_K=class{constructor(){__privateAdd2(this,_r3,new Map)}registerCapture(e2,t2){const i2=__privateGet2(this,_r3).get(e2);i2&&i2!==t2&&this.discardCapture(e2,i2),__privateGet2(this,_r3).set(e2,t2)}discardCapture(e2,t2){try{if(__privateGet2(this,_r3).get(e2)!==t2)return;try{t2.silence()}finally{__privateGet2(this,_r3).delete(e2)}}catch(i2){$i.throwDetachedOnce("bridge-discard-capture",i2)}}liveCaptureCount(){return __privateGet2(this,_r3).size}isSoleCapture(e2){return 1===__privateGet2(this,_r3).size&&__privateGet2(this,_r3).has(e2)}notifyFetchStarted(){const e2=[...__privateGet2(this,_r3).values()];try{for(const t2 of e2)t2.fetchStarted()}catch(t2){$i.throwDetachedOnce("bridge-notify-fetch-started",t2)}return()=>{try{for(const t2 of e2)t2.fetchResolved()}catch(t2){$i.throwDetachedOnce("bridge-resolve-fetch",t2)}}}reset(){__privateGet2(this,_r3).clear()}},_r3=new WeakMap,_K),wn=Request,_n=Response;let Sn;function kn({allowNetworkAccess:e2,allowApiAccess:t2,storefrontUrl:i2,myshopifyDomain:n2,metrics:r2,extensionId:s2,instanceId:a2,capture:o2}){const l2=fn;return function(c2,u2){return __async(this,null,function*(){var _a5,_b3;let d2,b2,h2="external";const p2=performance.now(),{startTime:f2}=yn();let m2;o2?(o2.fetchStarted(true),m2=()=>o2.fetchResolved()):m2=En.notifyFetchStarted();try{if(!e2&&!t2)throw yield ln();let r3;try{r3=new wn(c2,u2)}catch(g2){throw new Ci("Invalid request: ".concat(g2))}const s3=(function(e3,t3,i3){const n3=new URL(e3),r4=new URL(t3),s4=new URL("https://".concat(i3)),a3=an.test(n3.pathname)&&(n3.host===r4.host||n3.host===s4.host);return on.test(n3.pathname)||a3})(r3.url,i2,n2);if(s3){if(h2="storefront",!t2)return yield(function(){return __async(this,null,function*(){throw new Ci('permission to access the storefront API must be specified under [capabilities] with flag "api_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#api-access')})})();const e3=yield r3.text(),i3=yield Sn(__spreadProps(__spreadValues({},dn(r3)),{headers:r3.headers?Array.from(r3.headers.entries()):[],body:e3}));return"status"in i3&&"number"==typeof i3.status&&(b2=i3.status),i3}if(h2="external",e2){const e3=yield l2(c2,u2);return"status"in e3&&"number"==typeof e3.status&&(b2=e3.status),e3}return yield ln()}catch(v2){throw d2=v2 instanceof Error&&"ExtensionUsageError"===v2.name?"ExtensionUsageError":"unknown",v2}finally{m2();let e3="unknown",t3="unknown";try{const i4="string"==typeof c2?c2:c2.url;t3=i4,e3=new URL(i4).origin}catch(e4){}const i3=((_b3=(_a5=u2==null?void 0:u2.method)!=null?_a5:"string"==typeof c2?void 0:c2.method)!=null?_b3:"GET").toUpperCase(),n3=performance.now()-p2;r2.extensionPerformanceMarkFinished("extension-fetch-call",{type:"extension-fetch",startTime:f2,duration:n3,errorType:d2,destination:h2,httpStatus:b2,httpMethod:i3,origin:e3,requestUrl:t3,extensionId:s2,instanceId:a2})}})}}const xn=new Map;function An(e2){const t2=(function({allowNetworkAccess:e3,allowApiAccess:t3,storefrontUrl:i2,myshopifyDomain:n2,metrics:r2,extensionId:s2,instanceId:a2,extensionTTSCapture:o2}){const l2=__spreadProps(__spreadValues({},un),{fetch:kn({allowNetworkAccess:e3,allowApiAccess:t3,storefrontUrl:i2,myshopifyDomain:n2,metrics:r2,extensionId:s2,instanceId:a2,capture:o2})});return e3||t3?__spreadProps(__spreadValues({},l2),{WebSocket:!e3&&cn,Request:false,Response:false,Headers:false}):l2})(e2.protectedApi);
1for(const i2 of Object.keys(t2)){const t3=xn.get(i2);t3&&Object.defineProperty(e2.global,i2,t3)}!(function(e3,t3){!(function(e4,t4){let i2=e4;do{Object.getOwnPropertyNames(i2).filter(e5=>e5 in t4&&false!==t4[e5]).forEach(e5=>{try{const n2=Object.getOwnPropertyDescriptor(i2,e5);Object.defineProperty(i2,e5,{value:true===t4[e5]?void 0:t4[e5],configurable:true,enumerable:n2==null?void 0:n2.enumerable,writable:false})}catch(e6){}}),i2=Object.getPrototypeOf(i2)}while(i2!==Object.prototype)})(e3,t3)})(e2.global,t2)}function Nn(e2,t2){let i2=e2;for(;i2;){const e3=Object.getOwnPropertyDescriptor(i2,t2);if(e3)return e3;i2=Object.getPrototypeOf(i2)}}class Tn extends CustomEvent{respondWith(e2){this.response=e2}}const Cn=Object.freeze({});class Dn extends HTMLElement{static get observedAttributes(){return this.finalize().__observedAttributes}static get remotePropertyDefinitions(){return this.finalize().__remotePropertyDefinitions}static get remoteAttributeDefinitions(){return this.finalize().__remoteAttributeDefinitions}static get remoteEventDefinitions(){return this.finalize().__remoteEventDefinitions}static get remoteSlotDefinitions(){return this.finalize().__remoteSlotDefinitions}static createProperty(e2,t2){Pn(e2,t2,this.observedAttributes,this.remotePropertyDefinitions,this.__attributeToPropertyMap,this.__eventToPropertyMap)}static finalize(){if(this.hasOwnProperty("__finalized"))return this;this.__finalized=true;const{slottable:e2,remoteSlots:t2,remoteProperties:i2,remoteAttributes:n2,remoteEvents:r2,remoteMethods:s2}=this,a2=Object.getPrototypeOf(this),o2=new Set;e2&&o2.add("slot");const l2=new Map,c2=new Map,u2=new Map,d2=new Map,b2=new Map,h2=new Map;if("function"==typeof a2.finalize&&(a2.finalize(),a2.observedAttributes.forEach(e3=>{o2.add(e3)}),a2.remotePropertyDefinitions.forEach((e3,t3)=>{d2.set(t3,e3)}),a2.remoteAttributeDefinitions.forEach((e3,t3)=>{b2.set(t3,e3)}),a2.remoteEventDefinitions.forEach((e3,t3)=>{h2.set(t3,e3)}),a2.remoteSlotDefinitions.forEach((e3,t3)=>{u2.set(t3,e3)}
1)),null!=t2&&(Array.isArray(t2)?t2:Object.keys(t2)).forEach(e3=>{u2.set(e3,Cn)}),null!=i2&&(Array.isArray(i2)?i2.forEach(e3=>{Pn(e3,void 0,o2,d2,l2,c2)}):Object.keys(i2).forEach(e3=>{Pn(e3,i2[e3],o2,d2,l2,c2)})),null!=n2&&n2.forEach(e3=>{b2.set(e3,Cn),o2.add(e3)}),null!=r2&&(Array.isArray(r2)?r2.forEach(e3=>{h2.set(e3,Cn)}):Object.keys(r2).forEach(e3=>{h2.set(e3,r2[e3])})),null!=s2)if(Array.isArray(s2))for(const p2 of s2)this.prototype[p2]=function(...e3){return this.callRemoteMethod(p2,...e3)};else Object.assign(this,s2);return Object.defineProperties(this,{__observedAttributes:{value:[...o2],enumerable:false},__remoteSlotDefinitions:{value:u2,enumerable:false},__remotePropertyDefinitions:{value:d2,enumerable:false},__remoteAttributeDefinitions:{value:b2,enumerable:false},__remoteEventDefinitions:{value:h2,enumerable:false},__attributeToPropertyMap:{value:l2,enumerable:false},__eventToPropertyMap:{value:c2,enumerable:false}}),this}constructor(){var _a5;super(),this.constructor.finalize();const e2={},t2={},i2=Object.getPrototypeOf(this),n2=this.constructor;for(const[r2,s2]of n2.remotePropertyDefinitions.entries()){const n3=s2.name;if(i2.hasOwnProperty(r2))continue;r2===n3&&(t2[r2]=s2.default);const a2={configurable:true,enumerable:r2===n3,get:()=>{var _a6;return(_a6=gt(this))==null?void 0:_a6[n3]},set:e3=>{_t(this,n3,e3)}};e2[r2]=a2}for(const[r2,s2]of n2.remoteEventDefinitions.entries()){const t3=(_a5=s2.property)!=null?_a5:true;if(!t3)continue;const i3=true===t3?"on".concat(r2):t3;e2[i3]={configurable:true,enumerable:true,get:()=>{var _a6;return(_a6=Vn(this).properties.get(i3))!=null?_a6:null},set:e3=>{const t4=Vn(this),n3=t4.properties.get(i3);if("function"==typeof e3){let n4=function(...t5){return e3.call(this,...t5)};t4.properties.set(i3,n4),this.addEventListener(r2,n4)}else t4.properties.delete(i3);n3&&this.removeEventListener(r2,n3)}}}Object.defineProperties(this,e2),Object.assign(this,t2)}attributeChangedCallback(e2,t2,i2){if("slot"===e2&&this.constructor.slottable)return void St(this,e2,i2?String(i2):void 0);const{remotePropertyDefinitions:n2,remoteAttributeDefinitions:r2,__attributeToPropertyMap:s2}=this.constructor;if(r2.has(e2))return void St(this,e2,i2);const a2=s2.get(e2),o2=null==a2?a2:n2.get(a2);null!=o2&&(this[a2]=(function(e3,t3){var _a5;if(null!=e3)switch(t3){case Boolean:return null!=e3&&"false"!==e3;case Object:case Array:try{return JSON.parse(e3)}catch(e4){return}case String:return String(e3);case Number:return Number.parseFloat(e3);case Function:return;default:return(_a5=t3.parse)==null?void 0:_a5.call(t3,e3)}})(i2,o2.type))}connectedCallback(){for(const[e2,t2]of this.constructor.remoteEventDefinitions.entries())t2.bubbles&&this.addEventListener(e2,In)}disconnectedCallback(){for(const[e2,t2]of this.constructor.remoteEventDefinitions.entries())t2.bubbles&&this.removeEventListener(e2,In)}addEventListener(e2,t2,i2){const{remoteEventDefinitions:n2,__eventToPropertyMap:r2}=this.constructor,s2=n2.get(e2),a2=r2.get(e2);if(null==s2&&null==a2)return super.addEventListener(e2,t2,i2);const o2=Vn(this),l2=Mn.call(this,e2,{property:a2,definition:s2}),c2="object"==typeof i2&&(i2==null?void 0:i2.once)?(...i3)=>{const n3="object"==typeof t2?t2.handleEvent(...i3):t2.call(this,...i3);return Rn.call(this,e2,t2,u2),n3}:t2,u2=[c2,l2];l2.listeners.add(t2),o2.listeners.set(t2,u2),super.addEventListener(e2,c2,i2),"object"==typeof i2&&i2.signal&&i2.signal.addEventListener("abort",()=>{Rn.call(this,e2,t2,u2)},{once:true}),s2?kt(this,e2,l2.dispatch):_t(this,a2,l2.dispatch)}removeEventListener(e2,t2,i2){var _a5;const n2=(_a5=On.get(this))==null?void 0:_a5.listeners.get(t2),r2=n2?n2[0]:t2;super.removeEventListener(e2,r2,i2),null!=n2&&Rn.call(this,e2,t2,n2)}updateRemoteProperty(e2,t2){_t(this,e2,t2)}updateRemoteAttribute(e2,t2){St(this,e2,t2)}callRemoteMethod(e2,...t2){return(function(e3,t3,...i2){const n2=bt.get(e3),r2=ut.get(e3);if(null==n2||null==r2)throw new Error("Cannot call method ".concat(t3," on an unconnected node"));return r2.call(n2,t3,...i2)})(this,e2,...t2)}}__publicField(Dn,"slottable",true);__publicField(Dn,"__finalized",true);__publicField(Dn,"__observedAttributes",[]);__publicField(Dn,"__attributeToPropertyMap",(()=>new Map)());__publicField(Dn,"__eventToPropertyMap",(()=>new Map)());__publicField(Dn,"__remotePropertyDefinitions",(()=>new Map)());__publicField(Dn,"__remoteAttributeDefinitions",(()=>new Map)());__publicField(Dn,"__remoteEventDefinitions",(()=>new Map)());__publicField(Dn,"__remoteSlotDefinitions",(()=>new Map)());const On=new WeakMap;function Vn(e2){let t2=On.get(e2);return t2||(t2={events:new Map,properties:new Map,listeners:new WeakMap},On.set(e2,t2),t2)}function Mn(e2,{property:t2,definition:i2}){const n2=Vn(this);let r2=n2.events.get(e2);return null==r2&&(r2={name:e2,property:t2,definition:i2,listeners:new Set,dispatch:(...t3)=>{var _a5,_b3;const n3=(_b3=(_a5=i2==null?void 0:i2.dispatchEvent)==null?void 0:_a5.apply(this,t3))!=null?_b3:new Tn(e2,{detail:t3[0],bubbles:i2==null?void 0:i2.bubbles});return this.dispatchEvent(n3),n3.response}},n2.events.set(e2,r2)),r2}function Rn(e2,t2,i2){var _a5,_b3;const n2=Vn(this),r2=i2[1];r2.listeners.delete(t2),n2.listeners.delete(t2),r2.listeners.size>0||(n2.events.delete(e2),r2.property?((_a5=gt(this))==null?void 0:_a5[r2.property])===r2.dispatch&&_t(this,r2.property,void 0):((_b3=wt(this))==null?void 0:_b3[e2])===r2.dispatch&&kt(this,e2,void 0))}function Pn(e2,t2,i2,n2,r2,s2){if(n2.has(e2))return n2.get(e2);const a2="o"===e2[0]&&"n"===e2[1],o2=t2!=null?t2:{};let{alias:l2}=o2;const{type:c2=a2?Function:String,attribute:u2=c2!==Function,event:d2=a2,default:b2=c2!==Boolean&&void 0}=o2;if(null==l2){const t3=e2.toLowerCase();t3!==e2&&(l2=[t3]),a2&&(l2!=null?l2:l2=[],l2.unshift("_".concat(e2)))}let h2,p2;true===u2?h2=zn(e2):"string"==typeof u2&&(h2=u2),h2&&(Array.isArray(i2)?i2.push(h2):i2.add(h2),r2.set(h2,e2)),true===d2?p2=zn(a2?e2.slice(2):e2):"string"==typeof d2&&(p2=d2),p2&&s2.set(p2,e2);const f2={name:e2,type:c2,alias:l2,event:p2,attribute:h2,default:b2};if(n2.set(e2,f2),l2)for(const m2 of l2)n2.set(m2,f2);return f2}function zn(e2){return e2.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function In(){}class Ln{constructor(e2,{batch:t2=jn()}={}
1){__privateAdd2(this,_s3);__privateAdd2(this,_a4);__privateAdd2(this,_o3);__privateSet2(this,_s3,e2),__privateSet2(this,_o3,t2)}call(e2,t2,...i2){__privateGet2(this,_s3).call(e2,t2,...i2)}mutate(e2){var _a5;const t2=__privateGet2(this,_a4);(_a5=__privateGet2(this,_a4))!=null?_a5:__privateSet2(this,_a4,[]),__privateGet2(this,_a4).push(...e2),t2||__privateGet2(this,_o3).call(this,()=>{this.flush()})}flush(){__privateGet2(this,_a4)&&(__privateGet2(this,_s3).mutate(__privateGet2(this,_a4)),__privateSet2(this,_a4,void 0))}}_s3=new WeakMap;_a4=new WeakMap;_o3=new WeakMap;function jn(){return e2=>{"function"!=typeof queueMicrotask?Promise.resolve().then(e2):queueMicrotask(e2)}}const Bn=class extends Dn{constructor(){super(),Object.entries(this.constructor.propertyDescriptors).forEach(([e2,t2])=>{Object.prototype.hasOwnProperty.call(this.constructor.prototype,e2)||Object.defineProperty(this,e2,{get(){return t2.get.call(this)},set(e3){t2.set.call(this,e3)}})}),this.constructor.listensToBubbledEvents&&(this.onchange=null,this.oninput=null,this.onclick=null,this.onfocusin=null,this.onfocusout=null)}};Bn.propertyDescriptors={};let Fn=Bn;function $n(e2={}){const{defaultValue:t2}=e2,i2=t2!=null?t2:"";return{defaultValue:i2,get:e3=>e3||i2,toAttribute:e3=>e3===i2?null:e3}}function Un(e2,{attribute:t2}){const i2="string"==typeof t2?t2.toLowerCase():t2,n2=(t3,n3)=>{if(!i2)return;const r2=e2.toAttribute?e2.toAttribute(n3):n3;if(null===r2){if(!t3.hasAttribute(i2))return;return void t3.removeAttribute(i2)}const s2=String(r2);t3.getAttribute(i2)!==s2&&t3.setAttribute(i2,s2)};return{get(){let t3,n3;if(i2){const n4=this.getAttribute(i2);null!==n4&&(t3=e2.parseAttribute?e2.parseAttribute(n4):n4)}return n3=e2.get(t3!=null?t3:null,this),n3!=null?n3:n3=e2.defaultValue,n3},set(t3){e2.set?e2.set(t3,e3=>n2(this,e3)):n2(this,String(t3))}}}const Gn={id:Un($n(),{attribute:"id"}),title:Un($n(),{attribute:"title"})},qn=class extends Fn{static get remoteAttributes(){return["id","title"]}};qn.tagName="s-abbreviation",qn.propertyDescriptors=Gn,qn.listensToBubbledEvents=true;let Wn=qn;const Hn=class extends Fn{static get remoteMethods(){return["dismiss"]}static get remoteEvents(){return{aftertoggle:{bubbles:true,dispatchEvent:e2=>new ToggleEvent("aftertoggle",{oldState:e2,newState:"open"===e2?"closed":"open"})},dismiss:{bubbles:true,dispatchEvent:()=>new Event("dismiss",{bubbles:true})},toggle:{bubbles:true,dispatchEvent:e2=>new ToggleEvent("toggle",{oldState:e2,newState:"open"===e2?"closed":"open"})}}}};Hn.tagName="s-announcement";let Yn=Hn;function Xn(e2){return"string"==typeof e2&&e2.startsWith("@container")}function Jn(e2,{defaultValue:t2,separator:i2,canBeResponsive:n2,trimWhitespace:r2=false,mapAliases:s2={}}){const a2=new Set(e2),o2=e3=>!(!n2||!Xn(e3))||i2&&String(e3).split(i2).every(e4=>a2.has(r2?e4.trim():e4))||a2.has(r2?String(e3).trim():e3);return{defaultValue:t2,parseAttribute:e3=>o2(e3)?e3:null,get:e3=>{var _a5;return o2(e3)&&null!=e3?n2&&Xn(e3)?e3:i2&&s2?e3.split(i2).map(e4=>{var _a6;return(_a6=s2[e4])!=null?_a6:e4}).join(i2):(_a5=s2[e3])!=null?_a5:e3:t2}}}const Zn=["alert-circle","alert-triangle-filled","alert-triangle","arrow-down","arrow-left","arrow-right","arrow-up-right","arrow-up","bag","bullet","calendar","camera","caret-down","cart","cash-dollar","categories","check-circle","check-circle-filled","check","chevron-down","chevron-left","chevron-right","chevron-up","circle","clipboard","clock","credit-card","delete","delivered","delivery","disabled","discount","edit","email","empty","external","filter","geolocation","gift","gift-card","globe","grid","image","info-filled","info","list-bulleted","location","lock","map","menu-horizontal","menu-vertical","menu","minus","mobile","note","order","organization","plus","profile","question-circle-filled","question-circle","reorder","reset","return","savings","search","settings","star-filled","star-half","star","store","truck","upload","x-circle-filled","x-circle","x"],Kn=Zn,Qn={id:Un($n(),{attribute:"id"}),size:Un(Jn(["small-200","small-100","small","base","large","large-100"],{defaultValue:"base",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"size"}
1),tone:Un(Jn(["auto","neutral","custom","info","success","warning","critical"],{defaultValue:"auto"}),{attribute:"tone"}),type:Un(Jn([...Zn,""],{defaultValue:""}),{attribute:"type"})},er={color:Un(Jn(["base","subdued"],{defaultValue:"base"}),{attribute:"color"}),icon:Un(Jn([...Kn,""],{defaultValue:""}),{attribute:"icon"}),iconPosition:Un(Jn(["start","end"],{defaultValue:"start"}),{attribute:"iconposition"}),id:Un($n(),{attribute:"id"}),size:Un(Jn(["small","small-100","base"],{defaultValue:"base",mapAliases:{small:"small-100"}}),{attribute:"size"}),tone:Un(Jn(["auto","neutral","critical"],{defaultValue:"auto"}),{attribute:"tone"})},tr=class extends Fn{static get remoteAttributes(){return["color","icon","iconposition","id","size","tone"]}};tr.tagName="s-badge",tr.propertyDescriptors=er;let ir=tr;function nr(){return{defaultValue:false,parseAttribute:e2=>"string"==typeof e2,set(e2,t2){t2(e2?String(e2):"")},get:e2=>!!e2&&("string"==typeof e2||e2),toAttribute:e2=>e2?"":null}}const rr={collapsible:Un(nr(),{attribute:"collapsible"}),dismissible:Un(nr(),{attribute:"dismissible"}),heading:Un($n(),{attribute:"heading"}),hidden:Un(nr(),{attribute:"hidden"}),id:Un($n(),{attribute:"id"}),tone:Un(Jn(["auto","info","success","warning","critical"],{defaultValue:"auto"}),{attribute:"tone"})},sr=class extends Fn{static get remoteAttributes(){return["collapsible","dismissible","heading","hidden","id","tone"]}static get remoteEvents(){return{afterhide:{bubbles:true,dispatchEvent(){return this.hidden=true,new Event("afterhide")}},dismiss:{dispatchEvent:()=>new Event("dismiss")}}}};sr.tagName="s-banner",sr.propertyDescriptors=rr,sr.listensToBubbledEvents=true;let ar=sr;const or=String.raw(_a||(_a=__template(["[+-]?(?:d+(?:.d+)?|.d+)(?:e[+-]?d+)?"],["[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:e[+-]?\\d+)?"]))),lr=new RegExp("^(".concat(or,")(?:px|%)$"),"i");function cr({defaultValue:e2,type:t2}){return{defaultValue:e2,get:i2=>ur(i2,t2)?i2:e2}}function ur(e2,t2){if("string"!=typeof e2)return false;if("0"===e2)return true;if("auto"===t2&&"auto"===e2)return true;if("none"===t2&&"none"===e2)return true;const i2=lr.exec(e2);return null!==i2&&Number.isFinite(Number(i2[1]))}function dr(){return{defaultValue:"auto",get:e2=>(function(e3){if("string"!=typeof e3)return false;if("auto"===e3)return true;const t2=e3.split(" ");if(2!==t2.length)return false;const[i2,n2]=t2;return"auto"===i2?ur(n2,"size"):"auto"===n2&&ur(i2,"size")})(e2)?e2:"auto"}}function br(e2,t2){var _a5;const i2=new Set,n2=Object.keys(e2);for(const r2 of t2){let t3=[r2];for(const i3 of n2){const n3=(_a5=e2[i3])!=null?_a5:[],r3=[];for(;t3.length>0;){const e3=t3.shift();for(const t4 of n3){const n4=e3.replace(new RegExp("{".concat(i3,"}"),"g"),t4);r3.push(n4)}}t3=r3}t3.forEach(e3=>i2.add(e3))}return Array.from(i2)}const hr=["none","solid","dashed","dotted","auto",""],pr=["base","large","large-100","large-200","none",""],fr=br({Size:pr,Style:hr,Color:["base"]},["none","{Size}","{Size} {Color}","{Size} {Color} {Style}"]),mr=["base","small-500","small-400","small-300","small-200","small-100","small","large","large-100","large-200","large-300","large-400","large-500","none"],gr={background:Un(Jn(["transparent","subdued","base"],{defaultValue:"transparent"}),{attribute:"background"})},vr={border:Un(Jn(fr,{defaultValue:"none",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"border"}),borderRadius:Un(Jn(["small-100","small","base","large","large-100","max","none"],{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"borderradius"}),borderStyle:Un(Jn(hr,{defaultValue:"",separator:" "}),{attribute:"borderstyle"}),borderWidth:Un(Jn(pr,{defaultValue:"",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"borderwidth"})},yr={display:Un(Jn(["none","auto"],{defaultValue:"auto",canBeResponsive:true}),{attribute:"display"})},Er={blockSize:Un(cr({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),inlineSize:Un(cr({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),maxBlockSize:Un(cr({defaultValue:"none",type:"none"}),{attribute:"maxblocksize"}),maxInlineSize:Un(cr({defaultValue:"none",type:"none"}),{attribute:"maxinlinesize"}),minBlockSize:Un(cr({defaultValue:"0",type:"size"}),{attribute:"minblocksize"}),minInlineSize:Un(cr({defaultValue:"0",type:"size"}),{attribute:"mininlinesize"})},wr={overflow:Un(Jn(["visible","hidden"],{defaultValue:"visible"}),{attribute:"overflow"})},_r={padding:Un(Jn(mr,{defaultValue:"none",separator:" ",canBeResponsive:true}),{attribute:"padding"}),paddingBlock:Un(Jn([...mr,""],{defaultValue:"",separator:" ",canBeResponsive:true}),{attribute:"paddingblock"}),paddingBlockEnd:Un(Jn([...mr,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddingblockend"}),paddingBlockStart:Un(Jn([...mr,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddingblockstart"}),paddingInline:Un(Jn([...mr,""],{defaultValue:"",separator:" ",canBeResponsive:true}),{attribute:"paddinginline"}),paddingInlineEnd:Un(Jn([...mr,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddinginlineend"}),paddingInlineStart:Un(Jn([...mr,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddinginlinestart"})},Sr=__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({},gr),vr),yr),wr),_r),Er),{accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),accessibilityRole:Un(Jn(["main","header","footer","section","aside","navigation","ordered-list","list-item","list-item-separator","unordered-list","separator","status","alert","generic","presentation","none"],{defaultValue:"generic"}),{attribute:"accessibilityrole"}),accessibilityVisibility:Un(Jn(["visible","hidden","exclusive"],{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),id:Un($n(),{attribute:"id"})}
1),kr={insetBlock:Un(dr(),{attribute:"insetblock"}),insetInline:Un(dr(),{attribute:"insetinline"}),position:Un(Jn(["absolute","relative"],{defaultValue:"relative"}),{attribute:"position"}),transform:Un({defaultValue:"none",get:e2=>(function(e3){if("string"!=typeof e3)return false;if("none"===e3)return true;if(!e3.startsWith("translate(")||!e3.endsWith(")"))return false;const t2=e3.slice(10,-1).split(",");return!(t2.length>2)&&t2.every(e4=>ur(e4.trim(),"size"))})(e2)?e2:"none"},{attribute:"transform"})},xr=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","accessibilityrole","accessibilityvisibility","background","blocksize","border","borderradius","borderstyle","borderwidth","display","id","inlinesize","insetblock","insetinline","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart","position","transform"]}};xr.tagName="s-box",xr.propertyDescriptors=__spreadValues(__spreadValues({},Sr),kr),xr.listensToBubbledEvents=true;let Ar=xr;const Nr={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),command:Un(Jn(["--auto","--toggle","--copy","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Un($n(),{attribute:"commandfor"}),disabled:Un(nr(),{attribute:"disabled"}),href:Un($n(),{attribute:"href"}),id:Un($n(),{attribute:"id"}),inlineSize:Un(Jn(["auto","fill","fit-content"],{defaultValue:"auto"}),{attribute:"inlinesize"}),interestFor:Un($n(),{attribute:"interestfor"}),loading:Un(nr(),{attribute:"loading"}),target:Un(Jn(["auto","_blank"],{defaultValue:"auto"}),{attribute:"target"}),tone:Un(Jn(["auto","neutral","critical"],{defaultValue:"auto"}),{attribute:"tone"}),type:Un(Jn(["button","submit"],{defaultValue:"button"}),{attribute:"type"}),variant:Un(Jn(["auto","primary","secondary"],{defaultValue:"auto"}),{attribute:"variant"})},Tr=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","command","commandfor","interestfor","disabled","href","id","inlinesize","loading","target","tone","type","variant"]}static get remoteEvents(){return{click:{bubbles:true,dispatchEvent:()=>new Event("click",{bubbles:true})}}}};Tr.tagName="s-button",Tr.propertyDescriptors=Nr;let Cr=Tr;const Dr={id:Un($n(),{attribute:"id"}),accessibilityLabel:Un($n(),{attribute:"accessibility-label"}),inlineSize:Un(cr({defaultValue:"0",type:"size"}),{attribute:"inline-size"}),blockSize:Un(cr({defaultValue:"0",type:"size"}),{attribute:"block-size"})},Or=class extends Fn{static get remoteAttributes(){return["id","accessibility-label","inline-size","block-size"]}static get remoteEvents(){return{ready:{bubbles:true,dispatchEvent:()=>new Event("ready",{bubbles:true})}}}get contentWindow(){return{postMessage:e2=>{this.callRemoteMethod("relayMessage",e2)}}}};Or.tagName="s-chat",Or.propertyDescriptors=Dr;let Vr=Or;const Mr={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),command:Un(Jn(["--auto","--toggle","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Un($n(),{attribute:"commandfor"}),defaultChecked:Un(nr(),{attribute:"checked"}),disabled:Un(nr(),{attribute:"disabled"}),error:Un($n(),{attribute:"error"}),id:Un($n(),{attribute:"id"}),label:Un($n(),{attribute:"label"}),name:Un($n(),{attribute:"name"}),required:Un(nr(),{attribute:"required"}),value:Un($n(),{attribute:"value"})},Rr=class extends Fn{constructor(){super(...arguments),__privateAdd(this,e)}static get remoteAttributes(){return["accessibilitylabel","checked","command","commandfor","disabled","error","id","label","name","required","value"]}static get remoteEvents(){return{change:{bubbles:true,dispatchEvent(t2){return __privateSet(this,e,Boolean(t2)),new Event("change",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get checked(){var _a5;return(_a5=__privateGet(this,e))!=null?_a5:this.defaultChecked}set checked(t2){__privateSet(this,e,Boolean(t2)),this.__sync()}__sync(){this.updateRemoteProperty("checked",[__privateGet(this,e)])}};e=new WeakMap,Rr.tagName="s-checkbox",Rr.propertyDescriptors=Mr;let Pr=Rr;const zr={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),id:Un($n(),{attribute:"id"})},Ir=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","id"]}static get remoteEvents(){return{click:{bubbles:true,dispatchEvent:()=>new Event("click",{bubbles:true})}}}};Ir.tagName="s-chip",Ir.propertyDescriptors=zr;let Lr=Ir;const jr={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),disabled:Un(nr(),{attribute:"disabled"}),id:Un($n(),{attribute:"id"}),label:Un($n(),{attribute:"label"}),value:Un($n(),{attribute:"value"}),defaultSelected:Un(nr(),{attribute:"selected"})},Br=class extends Fn{constructor(){super(...arguments),__privateAdd(this,t),this.__list=void 0,__privateSet(this,t,false)}static get observedAttributes(){return["accessibilitylabel","disabled","id","label","selected","value"]}attributeChangedCallback(e2,i2,n2){var _a5;if("selected"===e2){const e3="string"==typeof n2;this.__list?e3?this.__list.__addValue(this.value):this.__list.__removeValue(this.value):__privateSet(this,t,e3)}
1else"value"===e2&&((_a5=this.__list)==null?void 0:_a5.__updateValue(i2,n2)),this.updateRemoteAttribute(e2,n2)}get selected(){return this.__list?this.__list.values.includes(this.value):__privateGet(this,t)}set selected(e2){var _a5;e2?this.__list?this.__list.__addValue(this.value):__privateSet(this,t,true):((_a5=this.__list)==null?void 0:_a5.__removeValue(this.value),__privateSet(this,t,false))}get value(){var _a5;return(_a5=this.getAttribute("value"))!=null?_a5:"on"}set value(e2){this.setAttribute("value",String(e2))}};t=new WeakMap,Br.tagName="s-choice",Br.propertyDescriptors=jr;let Fr=Br;const $r={disabled:Un(nr(),{attribute:"disabled"}),error:Un($n(),{attribute:"error"}),id:Un($n(),{attribute:"id"}),label:Un($n(),{attribute:"label"}),labelAccessibilityVisibility:Un(Jn(["visible","exclusive"],{defaultValue:"visible"}),{attribute:"labelaccessibilityvisibility"}),multiple:Un(nr(),{attribute:"multiple"}),name:Un($n(),{attribute:"name"}),variant:Un(Jn(["list","block","inline","grid","auto"],{defaultValue:"list"}),{attribute:"variant"})},Ur=class extends Fn{constructor(){super(...arguments),__privateAdd(this,n),__privateAdd(this,i)}static get remoteAttributes(){return["disabled","error","id","label","labelaccessibilityvisibility","multiple","name","variant"]}static get remoteEvents(){return{input:{bubbles:true},change:{bubbles:true,dispatchEvent(e2){return __privateSet(this,i,e2),this.dispatchEvent(new Event("input",{bubbles:true})),new Event("change",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}appendChild(e2){const t2=__privateMethod(this,n,l).call(this,__privateMethod(this,n,s).call(this,e2)),i2=super.appendChild(e2);return __privateMethod(this,n,c).call(this,t2),i2}insertBefore(e2,t2){const i2=__privateMethod(this,n,l).call(this,__privateMethod(this,n,s).call(this,e2)),r2=super.insertBefore(e2,t2);return __privateMethod(this,n,c).call(this,i2),r2}replaceChild(e2,t2){if(!(e2 instanceof Fr&&t2 instanceof Fr))return t2;const i2=e2.value===t2.value?[e2]:__privateMethod(this,n,l).call(this,[e2]);if(!i2.length)return t2;__privateMethod(this,n,a).call(this,t2);const r2=super.replaceChild(e2,t2);return __privateMethod(this,n,o).call(this,t2),__privateMethod(this,n,c).call(this,i2),r2}removeChild(e2){e2 instanceof Fr&&__privateMethod(this,n,a).call(this,e2);const t2=super.removeChild(e2);return e2 instanceof Fr&&__privateMethod(this,n,o).call(this,e2),t2}__addValue(e2){this.multiple?this.values=[...this.values,e2]:this.values=[e2]}__removeValue(e2){this.values=this.values.filter(t2=>t2!==e2)}__updateValue(e2,t2){this.values.includes(e2)&&(this.multiple?this.values=[...this.values.filter(t3=>t3!==e2),t2]:this.values=[t2])}get values(){var _a5;return(_a5=__privateGet(this,i))!=null?_a5:[]}set values(e2){const t2=[];e2.length&&__privateGet(this,n,u).forEach(i2=>{e2.includes(i2.value)&&t2.push(i2.value)}),__privateMethod(this,n,r).call(this,t2)}__sync(){this.updateRemoteProperty("values",[this.values])}};i=new WeakMap,n=new WeakSet,r=function(e2){__privateSet(this,i,e2),this.__sync()},s=function(e2,t2=[]){return e2 instanceof DocumentFragment?e2.childNodes.forEach(e3=>{__privateMethod(this,n,s).call(this,e3,t2)}):e2 instanceof Fr?t2.push(e2):e2 instanceof Element&&console.warn("`s-choice-list` must only contain `s-choice` elements"),t2},a=function(e2){const t2=e2.selected;e2.__list=void 0,e2.selected=t2},o=function(e2){this.__removeValue(e2.value)},l=function(e2){const t2=new Set;return e2.filter(e3=>t2.has(e3.value)||__privateMethod(this,n,d).call(this,e3.value)?(console.warn('s-choice-list already has an s-choice with value "'.concat(e3.value,'". The new s-choice will be ignored.')),false):(t2.add(e3.value),true))},c=function(e2){for(const t2 of e2)t2.selected&&this.__addValue(t2.value),t2.__list=this},u=function(){return Array.from(this.querySelectorAll("s-choice"))},d=function(e2){return __privateGet(this,n,u).find(t2=>t2.value===e2)},Ur.tagName="s-choice-list",Ur.propertyDescriptors=$r,Object.entries($r).forEach(([e2,t2])=>{Object.defineProperty(Ur.prototype,e2,{get(){return t2.get.call(this)},set(e3){t2.set.call(this,e3)}})});let Gr=Ur;const qr=["none","solid","dashed","dotted","auto",""],Wr=["base","large","large-100","large-200","none",""],Hr=br({Size:Wr,Style:qr,Color:["base"]},["none","{Size}","{Size} {Color}","{Size} {Color} {Style}"]),Yr=__spreadProps(__spreadValues({},_r),{accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),accessibilityVisibility:Un(Jn(["visible","hidden","exclusive"],{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),background:Un(Jn(["transparent","subdued","base"],{defaultValue:"transparent"}),{attribute:"background"}),blockSize:Un(cr({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),border:Un(Jn(Hr,{defaultValue:"none",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"border"}),borderColor:Un($n(),{attribute:"bordercolor"}),borderRadius:Un(Jn(["small-100","small","base","large","large-100","max","none"],{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"}}
1),{attribute:"borderradius"}),borderStyle:Un(Jn(qr,{defaultValue:"",separator:" "}),{attribute:"borderstyle"}),borderWidth:Un(Jn(Wr,{defaultValue:"",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"borderwidth"}),command:Un(Jn(["--auto","--toggle","--copy","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Un($n(),{attribute:"commandfor"}),disabled:Un(nr(),{attribute:"disabled"}),display:Un(Jn(["none","auto"],{defaultValue:"auto"}),{attribute:"display"}),href:Un($n(),{attribute:"href"}),id:Un($n(),{attribute:"id"}),interestFor:Un($n(),{attribute:"interestfor"}),inlineSize:Un(cr({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),lang:Un($n(),{attribute:"lang"}),loading:Un(nr(),{attribute:"loading"}),maxBlockSize:Un(cr({defaultValue:"none",type:"none"}),{attribute:"maxblocksize"}),maxInlineSize:Un(cr({defaultValue:"none",type:"none"}),{attribute:"maxinlinesize"}),minBlockSize:Un(cr({defaultValue:"0",type:"size"}),{attribute:"minblocksize"}),minInlineSize:Un(cr({defaultValue:"0",type:"size"}),{attribute:"mininlinesize"}),overflow:Un(Jn(["visible","hidden"],{defaultValue:"visible"}),{attribute:"overflow"}),target:Un(Jn(["auto","_blank"],{defaultValue:"auto"}),{attribute:"target"}),type:Un(Jn(["button","submit"],{defaultValue:"button"}),{attribute:"type"})}),Xr=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","accessibilityvisibility","background","blocksize","border","borderradiu
1s","borderstyle","borderwidth","command","commandfor","interestfor","disabled","display","href","id","inlinesize","lang","loading","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart","target","type"]}static get remoteEvents(){return{blur:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusout",{bubbles:true})),new FocusEvent("blur")}},click:{bubbles:true,dispatchEvent:()=>new Event("click",{bubbles:true})},focus:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),new FocusEvent("focus")}}}}};Xr.tagName="s-clickable",Xr.propertyDescriptors=Yr;let Jr=Xr;const Zr={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),disabled:Un(nr(),{attribute:"disabled"}),hidden:Un(nr(),{attribute:"hidden"}),href:Un($n(),{attribute:"href"}),id:Un($n(),{attribute:"id"}),removable:Un(nr(),{attribute:"removable"})},Kr=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","disabled","hidden","href","id","removable"]}static get remoteEvents(){return{afterhide:{bubbles:true,dispatchEvent:()=>new Event("afterhide",{bubbles:true})},click:{bubbles:true,dispatchEvent:()=>new Event("click",{bubbles:true})},remove:{bubbles:true,dispatchEvent:()=>new Event("remove",{bubbles:true})}}}};Kr.tagName="s-clickable-chip",Kr.propertyDescriptors=Zr;let Qr=Kr;const es=__spreadProps(__spreadValues({},Mr),{policy:Un($n(),{attribute:"policy"})}),ts=class extends Fn{constructor(){super(),__privateAdd(this,b),__privateAdd(this,h),__privateSet(this,h,true),setTimeout(()=>{__privateSet(this,h,false)},0)}static get remoteAttributes(){return["accessibilitylabel","command","commandfor","disabled","error","id","label","name","value","policy","checked"]}static get remoteEvents(){return{change:{bubbles:true,dispatchEvent(e2){return __privateSet(this,b,Boolean(e2)),new Event("change",{bubbles:true})}}}}setAttribute(e2,t2){if("checked"!==e2||__privateGet(this,h))return super.setAttribute(e2,t2);console.warn("ConsentCheckbox: checked cannot be set after first tick")}removeAttribute(e2){if("checked"!==e2||__privateGet(this,h))return super.removeAttribute(e2);console.warn("ConsentCheckbox: checked cannot be set after first tick")}get checked(){var _a5,_b3;return(_b3=__privateGet(this,b))!=null?_b3:((_a5=self.initialValues)==null?void 0:_a5.acceptSmsMarketing)||this.defaultChecked}set checked(e2){console.warn("ConsentCheckbox: checked cannot be set programmatically")}};b=new WeakMap,h=new WeakMap,ts.tagName="s-consent-checkbox",ts.propertyDescriptors=es;let is=ts;function ns({defaultValue:e2="on"}={}){return{defaultValue:e2,get:t2=>(function(e3){if("undefined"==typeof window||!window.document)return e3;rs||(rs=window.document.createElement("input")),rs.autocomplete=String(e3);const t3=rs.autocomplete;return rs.autocomplete="",t3})(t2!=null?t2:e2)}}let rs=null;function ss({min:e2=-1/0,max:t2=1/0,floor:i2=false,defaultValue:n2=0}={}){return{defaultValue:n2,get(r2){const s2=Number(r2);return null===r2||Number.isNaN(s2)?n2:(n3=>(i2&&(n3=Math.floor(n3)),n3<e2?e2:n3>t2?t2:n3))(s2)}}}const as={defaultValue:Un($n(),{attribute:"value"}),disabled:Un(nr(),{attribute:"disabled"}),error:Un($n(),{attribute:"error"}),id:Un($n(),{attribute:"id"}),label:Un($n(),{attribute:"label"}),labelAccessibilityVisibility:Un(Jn(["visible","exclusive"],{defaultValue:"visible"}),{attribute:"labelaccessibilityvisibility"}),name:Un($n(),{attribute:"name"}),placeholder:Un($n(),{attribute:"placeholder"}),readOnly:Un(nr(),{attribute:"readonly"}),required:Un(nr(),{attribute:"required"})},os=__spreadProps(__spreadValues({},as),{autocomplete:Un(ns({defaultValue:"on"}),{attribute:"autocomplete"}),icon:Un(Jn([...Kn,""],{defaultValue:""}),{attribute:"icon"}),maxLength:Un(ss({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:Un(ss({defaultValue:0,min:0,floor:true}),{attribute:"minlength"}),prefix:Un($n(),{attribute:"prefix"}),suffix:Un($n(),{attribute:"suffix"})}),ls=class extends Fn{constructor(){super(...arguments),__privateAdd(this,p)}static get remoteAttributes(){return["autocomplete","disabled","error","icon","id","label","labelaccessibilityvisibility","maxlength","minlength","name","placeholder","prefix","readonly","required","suffix","value"]}static get remoteEvents(){return{blur:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusout",{bubbles:true})),new FocusEvent("blur")}},change:{bubbles:true,dispatchEvent(e2){return __privateSet(this,p,String(e2)),new Event("change",{bubbles:true})}},focus:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),new FocusEvent("focus")}},input:{bubbles:true,dispatchEvent(e2){return __privateSet(this,p,String(e2)),new Event("input",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get value(){var _a5;return(_a5=__privateGet(this,p))!=null?_a5:this.defaultValue}set value(e2){__privateSet(this,p,null===e2?"":String(e2)),this.__sync()}__sync(){this.updateRemoteProperty("value",[this.value])}};p=new WeakMap,ls.tagName="s-text-field",ls.propertyDescriptors=os;let cs=ls;const us=__spreadProps(__spreadValues({},as),{autocomplete:Un(ns({defaultValue:"on"}),{attribute:"autocomplete"}),type:Un(Jn(["mobile",""],{defaultValue:""}),{attribute:"type"})}),ds=class extends cs{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","name","placeholder","readonly","required","type","value"]}};ds.tagName="s-phone-field",ds.propertyDescriptors=us;let bs=ds;const hs=__spreadProps(__spreadValues({},us),{policy:Un($n(),{attribute:"policy"})}),ps=class extends bs{static get remoteAttributes(){return[...super.remoteAttributes,"policy"]}constructor(){var _a5,_b3;super(),super.value=(_b3=(_a5=self.initialValues)==null?void 0:_a5.smsMarketingPhone)!=null?_b3:""}get value(){var _a5;return(_a5=super.value)!=null?_a5:""}set value(e2){console.warn("ConsentPhoneField: value cannot be set programmatically")}get defaultValue(){return""}set defaultValue(e2){console.warn("ConsentPhoneField: defaultValue cannot be set programmatically")}setAttribute(e2,t2){if("value"!==e2)return super.setAttribute(e2,t2);console.warn("ConsentPhoneField: ".concat(e2," cannot be set programmatically"))}};ps.tagName="s-consent-phone-field",ps.propertyDescriptors=hs;let fs=ps;const ms={id:Un($n(),{attribute:"id"}),text:Un($n(),{attribute:"text"})},gs=class extends Fn{static get remoteAttributes(){return["id","text"]}static get remoteEvents(){return{copy:{bubbles:true,dispatchEvent:()=>new ClipboardEvent("copy",{bubbles:true})},copyerror:{dispatchEvent:()=>new Event("copyerror")}}}};gs.tagName="s-clipboard-item",gs.propertyDescriptors=ms;let vs=gs;const ys=__spreadProps(__spreadValues({},as),{autocomplete:Un(ns({defaultValue:"on"}),{attribute:"autocomplete"}),allow:Un($n(),{attribute:"allow"}),disallow:Un($n(),{attribute:"disallow"}),allowDays:Un($n(),{attribute:"allowdays"}),disallowDays:Un($n(),{attribute:"disallowdays"}),defaultView:Un($n(),{attribute:"view"})}),Es=class extends cs{constructor(){super(...arguments),__privateAdd(this,f)}static get remoteAttributes(){return["allow","allowdays","autocomplete","disabled","disallow","disallowdays","error","id","label","name","placeholder","readonly","required","value","view"]}static get remoteEvents(){return __spreadProps(__spreadValues({},super.remoteEvents),{viewchange:{bubbles:true,dispatchEvent(e2){return __privateSet(this,f,String(e2)),new Event("viewchange",{bubbles:true})}},invalid:{bubbles:true,dispatchEvent:()=>new Event("invalid",{bubbles:true})}})}get view(){var _a5;return(_a5=__privateGet(this,f))!=null?_a5:this.defaultView}set view(e2){__privateSet(this,f,String(e2)),this.__sync()}__sync(){super.__sync(),this.updateRemoteProperty("view",[__privateGet(this,f)
1])}};f=new WeakMap,Es.tagName="s-date-field",Es.propertyDescriptors=ys;let ws=Es;const _s={allow:Un($n(),{attribute:"allow"}),allowDays:Un($n(),{attribute:"allowdays"}),defaultValue:Un($n(),{attribute:"value"}),defaultView:Un($n(),{attribute:"view"}),disabled:Un(nr(),{attribute:"disabled"}),disallow:Un($n(),{attribute:"disallow"}),disallowDays:Un($n(),{attribute:"disallowdays"}),id:Un($n(),{attribute:"id"}),name:Un($n(),{attribute:"name"}),type:Un(Jn(["single","multiple","range"],{defaultValue:"single"}),{attribute:"type"})},Ss=class extends Fn{constructor(){super(...arguments),__privateAdd(this,m),__privateAdd(this,g)}static get remoteAttributes(){return["allow","allowdays","disabled","disallow","disallowdays","id","name","type","view","value"]}static get remoteEvents(){return{blur:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusout",{bubbles:true})),new FocusEvent("blur")}},change:{bubbles:true,dispatchEvent:()=>new Event("change",{bubbles:true})},focus:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),new FocusEvent("focus")}},input:{bubbles:true,dispatchEvent(e2){return __privateSet(this,m,String(e2)),new Event("input",{bubbles:true})}},viewchange:{bubbles:true,dispatchEvent(e2){return __privateSet(this,g,String(e2)),new Event("viewchange",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get value(){var _a5;return(_a5=__privateGet(this,m))!=null?_a5:this.defaultValue}set value(e2){__privateSet(this,m,null===e2?"":String(e2)),this.__syncValue()}get view(){var _a5;return(_a5=__privateGet(this,g))!=null?_a5:this.defaultView}set view(e2){__privateSet(this,g,String(e2)),this.__syncView()}__syncValue(){this.updateRemoteProperty("value",[__privateGet(this,m)])}__syncView(){this.updateRemoteProperty("view",[__privateGet(this,g)])}__sync(){this.__syncValue(),this.__syncView()}};
1m=new WeakMap,g=new WeakMap,Ss.tagName="s-date-picker",Ss.propertyDescriptors=_s;let ks=Ss;const xs={id:Un($n(),{attribute:"id"}),name:Un($n(),{attribute:"name"}),defaultOpen:Un(nr(),{attribute:"open"}),toggleTransition:Un(Jn(["auto","none"],{defaultValue:"auto"}),{attribute:"toggleTransition"})},As=class extends Fn{constructor(){super(...arguments),__privateAdd(this,v)}static get remoteAttributes(){return["id","name","open","toggletransition"]}static get remoteEvents(){return{aftertoggle:{bubbles:true,dispatchEvent:e2=>new ToggleEvent("aftertoggle",{oldState:e2,newState:"open"===e2?"closed":"open"})},toggle:{bubbles:true,dispatchEvent(e2){return __privateSet(this,v,"closed"===e2),new ToggleEvent("toggle",{oldState:e2,newState:"open"===e2?"closed":"open"})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get open(){var _a5;return(_a5=__privateGet(this,v))!=null?_a5:this.defaultOpen}set open(e2){__privateSet(this,v,Boolean(e2)),this.__sync()}__sync(){this.updateRemoteProperty("open",[__privateGet(this,v)])}};v=new WeakMap,As.tagName="s-details",As.propertyDescriptors=xs,As.listensToBubbledEvents=true;let Ns=As;const Ts={id:Un($n(),{attribute:"id"}),direction:Un(Jn(["inline","block"],{defaultValue:"inline"}),{attribute:"direction"})},Cs=class extends Fn{static get remoteAttributes(){return["id","direction"]}};Cs.tagName="s-divider",Cs.propertyDescriptors=Ts;let Ds=Cs;const Os={accept:Un($n(),{attribute:"accept"}),accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),disabled:Un(nr(),{attribute:"disabled"}),error:Un($n(),{attribute:"error"}),id:Un($n(),{attribute:"id"}),label:Un($n(),{attribute:"label"}),multiple:Un(nr(),{attribute:"multiple"}),name:Un($n(),{attribute:"name"}),required:Un(nr(),{attribute:"required"})},Vs=class extends Fn{constructor(){super(...arguments),__privateAdd(this,w),__privateAdd(this,y),__privateAdd(this,E)}static get remoteAttributes(){return["accept","accessibilitylabel","disabled","error","id","label","multiple","name","required"]}static get remoteEvents(){return{droprejected:{dispatchEvent:()=>new Event("droprejected")},input:{bubbles:true,dispatchEvent(e2){return __privateMethod(this,w,_).call(this,e2),new Event("input",{bubbles:true})}},change:{bubbles:true,dispatchEvent:()=>new Event("change",{bubbles:true})},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get files(){var _a5;return(_a5=__privateGet(this,E))!=null?_a5:[]}set files(e2){console.warn("`s-drop-zone`: cannot set `files` directly.")}get value(){var _a5;return(_a5=__privateGet(this,y))!=null?_a5:""}set value(e2){""===e2||null===e2?__privateMethod(this,w,_).call(this,[]):console.warn("`s-drop-zone`: `value` can only be set to an empty string or null.")}__sync(){this.updateRemoteProperty("value",__privateGet(this,y))}};y=new WeakMap,E=new WeakMap,w=new WeakSet,_=function(e2){var _a5;e2.some(e3=>!(e3 instanceof File))||(__privateSet(this,E,e2),__privateSet(this,y,e2.length?"C:\\fakepath\\".concat((_a5=e2[0])==null?void 0:_a5.name):""),this.__sync())},Vs.tagName="s-drop-zone",Vs.propertyDescriptors=Os;let Ms=Vs;const Rs=__spreadProps(__spreadValues({},as),{autocomplete:Un(ns({defaultValue:"email"}),{attribute:"autocomplete"}),maxLength:Un(ss({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:Un(ss({defaultValue:0,min:0,floor:true}),{attribute:"minlength"})}),Ps=class extends cs{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","placeholder","readonly","required","value"]}};Ps.tagName="s-email-field",Ps.propertyDescriptors=Rs;let zs=Ps;class Is extends Event{constructor(e2,t2){super(e2,{bubbles:t2==null?void 0:t2.bubbles})}}
1class Ls extends Event{constructor(e2){super("viewchange",{bubbles:e2.bubbles}),this.location=e2.location,this.zoom=e2.zoom}}class js extends Event{constructor(e2){super("boundschange",{bubbles:e2.bubbles}),this.bounds=e2.bounds}}class Bs extends Event{constructor(e2){super("click",{bubbles:e2.bubbles}),this.location=e2.location}}class Fs extends Event{constructor(e2){super("dblclick",{bubbles:e2.bubbles}),this.location=e2.location}}const $s={disabled:Un(nr(),{attribute:"disabled"}),id:Un($n(),{attribute:"id"})},Us=class extends Fn{static get remoteAttributes(){return["disabled","id"]}static get remoteEvents(){return{submit:{bubbles:true,dispatchEvent:()=>new Is("submit",{bubbles:true})}}}};Us.tagName="s-form",Us.propertyDescriptors=$s,Us.listensToBubbledEvents=true;let Gs=Us;const qs=["","normal","space-between","space-around","space-evenly","stretch","center","start","end"],Ws=["","normal","stretch","center","start","end"],Hs=["","normal","space-between","space-around","space-evenly","stretch","center","start","end"],Ys=["","normal","stretch","center","start","end"],Xs=br({AlignContent:qs,JustifyContent:Hs},["{AlignContent}","{AlignContent} {JustifyContent}"]),Js=br({AlignItems:Ws,JustifyItems:Ys},["{AlignItems}","{AlignItems} {JustifyItems}"]),Zs=__spreadProps(__spreadValues({},Sr),{alignContent:Un(Jn(qs,{defaultValue:"",canBeResponsive:true}),{attribute:"aligncontent"}),alignItems:Un(Jn(Ws,{defaultValue:"",canBeResponsive:true}),{attribute:"alignitems"}),columnGap:Un(Jn(["","small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],{defaultValue:"",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"columngap"}),gap:Un(Jn(["small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"gap"}),gridTemplateColumns:Un($n({defaultValue:"none"}),{attribute:"gridtemplatecolumns"}),gridTemplateRows:Un($n({defaultValue:"none"}),{attribute:"gridtemplaterows"}),justifyContent:Un(Jn(Hs,{defaultValue:"",canBeResponsive:true}),{attribute:"justifycontent"}),justifyItems:Un(Jn(Ys,{defaultValue:"",canBeResponsive:true}),{attribute:"justifyitems"}),placeContent:Un(Jn(Xs,{defaultValue:"normal normal",separator:" ",canBeResponsive:true}),{attribute:"placecontent"}),placeItems:Un(Jn(Js,{defaultValue:"normal normal",separator:" ",canBeResponsive:true}),{attribute:"placeitems"}),rowGap:Un(Jn(["","small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],{defaultValue:"",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"rowgap"})}),Ks=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","accessibilityrole","accessibilityvisibility","aligncontent","alignitems","background","blocksize","border","borderradiu
1s","borderstyle","borderwidth","columngap","display","gap","gridtemplatecolumns","gridtemplaterows","id","inlinesize","justifycontent","justifyitems","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart","placecontent","placeitems","rowgap"]}};Ks.tagName="s-grid",Ks.propertyDescriptors=Zs,Ks.listensToBubbledEvents=true;let Qs=Ks;function ea(){const e2="auto";return{defaultValue:e2,get(t2){if(!t2||"string"!=typeof t2||t2===e2)return e2;const i2=t2.trim().split(/\s+/),[n2,r2]=i2,s2=r2?parseInt(r2,10):NaN;return i2.length>2||"span"!==n2||isNaN(s2)||s2<=0||s2===1/0?e2:"span ".concat(s2)}}}const ta=__spreadProps(__spreadValues({},Sr),{gridColumn:Un(ea(),{attribute:"gridcolumn"}),gridRow:Un(ea(),{attribute:"gridrow"})}),ia=class extends Fn{static get remoteAttributes(){return["id","gridcolumn","gridrow","accessibilityvisibility","background","display","blocksize","minblocksize","maxblocksize","inlinesize","mininlinesize","maxinlinesize","padding","paddingblock","paddingblockstart","paddingblockend","paddinginline","paddinginlinestart","paddinginlineend","border","borderwidth","borderstyle","borderradiu
1s","overflow","accessibilitylabel","accessibilityrole"]}};ia.tagName="s-grid-item",ia.propertyDescriptors=ta,ia.listensToBubbledEvents=true;let na=ia;const ra={accessibilityRole:Un(Jn(["heading","presentation","none"],{defaultValue:"heading"}),{attribute:"accessibilityrole"}),id:Un($n(),{attribute:"id"})},sa=class extends Fn{static get remoteAttributes(){return["accessibilityrole","id"]}};sa.tagName="s-heading",sa.propertyDescriptors=ra,sa.listensToBubbledEvents=true;let aa=sa;const oa=class extends Fn{static get remoteAttributes(){return["id","size","tone","type"]}};oa.tagName="s-icon",oa.propertyDescriptors=Qn;let la=oa;const ca="1/1",ua=["none","solid","dashed","dotted","auto"],da=["none","base","large","large-100","large-200"],ba=br({Size:da,Style:ua,Color:["base"]},["none","{Size}","{Size} {Color}","{Size} {Color} {Style}"]),ha={accessibilityRole:Un(Jn(["img","presentation","none"],{defaultValue:"img"}),{attribute:"accessibilityrole"}),alt:Un($n(),{attribute:"alt"}),aspectRatio:Un({defaultValue:ca,get(e2){if(!e2||"string"!=typeof e2)return ca;const t2=e2.split("/");if(t2.length>2)return ca;const i2=t2.map(e3=>Number(e3.trim()||NaN));if(i2.some(e3=>isNaN(e3)||e3<=0||e3===1/0))return ca;if(1===i2.length){const e3=i2[0];return e3?"".concat(e3,"/1"):ca}const[n2,r2]=i2;return n2&&r2?"".concat(n2,"/").concat(r2):ca}},{attribute:"aspectratio"}),border:Un(Jn(ba,{defaultValue:"none",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"border"}),borderRadius:Un(Jn(["small-100","small","base","large","large-100","max","none"],{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"borderradius"}),borderStyle:Un(Jn(ua,{defaultValue:"",separator:" "}),{attribute:"borderstyle"}),borderWidth:Un(Jn(da,{defaultValue:"",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"borderwidth"}),id:Un($n(),{attribute:"id"}),inlineSize:Un(Jn(["auto","fill"],{defaultValue:"fill"}),{attribute:"inlinesize"}),loading:Un(Jn(["eager","lazy"],{defaultValue:"eager"}),{attribute:"loading"}),objectFit:Un(Jn(["contain","cover"],{defaultValue:"contain"}),{attribute:"objectfit"}),sizes:Un($n(),{attribute:"sizes"}),src:Un($n(),{attribute:"src"}),srcSet:Un($n(),{attribute:"srcset"})},pa=class extends Fn{static get remoteAttributes(){return["accessibilityrole","alt","aspectratio","border","borderradiu
1s","borderstyle","borderwidth","id","inlinesize","loading","objectfit","sizes","src","srcset"]}};pa.tagName="s-image",pa.propertyDescriptors=ha;let fa=pa;const ma={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),command:Un(Jn(["--auto","--toggle","--copy","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Un($n(),{attribute:"commandfor"}),href:Un($n(),{attribute:"href"}),id:Un($n(),{attribute:"id"}),interestFor:Un($n(),{attribute:"interestfor"}),lang:Un($n(),{attribute:"lang"}),target:Un(Jn(["auto","_blank"],{defaultValue:"auto"}),{attribute:"target"}),tone:Un(Jn(["auto","neutral"],{defaultValue:"auto"}),{attribute:"tone"})},ga=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","command","commandfor","href","id","interestfor","lang","target","tone"]}static get remoteEvents(){return{click:{bubbles:true,dispatchEvent:()=>new Event("click",{bubbles:true})}}}};ga.tagName="s-link",ga.propertyDescriptors=ma;let va=ga;const ya={id:Un($n(),{attribute:"id"})},Ea=class extends Fn{static get remoteAttributes(){return["id"]}};Ea.tagName="s-list-item",Ea.propertyDescriptors=ya,Ea.listensToBubbledEvents=true;let wa=Ea;const _a2={open:Un(nr(),{attribute:"open"}),doRedirect:Un(nr(),{attribute:"doredirect"}),modalTitle:Un($n(),{attribute:"modaltitle"}),modalDescription:Un($n(),{attribute:"modaldescription"}),modalLogoSrc:Un($n(),{attribute:"modallogosrc"}),modalContinueText:Un($n(),{attribute:"modalcontinuetext"}),modalCancelText:Un($n(),{attribute:"modalcanceltext"})};class Sa extends Event{constructor(e2){super("statuschange"),this.status=e2}}function ka(e2){return null!==e2&&("object"==typeof e2||"function"==typeof e2)&&"then"in e2&&"function"==typeof e2.then}const xa=class extends Fn{constructor(){super(...arguments),this.completeEventListeners=new WeakMap}static get remoteAttributes(){return["open","doredirect","modaltitle","modaldescription","modallogosrc","modalcontinuetext","modalcanceltext"]}static get remoteEvents(){return{closed:{dispatchEvent:()=>new Event("closed")},complete:{dispatchEvent:()=>new Tn("complete")},statuschange:{dispatchEvent:e2=>new Sa(e2)}}}addEventListener(e2,t2,i2){"complete"===e2&&null!==t2?super.addEventListener(e2,this.completeEventListener(t2),i2):super.addEventListener(e2,t2,i2)}removeEventListener(e2,t2,i2){if(null===t2)return;const n2="complete"===e2?this.completeEventListeners.get(t2):void 0;super.removeEventListener(e2,n2!=null?n2:t2,i2)}completeEventListener(e2){let t2=this.completeEventListeners.get(e2);return void 0!==t2||(t2=t3=>{const i2="function"==typeof e2?e2.call(this,t3):e2.handleEvent(t3);t3 instanceof Tn&&(function(e3,t4){if(!ka(t4))return;const i3=e3.response,n2=ka(i3)?Promise.all([i3,t4]).then(()=>{}):Promise.resolve(t4);e3.respondWith(n2)})(t3,i2)},this.completeEventListeners.set(e2,t2)),t2}};xa.tagName="s-login-with-shop",xa.propertyDescriptors=_a2;let Aa=xa;const Na={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),apiKey:Un($n(),{attribute:"apikey"}),blockSize:Un(cr({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),id:Un($n(),{attribute:"id"}),inlineSize:Un(cr({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),latitude:Un(ss({defaultValue:0}),{attribute:"latitude"}),longitude:Un(ss({defaultValue:0}),{attribute:"longitude"}),maxBlockSize:Un(cr({defaultValue:"none",type:"none"}),{attribute:"maxblocksize"}),maxInlineSize:Un(cr({defaultValue:"none",type:"none"}),{attribute:"maxinlinesize"}),maxZoom:Un(ss({defaultValue:18}),{attribute:"maxzoom"}),minBlockSize:Un(cr({defaultValue:"0",type:"size"}),{attribute:"minblocksize"}),minInlineSize:Un(cr({defaultValue:"0",type:"size"}),{attribute:"mininlinesize"}),minZoom:Un(ss({defaultValue:0}),{attribute:"minzoom"}),zoom:Un(ss({defaultValue:4}),{attribute:"zoom"})},Ta=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","blocksize","apikey","id","inlinesize","latitude","longitude","maxblocksize","maxinlinesize","maxzoom","minblocksize","mininlinesize","minzoom","zoom"]}static get remoteEvents(){return{boundschange:{dispatchEvent:e2=>new js({bounds:e2})},click:{dispatchEvent:e2=>new Bs({location:e2})},dblclick:{dispatchEvent:e2=>new Fs({location:e2})},viewchange:{dispatchEvent:(e2,t2)=>new Ls({location:e2,zoom:t2})}}}};Ta.tagName="s-map",Ta.propertyDescriptors=Na;let Ca=Ta;const Da={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),blockSize:Un(cr({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),command:Un(Jn(["--auto","--toggle","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Un($n(),{attribute:"commandfor"}),clusterable:Un(nr(),{attribute:"clusterable"}),inlineSize:Un(cr({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),latitude:Un(ss({defaultValue:0}),{attribute:"latitude"}),longitude:Un(ss({defaultValue:0}),{attribute:"longitude"})},Oa=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","blocksize","command","commandfor","clusterable","icon","inlinesize","latitude","longitude"]}static get remoteEvents(){return{click:{bubbles:true,dispatchEvent:()=>new Event("click",{bubbles:true})}}}};Oa.tagName="s-map-marker",Oa.propertyDescriptors=Da;let Va=Oa;const Ma={accessibilitylabel:Un($n(),{attribute:"accessibilitylabel"}),heading:Un($n(),{attribute:"heading"}),id:Un($n(),{attribute:"id"}),padding:Un(Jn(["none","base"],{defaultValue:"base"}),{attribute:"padding"}),size:Un(Jn(["small-100","small","base","large-100","large","max"],{defaultValue:"base"}),{attribute:"size"})},Ra=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","heading","id","padding","size"]}static get remoteMethods(){return["hideOverlay"]}static get remoteEvents(){return{afterhide:{dispatchEvent:()=>new Event("afterhide")},aftershow:{dispatchEvent:()=>new Event("aftershow")},hide:{dispatchEvent:()=>new Event("hide")},show:{dispatchEvent:()=>new Event("show")}}}};Ra.tagName="s-modal",Ra.propertyDescriptors=Ma,Ra.listensToBubbledEvents=true;let Pa=Ra;const za=__spreadProps(__spreadValues({},as),{autocomplete:Un(ns({defaultValue:"on"}),{attribute:"autocomplete"}),max:Un(ss({defaultValue:1/0}),{attribute:"max"}),min:Un(ss({defaultValue:-1/0}
1),{attribute:"min"}),step:Un(ss({defaultValue:1}),{attribute:"step"})}),Ia=class extends cs{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","max","min","name","readonly","required","step","value"]}};Ia.tagName="s-money-field",Ia.propertyDescriptors=za;let La=Ia;const ja=__spreadProps(__spreadValues({},as),{autocomplete:Un(ns({defaultValue:"on"}),{attribute:"autocomplete"}),controls:Un(Jn(["auto","stepper","none"],{defaultValue:"auto"}),{attribute:"controls"}),inputMode:Un(Jn(["decimal","numeric"],{defaultValue:"decimal"}),{attribute:"inputmode"}),max:Un(ss({defaultValue:1/0}),{attribute:"max"}),min:Un(ss({defaultValue:-1/0}),{attribute:"min"}),prefix:Un($n(),{attribute:"prefix"}),step:Un(ss({defaultValue:1}),{attribute:"step"}),suffix:Un($n(),{attribute:"suffix"})}),Ba=class extends cs{static get remoteAttributes(){return["autocomplete","controls","disabled","error","id","inputmode","label","labelaccessibilityvisibility","max","min","name","placeholder","prefix","readonly","required","step","suffix","value"]}};Ba.tagName="s-number-field",Ba.propertyDescriptors=ja;let Fa=Ba;const $a={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),disabled:Un(nr(),{attribute:"disabled"}),id:Un($n(),{attribute:"id"}),value:Un($n(),{attribute:"value"}),defaultSelected:Un(nr(),{attribute:"selected"})},Ua=class extends Fn{constructor(){super(...arguments),__privateAdd(this,k),__privateAdd(this,S),this.__select=null,__privateSet(this,S,false)}static get observedAttributes(){return["accessibilitylabel","disabled","id","value","selected"]}attributeChangedCallback(e2,t2,i2){"selected"===e2?this.__select&&("string"==typeof i2?this.__select.value=this.value:this.__select.__resetValue()):this.updateRemoteAttribute(e2,i2)}get selected(){return this.__select?this.__select.value===this.value:__privateGet(this,S)}set selected(e2){e2?this.__select?this.__select.value=this.value:__privateSet(this,S,true):__privateSet(this,S,false)}get value(){var _a5,_b3;return(_b3=(_a5=this.getAttribute("value"))!=null?_a5:__privateGet(this,k,x))!=null?_b3:""}set value(e2){this.setAttribute("value",String(e2))}};S=new WeakMap,k=new WeakSet,x=function(){var _a5;return((_a5=this.textContent)!=null?_a5:"").trim()},Ua.tagName="s-option",Ua.propertyDescriptors=$a,Object.entries($a).forEach(([e2,t2])=>{Object.prototype.hasOwnProperty.call(Ua.prototype,e2)||Object.defineProperty(Ua.prototype,e2,{get(){return t2.get.call(this)},set(e3){t2.set.call(this,e3)}})});let Ga=Ua;const qa={id:Un($n(),{attribute:"id"})},Wa=class extends Fn{static get remoteAttributes(){return["id"]}};Wa.tagName="s-ordered-list",Wa.propertyDescriptors=qa,Wa.listensToBubbledEvents=true;let Ha=Wa;const Ya={accessibilityVisibility:Un(Jn(["visible","hidden","exclusive"],{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),color:Un(Jn(["subdued","base"],{defaultValue:"base"}),{attribute:"color"}),dir:Un(Jn(["","auto","ltr","rtl"],{defaultValue:""}),{attribute:"dir"}),id:Un($n(),{attribute:"id"}),lang:Un($n(),{attribute:"lang"}),tone:Un(Jn(["auto","neutral","info","success","warning","critical","custom"],{defaultValue:"auto"}),{attribute:"tone"}),textAlign:Un(Jn(["start","end","center","auto"],{defaultValue:"auto"}),{attribute:"textalign"}),type:Un(Jn(["paragraph","small"],{defaultValue:"paragraph"}),{attribute:"type"})},Xa=class extends Fn{static get remoteAttributes(){return["accessibilityvisibility","color","dir","id","lang","textalign","tone","type"]}};Xa.tagName="s-paragraph",Xa.propertyDescriptors=Ya,Xa.listensToBubbledEvents=true;let Ja=Xa;const Za=__spreadProps(__spreadValues({},as),{autocomplete:Un(ns({defaultValue:"on"}),{attribute:"autocomplete"}),maxLength:Un(ss({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:Un(ss({defaultValue:0,min:0,floor:true}),{attribute:"minlength"})}),Ka=class extends cs{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","readonly","required","value"]}};Ka.tagName="s-password-field",Ka.propertyDescriptors=Za;let Qa=Ka;const eo={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),id:Un($n(),{attribute:"id"}),type:Un($n(),{attribute:"type"})},to=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","id","type"]}};to.tagName="s-payment-icon",to.propertyDescriptors=eo;let io=to;const no=__spreadProps(__spreadValues({},Er),{id:Un($n(),{attribute:"id"})}),ro=class extends Fn{static get remoteAttributes(){return["blocksize","id","inlinesize","maxblocksize","maxinlinesize","minblocksize","mininlinesize"]}static get remoteEvents(){return["hide","show"]}};ro.tagName="s-popover",ro.propertyDescriptors=no,ro.listensToBubbledEvents=true;let so=ro;const ao={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),defaultPressed:Un(nr(),{attribute:"pressed"}),disabled:Un(nr(),{attribute:"disabled"}),id:Un($n(),{attribute:"id"}),inlineSize:Un(Jn(["auto","fill","fit-content"],{defaultValue:"auto"}),{attribute:"inlinesize"}),lang:Un($n(),{attribute:"lang"}),loading:Un(nr(),{attribute:"loading"})},oo=class extends Fn{constructor(){super(...arguments),__privateAdd(this,A)}static get remoteAttributes(){return["accessibilitylabel","disabled","id","inlinesize","lang","loading","pressed"]}static get remoteEvents(){return{blur:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusout",{bubbles:true})),new FocusEvent("blur")}},click:{bubbles:true,dispatchEvent(e2){return __privateSet(this,A,Boolean(e2)),new Event("click",{bubbles:true})}},focus:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),new FocusEvent("focus")}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get pressed(){var _a5;return(_a5=__privateGet(this,A))!=null?_a5:this.defaultPressed}set pressed(e2){__privateSet(this,A,Boolean(e2)),this.__sync()}__sync(){this.updateRemoteProperty("pressed",[__privateGet(this,A)])}};A=new WeakMap,oo.tagName="s-press-button",oo.propertyDescriptors=ao;let lo=oo;const co={alt:Un($n(),{attribute:"alt"}),size:Un(Jn(["small-100","small","base"],{defaultValue:"base",mapAliases:{small:"small-100"}}),{attribute:"size"}),sizes:Un($n(),{attribute:"sizes"}),src:Un($n(),{attribute:"src"}),srcSet:Un($n(),{attribute:"srcset"}),totalItems:Un(ss(),{attribute:"totalitems"})},uo=class extends Fn{static get remoteAttributes(){return["alt","size","sizes","src","srcset","totalitems"]}};uo.tagName="s-product-thumbnail",uo.propertyDescriptors=co;let bo=uo;const ho={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),id:Un($n(),{attribute:"id"}),max:Un(ss({defaultValue:1,min:0}),{attribute:"max"}),tone:Un(Jn(["auto","critical"],{defaultValue:"auto"}),{attribute:"tone"}),value:Un(ss({min:0}),{attribute:"value"})},po=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","id","max","tone","value"]}};po.tagName="s-progress",po.propertyDescriptors=ho;let fo=po;const mo={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),border:Un(Jn(["none","base"],{defaultValue:"base"}),{attribute:"border"}),content:Un($n(),{attribute:"content"}),id:Un($n(),{attribute:"id"}),size:Un(Jn(["base","fill"],{defaultValue:"base"}),{attribute:"size"}),logo:Un($n(),{attribute:"logo"})},go=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","border","content","id","size","logo"]}static get remoteEvents(){return{error:{dispatchEvent:()=>new Event("error")}}}};go.tagName="s-qr-code",go.propertyDescriptors=mo;let vo=go;
1const yo={containerName:Un($n(),{attribute:"containername"}),id:Un($n(),{attribute:"id"})},Eo=class extends Fn{static get remoteAttributes(){return["containername","id"]}};Eo.tagName="s-query-container",Eo.propertyDescriptors=yo;let wo=Eo;const _o=["auto","hidden"],So=br({BlockOverflow:_o,InlineOverflow:_o},["{BlockOverflow}","{BlockOverflow} {InlineOverflow}"]),ko=__spreadProps(__spreadValues({},Sr),{overflow:Un(Jn(So,{defaultValue:"auto"}),{attribute:"overflow"})}),xo=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","accessibilityrole","accessibilityvisibility","background","blocksize","border","borderradius","borderstyle","borderwidth","display","id","inlinesize","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart"]}};xo.tagName="s-scroll-box",xo.propertyDescriptors=ko,xo.listensToBubbledEvents=true;let Ao=xo;const No={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),heading:Un($n(),{attribute:"heading"}),id:Un($n(),{attribute:"id"}),padding:Un(Jn(["base","none"],{defaultValue:"base"}),{attribute:"padding"})},To=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","heading","id","padding"]}};To.tagName="s-section",To.propertyDescriptors=No,To.listensToBubbledEvents=true;let Co=To;const Do={id:Un($n(),{attribute:"id"}),label:Un($n(),{attribute:"label"}),name:Un($n(),{attribute:"name"}),placeholder:Un($n(),{attribute:"placeholder"}),required:Un(nr(),{attribute:"required"}),disabled:Un(nr(),{attribute:"disabled"}),error:Un($n(),{attribute:"error"}),autocomplete:Un($n(),{attribute:"autocomplete"})},Oo=class extends Fn{constructor(){super(...arguments),__privateAdd(this,T),__privateAdd(this,N)}static get remoteAttributes(){return["id","label","name","placeholder","required","disabled","error","autocomplete"]}static get remoteEvents(){return{blur:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusout",{bubbles:true})),new FocusEvent("blur")}},change:{bubbles:true,dispatchEvent(e2){return __privateSet(this,N,e2),new Event("change",{bubbles:true})}},focus:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),new FocusEvent("focus")}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}appendChild(e2){const t2=__privateMethod(this,T,D).call(this,e2),i2=super.appendChild(e2);return __privateMethod(this,T,O).call(this,t2),i2}insertBefore(e2,t2){const i2=__privateMethod(this,T,D).call(this,e2),n2=super.insertBefore(e2,t2);return __privateMethod(this,T,O).call(this,i2),n2}replaceChild(e2,t2){const i2=__privateMethod(this,T,D).call(this,e2),n2=super.replaceChild(e2,t2);return __privateMethod(this,T,O).call(this,i2),n2}removeChild(e2){const t2=super.removeChild(e2);return __privateMethod(this,T,V).call(this,e2),t2}get value(){var _a5;return(_a5=__privateGet(this,N))!=null?_a5:""}set value(e2){const t2=String(e2),i2=this.querySelectorAll("s-option"),n2=Array.from(i2).find(e3=>e3.value===t2);__privateMethod(this,T,C).call(this,n2?t2:"")}__resetValue(){const e2=this.querySelectorAll("s-option"),t2=Array.from(e2).find(e3=>!e3.disabled);__privateMethod(this,T,C).call(this,t2==null?void 0:t2.value)}__sync(){this.updateRemoteProperty("value",[__privateGet(this,N)])}};N=new WeakMap,T=new WeakSet,C=function(e2){__privateSet(this,N,e2),this.__sync()},D=function(e2,t2=[]){return e2 instanceof DocumentFragment?e2.childNodes.forEach(e3=>{__privateMethod(this,T,D).call(this,e3,t2)}):e2 instanceof Ga?t2.push(e2):e2 instanceof Element&&console.warn("`s-select` must only contain `s-option` elements"),t2},O=function(e2){for(const t2 of e2)t2.selected?__privateMethod(this,T,C).call(this,t2.value):void 0===__privateGet(this,N)&&this.placeholder?__privateMethod(this,T,C).call(this,""):(void 0===__privateGet(this,N)&&!t2.disabled||t2.defaultSelected)&&__privateMethod(this,T,C).call(this,t2.value),t2.__select=this},V=function(e2){e2 instanceof Ga&&e2.value===this.value&&this.__resetValue()},Oo.tagName="s-select",Oo.propertyDescriptors=Do,Object.entries(Do).forEac
1h(([e2,t2])=>{Object.defineProperty(Oo.prototype,e2,{get(){return t2.get.call(this)},set(e3){t2.set.call(this,e3)}})});let Vo=Oo;const Mo={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),heading:Un($n(),{attribute:"heading"}),id:Un($n(),{attribute:"id"})},Ro=class extends Fn{constructor(){super(...arguments),__privateAdd(this,M)}static get remoteAttributes(){return["accessibilitylabel","heading","id"]}static get remoteMethods(){return["hideOverlay"]}static get remoteEvents(){return{afterhide:{dispatchEvent:()=>new Event("afterhide")},aftershow:{dispatchEvent:()=>new Event("aftershow")},hide:{dispatchEvent:()=>new Event("hide")},show:{dispatchEvent:()=>new Event("show")}}}get defaultOpen(){return Boolean(__privateGet(this,M))}set defaultOpen(e2){__privateSet(this,M,Boolean(e2)),this.updateRemoteProperty("open",[__privateGet(this,M)])}};M=new WeakMap,Ro.tagName="s-sheet",Ro.propertyDescriptors=Mo,Ro.listensToBubbledEvents=true;let Po=Ro;const zo={content:Un($n(),{attribute:"content"}),id:Un($n(),{attribute:"id"})},Io=class extends Fn{static get remoteAttributes(){return["content","id"]}};Io.tagName="s-skeleton-paragraph",Io.propertyDescriptors=zo;let Lo=Io;const jo={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),id:Un($n(),{attribute:"id"}),size:Un(Jn(["small-100","small","base","large","large-100"],{defaultValue:"base",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"size"})},Bo=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","id","size"]}};Bo.tagName="s-spinner",Bo.propertyDescriptors=jo;let Fo=Bo;const $o=__spreadProps(__spreadValues({},Sr),{accessibilityRole:Un(Jn(["main","header","footer","section","aside","navigation","ordered-list","list-item","list-item-separator","unordered-list","separator","status","alert","generic","none"],{defaultValue:"generic"}),{attribute:"accessibilityrole"}),alignContent:Un(Jn(["normal","space-between","space-around","space-evenly","stretch","center","start","end"],{defaultValue:"normal",canBeResponsive:true}),{attribute:"aligncontent"}),alignItems:Un(Jn(["normal","stretch","center","start","end"],{defaultValue:"normal",canBeResponsive:true}),{attribute:"alignitems"}),columnGap:Un(Jn(["small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],{defaultValue:"",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"columngap"}),direction:Un(Jn(["inline","block"],{defaultValue:"block",canBeResponsive:true}),{attribute:"direction"}),gap:Un(Jn(["small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"gap"}),justifyContent:Un(Jn(["normal","space-between","space-around","space-evenly","stretch","center","start","end"],{defaultValue:"normal",canBeResponsive:true}),{attribute:"justifycontent"}),rowGap:Un(Jn(["small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],{defaultValue:"",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"rowgap"})}),Uo=class extends Fn{static get remoteAttributes(){return["accessibilitylabel","accessibilityrole","aligncontent","alignitems","background","blocksize","border","borderradiu
1s","borderstyle","borderwidth","columngap","display","direction","gap","id","inlinesize","justifycontent","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart","rowgap"]}};Uo.tagName="s-stack",Uo.propertyDescriptors=$o,Uo.listensToBubbledEvents=true;let Go=Uo;const qo={id:Un($n(),{attribute:"id"})},Wo=class extends Fn{static get remoteAttributes(){return["id"]}};Wo.tagName="s-summary",Wo.propertyDescriptors=qo,Wo.listensToBubbledEvents=true;let Ho=Wo;const Yo={accessibilityLabel:Un($n(),{attribute:"accessibilitylabel"}),command:Un(Jn(["--auto","--toggle","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Un($n(),{attribute:"commandfor"}),defaultChecked:Un(nr(),{attribute:"checked"}),disabled:Un(nr(),{attribute:"disabled"}),id:Un($n(),{attribute:"id"}),label:Un($n(),{attribute:"label"}),name:Un($n(),{attribute:"name"}),value:Un($n(),{attribute:"value"})},Xo=class extends Fn{constructor(){super(...arguments),__privateAdd(this,R)}static get remoteAttributes(){return["accessibilitylabel","checked","command","commandfor","disabled","id","label","name","value"]}static get remoteEvents(){return{change:{bubbles:true,dispatchEvent(e2){return __privateSet(this,R,Boolean(e2)),new Event("change",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get checked(){var _a5;return(_a5=__privateGet(this,R))!=null?_a5:this.defaultChecked}set checked(e2){__privateSet(this,R,Boolean(e2)),this.__sync()}__sync(){this.updateRemoteProperty("checked",[__privateGet(this,R)])}};R=new WeakMap,Xo.tagName="s-switch",Xo.propertyDescriptors=Yo;let Jo=Xo;const Zo=__spreadProps(__spreadValues({},as),{autocomplete:Un(ns({defaultValue:"on"}),{attribute:"autocomplete"}),maxLength:Un(ss({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:Un(ss({defaultValue:0,min:0,floor:true}),{attribute:"minlength"}),rows:Un(ss({defaultValue:2,min:1,floor:true}),{attribute:"rows"})}),Ko=class extends cs{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","placeholder","readonly","required","rows","value"]}};Ko.tagName="s-text-area",Ko.propertyDescriptors=Zo;let Qo=Ko;const el={accessibilityVisibility:Un(Jn(["visible","hidden","exclusive"],{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),color:Un(Jn(["subdued","base"],{defaultValue:"base"}),{attribute:"color"}),dir:Un(Jn(["","auto","ltr","rtl"],{defaultValue:""}),{attribute:"dir"}),display:Un(Jn(["auto","none"],{defaultValue:"auto",canBeResponsive:true}),{attribute:"display"}),id:Un($n(),{attribute:"id"}),lang:Un($n(),{attribute:"lang"}),tone:Un(Jn(["auto","neutral","info","success","warning","critical","custom"],{defaultValue:"auto"}),{attribute:"tone"}),type:Un(Jn(["address","redundant","mark","emphasis","offset","small","strong","generic"],{defaultValue:"generic"}),{attribute:"type"})},tl=class extends Fn{static get remoteAttributes(){return["accessibilityvisibility","color","dir","display","id","lang","tone","type"]}};tl.tagName="s-text",tl.propertyDescriptors=el,tl.listensToBubbledEvents=true;let il=tl;const nl={dateTime:Un($n(),{attribute:"datetime"}),id:Un($n(),{attribute:"id"})},rl=class extends Fn{static get remoteAttributes(){return["datetime","id"]}};rl.tagName="s-time",rl.propertyDescriptors=nl;let sl=rl;const al={id:Un($n(),{attribute:"id"})},ol=class extends Fn{static get remoteAttributes(){return["id"]}};ol.tagName="s-tooltip",ol.propertyDescriptors=al,ol.listensToBubbledEvents=true;let ll=ol;const cl={id:Un($n(),{attribute:"id"})},ul=class extends Fn{static get remoteAttributes(){return["id"]}};ul.tagName="s-unordered-list",ul.propertyDescriptors=cl,ul.listensToBubbledEvents=true;let dl=ul;const bl=__spreadProps(__spreadValues({},as),{autocomplete:Un(ns({defaultValue:"on"}),{attribute:"autocomplete"}),maxLength:Un(ss({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:Un(ss({defaultValue:0,min:0,floor:true}),{attribute:"minlength"})}),hl=class extends cs{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","readonly","required","value"]}};hl.tagName="s-url-field",hl.propertyDescriptors=bl;let pl=hl;var fl=Object.freeze({__proto__:null,SAbbreviationElement:Wn,SAnnouncementElement:Yn,SBa
1dgeElement:ir,SBannerElement:ar,SBoxElement:Ar,SButtonElement:Cr,SChatElement:Vr,SCheckboxElement:Pr,SChipElement:Lr,SChoiceElement:Fr,SChoiceListElement:Gr,SClickableChipElement:Qr,SClickableElement:Jr,SClipboardItemElement:vs,SConsentCheckboxElement:is,SConsentPhoneFieldElement:fs,SDateFieldElement:ws,SDatePickerElement:ks,SDetailsElement:Ns,SDividerElement:Ds,SDropZoneElement:Ms,SEmailFieldElement:zs,SFormElement:Gs,SGridElement:Qs,SGridItemElement:na,SHeadingElement:aa,SIconElement:la,SImageElement:fa,SLinkElement:va,SListItemElement:wa,SLoginWithShopElement:Aa,SMapElement:Ca,SMapMarkerElement:Va,SModalElement:Pa,SMoneyFieldElement:La,SNumberFieldElement:Fa,SOptionElement:Ga,SOrderedListElement:Ha,SParagraphElement:Ja,SPasswordFieldElement:Qa,SPaymentIconElement:io,SPhoneFieldElement:bs,SPopoverElement:so,SPressButtonElement:lo,SProductThumbnailElement:bo,SProgressElement:fo,SQRCodeElement:vo,SQueryContainerElement:wo,SScrollBoxElement:Ao,SSectionElement:Co,SSelectElement:Vo,SSheetElement:Po,SSkeletonParagraphElement:Lo,SSpinnerElement:Fo,SStackElement:Go,SSummaryElement:Ho,SSwitchElement:Jo,STextAreaElement:Qo,STextElement:il,STextFieldElement:cs,STimeElement:sl,STooltipElement:ll,SUnorderedListElement:dl,SUrlFieldElement:pl});function ml(e2){self.initialValues={acceptSmsMarketing:e2.protectedApi.initialValues.acceptSmsMarketing,smsMarketingPhone:e2.protectedApi.initialValues.smsMarketingPhone},Object.values(fl).forEach(t2=>{e2.global.customElements.define(t2.tagName,t2)})}Object.freeze(Dn.prototype),Object.freeze(Object.getPrototypeOf(Dn)),Object.freeze(Object.getPrototypeOf(Dn.prototype));const gl=new Set(["extend","setSignals"]);function vl(e2,t2,{shouldReport:i2,reportedApiPropertyNames:n2=new Set}={}){const r2=new WeakMap,s2=(function(e3){let t3=[];return e4=>{t3.push(e4),1===t3.length&&("function"!=typeof requestIdleCallback?setTimeout(i3,50):requestIdleCallback(i3,{timeout:1e3}))};function i3(){if(0===t3.length)return;const i4=t3;t3=[],e3(i4)}})(t2);return yl(e2)?(function e3(t3,a2){const o2=r2.get(t3);if(o2)return o2;const l2=new Proxy(t3,{get(t4,r3){const o3=Reflect.get(t4,r3,t4);if("string"!=typeof r3||!Object.prototype.hasOwnProperty.call(t4,r3))return o3;const l3=[...a2,r3];return(a2.length>0||!gl.has(r3))&&(c2=l3.join("."),i2&&!i2()||n2.has(c2)||(n2.add(c2),s2(c2))),yl(o3)&&!(function(e4){return"function"==typeof e4.subscribe&&("current"in e4||"value"in e4)})(o3)?e3(o3,l3):o3;var c2}});return r2.set(t3,l2),l2})(e2,[]):e2}function yl(e2){if("object"!=typeof e2||null===e2)return false;const t2=Object.getPrototypeOf(e2);return t2===Object.prototype||null===t2}const El=e2=>{const{reportApiRead:t2,reportedApiPropertyNames:i2,isThisRealmTornDown:n2}=e2.protectedApi;"function"==typeof t2&&(e2.global.shopify=vl(e2.global.shopify,t2,{shouldReport:()=>!n2||!n2(),reportedApiPropertyNames:i2}))};function wl(e2){const t2=new lt;t2[Z]=Ct,e2.global=Object.assign(t2,e2.global),e2.global.window=e2.global,e2.global.self=e2.global,e2.global.globalThis=e2.global}function _l(e2){const t2=e2.protectedApi.realmScriptUrl,i2=e2.protectedApi.allRealmScripts,n2=e2.protectedApi.realmScriptIsTearingDown,r2=e2.protectedApi.hasLiveRealmForScript,s2=e2.protectedApi.realmScriptWasActivated,a2=e2.protectedApi.isThisRealmTornDown,o2={anyRealmIsTearingDown:e2.protectedApi.anyRealmIsTearingDown,realmScriptIsTearingDown:n2,realmScriptWasActivated:s2,hasLiveRealmForScript:r2};function l2(e3){const n3="reason"in e3?e3.reason:e3.error,r3=qi(n3,i2);return tn(r3,o2)?(e3.preventDefault(),e3.stopImmediatePropagation(),false):!Gi(n3)&&!(r3&&r3!==t2||a2())}globalThis.addEventListener("error",t3=>{if(!l2(t3))return;const i3=new ErrorEvent("error",{message:t3.message,filename:t3.filename,lineno:t3.lineno,colno:t3.colno,error:t3.error});e2.global.dispatchEvent(i3)}),globalThis.addEventListener("unhandledrejection",t3=>{if(!l2(t3))return;const i3=new PromiseRejectionEvent("unhandledrejection",{promise:t3.promise,reason:t3.reason});e2.global.dispatchEvent(i3)})}function Sl(e2){const{messageEventRelay:t2}=e2.protectedApi;if(!t2)return;const i2=Boolean(e2.global.addEventListener)?e2.global:globalThis,n2=i2.addEventListener.bind(i2),r2=i2.removeEventListener.bind(i2);e2.global.addEventListener=(e3,i3,r3)=>{"message"===e3&&t2?t2.register(i3):n2(e3,i3,r3)},e2.global.removeEventListener=(e3,i3,n3)=>{"message"===e3&&t2?t2.unregister(i3):r2(e3,i3,n3)}}function kl(e2){const{connection:t2,extensionTTSCapture:i2,isThisRealmTornDown:n2}=e2.protectedApi;let r2=false;const s2=(function(e3,t3,i3){return new Ln({call:(i4,n3,...r3)=>{try{return e3.call(i4,n3,...r3)}catch(s3){if(t3())return;throw s3}},mutate:n3=>{try{e3.mutate(n3),Array.isArray(n3)&&n3.length>0&&(i3==null?void 0:i3.recordMutation())}catch(r3){if(t3())return;throw r3}}},{batch:e4=>"function"==typeof queueMicrotask?queueMicrotask(e4):Promise.resolve().then(e4)})})(t2,n2,i2?{recordMutation:()=>{r2&&i2.recordMutation()}}:void 0);ft(e2.global.document.body,"~"),xt(e2.global.document.body,s2),s2.flush(),r2=true}const xl=e2=>{const t2=e2.global.shopify.extend;e2.global.shopify.extend=(i2,n2)=>{const r2=Ai(i2);r2===e2.protectedApi.target&&t2(r2,n2)}};
1class Al{constructor(e2){__privateAdd2(this,_Al_instances);__privateAdd2(this,_l3);__privateAdd2(this,_c2);__privateAdd2(this,_u2);__privateAdd2(this,_d2,false);__privateAdd2(this,_b2,0);__privateAdd2(this,_h2,0);__privateAdd2(this,_p2,true);__privateAdd2(this,_f2,false);__privateAdd2(this,_m2,false);__privateAdd2(this,_g2,null);__privateAdd2(this,_v2,null);__privateSet2(this,_l3,e2.emit),__privateSet2(this,_c2,e2.isSoleCapture),this.recordMutation=__privateMethod2(this,_Al_instances,y_fn).call(this,this.recordMutation,"record-mutation"),this.fetchStarted=__privateMethod2(this,_Al_instances,y_fn).call(this,this.fetchStarted,"fetch-started"),this.fetchResolved=__privateMethod2(this,_Al_instances,y_fn).call(this,this.fetchResolved,"fetch-resolved");try{__privateSet2(this,_v2,setTimeout(()=>{try{__privateSet2(this,_v2,null),__privateMethod2(this,_Al_instances,E_fn).call(this,"exceeded-deadline")}catch(e3){__privateMethod2(this,_Al_instances,w_fn).call(this,"deadline-timer",e3)}},1e4))}catch(t2){__privateMethod2(this,_Al_instances,w_fn).call(this,"capture-construct",t2)}}recordMutation(){__privateGet2(this,_f2)||(__privateSet2(this,_d2,true),__privateSet2(this,_u2,performance.now()),__privateMethod2(this,_Al_instances,__fn).call(this,500))}fetchStarted(e2){if(__privateGet2(this,_f2))return;const t2=e2!=null?e2:__privateGet2(this,_c2).call(this);__privateGet2(this,_p2)&&!t2&&__privateSet2(this,_p2,false),__privateSet2(this,_h2,__privateGet2(this,_h2)+1),__privateSet2(this,_b2,__privateGet2(this,_b2)+1)}fetchResolved(){__privateGet2(this,_f2)||(__privateSet2(this,_b2,Math.max(0,__privateGet2(this,_b2)-1)),__privateMethod2(this,_Al_instances,S_fn).call(this)&&__privateMethod2(this,_Al_instances,__fn).call(this,0))}silence(){__privateSet2(this,_m2,true),__privateSet2(this,_f2,true),__privateMethod2(this,_Al_instances,k_fn).call(this),__privateMethod2(this,_Al_instances,x_fn).call(this)}}_l3=new WeakMap;_c2=new WeakMap;_u2=new WeakMap;_d2=new WeakMap;_b2=new WeakMap;_h2=new WeakMap;_p2=new WeakMap;_f2=new WeakMap;_m2=new WeakMap;_g2=new WeakMap;_v2=new WeakMap;_Al_instances=new WeakSet;y_fn=function(e2,t2){const i2=e2.bind(this);return(...e3)=>{if(!__privateGet2(this,_m2))try{i2(...e3)}catch(n2){__privateMethod2(this,_Al_instances,w_fn).call(this,t2,n2)}}};w_fn=function(e2,t2){this.silence(),$i.throwDetachedOnce(e2,t2)};S_fn=function(){return!__privateGet2(this,_f2)&&__privateGet2(this,_d2)&&null===__privateGet2(this,_g2)&&0===__privateGet2(this,_b2)};__fn=function(e2){__privateMethod2(this,_Al_instances,k_fn).call(this),__privateSet2(this,_g2,setTimeout(()=>{try{__privateSet2(this,_g2,null),__privateMethod2(this,_Al_instances,S_fn).call(this)&&__privateMethod2(this,_Al_instances,E_fn).call(this,"settled")}catch(e3){__privateMethod2(this,_Al_instances,w_fn).call(this,"settle-timer",e3)}},e2))};E_fn=function(e2){if(__privateSet2(this,_f2,true),__privateMethod2(this,_Al_instances,k_fn).call(this),__privateMethod2(this,_Al_instances,x_fn).call(this),!__privateGet2(this,_d2)||void 0===__privateGet2(this,_u2))return void __privateGet2(this,_l3).call(this,{reason:e2,renderedContent:false,fetchCount:0,settledAt:performance.now()});const t2=__privateGet2(this,_p2);__privateGet2(this,_l3).call(this,{reason:e2,renderedContent:true,fetchAttributable:t2,fetchCount:t2?__privateGet2(this,_h2):0,settledAt:__privateGet2(this,_u2)})};k_fn=function(){null!==__privateGet2(this,_g2)&&(clearTimeout(__privateGet2(this,_g2)),__privateSet2(this,_g2,null))};x_fn=function(){null!==__privateGet2(this,_v2)&&(clearTimeout(__privateGet2(this,_v2)),__privateSet2(this,_v2,null))};const Nl=new Map,Tl=new Map,Cl=yn(),Dl=(function(){const e2=Ui;return e2.callable("reload"),e2.callable("apiFetch"),e2.callable("extensionPerformanceMarkStarted"),e2.callable("extensionPerformanceMarkFinished"),e2.callable("reportSandboxError"),e2.callable("reportApiRead"),e2})();var Ol;Ol=Dl,Sn=e2=>__async(null,null,function*(){return(function(_a5){var _b3=_a5,{body:e3}=_b3,t2=__objRest(_b3,["body"]);return new _n(e3,t2)})(yield Ol.call.apiFetch(e2))}),(function(){for(const e2 of Object.keys(un)){const t2=Nn(self,e2);t2&&xn.set(e2,t2),Object.defineProperty(self,e2,{value:void 0,configurable:false,enumerable:false})}})();const Vl=(function(e2){return{extensionPerformanceMarkStarted:(t2,i2={})=>{e2.call.extensionPerformanceMarkStarted(t2,__spreadValues(__spreadValues({},yn()),i2))},extensionPerformanceMarkFinished:(t2,i2={})=>{e2.call.extensionPerformanceMarkFinished(t2,__spreadValues(__spreadValues({},yn()),i2))}}})(Dl),Ml=(function(e2){return function(t2,i2){const{name:n2,message:r2,stack:s2}=t2,a2={name:n2,message:r2!=null?r2:String(t2),stack:s2};e2.call.reportSandboxError(a2,i2)}})(Dl);function Rl(_0){return __async(this,arguments,function*({connection:e2,api:t2,target:i2,translations:n2,extensionType:r2,instanceId:s2,extensionId:a2,scriptUrl:o2,allowNetworkAccess:l2,allowApiAccess:c2,storefrontUrl:u2,myshopifyDomain:d2,initialValues:b2,relayApi:h2}){const p2=Nl.get(o2);if(!p2)throw new Oi("Contents not found for script URL: ".concat(o2));const f2=e2?new Al({isSoleCapture:()=>true,emit:e3=>{Vl.extensionPerformanceMarkFinished("extension-tts",__spreadValues({extensionId:a2,instanceId:s2},vn(e3)))}}):void 0;f2&&En.registerCapture(s2,f2);
1const m2=[yi,An,xl,_l,El],g2=e2?[wl,ml,kl,Sl,...m2]:[e3=>{e3.global.document=void 0,e3.global.window=void 0},...m2],v2=new ki(p2,"",g2),y2={isTornDown:false};!(function(e3){Ji(Xi,e3)})(o2);try{const p3=Ai(i2),m3=Bi(t2,p3,n2,r2);return f2&&((function(e3,t3){try{const i3=e3,n3=i3.query;if("function"!=typeof n3)return;ri(n3),i3.query=function(...e4){t3.fetchStarted(true);try{return Reflect.apply(n3,this,e4).finally(()=>{t3.fetchResolved()})}catch(i4){throw t3.fetchResolved(),i4}}}catch(i3){t3.silence(),$i.throwDetachedOnce("wrap-query-setup",i3)}})(m3,f2),Vl.extensionPerformanceMarkStarted("extension-tts",{instanceId:s2,extensionId:a2})),Vl.extensionPerformanceMarkStarted("partner-js-exec",{instanceId:s2,extensionId:a2}),v2.run({target:p3,api:m3,protectedApi:{connection:e2,extensionTTSCapture:f2,allowNetworkAccess:l2,allowApiAccess:c2,storefrontUrl:u2,myshopifyDomain:d2,metrics:Vl,extensionId:a2,instanceId:s2,target:p3,initialValues:b2,messageEventRelay:h2,anyRealmIsTearingDown:Zi,realmScriptIsTearingDown:Ki,realmScriptWasActivated:en,hasLiveRealmForScript:Qi,isThisRealmTornDown:()=>y2.isTornDown,allRealmScripts:Nl,realmScriptUrl:o2,reportApiRead:e3=>{Dl.call.reportApiRead(e3,{extensionId:a2})},reportedApiPropertyNames:Pl(a2,o2)}}),{output:yield v2.output,teardown:rn(()=>__async(null,null,function*(){y2.isTornDown=true,f2&&En.discardCapture(s2,f2),yield v2.terminate()}),o2)}}catch(E2){if(y2.isTornDown=true,nn(o2),f2&&En.discardCapture(s2,f2),"NetworkError"===(E2==null?void 0:E2.name))throw new Di(String(E2),{cause:E2});throw"ExtensionUsageError"===(E2==null?void 0:E2.name)||"ExtensionSandboxAssetFetchError"===(E2==null?void 0:E2.name)||"ExtensionSandboxError"===(E2==null?void 0:E2.name)?E2:new Ci(String(E2),{cause:E2})}finally{Vl.extensionPerformanceMarkFinished("partner-js-exec",{instanceId:s2,extensionId:a2})}})}function Pl(e2,t2){let i2=Tl.get(e2);i2||(i2=new Map,Tl.set(e2,i2));let n2=i2.get(t2);return n2||(n2=new Set,i2.set(t2,n2)),n2}!(function(e2,{allRealmScripts:t2,reportSandboxError:i2,teardownState:n2}){e2.addEventListener("error",e3=>{const{error:i3}=e3;Gi(i3)&&(tn(qi(i3,t2),n2)||sn(i3))}),e2.addEventListener("unhandledrejection",e3=>{const{reason:r2}=e3;if(!Gi(r2))return;const s2=qi(r2,t2);tn(s2,n2)||(i2(r2,{scriptUrl:s2!=null?s2:void 0}),sn(r2))})})(globalThis,{allRealmScripts:Nl,reportSandboxError:Ml,teardownState:{anyRealmIsTearingDown:Zi,realmScriptIsTearingDown:Ki,realmScriptWasActivated:en,hasLiveRealmForScript:Qi}}),Dl.expose({load:function({scriptBody:e2,scriptUrl:t2,extensionId:i2}){Vl.extensionPerformanceMarkFinished("sandbox-js-eval",Cl);const n2="".concat(e2,"\n//# sourceURL=").concat(t2);Vl.extensionPerformanceMarkStarted("partner-js-eval",{extensionId:i2}),new ki(n2,"",[]),Vl.extensionPerformanceMarkFinished("partner-js-eval",{extensionId:i2}),Nl.set(t2,n2)},render:function(e2){return __async(this,null,function*(){return Rl(e2)})},run:function(e2){return __async(this,null,function*(){return Rl(e2)})}})})();
2
3//SANDBOX_EOF

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.