PageSourceSearch

https://mahrouse.ca/cdn/shopifycloud/checkout-web/assets/c1/sandbox.B0IYulSI.worker.js

js mahrouse.ca collected 2026-10-08 23:02:39 UTC 156,249 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,_p2,_h2,_f2,_m2,_g2,_v2,_xl_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,p,h,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"),Z=Symbol("content"),J=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[J]).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[J]).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 pe(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(pe(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(pe(t3,true,i2));return n2}{const t3=new e2.constructor;return t3[j]=i2,t3}}function he(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=he(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,J)](){return this[j].defaultView[J]}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 he(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 pe(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]}}
1var 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||"");default: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[J]).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}
1const 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[J]).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[J]).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[J]).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;const i2=this[L];i2&&((_b3=(_a5=this[J]).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)}}};
1class 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[J]).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[Z];return e2||(e2=this.ownerDocument.createDocumentFragment(),this[Z]=e2),e2}set content(e2){}set innerHTML(e2){this.content.replaceChildren(Pe(String(e2),this))}get innerHTML(){const e2=this[Z];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=Je(new He,this,"html"),this.body=Je(new qe,this,"body"),this.head=Je(new We,this,"head"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}createElement(e2){return Ze(this,e2)}createElementNS(e2,t2){return Ze(this,t2,e2)}createTextNode(e2){var _a5,_b3;const t2=Xe(new Fe(e2),this);return(_b3=(_a5=this[J]).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 pe(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 Ze(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 Je(n2,e2,t2,i2)}function Je(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[J]).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=J,_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)());
1__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)());__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 pt=0;function ht(e2){let t2=bt.get(e2);return null==t2&&(t2=String(pt++),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,ht(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,ht(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,ht(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:ht(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:ht(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[J];Ct.insertChild=(e2,t2,i2)=>{const n2=dt(e2);null!=n2&&(xt(t2,n2),n2.mutate([[0,ht(e2),Nt(t2),i2]]))},Ct.removeChild=(e2,t2,i2)=>{const n2=dt(e2);null!=n2&&(At(t2),n2.mutate([[1,ht(e2),i2]]))},Ct.setText=(e2,t2)=>{const i2=dt(e2);null!=i2&&i2.mutate([[2,ht(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 Zt=0;function Jt(e2){return"__private_"+Zt+++"_"+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},p2=new Set(s3),h2=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(h2,", endpoint: ").concat(i2).concat(null!=u2?", released ".concat(Date.now()-u2,"ms ago"):"",", retained by ").concat(p2.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(h2,", endpoint: ").concat(i2).concat(null!=n2?", endpoint terminated ".concat(Date.now()-n2,"ms ago"):"",", retained by ").concat(p2.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:p2,writable:false}});for(const e3 of p2)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}}function bi(){return"".concat(pi(),"-").concat(pi(),"-").concat(pi(),"-").concat(pi())}function pi(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)}const hi="__remote_signal__",fi=gi(true);
1function mi(e2,t2=fi,i2=new Map){const n2=i2.get(e2);if(n2)return n2;if(null!=(r2=e2)&&"object"==typeof r2&&true===r2[hi]){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=[];return i2.set(e2,n3),n3.push(...e2.map(e3=>mi(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]=mi(e2[r3],t2,i2);return n3}return e2}function gi(e2=false){let t2=null,i2=e2?null:new Set;var n2=Jt("value"),r2=Jt("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 vi(e2){const t2=gi();t2.applyRealSignal(Ft),Object.assign(e2.protectedApi,mi(e2.protectedApi,t2));const i2=gi();Object.assign(e2.api,__spreadProps(__spreadValues({},mi(e2.api,i2)),{setSignals(e3){i2.applyRealSignal(e3)}})),setTimeout(()=>i2.sealImplementation())}const yi=/\/\/# sourceMappingURL=(.+)$/gm,Ei=new Map,{eval:wi}=globalThis,_i='\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 Si{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(yi,(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=Ei.get(n2),this.realmFactory||(this.realmFactory=(function(e3){const t3="".concat(_i.replace("__SOURCE__",()=>"".concat(e3,"\n")));return wi(t3)})(n2),Ei.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)}
1,this.factories.forEach(e3=>e3.bind(this.global)(this)),this.realmFactory.call(this.global,wi),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 ki=String.raw(_a||(_a=__template(["[+-]?(?:d+(?:.d+)?|.d+)(?:e[+-]?d+)?"],["[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:e[+-]?\\d+)?"]))),xi=["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"],Ai={"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 Ni(e2){var _a5;return(_a5=Ai[e2])!=null?_a5:e2}function Ti(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(Ai))e2[i2]=t2})(),new Set(["purchase.checkout.block.render","Checkout::Dynamic::Render","purchase.thank-you.block.render","Checkout::ThankYou::Dynamic::Render"]);class Ci extends Error{constructor(){super(...arguments),this.name="ExtensionSandboxError"}}class Di extends Error{constructor(){super(...arguments),this.name="ExtensionUsageError"}}class Oi extends Error{constructor(){super(...arguments),this.name="ExtensionAssetFetchError"}}class Vi extends Error{constructor(){super(...arguments),this.name="ExtensionSandboxAssetFetchError"}}function Mi(e2){return(...t2)=>{var _a5;try{return e2(...t2)}catch(i2){if("ExtensionUsageError"===i2.name)throw i2;throw new Ci((_a5=i2==null?void 0:i2.message)!=null?_a5:"Unknown error",{cause:i2})}}}const Ri="latn",Pi="-u-nu-".concat(Ri);function zi(e2){try{const t2=new Intl.Locale(e2);return new Intl.Locale(t2.baseName,{numberingSystem:Ri}).toString()}catch(e3){return(function(e4){return e4.includes("-u-nu-")?e4.replace(/-u-nu-[a-z0-9]+/i,Pi):"".concat(e4).concat(Pi)})(e2)}}function Ii(e2,t2,i2){const n2=new Map,r2=new Map;function s2(t3,i3){const _a5=i3!=null?i3:{},{inExtensionLocale:r3}=_a5,s3=__objRest(_a5,["inExtensionLocale"]);if("currency"===s3.style&&("string"!=typeof s3.currency||0===s3.currency.length))throw new Di('i18n.formatNumber(): currency option must be a valid currency code string when style is "currency"');const a2=Bi(true===r3?e2.extensionLanguage:e2.language),o2=Li(a2,s3);let l2=n2.get(o2);return l2||(l2=(function(e3,t4){return ji(e3,e4=>new Intl.NumberFormat(zi(e4),t4))})(a2,s3),n2.set(o2,l2)),l2.format(t3)}return{formatNumber:Mi(s2),formatCurrency:Mi(function(t3,i3){const _a5=i3!=null?i3:{},{inExtensionLocale:n3}=_a5,r3=__objRest(_a5,["inExtensionLocale"]);return s2(t3,__spreadValues({inExtensionLocale:n3,style:"currency",currency:(a2=e2.currency,"current"in a2?a2.current.isoCode:a2.isoCode)},r3));var a2}),formatDate:Mi(function(t3,i3){const _a5=i3!=null?i3:{},{inExtensionLocale:n3}=_a5,s3=__objRest(_a5,["inExtensionLocale"]),a2=Bi(true===n3?e2.extensionLanguage:e2.language),o2=Li(a2,s3);let l2=r2.get(o2);l2||(l2=(function(e3,t4){return ji(e3,e4=>new Intl.DateTimeFormat(zi(e4),t4))})(a2,s3),r2.set(o2,l2));try{return l2.format(t3)}catch(c2){if(c2 instanceof RangeError)throw new Di("i18n.formatDate(): date must be a valid Date",{cause:c2});throw c2}}),translate:Mi((n3,r3)=>{const s3=r3!=null?r3:{};let a2=t2[n3],o2=false;const l2=Bi(e2.extensionLanguage);function c2(e3){if("local"===i2)throw new Di("translate(): ".concat(e3));console.error(new Di("translate(): ".concat(e3)))}if("number"==typeof s3.count){const e3=(function(e4){return ji(e4,e5=>new Intl.PluralRules(e5))})(l2).select(s3.count),i3="".concat(n3,".").concat(e3);if(a2=t2[i3],void 0===a2){const r4=t2["".concat(n3,".other")];if("other"!==e3&&void 0!==r4)a2=r4,console.warn(new Di('translate(): MISSING PLURALIZATION KEY for locale "'.concat(l2,'": "').concat(i3,'". Using fallback key of "').concat(n3,'.other".')));else{if("string"!=typeof t2[n3]){const e4='MISSING PLURALIZATION KEY for locale "'.concat(l2,'": "').concat(i3,'"');return c2(e4),e4}o2=true,a2=t2[n3]}}}else if("string"==typeof s3.count&&"string"==typeof t2[n3])a2=t2[n3];else if(void 0!==s3.count){const e3='INCORRECT TYPE for options.count. Must be typeof "number".';return c2(e3),e3}if(void 0===a2){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(l2,'": "').concat(n3,'"');for(const n4 of e3)if(void 0!==t2[n4]){i3='MISSING PROPERTY "options.count" for pluralization.',c2(i3);break}return c2(i3),i3}const u2=[],d2=/(.*?(?={{|$|\n))(?:{{(.+?(?=}}))}})?/g,b2=new Set(Object.keys(s3)),p2=new Set,h2=[];let f2=d2.exec(a2),m2=false;for(;f2&&!(f2.index>=a2.length);){const e3=f2[0],t3=f2[2],i3=t3==null?void 0:t3.trim(),r4=u2.length-1;let o3=f2[1]||"",h3=false;if(void 0!==i3){if(!b2.has(i3)){c2('MISSING PLACEHOLDER VALUE for locale "'.concat(l2,'": "options.').concat(t3,'" is required for "').concat(n3,'"')),u2.push(e3),f2=d2.exec(a2);continue}"string"==typeof s3[i3]||"number"==typeof s3[i3]?o3+=String(s3[i3]):void 0!==t3&&(m2=true,h3=true),p2.add(i3)}"string"==typeof u2[r4]?u2[r4]+=o3:u2.push(o3),h3&&void 0!==i3&&u2.push(s3[i3]),f2=d2.exec(a2)}for(const e3 of b2)false===o2&&"count"===e3||p2.has(e3)||h2.push('"{{'.concat(e3,'}}"'));return h2.length>0&&c2("".concat(1===h2.length?"MISSING PLACEHOLDER":"MISSING PLACEHOLDERS",' for locale "').concat(l2,'": ').concat(h2.join(", "),' not found in "').concat(n3,'"')),m2?u2:u2.join("")})}}function Li(e2,t2={}){return"".concat(e2,"|").concat(JSON.stringify(t2))}function ji(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 Bi(e2){return"current"in e2?e2.current.isoCode:e2.isoCode}function Fi(e2,t2,i2,n2,r2){const s2=$i(e2),a2=__spreadProps(__spreadValues({},s2),{i18n:Ii(s2.localization,i2,n2)}
1);var o2;return"signal"in(o2=a2)&&Object.assign(o2,{signal:Ti(o2.signal)}),a2.extensionPoint=t2,a2.extension.target=t2,a2}function $i(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,hi,{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]=$i(i2[t2])}return e2}return e2}const Ui=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 Ci("[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),Gi=(function(e2,{uuid:t2=bi,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=p2(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),h2(),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:h2();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]=t3[1],i4=o2.get(e4);if(null==i4)break;i4(...t3[1]),o2.delete(e4);break}case 3:{const[e4]=t3[1];c2.release(e4);break}case 6:{const[e4]=t3[1],i4=o2.get(e4);if(null==i4)break;i4(...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=p2(n3),[a3,o3]=c2.encode(i3);return u2(0,[n3,e3,a3],o3),s3}}function p2(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 h2(){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 qi(e2){return"object"==typeof e2&&null!==e2&&"ExtensionSandboxError"===e2.name}function Wi(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&&(Gi.replace(e2.__replace),e2.__replace.start())}),Object.defineProperty(self,"endpoint",{value:Gi,enumerable:false,writable:false,configurable:true});
1class Hi extends Error{constructor(){super(...arguments),this.name="RealmTeardownTimeoutError"}}let Yi=0;const Xi=new Map,Zi=new Map;function Ji(e2,t2){var _a5;e2.set(t2,((_a5=e2.get(t2))!=null?_a5:0)+1)}function Ki(){return Yi>0}function Qi(e2){var _a5;return((_a5=Xi.get(e2))!=null?_a5:0)>0}function en(e2){var _a5;return((_a5=Zi.get(e2))!=null?_a5:0)>0}function tn(e2){return Zi.has(e2)}function nn(e2,{anyRealmIsTearingDown:t2,realmScriptIsTearingDown:i2,realmScriptWasActivated:n2,hasLiveRealmForScript:r2}){return e2?i2(e2)||n2(e2)&&!r2(e2):t2()}function rn(e2){const t2=Zi.get(e2);void 0!==t2&&Zi.set(e2,Math.max(0,t2-1))}function sn(e2,t2){let i2;return()=>i2!=null?i2:i2=(function(e3,t3){return(()=>__async(null,null,function*(){let i3;Yi+=1,Ji(Xi,t3),rn(t3);try{yield Promise.race([e3(),new Promise((e4,t4)=>{i3=setTimeout(()=>t4(new Hi("Realm teardown timed out")),5e3)})])}finally{clearTimeout(i3),setTimeout(()=>{Yi=Math.max(0,Yi-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)})(Xi,t3)},2e3)}}))()})(e2,t2)}function an(e2){console.error("Unexpected sandbox error. This has been reported to the host.",e2)}const on=/^\/api\/.+\/graphql\.json$/,ln=/^(\/\/)?(\/)?storefront\/api\/(.+\/)?graphql\.json$/;function cn(){return __async(this,null,function*(){throw new Di('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 un(){throw new Di('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 dn={XMLHttpRequestUpload:true,XMLHttpRequestEventTarget:true,XMLHttpRequest:true,BackgroundFetchManager:true,BackgroundFetchRecord:true,BackgroundFetchRegistration:true,BackgroundFetchEvent:true,BackgroundFetchUpdateUIEvent:true,Cache:true,CacheStorage:true,caches:true,fetch:cn,Request:true,Response:true,Headers:true,Worker:true,SharedWorker:true,WebSocket:un,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 bn(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]=bn(e2[i2]);return t2}const pn=Request,hn=Response,fn=[101,103,204,205,304];function mn(_0){return __async(this,arguments,function*(e2,t2={}){const{port1:i2,port2:n2}=new MessageChannel;try{const r2=new pn(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=fn.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 gn=Date.now();function vn(e2){return"number"==typeof(performance==null?void 0:performance.timeOrigin)?e2+performance.timeOrigin:e2+gn}function yn(e2){const t2=vn(e2.settledAt);return __spreadValues({startTime:t2,timestamp:t2,ttsCompletionReason:e2.reason,ttsRenderObserved:e2.renderedContent},true===e2.fetchAttributable&&{ttsRequestCount:e2.fetchCount})}function En(){return{startTime:vn(performance.now()),timestamp:Date.now()}}
1const wn=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){Ui.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){Ui.throwDetachedOnce("bridge-notify-fetch-started",t2)}return()=>{try{for(const t2 of e2)t2.fetchResolved()}catch(t2){Ui.throwDetachedOnce("bridge-resolve-fetch",t2)}}}reset(){__privateGet2(this,_r3).clear()}},_r3=new WeakMap,_K),_n=Request,Sn=Response;let kn;function xn({allowNetworkAccess:e2,allowApiAccess:t2,storefrontUrl:i2,myshopifyDomain:n2,metrics:r2,extensionId:s2,instanceId:a2,capture:o2}){const l2=mn;return function(c2,u2){return __async(this,null,function*(){var _a5,_b3;let d2,b2,p2="external";const h2=performance.now(),{startTime:f2}=En();let m2;o2?(o2.fetchStarted(true),m2=()=>o2.fetchResolved()):m2=wn.notifyFetchStarted();try{if(!e2&&!t2)throw yield cn();let r3;try{r3=new _n(c2,u2)}catch(g2){throw new Di("Invalid request: ".concat(g2))}const s3=(function(e3,t3,i3){const n3=new URL(e3);if("shopify:"===n3.protocol)return ln.test(n3.pathname);const r4=new URL(t3),s4=new URL("https://".concat(i3));return(n3.host===r4.host||n3.host===s4.host)&&on.test(n3.pathname)})(r3.url,i2,n2);if(s3){if(p2="storefront",!t2)return yield(function(){return __async(this,null,function*(){throw new Di('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 kn(__spreadProps(__spreadValues({},bn(r3)),{headers:r3.headers?Array.from(r3.headers.entries()):[],body:e3}));return"status"in i3&&"number"==typeof i3.status&&(b2=i3.status),i3}if(p2="external",e2){const e3=yield l2(c2,u2);return"status"in e3&&"number"==typeof e3.status&&(b2=e3.status),e3}return yield cn()}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()-h2;r2.extensionPerformanceMarkFinished("extension-fetch-call",{type:"extension-fetch",startTime:f2,duration:n3,errorType:d2,destination:p2,httpStatus:b2,httpMethod:i3,origin:e3,requestUrl:t3,extensionId:s2,instanceId:a2})}})}}const An=new Map;function Nn(e2){const t2=(function({allowNetworkAccess:e3,allowApiAccess:t3,storefrontUrl:i2,myshopifyDomain:n2,metrics:r2,extensionId:s2,instanceId:a2,extensionTTSCapture:o2}){const l2=__spreadProps(__spreadValues({},dn),{fetch:xn({allowNetworkAccess:e3,allowApiAccess:t3,storefrontUrl:i2,myshopifyDomain:n2,metrics:r2,extensionId:s2,instanceId:a2,capture:o2})});return e3||t3?__spreadProps(__spreadValues({},l2),{WebSocket:!e3&&un,Request:false,Response:false,Headers:false}):l2})(e2.protectedApi);
1for(const i2 of Object.keys(t2)){const t3=An.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 Tn(e2,t2){let i2=e2;for(;i2;){const e3=Object.getOwnPropertyDescriptor(i2,t2);if(e3)return e3;i2=Object.getPrototypeOf(i2)}}class Cn extends CustomEvent{respondWith(e2){this.response=e2}}const Dn=Object.freeze({});class On 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){zn(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,p2=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)=>{p2.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,Dn)}),null!=i2&&(Array.isArray(i2)?i2.forEach(e3=>{zn(e3,void 0,o2,d2,l2,c2)}):Object.keys(i2).forEach(e3=>{zn(e3,i2[e3],o2,d2,l2,c2)})),null!=n2&&n2.forEach(e3=>{b2.set(e3,Dn),o2.add(e3)}),null!=r2&&(Array.isArray(r2)?r2.forEach(e3=>{p2.set(e3,Dn)}):Object.keys(r2).forEach(e3=>{p2.set(e3,r2[e3])})),null!=s2)if(Array.isArray(s2))for(const h2 of s2)this.prototype[h2]=function(...e3){return this.callRemoteMethod(h2,...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:p2,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=Mn(this).properties.get(i3))!=null?_a6:null},set:e3=>{const t4=Mn(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,Ln)}disconnectedCallback(){for(const[e2,t2]of this.constructor.remoteEventDefinitions.entries())t2.bubbles&&this.removeEventListener(e2,Ln)}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=Mn(this),l2=Rn.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 Pn.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",()=>{Pn.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=Vn.get(this))==null?void 0:_a5.listeners.get(t2),r2=n2?n2[0]:t2;super.removeEventListener(e2,r2,i2),null!=n2&&Pn.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(On,"slottable",true);__publicField(On,"__finalized",true);__publicField(On,"__observedAttributes",[]);__publicField(On,"__attributeToPropertyMap",(()=>new Map)());__publicField(On,"__eventToPropertyMap",(()=>new Map)());__publicField(On,"__remotePropertyDefinitions",(()=>new Map)());__publicField(On,"__remoteAttributeDefinitions",(()=>new Map)());__publicField(On,"__remoteEventDefinitions",(()=>new Map)());__publicField(On,"__remoteSlotDefinitions",(()=>new Map)());const Vn=new WeakMap;function Mn(e2){let t2=Vn.get(e2);return t2||(t2={events:new Map,properties:new Map,listeners:new WeakMap},Vn.set(e2,t2),t2)}function Rn(e2,{property:t2,definition:i2}){const n2=Mn(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 Cn(e2,{detail:t3[0],bubbles:i2==null?void 0:i2.bubbles});return this.dispatchEvent(n3),n3.response}},n2.events.set(e2,r2)),r2}function Pn(e2,t2,i2){var _a5,_b3;const n2=Mn(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 zn(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 p2,h2;true===u2?p2=In(e2):"string"==typeof u2&&(p2=u2),p2&&(Array.isArray(i2)?i2.push(p2):i2.add(p2),r2.set(p2,e2)),true===d2?h2=In(a2?e2.slice(2):e2):"string"==typeof d2&&(h2=d2),h2&&s2.set(h2,e2);const f2={name:e2,type:c2,alias:l2,event:h2,attribute:p2,default:b2};if(n2.set(e2,f2),l2)for(const m2 of l2)n2.set(m2,f2);return f2}function In(e2){return e2.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ln(){}class jn{constructor(e2,{batch:t2=Bn()}={}
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 Bn(){return e2=>{"function"!=typeof queueMicrotask?Promise.resolve().then(e2):queueMicrotask(e2)}}const Fn=class extends On{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)}};Fn.propertyDescriptors={};let $n=Fn;function Un(e2={}){const{defaultValue:t2}=e2,i2=t2!=null?t2:"";return{defaultValue:i2,get:e3=>e3||i2,toAttribute:e3=>e3===i2?null:e3}}function Gn(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 qn={id:Gn(Un(),{attribute:"id"}),title:Gn(Un(),{attribute:"title"})},Wn=class extends $n{static get remoteAttributes(){return["id","title"]}};Wn.tagName="s-abbreviation",Wn.propertyDescriptors=qn,Wn.listensToBubbledEvents=true;let Hn=Wn;const Yn=class extends $n{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"})}}}};Yn.tagName="s-announcement";let Xn=Yn;function Zn(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||!Zn(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&&Zn(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 Kn=xi,Qn={id:Gn(Un(),{attribute:"id"}),size:Gn(Jn(["small-200","small-100","small","base","large","large-100"],{defaultValue:"base",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"size"}),tone:Gn(Jn(["auto","neutral","custom","info","success","warning","critical"],{defaultValue:"auto"}),{attribute:"tone"}),type:Gn(Jn([...xi,""],{defaultValue:""}),{attribute:"type"})},er={color:Gn(Jn(["base","subdued"],{defaultValue:"base"}),{attribute:"color"}),icon:Gn(Jn([...Kn,""],{defaultValue:""}),{attribute:"icon"}),iconPosition:Gn(Jn(["start","end"],{defaultValue:"start"}),{attribute:"iconposition"}),id:Gn(Un(),{attribute:"id"}),size:Gn(Jn(["small","small-100","base"],{defaultValue:"base",mapAliases:{small:"small-100"}}),{attribute:"size"}),tone:Gn(Jn(["auto","neutral","critical"],{defaultValue:"auto"}),{attribute:"tone"})},tr=class extends $n{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:Gn(nr(),{attribute:"collapsible"}
1),dismissible:Gn(nr(),{attribute:"dismissible"}),heading:Gn(Un(),{attribute:"heading"}),hidden:Gn(nr(),{attribute:"hidden"}),id:Gn(Un(),{attribute:"id"}),tone:Gn(Jn(["auto","info","success","warning","critical"],{defaultValue:"auto"}),{attribute:"tone"})},sr=class extends $n{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=new RegExp("^(".concat(ki,")(?:px|%)$"),"i");function lr({defaultValue:e2,type:t2}){return{defaultValue:e2,get:i2=>cr(i2,t2)?i2:e2}}function cr(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=or.exec(e2);return null!==i2&&Number.isFinite(Number(i2[1]))}function ur(){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?cr(n2,"size"):"auto"===n2&&cr(i2,"size")})(e2)?e2:"auto"}}function dr(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 br=["none","solid","dashed","dotted","auto",""],pr=["base","large","large-100","large-200","none",""],hr=dr({Size:pr,Style:br,Color:["base"]},["none","{Size}","{Size} {Color}","{Size} {Color} {Style}"]),fr=["base","small-500","small-400","small-300","small-200","small-100","small","large","large-100","large-200","large-300","large-400","large-500","none"],mr={background:Gn(Jn(["transparent","subdued","base"],{defaultValue:"transparent"}),{attribute:"background"})},gr={border:Gn(Jn(hr,{defaultValue:"none",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"border"}),borderRadius:Gn(Jn(["small-100","small","base","large","large-100","max","none"],{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"borderradius"}),borderStyle:Gn(Jn(br,{defaultValue:"",separator:" "}),{attribute:"borderstyle"}),borderWidth:Gn(Jn(pr,{defaultValue:"",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"borderwidth"})},vr={display:Gn(Jn(["none","auto"],{defaultValue:"auto",canBeResponsive:true}),{attribute:"display"})},yr={blockSize:Gn(lr({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),inlineSize:Gn(lr({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),maxBlockSize:Gn(lr({defaultValue:"none",type:"none"}),{attribute:"maxblocksize"}),maxInlineSize:Gn(lr({defaultValue:"none",type:"none"}),{attribute:"maxinlinesize"}),minBlockSize:Gn(lr({defaultValue:"0",type:"size"}),{attribute:"minblocksize"}),minInlineSize:Gn(lr({defaultValue:"0",type:"size"}),{attribute:"mininlinesize"})},Er={overflow:Gn(Jn(["visible","hidden"],{defaultValue:"visible"}),{attribute:"overflow"})},wr={padding:Gn(Jn(fr,{defaultValue:"none",separator:" ",canBeResponsive:true}),{attribute:"padding"}),paddingBlock:Gn(Jn([...fr,""],{defaultValue:"",separator:" ",canBeResponsive:true}),{attribute:"paddingblock"}),paddingBlockEnd:Gn(Jn([...fr,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddingblockend"}),paddingBlockStart:Gn(Jn([...fr,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddingblockstart"}),paddingInline:Gn(Jn([...fr,""],{defaultValue:"",separator:" ",canBeResponsive:true}),{attribute:"paddinginline"}),paddingInlineEnd:Gn(Jn([...fr,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddinginlineend"}),paddingInlineStart:Gn(Jn([...fr,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddinginlinestart"})},_r=__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({},mr),gr),vr),Er),wr),yr),{accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),accessibilityRole:Gn(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:Gn(Jn(["visible","hidden","exclusive"],{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),id:Gn(Un(),{attribute:"id"})}),Sr={insetBlock:Gn(ur(),{attribute:"insetblock"}),insetInline:Gn(ur(),{attribute:"insetinline"}),position:Gn(Jn(["absolute","relative"],{defaultValue:"relative"}),{attribute:"position"}),transform:Gn({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=>cr(e4.trim(),"size"))})(e2)?e2:"none"},{attribute:"transform"})},kr=class extends $n{static get remoteAttributes(){return["accessibilitylabel","accessibilityrole","accessibilityvisibility","background","blocksize","border","borderradiu
1s","borderstyle","borderwidth","display","id","inlinesize","insetblock","insetinline","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart","position","transform"]}};kr.tagName="s-box",kr.propertyDescriptors=__spreadValues(__spreadValues({},_r),Sr),kr.listensToBubbledEvents=true;let xr=kr;const Ar={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),command:Gn(Jn(["--auto","--toggle","--copy","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Gn(Un(),{attribute:"commandfor"}),disabled:Gn(nr(),{attribute:"disabled"}),href:Gn(Un(),{attribute:"href"}),id:Gn(Un(),{attribute:"id"}),inlineSize:Gn(Jn(["auto","fill","fit-content"],{defaultValue:"auto"}),{attribute:"inlinesize"}),interestFor:Gn(Un(),{attribute:"interestfor"}),loading:Gn(nr(),{attribute:"loading"}),target:Gn(Jn(["auto","_blank"],{defaultValue:"auto"}),{attribute:"target"}),tone:Gn(Jn(["auto","neutral","critical"],{defaultValue:"auto"}),{attribute:"tone"}),type:Gn(Jn(["button","submit"],{defaultValue:"button"}),{attribute:"type"}),variant:Gn(Jn(["auto","primary","secondary"],{defaultValue:"auto"}),{attribute:"variant"})},Nr=class extends $n{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})}}}};Nr.tagName="s-button",Nr.propertyDescriptors=Ar;let Tr=Nr;const Cr={id:Gn(Un(),{attribute:"id"}),accessibilityLabel:Gn(Un(),{attribute:"accessibility-label"}),inlineSize:Gn(lr({defaultValue:"0",type:"size"}),{attribute:"inline-size"}),blockSize:Gn(lr({defaultValue:"0",type:"size"}),{attribute:"block-size"})},Dr=class extends $n{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)}}}};Dr.tagName="s-chat",Dr.propertyDescriptors=Cr;let Or=Dr;const Vr={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),command:Gn(Jn(["--auto","--toggle","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Gn(Un(),{attribute:"commandfor"}),defaultChecked:Gn(nr(),{attribute:"checked"}),disabled:Gn(nr(),{attribute:"disabled"}),error:Gn(Un(),{attribute:"error"}),id:Gn(Un(),{attribute:"id"}),label:Gn(Un(),{attribute:"label"}),name:Gn(Un(),{attribute:"name"}),required:Gn(nr(),{attribute:"required"}),value:Gn(Un(),{attribute:"value"})},Mr=class extends $n{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,Mr.tagName="s-checkbox",Mr.propertyDescriptors=Vr;let Rr=Mr;const Pr={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),id:Gn(Un(),{attribute:"id"})},zr=class extends $n{static get remoteAttributes(){return["accessibilitylabel","id"]}static get remoteEvents(){return{click:{bubbles:true,dispatchEvent:()=>new Event("click",{bubbles:true})}}}};zr.tagName="s-chip",zr.propertyDescriptors=Pr;let Ir=zr;const Lr={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),disabled:Gn(nr(),{attribute:"disabled"}),id:Gn(Un(),{attribute:"id"}),label:Gn(Un(),{attribute:"label"}),value:Gn(Un(),{attribute:"value"}),defaultSelected:Gn(nr(),{attribute:"selected"})},jr=class extends $n{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,jr.tagName="s-choice",jr.propertyDescriptors=Lr;let Br=jr;const Fr={disabled:Gn(nr(),{attribute:"disabled"}),error:Gn(Un(),{attribute:"error"}),id:Gn(Un(),{attribute:"id"}),label:Gn(Un(),{attribute:"label"}),labelAccessibilityVisibility:Gn(Jn(["visible","exclusive"],{defaultValue:"visible"}),{attribute:"labelaccessibilityvisibility"}),multiple:Gn(nr(),{attribute:"multiple"}),name:Gn(Un(),{attribute:"name"}),variant:Gn(Jn(["list","block","inline","grid","auto"],{defaultValue:"list"}),{attribute:"variant"})},$r=class extends $n{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 Br&&t2 instanceof Br))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 Br&&__privateMethod(this,n,a).call(this,e2);const t2=super.removeChild(e2);return e2 instanceof Br&&__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 Br?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)},$r.tagName="s-choice-list",$r.propertyDescriptors=Fr,Object.entries(Fr).forEach(([e2,t2])=>{Object.defineProperty($r.prototype,e2,{get(){return t2.get.call(this)},set(e3){t2.set.call(this,e3)}})});let Ur=$r;const Gr=["none","solid","dashed","dotted","auto",""],qr=["base","large","large-100","large-200","none",""],Wr=dr({Size:qr,Style:Gr,Color:["base"]},["none","{Size}","{Size} {Color}","{Size} {Color} {Style}"]),Hr=__spreadProps(__spreadValues({},wr),{accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),accessibilityVisibility:Gn(Jn(["visible","hidden","exclusive"],{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),background:Gn(Jn(["transparent","subdued","base"],{defaultValue:"transparent"}),{attribute:"background"}),blockSize:Gn(lr({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),border:Gn(Jn(Wr,{defaultValue:"none",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"border"}),borderColor:Gn(Un(),{attribute:"bordercolor"}),borderRadius:Gn(Jn(["small-100","small","base","large","large-100","max","none"],{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"}}
1),{attribute:"borderradius"}),borderStyle:Gn(Jn(Gr,{defaultValue:"",separator:" "}),{attribute:"borderstyle"}),borderWidth:Gn(Jn(qr,{defaultValue:"",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"borderwidth"}),command:Gn(Jn(["--auto","--toggle","--copy","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Gn(Un(),{attribute:"commandfor"}),disabled:Gn(nr(),{attribute:"disabled"}),display:Gn(Jn(["none","auto"],{defaultValue:"auto"}),{attribute:"display"}),href:Gn(Un(),{attribute:"href"}),id:Gn(Un(),{attribute:"id"}),interestFor:Gn(Un(),{attribute:"interestfor"}),inlineSize:Gn(lr({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),lang:Gn(Un(),{attribute:"lang"}),loading:Gn(nr(),{attribute:"loading"}),maxBlockSize:Gn(lr({defaultValue:"none",type:"none"}),{attribute:"maxblocksize"}),maxInlineSize:Gn(lr({defaultValue:"none",type:"none"}),{attribute:"maxinlinesize"}),minBlockSize:Gn(lr({defaultValue:"0",type:"size"}),{attribute:"minblocksize"}),minInlineSize:Gn(lr({defaultValue:"0",type:"size"}),{attribute:"mininlinesize"}),overflow:Gn(Jn(["visible","hidden"],{defaultValue:"visible"}),{attribute:"overflow"}),target:Gn(Jn(["auto","_blank"],{defaultValue:"auto"}),{attribute:"target"}),type:Gn(Jn(["button","submit"],{defaultValue:"button"}),{attribute:"type"})}),Yr=class extends $n{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")}}}}};Yr.tagName="s-clickable",Yr.propertyDescriptors=Hr;let Xr=Yr;const Zr={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),disabled:Gn(nr(),{attribute:"disabled"}),hidden:Gn(nr(),{attribute:"hidden"}),href:Gn(Un(),{attribute:"href"}),id:Gn(Un(),{attribute:"id"}),removable:Gn(nr(),{attribute:"removable"})},Jr=class extends $n{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})}}}};Jr.tagName="s-clickable-chip",Jr.propertyDescriptors=Zr;let Kr=Jr;const Qr=__spreadProps(__spreadValues({},Vr),{policy:Gn(Un(),{attribute:"policy"})}),es=class extends $n{constructor(){super(),__privateAdd(this,b),__privateAdd(this,p),__privateSet(this,p,true),setTimeout(()=>{__privateSet(this,p,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,p))return super.setAttribute(e2,t2);console.warn("ConsentCheckbox: checked cannot be set after first tick")}removeAttribute(e2){if("checked"!==e2||__privateGet(this,p))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,p=new WeakMap,es.tagName="s-consent-checkbox",es.propertyDescriptors=Qr;let ts=es;function is({defaultValue:e2="on"}={}){return{defaultValue:e2,get:t2=>(function(e3){if("undefined"==typeof window||!window.document)return e3;ns||(ns=window.document.createElement("input")),ns.autocomplete=String(e3);const t3=ns.autocomplete;return ns.autocomplete="",t3})(t2!=null?t2:e2)}}let ns=null;function rs({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 ss={defaultValue:Gn(Un(),{attribute:"value"}),disabled:Gn(nr(),{attribute:"disabled"}),error:Gn(Un(),{attribute:"error"}),id:Gn(Un(),{attribute:"id"}),label:Gn(Un(),{attribute:"label"}),labelAccessibilityVisibility:Gn(Jn(["visible","exclusive"],{defaultValue:"visible"}),{attribute:"labelaccessibilityvisibility"}),name:Gn(Un(),{attribute:"name"}),placeholder:Gn(Un(),{attribute:"placeholder"}),readOnly:Gn(nr(),{attribute:"readonly"}),required:Gn(nr(),{attribute:"required"})},as=__spreadProps(__spreadValues({},ss),{autocomplete:Gn(is({defaultValue:"on"}),{attribute:"autocomplete"}),icon:Gn(Jn([...Kn,""],{defaultValue:""}),{attribute:"icon"}),maxLength:Gn(rs({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:Gn(rs({defaultValue:0,min:0,floor:true}),{attribute:"minlength"}),prefix:Gn(Un(),{attribute:"prefix"}),suffix:Gn(Un(),{attribute:"suffix"})}),os=class extends $n{constructor(){super(...arguments),__privateAdd(this,h)}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,h,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,h,String(e2)),new Event("input",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get value(){var _a5;return(_a5=__privateGet(this,h))!=null?_a5:this.defaultValue}set value(e2){__privateSet(this,h,null===e2?"":String(e2)),this.__sync()}__sync(){this.updateRemoteProperty("value",[this.value])}};h=new WeakMap,os.tagName="s-text-field",os.propertyDescriptors=as;let ls=os;const cs=__spreadProps(__spreadValues({},ss),{autocomplete:Gn(is({defaultValue:"on"}),{attribute:"autocomplete"}),type:Gn(Jn(["mobile",""],{defaultValue:""}),{attribute:"type"})}),us=class extends ls{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","name","placeholder","readonly","required","type","value"]}};us.tagName="s-phone-field",us.propertyDescriptors=cs;let ds=us;const bs=__spreadProps(__spreadValues({},cs),{policy:Gn(Un(),{attribute:"policy"})}),ps=class extends ds{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=bs;let hs=ps;const fs={id:Gn(Un(),{attribute:"id"}),text:Gn(Un(),{attribute:"text"})},ms=class extends $n{static get remoteAttributes(){return["id","text"]}static get remoteEvents(){return{copy:{bubbles:true,dispatchEvent:()=>new ClipboardEvent("copy",{bubbles:true})},copyerror:{dispatchEvent:()=>new Event("copyerror")}}}};ms.tagName="s-clipboard-item",ms.propertyDescriptors=fs;let gs=ms;const vs=__spreadProps(__spreadValues({},ss),{autocomplete:Gn(is({defaultValue:"on"}),{attribute:"autocomplete"}),allow:Gn(Un(),{attribute:"allow"}),disallow:Gn(Un(),{attribute:"disallow"}),allowDays:Gn(Un(),{attribute:"allowdays"}),disallowDays:Gn(Un(),{attribute:"disallowdays"}),defaultView:Gn(Un(),{attribute:"view"})}),ys=class extends ls{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,ys.tagName="s-date-field",ys.propertyDescriptors=vs;let Es=ys;const ws={allow:Gn(Un(),{attribute:"allow"}),allowDays:Gn(Un(),{attribute:"allowdays"}),defaultValue:Gn(Un(),{attribute:"value"}),defaultView:Gn(Un(),{attribute:"view"}),disabled:Gn(nr(),{attribute:"disabled"}),disallow:Gn(Un(),{attribute:"disallow"}),disallowDays:Gn(Un(),{attribute:"disallowdays"}),id:Gn(Un(),{attribute:"id"}),name:Gn(Un(),{attribute:"name"}),type:Gn(Jn(["single","multiple","range"],{defaultValue:"single"}),{attribute:"type"})},_s=class extends $n{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,_s.tagName="s-date-picker",_s.propertyDescriptors=ws;let Ss=_s;const ks={id:Gn(Un(),{attribute:"id"}),name:Gn(Un(),{attribute:"name"}),defaultOpen:Gn(nr(),{attribute:"open"}),toggleTransition:Gn(Jn(["auto","none"],{defaultValue:"auto"}),{attribute:"toggleTransition"})},xs=class extends $n{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,xs.tagName="s-details",xs.propertyDescriptors=ks,xs.listensToBubbledEvents=true;let As=xs;const Ns={id:Gn(Un(),{attribute:"id"}),direction:Gn(Jn(["inline","block"],{defaultValue:"inline"}),{attribute:"direction"})},Ts=class extends $n{static get remoteAttributes(){return["id","direction"]}};Ts.tagName="s-divider",Ts.propertyDescriptors=Ns;let Cs=Ts;const Ds={accept:Gn(Un(),{attribute:"accept"}),accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),disabled:Gn(nr(),{attribute:"disabled"}),error:Gn(Un(),{attribute:"error"}),id:Gn(Un(),{attribute:"id"}),label:Gn(Un(),{attribute:"label"}),multiple:Gn(nr(),{attribute:"multiple"}),name:Gn(Un(),{attribute:"name"}),required:Gn(nr(),{attribute:"required"})},Os=class extends $n{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())},Os.tagName="s-drop-zone",Os.propertyDescriptors=Ds;let Vs=Os;const Ms=__spreadProps(__spreadValues({},ss),{autocomplete:Gn(is({defaultValue:"email"}),{attribute:"autocomplete"}),maxLength:Gn(rs({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:Gn(rs({defaultValue:0,min:0,floor:true}),{attribute:"minlength"})}),Rs=class extends ls{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","placeholder","readonly","required","value"]}};Rs.tagName="s-email-field",Rs.propertyDescriptors=Ms;let Ps=Rs;class zs extends Event{constructor(e2,t2){super(e2,{bubbles:t2==null?void 0:t2.bubbles})}}class Is extends Event{constructor(e2){super("viewchange",{bubbles:e2.bubbles}),this.location=e2.location,this.zoom=e2.zoom}}
1class Ls extends Event{constructor(e2){super("boundschange",{bubbles:e2.bubbles}),this.bounds=e2.bounds}}class js extends Event{constructor(e2){super("click",{bubbles:e2.bubbles}),this.location=e2.location}}class Bs extends Event{constructor(e2){super("dblclick",{bubbles:e2.bubbles}),this.location=e2.location}}const Fs={disabled:Gn(nr(),{attribute:"disabled"}),id:Gn(Un(),{attribute:"id"})},$s=class extends $n{static get remoteAttributes(){return["disabled","id"]}static get remoteEvents(){return{submit:{bubbles:true,dispatchEvent:()=>new zs("submit",{bubbles:true})}}}};$s.tagName="s-form",$s.propertyDescriptors=Fs,$s.listensToBubbledEvents=true;let Us=$s;const Gs=["","normal","space-between","space-around","space-evenly","stretch","center","start","end"],qs=["","normal","stretch","center","start","end"],Ws=["","normal","space-between","space-around","space-evenly","stretch","center","start","end"],Hs=["","normal","stretch","center","start","end"],Ys=dr({AlignContent:Gs,JustifyContent:Ws},["{AlignContent}","{AlignContent} {JustifyContent}"]),Xs=dr({AlignItems:qs,JustifyItems:Hs},["{AlignItems}","{AlignItems} {JustifyItems}"]),Zs=__spreadProps(__spreadValues({},_r),{alignContent:Gn(Jn(Gs,{defaultValue:"",canBeResponsive:true}),{attribute:"aligncontent"}),alignItems:Gn(Jn(qs,{defaultValue:"",canBeResponsive:true}),{attribute:"alignitems"}),columnGap:Gn(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:Gn(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:Gn(Un({defaultValue:"none"}),{attribute:"gridtemplatecolumns"}),gridTemplateRows:Gn(Un({defaultValue:"none"}),{attribute:"gridtemplaterows"}),justifyContent:Gn(Jn(Ws,{defaultValue:"",canBeResponsive:true}),{attribute:"justifycontent"}),justifyItems:Gn(Jn(Hs,{defaultValue:"",canBeResponsive:true}),{attribute:"justifyitems"}),placeContent:Gn(Jn(Ys,{defaultValue:"normal normal",separator:" ",canBeResponsive:true}),{attribute:"placecontent"}),placeItems:Gn(Jn(Xs,{defaultValue:"normal normal",separator:" ",canBeResponsive:true}),{attribute:"placeitems"}),rowGap:Gn(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"})}),Js=class extends $n{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"]}};Js.tagName="s-grid",Js.propertyDescriptors=Zs,Js.listensToBubbledEvents=true;let Ks=Js;function Qs(){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 ea=__spreadProps(__spreadValues({},_r),{gridColumn:Gn(Qs(),{attribute:"gridcolumn"}),gridRow:Gn(Qs(),{attribute:"gridrow"})}),ta=class extends $n{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"]}};ta.tagName="s-grid-item",ta.propertyDescriptors=ea,ta.listensToBubbledEvents=true;let ia=ta;const na={accessibilityRole:Gn(Jn(["heading","presentation","none"],{defaultValue:"heading"}),{attribute:"accessibilityrole"}),id:Gn(Un(),{attribute:"id"})},ra=class extends $n{static get remoteAttributes(){return["accessibilityrole","id"]}};ra.tagName="s-heading",ra.propertyDescriptors=na,ra.listensToBubbledEvents=true;let sa=ra;const aa=class extends $n{static get remoteAttributes(){return["id","size","tone","type"]}};aa.tagName="s-icon",aa.propertyDescriptors=Qn;let oa=aa;const la="1/1",ca=["none","solid","dashed","dotted","auto"],ua=["none","base","large","large-100","large-200"],da=dr({Size:ua,Style:ca,Color:["base"]},["none","{Size}","{Size} {Color}","{Size} {Color} {Style}"]),ba={accessibilityRole:Gn(Jn(["img","presentation","none"],{defaultValue:"img"}),{attribute:"accessibilityrole"}),alt:Gn(Un(),{attribute:"alt"}),aspectRatio:Gn({defaultValue:la,get(e2){if(!e2||"string"!=typeof e2)return la;const t2=e2.split("/");if(t2.length>2)return la;const i2=t2.map(e3=>Number(e3.trim()||NaN));if(i2.some(e3=>isNaN(e3)||e3<=0||e3===1/0))return la;if(1===i2.length){const e3=i2[0];return e3?"".concat(e3,"/1"):la}const[n2,r2]=i2;return n2&&r2?"".concat(n2,"/").concat(r2):la}},{attribute:"aspectratio"}),border:Gn(Jn(da,{defaultValue:"none",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"border"}),borderRadius:Gn(Jn(["small-100","small","base","large","large-100","max","none"],{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"borderradius"}),borderStyle:Gn(Jn(ca,{defaultValue:"",separator:" "}),{attribute:"borderstyle"}),borderWidth:Gn(Jn(ua,{defaultValue:"",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"borderwidth"}),id:Gn(Un(),{attribute:"id"}),inlineSize:Gn(Jn(["auto","fill"],{defaultValue:"fill"}),{attribute:"inlinesize"}),loading:Gn(Jn(["eager","lazy"],{defaultValue:"eager"}),{attribute:"loading"}),objectFit:Gn(Jn(["contain","cover"],{defaultValue:"contain"}),{attribute:"objectfit"}),sizes:Gn(Un(),{attribute:"sizes"}),src:Gn(Un(),{attribute:"src"}),srcSet:Gn(Un(),{attribute:"srcset"})},pa=class extends $n{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=ba;let ha=pa;const fa={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),command:Gn(Jn(["--auto","--toggle","--copy","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Gn(Un(),{attribute:"commandfor"}),href:Gn(Un(),{attribute:"href"}),id:Gn(Un(),{attribute:"id"}),interestFor:Gn(Un(),{attribute:"interestfor"}),lang:Gn(Un(),{attribute:"lang"}),target:Gn(Jn(["auto","_blank"],{defaultValue:"auto"}),{attribute:"target"}),tone:Gn(Jn(["auto","neutral"],{defaultValue:"auto"}),{attribute:"tone"})},ma=class extends $n{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})}}}};ma.tagName="s-link",ma.propertyDescriptors=fa;let ga=ma;const va={id:Gn(Un(),{attribute:"id"})},ya=class extends $n{static get remoteAttributes(){return["id"]}};ya.tagName="s-list-item",ya.propertyDescriptors=va,ya.listensToBubbledEvents=true;let Ea=ya;const wa={open:Gn(nr(),{attribute:"open"}),doRedirect:Gn(nr(),{attribute:"doredirect"}),modalTitle:Gn(Un(),{attribute:"modaltitle"}),modalDescription:Gn(Un(),{attribute:"modaldescription"}),modalLogoSrc:Gn(Un(),{attribute:"modallogosrc"}),modalContinueText:Gn(Un(),{attribute:"modalcontinuetext"}),modalCancelText:Gn(Un(),{attribute:"modalcanceltext"})};class _a2 extends Event{constructor(e2){super("statuschange"),this.status=e2}}function Sa(e2){return null!==e2&&("object"==typeof e2||"function"==typeof e2)&&"then"in e2&&"function"==typeof e2.then}const ka=class extends $n{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 Cn("complete")},statuschange:{dispatchEvent:e2=>new _a2(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 Cn&&(function(e3,t4){if(!Sa(t4))return;const i3=e3.response,n2=Sa(i3)?Promise.all([i3,t4]).then(()=>{}):Promise.resolve(t4);e3.respondWith(n2)})(t3,i2)},this.completeEventListeners.set(e2,t2)),t2}};ka.tagName="s-login-with-shop",ka.propertyDescriptors=wa;let xa=ka;const Aa={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),apiKey:Gn(Un(),{attribute:"apikey"}),blockSize:Gn(lr({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),id:Gn(Un(),{attribute:"id"}),inlineSize:Gn(lr({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),latitude:Gn(rs({defaultValue:0}),{attribute:"latitude"}),longitude:Gn(rs({defaultValue:0}),{attribute:"longitude"}),maxBlockSize:Gn(lr({defaultValue:"none",type:"none"}),{attribute:"maxblocksize"}),maxInlineSize:Gn(lr({defaultValue:"none",type:"none"}),{attribute:"maxinlinesize"}),maxZoom:Gn(rs({defaultValue:18}),{attribute:"maxzoom"}),minBlockSize:Gn(lr({defaultValue:"0",type:"size"}),{attribute:"minblocksize"}),minInlineSize:Gn(lr({defaultValue:"0",type:"size"}),{attribute:"mininlinesize"}),minZoom:Gn(rs({defaultValue:0}),{attribute:"minzoom"}),zoom:Gn(rs({defaultValue:4}),{attribute:"zoom"})},Na=class extends $n{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 Ls({bounds:e2})},click:{dispatchEvent:e2=>new js({location:e2})},dblclick:{dispatchEvent:e2=>new Bs({location:e2})},viewchange:{dispatchEvent:(e2,t2)=>new Is({location:e2,zoom:t2})}}}};Na.tagName="s-map",Na.propertyDescriptors=Aa;let Ta=Na;const Ca={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),blockSize:Gn(lr({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),command:Gn(Jn(["--auto","--toggle","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Gn(Un(),{attribute:"commandfor"}),clusterable:Gn(nr(),{attribute:"clusterable"}),inlineSize:Gn(lr({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),latitude:Gn(rs({defaultValue:0}),{attribute:"latitude"}),longitude:Gn(rs({defaultValue:0}),{attribute:"longitude"})},Da=class extends $n{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})}}}};Da.tagName="s-map-marker",Da.propertyDescriptors=Ca;let Oa=Da;const Va={accessibilitylabel:Gn(Un(),{attribute:"accessibilitylabel"}),heading:Gn(Un(),{attribute:"heading"}),id:Gn(Un(),{attribute:"id"}),padding:Gn(Jn(["none","base"],{defaultValue:"base"}),{attribute:"padding"}),size:Gn(Jn(["small-100","small","base","large-100","large","max"],{defaultValue:"base"}),{attribute:"size"})},Ma=class extends $n{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")}}}};Ma.tagName="s-modal",Ma.propertyDescriptors=Va,Ma.listensToBubbledEvents=true;let Ra=Ma;const Pa=__spreadProps(__spreadValues({},ss),{autocomplete:Gn(is({defaultValue:"on"}),{attribute:"autocomplete"}),max:Gn(rs({defaultValue:1/0}),{attribute:"max"}),min:Gn(rs({defaultValue:-1/0}
1),{attribute:"min"}),step:Gn(rs({defaultValue:1}),{attribute:"step"})}),za=class extends ls{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","max","min","name","readonly","required","step","value"]}};za.tagName="s-money-field",za.propertyDescriptors=Pa;let Ia=za;const La=__spreadProps(__spreadValues({},ss),{autocomplete:Gn(is({defaultValue:"on"}),{attribute:"autocomplete"}),controls:Gn(Jn(["auto","stepper","none"],{defaultValue:"auto"}),{attribute:"controls"}),inputMode:Gn(Jn(["decimal","numeric"],{defaultValue:"decimal"}),{attribute:"inputmode"}),max:Gn(rs({defaultValue:1/0}),{attribute:"max"}),min:Gn(rs({defaultValue:-1/0}),{attribute:"min"}),prefix:Gn(Un(),{attribute:"prefix"}),step:Gn(rs({defaultValue:1}),{attribute:"step"}),suffix:Gn(Un(),{attribute:"suffix"})}),ja=class extends ls{static get remoteAttributes(){return["autocomplete","controls","disabled","error","id","inputmode","label","labelaccessibilityvisibility","max","min","name","placeholder","prefix","readonly","required","step","suffix","value"]}};ja.tagName="s-number-field",ja.propertyDescriptors=La;let Ba=ja;const Fa={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),disabled:Gn(nr(),{attribute:"disabled"}),id:Gn(Un(),{attribute:"id"}),value:Gn(Un(),{attribute:"value"}),defaultSelected:Gn(nr(),{attribute:"selected"})},$a=class extends $n{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()},$a.tagName="s-option",$a.propertyDescriptors=Fa,Object.entries(Fa).forEach(([e2,t2])=>{Object.prototype.hasOwnProperty.call($a.prototype,e2)||Object.defineProperty($a.prototype,e2,{get(){return t2.get.call(this)},set(e3){t2.set.call(this,e3)}})});let Ua=$a;const Ga={id:Gn(Un(),{attribute:"id"})},qa=class extends $n{static get remoteAttributes(){return["id"]}};qa.tagName="s-ordered-list",qa.propertyDescriptors=Ga,qa.listensToBubbledEvents=true;let Wa=qa;const Ha={accessibilityVisibility:Gn(Jn(["visible","hidden","exclusive"],{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),color:Gn(Jn(["subdued","base"],{defaultValue:"base"}),{attribute:"color"}),dir:Gn(Jn(["","auto","ltr","rtl"],{defaultValue:""}),{attribute:"dir"}),id:Gn(Un(),{attribute:"id"}),lang:Gn(Un(),{attribute:"lang"}),tone:Gn(Jn(["auto","neutral","info","success","warning","critical","custom"],{defaultValue:"auto"}),{attribute:"tone"}),textAlign:Gn(Jn(["start","end","center","auto"],{defaultValue:"auto"}),{attribute:"textalign"}),type:Gn(Jn(["paragraph","small"],{defaultValue:"paragraph"}),{attribute:"type"})},Ya=class extends $n{static get remoteAttributes(){return["accessibilityvisibility","color","dir","id","lang","textalign","tone","type"]}};Ya.tagName="s-paragraph",Ya.propertyDescriptors=Ha,Ya.listensToBubbledEvents=true;let Xa=Ya;const Za=__spreadProps(__spreadValues({},ss),{autocomplete:Gn(is({defaultValue:"on"}),{attribute:"autocomplete"}),maxLength:Gn(rs({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:Gn(rs({defaultValue:0,min:0,floor:true}),{attribute:"minlength"})}),Ja=class extends ls{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","readonly","required","value"]}};Ja.tagName="s-password-field",Ja.propertyDescriptors=Za;let Ka=Ja;const Qa={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),id:Gn(Un(),{attribute:"id"}),type:Gn(Un(),{attribute:"type"})},eo=class extends $n{static get remoteAttributes(){return["accessibilitylabel","id","type"]}};eo.tagName="s-payment-icon",eo.propertyDescriptors=Qa;let to=eo;const io=__spreadProps(__spreadValues({},yr),{id:Gn(Un(),{attribute:"id"})}),no=class extends $n{static get remoteAttributes(){return["blocksize","id","inlinesize","maxblocksize","maxinlinesize","minblocksize","mininlinesize"]}static get remoteEvents(){return["hide","show"]}};
1no.tagName="s-popover",no.propertyDescriptors=io,no.listensToBubbledEvents=true;let ro=no;const so={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),defaultPressed:Gn(nr(),{attribute:"pressed"}),disabled:Gn(nr(),{attribute:"disabled"}),id:Gn(Un(),{attribute:"id"}),inlineSize:Gn(Jn(["auto","fill","fit-content"],{defaultValue:"auto"}),{attribute:"inlinesize"}),lang:Gn(Un(),{attribute:"lang"}),loading:Gn(nr(),{attribute:"loading"})},ao=class extends $n{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,ao.tagName="s-press-button",ao.propertyDescriptors=so;let oo=ao;const lo={alt:Gn(Un(),{attribute:"alt"}),size:Gn(Jn(["small-100","small","base"],{defaultValue:"base",mapAliases:{small:"small-100"}}),{attribute:"size"}),sizes:Gn(Un(),{attribute:"sizes"}),src:Gn(Un(),{attribute:"src"}),srcSet:Gn(Un(),{attribute:"srcset"}),totalItems:Gn(rs(),{attribute:"totalitems"})},co=class extends $n{static get remoteAttributes(){return["alt","size","sizes","src","srcset","totalitems"]}};co.tagName="s-product-thumbnail",co.propertyDescriptors=lo;let uo=co;const bo={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),id:Gn(Un(),{attribute:"id"}),max:Gn(rs({defaultValue:1,min:0}),{attribute:"max"}),tone:Gn(Jn(["auto","critical"],{defaultValue:"auto"}),{attribute:"tone"}),value:Gn(rs({min:0}),{attribute:"value"})},po=class extends $n{static get remoteAttributes(){return["accessibilitylabel","id","max","tone","value"]}};po.tagName="s-progress",po.propertyDescriptors=bo;let ho=po;const fo={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),border:Gn(Jn(["none","base"],{defaultValue:"base"}),{attribute:"border"}),content:Gn(Un(),{attribute:"content"}),id:Gn(Un(),{attribute:"id"}),size:Gn(Jn(["base","fill"],{defaultValue:"base"}),{attribute:"size"}),logo:Gn(Un(),{attribute:"logo"})},mo=class extends $n{static get remoteAttributes(){return["accessibilitylabel","border","content","id","size","logo"]}static get remoteEvents(){return{error:{dispatchEvent:()=>new Event("error")}}}};mo.tagName="s-qr-code",mo.propertyDescriptors=fo;let go=mo;const vo={containerName:Gn(Un(),{attribute:"containername"}),id:Gn(Un(),{attribute:"id"})},yo=class extends $n{static get remoteAttributes(){return["containername","id"]}};yo.tagName="s-query-container",yo.propertyDescriptors=vo;let Eo=yo;const wo=["auto","hidden"],_o=dr({BlockOverflow:wo,InlineOverflow:wo},["{BlockOverflow}","{BlockOverflow} {InlineOverflow}"]),So=__spreadProps(__spreadValues({},_r),{overflow:Gn(Jn(_o,{defaultValue:"auto"}),{attribute:"overflow"})}),ko=class extends $n{static get remoteAttributes(){return["accessibilitylabel","accessibilityrole","accessibilityvisibility","background","blocksize","border","borderradiu
1s","borderstyle","borderwidth","display","id","inlinesize","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart"]}};ko.tagName="s-scroll-box",ko.propertyDescriptors=So,ko.listensToBubbledEvents=true;let xo=ko;const Ao={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),heading:Gn(Un(),{attribute:"heading"}),id:Gn(Un(),{attribute:"id"}),padding:Gn(Jn(["base","none"],{defaultValue:"base"}),{attribute:"padding"})},No=class extends $n{static get remoteAttributes(){return["accessibilitylabel","heading","id","padding"]}};No.tagName="s-section",No.propertyDescriptors=Ao,No.listensToBubbledEvents=true;let To=No;const Co={id:Gn(Un(),{attribute:"id"}),label:Gn(Un(),{attribute:"label"}),name:Gn(Un(),{attribute:"name"}),placeholder:Gn(Un(),{attribute:"placeholder"}),required:Gn(nr(),{attribute:"required"}),disabled:Gn(nr(),{attribute:"disabled"}),error:Gn(Un(),{attribute:"error"}),autocomplete:Gn(Un(),{attribute:"autocomplete"})},Do=class extends $n{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 Ua?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 Ua&&e2.value===this.value&&this.__resetValue()},Do.tagName="s-select",Do.propertyDescriptors=Co,Object.entries(Co).forEach(([e2,t2])=>{Object.defineProperty(Do.prototype,e2,{get(){return t2.get.call(this)},set(e3){t2.set.call(this,e3)}})});let Oo=Do;const Vo={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),heading:Gn(Un(),{attribute:"heading"}),id:Gn(Un(),{attribute:"id"})},Mo=class extends $n{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,Mo.tagName="s-sheet",Mo.propertyDescriptors=Vo,Mo.listensToBubbledEvents=true;let Ro=Mo;const Po={content:Gn(Un(),{attribute:"content"}),id:Gn(Un(),{attribute:"id"})},zo=class extends $n{static get remoteAttributes(){return["content","id"]}};zo.tagName="s-skeleton-paragraph",zo.propertyDescriptors=Po;let Io=zo;const Lo={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),id:Gn(Un(),{attribute:"id"}),size:Gn(Jn(["small-100","small","base","large","large-100"],{defaultValue:"base",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"size"})},jo=class extends $n{static get remoteAttributes(){return["accessibilitylabel","id","size"]}};jo.tagName="s-spinner",jo.propertyDescriptors=Lo;let Bo=jo;const Fo=__spreadProps(__spreadValues({},_r),{accessibilityRole:Gn(Jn(["main","header","footer","section","aside","navigation","ordered-list","list-item","list-item-separator","unordered-list","separator","status","alert","generic","
1none"],{defaultValue:"generic"}),{attribute:"accessibilityrole"}),alignContent:Gn(Jn(["normal","space-between","space-around","space-evenly","stretch","center","start","end"],{defaultValue:"normal",canBeResponsive:true}),{attribute:"aligncontent"}),alignItems:Gn(Jn(["normal","stretch","center","start","end"],{defaultValue:"normal",canBeResponsive:true}),{attribute:"alignitems"}),columnGap:Gn(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:Gn(Jn(["inline","block"],{defaultValue:"block",canBeResponsive:true}),{attribute:"direction"}),gap:Gn(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:Gn(Jn(["normal","space-between","space-around","space-evenly","stretch","center","start","end"],{defaultValue:"normal",canBeResponsive:true}),{attribute:"justifycontent"}),rowGap:Gn(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"})}),$o=class extends $n{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"]}};$o.tagName="s-stack",$o.propertyDescriptors=Fo,$o.listensToBubbledEvents=true;let Uo=$o;const Go={id:Gn(Un(),{attribute:"id"})},qo=class extends $n{static get remoteAttributes(){return["id"]}};qo.tagName="s-summary",qo.propertyDescriptors=Go,qo.listensToBubbledEvents=true;let Wo=qo;const Ho={accessibilityLabel:Gn(Un(),{attribute:"accessibilitylabel"}),command:Gn(Jn(["--auto","--toggle","--show","--hide"],{defaultValue:"--auto"}),{attribute:"command"}),commandFor:Gn(Un(),{attribute:"commandfor"}),defaultChecked:Gn(nr(),{attribute:"checked"}),disabled:Gn(nr(),{attribute:"disabled"}),id:Gn(Un(),{attribute:"id"}),label:Gn(Un(),{attribute:"label"}),name:Gn(Un(),{attribute:"name"}),value:Gn(Un(),{attribute:"value"})},Yo=class extends $n{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,Yo.tagName="s-switch",Yo.propertyDescriptors=Ho;let Xo=Yo;const Zo=__spreadProps(__spreadValues({},ss),{autocomplete:Gn(is({defaultValue:"on"}),{attribute:"autocomplete"}),maxLength:Gn(rs({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:Gn(rs({defaultValue:0,min:0,floor:true}),{attribute:"minlength"}),rows:Gn(rs({defaultValue:2,min:1,floor:true}),{attribute:"rows"})}),Jo=class extends ls{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","placeholder","readonly","required","rows","value"]}};Jo.tagName="s-text-area",Jo.propertyDescriptors=Zo;let Ko=Jo;const Qo={accessibilityVisibility:Gn(Jn(["visible","hidden","exclusive"],{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),color:Gn(Jn(["subdued","base"],{defaultValue:"base"}),{attribute:"color"}),dir:Gn(Jn(["","auto","ltr","rtl"],{defaultValue:""}),{attribute:"dir"}),display:Gn(Jn(["auto","none"],{defaultValue:"auto",canBeResponsive:true}),{attribute:"display"}),id:Gn(Un(),{attribute:"id"}),lang:Gn(Un(),{attribute:"lang"}),tone:Gn(Jn(["auto","neutral","info","success","warning","critical","custom"],{defaultValue:"auto"}),{attribute:"tone"}),type:Gn(Jn(["address","redundant","mark","emphasis","offset","small","strong","generic"],{defaultValue:"generic"}),{attribute:"type"})},el=class extends $n{static get remoteAttributes(){return["accessibilityvisibility","color","dir","display","id","lang","tone","type"]}};el.tagName="s-text",el.propertyDescriptors=Qo,el.listensToBubbledEvents=true;let tl=el;const il={dateTime:Gn(Un(),{attribute:"datetime"}),id:Gn(Un(),{attribute:"id"})},nl=class extends $n{static get remoteAttributes(){return["datetime","id"]}};nl.tagName="s-time",nl.propertyDescriptors=il;let rl=nl;const sl={id:Gn(Un(),{attribute:"id"})},al=class extends $n{static get remoteAttributes(){return["id"]}};al.tagName="s-tooltip",al.propertyDescriptors=sl,al.listensToBubbledEvents=true;let ol=al;const ll={id:Gn(Un(),{attribute:"id"})},cl=class extends $n{static get remoteAttributes(){return["id"]}};cl.tagName="s-unordered-list",cl.propertyDescriptors=ll,cl.listensToBubbledEvents=true;let ul=cl;const dl=__spreadProps(__spreadValues({},ss),{autocomplete:Gn(is({defaultValue:"on"}),{attribute:"autocomplete"}),maxLength:Gn(rs({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:Gn(rs({defaultValue:0,min:0,floor:true}),{attribute:"minlength"})}),bl=class extends ls{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","readonly","required","value"]}};bl.tagName="s-url-field",bl.propertyDescriptors=dl;let pl=bl;var hl=Object.freeze({__proto__:null,SAbbreviationElement:Hn,SAnnouncementElement:Xn,SBadgeElement:ir,SBannerElement:ar,SBoxElement:xr,SButtonElement:Tr,SChatElement:Or,SCheckboxElement:Rr,SChipElement:Ir,SChoiceElement:Br,SChoiceListElement:Ur,SClickableChipElement:Kr,SClickableElement:Xr,SClipboardItemElement:gs,SConsentCheckboxElement:ts,SConsentPhoneFieldElement:hs,SDateFieldElement:Es,SDatePickerElement:Ss,SDetailsElement:As,SDividerElement:Cs,SDropZoneElement:Vs,SEmailFieldElement:Ps,SFormElement:Us,SGridElement:Ks,SGridItemElement:ia,SHeadingElement:sa,SIconElement:oa,SImageElement:ha,SLinkElement:ga,SListItemElement:Ea,SLoginWithShopElement:xa,SMapElement:Ta,SMapMarkerElement:Oa,SModalElement:Ra,SMoneyFieldElement:Ia,SNumberFieldElement:Ba,SOptionElement:Ua,SOrderedListElement:Wa,SParagraphElement:Xa,SPasswordFieldElement:Ka,SPaymentIconElement:to,SPhoneFieldElement:ds,SPopoverElement:ro,SPressButtonElement:oo,SProductThumbn
1ailElement:uo,SProgressElement:ho,SQRCodeElement:go,SQueryContainerElement:Eo,SScrollBoxElement:xo,SSectionElement:To,SSelectElement:Oo,SSheetElement:Ro,SSkeletonParagraphElement:Io,SSpinnerElement:Bo,SStackElement:Uo,SSummaryElement:Wo,SSwitchElement:Xo,STextAreaElement:Ko,STextElement:tl,STextFieldElement:ls,STimeElement:rl,STooltipElement:ol,SUnorderedListElement:ul,SUrlFieldElement:pl});function fl(e2){self.initialValues={acceptSmsMarketing:e2.protectedApi.initialValues.acceptSmsMarketing,smsMarketingPhone:e2.protectedApi.initialValues.smsMarketingPhone},Object.values(hl).forEach(t2=>{e2.global.customElements.define(t2.tagName,t2)})}Object.freeze(On.prototype),Object.freeze(Object.getPrototypeOf(On)),Object.freeze(Object.getPrototypeOf(On.prototype));const ml=new Set(["extend","setSignals"]);function gl(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 vl(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||!ml.has(r3))&&(c2=l3.join("."),i2&&!i2()||n2.has(c2)||(n2.add(c2),s2(c2))),vl(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 vl(e2){if("object"!=typeof e2||null===e2)return false;const t2=Object.getPrototypeOf(e2);return t2===Object.prototype||null===t2}const yl=e2=>{const{reportApiRead:t2,reportedApiPropertyNames:i2,isThisRealmTornDown:n2}=e2.protectedApi;"function"==typeof t2&&(e2.global.shopify=gl(e2.global.shopify,t2,{shouldReport:()=>!n2||!n2(),reportedApiPropertyNames:i2}))};function El(e2){const t2=new lt;t2[J]=Ct,e2.global=Object.assign(t2,e2.global),e2.global.window=e2.global,e2.global.self=e2.global,e2.global.globalThis=e2.global}function wl(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=Wi(n3,i2);return nn(r3,o2)?(e3.preventDefault(),e3.stopImmediatePropagation(),false):!qi(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 _l(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 Sl(e2){const{connection:t2,extensionTTSCapture:i2,isThisRealmTornDown:n2}=e2.protectedApi;let r2=false;const s2=(function(e3,t3,i3){return new jn({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 kl=e2=>{const t2=e2.global.shopify.extend;e2.global.shopify.extend=(i2,n2)=>{const r2=Ni(i2);r2===e2.protectedApi.target&&t2(r2,n2)}};
1class xl{constructor(e2){__privateAdd2(this,_xl_instances);__privateAdd2(this,_l3);__privateAdd2(this,_c2);__privateAdd2(this,_u2);__privateAdd2(this,_d2,false);__privateAdd2(this,_b2,0);__privateAdd2(this,_p2,0);__privateAdd2(this,_h2,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,_xl_instances,y_fn).call(this,this.recordMutation,"record-mutation"),this.fetchStarted=__privateMethod2(this,_xl_instances,y_fn).call(this,this.fetchStarted,"fetch-started"),this.fetchResolved=__privateMethod2(this,_xl_instances,y_fn).call(this,this.fetchResolved,"fetch-resolved");try{__privateSet2(this,_v2,setTimeout(()=>{try{__privateSet2(this,_v2,null),__privateMethod2(this,_xl_instances,E_fn).call(this,"exceeded-deadline")}catch(e3){__privateMethod2(this,_xl_instances,w_fn).call(this,"deadline-timer",e3)}},1e4))}catch(t2){__privateMethod2(this,_xl_instances,w_fn).call(this,"capture-construct",t2)}}recordMutation(){__privateGet2(this,_f2)||(__privateSet2(this,_d2,true),__privateSet2(this,_u2,performance.now()),__privateMethod2(this,_xl_instances,__fn).call(this,500))}fetchStarted(e2){if(__privateGet2(this,_f2))return;const t2=e2!=null?e2:__privateGet2(this,_c2).call(this);__privateGet2(this,_h2)&&!t2&&__privateSet2(this,_h2,false),__privateSet2(this,_p2,__privateGet2(this,_p2)+1),__privateSet2(this,_b2,__privateGet2(this,_b2)+1)}fetchResolved(){__privateGet2(this,_f2)||(__privateSet2(this,_b2,Math.max(0,__privateGet2(this,_b2)-1)),__privateMethod2(this,_xl_instances,S_fn).call(this)&&__privateMethod2(this,_xl_instances,__fn).call(this,0))}silence(){__privateSet2(this,_m2,true),__privateSet2(this,_f2,true),__privateMethod2(this,_xl_instances,k_fn).call(this),__privateMethod2(this,_xl_instances,x_fn).call(this)}}_l3=new WeakMap;_c2=new WeakMap;_u2=new WeakMap;_d2=new WeakMap;_b2=new WeakMap;_p2=new WeakMap;_h2=new WeakMap;_f2=new WeakMap;_m2=new WeakMap;_g2=new WeakMap;_v2=new WeakMap;_xl_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,_xl_instances,w_fn).call(this,t2,n2)}}};w_fn=function(e2,t2){this.silence(),Ui.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,_xl_instances,k_fn).call(this),__privateSet2(this,_g2,setTimeout(()=>{try{__privateSet2(this,_g2,null),__privateMethod2(this,_xl_instances,S_fn).call(this)&&__privateMethod2(this,_xl_instances,E_fn).call(this,"settled")}catch(e3){__privateMethod2(this,_xl_instances,w_fn).call(this,"settle-timer",e3)}},e2))};E_fn=function(e2){if(__privateSet2(this,_f2,true),__privateMethod2(this,_xl_instances,k_fn).call(this),__privateMethod2(this,_xl_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,_h2);__privateGet2(this,_l3).call(this,{reason:e2,renderedContent:true,fetchAttributable:t2,fetchCount:t2?__privateGet2(this,_p2):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 Al=new Map,Nl=new Map,Tl=En(),Cl=(function(){const e2=Gi;return e2.callable("reload"),e2.callable("apiFetch"),e2.callable("extensionPerformanceMarkStarted"),e2.callable("extensionPerformanceMarkFinished"),e2.callable("reportSandboxError"),e2.callable("reportApiRead"),e2})();var Dl;Dl=Cl,kn=e2=>__async(null,null,function*(){return(function(_a5){var _b3=_a5,{body:e3}=_b3,t2=__objRest(_b3,["body"]);return new Sn(e3,t2)})(yield Dl.call.apiFetch(e2))}),(function(){for(const e2 of Object.keys(dn)){const t2=Tn(self,e2);t2&&An.set(e2,t2),Object.defineProperty(self,e2,{value:void 0,configurable:false,enumerable:false})}})();const Ol=(function(e2){return{extensionPerformanceMarkStarted:(t2,i2={})=>{e2.call.extensionPerformanceMarkStarted(t2,__spreadValues(__spreadValues({},En()),i2))},extensionPerformanceMarkFinished:(t2,i2={})=>{e2.call.extensionPerformanceMarkFinished(t2,__spreadValues(__spreadValues({},En()),i2))}}})(Cl),Vl=(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)}})(Cl);function Ml(_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:p2}){const h2=Al.get(o2);if(!h2)throw new Vi("Contents not found for script URL: ".concat(o2));const f2=e2?new xl({isSoleCapture:()=>true,emit:e3=>{Ol.extensionPerformanceMarkFinished("extension-tts",__spreadValues({extensionId:a2,instanceId:s2},yn(e3)))}}):void 0;f2&&wn.registerCapture(s2,f2);
1const m2=[vi,Nn,kl,wl,yl],g2=e2?[El,fl,Sl,_l,...m2]:[e3=>{e3.global.document=void 0,e3.global.window=void 0},...m2],v2=new Si(h2,"",g2),y2={isTornDown:false};!(function(e3){Ji(Zi,e3)})(o2);try{const h3=Ni(i2),m3=Fi(t2,h3,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(),Ui.throwDetachedOnce("wrap-query-setup",i3)}})(m3,f2),Ol.extensionPerformanceMarkStarted("extension-tts",{instanceId:s2,extensionId:a2})),Ol.extensionPerformanceMarkStarted("partner-js-exec",{instanceId:s2,extensionId:a2}),v2.run({target:h3,api:m3,protectedApi:{connection:e2,extensionTTSCapture:f2,allowNetworkAccess:l2,allowApiAccess:c2,storefrontUrl:u2,myshopifyDomain:d2,metrics:Ol,extensionId:a2,instanceId:s2,target:h3,initialValues:b2,messageEventRelay:p2,anyRealmIsTearingDown:Ki,realmScriptIsTearingDown:Qi,realmScriptWasActivated:tn,hasLiveRealmForScript:en,isThisRealmTornDown:()=>y2.isTornDown,allRealmScripts:Al,realmScriptUrl:o2,reportApiRead:e3=>{Cl.call.reportApiRead(e3,{extensionId:a2})},reportedApiPropertyNames:Rl(a2,o2)}}),{output:yield v2.output,teardown:sn(()=>__async(null,null,function*(){y2.isTornDown=true,f2&&wn.discardCapture(s2,f2),yield v2.terminate()}),o2)}}catch(E2){if(y2.isTornDown=true,rn(o2),f2&&wn.discardCapture(s2,f2),"NetworkError"===(E2==null?void 0:E2.name))throw new Oi(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 Di(String(E2),{cause:E2})}finally{Ol.extensionPerformanceMarkFinished("partner-js-exec",{instanceId:s2,extensionId:a2})}})}function Rl(e2,t2){let i2=Nl.get(e2);i2||(i2=new Map,Nl.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;qi(i3)&&(nn(Wi(i3,t2),n2)||an(i3))}),e2.addEventListener("unhandledrejection",e3=>{const{reason:r2}=e3;if(!qi(r2))return;const s2=Wi(r2,t2);nn(s2,n2)||(i2(r2,{scriptUrl:s2!=null?s2:void 0}),an(r2))})})(globalThis,{allRealmScripts:Al,reportSandboxError:Vl,teardownState:{anyRealmIsTearingDown:Ki,realmScriptIsTearingDown:Qi,realmScriptWasActivated:tn,hasLiveRealmForScript:en}}),Cl.expose({load:function({scriptBody:e2,scriptUrl:t2,extensionId:i2}){Ol.extensionPerformanceMarkFinished("sandbox-js-eval",Tl);const n2="".concat(e2,"\n//# sourceURL=").concat(t2);Ol.extensionPerformanceMarkStarted("partner-js-eval",{extensionId:i2}),new Si(n2,"",[]),Ol.extensionPerformanceMarkFinished("partner-js-eval",{extensionId:i2}),Al.set(t2,n2)},render:function(e2){return __async(this,null,function*(){return Ml(e2)})},run:function(e2){return __async(this,null,function*(){return Ml(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.