@sesamy/sesamy-components 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/sesamy-components.es.js +10788 -4323
- package/dist/lib/sesamy-components.umd.js +57 -11
- package/package.json +42 -41
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(W,ne){typeof exports=="object"&&typeof module<"u"?ne(exports):typeof define=="function"&&define.amd?define(["exports"],ne):(W=typeof globalThis<"u"?globalThis:W||self,ne(W["@sesamy/sesamy-components"]={}))})(this,function(W){"use strict";var mc=Object.defineProperty;var ra=W=>{throw TypeError(W)};var hc=(W,ne,ve)=>ne in W?mc(W,ne,{enumerable:!0,configurable:!0,writable:!0,value:ve}):W[ne]=ve;var Fe=(W,ne,ve)=>hc(W,typeof ne!="symbol"?ne+"":ne,ve),na=(W,ne,ve)=>ne.has(W)||ra("Cannot "+ve);var Me=(W,ne,ve)=>(na(W,ne,"read from private field"),ve?ve.call(W):ne.get(W)),Ln=(W,ne,ve)=>ne.has(W)?ra("Cannot add the same private member more than once"):ne instanceof WeakSet?ne.add(W):ne.set(W,ve),An=(W,ne,ve,kt)=>(na(W,ne,"write to private field"),kt?kt.call(W,ve):ne.set(W,ve),ve);var tt,je;const ne="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ne);const ve=1,kt=2,Sn=4,oa=8,aa=16,ia=1,la=2,sa=4,ca=8,ua=16,da=4,fa=1,ma=2,Pn="[",Ir="[!",Nr="]",Ct={},Te=Symbol(),Mn="http://www.w3.org/2000/svg",Tn=!1;function lr(e){console.warn("hydration_mismatch")}var Or=Array.isArray,Dr=Array.from,sr=Object.keys,cr=Object.defineProperty,nt=Object.getOwnPropertyDescriptor,zn=Object.getOwnPropertyDescriptors,ha=Object.prototype,ga=Array.prototype,ur=Object.getPrototypeOf;function Vt(e){return typeof e=="function"}const Wt=()=>{};function va(e){return typeof(e==null?void 0:e.then)=="function"}function pa(e){return e()}function dr(e){for(var t=0;t<e.length;t++)e[t]()}const Ke=2,Rn=4,$t=8,jr=16,ot=32,fr=64,ht=128,mr=256,Le=512,at=1024,Yt=2048,it=4096,Zt=8192,In=16384,Et=32768,_a=65536,wa=1<<18,Nn=1<<19,gt=Symbol("$state"),ba=Symbol("");function On(e){return e===this.v}function ya(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function qr(e){return!ya(e,this.v)}function xa(e){throw new Error("effect_in_teardown")}function ka(){throw new Error("effect_in_unowned_derived")}function Ca(e){throw new Error("effect_orphan")}function $a(){throw new Error("effect_update_depth_exceeded")}function Ea(){throw new Error("hydration_failed")}function La(e){throw new Error("props_invalid_value")}function Aa(){throw new Error("state_descriptors_fixed")}function Sa(){throw new Error("state_prototype_fixed")}function Pa(){throw new Error("state_unsafe_local_read")}function Ma(){throw new Error("state_unsafe_mutation")}function ke(e){return{f:0,v:e,reactions:null,equals:On,version:0}}function Ce(e){return Ta(ke(e))}function Kt(e){var r;const t=ke(e);return t.equals=qr,ge!==null&&ge.l!==null&&((r=ge.l).s??(r.s=[])).push(t),t}function Ta(e){return le!==null&&le.f&Ke&&(Ue===null?Ba([e]):Ue.push(e)),e}function N(e,t){return le!==null&&Qt()&&le.f&Ke&&(Ue===null||!Ue.includes(e))&&Ma(),e.equals(t)||(e.v=t,e.version=to(),Dn(e,at),Qt()&&V!==null&&V.f&Le&&!(V.f&ot)&&(be!==null&&be.includes(e)?(He(V,at),br(V)):st===null?Fa([e]):st.push(e))),t}function Dn(e,t){var r=e.reactions;if(r!==null)for(var n=Qt(),o=r.length,a=0;a<o;a++){var l=r[a],i=l.f;i&at||!n&&l===V||(He(l,t),i&(Le|ht)&&(i&Ke?Dn(l,Yt):br(l)))}}function jn(e){V===null&&le===null&&Ca(),le!==null&&le.f&ht&&ka(),Gr&&xa()}function za(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Lt(e,t,r,n=!0){var o=(e&fr)!==0,a=V,l={ctx:ge,deps:null,nodes_start:null,nodes_end:null,f:e|at,first:null,fn:t,last:null,next:null,parent:o?null:a,prev:null,teardown:null,transitions:null,version:0};if(r){var i=Pt;try{Jn(!0),wr(l),l.f|=In}catch(u){throw Je(l),u}finally{Jn(i)}}else t!==null&&br(l);var s=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&Nn)===0;if(!s&&!o&&n&&(a!==null&&za(l,a),le!==null&&le.f&Ke)){var c=le;(c.children??(c.children=[])).push(l)}return l}function Ra(e){const t=Lt($t,null,!1);return He(t,Le),t.teardown=e,t}function Br(e){jn();var t=V!==null&&(V.f&$t)!==0&&ge!==null&&!ge.m;if(t){var r=ge;(r.e??(r.e=[])).push({fn:e,effect:V,reaction:le})}else{var n=Jt(e);return n}}function Ia(e){return jn(),hr(e)}function qn(e){const t=Lt(fr,e,!0);return()=>{Je(t)}}function Jt(e){return Lt(Rn,e,!1)}function hr(e){return Lt($t,e,!0)}function $(e){return hr(e)}function At(e,t=0){return Lt($t|jr|t,e,!0)}function Ne(e,t=!0){return Lt($t|ot,e,!0,t)}function Bn(e){var t=e.teardown;if(t!==null){const r=Gr,n=le;Xn(!0),Tt(null);try{t.call(null)}finally{Xn(r),Tt(n)}}}function Je(e,t=!0){var r=!1;if((t||e.f&wa)&&e.nodes_start!==null){for(var n=e.nodes_start,o=e.nodes_end;n!==null;){var a=n===o?null:Ge(n);n.remove(),n=a}r=!0}no(e,t&&!r),tr(e,0),He(e,Zt);var l=e.transitions;if(l!==null)for(const s of l)s.stop();Bn(e);var i=e.parent;i!==null&&i.first!==null&&Fn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.parent=e.fn=e.nodes_start=e.nodes_end=null}function Fn(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function vt(e,t){var r=[];Fr(e,r,!0),Un(r,()=>{Je(e),t&&t()})}function Un(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var o of e)o.out(n)}else t()}function Fr(e,t,r){if(!(e.f&it)){if(e.f^=it,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var n=e.first;n!==null;){var o=n.next,a=(n.f&Et)!==0||(n.f&ot)!==0;Fr(n,t,a?r:!1),n=o}}}function lt(e){Hn(e,!0)}function Hn(e,t){if(e.f&it){e.f^=it,er(e)&&wr(e);for(var r=e.first;r!==null;){var n=r.next,o=(r.f&Et)!==0||(r.f&ot)!==0;Hn(r,o?t:!1),r=n}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}const Na=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let gr=!1,vr=!1,Ur=[],Hr=[];function Gn(){gr=!1;const e=Ur.slice();Ur=[],dr(e)}function Vn(){vr=!1;const e=Hr.slice();Hr=[],dr(e)}function St(e){gr||(gr=!0,queueMicrotask(Gn)),Ur.push(e)}function Oa(e){vr||(vr=!0,Na(Vn)),Hr.push(e)}function Da(){gr&&Gn(),vr&&Vn()}function G(e){let t=Ke|at;V===null?t|=ht:V.f|=Nn;const r={children:null,deps:null,equals:On,f:t,fn:e,reactions:null,v:null,version:0,parent:V};if(le!==null&&le.f&Ke){var n=le;(n.children??(n.children=[])).push(r)}return r}function Wn(e){const t=G(e);return t.equals=qr,t}function Yn(e){var t=e.children;if(t!==null){e.children=null;for(var r=0;r<t.length;r+=1){var n=t[r];n.f&Ke?ja(n):Je(n)}}}function Zn(e){var t,r=V;zt(e.parent);try{Yn(e),t=ro(e)}finally{zt(r)}var n=(Rt||e.f&ht)&&e.deps!==null?Yt:Le;He(e,n),e.equals(t)||(e.v=t,e.version=to())}function ja(e){Yn(e),tr(e,0),He(e,Zt),e.children=e.deps=e.reactions=e.fn=null}function pr(){throw new Error("invalid_default_snippet")}const Kn=0,qa=1;let _r=Kn,Xt=!1,Pt=!1,Gr=!1;function Jn(e){Pt=e}function Xn(e){Gr=e}let pt=[],Mt=0,gc=[],le=null;function Tt(e){le=e}let V=null;function zt(e){V=e}let Ue=null;function Ba(e){Ue=e}let be=null,ze=0,st=null;function Fa(e){st=e}let Qn=0,Rt=!1,ge=null;function eo(e){ge=e}function to(){return++Qn}function Qt(){return ge!==null&&ge.l===null}function er(e){var l,i;var t=e.f;if(t&at)return!0;if(t&Yt){var r=e.deps,n=(t&ht)!==0;if(r!==null){var o;if(t&mr){for(o=0;o<r.length;o++)((l=r[o]).reactions??(l.reactions=[])).push(e);e.f^=mr}for(o=0;o<r.length;o++){var a=r[o];if(er(a)&&Zn(a),n&&V!==null&&!Rt&&!((i=a==null?void 0:a.reactions)!=null&&i.includes(e))&&(a.reactions??(a.reactions=[])).push(e),a.version>e.version)return!0}}n||He(e,Le)}return!1}function Ua(e,t,r){throw e}function ro(e){var u;var t=be,r=ze,n=st,o=le,a=Rt,l=Ue;be=null,ze=0,st=null,le=e.f&(ot|fr)?null:e,Rt=!Pt&&(e.f&ht)!==0,Ue=null;try{var i=(0,e.fn)(),s=e.deps;if(be!==null){var c;if(tr(e,ze),s!==null&&ze>0)for(s.length=ze+be.length,c=0;c<be.length;c++)s[ze+c]=be[c];else e.deps=s=be;if(!Rt)for(c=ze;c<s.length;c++)((u=s[c]).reactions??(u.reactions=[])).push(e)}else s!==null&&ze<s.length&&(tr(e,ze),s.length=ze);return i}finally{be=t,ze=r,st=n,le=o,Rt=a,Ue=l}}function Ha(e,t){let r=t.reactions;if(r!==null){var n=r.indexOf(e);if(n!==-1){var o=r.length-1;o===0?r=t.reactions=null:(r[n]=r[o],r.pop())}}r===null&&t.f&Ke&&(be===null||!be.includes(t))&&(He(t,Yt),t.f&(ht|mr)||(t.f^=mr),tr(t,0))}function tr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Ha(e,r[n])}function no(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var n=r.next;Je(r,t),r=n}}function wr(e){var t=e.f;if(!(t&Zt)){He(e,Le);var r=V,n=ge;V=e,ge=e.ctx;try{t&jr||no(e),Bn(e);var o=ro(e);e.teardown=typeof o=="function"?o:null,e.version=Qn}catch(a){Ua(a)}finally{V=r,ge=n}}}function oo(){Mt>1e3&&(Mt=0,$a()),Mt++}function ao(e){var t=e.length;if(t!==0){oo();var r=Pt;Pt=!0;try{for(var n=0;n<t;n++){var o=e[n];o.f&Le||(o.f^=Le);var a=[];io(o,a),Ga(a)}}finally{Pt=r}}}function Ga(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];!(n.f&(Zt|it))&&er(n)&&(wr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Fn(n):n.fn=null))}}function Va(){if(Xt=!1,Mt>1001)return;const e=pt;pt=[],ao(e),Xt||(Mt=0)}function br(e){_r===Kn&&(Xt||(Xt=!0,queueMicrotask(Va)));for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(fr|ot)){if(!(r&Le))return;t.f^=Le}}pt.push(t)}function io(e,t){var r=e.first,n=[];e:for(;r!==null;){var o=r.f,a=(o&ot)!==0,l=a&&(o&Le)!==0;if(!l&&!(o&it))if(o&$t){a?r.f^=Le:er(r)&&wr(r);var i=r.first;if(i!==null){r=i;continue}}else o&Rn&&n.push(r);var s=r.next;if(s===null){let d=r.parent;for(;d!==null;){if(e===d)break e;var c=d.next;if(c!==null){r=c;continue e}d=d.parent}}r=s}for(var u=0;u<n.length;u++)i=n[u],t.push(i),io(i,t)}function X(e){var t=_r,r=pt;try{oo();const o=[];_r=qa,pt=o,Xt=!1,ao(r);var n=e==null?void 0:e();return Da(),(pt.length>0||o.length>0)&&X(),Mt=0,n}finally{_r=t,pt=r}}function h(e){var t=e.f;if(t&Zt)return e.v;if(le!==null){Ue!==null&&Ue.includes(e)&&Pa();var r=le.deps;be===null&&r!==null&&r[ze]===e?ze++:be===null?be=[e]:be.push(e),st!==null&&V!==null&&V.f&Le&&!(V.f&ot)&&st.includes(e)&&(He(V,at),br(V))}if(t&Ke){var n=e;er(n)&&Zn(n)}return e.v}function Vr(e){const t=le;try{return le=null,e()}finally{le=t}}const Wa=~(at|Yt|Le);function He(e,t){e.f=e.f&Wa|t}function oe(e,t=!1,r){ge={p:ge,c:null,e:null,m:!1,s:e,x:null,l:null},t||(ge.l={s:null,u:null,r1:[],r2:ke(!1)})}function ae(e){const t=ge;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var r=V,n=le;t.e=null;try{for(var o=0;o<l.length;o++){var a=l[o];zt(a.effect),Tt(a.reaction),Jt(a.fn)}}finally{zt(r),Tt(n)}}ge=t.p,t.m=!0}return e||{}}function Ya(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(gt in e)Wr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&> in r&&Wr(r)}}}function Wr(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Wr(e[n],t)}catch{}const r=ur(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=zn(r);for(let o in n){const a=n[o].get;if(a)try{a.call(e)}catch{}}}}}function de(e,t=null,r){if(typeof e!="object"||e===null||gt in e)return e;const n=ur(e);if(n!==ha&&n!==ga)return e;var o=new Map,a=Or(e),l=ke(0);a&&o.set("length",ke(e.length));var i;return new Proxy(e,{defineProperty(s,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Aa();var d=o.get(c);return d===void 0?(d=ke(u.value),o.set(c,d)):N(d,de(u.value,i)),!0},deleteProperty(s,c){var u=o.get(c);return u===void 0?c in s&&o.set(c,ke(Te)):(N(u,Te),lo(l)),!0},get(s,c,u){var g;if(c===gt)return e;var d=o.get(c),m=c in s;if(d===void 0&&(!m||(g=nt(s,c))!=null&&g.writable)&&(d=ke(de(m?s[c]:Te,i)),o.set(c,d)),d!==void 0){var f=h(d);return f===Te?void 0:f}return Reflect.get(s,c,u)},getOwnPropertyDescriptor(s,c){var u=Reflect.getOwnPropertyDescriptor(s,c);if(u&&"value"in u){var d=o.get(c);d&&(u.value=h(d))}else if(u===void 0){var m=o.get(c),f=m==null?void 0:m.v;if(m!==void 0&&f!==Te)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(s,c){var f;if(c===gt)return!0;var u=o.get(c),d=u!==void 0&&u.v!==Te||Reflect.has(s,c);if(u!==void 0||V!==null&&(!d||(f=nt(s,c))!=null&&f.writable)){u===void 0&&(u=ke(d?de(s[c],i):Te),o.set(c,u));var m=h(u);if(m===Te)return!1}return d},set(s,c,u,d){var w;var m=o.get(c),f=c in s;if(a&&c==="length")for(var g=u;g<m.v;g+=1){var p=o.get(g+"");p!==void 0?N(p,Te):g in s&&(p=ke(Te),o.set(g+"",p))}m===void 0?(!f||(w=nt(s,c))!=null&&w.writable)&&(m=ke(void 0),N(m,de(u,i)),o.set(c,m)):(f=m.v!==Te,N(m,de(u,i)));var _=Reflect.getOwnPropertyDescriptor(s,c);if(_!=null&&_.set&&_.set.call(d,u),!f){if(a&&typeof c=="string"){var v=o.get("length"),b=Number(c);Number.isInteger(b)&&b>=v.v&&N(v,b+1)}lo(l)}return!0},ownKeys(s){h(l);var c=Reflect.ownKeys(s).filter(m=>{var f=o.get(m);return f===void 0||f.v!==Te});for(var[u,d]of o)d.v!==Te&&!(u in s)&&c.push(u);return c},setPrototypeOf(){Sa()}})}function lo(e,t=1){N(e,e.v+t)}function so(e){return e!==null&&typeof e=="object"&> in e?e[gt]:e}function Za(e,t){return Object.is(so(e),so(t))}var co,uo,fo;function Yr(){if(co===void 0){co=window;var e=Element.prototype,t=Node.prototype;uo=nt(t,"firstChild").get,fo=nt(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__e=void 0,Text.prototype.__t=void 0}}function ct(e=""){return document.createTextNode(e)}function Ae(e){return uo.call(e)}function Ge(e){return fo.call(e)}function A(e){if(!z)return Ae(e);var t=Ae(j);return t===null&&(t=j.appendChild(ct())),Se(t),t}function I(e,t){if(!z){var r=Ae(e);return r instanceof Comment&&r.data===""?Ge(r):r}return j}function E(e,t=1,r=!1){let n=z?j:e;for(;t--;)n=Ge(n);if(!z)return n;var o=n.nodeType;if(r&&o!==3){var a=ct();return n==null||n.before(a),Se(a),a}return Se(n),n}function mo(e){e.textContent=""}let z=!1;function Be(e){z=e}let j;function Se(e){if(e===null)throw lr(),Ct;return j=e}function Ve(){return Se(Ge(j))}function L(e){if(z){if(Ge(j)!==null)throw lr(),Ct;j=e}}function Oe(e=1){if(z){for(var t=e,r=j;t--;)r=Ge(r);j=r}}function Zr(){for(var e=0,t=j;;){if(t.nodeType===8){var r=t.data;if(r===Nr){if(e===0)return t;e-=1}else(r===Pn||r===Ir)&&(e+=1)}var n=Ge(t);t.remove(),t=n}}const ho=new Set,Kr=new Set;function Jr(e,t,r,n){function o(a){if(n.capture||rr.call(t,a),!a.cancelBubble)return r.call(this,a)}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?St(()=>{t.addEventListener(e,o,n)}):t.addEventListener(e,o,n),o}function go(e,t,r,n,o){var a={capture:n,passive:o},l=Jr(e,t,r,a);(t===document.body||t===window||t===document)&&Ra(()=>{t.removeEventListener(e,l,a)})}function yr(e){for(var t=0;t<e.length;t++)ho.add(e[t]);for(var r of Kr)r(e)}function rr(e){var _;var t=this,r=t.ownerDocument,n=e.type,o=((_=e.composedPath)==null?void 0:_.call(e))||[],a=o[0]||e.target,l=0,i=e.__root;if(i){var s=o.indexOf(i);if(s!==-1&&(t===document||t===window)){e.__root=t;return}var c=o.indexOf(t);if(c===-1)return;s<=c&&(l=s)}if(a=o[l]||e.target,a!==t){cr(e,"currentTarget",{configurable:!0,get(){return a||r}});try{for(var u,d=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var f=a["__"+n];if(f!==void 0&&!a.disabled)if(Or(f)){var[g,...p]=f;g.apply(a,[e,...p])}else f.call(a,e)}catch(v){u?d.push(v):u=v}if(e.cancelBubble||m===t||m===null)break;a=m}if(u){for(let v of d)queueMicrotask(()=>{throw v});throw u}}finally{e.__root=t,delete e.currentTarget}}}function Xr(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Re(e,t){var r=V;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function P(e,t){var r=(t&fa)!==0,n=(t&ma)!==0,o,a=!e.startsWith("<!>");return()=>{if(z)return Re(j,null),j;o===void 0&&(o=Xr(a?e:"<!>"+e),r||(o=Ae(o)));var l=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=Ae(l),s=l.lastChild;Re(i,s)}else Re(l,l);return l}}function xr(e,t,r="svg"){var n=!e.startsWith("<!>"),o=`<${r}>${n?e:"<!>"+e}</${r}>`,a;return()=>{if(z)return Re(j,null),j;if(!a){var l=Xr(o),i=Ae(l);a=Ae(i)}var s=a.cloneNode(!0);return Re(s,s),s}}function It(e=""){if(!z){var t=ct(e+"");return Re(t,t),t}var r=j;return r.nodeType!==3&&(r.before(r=ct()),Se(r)),Re(r,r),r}function fe(){if(z)return Re(j,null),j;var e=document.createDocumentFragment(),t=document.createComment(""),r=ct();return e.append(t,r),Re(t,r),e}function y(e,t){if(z){V.nodes_end=j,Ve();return}e!==null&&e.before(t)}function Ka(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Ja=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Xa(e){return Ja.includes(e)}const Qa={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"};function ei(e){return e=e.toLowerCase(),Qa[e]??e}const ti=["touchstart","touchmove"];function ri(e){return ti.includes(e)}let kr=!0;function vo(e){kr=e}function Q(e,t){t!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=t,e.nodeValue=t==null?"":t+"")}function po(e,t){return _o(e,t)}function ni(e,t){Yr(),t.intro=t.intro??!1;const r=t.target,n=z,o=j;try{for(var a=Ae(r);a&&(a.nodeType!==8||a.data!==Pn);)a=Ge(a);if(!a)throw Ct;Be(!0),Se(a),Ve();const l=_o(e,{...t,anchor:a});if(j===null||j.nodeType!==8||j.data!==Nr)throw lr(),Ct;return Be(!1),l}catch(l){if(l===Ct)return t.recover===!1&&Ea(),Yr(),mo(r),Be(!1),po(e,t);throw l}finally{Be(n),Se(o)}}const Nt=new Map;function _o(e,{target:t,anchor:r,props:n={},events:o,context:a,intro:l=!0}){Yr();var i=new Set,s=d=>{for(var m=0;m<d.length;m++){var f=d[m];if(!i.has(f)){i.add(f);var g=ri(f);t.addEventListener(f,rr,{passive:g});var p=Nt.get(f);p===void 0?(document.addEventListener(f,rr,{passive:g}),Nt.set(f,1)):Nt.set(f,p+1)}}};s(Dr(ho)),Kr.add(s);var c=void 0,u=qn(()=>{var d=r??t.appendChild(ct());return Ne(()=>{if(a){oe({});var m=ge;m.c=a}o&&(n.$$events=o),z&&Re(d,null),kr=l,c=e(d,n)||{},kr=!0,z&&(V.nodes_end=j),a&&ae()}),()=>{var g;for(var m of i){t.removeEventListener(m,rr);var f=Nt.get(m);--f===0?(document.removeEventListener(m,rr),Nt.delete(m)):Nt.set(m,f)}Kr.delete(s),Qr.delete(c),d!==r&&((g=d.parentNode)==null||g.removeChild(d))}});return Qr.set(c,u),c}let Qr=new WeakMap;function oi(e){const t=Qr.get(e);t&&t()}const en=0,Cr=1,tn=2;function Ot(e,t,r,n,o){z&&Ve();var a=e,l=Qt(),i=ge,s,c,u,d,m=(l?ke:Kt)(void 0),f=(l?ke:Kt)(void 0),g=!1;function p(v,b){g=!0,b&&(zt(_),Tt(_),eo(i)),v===en&&r&&(c?lt(c):c=Ne(()=>r(a))),v===Cr&&n&&(u?lt(u):u=Ne(()=>n(a,m))),v===tn&&o&&(d?lt(d):d=Ne(()=>o(a,f))),v!==en&&c&&vt(c,()=>c=null),v!==Cr&&u&&vt(u,()=>u=null),v!==tn&&d&&vt(d,()=>d=null),b&&(eo(null),Tt(null),zt(null),X())}var _=At(()=>{if(s!==(s=t())){if(va(s)){var v=s;g=!1,v.then(b=>{v===s&&(N(m,b),p(Cr,!0))},b=>{v===s&&(N(f,b),p(tn,!0))}),z?r&&(c=Ne(()=>r(a))):St(()=>{g||p(en,!0)})}else N(m,s),p(Cr,!1);return()=>s=null}});z&&(a=j)}function B(e,t,r,n=null,o=!1){z&&Ve();var a=e,l=null,i=null,s=null,c=o?Et:0;At(()=>{if(s===(s=!!t()))return;let u=!1;if(z){const d=a.data===Ir;s===d&&(a=Zr(),Se(a),Be(!1),u=!0)}s?(l?lt(l):l=Ne(()=>r(a)),i&&vt(i,()=>{i=null})):(i?lt(i):n&&(i=Ne(()=>n(a))),l&&vt(l,()=>{l=null})),u&&Be(!0)},c),z&&(a=j)}let Dt=null;function wo(e){Dt=e}function $r(e,t){return t}function ai(e,t,r,n){for(var o=[],a=t.length,l=0;l<a;l++)Fr(t[l].e,o,!0);var i=a>0&&o.length===0&&r!==null;if(i){var s=r.parentNode;mo(s),s.append(r),n.clear(),ut(e,t[0].prev,t[a-1].next)}Un(o,()=>{for(var c=0;c<a;c++){var u=t[c];i||(n.delete(u.k),ut(e,u.prev,u.next)),Je(u.e,!i)}})}function jt(e,t,r,n,o,a=null){var l=e,i={flags:t,items:new Map,first:null},s=(t&Sn)!==0;if(s){var c=e;l=z?Se(Ae(c)):c.appendChild(ct())}z&&Ve();var u=null;At(()=>{var d=r(),m=Or(d)?d:d==null?[]:Dr(d),f=m.length;let g=!1;if(z){var p=l.data===Ir;p!==(f===0)&&(l=Zr(),Se(l),Be(!1),g=!0)}if(z){for(var _=null,v,b=0;b<f;b++){if(j.nodeType===8&&j.data===Nr){l=j,g=!0,Be(!1);break}var w=m[b],x=n(w,b);v=bo(j,i,_,null,w,x,b,o,t),i.items.set(x,v),_=v}f>0&&Se(Zr())}z||ii(m,i,l,o,t,n),a!==null&&(f===0?u?lt(u):u=Ne(()=>a(l)):u!==null&&vt(u,()=>{u=null})),g&&Be(!0)}),z&&(l=j)}function ii(e,t,r,n,o,a){var U,Z,H,K;var l=(o&oa)!==0,i=(o&(ve|kt))!==0,s=e.length,c=t.items,u=t.first,d=u,m,f=null,g,p=[],_=[],v,b,w,x;if(l)for(x=0;x<s;x+=1)v=e[x],b=a(v,x),w=c.get(b),w!==void 0&&((U=w.a)==null||U.measure(),(g??(g=new Set)).add(w));for(x=0;x<s;x+=1){if(v=e[x],b=a(v,x),w=c.get(b),w===void 0){var k=d?d.e.nodes_start:r;f=bo(k,t,f,f===null?t.first:f.next,v,b,x,n,o),c.set(b,f),p=[],_=[],d=f.next;continue}if(i&&li(w,v,x,o),w.e.f&it&&(lt(w.e),l&&((Z=w.a)==null||Z.unfix(),(g??(g=new Set)).delete(w))),w!==d){if(m!==void 0&&m.has(w)){if(p.length<_.length){var T=_[0],R;f=T.prev;var F=p[0],te=p[p.length-1];for(R=0;R<p.length;R+=1)yo(p[R],T,r);for(R=0;R<_.length;R+=1)m.delete(_[R]);ut(t,F.prev,te.next),ut(t,f,F),ut(t,te,T),d=T,f=te,x-=1,p=[],_=[]}else m.delete(w),yo(w,d,r),ut(t,w.prev,w.next),ut(t,w,f===null?t.first:f.next),ut(t,f,w),f=w;continue}for(p=[],_=[];d!==null&&d.k!==b;)d.e.f&it||(m??(m=new Set)).add(d),_.push(d),d=d.next;if(d===null)continue;w=d}p.push(w),f=w,d=w.next}if(d!==null||m!==void 0){for(var M=m===void 0?[]:Dr(m);d!==null;)M.push(d),d=d.next;var D=M.length;if(D>0){var C=o&Sn&&s===0?r:null;if(l){for(x=0;x<D;x+=1)(H=M[x].a)==null||H.measure();for(x=0;x<D;x+=1)(K=M[x].a)==null||K.fix()}ai(t,M,C,c)}}l&&St(()=>{var re;if(g!==void 0)for(w of g)(re=w.a)==null||re.apply()}),V.first=t.first&&t.first.e,V.last=f&&f.e}function li(e,t,r,n){n&ve&&N(e.v,t),n&kt?N(e.i,r):e.i=r}function bo(e,t,r,n,o,a,l,i,s){var c=Dt;try{var u=(s&ve)!==0,d=(s&aa)===0,m=u?d?Kt(o):ke(o):o,f=s&kt?ke(l):l,g={i:f,v:m,k:a,a:null,e:null,prev:r,next:n};return Dt=g,g.e=Ne(()=>i(e,m,f),z),g.e.prev=r&&r.e,g.e.next=n&&n.e,r===null?t.first=g:(r.next=g,r.e.next=g.e),n!==null&&(n.prev=g,n.e.prev=g.e),g}finally{Dt=c}}function yo(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,o=t?t.e.nodes_start:r,a=e.e.nodes_start;a!==n;){var l=Ge(a);o.before(a),a=l}}function ut(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Er(e,t,r,n,o){var a=e,l="",i;At(()=>{if(l===(l=t()??"")){z&&Ve();return}i!==void 0&&(Je(i),i=void 0),l!==""&&(i=Ne(()=>{if(z){j.data;for(var s=Ve(),c=s;s!==null&&(s.nodeType!==8||s.data!=="");)c=s,s=Ge(s);if(s===null)throw lr(),Ct;Re(j,c),a=Se(s);return}var u=l+"";r&&(u=`<svg>${u}</svg>`);var d=Xr(u);if((r||n)&&(d=Ae(d)),Re(Ae(d),d.lastChild),r||n)for(;Ae(d);)a.before(Ae(d));else a.before(d)}))})}function _t(e,t,r,n){z&&Ve(),t===void 0?n!==null&&n(e):t(e,r)}function wt(e,t,...r){var n=e,o=Wt,a;At(()=>{o!==(o=t())&&(a&&(Je(a),a=null),a=Ne(()=>o(n,...r)))},Et),z&&(n=j)}function si(e,t,r,n,o,a){let l=z;z&&Ve();var i,s,c=null;z&&j.nodeType===1&&(c=j,Ve());var u=z?j:e,d,m=Dt;At(()=>{const f=t()||null;var g=f==="svg"?Mn:null;if(f!==i){var p=Dt;wo(m),d&&(f===null?vt(d,()=>{d=null,s=null}):f===s?lt(d):(Je(d),vo(!1))),f&&f!==s&&(d=Ne(()=>{if(c=z?c:g?document.createElementNS(g,f):document.createElement(f),Re(c,c),n){var _=z?Ae(c):c.appendChild(ct());z&&(_===null?Be(!1):Se(_)),n(c,_)}V.nodes_end=c,u.before(c)})),i=f,i&&(s=i),vo(!0),wo(p)}},Et),l&&(Be(!0),Se(u))}function ci(e,t){if(t){const r=document.body;e.autofocus=!0,St(()=>{document.activeElement===r&&e.focus()})}}let xo=!1;function ko(){xo||(xo=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function Co(e){if(z){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;_e(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var o=e.checked;_e(e,"checked",null),e.checked=o}}};e.__on_r=r,Oa(r),ko()}}function ui(e,t){var r=e.__attributes??(e.__attributes={});r.checked!==(r.checked=t)&&(e.checked=t)}function _e(e,t,r,n){var o=e.__attributes??(e.__attributes={});z&&(o[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||o[t]!==(o[t]=r)&&(t==="loading"&&(e[ba]=r),r==null?e.removeAttribute(t):typeof r!="string"&&rn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function di(e,t,r){rn(e).includes(t)?e[t]=r:_e(e,t,r)}function bt(e,t,r,n,o=!1,a=!1,l=!1){var i=t||{},s=e.tagName==="OPTION";for(var c in t)c in r||(r[c]=null);var u=rn(e),d=e.__attributes??(e.__attributes={}),m=[];for(const v in r){let b=r[v];if(s&&v==="value"&&b==null){e.value=e.__value="",i[v]=b;continue}var f=i[v];if(b!==f){i[v]=b;var g=v[0]+v[1];if(g!=="$$")if(g==="on"){const w={},x="$$"+v;let k=v.slice(2);var p=Xa(k);if(Ka(k)&&(k=k.slice(0,-7),w.capture=!0),!p&&f){if(b!=null)continue;e.removeEventListener(k,i[x],w),i[x]=null}if(b!=null)if(p)e[`__${k}`]=b,yr([k]);else{let T=function(R){i[v].call(this,R)};t?i[x]=Jr(k,e,T,w):m.push([v,b,()=>i[x]=Jr(k,e,T,w)])}}else if(v==="style"&&b!=null)e.style.cssText=b+"";else if(v==="autofocus")ci(e,!!b);else if(v==="__value"||v==="value"&&b!=null)e.value=e[v]=e.__value=b;else{var _=v;o||(_=ei(_)),b==null&&!a?(d[v]=null,e.removeAttribute(v)):u.includes(_)&&(a||typeof b!="string")?e[_]=b:typeof b!="function"&&(z&&(_==="src"||_==="href"||_==="srcset")||_e(e,_,b))}}}return t||St(()=>{if(e.isConnected)for(const[v,b,w]of m)i[v]===b&&w()}),i}var $o=new Map;function rn(e){var t=$o.get(e.nodeName);if(t)return t;$o.set(e.nodeName,t=[]);for(var r,n=ur(e);n.constructor.name!=="Element";){r=zn(n);for(var o in r)r[o].set&&t.push(o);n=ur(n)}return t}function fi(e,t){var r=e.__className,n=Eo(t);z&&e.getAttribute("class")===n?e.__className=n:(r!==n||z&&e.getAttribute("class")!==n)&&(n===""?e.removeAttribute("class"):e.setAttribute("class",n),e.__className=n)}function we(e,t){var r=e.__className,n=Eo(t);z&&e.className===n?e.__className=n:(r!==n||z&&e.className!==n)&&(t==null?e.removeAttribute("class"):e.className=n,e.__className=n)}function Eo(e){return e??""}const mi=requestAnimationFrame,hi=()=>performance.now(),dt={tick:e=>mi(e),now:()=>hi(),tasks:new Set};function Lo(e){dt.tasks.forEach(t=>{t.c(e)||(dt.tasks.delete(t),t.f())}),dt.tasks.size!==0&&dt.tick(Lo)}function gi(e){let t;return dt.tasks.size===0&&dt.tick(Lo),{promise:new Promise(r=>{dt.tasks.add(t={c:e,f:r})}),abort(){dt.tasks.delete(t)}}}function Lr(e,t){e.dispatchEvent(new CustomEvent(t))}function vi(e){const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function Ao(e){const t={},r=e.split(";");for(const n of r){const[o,a]=n.split(":");if(!o||a===void 0)break;const l=vi(o.trim());t[l]=a.trim()}return t}const pi=e=>e;function _i(e,t,r,n){var o=(e&da)!==0,a="both",l,i=t.inert,s,c;function u(){return l??(l=r()(t,{},{direction:a}))}var d={is_global:o,in(){t.inert=i,Lr(t,"introstart"),s=nn(t,u(),c,1,()=>{Lr(t,"introend"),s==null||s.abort(),s=l=void 0})},out(p){t.inert=!0,Lr(t,"outrostart"),c=nn(t,u(),s,0,()=>{Lr(t,"outroend"),p==null||p()})},stop:()=>{s==null||s.abort(),c==null||c.abort()}},m=V;if((m.transitions??(m.transitions=[])).push(d),kr){var f=o;if(!f){for(var g=m.parent;g&&g.f&Et;)for(;(g=g.parent)&&!(g.f&jr););f=!g||(g.f&In)!==0}f&&Jt(()=>{Vr(()=>d.in())})}}function nn(e,t,r,n,o){var a=n===1;if(Vt(t)){var l,i=!1;return St(()=>{if(!i){var _=t({direction:a?"in":"out"});l=nn(e,_,r,n,o)}}),{abort:()=>{i=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(r==null||r.deactivate(),!(t!=null&&t.duration))return o(),{abort:Wt,deactivate:Wt,reset:Wt,t:()=>n};const{delay:s=0,css:c,tick:u,easing:d=pi}=t;var m=[];if(a&&r===void 0&&(u&&u(0,1),c)){var f=Ao(c(0,1));m.push(f,f)}var g=()=>1-n,p=e.animate(m,{duration:s});return p.onfinish=()=>{var _=(r==null?void 0:r.t())??1-n;r==null||r.abort();var v=n-_,b=t.duration*Math.abs(v),w=[];if(b>0){if(c)for(var x=Math.ceil(b/16.666666666666668),k=0;k<=x;k+=1){var T=_+v*d(k/x),R=c(T,1-T);w.push(Ao(R))}g=()=>{var F=p.currentTime;return _+v*d(F/b)},u&&gi(()=>{if(p.playState!=="running")return!1;var F=g();return u(F,1-F),!0})}p=e.animate(w,{duration:b,fill:"forwards"}),p.onfinish=()=>{g=()=>n,u==null||u(n,1-n),o()}},{abort:()=>{p&&(p.cancel(),p.effect=null)},deactivate:()=>{o=Wt},reset:()=>{n===0&&(u==null||u(1,0))},t:()=>g()}}function So(e,t,r,n=r){e.addEventListener(t,r);const o=e.__on_r;o?e.__on_r=()=>{o(),n()}:e.__on_r=n,ko()}function wi(e,t,r=t){var n=Qt();So(e,"input",()=>{var o=Po(e)?Mo(e.value):e.value;r(o),n&&o!==(o=t())&&(e.value=o??"")}),hr(()=>{var o=t();if(z&&e.defaultValue!==e.value){r(e.value);return}Po(e)&&o===Mo(e.value)||e.type==="date"&&!o&&!e.value||(e.value=o??"")})}function Po(e){var t=e.type;return t==="number"||t==="range"}function Mo(e){return e===""?null:+e}function To(e,t,r){if(e.multiple)return xi(e,t);for(var n of e.options){var o=nr(n);if(Za(o,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function bi(e,t){Jt(()=>{var r=new MutationObserver(()=>{var n=e.__value;To(e,n)});return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{r.disconnect()}})}function yi(e,t,r=t){var n=!0;So(e,"change",()=>{var o;if(e.multiple)o=[].map.call(e.querySelectorAll(":checked"),nr);else{var a=e.querySelector(":checked");o=a&&nr(a)}r(o)}),Jt(()=>{var o=t();if(To(e,o,n),n&&o===void 0){var a=e.querySelector(":checked");a!==null&&(o=nr(a),r(o))}e.__value=o,n=!1}),bi(e)}function xi(e,t){for(var r of e.options)r.selected=~t.indexOf(nr(r))}function nr(e){return"__value"in e?e.__value:e.value}function ki(){const e=ge,t=e.l.u;t&&(t.b.length&&Ia(()=>{zo(e),dr(t.b)}),Br(()=>{const r=Vr(()=>t.m.map(pa));return()=>{for(const n of r)typeof n=="function"&&n()}}),t.a.length&&Br(()=>{zo(e),dr(t.a)}))}function zo(e){if(e.l.s)for(const t of e.l.s)h(t);Ya(e.s)}function Ar(e){var r;var t=(r=e.$$slots)==null?void 0:r.default;return t===!0?e.children:t}const Ci={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function We(e,t,r){return new Proxy({props:e,exclude:t},Ci)}const $i={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Vt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Vt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const o=nt(n,t);return o&&!o.configurable&&(o.configurable=!0),o}}},has(e,t){for(let r of e.props)if(Vt(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props){Vt(r)&&(r=r());for(const n in r)t.includes(n)||t.push(n)}return t}};function on(...e){return new Proxy({props:e},$i)}function S(e,t,r,n){var x;var o=(r&ia)!==0,a=(r&la)!==0,l=(r&ca)!==0,i=(r&ua)!==0,s=e[t],c=(x=nt(e,t))==null?void 0:x.set,u=n,d=!0,m=!1,f=()=>(m=!0,d&&(d=!1,i?u=Vr(n):u=n),u);s===void 0&&n!==void 0&&(c&&a&&La(),s=f(),c&&c(s));var g;if(a)g=()=>{var k=e[t];return k===void 0?f():(d=!0,m=!1,k)};else{var p=(o?G:Wn)(()=>e[t]);p.f|=_a,g=()=>{var k=h(p);return k!==void 0&&(u=void 0),k===void 0?u:k}}if(!(r&sa))return g;if(c){var _=e.$$legacy;return function(k,T){return arguments.length>0?((!a||!T||_)&&c(T?g():k),k):g()}}var v=!1,b=Kt(s),w=G(()=>{var k=g(),T=h(b);return v?(v=!1,T):b.v=k});return o||(w.equals=qr),function(k,T){var R=h(w);if(arguments.length>0){const F=T?h(w):a&&l?de(k):k;return w.equals(F)||(v=!0,N(b,F),m&&u!==void 0&&(u=F),h(w)),k}return R}}function Ei(e){return new Li(e)}class Li{constructor(t){Ln(this,tt);Ln(this,je);var a;var r=new Map,n=(l,i)=>{var s=Kt(i);return r.set(l,s),s};const o=new Proxy({...t.props||{},$$events:{}},{get(l,i){return h(r.get(i)??n(i,Reflect.get(l,i)))},has(l,i){return h(r.get(i)??n(i,Reflect.get(l,i))),Reflect.has(l,i)},set(l,i,s){return N(r.get(i)??n(i,s),s),Reflect.set(l,i,s)}});An(this,je,(t.hydrate?ni:po)(t.component,{target:t.target,props:o,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((a=t==null?void 0:t.props)!=null&&a.$$host)||t.sync===!1)&&X(),An(this,tt,o.$$events);for(const l of Object.keys(Me(this,je)))l==="$set"||l==="$destroy"||l==="$on"||cr(this,l,{get(){return Me(this,je)[l]},set(i){Me(this,je)[l]=i},enumerable:!0});Me(this,je).$set=l=>{Object.assign(o,l)},Me(this,je).$destroy=()=>{oi(Me(this,je))}}$set(t){Me(this,je).$set(t)}$on(t,r){Me(this,tt)[t]=Me(this,tt)[t]||[];const n=(...o)=>r.call(this,...o);return Me(this,tt)[t].push(n),()=>{Me(this,tt)[t]=Me(this,tt)[t].filter(o=>o!==n)}}$destroy(){Me(this,je).$destroy()}}tt=new WeakMap,je=new WeakMap;let Ro;typeof HTMLElement=="function"&&(Ro=class extends HTMLElement{constructor(t,r,n){super();Fe(this,"$$ctor");Fe(this,"$$s");Fe(this,"$$c");Fe(this,"$$cn",!1);Fe(this,"$$d",{});Fe(this,"$$r",!1);Fe(this,"$$p_d",{});Fe(this,"$$l",{});Fe(this,"$$l_u",new Map);Fe(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const o=this.$$c.$on(t,r);this.$$l_u.set(r,o)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(o){return a=>{const l=document.createElement("slot");o!=="default"&&(l.name=o),y(a,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Ai(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=t(o),r.default=!0):r[o]=t(o));for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Sr(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=Ei({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=qn(()=>{hr(()=>{var o;this.$$r=!0;for(const a of sr(this.$$c)){if(!((o=this.$$p_d[a])!=null&&o.reflect))continue;this.$$d[a]=this.$$c[a];const l=Sr(a,this.$$d[a],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,l)}this.$$r=!1})});for(const o in this.$$l)for(const a of this.$$l[o]){const l=this.$$c.$on(o,a);this.$$l_u.set(a,l)}this.$$l={}}}attributeChangedCallback(t,r,n){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Sr(t,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return sr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Sr(e,t,r,n){var a;const o=(a=r[e])==null?void 0:a.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ai(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function qt(e,t,r,n,o,a){let l=class extends Ro{constructor(){super(e,r,o),this.$$p_d=t}static get observedAttributes(){return sr(t).map(i=>(t[i].attribute||i).toLowerCase())}};return sr(t).forEach(i=>{cr(l.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(s){var d;s=Sr(i,s,t),this.$$d[i]=s;var c=this.$$c;if(c){var u=(d=nt(c,i))==null?void 0:d.get;u?c[i]=s:c.$set({[i]:s})}}})}),n.forEach(i=>{cr(l.prototype,i,{get(){var s;return(s=this.$$c)==null?void 0:s[i]}})}),e.element=l,l}const an="-",Si=e=>{const t=Mi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(an);return i[0]===""&&i.length!==1&&i.shift(),Io(i,t)||Pi(l)},getConflictingClassGroupIds:(l,i)=>{const s=r[l]||[];return i&&n[l]?[...s,...n[l]]:s}}},Io=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Io(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(an);return(l=t.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},No=/^\[(.+)\]$/,Pi=e=>{if(No.test(e)){const t=No.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Mi=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return zi(Object.entries(e.classGroups),r).forEach(([a,l])=>{ln(l,n,a,t)}),n},ln=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Oo(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Ti(o)){ln(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,l])=>{ln(l,Oo(t,a),r,n)})})},Oo=(e,t)=>{let r=e;return t.split(an).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ti=e=>e.isThemeGetter,zi=(e,t)=>t?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[t+l,i])):a);return[r,o]}):e,Ri=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,l)=>{r.set(a,l),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let l=r.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){r.has(a)?r.set(a,l):o(a,l)}}},Do="!",Ii=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],a=t.length,l=i=>{const s=[];let c=0,u=0,d;for(let _=0;_<i.length;_++){let v=i[_];if(c===0){if(v===o&&(n||i.slice(_,_+a)===t)){s.push(i.slice(u,_)),u=_+a;continue}if(v==="/"){d=_;continue}}v==="["?c++:v==="]"&&c--}const m=s.length===0?i:i.substring(u),f=m.startsWith(Do),g=f?m.substring(1):m,p=d&&d>u?d-u:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:p}};return r?i=>r({className:i,parseClassName:l}):l},Ni=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Oi=e=>({cache:Ri(e.cacheSize),parseClassName:Ii(e),...Si(e)}),Di=/\s+/,ji=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],l=e.trim().split(Di);let i="";for(let s=l.length-1;s>=0;s-=1){const c=l[s],{modifiers:u,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:f}=r(c);let g=!!f,p=n(g?m.substring(0,f):m);if(!p){if(!g){i=c+(i.length>0?" "+i:i);continue}if(p=n(m),!p){i=c+(i.length>0?" "+i:i);continue}g=!1}const _=Ni(u).join(":"),v=d?_+Do:_,b=v+p;if(a.includes(b))continue;a.push(b);const w=o(p,g);for(let x=0;x<w.length;++x){const k=w[x];a.push(v+k)}i=c+(i.length>0?" "+i:i)}return i};function qi(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=jo(t))&&(n&&(n+=" "),n+=r);return n}const jo=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=jo(e[n]))&&(r&&(r+=" "),r+=t);return r};function Bi(e,...t){let r,n,o,a=l;function l(s){const c=t.reduce((u,d)=>d(u),e());return r=Oi(c),n=r.cache.get,o=r.cache.set,a=i,i(s)}function i(s){const c=n(s);if(c)return c;const u=ji(s,r);return o(s,u),u}return function(){return a(qi.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},qo=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fi=/^\d+\/\d+$/,Ui=new Set(["px","full","screen"]),Hi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xe=e=>Bt(e)||Ui.has(e)||Fi.test(e),ft=e=>Ft(e,"length",rl),Bt=e=>!!e&&!Number.isNaN(Number(e)),sn=e=>Ft(e,"number",Bt),or=e=>!!e&&Number.isInteger(Number(e)),Zi=e=>e.endsWith("%")&&Bt(e.slice(0,-1)),O=e=>qo.test(e),mt=e=>Hi.test(e),Ki=new Set(["length","size","percentage"]),Ji=e=>Ft(e,Ki,Bo),Xi=e=>Ft(e,"position",Bo),Qi=new Set(["image","url"]),el=e=>Ft(e,Qi,ol),tl=e=>Ft(e,"",nl),ar=()=>!0,Ft=(e,t,r)=>{const n=qo.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},rl=e=>Gi.test(e)&&!Vi.test(e),Bo=()=>!1,nl=e=>Wi.test(e),ol=e=>Yi.test(e),Y=Bi(()=>{const e=se("colors"),t=se("spacing"),r=se("blur"),n=se("brightness"),o=se("borderColor"),a=se("borderRadius"),l=se("borderSpacing"),i=se("borderWidth"),s=se("contrast"),c=se("grayscale"),u=se("hueRotate"),d=se("invert"),m=se("gap"),f=se("gradientColorStops"),g=se("gradientColorStopPositions"),p=se("inset"),_=se("margin"),v=se("opacity"),b=se("padding"),w=se("saturate"),x=se("scale"),k=se("sepia"),T=se("skew"),R=se("space"),F=se("translate"),te=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",O,t],C=()=>[O,t],U=()=>["",Xe,ft],Z=()=>["auto",Bt,O],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],me=()=>["","0",O],he=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Bt,O];return{cacheSize:500,separator:":",theme:{colors:[ar],spacing:[Xe,ft],blur:["none","",mt,O],brightness:ce(),borderColor:[e],borderRadius:["none","","full",mt,O],borderSpacing:C(),borderWidth:U(),contrast:ce(),grayscale:me(),hueRotate:ce(),invert:me(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[Zi,ft],inset:D(),margin:D(),opacity:ce(),padding:C(),saturate:ce(),scale:ce(),sepia:me(),skew:ce(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[mt]}],"break-after":[{"break-after":he()}],"break-before":[{"break-before":he()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),O]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",or,O]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:me()}],shrink:[{shrink:me()}],order:[{order:["first","last","none",or,O]}],"grid-cols":[{"grid-cols":[ar]}],"col-start-end":[{col:["auto",{span:["full",or,O]},O]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[ar]}],"row-start-end":[{row:["auto",{span:[or,O]},O]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[mt]},mt]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",mt,ft]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sn]}],"font-family":[{font:[ar]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",Bt,sn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xe,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xe,ft]}],"underline-offset":[{"underline-offset":["auto",Xe,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),Xi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ji]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},el]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:K()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[Xe,O]}],"outline-w":[{outline:[Xe,ft]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Xe,ft]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mt,tl]}],"shadow-color":[{shadow:[ar]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",mt,O]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[or,O]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xe,ft,sn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),al=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.-right-3{right:-.75rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:1rem}.left-\\[50\\%\\]{left:50%}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\\/2{top:50%}.top-2{top:.5rem}.top-5{top:1.25rem}.top-\\[50\\%\\]{top:50%}.top-full{top:100%}.z-20{z-index:20}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-0{margin-bottom:0}.mb-2{margin-bottom:.5rem}.mb-2\\.5{margin-bottom:.625rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:.125rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\\[4\\/3\\]{aspect-ratio:4/3}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.w-1\\.5{width:.375rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-full{width:100%}.max-w-\\[600px\\]{max-width:600px}.max-w-\\[800px\\]{max-width:800px}.flex-1{flex:1 1 0%}.-translate-x-1\\/2,.-translate-x-\\[50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-3\\.5{--tw-translate-y: -.875rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[calc\\(50\\%\\+theme\\(space\\.3\\)\\)\\]{--tw-translate-y: calc((50% + .75rem)*-1) ;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-3{--tw-rotate: 3deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.items-center{align-items:center}.justify-center{justify-content:center}.\\!justify-between{justify-content:space-between!important}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-x{border-left-width:1px;border-right-width:1px}.border-none{border-style:none}.border-\\[\\#E7E7EC\\]{--tw-border-opacity: 1;border-color:rgb(231 231 236 / var(--tw-border-opacity, 1))}.border-\\[\\#e9e9da\\]{--tw-border-opacity: 1;border-color:rgb(233 233 218 / var(--tw-border-opacity, 1))}.border-current{border-color:currentColor}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-primary{border-color:hsl(var(--s-primary-color))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-r-transparent{border-right-color:transparent}.bg-\\[\\#1F72CD\\]{--tw-bg-opacity: 1;background-color:rgb(31 114 205 / var(--tw-bg-opacity, 1))}.bg-\\[\\#4285f4\\]{--tw-bg-opacity: 1;background-color:rgb(66 133 244 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FEB4C7\\]{--tw-bg-opacity: 1;background-color:rgb(254 180 199 / var(--tw-bg-opacity, 1))}.bg-\\[\\#f8f8f5\\]{--tw-bg-opacity: 1;background-color:rgb(248 248 245 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-primary{background-color:hsl(var(--s-primary-color))}.bg-primary\\/10{background-color:hsl(var(--s-primary-color) / .1)}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-none{background-image:none}.from-\\[hsl\\(var\\(--s-paywall-bg-start-color\\)\\)\\]{--tw-gradient-from: hsl(var(--s-paywall-bg-start-color)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--s-paywall-bg-start-color) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-primary\\/30{--tw-gradient-to: hsl(var(--s-primary-color) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--s-primary-color) / .3) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-\\[hsl\\(var\\(--s-paywall-bg-end-color\\)\\)\\]{--tw-gradient-to: hsl(var(--s-paywall-bg-end-color)) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-2\\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-6{padding-top:1.5rem}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.text-\\[\\#4285f4\\]{--tw-text-opacity: 1;color:rgb(66 133 244 / var(--tw-text-opacity, 1))}.text-\\[\\#5F6D85\\]{--tw-text-opacity: 1;color:rgb(95 109 133 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-primary{color:hsl(var(--s-primary-color))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-0{outline-width:0px}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-transparent{--tw-ring-color: transparent}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,font-size\\]{transition-property:transform,font-size;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.content-\\[\\'\\'\\]{--tw-content: "";content:var(--tw-content)}.row-up-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start}.row-up{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:center}.row-up-right{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-end}.row-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start}.row{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center}.row-right{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-end}.row-down-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:flex-start}.row-down{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:center}.row-down-right{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:flex-end}.column-up-left{display:flex;flex-direction:column;align-items:flex-start}.column-up{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.column-up-right{display:flex;flex-direction:column;align-items:flex-end}.column-left{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.column{display:flex;flex-direction:column;align-items:center;justify-content:center}.column-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}.column-down-left{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end}.column-down{display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.column-down-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end}.\\@container{container-type:inline-size}.placeholder\\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.placeholder\\:text-transparent::-moz-placeholder{color:transparent}.placeholder\\:text-transparent::placeholder{color:transparent}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:left-0:before{content:var(--tw-content);left:0}.before\\:top-1\\/2:before{content:var(--tw-content);top:50%}.before\\:h-px:before{content:var(--tw-content);height:1px}.before\\:w-\\[45\\%\\]:before{content:var(--tw-content);width:45%}.before\\:bg-gray-300:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:right-0:after{content:var(--tw-content);right:0}.after\\:top-1\\/2:after{content:var(--tw-content);top:50%}.after\\:h-px:after{content:var(--tw-content);height:1px}.after\\:w-\\[45\\%\\]:after{content:var(--tw-content);width:45%}.after\\:bg-gray-300:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.after\\:content-\\[\\'\\'\\]:after{--tw-content: "";content:var(--tw-content)}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-primary\\/15:hover{background-color:hsl(var(--s-primary-color) / .15)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:border-gray-300:focus{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.focus\\:ring-primary\\/25:focus{--tw-ring-color: hsl(var(--s-primary-color) / .25)}.active\\:bg-primary\\/10:active{background-color:hsl(var(--s-primary-color) / .1)}.enabled\\:hover\\:bg-primary\\/10:hover:enabled{background-color:hsl(var(--s-primary-color) / .1)}.enabled\\:hover\\:bg-primary\\/90:hover:enabled{background-color:hsl(var(--s-primary-color) / .9)}.enabled\\:hover\\:bg-transparent:hover:enabled{background-color:transparent}.active\\:enabled\\:translate-y-px:enabled:active{--tw-translate-y: 1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:opacity-\\[20\\%\\]:disabled{opacity:20%}.peer:checked~.peer-checked\\:border-primary{border-color:hsl(var(--s-primary-color))}.peer:checked~.peer-checked\\:bg-primary{background-color:hsl(var(--s-primary-color))}.peer:focus~.peer-focus\\:-translate-y-\\[calc\\(50\\%\\+theme\\(space\\.3\\)\\)\\]{--tw-translate-y: calc((50% + .75rem)*-1) ;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\\:text-xs{font-size:.75rem;line-height:1rem}.peer:focus-visible~.peer-focus-visible\\:-translate-y-\\[calc\\(50\\%\\+theme\\(space\\.3\\)\\)\\]{--tw-translate-y: calc((50% + .75rem)*-1) ;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus-visible~.peer-focus-visible\\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.peer:focus-visible~.peer-focus-visible\\:ring-primary\\/20{--tw-ring-color: hsl(var(--s-primary-color) / .2)}.has-\\[input\\:checked\\]\\:border-primary:has(input:checked){border-color:hsl(var(--s-primary-color))}@container (min-width: 20rem){.\\@xs\\:px-8{padding-left:2rem;padding-right:2rem}}@container (min-width: 28rem){.\\@md\\:mt-1{margin-top:.25rem}.\\@md\\:mt-8{margin-top:2rem}.\\@md\\:gap-4{gap:1rem}.\\@md\\:space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.\\@md\\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.\\@md\\:pb-8{padding-bottom:2rem}.\\@md\\:pt-4{padding-top:1rem}.\\@md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.\\@md\\:text-base{font-size:1rem;line-height:1.5rem}.\\@md\\:text-sm{font-size:.875rem;line-height:1.25rem}.\\@md\\:row-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start}.\\@md\\:row{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center}.\\@md\\:column-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}}@container (min-width: 36rem){.\\@xl\\:mb-4{margin-bottom:1rem}.\\@xl\\:auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.\\@xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\@xl\\:gap-4{gap:1rem}.\\@xl\\:rounded-3xl{border-radius:1.5rem}.\\@xl\\:p-1{padding:.25rem}.\\@xl\\:text-2xl{font-size:1.5rem;line-height:2rem}.\\@xl\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.\\@xl\\:text-base{font-size:1rem;line-height:1.5rem}.\\@xl\\:text-lg{font-size:1.125rem;line-height:1.75rem}.\\@xl\\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.\\@xl\\:row-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start}}@container (min-width: 48rem){.\\@3xl\\:p-4{padding:1rem}.\\@3xl\\:px-16{padding-left:4rem;padding-right:4rem}}@container (min-width: 56rem){.\\@4xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media not all and (min-width: 640px){.max-sm\\:gap-0{gap:0px}}@media (min-width: 640px){.sm\\:text-xs{font-size:.75rem;line-height:1rem}}@media not all and (min-width: 640px){.max-sm\\:\\[\\&\\>\\*\\:first-child\\>\\*\\:first-child\\>label\\:first-of-type\\>\\:where\\(select\\,input\\)\\]\\:rounded-t-md>*:first-child>*:first-child>label:first-of-type>:where(select,input){border-top-left-radius:.375rem;border-top-right-radius:.375rem}.max-sm\\:\\[\\&\\>\\*\\:last-child\\>\\*\\:last-child\\>label\\:last-of-type\\>\\:where\\(select\\,input\\)\\]\\:rounded-b-md>*:last-child>*:last-child>label:last-of-type>:where(select,input){border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.max-sm\\:\\[\\&\\>\\*\\]\\:gap-0>*{gap:0px}}.\\[\\&\\>label\\:first-child\\>\\:where\\(select\\,input\\)\\]\\:rounded-t-md>label:first-child>:where(select,input){border-top-left-radius:.375rem;border-top-right-radius:.375rem}.\\[\\&\\>label\\:last-child\\>\\:where\\(select\\,input\\)\\]\\:rounded-b-md>label:last-child>:where(select,input){border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.\\[\\&\\>label\\>\\:where\\(select\\,input\\)\\]\\:rounded-none>label>:where(select,input){border-radius:0}.\\[\\&_label\\>\\:where\\(select\\,input\\)\\]\\:-mt-px label>:where(select,input){margin-top:-1px}@media not all and (min-width: 640px){.max-sm\\:\\[\\&_label\\>\\:where\\(select\\,input\\)\\]\\:rounded-none label>:where(select,input){border-radius:0}}.\\[\\&_label\\>select\\]\\:-mt-px label>select{margin-top:-1px}`;async function il(){return window.sesamy?window.sesamy:new Promise((e,t)=>{const r=setTimeout(()=>{window.sesamy?e(window.sesamy):t(new Error("sesamyReady event did not occur within the expected time."))},5e3);function n(){window.sesamy?(clearTimeout(r),window.removeEventListener("sesamyJsReady",n),e(window.sesamy)):t(new Error("Sesamy API is not available"))}window.addEventListener("sesamyJsReady",n)})}const Fo={cs:{already_subscribing:"Už jste se přihlásili k odběru?",click_to_update:"Klikněte pro aktualizaci",continue:"Pokračovat",country:"Země",did_you_mean:"Měl jste na mysli",email:"E-mail",first_name:"Křestní jméno",first_name_required:"Křestní jméno je povinné",invalid_email:"Neplatná e-mailová adresa",last_name:"Příjmení",last_name_required:"Příjmení je povinné",login:"Přihlášení",logo_of:"Logo společnosti",pay_now:"Zaplaťte nyní",phone_number:"Telefonní číslo",phone_number_required:"Vyžaduje se telefonní číslo",secure_payment:"Bezpečná platba šifrovaná pomocí SSL",something_went_wrong:"Něco se pokazilo",user_already_owns_item:"Tento produkt již vlastníte"},en:{already_subscribing:"Already subscribing?",click_to_update:"Click to update",continue:"Continue",country:"Country",did_you_mean:"Did you mean",email:"Email",first_name:"First name",first_name_required:"First name is required",invalid_email:"Invalid email address",last_name:"Last name",last_name_required:"Last name is required",login:"Login",logo_of:"Logo of",pay_now:"Pay now",phone_number:"Phone number",phone_number_required:"Phone number is required",secure_payment:"Secure SSL encrypted payment",something_went_wrong:"Something went wrong",user_already_owns_item:"You already own this product"},fi:{already_subscribing:"Oletko jo tilannut?",click_to_update:"Klikkaa päivittääksesi",continue:"Jatka",country:"Maa",did_you_mean:"Tarkoititko",email:"Sähköposti",first_name:"Etunimi",first_name_required:"Etunimi vaaditaan",invalid_email:"Virheellinen sähköpostiosoite",last_name:"Sukunimi",last_name_required:"Sukunimi vaaditaan",login:"Kirjaudu sisään",logo_of:"Logo of",pay_now:"Maksa nyt",phone_number:"Puhelinnumero",phone_number_required:"Puhelinnumero vaaditaan",secure_payment:"Turvallinen SSL-salattu maksu",something_went_wrong:"Jokin meni pieleen",user_already_owns_item:"Omistat jo tämän tuotteen"},it:{already_subscribing:"Siete già abbonati?",click_to_update:"Fare clic per aggiornare",continue:"Continua",country:"Paese",did_you_mean:"Intendeva",email:"Email",first_name:"Nome",first_name_required:"Il nome è obbligatorio",invalid_email:"Indirizzo e-mail non valido",last_name:"Cognome",last_name_required:"Il cognome è obbligatorio",login:"Accesso",logo_of:"Logo di",pay_now:"Paga ora",phone_number:"Numero di telefono",phone_number_required:"Il numero di telefono è richiesto",secure_payment:"Pagamento sicuro con crittografia SSL",something_went_wrong:"Qualcosa è andato storto",user_already_owns_item:"Possiedi già questo prodotto"},nb:{already_subscribing:"Abonnerer du allerede?",click_to_update:"Klikk for å oppdatere",continue:"Fortsett",country:"Land",did_you_mean:"Mente du",email:"E-post",first_name:"Fornavn",first_name_required:"Fornavn er påkrevd",invalid_email:"Ugyldig e-postadresse",last_name:"Etternavn",last_name_required:"Etternavn er påkrevd",login:"Logg inn",logo_of:"Logoen til",pay_now:"Betal nå",phone_number:"Telefonnummer",phone_number_required:"Telefonnummer er påkrevd",secure_payment:"Sikker SSL-kryptert betaling",something_went_wrong:"Noe gikk galt",user_already_owns_item:"Du eier allerede dette produktet"},pl:{already_subscribing:"Już subskrybujesz?",click_to_update:"Kliknij, aby zaktualizować",continue:"Kontynuuj",country:"Kraj",did_you_mean:"Czy miałeś na myśli",email:"E-mail",first_name:"Imię",first_name_required:"Imię jest wymagane",invalid_email:"Nieprawidłowy adres e-mail",last_name:"Nazwisko",last_name_required:"Nazwisko jest wymagane",login:"Logowanie",logo_of:"Logo",pay_now:"Zapłać teraz",phone_number:"Numer telefonu",phone_number_required:"Numer telefonu jest wymagany",secure_payment:"Bezpieczna płatność szyfrowana SSL",something_went_wrong:"Coś poszło nie tak",user_already_owns_item:"Posiadasz już ten produkt"},sv:{already_subscribing:"Prenumererar du redan?",click_to_update:"Klicka för att uppdatera",continue:"Fortsätt",country:"Land",did_you_mean:"Menade du",email:"E-post",first_name:"Förnamn",first_name_required:"Förnamn är obligatoriskt",invalid_email:"Ogiltig e-postadress",last_name:"Efternamn",last_name_required:"Efternamn är obligatoriskt",login:"Logga in",logo_of:"Logotyp för",pay_now:"Betala nu",phone_number:"Telefonnummer",phone_number_required:"Telefonnummer är obligatoriskt",secure_payment:"Säker SSL-krypterad betalning",something_went_wrong:"Något gick fel",user_already_owns_item:"Du har redan köpt den här produkten"}};function ll(e){const t=Fo[e]?e:"en";return r=>{var n;return((n=Fo[t])==null?void 0:n[r])||r}}const cn=e=>{if(![4,7].includes(e.length))return[0,0,100];let t=0,r=0,n=0;e.length===4?(t=`0x${e[1]}${e[1]}`,r=`0x${e[2]}${e[2]}`,n=`0x${e[3]}${e[3]}`):e.length===7&&(t=`0x${e[1]}${e[2]}`,r=`0x${e[3]}${e[4]}`,n=`0x${e[5]}${e[6]}`),t/=255,r/=255,n/=255;const o=Math.min(t,r,n),a=Math.max(t,r,n),l=a-o;let i=0,s=0,c=0;return l===0?i=0:a===t?i=(r-n)/l%6:a===r?i=(n-t)/l+2:i=(t-r)/l+4,i=Math.round(i*60),i<0&&(i+=360),c=(a+o)/2,s=l===0?0:l/(1-Math.abs(2*c-1)),s=+(s*100).toFixed(1),c=+(c*100).toFixed(1),[i,s,c]},Uo=e=>e.map((t,r)=>r?`${t}%`:t).join(" ");var sl=P('<p style="color: red"> </p>'),cl=P("<!> <!>",1);function Ut(e,t){var m;oe(t,!0);let r=S(t,"applyStyles",3,!0);const n=(m=document.querySelector("html"))==null?void 0:m.getAttribute("lang"),o=n==null?void 0:n.split("-")[0],a=il(),l=ll(t.lang||o||"en");let i=`
|
|
1
|
+
(function(Bt,Ft){typeof exports=="object"&&typeof module<"u"?Ft(exports):typeof define=="function"&&define.amd?define(["exports"],Ft):(Bt=typeof globalThis<"u"?globalThis:Bt||self,Ft(Bt["@sesamy/sesamy-components"]={}))})(this,function(exports){"use strict";var wr=Object.defineProperty;var dr=Bt=>{throw TypeError(Bt)};var $r=(Bt,Ft,$e)=>Ft in Bt?wr(Bt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Bt[Ft]=$e;var Jt=(Bt,Ft,$e)=>$r(Bt,typeof Ft!="symbol"?Ft+"":Ft,$e),fr=(Bt,Ft,$e)=>Ft.has(Bt)||dr("Cannot "+$e);var Zt=(Bt,Ft,$e)=>(fr(Bt,Ft,"read from private field"),$e?$e.call(Bt):Ft.get(Bt)),ar=(Bt,Ft,$e)=>Ft.has(Bt)?dr("Cannot add the same private member more than once"):Ft instanceof WeakSet?Ft.add(Bt):Ft.set(Bt,$e),sr=(Bt,Ft,$e,De)=>(fr(Bt,Ft,"write to private field"),De?De.call(Bt,$e):Ft.set(Bt,$e),$e);var Bt,Ft;const PUBLIC_VERSION="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(PUBLIC_VERSION);const EACH_ITEM_REACTIVE=1,EACH_INDEX_REACTIVE=2,EACH_IS_CONTROLLED=4,EACH_IS_ANIMATED=8,EACH_ITEM_IMMUTABLE=16,PROPS_IS_IMMUTABLE=1,PROPS_IS_RUNES=2,PROPS_IS_UPDATED=4,PROPS_IS_BINDABLE=8,PROPS_IS_LAZY_INITIAL=16,TRANSITION_GLOBAL=4,TEMPLATE_FRAGMENT=1,TEMPLATE_USE_IMPORT_NODE=2,HYDRATION_START="[",HYDRATION_START_ELSE="[!",HYDRATION_END="]",HYDRATION_ERROR={},UNINITIALIZED=Symbol(),NAMESPACE_SVG="http://www.w3.org/2000/svg";function is_capture_event($e){return $e.endsWith("capture")&&$e!=="gotpointercapture"&&$e!=="lostpointercapture"}const DELEGATED_EVENTS=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function is_delegated($e){return DELEGATED_EVENTS.includes($e)}const ATTRIBUTE_ALIASES={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function normalize_attribute($e){return $e=$e.toLowerCase(),ATTRIBUTE_ALIASES[$e]??$e}const PASSIVE_EVENTS=["touchstart","touchmove"];function is_passive_event($e){return PASSIVE_EVENTS.includes($e)}const RAW_TEXT_ELEMENTS=["textarea","script","style","title"];function is_raw_text_element($e){return RAW_TEXT_ELEMENTS.includes($e)}const DEV=!1;var is_array=Array.isArray,array_from=Array.from,object_keys=Object.keys,define_property=Object.defineProperty,get_descriptor=Object.getOwnPropertyDescriptor,get_descriptors=Object.getOwnPropertyDescriptors,object_prototype=Object.prototype,array_prototype=Array.prototype,get_prototype_of=Object.getPrototypeOf;function is_function($e){return typeof $e=="function"}const noop$1=()=>{};function is_promise($e){return typeof($e==null?void 0:$e.then)=="function"}function run$2($e){return $e()}function run_all($e){for(var De=0;De<$e.length;De++)$e[De]()}const DERIVED=2,EFFECT=4,RENDER_EFFECT=8,BLOCK_EFFECT=16,BRANCH_EFFECT=32,ROOT_EFFECT=64,BOUNDARY_EFFECT=128,UNOWNED=256,DISCONNECTED=512,CLEAN=1024,DIRTY=2048,MAYBE_DIRTY=4096,INERT=8192,DESTROYED=16384,EFFECT_RAN=32768,EFFECT_TRANSPARENT=65536,LEGACY_DERIVED_PROP=1<<17,HEAD_EFFECT=1<<19,EFFECT_HAS_DERIVED=1<<20,STATE_SYMBOL=Symbol("$state"),LEGACY_PROPS=Symbol("legacy props"),LOADING_ATTR_SYMBOL=Symbol("");function equals($e){return $e===this.v}function safe_not_equal($e,De){return $e!=$e?De==De:$e!==De||$e!==null&&typeof $e=="object"||typeof $e=="function"}function safe_equals($e){return!safe_not_equal($e,this.v)}function effect_in_teardown($e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function effect_in_unowned_derived(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function effect_orphan($e){throw new Error("https://svelte.dev/e/effect_orphan")}function effect_update_depth_exceeded(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hydration_failed(){throw new Error("https://svelte.dev/e/hydration_failed")}function props_invalid_value($e){throw new Error("https://svelte.dev/e/props_invalid_value")}function state_descriptors_fixed(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function state_prototype_fixed(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function state_unsafe_local_read(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function state_unsafe_mutation(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let legacy_mode_flag=!1;function enable_legacy_mode_flag(){legacy_mode_flag=!0}function source($e,De){var Fe={f:0,v:$e,reactions:null,equals,version:0};return Fe}function state($e){return push_derived_source(source($e))}function mutable_source($e,De=!1){var He;const Fe=source($e);return De||(Fe.equals=safe_equals),legacy_mode_flag&&component_context!==null&&component_context.l!==null&&((He=component_context.l).s??(He.s=[])).push(Fe),Fe}function push_derived_source($e){return active_reaction!==null&&active_reaction.f&DERIVED&&(derived_sources===null?set_derived_sources([$e]):derived_sources.push($e)),$e}function set$2($e,De){return active_reaction!==null&&is_runes()&&active_reaction.f&(DERIVED|BLOCK_EFFECT)&&(derived_sources===null||!derived_sources.includes($e))&&state_unsafe_mutation(),internal_set($e,De)}function internal_set($e,De){return $e.equals(De)||($e.v=De,$e.version=increment_version(),mark_reactions($e,DIRTY),is_runes()&&active_effect!==null&&active_effect.f&CLEAN&&!(active_effect.f&BRANCH_EFFECT)&&(new_deps!==null&&new_deps.includes($e)?(set_signal_status(active_effect,DIRTY),schedule_effect(active_effect)):untracked_writes===null?set_untracked_writes([$e]):untracked_writes.push($e))),De}function mark_reactions($e,De){var Fe=$e.reactions;if(Fe!==null)for(var He=is_runes(),Be=Fe.length,Ge=0;Ge<Be;Ge++){var Ke=Fe[Ge],We=Ke.f;We&DIRTY||!He&&Ke===active_effect||(set_signal_status(Ke,De),We&(CLEAN|UNOWNED)&&(We&DERIVED?mark_reactions(Ke,MAYBE_DIRTY):schedule_effect(Ke)))}}function hydration_mismatch($e){console.warn("https://svelte.dev/e/hydration_mismatch")}let hydrating=!1;function set_hydrating($e){hydrating=$e}let hydrate_node;function set_hydrate_node($e){if($e===null)throw hydration_mismatch(),HYDRATION_ERROR;return hydrate_node=$e}function hydrate_next(){return set_hydrate_node(get_next_sibling(hydrate_node))}function reset($e){if(hydrating){if(get_next_sibling(hydrate_node)!==null)throw hydration_mismatch(),HYDRATION_ERROR;hydrate_node=$e}}function next($e=1){if(hydrating){for(var De=$e,Fe=hydrate_node;De--;)Fe=get_next_sibling(Fe);hydrate_node=Fe}}function remove_nodes(){for(var $e=0,De=hydrate_node;;){if(De.nodeType===8){var Fe=De.data;if(Fe===HYDRATION_END){if($e===0)return De;$e-=1}else(Fe===HYDRATION_START||Fe===HYDRATION_START_ELSE)&&($e+=1)}var He=get_next_sibling(De);De.remove(),De=He}}function proxy($e,De=null,Fe){if(typeof $e!="object"||$e===null||STATE_SYMBOL in $e)return $e;const He=get_prototype_of($e);if(He!==object_prototype&&He!==array_prototype)return $e;var Be=new Map,Ge=is_array($e),Ke=source(0);Ge&&Be.set("length",source($e.length));var We;return new Proxy($e,{defineProperty(Xe,Je,Ze){(!("value"in Ze)||Ze.configurable===!1||Ze.enumerable===!1||Ze.writable===!1)&&state_descriptors_fixed();var Ye=Be.get(Je);return Ye===void 0?(Ye=source(Ze.value),Be.set(Je,Ye)):set$2(Ye,proxy(Ze.value,We)),!0},deleteProperty(Xe,Je){var Ze=Be.get(Je);if(Ze===void 0)Je in Xe&&Be.set(Je,source(UNINITIALIZED));else{if(Ge&&typeof Je=="string"){var Ye=Be.get("length"),Qe=Number(Je);Number.isInteger(Qe)&&Qe<Ye.v&&set$2(Ye,Qe)}set$2(Ze,UNINITIALIZED),update_version(Ke)}return!0},get(Xe,Je,Ze){var tt;if(Je===STATE_SYMBOL)return $e;var Ye=Be.get(Je),Qe=Je in Xe;if(Ye===void 0&&(!Qe||(tt=get_descriptor(Xe,Je))!=null&&tt.writable)&&(Ye=source(proxy(Qe?Xe[Je]:UNINITIALIZED,We)),Be.set(Je,Ye)),Ye!==void 0){var et=get$1(Ye);return et===UNINITIALIZED?void 0:et}return Reflect.get(Xe,Je,Ze)},getOwnPropertyDescriptor(Xe,Je){var Ze=Reflect.getOwnPropertyDescriptor(Xe,Je);if(Ze&&"value"in Ze){var Ye=Be.get(Je);Ye&&(Ze.value=get$1(Ye))}else if(Ze===void 0){var Qe=Be.get(Je),et=Qe==null?void 0:Qe.v;if(Qe!==void 0&&et!==UNINITIALIZED)return{enumerable:!0,configurable:!0,value:et,writable:!0}}return Ze},has(Xe,Je){var et;if(Je===STATE_SYMBOL)return!0;var Ze=Be.get(Je),Ye=Ze!==void 0&&Ze.v!==UNINITIALIZED||Reflect.has(Xe,Je);if(Ze!==void 0||active_effect!==null&&(!Ye||(et=get_descriptor(Xe,Je))!=null&&et.writable)){Ze===void 0&&(Ze=source(Ye?proxy(Xe[Je],We):UNINITIALIZED),Be.set(Je,Ze));var Qe=get$1(Ze);if(Qe===UNINITIALIZED)return!1}return Ye},set(Xe,Je,Ze,Ye){var ct;var Qe=Be.get(Je),et=Je in Xe;if(Ge&&Je==="length")for(var tt=Ze;tt<Qe.v;tt+=1){var rt=Be.get(tt+"");rt!==void 0?set$2(rt,UNINITIALIZED):tt in Xe&&(rt=source(UNINITIALIZED),Be.set(tt+"",rt))}Qe===void 0?(!et||(ct=get_descriptor(Xe,Je))!=null&&ct.writable)&&(Qe=source(void 0),set$2(Qe,proxy(Ze,We)),Be.set(Je,Qe)):(et=Qe.v!==UNINITIALIZED,set$2(Qe,proxy(Ze,We)));var nt=Reflect.getOwnPropertyDescriptor(Xe,Je);if(nt!=null&&nt.set&&nt.set.call(Ye,Ze),!et){if(Ge&&typeof Je=="string"){var at=Be.get("length"),st=Number(Je);Number.isInteger(st)&&st>=at.v&&set$2(at,st+1)}update_version(Ke)}return!0},ownKeys(Xe){get$1(Ke);var Je=Reflect.ownKeys(Xe).filter(Qe=>{var et=Be.get(Qe);return et===void 0||et.v!==UNINITIALIZED});for(var[Ze,Ye]of Be)Ye.v!==UNINITIALIZED&&!(Ze in Xe)&&Je.push(Ze);return Je},setPrototypeOf(){state_prototype_fixed()}})}function update_version($e,De=1){set$2($e,$e.v+De)}function get_proxied_value($e){return $e!==null&&typeof $e=="object"&&STATE_SYMBOL in $e?$e[STATE_SYMBOL]:$e}function is($e,De){return Object.is(get_proxied_value($e),get_proxied_value(De))}var $window,first_child_getter,next_sibling_getter;function init_operations(){if($window===void 0){$window=window;var $e=Element.prototype,De=Node.prototype;first_child_getter=get_descriptor(De,"firstChild").get,next_sibling_getter=get_descriptor(De,"nextSibling").get,$e.__click=void 0,$e.__className="",$e.__attributes=null,$e.__styles=null,$e.__e=void 0,Text.prototype.__t=void 0}}function create_text($e=""){return document.createTextNode($e)}function get_first_child($e){return first_child_getter.call($e)}function get_next_sibling($e){return next_sibling_getter.call($e)}function child($e,De){if(!hydrating)return get_first_child($e);var Fe=get_first_child(hydrate_node);if(Fe===null)Fe=hydrate_node.appendChild(create_text());else if(De&&Fe.nodeType!==3){var He=create_text();return Fe==null||Fe.before(He),set_hydrate_node(He),He}return set_hydrate_node(Fe),Fe}function first_child($e,De){if(!hydrating){var Fe=get_first_child($e);return Fe instanceof Comment&&Fe.data===""?get_next_sibling(Fe):Fe}return hydrate_node}function sibling($e,De=1,Fe=!1){let He=hydrating?hydrate_node:$e;for(var Be;De--;)Be=He,He=get_next_sibling(He);if(!hydrating)return He;var Ge=He==null?void 0:He.nodeType;if(Fe&&Ge!==3){var Ke=create_text();return He===null?Be==null||Be.after(Ke):He.before(Ke),set_hydrate_node(Ke),Ke}return set_hydrate_node(He),He}function clear_text_content($e){$e.textContent=""}function derived($e){var De=DERIVED|DIRTY;active_effect===null?De|=UNOWNED:active_effect.f|=EFFECT_HAS_DERIVED;var Fe=active_reaction!==null&&active_reaction.f&DERIVED?active_reaction:null;const He={children:null,ctx:component_context,deps:null,equals,f:De,fn:$e,reactions:null,v:null,version:0,parent:Fe??active_effect};return Fe!==null&&(Fe.children??(Fe.children=[])).push(He),He}function derived_safe_equal($e){const De=derived($e);return De.equals=safe_equals,De}function destroy_derived_children($e){var De=$e.children;if(De!==null){$e.children=null;for(var Fe=0;Fe<De.length;Fe+=1){var He=De[Fe];He.f&DERIVED?destroy_derived(He):destroy_effect(He)}}}function get_derived_parent_effect($e){for(var De=$e.parent;De!==null;){if(!(De.f&DERIVED))return De;De=De.parent}return null}function execute_derived($e){var De,Fe=active_effect;set_active_effect(get_derived_parent_effect($e));try{destroy_derived_children($e),De=update_reaction($e)}finally{set_active_effect(Fe)}return De}function update_derived($e){var De=execute_derived($e),Fe=(skip_reaction||$e.f&UNOWNED)&&$e.deps!==null?MAYBE_DIRTY:CLEAN;set_signal_status($e,Fe),$e.equals(De)||($e.v=De,$e.version=increment_version())}function destroy_derived($e){destroy_derived_children($e),remove_reactions($e,0),set_signal_status($e,DESTROYED),$e.v=$e.children=$e.deps=$e.ctx=$e.reactions=null}function validate_effect($e){active_effect===null&&active_reaction===null&&effect_orphan(),active_reaction!==null&&active_reaction.f&UNOWNED&&effect_in_unowned_derived(),is_destroying_effect&&effect_in_teardown()}function push_effect($e,De){var Fe=De.last;Fe===null?De.last=De.first=$e:(Fe.next=$e,$e.prev=Fe,De.last=$e)}function create_effect($e,De,Fe,He=!0){var Be=($e&ROOT_EFFECT)!==0,Ge=active_effect,Ke={ctx:component_context,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:$e|DIRTY,first:null,fn:De,last:null,next:null,parent:Be?null:Ge,prev:null,teardown:null,transitions:null,version:0};if(Fe){var We=is_flushing_effect;try{set_is_flushing_effect(!0),update_effect(Ke),Ke.f|=EFFECT_RAN}catch(Ze){throw destroy_effect(Ke),Ze}finally{set_is_flushing_effect(We)}}else De!==null&&schedule_effect(Ke);var Xe=Fe&&Ke.deps===null&&Ke.first===null&&Ke.nodes_start===null&&Ke.teardown===null&&(Ke.f&EFFECT_HAS_DERIVED)===0;if(!Xe&&!Be&&He&&(Ge!==null&&push_effect(Ke,Ge),active_reaction!==null&&active_reaction.f&DERIVED)){var Je=active_reaction;(Je.children??(Je.children=[])).push(Ke)}return Ke}function teardown($e){const De=create_effect(RENDER_EFFECT,null,!1);return set_signal_status(De,CLEAN),De.teardown=$e,De}function user_effect($e){validate_effect();var De=active_effect!==null&&(active_effect.f&BRANCH_EFFECT)!==0&&component_context!==null&&!component_context.m;if(De){var Fe=component_context;(Fe.e??(Fe.e=[])).push({fn:$e,effect:active_effect,reaction:active_reaction})}else{var He=effect($e);return He}}function user_pre_effect($e){return validate_effect(),render_effect($e)}function effect_root($e){const De=create_effect(ROOT_EFFECT,$e,!0);return()=>{destroy_effect(De)}}function component_root($e){const De=create_effect(ROOT_EFFECT,$e,!0);return(Fe={})=>new Promise(He=>{Fe.outro?pause_effect(De,()=>{destroy_effect(De),He(void 0)}):(destroy_effect(De),He(void 0))})}function effect($e){return create_effect(EFFECT,$e,!1)}function render_effect($e){return create_effect(RENDER_EFFECT,$e,!0)}function template_effect($e){return block($e)}function block($e,De=0){return create_effect(RENDER_EFFECT|BLOCK_EFFECT|De,$e,!0)}function branch($e,De=!0){return create_effect(RENDER_EFFECT|BRANCH_EFFECT,$e,!0,De)}function execute_effect_teardown($e){var De=$e.teardown;if(De!==null){const Fe=is_destroying_effect,He=active_reaction;set_is_destroying_effect(!0),set_active_reaction(null);try{De.call(null)}finally{set_is_destroying_effect(Fe),set_active_reaction(He)}}}function destroy_effect_deriveds($e){var De=$e.deriveds;if(De!==null){$e.deriveds=null;for(var Fe=0;Fe<De.length;Fe+=1)destroy_derived(De[Fe])}}function destroy_effect_children($e,De=!1){var Fe=$e.first;for($e.first=$e.last=null;Fe!==null;){var He=Fe.next;destroy_effect(Fe,De),Fe=He}}function destroy_block_effect_children($e){for(var De=$e.first;De!==null;){var Fe=De.next;De.f&BRANCH_EFFECT||destroy_effect(De),De=Fe}}function destroy_effect($e,De=!0){var Fe=!1;if((De||$e.f&HEAD_EFFECT)&&$e.nodes_start!==null){for(var He=$e.nodes_start,Be=$e.nodes_end;He!==null;){var Ge=He===Be?null:get_next_sibling(He);He.remove(),He=Ge}Fe=!0}destroy_effect_children($e,De&&!Fe),destroy_effect_deriveds($e),remove_reactions($e,0),set_signal_status($e,DESTROYED);var Ke=$e.transitions;if(Ke!==null)for(const Xe of Ke)Xe.stop();execute_effect_teardown($e);var We=$e.parent;We!==null&&We.first!==null&&unlink_effect($e),$e.next=$e.prev=$e.teardown=$e.ctx=$e.deps=$e.fn=$e.nodes_start=$e.nodes_end=null}function unlink_effect($e){var De=$e.parent,Fe=$e.prev,He=$e.next;Fe!==null&&(Fe.next=He),He!==null&&(He.prev=Fe),De!==null&&(De.first===$e&&(De.first=He),De.last===$e&&(De.last=Fe))}function pause_effect($e,De){var Fe=[];pause_children($e,Fe,!0),run_out_transitions(Fe,()=>{destroy_effect($e),De&&De()})}function run_out_transitions($e,De){var Fe=$e.length;if(Fe>0){var He=()=>--Fe||De();for(var Be of $e)Be.out(He)}else De()}function pause_children($e,De,Fe){if(!($e.f&INERT)){if($e.f^=INERT,$e.transitions!==null)for(const Ke of $e.transitions)(Ke.is_global||Fe)&&De.push(Ke);for(var He=$e.first;He!==null;){var Be=He.next,Ge=(He.f&EFFECT_TRANSPARENT)!==0||(He.f&BRANCH_EFFECT)!==0;pause_children(He,De,Ge?Fe:!1),He=Be}}}function resume_effect($e){resume_children($e,!0)}function resume_children($e,De){if($e.f&INERT){check_dirtiness($e)&&update_effect($e),$e.f^=INERT;for(var Fe=$e.first;Fe!==null;){var He=Fe.next,Be=(Fe.f&EFFECT_TRANSPARENT)!==0||(Fe.f&BRANCH_EFFECT)!==0;resume_children(Fe,Be?De:!1),Fe=He}if($e.transitions!==null)for(const Ge of $e.transitions)(Ge.is_global||De)&&Ge.in()}}const request_idle_callback=typeof requestIdleCallback>"u"?$e=>setTimeout($e,1):requestIdleCallback;let is_micro_task_queued$1=!1,is_idle_task_queued=!1,current_queued_micro_tasks=[],current_queued_idle_tasks=[];function process_micro_tasks(){is_micro_task_queued$1=!1;const $e=current_queued_micro_tasks.slice();current_queued_micro_tasks=[],run_all($e)}function process_idle_tasks(){is_idle_task_queued=!1;const $e=current_queued_idle_tasks.slice();current_queued_idle_tasks=[],run_all($e)}function queue_micro_task($e){is_micro_task_queued$1||(is_micro_task_queued$1=!0,queueMicrotask(process_micro_tasks)),current_queued_micro_tasks.push($e)}function queue_idle_task($e){is_idle_task_queued||(is_idle_task_queued=!0,request_idle_callback(process_idle_tasks)),current_queued_idle_tasks.push($e)}function flush_tasks(){is_micro_task_queued$1&&process_micro_tasks(),is_idle_task_queued&&process_idle_tasks()}function invalid_default_snippet(){throw new Error("https://svelte.dev/e/invalid_default_snippet")}const FLUSH_MICROTASK=0,FLUSH_SYNC=1;let is_throwing_error=!1,scheduler_mode=FLUSH_MICROTASK,is_micro_task_queued=!1,last_scheduled_effect=null,is_flushing_effect=!1,is_destroying_effect=!1;function set_is_flushing_effect($e){is_flushing_effect=$e}function set_is_destroying_effect($e){is_destroying_effect=$e}let queued_root_effects=[],flush_count=0,dev_effect_stack=[],active_reaction=null;function set_active_reaction($e){active_reaction=$e}let active_effect=null;function set_active_effect($e){active_effect=$e}let derived_sources=null;function set_derived_sources($e){derived_sources=$e}let new_deps=null,skipped_deps=0,untracked_writes=null;function set_untracked_writes($e){untracked_writes=$e}let current_version=1,skip_reaction=!1,component_context=null;function set_component_context($e){component_context=$e}function increment_version(){return++current_version}function is_runes(){return!legacy_mode_flag||component_context!==null&&component_context.l===null}function check_dirtiness($e){var Ke,We;var De=$e.f;if(De&DIRTY)return!0;if(De&MAYBE_DIRTY){var Fe=$e.deps,He=(De&UNOWNED)!==0;if(Fe!==null){var Be;if(De&DISCONNECTED){for(Be=0;Be<Fe.length;Be++)((Ke=Fe[Be]).reactions??(Ke.reactions=[])).push($e);$e.f^=DISCONNECTED}for(Be=0;Be<Fe.length;Be++){var Ge=Fe[Be];if(check_dirtiness(Ge)&&update_derived(Ge),He&&active_effect!==null&&!skip_reaction&&!((We=Ge==null?void 0:Ge.reactions)!=null&&We.includes($e))&&(Ge.reactions??(Ge.reactions=[])).push($e),Ge.version>$e.version)return!0}}(!He||active_effect!==null&&!skip_reaction)&&set_signal_status($e,CLEAN)}return!1}function propagate_error($e,De){for(var Fe=De;Fe!==null;){if(Fe.f&BOUNDARY_EFFECT)try{Fe.fn($e);return}catch{Fe.f^=BOUNDARY_EFFECT}Fe=Fe.parent}throw is_throwing_error=!1,$e}function should_rethrow_error($e){return($e.f&DESTROYED)===0&&($e.parent===null||($e.parent.f&BOUNDARY_EFFECT)===0)}function handle_error($e,De,Fe,He){if(is_throwing_error){if(Fe===null&&(is_throwing_error=!1),should_rethrow_error(De))throw $e;return}Fe!==null&&(is_throwing_error=!0);{propagate_error($e,De);return}}function update_reaction($e){var Qe;var De=new_deps,Fe=skipped_deps,He=untracked_writes,Be=active_reaction,Ge=skip_reaction,Ke=derived_sources,We=component_context,Xe=$e.f;new_deps=null,skipped_deps=0,untracked_writes=null,active_reaction=Xe&(BRANCH_EFFECT|ROOT_EFFECT)?null:$e,skip_reaction=!is_flushing_effect&&(Xe&UNOWNED)!==0,derived_sources=null,component_context=$e.ctx;try{var Je=(0,$e.fn)(),Ze=$e.deps;if(new_deps!==null){var Ye;if(remove_reactions($e,skipped_deps),Ze!==null&&skipped_deps>0)for(Ze.length=skipped_deps+new_deps.length,Ye=0;Ye<new_deps.length;Ye++)Ze[skipped_deps+Ye]=new_deps[Ye];else $e.deps=Ze=new_deps;if(!skip_reaction)for(Ye=skipped_deps;Ye<Ze.length;Ye++)((Qe=Ze[Ye]).reactions??(Qe.reactions=[])).push($e)}else Ze!==null&&skipped_deps<Ze.length&&(remove_reactions($e,skipped_deps),Ze.length=skipped_deps);return Je}finally{new_deps=De,skipped_deps=Fe,untracked_writes=He,active_reaction=Be,skip_reaction=Ge,derived_sources=Ke,component_context=We}}function remove_reaction($e,De){let Fe=De.reactions;if(Fe!==null){var He=Fe.indexOf($e);if(He!==-1){var Be=Fe.length-1;Be===0?Fe=De.reactions=null:(Fe[He]=Fe[Be],Fe.pop())}}Fe===null&&De.f&DERIVED&&(new_deps===null||!new_deps.includes(De))&&(set_signal_status(De,MAYBE_DIRTY),De.f&(UNOWNED|DISCONNECTED)||(De.f^=DISCONNECTED),remove_reactions(De,0))}function remove_reactions($e,De){var Fe=$e.deps;if(Fe!==null)for(var He=De;He<Fe.length;He++)remove_reaction($e,Fe[He])}function update_effect($e){var De=$e.f;if(!(De&DESTROYED)){set_signal_status($e,CLEAN);var Fe=active_effect,He=component_context;active_effect=$e;try{De&BLOCK_EFFECT?destroy_block_effect_children($e):destroy_effect_children($e),destroy_effect_deriveds($e),execute_effect_teardown($e);var Be=update_reaction($e);$e.teardown=typeof Be=="function"?Be:null,$e.version=current_version}catch(Ge){handle_error(Ge,$e,Fe,He||$e.ctx)}finally{active_effect=Fe}}}function infinite_loop_guard(){if(flush_count>1e3){flush_count=0;try{effect_update_depth_exceeded()}catch($e){if(last_scheduled_effect!==null)handle_error($e,last_scheduled_effect,null);else throw $e}}flush_count++}function flush_queued_root_effects($e){var De=$e.length;if(De!==0){infinite_loop_guard();var Fe=is_flushing_effect;is_flushing_effect=!0;try{for(var He=0;He<De;He++){var Be=$e[He];Be.f&CLEAN||(Be.f^=CLEAN);var Ge=[];process_effects(Be,Ge),flush_queued_effects(Ge)}}finally{is_flushing_effect=Fe}}}function flush_queued_effects($e){var De=$e.length;if(De!==0)for(var Fe=0;Fe<De;Fe++){var He=$e[Fe];if(!(He.f&(DESTROYED|INERT)))try{check_dirtiness(He)&&(update_effect(He),He.deps===null&&He.first===null&&He.nodes_start===null&&(He.teardown===null?unlink_effect(He):He.fn=null))}catch(Be){handle_error(Be,He,null,He.ctx)}}}function process_deferred(){if(is_micro_task_queued=!1,flush_count>1001)return;const $e=queued_root_effects;queued_root_effects=[],flush_queued_root_effects($e),is_micro_task_queued||(flush_count=0,last_scheduled_effect=null)}function schedule_effect($e){scheduler_mode===FLUSH_MICROTASK&&(is_micro_task_queued||(is_micro_task_queued=!0,queueMicrotask(process_deferred))),last_scheduled_effect=$e;for(var De=$e;De.parent!==null;){De=De.parent;var Fe=De.f;if(Fe&(ROOT_EFFECT|BRANCH_EFFECT)){if(!(Fe&CLEAN))return;De.f^=CLEAN}}queued_root_effects.push(De)}function process_effects($e,De){var Fe=$e.first,He=[];e:for(;Fe!==null;){var Be=Fe.f,Ge=(Be&BRANCH_EFFECT)!==0,Ke=Ge&&(Be&CLEAN)!==0,We=Fe.next;if(!Ke&&!(Be&INERT))if(Be&RENDER_EFFECT){if(Ge)Fe.f^=CLEAN;else try{check_dirtiness(Fe)&&update_effect(Fe)}catch(Ye){handle_error(Ye,Fe,null,Fe.ctx)}var Xe=Fe.first;if(Xe!==null){Fe=Xe;continue}}else Be&EFFECT&&He.push(Fe);if(We===null){let Ye=Fe.parent;for(;Ye!==null;){if($e===Ye)break e;var Je=Ye.next;if(Je!==null){Fe=Je;continue e}Ye=Ye.parent}}Fe=We}for(var Ze=0;Ze<He.length;Ze++)Xe=He[Ze],De.push(Xe),process_effects(Xe,De)}function flush_sync($e){var De=scheduler_mode,Fe=queued_root_effects;try{infinite_loop_guard();const Be=[];scheduler_mode=FLUSH_SYNC,queued_root_effects=Be,is_micro_task_queued=!1,flush_queued_root_effects(Fe);var He=$e==null?void 0:$e();return flush_tasks(),(queued_root_effects.length>0||Be.length>0)&&flush_sync(),flush_count=0,last_scheduled_effect=null,He}finally{scheduler_mode=De,queued_root_effects=Fe}}function get$1($e){var Ze;var De=$e.f,Fe=(De&DERIVED)!==0;if(Fe&&De&DESTROYED){var He=execute_derived($e);return destroy_derived($e),He}if(active_reaction!==null){derived_sources!==null&&derived_sources.includes($e)&&state_unsafe_local_read();var Be=active_reaction.deps;new_deps===null&&Be!==null&&Be[skipped_deps]===$e?skipped_deps++:new_deps===null?new_deps=[$e]:new_deps.push($e),untracked_writes!==null&&active_effect!==null&&active_effect.f&CLEAN&&!(active_effect.f&BRANCH_EFFECT)&&untracked_writes.includes($e)&&(set_signal_status(active_effect,DIRTY),schedule_effect(active_effect))}else if(Fe&&$e.deps===null)for(var Ge=$e,Ke=Ge.parent,We=Ge;Ke!==null;)if(Ke.f&DERIVED){var Xe=Ke;We=Xe,Ke=Xe.parent}else{var Je=Ke;(Ze=Je.deriveds)!=null&&Ze.includes(We)||(Je.deriveds??(Je.deriveds=[])).push(We);break}return Fe&&(Ge=$e,check_dirtiness(Ge)&&update_derived(Ge)),$e.v}function untrack($e){const De=active_reaction;try{return active_reaction=null,$e()}finally{active_reaction=De}}const STATUS_MASK=~(DIRTY|MAYBE_DIRTY|CLEAN);function set_signal_status($e,De){$e.f=$e.f&STATUS_MASK|De}function push$6($e,De=!1,Fe){component_context={p:component_context,c:null,e:null,m:!1,s:$e,x:null,l:null},legacy_mode_flag&&!De&&(component_context.l={s:null,u:null,r1:[],r2:source(!1)})}function pop$1($e){const De=component_context;if(De!==null){$e!==void 0&&(De.x=$e);const Ke=De.e;if(Ke!==null){var Fe=active_effect,He=active_reaction;De.e=null;try{for(var Be=0;Be<Ke.length;Be++){var Ge=Ke[Be];set_active_effect(Ge.effect),set_active_reaction(Ge.reaction),effect(Ge.fn)}}finally{set_active_effect(Fe),set_active_reaction(He)}}component_context=De.p,De.m=!0}return $e||{}}function deep_read_state($e){if(!(typeof $e!="object"||!$e||$e instanceof EventTarget)){if(STATE_SYMBOL in $e)deep_read($e);else if(!Array.isArray($e))for(let De in $e){const Fe=$e[De];typeof Fe=="object"&&Fe&&STATE_SYMBOL in Fe&&deep_read(Fe)}}}function deep_read($e,De=new Set){if(typeof $e=="object"&&$e!==null&&!($e instanceof EventTarget)&&!De.has($e)){De.add($e),$e instanceof Date&&$e.getTime();for(let He in $e)try{deep_read($e[He],De)}catch{}const Fe=get_prototype_of($e);if(Fe!==Object.prototype&&Fe!==Array.prototype&&Fe!==Map.prototype&&Fe!==Set.prototype&&Fe!==Date.prototype){const He=get_descriptors(Fe);for(let Be in He){const Ge=He[Be].get;if(Ge)try{Ge.call($e)}catch{}}}}}function autofocus($e,De){if(De){const Fe=document.body;$e.autofocus=!0,queue_micro_task(()=>{document.activeElement===Fe&&$e.focus()})}}let listening_to_form_reset=!1;function add_form_reset_listener(){listening_to_form_reset||(listening_to_form_reset=!0,document.addEventListener("reset",$e=>{Promise.resolve().then(()=>{var De;if(!$e.defaultPrevented)for(const Fe of $e.target.elements)(De=Fe.__on_r)==null||De.call(Fe)})},{capture:!0}))}function without_reactive_context($e){var De=active_reaction,Fe=active_effect;set_active_reaction(null),set_active_effect(null);try{return $e()}finally{set_active_reaction(De),set_active_effect(Fe)}}function listen_to_event_and_reset_event($e,De,Fe,He=Fe){$e.addEventListener(De,()=>without_reactive_context(Fe));const Be=$e.__on_r;Be?$e.__on_r=()=>{Be(),He(!0)}:$e.__on_r=()=>He(!0),add_form_reset_listener()}const all_registered_events=new Set,root_event_handles=new Set;function create_event($e,De,Fe,He){function Be(Ge){if(He.capture||handle_event_propagation.call(De,Ge),!Ge.cancelBubble)return without_reactive_context(()=>Fe.call(this,Ge))}return $e.startsWith("pointer")||$e.startsWith("touch")||$e==="wheel"?queue_micro_task(()=>{De.addEventListener($e,Be,He)}):De.addEventListener($e,Be,He),Be}function event($e,De,Fe,He,Be){var Ge={capture:He,passive:Be},Ke=create_event($e,De,Fe,Ge);(De===document.body||De===window||De===document)&&teardown(()=>{De.removeEventListener($e,Ke,Ge)})}function delegate($e){for(var De=0;De<$e.length;De++)all_registered_events.add($e[De]);for(var Fe of root_event_handles)Fe($e)}function handle_event_propagation($e){var st;var De=this,Fe=De.ownerDocument,He=$e.type,Be=((st=$e.composedPath)==null?void 0:st.call($e))||[],Ge=Be[0]||$e.target,Ke=0,We=$e.__root;if(We){var Xe=Be.indexOf(We);if(Xe!==-1&&(De===document||De===window)){$e.__root=De;return}var Je=Be.indexOf(De);if(Je===-1)return;Xe<=Je&&(Ke=Xe)}if(Ge=Be[Ke]||$e.target,Ge!==De){define_property($e,"currentTarget",{configurable:!0,get(){return Ge||Fe}});var Ze=active_reaction,Ye=active_effect;set_active_reaction(null),set_active_effect(null);try{for(var Qe,et=[];Ge!==null;){var tt=Ge.assignedSlot||Ge.parentNode||Ge.host||null;try{var rt=Ge["__"+He];if(rt!==void 0&&!Ge.disabled)if(is_array(rt)){var[nt,...at]=rt;nt.apply(Ge,[$e,...at])}else rt.call(Ge,$e)}catch(ct){Qe?et.push(ct):Qe=ct}if($e.cancelBubble||tt===De||tt===null)break;Ge=tt}if(Qe){for(let ct of et)queueMicrotask(()=>{throw ct});throw Qe}}finally{$e.__root=De,delete $e.currentTarget,set_active_reaction(Ze),set_active_effect(Ye)}}}function create_fragment_from_html($e){var De=document.createElement("template");return De.innerHTML=$e,De.content}function assign_nodes($e,De){var Fe=active_effect;Fe.nodes_start===null&&(Fe.nodes_start=$e,Fe.nodes_end=De)}function template($e,De){var Fe=(De&TEMPLATE_FRAGMENT)!==0,He=(De&TEMPLATE_USE_IMPORT_NODE)!==0,Be,Ge=!$e.startsWith("<!>");return()=>{if(hydrating)return assign_nodes(hydrate_node,null),hydrate_node;Be===void 0&&(Be=create_fragment_from_html(Ge?$e:"<!>"+$e),Fe||(Be=get_first_child(Be)));var Ke=He?document.importNode(Be,!0):Be.cloneNode(!0);if(Fe){var We=get_first_child(Ke),Xe=Ke.lastChild;assign_nodes(We,Xe)}else assign_nodes(Ke,Ke);return Ke}}function ns_template($e,De,Fe="svg"){var He=!$e.startsWith("<!>"),Be=`<${Fe}>${He?$e:"<!>"+$e}</${Fe}>`,Ge;return()=>{if(hydrating)return assign_nodes(hydrate_node,null),hydrate_node;if(!Ge){var Ke=create_fragment_from_html(Be),We=get_first_child(Ke);Ge=get_first_child(We)}var Xe=Ge.cloneNode(!0);return assign_nodes(Xe,Xe),Xe}}function text($e=""){if(!hydrating){var De=create_text($e+"");return assign_nodes(De,De),De}var Fe=hydrate_node;return Fe.nodeType!==3&&(Fe.before(Fe=create_text()),set_hydrate_node(Fe)),assign_nodes(Fe,Fe),Fe}function comment(){if(hydrating)return assign_nodes(hydrate_node,null),hydrate_node;var $e=document.createDocumentFragment(),De=document.createComment(""),Fe=create_text();return $e.append(De,Fe),assign_nodes(De,Fe),$e}function append$1($e,De){if(hydrating){active_effect.nodes_end=hydrate_node,hydrate_next();return}$e!==null&&$e.before(De)}let should_intro=!0;function set_should_intro($e){should_intro=$e}function set_text($e,De){var Fe=De==null?"":typeof De=="object"?De+"":De;Fe!==($e.__t??($e.__t=$e.nodeValue))&&($e.__t=Fe,$e.nodeValue=Fe==null?"":Fe+"")}function mount($e,De){return _mount($e,De)}function hydrate($e,De){init_operations(),De.intro=De.intro??!1;const Fe=De.target,He=hydrating,Be=hydrate_node;try{for(var Ge=get_first_child(Fe);Ge&&(Ge.nodeType!==8||Ge.data!==HYDRATION_START);)Ge=get_next_sibling(Ge);if(!Ge)throw HYDRATION_ERROR;set_hydrating(!0),set_hydrate_node(Ge),hydrate_next();const Ke=_mount($e,{...De,anchor:Ge});if(hydrate_node===null||hydrate_node.nodeType!==8||hydrate_node.data!==HYDRATION_END)throw hydration_mismatch(),HYDRATION_ERROR;return set_hydrating(!1),Ke}catch(Ke){if(Ke===HYDRATION_ERROR)return De.recover===!1&&hydration_failed(),init_operations(),clear_text_content(Fe),set_hydrating(!1),mount($e,De);throw Ke}finally{set_hydrating(He),set_hydrate_node(Be)}}const document_listeners=new Map;function _mount($e,{target:De,anchor:Fe,props:He={},events:Be,context:Ge,intro:Ke=!0}){init_operations();var We=new Set,Xe=Ye=>{for(var Qe=0;Qe<Ye.length;Qe++){var et=Ye[Qe];if(!We.has(et)){We.add(et);var tt=is_passive_event(et);De.addEventListener(et,handle_event_propagation,{passive:tt});var rt=document_listeners.get(et);rt===void 0?(document.addEventListener(et,handle_event_propagation,{passive:tt}),document_listeners.set(et,1)):document_listeners.set(et,rt+1)}}};Xe(array_from(all_registered_events)),root_event_handles.add(Xe);var Je=void 0,Ze=component_root(()=>{var Ye=Fe??De.appendChild(create_text());return branch(()=>{if(Ge){push$6({});var Qe=component_context;Qe.c=Ge}Be&&(He.$$events=Be),hydrating&&assign_nodes(Ye,null),should_intro=Ke,Je=$e(Ye,He)||{},should_intro=!0,hydrating&&(active_effect.nodes_end=hydrate_node),Ge&&pop$1()}),()=>{var tt;for(var Qe of We){De.removeEventListener(Qe,handle_event_propagation);var et=document_listeners.get(Qe);--et===0?(document.removeEventListener(Qe,handle_event_propagation),document_listeners.delete(Qe)):document_listeners.set(Qe,et)}root_event_handles.delete(Xe),Ye!==Fe&&((tt=Ye.parentNode)==null||tt.removeChild(Ye))}});return mounted_components.set(Je,Ze),Je}let mounted_components=new WeakMap;function unmount($e,De){const Fe=mounted_components.get($e);return Fe?(mounted_components.delete($e),Fe(De)):Promise.resolve()}const PENDING$1=0,THEN=1,CATCH=2;function await_block($e,De,Fe,He,Be){hydrating&&hydrate_next();var Ge=$e,Ke=is_runes(),We=component_context,Xe=UNINITIALIZED,Je,Ze,Ye,Qe=(Ke?source:mutable_source)(void 0),et=(Ke?source:mutable_source)(void 0),tt=!1;function rt(at,st){tt=!0,st&&(set_active_effect(nt),set_active_reaction(nt),set_component_context(We));try{at===PENDING$1&&Fe&&(Je?resume_effect(Je):Je=branch(()=>Fe(Ge))),at===THEN&&He&&(Ze?resume_effect(Ze):Ze=branch(()=>He(Ge,Qe))),at===CATCH&&Be&&(Ye?resume_effect(Ye):Ye=branch(()=>Be(Ge,et))),at!==PENDING$1&&Je&&pause_effect(Je,()=>Je=null),at!==THEN&&Ze&&pause_effect(Ze,()=>Ze=null),at!==CATCH&&Ye&&pause_effect(Ye,()=>Ye=null)}finally{st&&(set_component_context(null),set_active_reaction(null),set_active_effect(null),flush_sync())}}var nt=block(()=>{if(Xe!==(Xe=De())){if(is_promise(Xe)){var at=Xe;tt=!1,at.then(st=>{at===Xe&&(internal_set(Qe,st),rt(THEN,!0))},st=>{if(at===Xe&&(internal_set(et,st),rt(CATCH,!0),!Be))throw et.v}),hydrating?Fe&&(Je=branch(()=>Fe(Ge))):queue_micro_task(()=>{tt||rt(PENDING$1,!0)})}else internal_set(Qe,Xe),rt(THEN,!1);return()=>Xe=UNINITIALIZED}});hydrating&&(Ge=hydrate_node)}function if_block($e,De,Fe=!1){hydrating&&hydrate_next();var He=$e,Be=null,Ge=null,Ke=UNINITIALIZED,We=Fe?EFFECT_TRANSPARENT:0,Xe=!1;const Je=(Ye,Qe=!0)=>{Xe=!0,Ze(Qe,Ye)},Ze=(Ye,Qe)=>{if(Ke===(Ke=Ye))return;let et=!1;if(hydrating){const tt=He.data===HYDRATION_START_ELSE;!!Ke===tt&&(He=remove_nodes(),set_hydrate_node(He),set_hydrating(!1),et=!0)}Ke?(Be?resume_effect(Be):Qe&&(Be=branch(()=>Qe(He))),Ge&&pause_effect(Ge,()=>{Ge=null})):(Ge?resume_effect(Ge):Qe&&(Ge=branch(()=>Qe(He))),Be&&pause_effect(Be,()=>{Be=null})),et&&set_hydrating(!0)};block(()=>{Xe=!1,De(Je),Xe||Ze(null,null)},We),hydrating&&(He=hydrate_node)}function index($e,De){return De}function pause_effects($e,De,Fe,He){for(var Be=[],Ge=De.length,Ke=0;Ke<Ge;Ke++)pause_children(De[Ke].e,Be,!0);var We=Ge>0&&Be.length===0&&Fe!==null;if(We){var Xe=Fe.parentNode;clear_text_content(Xe),Xe.append(Fe),He.clear(),link($e,De[0].prev,De[Ge-1].next)}run_out_transitions(Be,()=>{for(var Je=0;Je<Ge;Je++){var Ze=De[Je];We||(He.delete(Ze.k),link($e,Ze.prev,Ze.next)),destroy_effect(Ze.e,!We)}})}function each($e,De,Fe,He,Be,Ge=null){var Ke=$e,We={flags:De,items:new Map,first:null},Xe=(De&EACH_IS_CONTROLLED)!==0;if(Xe){var Je=$e;Ke=hydrating?set_hydrate_node(get_first_child(Je)):Je.appendChild(create_text())}hydrating&&hydrate_next();var Ze=null,Ye=!1;block(()=>{var Qe=Fe(),et=is_array(Qe)?Qe:Qe==null?[]:array_from(Qe),tt=et.length;if(Ye&&tt===0)return;Ye=tt===0;let rt=!1;if(hydrating){var nt=Ke.data===HYDRATION_START_ELSE;nt!==(tt===0)&&(Ke=remove_nodes(),set_hydrate_node(Ke),set_hydrating(!1),rt=!0)}if(hydrating){for(var at=null,st,ct=0;ct<tt;ct++){if(hydrate_node.nodeType===8&&hydrate_node.data===HYDRATION_END){Ke=hydrate_node,rt=!0,set_hydrating(!1);break}var ot=et[ct],lt=He(ot,ct);st=create_item(hydrate_node,We,at,null,ot,lt,ct,Be,De),We.items.set(lt,st),at=st}tt>0&&set_hydrate_node(remove_nodes())}if(!hydrating){var dt=active_reaction;reconcile(et,We,Ke,Be,De,(dt.f&INERT)!==0,He)}Ge!==null&&(tt===0?Ze?resume_effect(Ze):Ze=branch(()=>Ge(Ke)):Ze!==null&&pause_effect(Ze,()=>{Ze=null})),rt&&set_hydrating(!0),Fe()}),hydrating&&(Ke=hydrate_node)}function reconcile($e,De,Fe,He,Be,Ge,Ke,We){var vt,Ct,kt,Nt;var Xe=(Be&EACH_IS_ANIMATED)!==0,Je=(Be&(EACH_ITEM_REACTIVE|EACH_INDEX_REACTIVE))!==0,Ze=$e.length,Ye=De.items,Qe=De.first,et=Qe,tt,rt=null,nt,at=[],st=[],ct,ot,lt,dt;if(Xe)for(dt=0;dt<Ze;dt+=1)ct=$e[dt],ot=Ke(ct,dt),lt=Ye.get(ot),lt!==void 0&&((vt=lt.a)==null||vt.measure(),(nt??(nt=new Set)).add(lt));for(dt=0;dt<Ze;dt+=1){if(ct=$e[dt],ot=Ke(ct,dt),lt=Ye.get(ot),lt===void 0){var mt=et?et.e.nodes_start:Fe;rt=create_item(mt,De,rt,rt===null?De.first:rt.next,ct,ot,dt,He,Be),Ye.set(ot,rt),at=[],st=[],et=rt.next;continue}if(Je&&update_item(lt,ct,dt,Be),lt.e.f&INERT&&(resume_effect(lt.e),Xe&&((Ct=lt.a)==null||Ct.unfix(),(nt??(nt=new Set)).delete(lt))),lt!==et){if(tt!==void 0&&tt.has(lt)){if(at.length<st.length){var gt=st[0],wt;rt=gt.prev;var St=at[0],bt=at[at.length-1];for(wt=0;wt<at.length;wt+=1)move(at[wt],gt,Fe);for(wt=0;wt<st.length;wt+=1)tt.delete(st[wt]);link(De,St.prev,bt.next),link(De,rt,St),link(De,bt,gt),et=gt,rt=bt,dt-=1,at=[],st=[]}else tt.delete(lt),move(lt,et,Fe),link(De,lt.prev,lt.next),link(De,lt,rt===null?De.first:rt.next),link(De,rt,lt),rt=lt;continue}for(at=[],st=[];et!==null&&et.k!==ot;)(Ge||!(et.e.f&INERT))&&(tt??(tt=new Set)).add(et),st.push(et),et=et.next;if(et===null)continue;lt=et}at.push(lt),rt=lt,et=lt.next}if(et!==null||tt!==void 0){for(var ht=tt===void 0?[]:array_from(tt);et!==null;)(Ge||!(et.e.f&INERT))&&ht.push(et),et=et.next;var yt=ht.length;if(yt>0){var $t=Be&EACH_IS_CONTROLLED&&Ze===0?Fe:null;if(Xe){for(dt=0;dt<yt;dt+=1)(kt=ht[dt].a)==null||kt.measure();for(dt=0;dt<yt;dt+=1)(Nt=ht[dt].a)==null||Nt.fix()}pause_effects(De,ht,$t,Ye)}}Xe&&queue_micro_task(()=>{var ut;if(nt!==void 0)for(lt of nt)(ut=lt.a)==null||ut.apply()}),active_effect.first=De.first&&De.first.e,active_effect.last=rt&&rt.e}function update_item($e,De,Fe,He){He&EACH_ITEM_REACTIVE&&internal_set($e.v,De),He&EACH_INDEX_REACTIVE?internal_set($e.i,Fe):$e.i=Fe}function create_item($e,De,Fe,He,Be,Ge,Ke,We,Xe,Je){var Ze=(Xe&EACH_ITEM_REACTIVE)!==0,Ye=(Xe&EACH_ITEM_IMMUTABLE)===0,Qe=Ze?Ye?mutable_source(Be):source(Be):Be,et=Xe&EACH_INDEX_REACTIVE?source(Ke):Ke,tt={i:et,v:Qe,k:Ge,a:null,e:null,prev:Fe,next:He};try{return tt.e=branch(()=>We($e,Qe,et),hydrating),tt.e.prev=Fe&&Fe.e,tt.e.next=He&&He.e,Fe===null?De.first=tt:(Fe.next=tt,Fe.e.next=tt.e),He!==null&&(He.prev=tt,He.e.prev=tt.e),tt}finally{}}function move($e,De,Fe){for(var He=$e.next?$e.next.e.nodes_start:Fe,Be=De?De.e.nodes_start:Fe,Ge=$e.e.nodes_start;Ge!==He;){var Ke=get_next_sibling(Ge);Be.before(Ge),Ge=Ke}}function link($e,De,Fe){De===null?$e.first=Fe:(De.next=Fe,De.e.next=Fe&&Fe.e),Fe!==null&&(Fe.prev=De,Fe.e.prev=De&&De.e)}function html$3($e,De,Fe,He,Be){var Ge=$e,Ke="",We;block(()=>{if(Ke===(Ke=De()??"")){hydrating&&hydrate_next();return}We!==void 0&&(destroy_effect(We),We=void 0),Ke!==""&&(We=branch(()=>{if(hydrating){hydrate_node.data;for(var Xe=hydrate_next(),Je=Xe;Xe!==null&&(Xe.nodeType!==8||Xe.data!=="");)Je=Xe,Xe=get_next_sibling(Xe);if(Xe===null)throw hydration_mismatch(),HYDRATION_ERROR;assign_nodes(hydrate_node,Je),Ge=set_hydrate_node(Xe);return}var Ze=Ke+"";Fe&&(Ze=`<svg>${Ze}</svg>`);var Ye=create_fragment_from_html(Ze);if((Fe||He)&&(Ye=get_first_child(Ye)),assign_nodes(get_first_child(Ye),Ye.lastChild),Fe||He)for(;get_first_child(Ye);)Ge.before(get_first_child(Ye));else Ge.before(Ye)}))})}function slot($e,De,Fe,He,Be){var We;hydrating&&hydrate_next();var Ge=(We=De.$$slots)==null?void 0:We[Fe],Ke=!1;Ge===!0&&(Ge=De[Fe==="default"?"children":Fe],Ke=!0),Ge===void 0?Be!==null&&Be($e):Ge($e,Ke?()=>He:He)}function snippet($e,De,...Fe){var He=$e,Be=noop$1,Ge;block(()=>{Be!==(Be=De())&&(Ge&&(destroy_effect(Ge),Ge=null),Ge=branch(()=>Be(He,...Fe)))},EFFECT_TRANSPARENT),hydrating&&(He=hydrate_node)}function element($e,De,Fe,He,Be,Ge){let Ke=hydrating;hydrating&&hydrate_next();var We,Xe,Je=null;hydrating&&hydrate_node.nodeType===1&&(Je=hydrate_node,hydrate_next());var Ze=hydrating?hydrate_node:$e,Ye;block(()=>{const Qe=De()||null;var et=Qe==="svg"?NAMESPACE_SVG:null;Qe!==We&&(Ye&&(Qe===null?pause_effect(Ye,()=>{Ye=null,Xe=null}):Qe===Xe?resume_effect(Ye):(destroy_effect(Ye),set_should_intro(!1))),Qe&&Qe!==Xe&&(Ye=branch(()=>{if(Je=hydrating?Je:et?document.createElementNS(et,Qe):document.createElement(Qe),assign_nodes(Je,Je),He){hydrating&&is_raw_text_element(Qe)&&Je.append(document.createComment(""));var tt=hydrating?get_first_child(Je):Je.appendChild(create_text());hydrating&&(tt===null?set_hydrating(!1):set_hydrate_node(tt)),He(Je,tt)}active_effect.nodes_end=Je,Ze.before(Je)})),We=Qe,We&&(Xe=We),set_should_intro(!0))},EFFECT_TRANSPARENT),Ke&&(set_hydrating(!0),set_hydrate_node(Ze))}function remove_input_defaults($e){if(hydrating){var De=!1,Fe=()=>{if(!De){if(De=!0,$e.hasAttribute("value")){var He=$e.value;set_attribute($e,"value",null),$e.value=He}if($e.hasAttribute("checked")){var Be=$e.checked;set_attribute($e,"checked",null),$e.checked=Be}}};$e.__on_r=Fe,queue_idle_task(Fe),add_form_reset_listener()}}function set_checked($e,De){var Fe=$e.__attributes??($e.__attributes={});Fe.checked!==(Fe.checked=De??void 0)&&($e.checked=De)}function set_selected($e,De){De?$e.hasAttribute("selected")||$e.setAttribute("selected",""):$e.removeAttribute("selected")}function set_attribute($e,De,Fe,He){var Be=$e.__attributes??($e.__attributes={});hydrating&&(Be[De]=$e.getAttribute(De),De==="src"||De==="srcset"||De==="href"&&$e.nodeName==="LINK")||Be[De]!==(Be[De]=Fe)&&(De==="style"&&"__styles"in $e&&($e.__styles={}),De==="loading"&&($e[LOADING_ATTR_SYMBOL]=Fe),Fe==null?$e.removeAttribute(De):typeof Fe!="string"&&get_setters($e).includes(De)?$e[De]=Fe:$e.setAttribute(De,Fe))}function set_custom_element_data($e,De,Fe){var He=active_reaction,Be=active_effect;set_active_reaction(null),set_active_effect(null);try{(setters_cache.has($e.nodeName)||customElements.get($e.tagName.toLowerCase())?get_setters($e).includes(De):Fe&&typeof Fe=="object")?$e[De]=Fe:set_attribute($e,De,Fe==null?Fe:String(Fe))}finally{set_active_reaction(He),set_active_effect(Be)}}function set_attributes($e,De,Fe,He,Be=!1,Ge=!1,Ke=!1){var We=De||{},Xe=$e.tagName==="OPTION";for(var Je in De)Je in Fe||(Fe[Je]=null);var Ze=get_setters($e),Ye=$e.__attributes??($e.__attributes={});for(const at in Fe){let st=Fe[at];if(Xe&&at==="value"&&st==null){$e.value=$e.__value="",We[at]=st;continue}var Qe=We[at];if(st!==Qe){We[at]=st;var et=at[0]+at[1];if(et!=="$$"){if(et==="on"){const ct={},ot="$$"+at;let lt=at.slice(2);var tt=is_delegated(lt);if(is_capture_event(lt)&&(lt=lt.slice(0,-7),ct.capture=!0),!tt&&Qe){if(st!=null)continue;$e.removeEventListener(lt,We[ot],ct),We[ot]=null}if(st!=null)if(tt)$e[`__${lt}`]=st,delegate([lt]);else{let dt=function(mt){We[at].call(this,mt)};We[ot]=create_event(lt,$e,dt,ct)}else tt&&($e[`__${lt}`]=void 0)}else if(at==="style"&&st!=null)$e.style.cssText=st+"";else if(at==="autofocus")autofocus($e,!!st);else if(at==="__value"||at==="value"&&st!=null)$e.value=$e[at]=$e.__value=st;else if(at==="selected"&&Xe)set_selected($e,st);else{var rt=at;Be||(rt=normalize_attribute(rt));var nt=rt==="defaultValue"||rt==="defaultChecked";if(st==null&&!Ge&&!nt)if(Ye[at]=null,rt==="value"||rt==="checked"){let ct=$e;if(rt==="value"){let ot=ct.defaultValue;ct.removeAttribute(rt),ct.defaultValue=ot}else{let ot=ct.defaultChecked;ct.removeAttribute(rt),ct.defaultChecked=ot}}else $e.removeAttribute(at);else nt||Ze.includes(rt)&&(Ge||typeof st!="string")?$e[rt]=st:typeof st!="function"&&(hydrating&&(rt==="src"||rt==="href"||rt==="srcset")||set_attribute($e,rt,st))}at==="style"&&"__styles"in $e&&($e.__styles={})}}}return We}var setters_cache=new Map;function get_setters($e){var De=setters_cache.get($e.nodeName);if(De)return De;setters_cache.set($e.nodeName,De=[]);for(var Fe,He=$e,Be=Element.prototype;Be!==He;){Fe=get_descriptors(He);for(var Ge in Fe)Fe[Ge].set&&De.push(Ge);He=get_prototype_of(He)}return De}function set_svg_class($e,De){var Fe=$e.__className,He=to_class(De);hydrating&&$e.getAttribute("class")===He?$e.__className=He:(Fe!==He||hydrating&&$e.getAttribute("class")!==He)&&(He===""?$e.removeAttribute("class"):$e.setAttribute("class",He),$e.__className=He)}function set_class($e,De){var Fe=$e.__className,He=to_class(De);hydrating&&$e.className===He?$e.__className=He:(Fe!==He||hydrating&&$e.className!==He)&&(De==null?$e.removeAttribute("class"):$e.className=He,$e.__className=He)}function to_class($e){return $e??""}const now=()=>performance.now(),raf={tick:$e=>requestAnimationFrame($e),now:()=>now(),tasks:new Set};function run_tasks(){const $e=raf.now();raf.tasks.forEach(De=>{De.c($e)||(raf.tasks.delete(De),De.f())}),raf.tasks.size!==0&&raf.tick(run_tasks)}function loop($e){let De;return raf.tasks.size===0&&raf.tick(run_tasks),{promise:new Promise(Fe=>{raf.tasks.add(De={c:$e,f:Fe})}),abort(){raf.tasks.delete(De)}}}function dispatch_event($e,De){$e.dispatchEvent(new CustomEvent(De))}function css_property_to_camelcase($e){if($e==="float")return"cssFloat";if($e==="offset")return"cssOffset";if($e.startsWith("--"))return $e;const De=$e.split("-");return De.length===1?De[0]:De[0]+De.slice(1).map(Fe=>Fe[0].toUpperCase()+Fe.slice(1)).join("")}function css_to_keyframe($e){const De={},Fe=$e.split(";");for(const He of Fe){const[Be,Ge]=He.split(":");if(!Be||Ge===void 0)break;const Ke=css_property_to_camelcase(Be.trim());De[Ke]=Ge.trim()}return De}const linear=$e=>$e;function transition($e,De,Fe,He){var Be=($e&TRANSITION_GLOBAL)!==0,Ge="both",Ke,We=De.inert,Xe,Je;function Ze(){var rt=active_reaction,nt=active_effect;set_active_reaction(null),set_active_effect(null);try{return Ke??(Ke=Fe()(De,(He==null?void 0:He())??{},{direction:Ge}))}finally{set_active_reaction(rt),set_active_effect(nt)}}var Ye={is_global:Be,in(){De.inert=We,dispatch_event(De,"introstart"),Xe=animate(De,Ze(),Je,1,()=>{dispatch_event(De,"introend"),Xe==null||Xe.abort(),Xe=Ke=void 0})},out(rt){De.inert=!0,dispatch_event(De,"outrostart"),Je=animate(De,Ze(),Xe,0,()=>{dispatch_event(De,"outroend"),rt==null||rt()})},stop:()=>{Xe==null||Xe.abort(),Je==null||Je.abort()}},Qe=active_effect;if((Qe.transitions??(Qe.transitions=[])).push(Ye),should_intro){var et=Be;if(!et){for(var tt=Qe.parent;tt&&tt.f&EFFECT_TRANSPARENT;)for(;(tt=tt.parent)&&!(tt.f&BLOCK_EFFECT););et=!tt||(tt.f&EFFECT_RAN)!==0}et&&effect(()=>{untrack(()=>Ye.in())})}}function animate($e,De,Fe,He,Be){var Ge=He===1;if(is_function(De)){var Ke,We=!1;return queue_micro_task(()=>{if(!We){var nt=De({direction:Ge?"in":"out"});Ke=animate($e,nt,Fe,He,Be)}}),{abort:()=>{We=!0,Ke==null||Ke.abort()},deactivate:()=>Ke.deactivate(),reset:()=>Ke.reset(),t:()=>Ke.t()}}if(Fe==null||Fe.deactivate(),!(De!=null&&De.duration))return Be(),{abort:noop$1,deactivate:noop$1,reset:noop$1,t:()=>He};const{delay:Xe=0,css:Je,tick:Ze,easing:Ye=linear}=De;var Qe=[];if(Ge&&Fe===void 0&&(Ze&&Ze(0,1),Je)){var et=css_to_keyframe(Je(0,1));Qe.push(et,et)}var tt=()=>1-He,rt=$e.animate(Qe,{duration:Xe});return rt.onfinish=()=>{var nt=(Fe==null?void 0:Fe.t())??1-He;Fe==null||Fe.abort();var at=He-nt,st=De.duration*Math.abs(at),ct=[];if(st>0){if(Je)for(var ot=Math.ceil(st/16.666666666666668),lt=0;lt<=ot;lt+=1){var dt=nt+at*Ye(lt/ot),mt=Je(dt,1-dt);ct.push(css_to_keyframe(mt))}tt=()=>{var gt=rt.currentTime;return nt+at*Ye(gt/st)},Ze&&loop(()=>{if(rt.playState!=="running")return!1;var gt=tt();return Ze(gt,1-gt),!0})}rt=$e.animate(ct,{duration:st,fill:"forwards"}),rt.onfinish=()=>{tt=()=>He,Ze==null||Ze(He,1-He),Be()}},{abort:()=>{rt&&(rt.cancel(),rt.effect=null,rt.onfinish=noop$1)},deactivate:()=>{Be=noop$1},reset:()=>{He===0&&(Ze==null||Ze(1,0))},t:()=>tt()}}function bind_value($e,De,Fe=De){var He=is_runes();listen_to_event_and_reset_event($e,"input",Be=>{var Ge=Be?$e.defaultValue:$e.value;if(Ge=is_numberlike_input($e)?to_number(Ge):Ge,Fe(Ge),He&&Ge!==(Ge=De())){var Ke=$e.selectionStart,We=$e.selectionEnd;$e.value=Ge??"",We!==null&&($e.selectionStart=Ke,$e.selectionEnd=Math.min(We,$e.value.length))}}),(hydrating&&$e.defaultValue!==$e.value||untrack(De)==null&&$e.value)&&Fe(is_numberlike_input($e)?to_number($e.value):$e.value),render_effect(()=>{var Be=De();is_numberlike_input($e)&&Be===to_number($e.value)||$e.type==="date"&&!Be&&!$e.value||Be!==$e.value&&($e.value=Be??"")})}function is_numberlike_input($e){var De=$e.type;return De==="number"||De==="range"}function to_number($e){return $e===""?null:+$e}function select_option($e,De,Fe){if($e.multiple)return select_options($e,De);for(var He of $e.options){var Be=get_option_value(He);if(is(Be,De)){He.selected=!0;return}}(!Fe||De!==void 0)&&($e.selectedIndex=-1)}function init_select($e,De){effect(()=>{var Fe=new MutationObserver(()=>{var He=$e.__value;select_option($e,He)});return Fe.observe($e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{Fe.disconnect()}})}function bind_select_value($e,De,Fe=De){var He=!0;listen_to_event_and_reset_event($e,"change",Be=>{var Ge=Be?"[selected]":":checked",Ke;if($e.multiple)Ke=[].map.call($e.querySelectorAll(Ge),get_option_value);else{var We=$e.querySelector(Ge)??$e.querySelector("option:not([disabled])");Ke=We&&get_option_value(We)}Fe(Ke)}),effect(()=>{var Be=De();if(select_option($e,Be,He),He&&Be===void 0){var Ge=$e.querySelector(":checked");Ge!==null&&(Be=get_option_value(Ge),Fe(Be))}$e.__value=Be,He=!1}),init_select($e)}function select_options($e,De){for(var Fe of $e.options)Fe.selected=~De.indexOf(get_option_value(Fe))}function get_option_value($e){return"__value"in $e?$e.__value:$e.value}function init$5($e=!1){const De=component_context,Fe=De.l.u;if(!Fe)return;let He=()=>deep_read_state(De.s);if($e){let Be=0,Ge={};const Ke=derived(()=>{let We=!1;const Xe=De.s;for(const Je in Xe)Xe[Je]!==Ge[Je]&&(Ge[Je]=Xe[Je],We=!0);return We&&Be++,Be});He=()=>get$1(Ke)}Fe.b.length&&user_pre_effect(()=>{observe_all(De,He),run_all(Fe.b)}),user_effect(()=>{const Be=untrack(()=>Fe.m.map(run$2));return()=>{for(const Ge of Be)typeof Ge=="function"&&Ge()}}),Fe.a.length&&user_effect(()=>{observe_all(De,He),run_all(Fe.a)})}function observe_all($e,De){if($e.l.s)for(const Fe of $e.l.s)get$1(Fe);De()}let is_store_binding=!1;function capture_store_binding($e){var De=is_store_binding;try{return is_store_binding=!1,[$e(),is_store_binding]}finally{is_store_binding=De}}const rest_props_handler={get($e,De){if(!$e.exclude.includes(De))return $e.props[De]},set($e,De){return!1},getOwnPropertyDescriptor($e,De){if(!$e.exclude.includes(De)&&De in $e.props)return{enumerable:!0,configurable:!0,value:$e.props[De]}},has($e,De){return $e.exclude.includes(De)?!1:De in $e.props},ownKeys($e){return Reflect.ownKeys($e.props).filter(De=>!$e.exclude.includes(De))}};function rest_props($e,De,Fe){return new Proxy({props:$e,exclude:De},rest_props_handler)}const spread_props_handler={get($e,De){let Fe=$e.props.length;for(;Fe--;){let He=$e.props[Fe];if(is_function(He)&&(He=He()),typeof He=="object"&&He!==null&&De in He)return He[De]}},set($e,De,Fe){let He=$e.props.length;for(;He--;){let Be=$e.props[He];is_function(Be)&&(Be=Be());const Ge=get_descriptor(Be,De);if(Ge&&Ge.set)return Ge.set(Fe),!0}return!1},getOwnPropertyDescriptor($e,De){let Fe=$e.props.length;for(;Fe--;){let He=$e.props[Fe];if(is_function(He)&&(He=He()),typeof He=="object"&&He!==null&&De in He){const Be=get_descriptor(He,De);return Be&&!Be.configurable&&(Be.configurable=!0),Be}}},has($e,De){if(De===STATE_SYMBOL||De===LEGACY_PROPS)return!1;for(let Fe of $e.props)if(is_function(Fe)&&(Fe=Fe()),Fe!=null&&De in Fe)return!0;return!1},ownKeys($e){const De=[];for(let Fe of $e.props){is_function(Fe)&&(Fe=Fe());for(const He in Fe)De.includes(He)||De.push(He)}return De}};function spread_props(...$e){return new Proxy({props:$e},spread_props_handler)}function with_parent_branch($e){for(var De=active_effect,Fe=active_effect;De!==null&&!(De.f&(BRANCH_EFFECT|ROOT_EFFECT));)De=De.parent;try{return set_active_effect(De),$e()}finally{set_active_effect(Fe)}}function prop($e,De,Fe,He){var mt;var Be=(Fe&PROPS_IS_IMMUTABLE)!==0,Ge=!legacy_mode_flag||(Fe&PROPS_IS_RUNES)!==0,Ke=(Fe&PROPS_IS_BINDABLE)!==0,We=(Fe&PROPS_IS_LAZY_INITIAL)!==0,Xe=!1,Je;Ke?[Je,Xe]=capture_store_binding(()=>$e[De]):Je=$e[De];var Ze=STATE_SYMBOL in $e||LEGACY_PROPS in $e,Ye=((mt=get_descriptor($e,De))==null?void 0:mt.set)??(Ze&&Ke&&De in $e?gt=>$e[De]=gt:void 0),Qe=He,et=!0,tt=!1,rt=()=>(tt=!0,et&&(et=!1,We?Qe=untrack(He):Qe=He),Qe);Je===void 0&&He!==void 0&&(Ye&&Ge&&props_invalid_value(),Je=rt(),Ye&&Ye(Je));var nt;if(Ge)nt=()=>{var gt=$e[De];return gt===void 0?rt():(et=!0,tt=!1,gt)};else{var at=with_parent_branch(()=>(Be?derived:derived_safe_equal)(()=>$e[De]));at.f|=LEGACY_DERIVED_PROP,nt=()=>{var gt=get$1(at);return gt!==void 0&&(Qe=void 0),gt===void 0?Qe:gt}}if(!(Fe&PROPS_IS_UPDATED))return nt;if(Ye){var st=$e.$$legacy;return function(gt,wt){return arguments.length>0?((!Ge||!wt||st||Xe)&&Ye(wt?nt():gt),gt):nt()}}var ct=!1,ot=!1,lt=mutable_source(Je),dt=with_parent_branch(()=>derived(()=>{var gt=nt(),wt=get$1(lt);return ct?(ct=!1,ot=!0,wt):(ot=!1,lt.v=gt)}));return Be||(dt.equals=safe_equals),function(gt,wt){if(arguments.length>0){const St=wt?get$1(dt):Ge&&Ke?proxy(gt):gt;return dt.equals(St)||(ct=!0,set$2(lt,St),tt&&Qe!==void 0&&(Qe=St),untrack(()=>get$1(dt))),gt}return get$1(dt)}}function createClassComponent($e){return new Svelte4Component($e)}class Svelte4Component{constructor(De){ar(this,Bt);ar(this,Ft);var Ge;var Fe=new Map,He=(Ke,We)=>{var Xe=mutable_source(We);return Fe.set(Ke,Xe),Xe};const Be=new Proxy({...De.props||{},$$events:{}},{get(Ke,We){return get$1(Fe.get(We)??He(We,Reflect.get(Ke,We)))},has(Ke,We){return We===LEGACY_PROPS?!0:(get$1(Fe.get(We)??He(We,Reflect.get(Ke,We))),Reflect.has(Ke,We))},set(Ke,We,Xe){return set$2(Fe.get(We)??He(We,Xe),Xe),Reflect.set(Ke,We,Xe)}});sr(this,Ft,(De.hydrate?hydrate:mount)(De.component,{target:De.target,anchor:De.anchor,props:Be,context:De.context,intro:De.intro??!1,recover:De.recover})),(!((Ge=De==null?void 0:De.props)!=null&&Ge.$$host)||De.sync===!1)&&flush_sync(),sr(this,Bt,Be.$$events);for(const Ke of Object.keys(Zt(this,Ft)))Ke==="$set"||Ke==="$destroy"||Ke==="$on"||define_property(this,Ke,{get(){return Zt(this,Ft)[Ke]},set(We){Zt(this,Ft)[Ke]=We},enumerable:!0});Zt(this,Ft).$set=Ke=>{Object.assign(Be,Ke)},Zt(this,Ft).$destroy=()=>{unmount(Zt(this,Ft))}}$set(De){Zt(this,Ft).$set(De)}$on(De,Fe){Zt(this,Bt)[De]=Zt(this,Bt)[De]||[];const He=(...Be)=>Fe.call(this,...Be);return Zt(this,Bt)[De].push(He),()=>{Zt(this,Bt)[De]=Zt(this,Bt)[De].filter(Be=>Be!==He)}}$destroy(){Zt(this,Ft).$destroy()}}Bt=new WeakMap,Ft=new WeakMap;let SvelteElement;typeof HTMLElement=="function"&&(SvelteElement=class extends HTMLElement{constructor(De,Fe,He){super();Jt(this,"$$ctor");Jt(this,"$$s");Jt(this,"$$c");Jt(this,"$$cn",!1);Jt(this,"$$d",{});Jt(this,"$$r",!1);Jt(this,"$$p_d",{});Jt(this,"$$l",{});Jt(this,"$$l_u",new Map);Jt(this,"$$me");this.$$ctor=De,this.$$s=Fe,He&&this.attachShadow({mode:"open"})}addEventListener(De,Fe,He){if(this.$$l[De]=this.$$l[De]||[],this.$$l[De].push(Fe),this.$$c){const Be=this.$$c.$on(De,Fe);this.$$l_u.set(Fe,Be)}super.addEventListener(De,Fe,He)}removeEventListener(De,Fe,He){if(super.removeEventListener(De,Fe,He),this.$$c){const Be=this.$$l_u.get(Fe);Be&&(Be(),this.$$l_u.delete(Fe))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let De=function(Be){return Ge=>{const Ke=document.createElement("slot");Be!=="default"&&(Ke.name=Be),append$1(Ge,Ke)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const Fe={},He=get_custom_elements_slots(this);for(const Be of this.$$s)Be in He&&(Be==="default"&&!this.$$d.children?(this.$$d.children=De(Be),Fe.default=!0):Fe[Be]=De(Be));for(const Be of this.attributes){const Ge=this.$$g_p(Be.name);Ge in this.$$d||(this.$$d[Ge]=get_custom_element_value(Ge,Be.value,this.$$p_d,"toProp"))}for(const Be in this.$$p_d)!(Be in this.$$d)&&this[Be]!==void 0&&(this.$$d[Be]=this[Be],delete this[Be]);this.$$c=createClassComponent({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:Fe,$$host:this}}),this.$$me=effect_root(()=>{render_effect(()=>{var Be;this.$$r=!0;for(const Ge of object_keys(this.$$c)){if(!((Be=this.$$p_d[Ge])!=null&&Be.reflect))continue;this.$$d[Ge]=this.$$c[Ge];const Ke=get_custom_element_value(Ge,this.$$d[Ge],this.$$p_d,"toAttribute");Ke==null?this.removeAttribute(this.$$p_d[Ge].attribute||Ge):this.setAttribute(this.$$p_d[Ge].attribute||Ge,Ke)}this.$$r=!1})});for(const Be in this.$$l)for(const Ge of this.$$l[Be]){const Ke=this.$$c.$on(Be,Ge);this.$$l_u.set(Ge,Ke)}this.$$l={}}}attributeChangedCallback(De,Fe,He){var Be;this.$$r||(De=this.$$g_p(De),this.$$d[De]=get_custom_element_value(De,He,this.$$p_d,"toProp"),(Be=this.$$c)==null||Be.$set({[De]:this.$$d[De]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(De){return object_keys(this.$$p_d).find(Fe=>this.$$p_d[Fe].attribute===De||!this.$$p_d[Fe].attribute&&Fe.toLowerCase()===De)||De}});function get_custom_element_value($e,De,Fe,He){var Ge;const Be=(Ge=Fe[$e])==null?void 0:Ge.type;if(De=Be==="Boolean"&&typeof De!="boolean"?De!=null:De,!He||!Fe[$e])return De;if(He==="toAttribute")switch(Be){case"Object":case"Array":return De==null?null:JSON.stringify(De);case"Boolean":return De?"":null;case"Number":return De??null;default:return De}else switch(Be){case"Object":case"Array":return De&&JSON.parse(De);case"Boolean":return De;case"Number":return De!=null?+De:De;default:return De}}function get_custom_elements_slots($e){const De={};return $e.childNodes.forEach(Fe=>{De[Fe.slot||"default"]=!0}),De}function create_custom_element($e,De,Fe,He,Be,Ge){let Ke=class extends SvelteElement{constructor(){super($e,Fe,Be),this.$$p_d=De}static get observedAttributes(){return object_keys(De).map(We=>(De[We].attribute||We).toLowerCase())}};return object_keys(De).forEach(We=>{define_property(Ke.prototype,We,{get(){return this.$$c&&We in this.$$c?this.$$c[We]:this.$$d[We]},set(Xe){var Ye;Xe=get_custom_element_value(We,Xe,De),this.$$d[We]=Xe;var Je=this.$$c;if(Je){var Ze=(Ye=get_descriptor(Je,We))==null?void 0:Ye.get;Ze?Je[We]=Xe:Je.$set({[We]:Xe})}}})}),He.forEach(We=>{define_property(Ke.prototype,We,{get(){var Xe;return(Xe=this.$$c)==null?void 0:Xe[We]}})}),$e.element=Ke,Ke}enable_legacy_mode_flag();const CLASS_PART_SEPARATOR="-",createClassGroupUtils=$e=>{const De=createClassMap($e),{conflictingClassGroups:Fe,conflictingClassGroupModifiers:He}=$e;return{getClassGroupId:Ke=>{const We=Ke.split(CLASS_PART_SEPARATOR);return We[0]===""&&We.length!==1&&We.shift(),getGroupRecursive(We,De)||getGroupIdForArbitraryProperty(Ke)},getConflictingClassGroupIds:(Ke,We)=>{const Xe=Fe[Ke]||[];return We&&He[Ke]?[...Xe,...He[Ke]]:Xe}}},getGroupRecursive=($e,De)=>{var Ke;if($e.length===0)return De.classGroupId;const Fe=$e[0],He=De.nextPart.get(Fe),Be=He?getGroupRecursive($e.slice(1),He):void 0;if(Be)return Be;if(De.validators.length===0)return;const Ge=$e.join(CLASS_PART_SEPARATOR);return(Ke=De.validators.find(({validator:We})=>We(Ge)))==null?void 0:Ke.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=$e=>{if(arbitraryPropertyRegex.test($e)){const De=arbitraryPropertyRegex.exec($e)[1],Fe=De==null?void 0:De.substring(0,De.indexOf(":"));if(Fe)return"arbitrary.."+Fe}},createClassMap=$e=>{const{theme:De,prefix:Fe}=$e,He={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries($e.classGroups),Fe).forEach(([Ge,Ke])=>{processClassesRecursively(Ke,He,Ge,De)}),He},processClassesRecursively=($e,De,Fe,He)=>{$e.forEach(Be=>{if(typeof Be=="string"){const Ge=Be===""?De:getPart(De,Be);Ge.classGroupId=Fe;return}if(typeof Be=="function"){if(isThemeGetter(Be)){processClassesRecursively(Be(He),De,Fe,He);return}De.validators.push({validator:Be,classGroupId:Fe});return}Object.entries(Be).forEach(([Ge,Ke])=>{processClassesRecursively(Ke,getPart(De,Ge),Fe,He)})})},getPart=($e,De)=>{let Fe=$e;return De.split(CLASS_PART_SEPARATOR).forEach(He=>{Fe.nextPart.has(He)||Fe.nextPart.set(He,{nextPart:new Map,validators:[]}),Fe=Fe.nextPart.get(He)}),Fe},isThemeGetter=$e=>$e.isThemeGetter,getPrefixedClassGroupEntries=($e,De)=>De?$e.map(([Fe,He])=>{const Be=He.map(Ge=>typeof Ge=="string"?De+Ge:typeof Ge=="object"?Object.fromEntries(Object.entries(Ge).map(([Ke,We])=>[De+Ke,We])):Ge);return[Fe,Be]}):$e,createLruCache=$e=>{if($e<1)return{get:()=>{},set:()=>{}};let De=0,Fe=new Map,He=new Map;const Be=(Ge,Ke)=>{Fe.set(Ge,Ke),De++,De>$e&&(De=0,He=Fe,Fe=new Map)};return{get(Ge){let Ke=Fe.get(Ge);if(Ke!==void 0)return Ke;if((Ke=He.get(Ge))!==void 0)return Be(Ge,Ke),Ke},set(Ge,Ke){Fe.has(Ge)?Fe.set(Ge,Ke):Be(Ge,Ke)}}},IMPORTANT_MODIFIER="!",createParseClassName=$e=>{const{separator:De,experimentalParseClassName:Fe}=$e,He=De.length===1,Be=De[0],Ge=De.length,Ke=We=>{const Xe=[];let Je=0,Ze=0,Ye;for(let nt=0;nt<We.length;nt++){let at=We[nt];if(Je===0){if(at===Be&&(He||We.slice(nt,nt+Ge)===De)){Xe.push(We.slice(Ze,nt)),Ze=nt+Ge;continue}if(at==="/"){Ye=nt;continue}}at==="["?Je++:at==="]"&&Je--}const Qe=Xe.length===0?We:We.substring(Ze),et=Qe.startsWith(IMPORTANT_MODIFIER),tt=et?Qe.substring(1):Qe,rt=Ye&&Ye>Ze?Ye-Ze:void 0;return{modifiers:Xe,hasImportantModifier:et,baseClassName:tt,maybePostfixModifierPosition:rt}};return Fe?We=>Fe({className:We,parseClassName:Ke}):Ke},sortModifiers=$e=>{if($e.length<=1)return $e;const De=[];let Fe=[];return $e.forEach(He=>{He[0]==="["?(De.push(...Fe.sort(),He),Fe=[]):Fe.push(He)}),De.push(...Fe.sort()),De},createConfigUtils=$e=>({cache:createLruCache($e.cacheSize),parseClassName:createParseClassName($e),...createClassGroupUtils($e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=($e,De)=>{const{parseClassName:Fe,getClassGroupId:He,getConflictingClassGroupIds:Be}=De,Ge=[],Ke=$e.trim().split(SPLIT_CLASSES_REGEX);let We="";for(let Xe=Ke.length-1;Xe>=0;Xe-=1){const Je=Ke[Xe],{modifiers:Ze,hasImportantModifier:Ye,baseClassName:Qe,maybePostfixModifierPosition:et}=Fe(Je);let tt=!!et,rt=He(tt?Qe.substring(0,et):Qe);if(!rt){if(!tt){We=Je+(We.length>0?" "+We:We);continue}if(rt=He(Qe),!rt){We=Je+(We.length>0?" "+We:We);continue}tt=!1}const nt=sortModifiers(Ze).join(":"),at=Ye?nt+IMPORTANT_MODIFIER:nt,st=at+rt;if(Ge.includes(st))continue;Ge.push(st);const ct=Be(rt,tt);for(let ot=0;ot<ct.length;++ot){const lt=ct[ot];Ge.push(at+lt)}We=Je+(We.length>0?" "+We:We)}return We};function twJoin(){let $e=0,De,Fe,He="";for(;$e<arguments.length;)(De=arguments[$e++])&&(Fe=toValue(De))&&(He&&(He+=" "),He+=Fe);return He}const toValue=$e=>{if(typeof $e=="string")return $e;let De,Fe="";for(let He=0;He<$e.length;He++)$e[He]&&(De=toValue($e[He]))&&(Fe&&(Fe+=" "),Fe+=De);return Fe};function createTailwindMerge($e,...De){let Fe,He,Be,Ge=Ke;function Ke(Xe){const Je=De.reduce((Ze,Ye)=>Ye(Ze),$e());return Fe=createConfigUtils(Je),He=Fe.cache.get,Be=Fe.cache.set,Ge=We,We(Xe)}function We(Xe){const Je=He(Xe);if(Je)return Je;const Ze=mergeClassList(Xe,Fe);return Be(Xe,Ze),Ze}return function(){return Ge(twJoin.apply(null,arguments))}}const fromTheme=$e=>{const De=Fe=>Fe[$e]||[];return De.isThemeGetter=!0,De},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength=$e=>isNumber($e)||stringLengths.has($e)||fractionRegex.test($e),isArbitraryLength=$e=>getIsArbitraryValue($e,"length",isLengthOnly),isNumber=$e=>!!$e&&!Number.isNaN(Number($e)),isArbitraryNumber=$e=>getIsArbitraryValue($e,"number",isNumber),isInteger=$e=>!!$e&&Number.isInteger(Number($e)),isPercent=$e=>$e.endsWith("%")&&isNumber($e.slice(0,-1)),isArbitraryValue=$e=>arbitraryValueRegex.test($e),isTshirtSize=$e=>tshirtUnitRegex.test($e),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=$e=>getIsArbitraryValue($e,sizeLabels,isNever),isArbitraryPosition=$e=>getIsArbitraryValue($e,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=$e=>getIsArbitraryValue($e,imageLabels,isImage),isArbitraryShadow=$e=>getIsArbitraryValue($e,"",isShadow),isAny=()=>!0,getIsArbitraryValue=($e,De,Fe)=>{const He=arbitraryValueRegex.exec($e);return He?He[1]?typeof De=="string"?He[1]===De:De.has(He[1]):Fe(He[2]):!1},isLengthOnly=$e=>lengthUnitRegex.test($e)&&!colorFunctionRegex.test($e),isNever=()=>!1,isShadow=$e=>shadowRegex.test($e),isImage=$e=>imageRegex.test($e),getDefaultConfig=()=>{const $e=fromTheme("colors"),De=fromTheme("spacing"),Fe=fromTheme("blur"),He=fromTheme("brightness"),Be=fromTheme("borderColor"),Ge=fromTheme("borderRadius"),Ke=fromTheme("borderSpacing"),We=fromTheme("borderWidth"),Xe=fromTheme("contrast"),Je=fromTheme("grayscale"),Ze=fromTheme("hueRotate"),Ye=fromTheme("invert"),Qe=fromTheme("gap"),et=fromTheme("gradientColorStops"),tt=fromTheme("gradientColorStopPositions"),rt=fromTheme("inset"),nt=fromTheme("margin"),at=fromTheme("opacity"),st=fromTheme("padding"),ct=fromTheme("saturate"),ot=fromTheme("scale"),lt=fromTheme("sepia"),dt=fromTheme("skew"),mt=fromTheme("space"),gt=fromTheme("translate"),wt=()=>["auto","contain","none"],St=()=>["auto","hidden","clip","visible","scroll"],bt=()=>["auto",isArbitraryValue,De],ht=()=>[isArbitraryValue,De],yt=()=>["",isLength,isArbitraryLength],$t=()=>["auto",isNumber,isArbitraryValue],vt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ct=()=>["solid","dashed","dotted","double","none"],kt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Nt=()=>["start","end","center","between","around","evenly","stretch"],ut=()=>["","0",isArbitraryValue],ft=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_t=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:_t(),borderColor:[$e],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:ht(),borderWidth:yt(),contrast:_t(),grayscale:ut(),hueRotate:_t(),invert:ut(),gap:ht(),gradientColorStops:[$e],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:bt(),margin:bt(),opacity:_t(),padding:ht(),saturate:_t(),scale:_t(),sepia:ut(),skew:_t(),space:ht(),translate:ht()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":ft()}],"break-before":[{"break-before":ft()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...vt(),isArbitraryValue]}],overflow:[{overflow:St()}],"overflow-x":[{"overflow-x":St()}],"overflow-y":[{"overflow-y":St()}],overscroll:[{overscroll:wt()}],"overscroll-x":[{"overscroll-x":wt()}],"overscroll-y":[{"overscroll-y":wt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[rt]}],"inset-x":[{"inset-x":[rt]}],"inset-y":[{"inset-y":[rt]}],start:[{start:[rt]}],end:[{end:[rt]}],top:[{top:[rt]}],right:[{right:[rt]}],bottom:[{bottom:[rt]}],left:[{left:[rt]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:bt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:ut()}],shrink:[{shrink:ut()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":$t()}],"col-end":[{"col-end":$t()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":$t()}],"row-end":[{"row-end":$t()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[Qe]}],"gap-x":[{"gap-x":[Qe]}],"gap-y":[{"gap-y":[Qe]}],"justify-content":[{justify:["normal",...Nt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Nt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Nt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[st]}],px:[{px:[st]}],py:[{py:[st]}],ps:[{ps:[st]}],pe:[{pe:[st]}],pt:[{pt:[st]}],pr:[{pr:[st]}],pb:[{pb:[st]}],pl:[{pl:[st]}],m:[{m:[nt]}],mx:[{mx:[nt]}],my:[{my:[nt]}],ms:[{ms:[nt]}],me:[{me:[nt]}],mt:[{mt:[nt]}],mr:[{mr:[nt]}],mb:[{mb:[nt]}],ml:[{ml:[nt]}],"space-x":[{"space-x":[mt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[mt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,De]}],"min-w":[{"min-w":[isArbitraryValue,De,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,De,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,De,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,De,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,De,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,De,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[$e]}],"placeholder-opacity":[{"placeholder-opacity":[at]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[$e]}],"text-opacity":[{"text-opacity":[at]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ct(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[$e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ht()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[at]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...vt(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[$e]}],"gradient-from-pos":[{from:[tt]}],"gradient-via-pos":[{via:[tt]}],"gradient-to-pos":[{to:[tt]}],"gradient-from":[{from:[et]}],"gradient-via":[{via:[et]}],"gradient-to":[{to:[et]}],rounded:[{rounded:[Ge]}],"rounded-s":[{"rounded-s":[Ge]}],"rounded-e":[{"rounded-e":[Ge]}],"rounded-t":[{"rounded-t":[Ge]}],"rounded-r":[{"rounded-r":[Ge]}],"rounded-b":[{"rounded-b":[Ge]}],"rounded-l":[{"rounded-l":[Ge]}],"rounded-ss":[{"rounded-ss":[Ge]}],"rounded-se":[{"rounded-se":[Ge]}],"rounded-ee":[{"rounded-ee":[Ge]}],"rounded-es":[{"rounded-es":[Ge]}],"rounded-tl":[{"rounded-tl":[Ge]}],"rounded-tr":[{"rounded-tr":[Ge]}],"rounded-br":[{"rounded-br":[Ge]}],"rounded-bl":[{"rounded-bl":[Ge]}],"border-w":[{border:[We]}],"border-w-x":[{"border-x":[We]}],"border-w-y":[{"border-y":[We]}],"border-w-s":[{"border-s":[We]}],"border-w-e":[{"border-e":[We]}],"border-w-t":[{"border-t":[We]}],"border-w-r":[{"border-r":[We]}],"border-w-b":[{"border-b":[We]}],"border-w-l":[{"border-l":[We]}],"border-opacity":[{"border-opacity":[at]}],"border-style":[{border:[...Ct(),"hidden"]}],"divide-x":[{"divide-x":[We]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[We]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[at]}],"divide-style":[{divide:Ct()}],"border-color":[{border:[Be]}],"border-color-x":[{"border-x":[Be]}],"border-color-y":[{"border-y":[Be]}],"border-color-s":[{"border-s":[Be]}],"border-color-e":[{"border-e":[Be]}],"border-color-t":[{"border-t":[Be]}],"border-color-r":[{"border-r":[Be]}],"border-color-b":[{"border-b":[Be]}],"border-color-l":[{"border-l":[Be]}],"divide-color":[{divide:[Be]}],"outline-style":[{outline:["",...Ct()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[$e]}],"ring-w":[{ring:yt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[$e]}],"ring-opacity":[{"ring-opacity":[at]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[$e]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[at]}],"mix-blend":[{"mix-blend":[...kt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":kt()}],filter:[{filter:["","none"]}],blur:[{blur:[Fe]}],brightness:[{brightness:[He]}],contrast:[{contrast:[Xe]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[Je]}],"hue-rotate":[{"hue-rotate":[Ze]}],invert:[{invert:[Ye]}],saturate:[{saturate:[ct]}],sepia:[{sepia:[lt]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[Fe]}],"backdrop-brightness":[{"backdrop-brightness":[He]}],"backdrop-contrast":[{"backdrop-contrast":[Xe]}],"backdrop-grayscale":[{"backdrop-grayscale":[Je]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ze]}],"backdrop-invert":[{"backdrop-invert":[Ye]}],"backdrop-opacity":[{"backdrop-opacity":[at]}],"backdrop-saturate":[{"backdrop-saturate":[ct]}],"backdrop-sepia":[{"backdrop-sepia":[lt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[Ke]}],"border-spacing-x":[{"border-spacing-x":[Ke]}],"border-spacing-y":[{"border-spacing-y":[Ke]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:_t()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:_t()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ot]}],"scale-x":[{"scale-x":[ot]}],"scale-y":[{"scale-y":[ot]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[gt]}],"translate-y":[{"translate-y":[gt]}],"skew-x":[{"skew-x":[dt]}],"skew-y":[{"skew-y":[dt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",$e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[$e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ht()}],"scroll-mx":[{"scroll-mx":ht()}],"scroll-my":[{"scroll-my":ht()}],"scroll-ms":[{"scroll-ms":ht()}],"scroll-me":[{"scroll-me":ht()}],"scroll-mt":[{"scroll-mt":ht()}],"scroll-mr":[{"scroll-mr":ht()}],"scroll-mb":[{"scroll-mb":ht()}],"scroll-ml":[{"scroll-ml":ht()}],"scroll-p":[{"scroll-p":ht()}],"scroll-px":[{"scroll-px":ht()}],"scroll-py":[{"scroll-py":ht()}],"scroll-ps":[{"scroll-ps":ht()}],"scroll-pe":[{"scroll-pe":ht()}],"scroll-pt":[{"scroll-pt":ht()}],"scroll-pr":[{"scroll-pr":ht()}],"scroll-pb":[{"scroll-pb":ht()}],"scroll-pl":[{"scroll-pl":ht()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[$e,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[$e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},twMerge=createTailwindMerge(getDefaultConfig),libstyles=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.-right-3{right:-.75rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:1rem}.left-\\[50\\%\\]{left:50%}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\\/2{top:50%}.top-2{top:.5rem}.top-5{top:1.25rem}.top-\\[50\\%\\]{top:50%}.top-full{top:100%}.z-20{z-index:20}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-0{margin-bottom:0}.mb-2{margin-bottom:.5rem}.mb-2\\.5{margin-bottom:.625rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:.125rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\\[4\\/3\\]{aspect-ratio:4/3}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.w-1\\.5{width:.375rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-full{width:100%}.max-w-\\[600px\\]{max-width:600px}.max-w-\\[800px\\]{max-width:800px}.flex-1{flex:1 1 0%}.-translate-x-1\\/2,.-translate-x-\\[50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-3\\.5{--tw-translate-y: -.875rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[calc\\(50\\%\\+theme\\(space\\.3\\)\\)\\]{--tw-translate-y: calc((50% + .75rem)*-1) ;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-3{--tw-rotate: 3deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.items-center{align-items:center}.justify-center{justify-content:center}.\\!justify-between{justify-content:space-between!important}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-x{border-left-width:1px;border-right-width:1px}.border-none{border-style:none}.border-\\[\\#E7E7EC\\]{--tw-border-opacity: 1;border-color:rgb(231 231 236 / var(--tw-border-opacity, 1))}.border-\\[\\#e9e9da\\]{--tw-border-opacity: 1;border-color:rgb(233 233 218 / var(--tw-border-opacity, 1))}.border-current{border-color:currentColor}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-primary{border-color:hsl(var(--s-primary-color))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-r-transparent{border-right-color:transparent}.bg-\\[\\#1F72CD\\]{--tw-bg-opacity: 1;background-color:rgb(31 114 205 / var(--tw-bg-opacity, 1))}.bg-\\[\\#4285f4\\]{--tw-bg-opacity: 1;background-color:rgb(66 133 244 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FEB4C7\\]{--tw-bg-opacity: 1;background-color:rgb(254 180 199 / var(--tw-bg-opacity, 1))}.bg-\\[\\#f8f8f5\\]{--tw-bg-opacity: 1;background-color:rgb(248 248 245 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-primary{background-color:hsl(var(--s-primary-color))}.bg-primary\\/10{background-color:hsl(var(--s-primary-color) / .1)}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-none{background-image:none}.from-\\[hsl\\(var\\(--s-paywall-bg-start-color\\)\\)\\]{--tw-gradient-from: hsl(var(--s-paywall-bg-start-color)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--s-paywall-bg-start-color) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-primary\\/30{--tw-gradient-to: hsl(var(--s-primary-color) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--s-primary-color) / .3) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-\\[hsl\\(var\\(--s-paywall-bg-end-color\\)\\)\\]{--tw-gradient-to: hsl(var(--s-paywall-bg-end-color)) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-2\\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-6{padding-top:1.5rem}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.text-\\[\\#4285f4\\]{--tw-text-opacity: 1;color:rgb(66 133 244 / var(--tw-text-opacity, 1))}.text-\\[\\#5F6D85\\]{--tw-text-opacity: 1;color:rgb(95 109 133 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-primary{color:hsl(var(--s-primary-color))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-0{outline-width:0px}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-transparent{--tw-ring-color: transparent}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,font-size\\]{transition-property:transform,font-size;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.content-\\[\\'\\'\\]{--tw-content: "";content:var(--tw-content)}.row-up-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start}.row-up{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:center}.row-up-right{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-end}.row-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start}.row{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center}.row-right{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-end}.row-down-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:flex-start}.row-down{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:center}.row-down-right{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:flex-end}.column-up-left{display:flex;flex-direction:column;align-items:flex-start}.column-up{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.column-up-right{display:flex;flex-direction:column;align-items:flex-end}.column-left{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.column{display:flex;flex-direction:column;align-items:center;justify-content:center}.column-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}.column-down-left{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end}.column-down{display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.column-down-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end}.\\@container{container-type:inline-size}.placeholder\\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.placeholder\\:text-transparent::-moz-placeholder{color:transparent}.placeholder\\:text-transparent::placeholder{color:transparent}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:left-0:before{content:var(--tw-content);left:0}.before\\:top-1\\/2:before{content:var(--tw-content);top:50%}.before\\:h-px:before{content:var(--tw-content);height:1px}.before\\:w-\\[45\\%\\]:before{content:var(--tw-content);width:45%}.before\\:bg-gray-300:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:right-0:after{content:var(--tw-content);right:0}.after\\:top-1\\/2:after{content:var(--tw-content);top:50%}.after\\:h-px:after{content:var(--tw-content);height:1px}.after\\:w-\\[45\\%\\]:after{content:var(--tw-content);width:45%}.after\\:bg-gray-300:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.after\\:content-\\[\\'\\'\\]:after{--tw-content: "";content:var(--tw-content)}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-primary\\/15:hover{background-color:hsl(var(--s-primary-color) / .15)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:border-gray-300:focus{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.focus\\:ring-primary\\/25:focus{--tw-ring-color: hsl(var(--s-primary-color) / .25)}.active\\:bg-primary\\/10:active{background-color:hsl(var(--s-primary-color) / .1)}.enabled\\:hover\\:bg-primary\\/10:hover:enabled{background-color:hsl(var(--s-primary-color) / .1)}.enabled\\:hover\\:bg-primary\\/90:hover:enabled{background-color:hsl(var(--s-primary-color) / .9)}.enabled\\:hover\\:bg-transparent:hover:enabled{background-color:transparent}.active\\:enabled\\:translate-y-px:enabled:active{--tw-translate-y: 1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:opacity-\\[20\\%\\]:disabled{opacity:20%}.peer:checked~.peer-checked\\:border-primary{border-color:hsl(var(--s-primary-color))}.peer:checked~.peer-checked\\:bg-primary{background-color:hsl(var(--s-primary-color))}.peer:focus~.peer-focus\\:-translate-y-\\[calc\\(50\\%\\+theme\\(space\\.3\\)\\)\\]{--tw-translate-y: calc((50% + .75rem)*-1) ;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\\:text-xs{font-size:.75rem;line-height:1rem}.peer:focus-visible~.peer-focus-visible\\:-translate-y-\\[calc\\(50\\%\\+theme\\(space\\.3\\)\\)\\]{--tw-translate-y: calc((50% + .75rem)*-1) ;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus-visible~.peer-focus-visible\\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.peer:focus-visible~.peer-focus-visible\\:ring-primary\\/20{--tw-ring-color: hsl(var(--s-primary-color) / .2)}.has-\\[input\\:checked\\]\\:border-primary:has(input:checked){border-color:hsl(var(--s-primary-color))}@container (min-width: 20rem){.\\@xs\\:px-8{padding-left:2rem;padding-right:2rem}}@container (min-width: 28rem){.\\@md\\:mt-1{margin-top:.25rem}.\\@md\\:mt-8{margin-top:2rem}.\\@md\\:gap-4{gap:1rem}.\\@md\\:space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.\\@md\\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.\\@md\\:pb-8{padding-bottom:2rem}.\\@md\\:pt-4{padding-top:1rem}.\\@md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.\\@md\\:text-base{font-size:1rem;line-height:1.5rem}.\\@md\\:text-sm{font-size:.875rem;line-height:1.25rem}.\\@md\\:row-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start}.\\@md\\:row{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center}.\\@md\\:column-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}}@container (min-width: 36rem){.\\@xl\\:mb-4{margin-bottom:1rem}.\\@xl\\:auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.\\@xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\@xl\\:gap-4{gap:1rem}.\\@xl\\:rounded-3xl{border-radius:1.5rem}.\\@xl\\:p-1{padding:.25rem}.\\@xl\\:text-2xl{font-size:1.5rem;line-height:2rem}.\\@xl\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.\\@xl\\:text-base{font-size:1rem;line-height:1.5rem}.\\@xl\\:text-lg{font-size:1.125rem;line-height:1.75rem}.\\@xl\\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.\\@xl\\:row-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start}}@container (min-width: 48rem){.\\@3xl\\:p-4{padding:1rem}.\\@3xl\\:px-16{padding-left:4rem;padding-right:4rem}}@container (min-width: 56rem){.\\@4xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media not all and (min-width: 640px){.max-sm\\:gap-0{gap:0px}}@media (min-width: 640px){.sm\\:text-xs{font-size:.75rem;line-height:1rem}}@media not all and (min-width: 640px){.max-sm\\:\\[\\&\\>\\*\\:first-child\\>\\*\\:first-child\\>label\\:first-of-type\\>\\:where\\(select\\,input\\)\\]\\:rounded-t-md>*:first-child>*:first-child>label:first-of-type>:where(select,input){border-top-left-radius:.375rem;border-top-right-radius:.375rem}.max-sm\\:\\[\\&\\>\\*\\:last-child\\>\\*\\:last-child\\>label\\:last-of-type\\>\\:where\\(select\\,input\\)\\]\\:rounded-b-md>*:last-child>*:last-child>label:last-of-type>:where(select,input){border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.max-sm\\:\\[\\&\\>\\*\\]\\:gap-0>*{gap:0px}}.\\[\\&\\>label\\:first-child\\>\\:where\\(select\\,input\\)\\]\\:rounded-t-md>label:first-child>:where(select,input){border-top-left-radius:.375rem;border-top-right-radius:.375rem}.\\[\\&\\>label\\:last-child\\>\\:where\\(select\\,input\\)\\]\\:rounded-b-md>label:last-child>:where(select,input){border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.\\[\\&\\>label\\>\\:where\\(select\\,input\\)\\]\\:rounded-none>label>:where(select,input){border-radius:0}.\\[\\&_label\\>\\:where\\(select\\,input\\)\\]\\:-mt-px label>:where(select,input){margin-top:-1px}@media not all and (min-width: 640px){.max-sm\\:\\[\\&_label\\>\\:where\\(select\\,input\\)\\]\\:rounded-none label>:where(select,input){border-radius:0}}.\\[\\&_label\\>select\\]\\:-mt-px label>select{margin-top:-1px}`;async function getApi(){return window.sesamy?window.sesamy:new Promise(($e,De)=>{const Fe=setTimeout(()=>{window.sesamy?$e(window.sesamy):De(new Error("sesamyReady event did not occur within the expected time."))},5e3);function He(){window.sesamy?(clearTimeout(Fe),window.removeEventListener("sesamyJsReady",He),$e(window.sesamy)):De(new Error("Sesamy API is not available"))}window.addEventListener("sesamyJsReady",He)})}const already_subscribing$6="Už jste se přihlásili k odběru?",click_to_update$6="Klikněte pro aktualizaci",country$6="Země",did_you_mean$6="Měl jste na mysli",email$6="E-mail",first_name$6="Křestní jméno",first_name_required$6="Křestní jméno je povinné",invalid_email$6="Neplatná e-mailová adresa",last_name$6="Příjmení",last_name_required$6="Příjmení je povinné",login$6="Přihlášení",logo_of$6="Logo společnosti",pay_now$6="Zaplaťte nyní",phone_number$6="Telefonní číslo",phone_number_required$6="Vyžaduje se telefonní číslo",secure_payment$6="Bezpečná platba šifrovaná pomocí SSL",something_went_wrong$6="Něco se pokazilo",user_already_owns_item$6="Tento produkt již vlastníte",cs={already_subscribing:already_subscribing$6,click_to_update:click_to_update$6,continue:"Pokračovat",country:country$6,did_you_mean:did_you_mean$6,email:email$6,first_name:first_name$6,first_name_required:first_name_required$6,invalid_email:invalid_email$6,last_name:last_name$6,last_name_required:last_name_required$6,login:login$6,logo_of:logo_of$6,pay_now:pay_now$6,phone_number:phone_number$6,phone_number_required:phone_number_required$6,secure_payment:secure_payment$6,something_went_wrong:something_went_wrong$6,user_already_owns_item:user_already_owns_item$6},already_subscribing$5="Already subscribing?",click_to_update$5="Click to update",country$5="Country",did_you_mean$5="Did you mean",email$5="Email",first_name$5="First name",first_name_required$5="First name is required",invalid_email$5="Invalid email address",last_name$5="Last name",last_name_required$5="Last name is required",login$5="Login",logo_of$5="Logo of",pay_now$5="Pay now",phone_number$5="Phone number",phone_number_required$5="Phone number is required",secure_payment$5="Secure SSL encrypted payment",something_went_wrong$5="Something went wrong",user_already_owns_item$5="You already own this product",en={already_subscribing:already_subscribing$5,click_to_update:click_to_update$5,continue:"Continue",country:country$5,did_you_mean:did_you_mean$5,email:email$5,first_name:first_name$5,first_name_required:first_name_required$5,invalid_email:invalid_email$5,last_name:last_name$5,last_name_required:last_name_required$5,login:login$5,logo_of:logo_of$5,pay_now:pay_now$5,phone_number:phone_number$5,phone_number_required:phone_number_required$5,secure_payment:secure_payment$5,something_went_wrong:something_went_wrong$5,user_already_owns_item:user_already_owns_item$5},already_subscribing$4="Oletko jo tilannut?",click_to_update$4="Klikkaa päivittääksesi",country$4="Maa",did_you_mean$4="Tarkoititko",email$4="Sähköposti",first_name$4="Etunimi",first_name_required$4="Etunimi vaaditaan",invalid_email$4="Virheellinen sähköpostiosoite",last_name$4="Sukunimi",last_name_required$4="Sukunimi vaaditaan",login$4="Kirjaudu sisään",logo_of$4="Logo of",pay_now$4="Maksa nyt",phone_number$4="Puhelinnumero",phone_number_required$4="Puhelinnumero vaaditaan",secure_payment$4="Turvallinen SSL-salattu maksu",something_went_wrong$4="Jokin meni pieleen",user_already_owns_item$4="Omistat jo tämän tuotteen",fi={already_subscribing:already_subscribing$4,click_to_update:click_to_update$4,continue:"Jatka",country:country$4,did_you_mean:did_you_mean$4,email:email$4,first_name:first_name$4,first_name_required:first_name_required$4,invalid_email:invalid_email$4,last_name:last_name$4,last_name_required:last_name_required$4,login:login$4,logo_of:logo_of$4,pay_now:pay_now$4,phone_number:phone_number$4,phone_number_required:phone_number_required$4,secure_payment:secure_payment$4,something_went_wrong:something_went_wrong$4,user_already_owns_item:user_already_owns_item$4},already_subscribing$3="Siete già abbonati?",click_to_update$3="Fare clic per aggiornare",country$3="Paese",did_you_mean$3="Intendeva",email$3="Email",first_name$3="Nome",first_name_required$3="Il nome è obbligatorio",invalid_email$3="Indirizzo e-mail non valido",last_name$3="Cognome",last_name_required$3="Il cognome è obbligatorio",login$3="Accesso",logo_of$3="Logo di",pay_now$3="Paga ora",phone_number$3="Numero di telefono",phone_number_required$3="Il numero di telefono è richiesto",secure_payment$3="Pagamento sicuro con crittografia SSL",something_went_wrong$3="Qualcosa è andato storto",user_already_owns_item$3="Possiedi già questo prodotto",it={already_subscribing:already_subscribing$3,click_to_update:click_to_update$3,continue:"Continua",country:country$3,did_you_mean:did_you_mean$3,email:email$3,first_name:first_name$3,first_name_required:first_name_required$3,invalid_email:invalid_email$3,last_name:last_name$3,last_name_required:last_name_required$3,login:login$3,logo_of:logo_of$3,pay_now:pay_now$3,phone_number:phone_number$3,phone_number_required:phone_number_required$3,secure_payment:secure_payment$3,something_went_wrong:something_went_wrong$3,user_already_owns_item:user_already_owns_item$3},already_subscribing$2="Abonnerer du allerede?",click_to_update$2="Klikk for å oppdatere",country$2="Land",did_you_mean$2="Mente du",email$2="E-post",first_name$2="Fornavn",first_name_required$2="Fornavn er påkrevd",invalid_email$2="Ugyldig e-postadresse",last_name$2="Etternavn",last_name_required$2="Etternavn er påkrevd",login$2="Logg inn",logo_of$2="Logoen til",pay_now$2="Betal nå",phone_number$2="Telefonnummer",phone_number_required$2="Telefonnummer er påkrevd",secure_payment$2="Sikker SSL-kryptert betaling",something_went_wrong$2="Noe gikk galt",user_already_owns_item$2="Du eier allerede dette produktet",nb={already_subscribing:already_subscribing$2,click_to_update:click_to_update$2,continue:"Fortsett",country:country$2,did_you_mean:did_you_mean$2,email:email$2,first_name:first_name$2,first_name_required:first_name_required$2,invalid_email:invalid_email$2,last_name:last_name$2,last_name_required:last_name_required$2,login:login$2,logo_of:logo_of$2,pay_now:pay_now$2,phone_number:phone_number$2,phone_number_required:phone_number_required$2,secure_payment:secure_payment$2,something_went_wrong:something_went_wrong$2,user_already_owns_item:user_already_owns_item$2},already_subscribing$1="Już subskrybujesz?",click_to_update$1="Kliknij, aby zaktualizować",country$1="Kraj",did_you_mean$1="Czy miałeś na myśli",email$1="E-mail",first_name$1="Imię",first_name_required$1="Imię jest wymagane",invalid_email$1="Nieprawidłowy adres e-mail",last_name$1="Nazwisko",last_name_required$1="Nazwisko jest wymagane",login$1="Logowanie",logo_of$1="Logo",pay_now$1="Zapłać teraz",phone_number$1="Numer telefonu",phone_number_required$1="Numer telefonu jest wymagany",secure_payment$1="Bezpieczna płatność szyfrowana SSL",something_went_wrong$1="Coś poszło nie tak",user_already_owns_item$1="Posiadasz już ten produkt",pl={already_subscribing:already_subscribing$1,click_to_update:click_to_update$1,continue:"Kontynuuj",country:country$1,did_you_mean:did_you_mean$1,email:email$1,first_name:first_name$1,first_name_required:first_name_required$1,invalid_email:invalid_email$1,last_name:last_name$1,last_name_required:last_name_required$1,login:login$1,logo_of:logo_of$1,pay_now:pay_now$1,phone_number:phone_number$1,phone_number_required:phone_number_required$1,secure_payment:secure_payment$1,something_went_wrong:something_went_wrong$1,user_already_owns_item:user_already_owns_item$1},already_subscribing="Prenumererar du redan?",click_to_update="Klicka för att uppdatera",country="Land",did_you_mean="Menade du",email="E-post",first_name="Förnamn",first_name_required="Förnamn är obligatoriskt",invalid_email="Ogiltig e-postadress",last_name="Efternamn",last_name_required="Efternamn är obligatoriskt",login="Logga in",logo_of="Logotyp för",pay_now="Betala nu",phone_number="Telefonnummer",phone_number_required="Telefonnummer är obligatoriskt",secure_payment="Säker SSL-krypterad betalning",something_went_wrong="Något gick fel",user_already_owns_item="Du har redan köpt den här produkten",sv={already_subscribing,click_to_update,continue:"Fortsätt",country,did_you_mean,email,first_name,first_name_required,invalid_email,last_name,last_name_required,login,logo_of,pay_now,phone_number,phone_number_required,secure_payment,something_went_wrong,user_already_owns_item},languages={cs,en,fi,it,nb,pl,sv};function init$4($e){const De=languages[$e]?$e:"en";return Fe=>{var He;return((He=languages[De])==null?void 0:He[Fe])||Fe}}const hexToHsl=$e=>{if(![4,7].includes($e.length))return[0,0,100];let De=0,Fe=0,He=0;$e.length===4?(De=`0x${$e[1]}${$e[1]}`,Fe=`0x${$e[2]}${$e[2]}`,He=`0x${$e[3]}${$e[3]}`):$e.length===7&&(De=`0x${$e[1]}${$e[2]}`,Fe=`0x${$e[3]}${$e[4]}`,He=`0x${$e[5]}${$e[6]}`),De/=255,Fe/=255,He/=255;const Be=Math.min(De,Fe,He),Ge=Math.max(De,Fe,He),Ke=Ge-Be;let We=0,Xe=0,Je=0;return Ke===0?We=0:Ge===De?We=(Fe-He)/Ke%6:Ge===Fe?We=(He-De)/Ke+2:We=(De-Fe)/Ke+4,We=Math.round(We*60),We<0&&(We+=360),Je=(Ge+Be)/2,Xe=Ke===0?0:Ke/(1-Math.abs(2*Je-1)),Xe=+(Xe*100).toFixed(1),Je=+(Je*100).toFixed(1),[We,Xe,Je]},hslArrayToCSS=$e=>$e.map((De,Fe)=>Fe?`${De}%`:De).join(" ");var root_2$6=template('<p style="color: red"> </p>'),root$g=template("<!> <!>",1);function Base($e,De){var Qe;push$6(De,!0);let Fe=prop(De,"applyStyles",3,!0);const He=(Qe=document.querySelector("html"))==null?void 0:Qe.getAttribute("lang"),Be=He==null?void 0:He.split("-")[0],Ge=getApi(),Ke=init$4(De.lang||Be||"en");let We=`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
font-family: var(--s-font-family);
|
|
@@ -6,17 +6,63 @@
|
|
|
6
6
|
color: black;
|
|
7
7
|
text-align: left;
|
|
8
8
|
|
|
9
|
-
--s-primary-color: var(--sesamy-primary-color, ${
|
|
9
|
+
--s-primary-color: var(--sesamy-primary-color, ${hslArrayToCSS(hexToHsl("#000000"))});
|
|
10
10
|
--s-font-family: var(--sesamy-font-family, Helvetica);
|
|
11
11
|
}
|
|
12
|
-
`,s=r()?"<style>"+al+i+"</style>":"";var c=cl(),u=I(c);Ot(u,()=>a,null,(f,g)=>{var p=fe(),_=I(p);_t(_,Ar(t),{get api(){return h(g)},t:l},null),y(f,p)},(f,g)=>{var p=sl(),_=A(p);L(p),$(()=>Q(_,h(g).message)),y(f,p)});var d=E(u,2);Er(d,()=>s,!1,!1),y(e,c),ae()}var ul=P("<div><!></div>");function Ye(e,t){oe(t,!0);let r=We(t,["$$slots","$$events","$$legacy","up","right","down","left","style","class","children"]);var n=ul();let o;var a=A(n);wt(a,()=>t.children),L(n),$(()=>o=bt(n,o,{class:Y(!t.up&&!t.right&&!t.down&&!t.left&&"row",t.up&&!t.right&&!t.down&&!t.left&&"row-up",!t.up&&t.right&&!t.down&&!t.left&&"row-right",!t.up&&!t.right&&t.down&&!t.left&&"row-down",!t.up&&!t.right&&!t.down&&t.left&&"row-left",t.up&&t.right&&!t.down&&!t.left&&"row-up-right",t.up&&!t.right&&!t.down&&t.left&&"row-up-left",!t.up&&t.right&&t.down&&!t.left&&"row-down-right",!t.up&&!t.right&&t.down&&t.left&&"row-down-left",t.class),style:t.style,...r})),y(e,n),ae()}var dl=(e,t)=>e.key==="Enter"&&t(),fl=P('<div class="absolute left-[50%] -translate-x-[50%] top-[50%] -translate-y-[50%]"><svg viewBox="0 0 125 125" xmlns="http://www.w3.org/2000/svg"><path d="M0 62.5C0 28 28 0 62.5 0v18.8c-24.2 0-43.8 19.6-43.8 43.8H0z" style="fill:white;"></path></svg></div>'),ml=P('<img class="w-full h-full object-cover">'),hl=P('<button type="button"><!></button>');function ir(e,t){oe(t,!1);let r=S(t,"src",12,""),n=S(t,"alt",12,"Avatar"),o=S(t,"size",12,"md"),a=S(t,"loading",12,!1),l=S(t,"onclick",12,()=>{});return ki(),Ut(e,{children:(i,s)=>{Ye(i,{class:"relative inline-block",children:(c,u)=>{var d=hl();$(()=>we(d,Y("relative inline-block rounded-full overflow-hidden bg-purple-500",o()==="sm"&&"w-8 h-8",o()==="md"&&"w-12 h-12",o()==="lg"&&"w-16 h-16"))),d.__click=function(...f){var g;(g=l())==null||g.apply(this,f)},d.__keydown=[dl,l];var m=A(d);B(m,a,f=>{var g=fl(),p=A(g);$(()=>fi(p,Y("animate-spin",o()==="sm"&&"w-7 h-7",o()==="md"&&"w-10 h-10",o()==="lg"&&"w-14 h-14"))),L(g),y(f,g)},f=>{var g=fe(),p=I(g);B(p,r,_=>{var v=ml();$(()=>{_e(v,"src",r()),_e(v,"alt",n())}),y(_,v)},_=>{Ye(_,{class:"absolute top-0 left-0 w-full h-full text-white",children:(v,b)=>{Oe();var w=It();$(()=>Q(w,n().charAt(0).toUpperCase())),y(v,w)},$$slots:{default:!0}})},!0),y(f,g)}),L(d),$(()=>_e(d,"aria-label",n())),y(c,d)},$$slots:{default:!0}})},$$slots:{default:!0}}),ae({get src(){return r()},set src(i){r(i),X()},get alt(){return n()},set alt(i){n(i),X()},get size(){return o()},set size(i){o(i),X()},get loading(){return a()},set loading(i){a(i),X()},get onclick(){return l()},set onclick(i){l(i),X()}})}yr(["click","keydown"]),customElements.define("sesamy-avatar-beta",qt(ir,{src:{},alt:{},size:{},loading:{type:"Boolean"},onclick:{}},[],[],!0));function Ho(e,t){oe(t,!0);let r=We(t,["$$slots","$$events","$$legacy","href","onclick","class","disabled","part","children"]);var n=fe(),o=I(n);si(o,()=>t.href?"a":"button",!1,(a,l)=>{let i;$(()=>i=bt(a,i,{role:t.href?"link":"button",class:Y("border-0 bg-none outline-none",t.class),tabindex:"0",href:t.href,onclick:t.onclick,part:t.part,disabled:t.disabled,...r},void 0,a.namespaceURI!==Mn,a.nodeName.includes("-")));var s=fe(),c=I(s);wt(c,()=>t.children),y(l,s)}),y(e,n),ae()}var gl=P('<span class="inline-block w-4 h-4 mr-2 border-2 border-current border-r-transparent rounded-full animate-spin" aria-hidden="true"></span>'),vl=P("<!> <!>",1);function pl(e,t){oe(t,!0);let r=S(t,"loading",3,!1),n=S(t,"variant",3,"primary"),o=S(t,"disabled",3,!1),a=S(t,"size",3,"md"),l=We(t,["$$slots","$$events","$$legacy","loading","variant","disabled","size","part","onclick","href","class"]);var i=G(()=>Y("inline-flex ring-2 ring-transparent focus:ring-primary/25 active:enabled:translate-y-px border border-transparent items-center justify-center outline-none font-medium rounded-md transition-colors duration-200 ease-in-out",a()=="sm"&&"px-3 py-1.5 text-sm",a()=="md"&&"px-4 py-2 text-base",a()=="lg"&&"px-6 py-3 text-lg",n()==="primary"&&"bg-primary text-white enabled:hover:bg-primary/90",n()==="secondary"&&"bg-transparent border-primary text-primary enabled:hover:bg-primary/10",n()==="tertiary"&&"text-primary enabled:hover:bg-primary/10",o()&&"opacity-50 cursor-not-allowed",t.class));Ho(e,on({get class(){return h(i)},get href(){return t.href},get onclick(){return t.onclick},get part(){return t.part},get disabled(){return o()}},()=>l,{children:(s,c)=>{var u=vl(),d=I(u);B(d,r,f=>{var g=gl();y(f,g)});var m=E(d,2);_t(m,Ar(t),{},null),y(s,u)},$$slots:{default:!0}})),ae()}function Go(e,t){oe(t,!0);let r=S(t,"loading",7),n=S(t,"loggedIn",7),o=S(t,"userAvatar",7),a=S(t,"button-text",7),l=S(t,"class",7,""),i=Ce(!1);const s=async d=>{N(i,!0);try{await d.auth.loginWithRedirect()}catch(m){N(i,!1),console.error("Login failed:",m)}},c=async d=>{r(!0);try{await d.auth.logout(),n(!1)}catch(m){console.error("Logout failed:",m)}},u=async d=>{try{if(n(await d.auth.isAuthenticated()),n()){const m=await d.auth.getUser();o((m==null?void 0:m.picture)||"")}}catch(m){console.error("Error checking login status:",m)}};return Ut(e,{children:pr,$$slots:{default:(d,m)=>{const f=G(()=>m.api),g=G(()=>m.t);var p=fe(),_=I(p);Ot(_,()=>u(h(f)),v=>{ir(v,{loading:!0,size:"sm"})},(v,b)=>{var w=fe(),x=I(w);B(x,r,k=>{ir(k,{get loading(){return r()},onclick:()=>c(h(f)),size:"sm"})},k=>{var T=fe(),R=I(T);B(R,n,F=>{ir(F,{get loading(){return r()},onclick:()=>c(h(f)),size:"sm"})},F=>{pl(F,{get class(){return l()},variant:"secondary",get disabled(){return h(i)},onclick:()=>s(h(f)),size:"sm",children:(te,M)=>{Oe();var D=It();$(()=>Q(D,a()||h(g)("login"))),y(te,D)},$$slots:{default:!0}})},!0),y(k,T)}),y(v,w)}),y(d,p)}}}),ae({get loading(){return r()},set loading(d){r(d),X()},get loggedIn(){return n()},set loggedIn(d){n(d),X()},get userAvatar(){return o()},set userAvatar(d){o(d),X()},get"button-text"(){return a()},set"button-text"(d){a(d),X()},get class(){return l()},set class(d=""){l(d),X()}})}customElements.define("sesamy-login-beta",qt(Go,{loading:{},loggedIn:{},userAvatar:{},"button-text":{},class:{}},[],[],!0));var _l=P("<div><!></div>");function Qe(e,t){oe(t,!0);let r=We(t,["$$slots","$$events","$$legacy","up","right","down","left","style","class","children"]);var n=_l();let o;var a=A(n);wt(a,()=>t.children),L(n),$(()=>o=bt(n,o,{class:Y(!t.up&&!t.right&&!t.down&&!t.left&&"column",t.up&&!t.right&&!t.down&&!t.left&&"column-up",!t.up&&t.right&&!t.down&&!t.left&&"column-right",!t.up&&!t.right&&t.down&&!t.left&&"column-down",!t.up&&!t.right&&!t.down&&t.left&&"column-left",t.up&&t.right&&!t.down&&!t.left&&"column-up-right",t.up&&!t.right&&!t.down&&t.left&&"column-up-left",!t.up&&t.right&&t.down&&!t.left&&"column-down-right",!t.up&&!t.right&&t.down&&t.left&&"column-down-left",t.class),style:t.style,...r})),y(e,n),ae()}const wl={amex:{elements:['<path d="M79 0 0 174.8h94.6l11.7-27.9h26.8l11.7 27.9h104.1v-21.3l9.3 21.3H312l9.3-21.7v21.7h216.5l26.3-27.2 24.7 27.2 111.2.2-79.3-87.1L700 0H590.5l-25.6 26.6L541 0H305.5l-20.2 45.1L264.6 0h-94.4v20.6L159.7 0zm18.3 24.8h46.1l52.4 118.6V24.8h50.5l40.5 85 37.3-85h50.2v125.4h-30.6l-.2-98.3-44.6 98.3h-27.4l-44.8-98.3v98.3h-62.9l-11.9-28.1H87.5l-11.9 28.1H41.9zm305 0h124.3l38 41.1 39.3-41.1h38l-57.8 63.1 57.8 62.3h-39.7l-38-41.6-39.5 41.6H402.3zM119.7 46.1 98.5 96.2h42.4zM433 50.8v22.9h67.8v25.5H433v25h76.1l35.3-36.8-33.8-36.6z"/ style="fill: var(--amex-fill-color-0, currentColor);"/>'],fills:["#fff"],strokes:[null],viewBoxWidth:700,viewBoxHeight:175.1,widthRatio:3.9977155910908055,heightRatio:1},"apple-pay":{elements:['<path d="M46.1 5.2 43.4 14l-2.7-8.8h-2.4l3.9 10.9-.2.7c-.4 1.1-.9 1.5-1.9 1.5h-.7v1.8h.9c2.2 0 3.3-.9 4.2-3.5l4-11.4h-2.3Zm-13-.1c-2.4 0-4.2 1.4-4.3 3.3h2.1c.2-.9 1-1.5 2.2-1.5s2.2.7 2.2 1.9v.8l-2.9.2c-2.7.2-4.1 1.3-4.1 3.2s1.5 3.2 3.6 3.2 2.8-.7 3.4-1.9v1.8h2.1V8.7c0-2.2-1.7-3.5-4.3-3.5Zm2.1 6.9c0 1.4-1.2 2.4-2.7 2.4s-2-.6-2-1.5.7-1.5 2.2-1.6l2.5-.2v.8ZM13 11.9c-.2-.1-2.1-1-2.1-3.3 0-1.9 1.5-2.9 1.7-3.1-1-1.4-2.4-1.6-2.9-1.6-.8 0-1.5.2-2.1.5q-.6.3-.9.3c-.3 0-.6-.1-1-.3-.5-.2-1-.4-1.6-.4-1.3 0-2.6.8-3.3 2-1.4 2.5-.4 6.1 1 8.1.7 1 1.5 2.1 2.5 2 .5 0 .8-.2 1.1-.3.4-.2.8-.4 1.5-.4s1 .2 1.4.3c.4.2.7.3 1.2.3 1.1 0 1.8-1 2.5-2 .7-1.1 1-2.1 1.1-2.3Zm9.8-10.8h-5.5V16h2.3v-5.1h3.2c2.9 0 4.9-2 4.9-4.9s-2-4.9-4.8-4.9ZM22.2 9h-2.6V3.1h2.6c2 0 3.1 1.1 3.1 3s-1.1 3-3.1 3ZM7.3 1.2c-.5.6-1 1.6-.9 2.5.9 0 1.8-.5 2.4-1.1.6-.7.9-1.6.8-2.6-.8 0-1.8.5-2.4 1.2Z" style="fill: var(--apple-pay-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:48.4,viewBoxHeight:20.1,widthRatio:2.407960199004975,heightRatio:1},billogram:{elements:['<path d="M13.5 0h-12C.7 0 0 .8 0 1.8v14.9c0 .6.7.9 1.1.6L3 15.9l1.6 1.4c.2.2.6.2.8 0l2-1.4 1.8 1.4c.2.2.6.2.8 0l1.8-1.4 2 1.4c.5.3 1.1 0 1.1-.6V1.8c.1-1-.6-1.8-1.4-1.8m-1.8 10.4H3.3c-.6 0-1-.4-1-1s.4-1 1-1h8.4c.5 0 1 .5 1 1s-.5 1-1 1m0-4.8H3.3c-.6 0-1-.5-1-1s.4-1 1-1h8.4c.5 0 1 .5 1 1s-.5 1-1 1" style="fill: var(--billogram-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:15,viewBoxHeight:17.4,widthRatio:1,heightRatio:1.16},card:{elements:['<path d="M3.3 0h19.5C24.6 0 26 1.5 26 3.3v.4c0 .4-.3.7-.7.7H.7c-.4 0-.7-.3-.7-.7v-.4C0 1.5 1.5 0 3.3 0" style="fill: var(--card-fill-color-0, currentColor);"/>','<path d="M25.3 7.2H.7c-.4 0-.7.3-.7.7v7.8C0 17.5 1.5 19 3.2 19h19.5c1.8 0 3.2-1.5 3.2-3.3V7.9c0-.4-.3-.7-.7-.7ZM9.8 12.9H5.7c-.8 0-1.4-.6-1.4-1.4s.6-1.4 1.4-1.4h4.1c.8 0 1.4.6 1.4 1.4s-.6 1.4-1.4 1.4" style="fill: var(--card-fill-color-1, currentColor);"/>'],fills:["#000","#000"],strokes:[null,null],viewBoxWidth:26,viewBoxHeight:19,widthRatio:1.368421052631579,heightRatio:1},checkmark:{elements:['<path d="M.7 2.2 2.4 4l4-4 .7.7-4.7 4.8L0 2.9z"/ style="fill: var(--checkmark-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:7.1,viewBoxHeight:5.5,widthRatio:1.2909090909090908,heightRatio:1},"chevron-down":{elements:['<path d="M7 11c-.3 0-.5-.1-.7-.3l-6-6c-.4-.4-.4-1 0-1.4s1-.4 1.4 0L7 8.6l5.3-5.3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-6 6c-.2.2-.4.3-.7.3" style="fill: var(--chevron-down-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:14,viewBoxHeight:14,widthRatio:1,heightRatio:1},"chevron-left":{elements:['<path d="M10 14c-.3 0-.5-.1-.7-.3l-6-6c-.4-.4-.4-1 0-1.4l6-6c.4-.4 1-.4 1.4 0s.4 1 0 1.4L5.4 7l5.3 5.3c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3" style="fill: var(--chevron-left-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:14,viewBoxHeight:14,widthRatio:1,heightRatio:1},"chevron-right":{elements:['<path d="M4 14c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4L8.6 7 3.3 1.7c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l6 6c.4.4.4 1 0 1.4l-6 6c-.2.2-.4.3-.7.3" style="fill: var(--chevron-right-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:14,viewBoxHeight:14,widthRatio:1,heightRatio:1},"chevron-up":{elements:['<path d="M13 11c-.3 0-.5-.1-.7-.3L7 5.4l-5.3 5.3c-.4.4-1 .4-1.4 0s-.4-1 0-1.4l6-6c.4-.4 1-.4 1.4 0l6 6c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3" style="fill: var(--chevron-up-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:14,viewBoxHeight:14,widthRatio:1,heightRatio:1},"google-pay":{elements:['<path d="M37.8 19.7V29h-3V6h7.8c1.9 0 3.7.7 5.1 2 1.4 1.2 2.1 3 2.1 4.9s-.7 3.6-2.1 4.9-3.1 2-5.1 2zm0-10.9v8h5c1.1 0 2.2-.4 2.9-1.2 1.6-1.5 1.6-4 .1-5.5l-.1-.1c-.8-.8-1.8-1.3-2.9-1.2zm18.9 4c2.2 0 3.9.6 5.2 1.8s1.9 2.8 1.9 4.8V29H61v-2.2h-.1c-1.2 1.8-2.9 2.7-4.9 2.7-1.7 0-3.2-.5-4.4-1.5-1.1-1-1.8-2.4-1.8-3.9q0-2.4 1.8-3.9c1.2-1 2.9-1.4 4.9-1.4 1.8 0 3.2.3 4.3 1v-.7c0-1-.4-2-1.2-2.6-.8-.7-1.8-1.1-2.9-1.1q-2.55 0-3.9 2.1l-2.6-1.6c1.6-2.1 3.7-3.1 6.5-3.1m-3.8 11.4c0 .8.4 1.5 1 1.9.7.5 1.5.8 2.3.8 1.2 0 2.4-.5 3.3-1.4 1-.9 1.5-2 1.5-3.2-.9-.7-2.2-1.1-3.9-1.1q-1.8 0-3 .9-1.2.75-1.2 2.1M80 13.3 70.1 36h-3l3.7-7.9-6.5-14.7h3.2l4.7 11.3h.1l4.6-11.3H80z"/ style="fill: var(--google-pay-fill-color-0, currentColor);"/>','<path d="M25.9 17.7c0-.9-.1-1.8-.2-2.7H13.2v5.1h7.1c-.3 1.6-1.2 3.1-2.6 4v3.3H22c2.5-2.3 3.9-5.7 3.9-9.7"/ style="fill: var(--google-pay-fill-color-1, currentColor);"/>','<path d="M13.2 30.6c3.6 0 6.6-1.2 8.8-3.2l-4.3-3.3c-1.2.8-2.7 1.3-4.5 1.3-3.4 0-6.4-2.3-7.4-5.5H1.4v3.4c2.3 4.5 6.8 7.3 11.8 7.3"/ style="fill: var(--google-pay-fill-color-2, currentColor);"/>','<path d="M5.8 19.9c-.6-1.6-.6-3.4 0-5.1v-3.4H1.4c-1.9 3.7-1.9 8.1 0 11.9z"/ style="fill: var(--google-pay-fill-color-3, currentColor);"/>','<path d="M13.2 9.4c1.9 0 3.7.7 5.1 2l3.8-3.8c-2.4-2.2-5.6-3.5-8.8-3.4-5 0-9.6 2.8-11.8 7.3l4.4 3.4c.9-3.2 3.9-5.5 7.3-5.5"/ style="fill: var(--google-pay-fill-color-4, currentColor);"/>'],fills:["#5f6368","#4285f4","#34a853","#fbbc04","#ea4335"],strokes:[null,null,null,null,null],viewBoxWidth:80,viewBoxHeight:38.1,widthRatio:2.099737532808399,heightRatio:1},info:{elements:['<path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16m-1-8a1 1 0 1 0 2 0V6a1 1 0 1 0-2 0zm0 3.5a1 1 0 1 0 2 0 1 1 0 0 0-2 0" clip-rule="evenodd"/ style="fill: var(--info-fill-color-0, currentColor);"/>'],fills:["#FF662F"],strokes:[null],viewBoxWidth:20,viewBoxHeight:20,widthRatio:1,heightRatio:1},klarna:{elements:['<path d="M3.1 13.9H0V0h3.1zM10.9 0h-3c0 2.6-1.1 4.9-3.1 6.5l-1.2.9L8.3 14h3.8L7.8 8C9.8 5.9 11 3.1 11 .1Zm4.9 13.9h-2.9V0h2.9zm8.9-9.6v.6c-.8-.6-1.8-.9-2.8-.9C19.2 4 17 6.3 17 9.1s2.2 5.1 4.9 5.1 2-.3 2.8-.9v.6h2.8V4.3zm0 4.8c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5m29.7-4.2v-.6h2.8v9.6h-2.8v-.6c-.8.6-1.8.9-2.8.9-2.7 0-4.9-2.3-4.9-5.1S48.9 4 51.6 4s2 .3 2.8.9m-2.6 6.7c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5M41.6 4c-1.1 0-2.2.4-2.9 1.3V4.2h-2.8v9.6h2.8V8.7c0-1.5 1-2.2 2.1-2.2s1.9.8 1.9 2.2v5.1h2.8V7.7c0-2.2-1.7-3.8-4-3.8Zm-9.7.3v1.3c.6-.8 1.6-1.3 2.8-1.3v2.8c-1.1 0-2.7.8-2.7 2.3v4.5h-2.9V4.3H32Zm26.5 8c0-1 .8-1.8 1.8-1.8s1.8.8 1.8 1.8-.8 1.8-1.8 1.8-1.8-.8-1.8-1.8" style="fill: var(--klarna-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:61.9,viewBoxHeight:14.2,widthRatio:4.359154929577465,heightRatio:1},lock:{elements:['<path d="M8.7 4.5v-.7C8.7 1.7 7 0 5 0S1.2 1.7 1.2 3.9v.7C.5 4.6 0 5.2 0 5.9v6.4c0 .7.6 1.3 1.2 1.3h7.4c.7 0 1.2-.6 1.2-1.3V5.9c0-.7-.6-1.3-1.2-1.3ZM5.6 9.7c0 .4-.3.7-.7.7s-.7-.3-.7-.7V8c0-.4.3-.7.7-.7s.7.3.7.7zm1.8-5.2H2.5v-.7c0-1.5 1.1-2.6 2.5-2.6s2.5 1.1 2.5 2.6v.7Z" style="fill: var(--lock-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:9.9,viewBoxHeight:13.5,widthRatio:.7333333333333334,heightRatio:1},mastercard:{elements:['<path d="M303.1 57h256.7v419.3H303.1z"/ style="fill: var(--mastercard-fill-color-0, currentColor);"/>','<path d="M329.5 266.7c0-81.8 37.5-159.1 101.8-209.6C315.6-33.9 148-13.8 57 102s-70.9 283.4 44.9 374.4c96.7 76 232.8 76 329.5 0-64.4-50.5-101.9-127.8-101.8-209.7Z"/ style="fill: var(--mastercard-fill-color-1, currentColor);"/>','<path d="M862.8 266.7c0 147.2-119.4 266.6-266.6 266.6-59.8 0-117.8-20.1-164.8-57 115.8-91 135.9-258.6 44.9-374.4-13.1-16.7-28.2-31.8-44.9-44.9 115.8-91 283.4-70.9 374.4 44.8 36.9 47 57 105 57 164.8Z"/ style="fill: var(--mastercard-fill-color-2, currentColor);"/>'],fills:["#ff5f00","#eb001b","#f79e1b"],strokes:[null,null,null],viewBoxWidth:862.8,viewBoxHeight:533.3,widthRatio:1.617851115694731,heightRatio:1},swish:{elements:['<defs style="fill: var(--swish-fill-color-0, currentColor);"/>','<linearGradient id="a" x1="15.8" x2="10.8" y1="8.2" y2="18.1" gradientTransform="matrix(1 0 0 -1 0 25.4)" gradientUnits="userSpaceOnUse" style="fill: var(--swish-fill-color-1, currentColor);"/>','<stop offset="0" stop-color="#ef2131"/ style="fill: var(--swish-fill-color-2, currentColor);"/>','<stop offset="1" stop-color="#fecf2c"/ style="fill: var(--swish-fill-color-3, currentColor);"/>','</linearGradient style="fill: var(--swish-fill-color-4, currentColor);"/>','<linearGradient id="b" x1="20.3" x2="11.6" y1="16" y2="1" gradientTransform="matrix(1 0 0 -1 0 25.4)" gradientUnits="userSpaceOnUse" style="fill: var(--swish-fill-color-5, currentColor);"/>','<stop offset="0" stop-color="#fbc52c"/ style="fill: var(--swish-fill-color-6, currentColor);"/>','<stop offset=".3" stop-color="#f87130"/ style="fill: var(--swish-fill-color-7, currentColor);"/>','<stop offset=".6" stop-color="#ef52e2"/ style="fill: var(--swish-fill-color-8, currentColor);"/>','<stop offset="1" stop-color="#661eec"/ style="fill: var(--swish-fill-color-9, currentColor);"/>','</linearGradient style="fill: var(--swish-fill-color-10, currentColor);"/>','<linearGradient id="c" x1="7.7" x2="12.4" y1="19" y2="9.4" gradientTransform="matrix(1 0 0 -1 0 25.4)" gradientUnits="userSpaceOnUse" style="fill: var(--swish-fill-color-11, currentColor);"/>','<stop offset="0" stop-color="#78f6d8"/ style="fill: var(--swish-fill-color-12, currentColor);"/>','<stop offset=".3" stop-color="#77d1f6"/ style="fill: var(--swish-fill-color-13, currentColor);"/>','<stop offset=".6" stop-color="#70a4f3"/ style="fill: var(--swish-fill-color-14, currentColor);"/>','<stop offset="1" stop-color="#661eec"/ style="fill: var(--swish-fill-color-15, currentColor);"/>','</linearGradient style="fill: var(--swish-fill-color-16, currentColor);"/>','<linearGradient id="d" x1="3.1" x2="11.7" y1="11.5" y2="26.4" gradientTransform="matrix(1 0 0 -1 0 25.4)" gradientUnits="userSpaceOnUse" style="fill: var(--swish-fill-color-17, currentColor);"/>','<stop offset="0" stop-color="#536eed"/ style="fill: var(--swish-fill-color-18, currentColor);"/>','<stop offset=".2" stop-color="#54c3ec"/ style="fill: var(--swish-fill-color-19, currentColor);"/>','<stop offset=".6" stop-color="#64d769"/ style="fill: var(--swish-fill-color-20, currentColor);"/>','<stop offset="1" stop-color="#fecf2c"/ style="fill: var(--swish-fill-color-21, currentColor);"/>','</linearGradient style="fill: var(--swish-fill-color-22, currentColor);"/>','</defs style="fill: var(--swish-fill-color-23, currentColor);"/>','<path d="M72.8 6.5c0-.3 0-.5.1-.8 0-.2.2-.4.4-.6s.4-.3.6-.4.5-.2.7-.2.5 0 .7.2c.2 0 .4.2.6.4s.3.4.4.6c0 .2.1.5.1.8s0 .5-.1.8c0 .2-.2.4-.4.6s-.4.3-.6.4-.5.2-.7.2-.5 0-.7-.2c-.2 0-.4-.2-.6-.4s-.3-.4-.4-.6c0-.2-.1-.5-.1-.8m.4 0c0 .2 0 .4.1.6 0 .2.2.4.3.5s.3.3.5.3.4.1.6.1.4 0 .6-.1c.2 0 .3-.2.5-.3.1-.1.2-.3.3-.5 0-.2.1-.4.1-.6s0-.4-.1-.6c0-.2-.2-.4-.3-.5s-.3-.3-.5-.3-.4-.1-.6-.1-.4 0-.6.1c-.2 0-.3.2-.5.3-.1.1-.2.3-.3.5 0 .2-.1.4-.1.6m.8-.9c0-.1 0-.2.2-.2h.6c.2 0 .3 0 .5.2.1.1.2.3.2.4v.4l-.1.1h-.1l.3.5v.1h-.1s-.2 0-.2-.1l-.3-.6h-.3V7c0 .1 0 .2-.2.2-.1 0-.2 0-.2-.2V5.3Zm.7.8h.2V6h-.5v.7h.3ZM59.3 7.7c.6 0 1.1 0 1.5.2s.7.3 1 .4c.2.1.3.2.4.4v.6l-.2.3c-.1.2-.2.3-.4.4H61c-.2 0-.4-.2-.7-.3s-.6-.2-1-.2-.7 0-.9.2-.3.4-.3.7.1.4.3.6.5.3.8.4.7.2 1.1.4c.4.1.7.3 1.1.5.3.2.6.5.8.8s.3.7.3 1.3 0 .8-.2 1.1-.4.6-.7.9c-.3.2-.7.4-1.1.6-.4.1-.9.2-1.4.2s-1.3-.1-1.8-.3q-.75-.3-1.2-.6c-.2-.1-.3-.3-.3-.4 0-.2 0-.4.2-.6l.2-.3c.1-.2.3-.3.4-.3.2 0 .3 0 .6.1.2.1.5.3.8.4s.7.2 1.2.2.7 0 .9-.2.3-.4.3-.7-.1-.4-.3-.6c-.2-.1-.5-.3-.8-.4-.4-.1-.7-.3-1.1-.4s-.7-.3-1.1-.5c-.3-.2-.6-.5-.8-.8s-.3-.8-.3-1.3 0-.8.3-1.2c.2-.3.4-.6.7-.8s.7-.4 1.1-.5.9-.2 1.3-.2Zm-26.2 0c.6 0 1.1 0 1.5.2s.7.3 1 .4c.2.1.3.2.4.4s0 .4 0 .6l-.2.3c-.1.2-.2.3-.4.4h-.6c-.2 0-.4-.2-.7-.3s-.6-.2-1-.2-.7 0-.9.2-.3.4-.3.7.1.4.3.6.5.3.8.4.7.2 1.1.4c.4.1.7.3 1.1.5.3.2.6.5.8.8s.3.7.3 1.3 0 .8-.2 1.1-.4.6-.7.9c-.3.2-.7.4-1.1.6-.4.1-.9.2-1.4.2s-1.3-.1-1.8-.3q-.75-.3-1.2-.6c-.2-.1-.3-.3-.3-.4 0-.2 0-.4.2-.6l.2-.3c.1-.2.3-.3.4-.3.2 0 .3 0 .6.1.2.1.5.3.8.4s.7.2 1.2.2.7 0 .9-.2.3-.4.3-.7-.1-.4-.3-.6c-.2-.1-.5-.3-.8-.4s-.7-.3-1.1-.4-.7-.3-1.1-.5c-.3-.2-.6-.5-.8-.8s-.3-.8-.3-1.3 0-.8.3-1.2c.2-.3.4-.6.7-.8s.7-.4 1.1-.5.9-.2 1.3-.2Zm32.1-3.3c.5 0 .7.2.7.7v4.3c.1-.2.3-.4.4-.6.2-.2.4-.4.7-.6s.6-.3.9-.4.7-.2 1.1-.2c1 0 1.8.3 2.3.8s.8 1.4.8 2.6v5.1c0 .5-.2.7-.7.7h-.8c-.5 0-.7-.2-.7-.7v-4.6c0-.6 0-1-.3-1.3-.2-.3-.6-.5-1.1-.5s-.7 0-1.1.2c-.3.2-.6.4-.8.6-.2.3-.4.6-.5.9-.1.4-.2.8-.2 1.2V16c0 .5-.2.7-.7.7h-.8c-.5 0-.7-.2-.7-.7V5.1c0-.5.2-.7.7-.7zM53.5 7.9c.5 0 .7.2.7.7v7.5c0 .5-.2.7-.7.7h-.8c-.5 0-.7-.2-.7-.7V8.6c0-.5.2-.7.7-.7zm-15 0c.4 0 .7.2.8.7l1.4 5.3v1-1l1.5-5.3c0-.4.4-.6.8-.6h.7c.4 0 .7.2.8.6l1.5 5.3v1-1l1.4-5.3c.1-.4.4-.7.8-.7h.8c.3 0 .5 0 .6.2q.15.3 0 .6l-2.3 7.6c-.1.4-.4.6-.8.6h-1.2c-.4 0-.7-.2-.8-.6l-1.4-4.5v-1 1l-1.4 4.5c-.1.4-.4.6-.8.6h-1.2c-.4 0-.7-.2-.8-.6l-2.3-7.6v-.6c.1-.2.3-.2.6-.2h.8Z" style="fill: var(--swish-fill-color-24, currentColor);"/>','<path d="M6.6 22.2c4.7 2.2 10.5 1.1 14-3 4.1-4.9 3.5-12.3-1.4-16.4l-3.3 3.9c3.9 3.2 4.4 9 1.1 12.8-2.6 3.1-6.8 4.1-10.4 2.7" style="fill: var(--swish-fill-color-25, currentColor);"/>','<path d="M6.6 22.2c4.7 2.2 10.5 1.1 14-3 .4-.5.8-1 1.1-1.6.6-3.4-.7-7-3.5-9.4-.7-.6-1.5-1.1-2.3-1.5 3.9 3.2 4.4 9 1.1 12.8-2.6 3.1-6.8 4.1-10.4 2.7" style="fill: var(--swish-fill-color-26, currentColor);"/>','<path d="M16.7 1.1C12-1.1 6.2 0 2.7 4.2-1.4 9.1-.8 16.5 4.1 20.6l3.3-3.9C3.5 13.5 3 7.7 6.3 3.9 8.9.8 13.1-.2 16.7 1.1" style="fill: var(--swish-fill-color-27, currentColor);"/>','<path d="M16.7 1.1C12-1.1 6.2 0 2.7 4.2c-.4.5-.8 1-1.1 1.6-.6 3.4.7 7 3.5 9.4.7.6 1.5 1.1 2.3 1.5-3.9-3.2-4.4-9-1.1-12.8C8.9.8 13.1-.2 16.7 1.1" style="fill: var(--swish-fill-color-28, currentColor);"/>'],fills:["#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000"],strokes:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],viewBoxWidth:76.6,viewBoxHeight:23.3,widthRatio:3.2875536480686693,heightRatio:1},vipps:{elements:['<path d="m33.9 3.4 28.8 84.1L90.9 3.4h33.3L74.5 128.2H49.7L0 3.4zm165.4 105c20.9 0 32.7-10.2 44-24.8 6.2-7.9 14.1-9.6 19.8-5.1s6.2 13 0 20.9c-16.4 21.5-37.3 34.4-63.8 34.4s-54.2-15.8-71.7-43.5c-5.1-7.3-4-15.2 1.7-19.2s14.1-2.3 19.2 5.6c12.4 18.6 29.4 31.6 50.8 31.6ZM238.2 39c0 10.2-7.9 16.9-16.9 16.9s-16.9-6.8-16.9-16.9 7.9-16.9 16.9-16.9 16.9 7.3 16.9 16.9m79.7-35.6v16.9C326.4 8.4 339.4 0 358.5 0S411 20.3 411 63.8s-27.1 67.7-55.3 67.7-28.2-5.6-38.4-19.8v59.8h-30.5V3.4zm0 62.1c0 25.4 14.7 39 31.1 39s31.6-12.4 31.6-39-15.8-38.4-31.6-38.4-31.1 11.9-31.1 38.4M464.6 3.4v16.9C473.1 8.4 486.1 0 505.2 0s52.5 20.3 52.5 63.8-27.1 67.7-55.3 67.7-28.2-5.6-38.4-19.8v59.8h-30.5V3.4zm0 62.1c0 25.4 14.7 39 31.1 39s31.6-12.4 31.6-39-15.8-38.4-31.6-38.4-31.1 11.9-31.1 38.4M622.7 0c25.4 0 43.5 11.9 51.4 41.2l-27.7 4.5c-.6-14.7-9.6-19.8-23.1-19.8s-18.1 4.5-18.1 11.9 4 11.3 15.8 13.5l20.9 4c20.3 4 31.6 17.5 31.6 35.6 0 27.1-24.3 40.6-47.4 40.6s-51.4-12.4-55.3-42.9l27.7-4.5c1.7 15.8 11.3 21.5 27.1 21.5s19.8-4.5 19.8-11.9-4-11.9-16.9-14.1l-19.2-3.4c-20.3-4-32.7-18.1-32.7-36.1C577 11.9 602.4 0 622.7 0"/ style="fill: var(--vipps-fill-color-0, currentColor);"/>'],fills:["#ff5b24"],strokes:[null],viewBoxWidth:674.1,viewBoxHeight:176,widthRatio:3.8301136363636363,heightRatio:1},visa:{elements:['<path d="M484.7 8.4C469.2 2.7 452.8-.1 436.3 0c-53.3 0-91 26.9-91.2 65.4-.3 28.3 26.8 44.3 47.3 53.8 21 9.7 28.1 15.9 28 24.6-.1 13.2-16.8 19.2-32.3 19.2s-32.9-3-50.8-10.4l-6.6-3.1-7.6 44.4c13 5.4 36.3 10 60.5 10.4 56.7 0 93.8-26.7 94.2-67.7.5-22.6-14.2-39.7-45.1-53.9-18.8-9.2-30.4-15.3-30.4-24.6s10-17 30.8-17c13.9-.3 27.6 2.3 40.4 7.6l5 2.2L486.1 8l-1.3.3Zm138.4-4.8h-41.7c-13 0-22.7 3.6-28.4 16.4l-80.1 181.5h56.7l11.3-29.8h69.2c1.6 7 6.6 29.8 6.6 29.8h50zM268.4 1.9h54L288.6 200h-54zM131.2 111.1l5.6 27.5 52.8-135h57.2l-85 197.7h-57.1L58 33.9c-.8-2.8-2.5-5.1-5-6.6C36.2 18.6 18.4 12 0 7.6l.7-4.1h87c11.8.5 21.3 4.2 24.5 16.8l19 91v-.1Zm425.2 20.2 21.5-55.4c-.3.6 4.4-11.4 7.2-18.9l3.7 17.1 12.5 57.1h-44.9Z"/ style="fill: var(--visa-fill-color-0, currentColor);"/>'],fills:["#182a85"],strokes:[null],viewBoxWidth:666.8,viewBoxHeight:204.3,widthRatio:3.263827704356338,heightRatio:1}};var bl=xr("<svg><!></svg>");function Ht(e,t){oe(t,!0);let r=S(t,"multiColor",3,!1),n=S(t,"ratio",3,1),o=We(t,["$$slots","$$events","$$legacy","name","multiColor","ratio","class"]);const{elements:a,fills:l,strokes:i,viewBoxWidth:s,viewBoxHeight:c,widthRatio:u,heightRatio:d}=wl[t.name];var m=bl();let f;var g=A(m);Er(g,()=>a.join(""),!0,!1),L(m),$(()=>f=bt(m,f,{class:Y(`icon-${t.name}`,t.class),viewBox:s&&c?`0 0 ${s} ${c}`:void 0,width:`${n()*u}em`,height:`${n()*d}em`,style:r()?[...l.map((p,_)=>p&&`--${t.name}-fill-color-${_}: ${p};`),...i.map((p,_)=>p&&`--${t.name}-stroke-color-${_}: ${p};`)].filter(Boolean).join(""):void 0,...o},void 0,!0)),y(e,m),ae()}function Pr(e,t){oe(t,!0);let r=S(t,"size",3,"md");var n=G(()=>Y("aspect-[4/3] px-1 rounded bg-white border border-transparent",t.name==="klarna"&&"bg-[#FEB4C7]",t.name==="amex"&&"bg-[#1F72CD]",r()==="sm"&&"w-8 border-gray-300",r()==="md"&&"w-10 shadow-sm",r()==="lg"&&"w-12 shadow"));Ye(e,{get class(){return h(n)},children:(o,a)=>{Ht(o,{get name(){return t.name},multiColor:!0})},$$slots:{default:!0}}),ae()}var yl=P('<span class="inline-block w-4 h-4 mr-2 border-2 border-current border-r-transparent rounded-full animate-spin" aria-hidden="true"></span>'),xl=P("<!> <!>",1);function Mr(e,t){oe(t,!0);let r=S(t,"loading",7,!1),n=S(t,"variant",7,"primary"),o=S(t,"disabled",7,!1),a=S(t,"size",7,"md"),l=S(t,"part",7),i=S(t,"onclick",7),s=S(t,"href",7),c=S(t,"class",7);return Ut(e,{children:(u,d)=>{var m=G(()=>Y("inline-flex font-bold ring-2 ring-transparent focus:ring-primary/25 active:enabled:translate-y-px border border-transparent items-center justify-center outline-none rounded-md transition-colors duration-200 ease-in-out",a()=="sm"&&"px-3 py-1.5 text-sm",a()=="md"&&"px-4 py-2 text-base",a()=="lg"&&"px-6 py-3 text-lg",n()==="primary"&&"bg-primary text-white enabled:hover:bg-primary/90",n()==="secondary"&&"bg-transparent border-primary text-primary enabled:hover:bg-primary/10",n()==="tertiary"&&"text-primary enabled:hover:bg-primary/10",o()&&"opacity-50 cursor-not-allowed",c()));Ho(u,{get class(){return h(m)},get href(){return s()},get onclick(){return i()},get part(){return l()},get disabled(){return o()},children:(f,g)=>{var p=xl(),_=I(p);B(_,r,b=>{var w=yl();y(b,w)});var v=E(_,2);_t(v,Ar(t),{},null),y(f,p)},$$slots:{default:!0}})},$$slots:{default:!0}}),ae({get loading(){return r()},set loading(u=!1){r(u),X()},get variant(){return n()},set variant(u="primary"){n(u),X()},get disabled(){return o()},set disabled(u=!1){o(u),X()},get size(){return a()},set size(u="md"){a(u),X()},get part(){return l()},set part(u){l(u),X()},get onclick(){return i()},set onclick(u){i(u),X()},get href(){return s()},set href(u){s(u),X()},get class(){return c()},set class(u){c(u),X()}})}customElements.define("sesamy-button-beta",qt(Mr,{loading:{type:"Boolean"},variant:{},disabled:{type:"Boolean"},size:{},part:{},onclick:{},href:{},class:{}},["default"],[],!0));function kl(e){const t=e-1;return t*t*t+1}function Cl(e,{delay:t=0,duration:r=400,easing:n=kl,axis:o="y"}={}){const a=getComputedStyle(e),l=+a.opacity,i=o==="y"?"height":"width",s=parseFloat(a[i]),c=o==="y"?["top","bottom"]:["left","right"],u=c.map(v=>`${v[0].toUpperCase()}${v.slice(1)}`),d=parseFloat(a[`padding${u[0]}`]),m=parseFloat(a[`padding${u[1]}`]),f=parseFloat(a[`margin${u[0]}`]),g=parseFloat(a[`margin${u[1]}`]),p=parseFloat(a[`border${u[0]}Width`]),_=parseFloat(a[`border${u[1]}Width`]);return{delay:t,duration:r,easing:n,css:v=>`overflow: hidden;opacity: ${Math.min(v*20,1)*l};${i}: ${v*s}px;padding-${c[0]}: ${v*d}px;padding-${c[1]}: ${v*m}px;margin-${c[0]}: ${v*f}px;margin-${c[1]}: ${v*g}px;border-${c[0]}-width: ${v*p}px;border-${c[1]}-width: ${v*_}px;`}}var $l=P('<li class="row-up-left gap-2"><!> <div> </div></li>'),El=P("<ul></ul>");function Vo(e,t){oe(t,!0);var r=El();$(()=>we(r,Y("text-gray-600 space-y-0.5 @md:space-y-1.5 text-sm @md:text-base",t.class))),jt(r,21,()=>t.features,$r,(n,o)=>{var a=$l(),l=A(a);Ht(l,{class:"text-xs @md:text-sm text-primary mt-0.5 @md:mt-1",name:"checkmark"});var i=E(l,2);$(()=>we(i,Y("flex-1 leading-snug")));var s=A(i);L(i),L(a),$(()=>Q(s,h(o))),_i(3,a,()=>Cl),y(n,a)}),L(r),y(e,r),ae()}var Ll=P("<div><!></div>");function un(e,t){oe(t,!0);let r=S(t,"horizontal",3,!1);var n=Ll();$(()=>we(n,Y("transition-colors grid rounded-md w-full",r()&&"gap-2 @xl:gap-4 @xl:auto-rows-fr",!r()&&"bg-white border-gray-200 border has-[input:checked]:border-primary",t.class)));var o=A(n);wt(o,()=>t.children),L(n),y(e,n),ae()}var Al=P('<div><div><div class="absolute top-full left-1/2 -translate-x-1/2 w-4 h-4 bg-primary rotate-45 -translate-y-3.5 rounded-sm"></div> <div class="relative"> </div></div></div>');function Wo(e,t){oe(t,!0);var r=Al();$(()=>we(r,Y("absolute top-2 -right-3 rotate-3",t.chunky&&"top-5")));var n=A(r);$(()=>we(n,Y("absolute bg-primary bottom-0 rounded right-0 px-2 text-white text-xs py-1 font-bold whitespace-nowrap",t.chunky&&"px-3 text-sm @xl:text-base bottom-1")));var o=E(A(n),2),a=A(o);L(o),L(n),L(r),$(()=>Q(a,t.text)),y(e,r),ae()}var Sl=P(`<label><input type="radio" class="peer sr-only"> <div class="w-4 h-4 rounded-full transition-all bg-white border border-[#E7E7EC] relative ring ring-transparent peer-focus-visible:ring-primary/20 peer-checked:border-primary peer-checked:bg-primary"><div class="content-[''] absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 w-1.5 h-1.5 bg-white rounded-full"></div></div> <div><!></div></label>`);function dn(e,t){oe(t,!0);let r=We(t,["$$slots","$$events","$$legacy","id","name","checked","children","onchange","class"]);var n=Sl();let o;var a=A(n);Co(a),a.__change=function(...s){var c;(c=t.onchange)==null||c.apply(this,s)};var l=E(a,4);$(()=>we(l,Y("column-up-left @md:row-left flex-1 !justify-between",t.class)));var i=A(l);wt(i,()=>t.children),L(l),L(n),$(()=>{o=bt(n,o,{class:"p-3 @3xl:p-4 row-left gap-4 w-full relative",for:t.id,...r}),ui(a,t.checked),_e(a,"name",t.name),_e(a,"id",t.id)}),y(e,n),ae()}yr(["change"]);var Pl=P('<div class="leading-none"><span class="font-bold text-2xl @xl:text-4xl"> </span> <span class="text-xl @xl:text-2xl"> </span></div>'),Ml=P('<!> <div class="relative leading-tight"><span> </span> <span> </span> <div></div></div>',1),Tl=P('<div class="text-sm text-gray-700"> </div>'),zl=P('<div class="text-base @xl:text-lg font-bold leading-tight"> </div> <!> <!> <!>',1),Rl=P("<!> <!>",1),Il=P("<!> <!>",1),Nl=P('<hr class="w-full border-gray-100">'),Ol=P('<div class="leading-tight text-sm"> </div>'),Dl=P('<div class="text-base font-bold leading-tight"> </div> <!>',1),jl=P('<div class="text-base font-bold leading-none"> </div>'),ql=P('<!> <div class="column-left @md:column-right"><!> <div> </div></div> <!>',1),Bl=P("<!> <!>",1);function Fl(e,t){oe(t,!0);let r=S(t,"horizontal",3,!1);const n=async a=>sesamy.generateLink({target:"checkout",sku:a.sku,purchaseOptionId:a.poId,discountCode:a.discountCode});var o=G(()=>Y(r()&&"@xl:grid-cols-3",r()&&t.subscriptions.length===4&&"@xl:grid-cols-2 @4xl:grid-cols-4",r()&&t.subscriptions.length===2&&"@xl:grid-cols-2",r()&&t.subscriptions.length===1&&"flex"));un(e,{get class(){return h(o)},get horizontal(){return r()},children:(a,l)=>{var i=fe(),s=I(i);jt(s,17,()=>t.subscriptions,$r,(c,u,d)=>{var m=fe();const f=G(()=>{const{id:p,title:_,description:v,price:b,periodText:w,features:x,selected:k,tag:T,buttonText:R,url:F,discountPrice:te}=h(u);return{id:p,title:_,description:v,price:b,periodText:w,features:x,selected:k,tag:T,buttonText:R,url:F,discountPrice:te}});var g=I(m);B(g,r,p=>{var _=G(()=>Y("border bg-white border-gray-300 rounded-lg relative",h(f).tag&&"border-primary mt-0 border-2"));Qe(p,{get class(){return h(_)},children:(v,b)=>{var w=Il(),x=I(w);B(x,()=>h(f).tag,T=>{Wo(T,{get text(){return h(f).tag},get t(){return t.t},chunky:!0})});var k=E(x,2);Qe(k,{class:"p-4 flex-1 gap-2 w-full !justify-between shadow-md",left:!0,up:!0,children:(T,R)=>{var F=Rl(),te=I(F);Qe(te,{class:"@xl:p-1",left:!0,children:(D,C)=>{var U=zl(),Z=I(U),H=A(Z);L(Z);var K=E(Z,2);B(K,()=>typeof h(f).price=="number",me=>{Qe(me,{class:"mb-0 @xl:mb-4",left:!0,children:(he,ce)=>{var Pe=Ml(),q=I(Pe);B(q,()=>h(f).discountPrice,xt=>{var ue=Pl(),ye=A(ue),xe=A(ye);L(ye);var Ee=E(ye,2),qe=A(Ee);L(Ee),L(ue),$(()=>{Q(xe,`${h(f).discountPrice??""}
|
|
13
|
-
${
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${t.currency??""} / ${h(f).periodText??""}`)),y(w,k)},$$slots:{default:!0}}),y(p,_)}),y(c,m)}),y(a,i)},$$slots:{default:!0}}),ae()}var Ul=P('<div class="text-base font-bold leading-tight"></div> <div class="text-sm"></div>',1),Hl=P('<!> <div class="text-base font-bold"> </div>',1);function Gl(e,t){var u,d,m;oe(t,!0);let r=S(t,"item-src",7),n=S(t,"price",7),o=S(t,"currency",7),{title:a,description:l}=t.singlePurchase;const i=()=>{const f=n()?parseFloat(n()):0;t.selectProduct({...t.singlePurchase,price:f,url:r()})};n()||n((u=document.querySelector('meta[property="sesamy:price"]'))==null?void 0:u.content),o()||o((d=document.querySelector('meta[property="sesamy:currency"]'))==null?void 0:d.content),r()||r((m=document.querySelector('meta[property="sesamy:item-src"]'))==null?void 0:m.content),r()&&!t.hasSubscriptions&&i();var s=fe(),c=I(s);B(c,r,f=>{un(f,{children:(g,p)=>{var _=G(()=>!t.hasSubscriptions);dn(g,{id:"single-purchase",name:"purchase-option",class:"gap-2 @md:gap-4",get checked(){return h(_)},onchange:i,children:(v,b)=>{var w=Hl(),x=I(w);Qe(x,{left:!0,children:(R,F)=>{var te=Ul(),M=I(te);M.textContent=a;var D=E(M,2);D.textContent=l,y(R,te)},$$slots:{default:!0}});var k=E(x,2),T=A(k);L(k),$(()=>Q(T,`${n()??""} ${o()??""}`)),y(v,w)},$$slots:{default:!0}})},$$slots:{default:!0}})}),y(e,s),ae()}function Yo(e,t){Ye(e,{class:"text-red-500 w-full",left:!0,children:(r,n)=>{Oe();var o=It();$(()=>Q(o,`• ${t.text??""}`)),y(r,o)},$$slots:{default:!0}})}const Vl=["AF","AL","DZ","AD","AO","AG","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BT","BO","BA","BW","BR","BN","BG","BF","BI","CV","KH","CM","CA","CF","TD","CL","CN","CO","KM","CG","CD","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GD","GT","GN","GW","GY","HT","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","MK","NO","OM","PK","PW","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","SS","ES","LK","SD","SR","SE","CH","SY","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"];function Wl(e,t="en"){return new Intl.DisplayNames(t,{type:"region"}).of(e.toUpperCase())}function Yl(){return Vl}function Zl(e="en"){return Yl().map(t=>({value:t,label:Wl(t,e)||""})).sort((t,r)=>t.label<r.label?-1:t.label>r.label?1:0)}var Kl=P("<div> </div>"),Jl=P("<label><input> <!></label>");function Tr(e,t){oe(t,!0);let r=S(t,"value",15),n=S(t,"hasError",3,!1),o=S(t,"placeholder",3,""),a=S(t,"compact",3,!1),l=We(t,["$$slots","$$events","$$legacy","value","error","hasError","placeholder","compact","class"]);var i=Jl();$(()=>we(i,Y("relative w-full column-left",(n()||!!t.error)&&"z-20")));var s=A(i);Co(s);let c;var u=E(s,2);B(u,a,d=>{var m=Kl();$(()=>we(m,Y("pointer-events-none absolute left-4 right-4 top-1/2 line-clamp-1 -translate-y-1/2 text-base font-medium text-gray-400 transition-[transform,font-size] peer-focus-visible:-translate-y-[calc(50%+theme(space.3))] peer-focus:text-xs",!!r()&&"-translate-y-[calc(50%+theme(space.3))] text-xs sm:text-xs")));var f=A(m);L(m),$(()=>Q(f,o())),y(d,m)}),L(i),$(()=>c=bt(s,c,{...l,class:Y("peer w-full rounded-md border border-gray-200 bg-white p-4 text-base leading-snug text-gray-800 outline-0 transition-colors duration-150 placeholder:text-gray-400 focus:border-gray-300 disabled:opacity-[20%]",(n()||!!t.error)&&"border-red-500 focus-visible:border-red",a()&&"pb-2 pt-6 placeholder:text-transparent",t.class),placeholder:o()})),wi(s,r),y(e,i),ae()}var Xl=P("<div><!></div>");function Ql(e,t){oe(t,!0);var r=Xl();$(()=>we(r,Y("w-full [&>label:first-child>:where(select,input)]:rounded-t-md [&>label:last-child>:where(select,input)]:rounded-b-md [&>label>:where(select,input)]:rounded-none [&_label>:where(select,input)]:-mt-px [&_label>select]:-mt-px","max-sm:gap-0 max-sm:[&>*:first-child>*:first-child>label:first-of-type>:where(select,input)]:rounded-t-md max-sm:[&>*:last-child>*:last-child>label:last-of-type>:where(select,input)]:rounded-b-md max-sm:[&>*]:gap-0 max-sm:[&_label>:where(select,input)]:rounded-none",t.class)));var n=A(r);wt(n,()=>t.children),L(r),y(e,r),ae()}var es=P("<option> </option>"),ts=P("<div> </div>"),rs=P('<label class="relative w-full gap-2 column-left"><select></select> <!> <!></label>');function ns(e,t){oe(t,!0);let r=S(t,"value",15),n=S(t,"hasError",3,!1),o=S(t,"placeholder",3,""),a=S(t,"compact",3,!1),l=We(t,["$$slots","$$events","$$legacy","value","class","hasError","options","placeholder","compact"]);var i=rs(),s=A(i);let c;jt(s,21,()=>t.options,({value:f,label:g})=>f,(f,g)=>{let p=()=>h(g).value,_=()=>h(g).label;var v=es(),b={},w=A(v);L(v),$(()=>{b!==(b=p())&&(v.value=(v.__value=p())==null?"":p()),Q(w,_())}),y(f,v)}),L(s);var d=E(s,2);B(d,a,f=>{var g=ts();$(()=>we(g,Y("pointer-events-none absolute left-4 right-4 top-1/2 line-clamp-1 -translate-y-1/2 text-base font-medium text-gray-400 transition-[transform,font-size] peer-focus:-translate-y-[calc(50%+theme(space.3))] peer-focus:text-xs",r()!==void 0&&r()&&"-translate-y-[calc(50%+theme(space.3))] text-xs sm:text-xs")));var p=A(g);L(g),$(()=>Q(p,o())),y(f,g)});var m=E(d,2);Ht(m,{class:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-xs text-gray-300 peer-focus-visible:text-gray-400 sm:text-xs",name:"chevron-down"}),L(i),$(()=>c=bt(s,c,{class:Y("peer w-full appearance-none rounded-md border border-gray-200 bg-white p-4 text-base leading-snug text-gray-800 outline-0 transition-colors duration-150 placeholder:text-gray-400 focus:border-gray-300 disabled:opacity-[20%]",n()&&"border-red focus-visible:border-red",a()&&"pb-2 pt-6 placeholder:text-transparent",t.class),...l})),yi(s,r),y(e,i),ae()}function os(e){return!!e.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)}const as=()=>/Chrome/.test(navigator==null?void 0:navigator.userAgent)&&!/Edge|OPR/.test(navigator==null?void 0:navigator.userAgent),is=()=>window==null?void 0:window.ApplePaySession;var De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zo={},fn={},mn={},hn={};Object.defineProperty(hn,"__esModule",{value:!0});function ss(e,t){if(!e)throw new Error(t)}hn.default=ss;var cs=De&&De.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mn,"__esModule",{value:!0});const zr=cs(hn);function us(e){zr.default(Array.isArray(e.domains),"domains must be an array"),zr.default(Array.isArray(e.topLevelDomains),"topLevelDomains must be an array"),zr.default(Array.isArray(e.secondLevelDomains),"secondLevelDomains must be an array"),zr.default(typeof e.distanceFunction=="function","distanceFunction must be a function")}mn.default=us;var gn={},vn={};Object.defineProperty(vn,"__esModule",{value:!0});function ds(e){return encodeURI(e).replace(/%20/g," ").replace(/%25/g,"%").replace(/%5E/g,"^").replace(/%60/g,"`").replace(/%7B/g,"{").replace(/%7C/g,"|").replace(/%7D/g,"}")}vn.default=ds;var pn={};Object.defineProperty(pn,"__esModule",{value:!0});function fs(e){const{domain:t,domains:r,distanceFunction:n,threshold:o}=e;let a,l=1/0,i=null;if(!(!t||!r)){for(let s=0;s<r.length;s++){if(t===r[s])return t;a=n(t,r[s]),a<l&&(l=a,i=r[s])}if(l<=o&&i!==null)return i}}pn.default=fs;var _n={},wn={};Object.defineProperty(wn,"__esModule",{value:!0});const ms=/\s/;function hs(e){return e.trim?e.trim():vs(gs(e))}function gs(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")}function vs(e){if(e.trimRight)return e.trimRight();let t=e.length;for(;ms.test(e.charAt(--t)););return e.slice(0,t+1)}wn.default=hs;var ps=De&&De.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_n,"__esModule",{value:!0});const _s=ps(wn),ws=2;function bs(e){const r=_s.default(e).split("@");if(r.length<ws)return!1;for(let i=0;i<r.length;i++)if(r[i]==="")return!1;let n="",o="";const a=r.pop(),l=a.split(".");if(l.length===0)return!1;if(l.length==1)o=l[0];else{n=l[0];for(let i=1;i<l.length;i++)o+=l[i]+".";o=o.substring(0,o.length-1)}return{topLevelDomain:o,secondLevelDomain:n,domain:a,address:r.join("@")}}_n.default=bs;var bn=De&&De.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gn,"__esModule",{value:!0});const ys=bn(vn),yn=bn(pn),xs=bn(_n);function ks(e){const t=ys.default(e.email.toLowerCase()),r=xs.default(t);if(!r)return;const{domains:n,domainThreshold:o,distanceFunction:a,secondLevelDomains:l,topLevelDomains:i}=e;if(l&&i&&l.indexOf(r.secondLevelDomain)!==-1&&i.indexOf(r.topLevelDomain)!==-1)return;let s=yn.default({domain:r.domain,domains:n,distanceFunction:a,threshold:o});if(s)return s==r.domain?void 0:{address:r.address,domain:s,full:r.address+"@"+s};const c=yn.default({domain:r.secondLevelDomain,domains:l,distanceFunction:a,threshold:e.secondLevelThreshold}),u=yn.default({domain:r.topLevelDomain,domains:i,distanceFunction:a,threshold:e.topLevelThreshold});if(r.domain){s=r.domain;let d=!1;if(c&&c!=r.secondLevelDomain&&(s=s.replace(r.secondLevelDomain,c),d=!0),u&&u!=r.topLevelDomain&&r.secondLevelDomain!==""&&(s=s.replace(new RegExp(r.topLevelDomain+"$"),u),d=!0),d)return{address:r.address,domain:s,full:r.address+"@"+s}}}gn.default=ks;var xn={},et={},kn={};Object.defineProperty(kn,"__esModule",{value:!0});function Cs(e,t){if(e==null||e.length===0)return t==null||t.length===0?0:t.length;if(t==null||t.length===0)return e.length;let r=0,n=0,o=0,a=0;const l=5;for(;r+n<e.length&&r+o<t.length;){if(e.charAt(r+n)==t.charAt(r+o))a++;else{n=0,o=0;for(let i=0;i<l;i++){if(r+i<e.length&&e.charAt(r+i)==t.charAt(r)){n=i;break}if(r+i<t.length&&e.charAt(r)==t.charAt(r+i)){o=i;break}}}r++}return(e.length+t.length)/2-a}kn.default=Cs;var $s=De&&De.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(et,"__esModule",{value:!0}),et.POPULAR_TLDS=et.POPULAR_DOMAINS=et.DEFAULT_CONFIG=void 0;const Es=$s(kn),Ko=["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","optonline.net","sbcglobal.net","aol.com","aim.com","me.com","mailw.com","btinternet.com","charter.net","shaw.ca","hey.com","proton.me","pm.com","protonmail.com","zoho.com","yandex.com","titan.email"];et.POPULAR_DOMAINS=Ko;const Jo=["com","com.au","com.tw","co","ca","co.nz","co.uk","de","fr","it","ru","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","net","net.au","info","biz","mil","co.jp","sg","hu","uk","sk","ar","cf","cl","cn","ga","gq","ir","ml","mx","nu","nz","ph","pl","ro","tk","tw","ua","vg","ws","xn","za","app","au","ai","biz","br","blog","cloud","club","cc","de","dev","digital","fi","finance","id","in","io","me","mobi","network","pw","so","xyz","software","to","tech"];et.POPULAR_TLDS=Jo;const Ls={domainThreshold:2,domains:Ko,secondLevelThreshold:2,secondLevelDomains:["yahoo","hotmail","mail","live","outlook"],topLevelThreshold:2,topLevelDomains:Jo,distanceFunction:Es.default};et.DEFAULT_CONFIG=Ls,Object.defineProperty(xn,"__esModule",{value:!0});const yt=et;function As(e){return{email:e.email,domains:e.domains||yt.DEFAULT_CONFIG.domains,topLevelDomains:e.topLevelDomains||yt.DEFAULT_CONFIG.topLevelDomains,secondLevelDomains:e.secondLevelDomains||yt.DEFAULT_CONFIG.secondLevelDomains,distanceFunction:e.distanceFunction||yt.DEFAULT_CONFIG.distanceFunction,domainThreshold:e.domainThreshold||yt.DEFAULT_CONFIG.domainThreshold,secondLevelThreshold:e.secondLevelThreshold||yt.DEFAULT_CONFIG.secondLevelThreshold,topLevelThreshold:e.topLevelThreshold||yt.DEFAULT_CONFIG.topLevelThreshold,suggested:e.suggested||void 0,empty:e.suggested||void 0}}xn.default=As;var Cn=De&&De.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fn,"__esModule",{value:!0});const Ss=Cn(mn),Ps=Cn(gn),Ms=Cn(xn);function Ts(e){const t=Ms.default(e);Ss.default(t||{});const r=Ps.default(t);return!r&&e.empty&&e.empty(),r&&e.suggested&&e.suggested(r),r}fn.default=Ts,function(e){var t=De&&De.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.POPULAR_TLDS=e.POPULAR_DOMAINS=e.run=void 0;const r=t(fn);e.run=r.default;const n=et;Object.defineProperty(e,"POPULAR_DOMAINS",{enumerable:!0,get:function(){return n.POPULAR_DOMAINS}}),Object.defineProperty(e,"POPULAR_TLDS",{enumerable:!0,get:function(){return n.POPULAR_TLDS}});const o={run:r.default,POPULAR_DOMAINS:n.POPULAR_DOMAINS,POPULAR_TLDS:n.POPULAR_TLDS};e.default=o}(Zo);const zs=ls(Zo);var Rs=P('<div><div class="overflow-hidden"><!></div></div>');function Is(e,t){oe(t,!0);let r=S(t,"isOpen",3,!1);var n=Rs();$(()=>we(n,Y("grid transition-[grid-template-rows] duration-200 ease-out grid-rows-[0fr]",r()&&"grid-rows-[1fr]")));var o=A(n),a=A(o);_t(a,Ar(t),{},null),L(o),L(n),y(e,n),ae()}var Ns=P('<!> <div> <span class="text-primary"> </span>?</div>',1),Os=P('<!> <div class="text-center whitespace-nowrap"> </div>',1),Ds=P("<!> <!> <!> <!> <!> <!>",1),js=P('<div class="gap-1 hidden @xl:row-left"><!> <!> <!></div>'),qs=P("<!> <!>",1),Bs=P('<form class="contents"><!> <div class="grid grid-cols-2 w-full gap-2 auto-rows-fr"></div> <!></form> <!>',1);function Fs(e,t){oe(t,!0);const r="https://checkout3.sesamy.com",n=Zl(t.checkout.language);let o=Ce(""),a=Ce(""),l=Ce(""),i=Ce(""),s=Ce(de(t.checkout.country||"SE")),c=Ce(!1),u=Ce(void 0),d=Ce(void 0),m=Ce(""),f;const g=()=>{var D,C,U,Z,H,K,re,pe,me,he,ce,Pe,q,ee,J,ie,$e,Ze;const M=[];os(h(o))||M.push(["email","invalid_email"]),(U=(C=(D=t.checkout)==null?void 0:D.settings)==null?void 0:C.phone)!=null&&U.enabled&&((K=(H=(Z=t.checkout)==null?void 0:Z.settings)==null?void 0:H.phone)!=null&&K.required)&&!h(i)&&M.push(["phoneNumber","phone_number_required"]),(me=(pe=(re=t.checkout)==null?void 0:re.settings)==null?void 0:pe.name)!=null&&me.enabled&&((Pe=(ce=(he=t.checkout)==null?void 0:he.settings)==null?void 0:ce.name)!=null&&Pe.required)&&!h(a)&&M.push(["firstName","first_name_required"]),(J=(ee=(q=t.checkout)==null?void 0:q.settings)==null?void 0:ee.name)!=null&&J.enabled&&((Ze=($e=(ie=t.checkout)==null?void 0:ie.settings)==null?void 0:$e.name)!=null&&Ze.required)&&!h(l)&&M.push(["lastName","last_name_required"]),N(u,de(M.length?M.reduce((rt,[xt,ue])=>({...rt,[xt]:ue}),{}):void 0))},p=M=>N(d,de(M)),_=()=>{N(u,void 0),clearTimeout(f),f=setTimeout(()=>{var M;N(m,de(((M=zs.run({email:h(o)}))==null?void 0:M.full)||""))},400)},v=async M=>{var D;if(M.preventDefault(),g(),!h(u)&&h(d)){N(c,!0);try{await t.api.checkouts.update(t.checkout.id,{paymentData:{provider:h(d).provider,method:h(d).method},email:h(o)});const C=new URL(r);C.pathname=t.checkout.id,C.searchParams.set("norecreate","true"),C.searchParams.set("lang",t.checkout.language),C.searchParams.set("redirect-url",t.checkout.redirectUrl),window.location.href=C.href;return}catch(C){(D=C==null?void 0:C.message)!=null&&D.includes("User already owns item")?N(u,de({general:"user_already_owns_item"})):(console.error(C),N(u,de({general:"something_went_wrong"}))),N(c,!1);return}}},b=t.checkout.availablePaymentMethods.filter(({provider:M})=>!["DUMMY","SESAMY","BILLOGRAM"].includes(M)).reduce((M,{provider:D,methods:C})=>[...M,...C!=null&&C.length?C.map(U=>({provider:D,method:U,icon:U.toLocaleLowerCase()})):[]],[]);as()&&b.push({provider:"STRIPE",method:"GOOGLE-PAY",icon:"google-pay"}),is()&&b.push({provider:"STRIPE",method:"APPLE-PAY",icon:"apple-pay"}),b.length&&p(b[0]);var w=Bs(),x=I(w),k=A(x);Ql(k,{children:(M,D)=>{var C=Ds(),U=I(C),Z=G(()=>t.t("email")),H=G(()=>{var q;return(q=h(u))==null?void 0:q.email});Tr(U,{onkeyup:_,get value(){return h(o)},set value(q){N(o,de(q))},compact:!0,get placeholder(){return h(Z)},get hasError(){return h(H)}});var K=E(U,2),re=G(()=>!!h(m));Is(K,{get isOpen(){return h(re)},children:(q,ee)=>{Ye(q,{onclick:()=>{N(o,de(h(m))),N(m,"")},class:"bg-primary/10 gap-4 px-2 py-3 !justify-between active:bg-primary/10 text-sm border-x border-gray-200 text-gray-500 hover:cursor-pointer hover:bg-primary/15 transition-colors duration-75",children:(J,ie)=>{var $e=Os(),Ze=I($e);Ye(Ze,{class:"gap-2",children:(ue,ye)=>{var xe=Ns(),Ee=I(xe);Ht(Ee,{class:"text-primary text-xl",name:"info"});var qe=E(Ee,2),Ie=A(qe);$(()=>Q(Ie,`${t.t("did_you_mean")??""} `));var Gt=E(Ie),Rr=A(Gt);L(Gt),Oe(),L(qe),$(()=>Q(Rr,h(m))),y(ue,xe)},$$slots:{default:!0}});var rt=E(Ze,2),xt=A(rt);$(()=>Q(xt,t.t("click_to_update"))),L(rt),y(J,$e)},$$slots:{default:!0}})},$$slots:{default:!0}});var pe=E(K,2),me=G(()=>t.t("country"));ns(pe,{options:n,get value(){return h(s)},set value(q){N(s,de(q))},compact:!0,get placeholder(){return h(me)}});var he=E(pe,2);B(he,()=>{var q,ee,J;return(J=(ee=(q=t.checkout)==null?void 0:q.settings)==null?void 0:ee.phone)==null?void 0:J.enabled},q=>{var ee=G(()=>t.t("phone_number")),J=G(()=>{var ie;return(ie=h(u))==null?void 0:ie.phoneNumber});Tr(q,{onkeyup:()=>N(u,void 0),get value(){return h(i)},set value(ie){N(i,de(ie))},compact:!0,get placeholder(){return h(ee)},get hasError(){return h(J)}})});var ce=E(he,2);B(ce,()=>{var q,ee,J;return(J=(ee=(q=t.checkout)==null?void 0:q.settings)==null?void 0:ee.name)==null?void 0:J.enabled},q=>{var ee=G(()=>t.t("first_name")),J=G(()=>{var ie;return(ie=h(u))==null?void 0:ie.firstName});Tr(q,{onkeyup:()=>N(u,void 0),get value(){return h(a)},set value(ie){N(a,de(ie))},compact:!0,get placeholder(){return h(ee)},get hasError(){return h(J)}})});var Pe=E(ce,2);B(Pe,()=>{var q,ee,J;return(J=(ee=(q=t.checkout)==null?void 0:q.settings)==null?void 0:ee.name)==null?void 0:J.enabled},q=>{var ee=G(()=>t.t("last_name")),J=G(()=>{var ie;return(ie=h(u))==null?void 0:ie.lastName});Tr(q,{onkeyup:()=>N(u,void 0),get value(){return h(l)},set value(ie){N(l,de(ie))},compact:!0,get placeholder(){return h(ee)},get hasError(){return h(J)}})}),y(M,C)},$$slots:{default:!0}});var T=E(k,2);jt(T,23,()=>b,M=>`${M.provider}-${M.method}`,(M,D,C)=>{const U=G(()=>{const{provider:Z,method:H,icon:K}=h(D);return{provider:Z,method:H,icon:K}});un(M,{children:(Z,H)=>{var K=G(()=>!h(C)),re=G(()=>`${h(U).provider}-${h(U).method}`);dn(Z,{get checked(){return h(K)},get id(){return h(re)},name:"payment-method",onchange:()=>p(h(D)),children:(pe,me)=>{var he=qs(),ce=I(he);Ye(ce,{class:"w-16",left:!0,children:(q,ee)=>{Ht(q,{class:"text-3xl",multiColor:!0,get name(){return h(U).icon}})},$$slots:{default:!0}});var Pe=E(ce,2);B(Pe,()=>h(U).method&&["CARD","GOOGLE-PAY","APPLE-PAY"].includes(h(U).method),q=>{var ee=js(),J=A(ee);Pr(J,{size:"sm",name:"visa"});var ie=E(J,2);Pr(ie,{size:"sm",name:"amex"});var $e=E(ie,2);Pr($e,{size:"sm",name:"mastercard"}),L(ee),y(q,ee)}),y(pe,he)},$$slots:{default:!0}})},$$slots:{default:!0}})}),L(T);var F=E(T,2);Mr(F,{get loading(){return h(c)},get disabled(){return h(c)},class:"mt-2 w-full shadow-md",type:"submit",children:(M,D)=>{Oe();var C=It();$(()=>Q(C,t.t("pay_now"))),y(M,C)},$$slots:{default:!0}}),L(x);var te=E(x,2);B(te,()=>h(u),M=>{Qe(M,{left:!0,children:(D,C)=>{var U=fe(),Z=I(U);jt(Z,17,()=>Object.values(h(u)),$r,(H,K)=>{var re=G(()=>t.t(h(K)));Yo(H,{get text(){return h(re)}})}),y(D,U)},$$slots:{default:!0}})}),go("submit",x,v),y(e,w),ae()}function Us(e,t){oe(t,!0);const r=async a=>{try{return await a.auth.isAuthenticated()}catch(l){console.error("Error checking login status:",l)}};var n=fe(),o=I(n);Ot(o,()=>r(t.api),null,(a,l)=>{var i=fe(),s=I(i);B(s,()=>!h(l),c=>{var u=fe(),d=I(u);wt(d,()=>t.children),y(c,u)}),y(a,i)}),y(e,n),ae()}var Hs=P("<div> </div> <sesamy-login-beta></sesamy-login-beta>",3),Gs=P('<!> <div class="w-full h-px from-transparent bg-gradient-to-r to-transparent via-primary/30"></div>',1),Vs=P('<img class="h-7 mb-6">'),Ws=P('<form class="contents"><!> <!> <!></form>'),Ys=P("<!> ",1),Zs=P('<!> <div><!> <div class="text-2xl leading-tight @md:text-3xl font-bold max-w-[600px]"></div></div> <!> <!> <!> <div class="column gap-4 @md:row !justify-between w-full mt-4 @md:mt-8"><!> <!></div>',1),Ks=P('<div class="@container"><!></div> <!>',1);function Js(e,t){oe(t,!0);let r=S(t,"horizontal",3,!1),n=We(t,["$$slots","$$events","$$legacy","api","t","horizontal","paywall"]),o=Ce(void 0),a=Ce(void 0),l=Ce(!1),i=Ce(""),{subscriptions:s,singlePurchase:c,headline:u,currency:d,mainColor:m,showLoginButton:f,features:g,footerPaymentMethods:p,logoUrl:_,vendorId:v,settings:{useDefaultLogo:b,styling:w}}=t.paywall;const x=async H=>{var re;if(N(i,""),H.preventDefault(),!h(o))return;N(l,!0);const K=(re=h(o))!=null&&re.url?{url:h(o).url}:{sku:h(o).sku,purchaseOptionId:h(o).poId};try{N(a,de(await t.api.checkouts.create({vendorId:v,items:[K],discountCode:h(o).discountCode,redirectUrl:(n==null?void 0:n["redirect-url"])||window.location.href,price:h(o).price,currency:d,attribution:{utmSource:n==null?void 0:n["utm-source"],utmMedium:n==null?void 0:n["utm-medium"],utmCampaign:n==null?void 0:n["utm-campaign"],utmTerm:n==null?void 0:n["utm-term"],utmContent:n==null?void 0:n["utm-content"],source:"PAYWALL",sourceId:t.paywall.id}})))}catch(pe){console.error(pe),N(i,de(t.t("something_went_wrong"))),N(l,!1);return}},k=H=>{N(i,""),N(o,de({...H,features:(H==null?void 0:H.features)||g}))},T=s.length>0;if(T){const H=s.find(({selected:K})=>K);H?k(H):(s[0].selected=!0,k(s[0]))}const R=cn((w==null?void 0:w.backgroundColor)||"#FFFFFF");let te="<style>"+`
|
|
12
|
+
`,Xe=Fe()?"<style>"+libstyles+We+"</style>":"";var Je=root$g(),Ze=first_child(Je);await_block(Ze,()=>Ge,null,(et,tt)=>{var rt=comment(),nt=first_child(rt);slot(nt,De,"default",{get api(){return get$1(tt)},t:Ke},null),append$1(et,rt)},(et,tt)=>{var rt=root_2$6(),nt=child(rt,!0);reset(rt),template_effect(()=>set_text(nt,get$1(tt).message)),append$1(et,rt)});var Ye=sibling(Ze,2);html$3(Ye,()=>Xe,!1,!1),append$1($e,Je),pop$1()}var root$f=template("<div><!></div>");function Row($e,De){push$6(De,!0);let Fe=rest_props(De,["$$slots","$$events","$$legacy","up","right","down","left","style","class","children"]);var He=root$f();let Be;var Ge=child(He);snippet(Ge,()=>De.children),reset(He),template_effect(()=>Be=set_attributes(He,Be,{class:twMerge(!De.up&&!De.right&&!De.down&&!De.left&&"row",De.up&&!De.right&&!De.down&&!De.left&&"row-up",!De.up&&De.right&&!De.down&&!De.left&&"row-right",!De.up&&!De.right&&De.down&&!De.left&&"row-down",!De.up&&!De.right&&!De.down&&De.left&&"row-left",De.up&&De.right&&!De.down&&!De.left&&"row-up-right",De.up&&!De.right&&!De.down&&De.left&&"row-up-left",!De.up&&De.right&&De.down&&!De.left&&"row-down-right",!De.up&&!De.right&&De.down&&De.left&&"row-down-left",De.class),style:De.style,...Fe})),append$1($e,He),pop$1()}var on_keydown=($e,De)=>$e.key==="Enter"&&De(),root_3$4=template('<div class="absolute left-[50%] -translate-x-[50%] top-[50%] -translate-y-[50%]"><svg viewBox="0 0 125 125" xmlns="http://www.w3.org/2000/svg"><path d="M0 62.5C0 28 28 0 62.5 0v18.8c-24.2 0-43.8 19.6-43.8 43.8H0z" style="fill:white;"></path></svg></div>'),root_5$1=template('<img class="w-full h-full object-cover">'),root_2$5=template('<button type="button"><!></button>');function Avatar_wc($e,De){push$6(De,!1);let Fe=prop(De,"src",12,""),He=prop(De,"alt",12,"Avatar"),Be=prop(De,"size",12,"md"),Ge=prop(De,"loading",12,!1),Ke=prop(De,"onclick",12,()=>{});return init$5(),Base($e,{children:(We,Xe)=>{Row(We,{class:"relative inline-block",children:(Je,Ze)=>{var Ye=root_2$5();const Qe=derived_safe_equal(()=>twMerge("relative inline-block rounded-full overflow-hidden bg-purple-500",Be()==="sm"&&"w-8 h-8",Be()==="md"&&"w-12 h-12",Be()==="lg"&&"w-16 h-16"));Ye.__click=function(...nt){var at;(at=Ke())==null||at.apply(this,nt)},Ye.__keydown=[on_keydown,Ke];var et=child(Ye);{var tt=nt=>{var at=root_3$4(),st=child(at);const ct=derived_safe_equal(()=>twMerge("animate-spin",Be()==="sm"&&"w-7 h-7",Be()==="md"&&"w-10 h-10",Be()==="lg"&&"w-14 h-14"));reset(at),template_effect(()=>set_svg_class(st,get$1(ct))),append$1(nt,at)},rt=nt=>{var at=comment(),st=first_child(at);{var ct=lt=>{var dt=root_5$1();template_effect(()=>{set_attribute(dt,"src",Fe()),set_attribute(dt,"alt",He())}),append$1(lt,dt)},ot=lt=>{Row(lt,{class:"absolute top-0 left-0 w-full h-full text-white",children:(dt,mt)=>{next();var gt=text();template_effect(()=>set_text(gt,He().charAt(0).toUpperCase())),append$1(dt,gt)},$$slots:{default:!0}})};if_block(st,lt=>{Fe()?lt(ct):lt(ot,!1)},!0)}append$1(nt,at)};if_block(et,nt=>{Ge()?nt(tt):nt(rt,!1)})}reset(Ye),template_effect(()=>{set_class(Ye,get$1(Qe)),set_attribute(Ye,"aria-label",He())}),append$1(Je,Ye)},$$slots:{default:!0}})},$$slots:{default:!0}}),pop$1({get src(){return Fe()},set src(We){Fe(We),flush_sync()},get alt(){return He()},set alt(We){He(We),flush_sync()},get size(){return Be()},set size(We){Be(We),flush_sync()},get loading(){return Ge()},set loading(We){Ge(We),flush_sync()},get onclick(){return Ke()},set onclick(We){Ke(We),flush_sync()}})}delegate(["click","keydown"]),customElements.define("sesamy-avatar-beta",create_custom_element(Avatar_wc,{src:{},alt:{},size:{},loading:{},onclick:{}},[],[],!0));function Clickable($e,De){push$6(De,!0);let Fe=rest_props(De,["$$slots","$$events","$$legacy","href","onclick","class","disabled","part","children"]);var He=comment(),Be=first_child(He);element(Be,()=>De.href?"a":"button",!1,(Ge,Ke)=>{let We;template_effect(()=>We=set_attributes(Ge,We,{role:De.href?"link":"button",class:twMerge("border-0 bg-none outline-none",De.class),tabindex:"0",href:De.href,onclick:De.onclick,part:De.part,disabled:De.disabled,...Fe},void 0,Ge.namespaceURI===NAMESPACE_SVG,Ge.nodeName.includes("-")));var Xe=comment(),Je=first_child(Xe);snippet(Je,()=>De.children),append$1(Ke,Xe)}),append$1($e,He),pop$1()}var root_2$4=template('<span class="inline-block w-4 h-4 mr-2 border-2 border-current border-r-transparent rounded-full animate-spin" aria-hidden="true"></span>'),root_1$5=template("<!> <!>",1);function Button($e,De){push$6(De,!0);let Fe=prop(De,"loading",3,!1),He=prop(De,"variant",3,"primary"),Be=prop(De,"disabled",3,!1),Ge=prop(De,"size",3,"md"),Ke=rest_props(De,["$$slots","$$events","$$legacy","loading","variant","disabled","size","part","onclick","href","class"]);var We=derived(()=>twMerge("inline-flex ring-2 ring-transparent focus:ring-primary/25 active:enabled:translate-y-px border border-transparent items-center justify-center outline-none font-medium rounded-md transition-colors duration-200 ease-in-out",Ge()=="sm"&&"px-3 py-1.5 text-sm",Ge()=="md"&&"px-4 py-2 text-base",Ge()=="lg"&&"px-6 py-3 text-lg",He()==="primary"&&"bg-primary text-white enabled:hover:bg-primary/90",He()==="secondary"&&"bg-transparent border-primary text-primary enabled:hover:bg-primary/10",He()==="tertiary"&&"text-primary enabled:hover:bg-primary/10",Be()&&"opacity-50 cursor-not-allowed",De.class));Clickable($e,spread_props({get class(){return get$1(We)},get href(){return De.href},get onclick(){return De.onclick},get part(){return De.part},get disabled(){return Be()}},()=>Ke,{children:(Xe,Je)=>{var Ze=root_1$5(),Ye=first_child(Ze);{var Qe=tt=>{var rt=root_2$4();append$1(tt,rt)};if_block(Ye,tt=>{Fe()&&tt(Qe)})}var et=sibling(Ye,2);slot(et,De,"default",{},null),append$1(Xe,Ze)},$$slots:{default:!0}})),pop$1()}function Login_wc($e,De){push$6(De,!0);let Fe=prop(De,"loading",7),He=prop(De,"loggedIn",7),Be=prop(De,"userAvatar",7),Ge=prop(De,"button-text",7),Ke=prop(De,"class",7,""),We=state(!1);const Xe=async Ye=>{set$2(We,!0);try{await Ye.auth.loginWithRedirect()}catch(Qe){set$2(We,!1),console.error("Login failed:",Qe)}},Je=async Ye=>{Fe(!0);try{await Ye.auth.logout(),He(!1)}catch(Qe){console.error("Logout failed:",Qe)}},Ze=async Ye=>{try{if(He(await Ye.auth.isAuthenticated()),He()){const Qe=await Ye.auth.getUser();Be((Qe==null?void 0:Qe.picture)||"")}}catch(Qe){console.error("Error checking login status:",Qe)}};return Base($e,{children:invalid_default_snippet,$$slots:{default:(Ye,Qe)=>{const et=derived(()=>Qe.api),tt=derived(()=>Qe.t);var rt=comment(),nt=first_child(rt);await_block(nt,()=>Ze(get$1(et)),at=>{Avatar_wc(at,{loading:!0,size:"sm"})},(at,st)=>{var ct=comment(),ot=first_child(ct);{var lt=mt=>{Avatar_wc(mt,{get loading(){return Fe()},onclick:()=>Je(get$1(et)),size:"sm"})},dt=mt=>{var gt=comment(),wt=first_child(gt);{var St=ht=>{Avatar_wc(ht,{get loading(){return Fe()},onclick:()=>Je(get$1(et)),size:"sm"})},bt=ht=>{Button(ht,{get class(){return Ke()},variant:"secondary",get disabled(){return get$1(We)},onclick:()=>Xe(get$1(et)),size:"sm",children:(yt,$t)=>{next();var vt=text();template_effect(()=>set_text(vt,Ge()||get$1(tt)("login"))),append$1(yt,vt)},$$slots:{default:!0}})};if_block(wt,ht=>{He()?ht(St):ht(bt,!1)},!0)}append$1(mt,gt)};if_block(ot,mt=>{Fe()?mt(lt):mt(dt,!1)})}append$1(at,ct)}),append$1(Ye,rt)}}}),pop$1({get loading(){return Fe()},set loading(Ye){Fe(Ye),flush_sync()},get loggedIn(){return He()},set loggedIn(Ye){He(Ye),flush_sync()},get userAvatar(){return Be()},set userAvatar(Ye){Be(Ye),flush_sync()},get"button-text"(){return Ge()},set"button-text"(Ye){Ge(Ye),flush_sync()},get class(){return Ke()},set class(Ye=""){Ke(Ye),flush_sync()}})}customElements.define("sesamy-login-beta",create_custom_element(Login_wc,{loading:{},loggedIn:{},userAvatar:{},"button-text":{},class:{}},[],[],!0));var root$e=template("<div><!></div>");function Column($e,De){push$6(De,!0);let Fe=rest_props(De,["$$slots","$$events","$$legacy","up","right","down","left","style","class","children"]);var He=root$e();let Be;var Ge=child(He);snippet(Ge,()=>De.children),reset(He),template_effect(()=>Be=set_attributes(He,Be,{class:twMerge(!De.up&&!De.right&&!De.down&&!De.left&&"column",De.up&&!De.right&&!De.down&&!De.left&&"column-up",!De.up&&De.right&&!De.down&&!De.left&&"column-right",!De.up&&!De.right&&De.down&&!De.left&&"column-down",!De.up&&!De.right&&!De.down&&De.left&&"column-left",De.up&&De.right&&!De.down&&!De.left&&"column-up-right",De.up&&!De.right&&!De.down&&De.left&&"column-up-left",!De.up&&De.right&&De.down&&!De.left&&"column-down-right",!De.up&&!De.right&&De.down&&De.left&&"column-down-left",De.class),style:De.style,...Fe})),append$1($e,He),pop$1()}const amex={elements:['<path d="M79 0 0 174.8h94.6l11.7-27.9h26.8l11.7 27.9h104.1v-21.3l9.3 21.3H312l9.3-21.7v21.7h216.5l26.3-27.2 24.7 27.2 111.2.2-79.3-87.1L700 0H590.5l-25.6 26.6L541 0H305.5l-20.2 45.1L264.6 0h-94.4v20.6L159.7 0zm18.3 24.8h46.1l52.4 118.6V24.8h50.5l40.5 85 37.3-85h50.2v125.4h-30.6l-.2-98.3-44.6 98.3h-27.4l-44.8-98.3v98.3h-62.9l-11.9-28.1H87.5l-11.9 28.1H41.9zm305 0h124.3l38 41.1 39.3-41.1h38l-57.8 63.1 57.8 62.3h-39.7l-38-41.6-39.5 41.6H402.3zM119.7 46.1 98.5 96.2h42.4zM433 50.8v22.9h67.8v25.5H433v25h76.1l35.3-36.8-33.8-36.6z"/ style="fill: var(--amex-fill-color-0, currentColor);"/>'],fills:["#fff"],strokes:[null],viewBoxWidth:700,viewBoxHeight:175.1,widthRatio:3.9977155910908055,heightRatio:1},billogram={elements:['<path d="M13.5 0h-12C.7 0 0 .8 0 1.8v14.9c0 .6.7.9 1.1.6L3 15.9l1.6 1.4c.2.2.6.2.8 0l2-1.4 1.8 1.4c.2.2.6.2.8 0l1.8-1.4 2 1.4c.5.3 1.1 0 1.1-.6V1.8c.1-1-.6-1.8-1.4-1.8m-1.8 10.4H3.3c-.6 0-1-.4-1-1s.4-1 1-1h8.4c.5 0 1 .5 1 1s-.5 1-1 1m0-4.8H3.3c-.6 0-1-.5-1-1s.4-1 1-1h8.4c.5 0 1 .5 1 1s-.5 1-1 1" style="fill: var(--billogram-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:15,viewBoxHeight:17.4,widthRatio:1,heightRatio:1.16},card={elements:['<path d="M3.3 0h19.5C24.6 0 26 1.5 26 3.3v.4c0 .4-.3.7-.7.7H.7c-.4 0-.7-.3-.7-.7v-.4C0 1.5 1.5 0 3.3 0" style="fill: var(--card-fill-color-0, currentColor);"/>','<path d="M25.3 7.2H.7c-.4 0-.7.3-.7.7v7.8C0 17.5 1.5 19 3.2 19h19.5c1.8 0 3.2-1.5 3.2-3.3V7.9c0-.4-.3-.7-.7-.7ZM9.8 12.9H5.7c-.8 0-1.4-.6-1.4-1.4s.6-1.4 1.4-1.4h4.1c.8 0 1.4.6 1.4 1.4s-.6 1.4-1.4 1.4" style="fill: var(--card-fill-color-1, currentColor);"/>'],fills:["#000","#000"],strokes:[null,null],viewBoxWidth:26,viewBoxHeight:19,widthRatio:1.368421052631579,heightRatio:1},checkmark={elements:['<path d="M.7 2.2 2.4 4l4-4 .7.7-4.7 4.8L0 2.9z"/ style="fill: var(--checkmark-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:7.1,viewBoxHeight:5.5,widthRatio:1.2909090909090908,heightRatio:1},info={elements:['<path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16m-1-8a1 1 0 1 0 2 0V6a1 1 0 1 0-2 0zm0 3.5a1 1 0 1 0 2 0 1 1 0 0 0-2 0" clip-rule="evenodd"/ style="fill: var(--info-fill-color-0, currentColor);"/>'],fills:["#FF662F"],strokes:[null],viewBoxWidth:20,viewBoxHeight:20,widthRatio:1,heightRatio:1},klarna={elements:['<path d="M3.1 13.9H0V0h3.1zM10.9 0h-3c0 2.6-1.1 4.9-3.1 6.5l-1.2.9L8.3 14h3.8L7.8 8C9.8 5.9 11 3.1 11 .1Zm4.9 13.9h-2.9V0h2.9zm8.9-9.6v.6c-.8-.6-1.8-.9-2.8-.9C19.2 4 17 6.3 17 9.1s2.2 5.1 4.9 5.1 2-.3 2.8-.9v.6h2.8V4.3zm0 4.8c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5m29.7-4.2v-.6h2.8v9.6h-2.8v-.6c-.8.6-1.8.9-2.8.9-2.7 0-4.9-2.3-4.9-5.1S48.9 4 51.6 4s2 .3 2.8.9m-2.6 6.7c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5M41.6 4c-1.1 0-2.2.4-2.9 1.3V4.2h-2.8v9.6h2.8V8.7c0-1.5 1-2.2 2.1-2.2s1.9.8 1.9 2.2v5.1h2.8V7.7c0-2.2-1.7-3.8-4-3.8Zm-9.7.3v1.3c.6-.8 1.6-1.3 2.8-1.3v2.8c-1.1 0-2.7.8-2.7 2.3v4.5h-2.9V4.3H32Zm26.5 8c0-1 .8-1.8 1.8-1.8s1.8.8 1.8 1.8-.8 1.8-1.8 1.8-1.8-.8-1.8-1.8" style="fill: var(--klarna-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:61.9,viewBoxHeight:14.2,widthRatio:4.359154929577465,heightRatio:1},lock={elements:['<path d="M8.7 4.5v-.7C8.7 1.7 7 0 5 0S1.2 1.7 1.2 3.9v.7C.5 4.6 0 5.2 0 5.9v6.4c0 .7.6 1.3 1.2 1.3h7.4c.7 0 1.2-.6 1.2-1.3V5.9c0-.7-.6-1.3-1.2-1.3ZM5.6 9.7c0 .4-.3.7-.7.7s-.7-.3-.7-.7V8c0-.4.3-.7.7-.7s.7.3.7.7zm1.8-5.2H2.5v-.7c0-1.5 1.1-2.6 2.5-2.6s2.5 1.1 2.5 2.6v.7Z" style="fill: var(--lock-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:9.9,viewBoxHeight:13.5,widthRatio:.7333333333333334,heightRatio:1},mastercard={elements:['<path d="M303.1 57h256.7v419.3H303.1z"/ style="fill: var(--mastercard-fill-color-0, currentColor);"/>','<path d="M329.5 266.7c0-81.8 37.5-159.1 101.8-209.6C315.6-33.9 148-13.8 57 102s-70.9 283.4 44.9 374.4c96.7 76 232.8 76 329.5 0-64.4-50.5-101.9-127.8-101.8-209.7Z"/ style="fill: var(--mastercard-fill-color-1, currentColor);"/>','<path d="M862.8 266.7c0 147.2-119.4 266.6-266.6 266.6-59.8 0-117.8-20.1-164.8-57 115.8-91 135.9-258.6 44.9-374.4-13.1-16.7-28.2-31.8-44.9-44.9 115.8-91 283.4-70.9 374.4 44.8 36.9 47 57 105 57 164.8Z"/ style="fill: var(--mastercard-fill-color-2, currentColor);"/>'],fills:["#ff5f00","#eb001b","#f79e1b"],strokes:[null,null,null],viewBoxWidth:862.8,viewBoxHeight:533.3,widthRatio:1.617851115694731,heightRatio:1},swish={elements:['<defs style="fill: var(--swish-fill-color-0, currentColor);"/>','<linearGradient id="a" x1="15.8" x2="10.8" y1="8.2" y2="18.1" gradientTransform="matrix(1 0 0 -1 0 25.4)" gradientUnits="userSpaceOnUse" style="fill: var(--swish-fill-color-1, currentColor);"/>','<stop offset="0" stop-color="#ef2131"/ style="fill: var(--swish-fill-color-2, currentColor);"/>','<stop offset="1" stop-color="#fecf2c"/ style="fill: var(--swish-fill-color-3, currentColor);"/>','</linearGradient style="fill: var(--swish-fill-color-4, currentColor);"/>','<linearGradient id="b" x1="20.3" x2="11.6" y1="16" y2="1" gradientTransform="matrix(1 0 0 -1 0 25.4)" gradientUnits="userSpaceOnUse" style="fill: var(--swish-fill-color-5, currentColor);"/>','<stop offset="0" stop-color="#fbc52c"/ style="fill: var(--swish-fill-color-6, currentColor);"/>','<stop offset=".3" stop-color="#f87130"/ style="fill: var(--swish-fill-color-7, currentColor);"/>','<stop offset=".6" stop-color="#ef52e2"/ style="fill: var(--swish-fill-color-8, currentColor);"/>','<stop offset="1" stop-color="#661eec"/ style="fill: var(--swish-fill-color-9, currentColor);"/>','</linearGradient style="fill: var(--swish-fill-color-10, currentColor);"/>','<linearGradient id="c" x1="7.7" x2="12.4" y1="19" y2="9.4" gradientTransform="matrix(1 0 0 -1 0 25.4)" gradientUnits="userSpaceOnUse" style="fill: var(--swish-fill-color-11, currentColor);"/>','<stop offset="0" stop-color="#78f6d8"/ style="fill: var(--swish-fill-color-12, currentColor);"/>','<stop offset=".3" stop-color="#77d1f6"/ style="fill: var(--swish-fill-color-13, currentColor);"/>','<stop offset=".6" stop-color="#70a4f3"/ style="fill: var(--swish-fill-color-14, currentColor);"/>','<stop offset="1" stop-color="#661eec"/ style="fill: var(--swish-fill-color-15, currentColor);"/>','</linearGradient style="fill: var(--swish-fill-color-16, currentColor);"/>','<linearGradient id="d" x1="3.1" x2="11.7" y1="11.5" y2="26.4" gradientTransform="matrix(1 0 0 -1 0 25.4)" gradientUnits="userSpaceOnUse" style="fill: var(--swish-fill-color-17, currentColor);"/>','<stop offset="0" stop-color="#536eed"/ style="fill: var(--swish-fill-color-18, currentColor);"/>','<stop offset=".2" stop-color="#54c3ec"/ style="fill: var(--swish-fill-color-19, currentColor);"/>','<stop offset=".6" stop-color="#64d769"/ style="fill: var(--swish-fill-color-20, currentColor);"/>','<stop offset="1" stop-color="#fecf2c"/ style="fill: var(--swish-fill-color-21, currentColor);"/>','</linearGradient style="fill: var(--swish-fill-color-22, currentColor);"/>','</defs style="fill: var(--swish-fill-color-23, currentColor);"/>','<path d="M72.8 6.5c0-.3 0-.5.1-.8 0-.2.2-.4.4-.6s.4-.3.6-.4.5-.2.7-.2.5 0 .7.2c.2 0 .4.2.6.4s.3.4.4.6c0 .2.1.5.1.8s0 .5-.1.8c0 .2-.2.4-.4.6s-.4.3-.6.4-.5.2-.7.2-.5 0-.7-.2c-.2 0-.4-.2-.6-.4s-.3-.4-.4-.6c0-.2-.1-.5-.1-.8m.4 0c0 .2 0 .4.1.6 0 .2.2.4.3.5s.3.3.5.3.4.1.6.1.4 0 .6-.1c.2 0 .3-.2.5-.3.1-.1.2-.3.3-.5 0-.2.1-.4.1-.6s0-.4-.1-.6c0-.2-.2-.4-.3-.5s-.3-.3-.5-.3-.4-.1-.6-.1-.4 0-.6.1c-.2 0-.3.2-.5.3-.1.1-.2.3-.3.5 0 .2-.1.4-.1.6m.8-.9c0-.1 0-.2.2-.2h.6c.2 0 .3 0 .5.2.1.1.2.3.2.4v.4l-.1.1h-.1l.3.5v.1h-.1s-.2 0-.2-.1l-.3-.6h-.3V7c0 .1 0 .2-.2.2-.1 0-.2 0-.2-.2V5.3Zm.7.8h.2V6h-.5v.7h.3ZM59.3 7.7c.6 0 1.1 0 1.5.2s.7.3 1 .4c.2.1.3.2.4.4v.6l-.2.3c-.1.2-.2.3-.4.4H61c-.2 0-.4-.2-.7-.3s-.6-.2-1-.2-.7 0-.9.2-.3.4-.3.7.1.4.3.6.5.3.8.4.7.2 1.1.4c.4.1.7.3 1.1.5.3.2.6.5.8.8s.3.7.3 1.3 0 .8-.2 1.1-.4.6-.7.9c-.3.2-.7.4-1.1.6-.4.1-.9.2-1.4.2s-1.3-.1-1.8-.3q-.75-.3-1.2-.6c-.2-.1-.3-.3-.3-.4 0-.2 0-.4.2-.6l.2-.3c.1-.2.3-.3.4-.3.2 0 .3 0 .6.1.2.1.5.3.8.4s.7.2 1.2.2.7 0 .9-.2.3-.4.3-.7-.1-.4-.3-.6c-.2-.1-.5-.3-.8-.4-.4-.1-.7-.3-1.1-.4s-.7-.3-1.1-.5c-.3-.2-.6-.5-.8-.8s-.3-.8-.3-1.3 0-.8.3-1.2c.2-.3.4-.6.7-.8s.7-.4 1.1-.5.9-.2 1.3-.2Zm-26.2 0c.6 0 1.1 0 1.5.2s.7.3 1 .4c.2.1.3.2.4.4s0 .4 0 .6l-.2.3c-.1.2-.2.3-.4.4h-.6c-.2 0-.4-.2-.7-.3s-.6-.2-1-.2-.7 0-.9.2-.3.4-.3.7.1.4.3.6.5.3.8.4.7.2 1.1.4c.4.1.7.3 1.1.5.3.2.6.5.8.8s.3.7.3 1.3 0 .8-.2 1.1-.4.6-.7.9c-.3.2-.7.4-1.1.6-.4.1-.9.2-1.4.2s-1.3-.1-1.8-.3q-.75-.3-1.2-.6c-.2-.1-.3-.3-.3-.4 0-.2 0-.4.2-.6l.2-.3c.1-.2.3-.3.4-.3.2 0 .3 0 .6.1.2.1.5.3.8.4s.7.2 1.2.2.7 0 .9-.2.3-.4.3-.7-.1-.4-.3-.6c-.2-.1-.5-.3-.8-.4s-.7-.3-1.1-.4-.7-.3-1.1-.5c-.3-.2-.6-.5-.8-.8s-.3-.8-.3-1.3 0-.8.3-1.2c.2-.3.4-.6.7-.8s.7-.4 1.1-.5.9-.2 1.3-.2Zm32.1-3.3c.5 0 .7.2.7.7v4.3c.1-.2.3-.4.4-.6.2-.2.4-.4.7-.6s.6-.3.9-.4.7-.2 1.1-.2c1 0 1.8.3 2.3.8s.8 1.4.8 2.6v5.1c0 .5-.2.7-.7.7h-.8c-.5 0-.7-.2-.7-.7v-4.6c0-.6 0-1-.3-1.3-.2-.3-.6-.5-1.1-.5s-.7 0-1.1.2c-.3.2-.6.4-.8.6-.2.3-.4.6-.5.9-.1.4-.2.8-.2 1.2V16c0 .5-.2.7-.7.7h-.8c-.5 0-.7-.2-.7-.7V5.1c0-.5.2-.7.7-.7zM53.5 7.9c.5 0 .7.2.7.7v7.5c0 .5-.2.7-.7.7h-.8c-.5 0-.7-.2-.7-.7V8.6c0-.5.2-.7.7-.7zm-15 0c.4 0 .7.2.8.7l1.4 5.3v1-1l1.5-5.3c0-.4.4-.6.8-.6h.7c.4 0 .7.2.8.6l1.5 5.3v1-1l1.4-5.3c.1-.4.4-.7.8-.7h.8c.3 0 .5 0 .6.2q.15.3 0 .6l-2.3 7.6c-.1.4-.4.6-.8.6h-1.2c-.4 0-.7-.2-.8-.6l-1.4-4.5v-1 1l-1.4 4.5c-.1.4-.4.6-.8.6h-1.2c-.4 0-.7-.2-.8-.6l-2.3-7.6v-.6c.1-.2.3-.2.6-.2h.8Z" style="fill: var(--swish-fill-color-24, currentColor);"/>','<path d="M6.6 22.2c4.7 2.2 10.5 1.1 14-3 4.1-4.9 3.5-12.3-1.4-16.4l-3.3 3.9c3.9 3.2 4.4 9 1.1 12.8-2.6 3.1-6.8 4.1-10.4 2.7" style="fill: var(--swish-fill-color-25, currentColor);"/>','<path d="M6.6 22.2c4.7 2.2 10.5 1.1 14-3 .4-.5.8-1 1.1-1.6.6-3.4-.7-7-3.5-9.4-.7-.6-1.5-1.1-2.3-1.5 3.9 3.2 4.4 9 1.1 12.8-2.6 3.1-6.8 4.1-10.4 2.7" style="fill: var(--swish-fill-color-26, currentColor);"/>','<path d="M16.7 1.1C12-1.1 6.2 0 2.7 4.2-1.4 9.1-.8 16.5 4.1 20.6l3.3-3.9C3.5 13.5 3 7.7 6.3 3.9 8.9.8 13.1-.2 16.7 1.1" style="fill: var(--swish-fill-color-27, currentColor);"/>','<path d="M16.7 1.1C12-1.1 6.2 0 2.7 4.2c-.4.5-.8 1-1.1 1.6-.6 3.4.7 7 3.5 9.4.7.6 1.5 1.1 2.3 1.5-3.9-3.2-4.4-9-1.1-12.8C8.9.8 13.1-.2 16.7 1.1" style="fill: var(--swish-fill-color-28, currentColor);"/>'],fills:["#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000","#000"],strokes:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],viewBoxWidth:76.6,viewBoxHeight:23.3,widthRatio:3.2875536480686693,heightRatio:1},vipps={elements:['<path d="m33.9 3.4 28.8 84.1L90.9 3.4h33.3L74.5 128.2H49.7L0 3.4zm165.4 105c20.9 0 32.7-10.2 44-24.8 6.2-7.9 14.1-9.6 19.8-5.1s6.2 13 0 20.9c-16.4 21.5-37.3 34.4-63.8 34.4s-54.2-15.8-71.7-43.5c-5.1-7.3-4-15.2 1.7-19.2s14.1-2.3 19.2 5.6c12.4 18.6 29.4 31.6 50.8 31.6ZM238.2 39c0 10.2-7.9 16.9-16.9 16.9s-16.9-6.8-16.9-16.9 7.9-16.9 16.9-16.9 16.9 7.3 16.9 16.9m79.7-35.6v16.9C326.4 8.4 339.4 0 358.5 0S411 20.3 411 63.8s-27.1 67.7-55.3 67.7-28.2-5.6-38.4-19.8v59.8h-30.5V3.4zm0 62.1c0 25.4 14.7 39 31.1 39s31.6-12.4 31.6-39-15.8-38.4-31.6-38.4-31.1 11.9-31.1 38.4M464.6 3.4v16.9C473.1 8.4 486.1 0 505.2 0s52.5 20.3 52.5 63.8-27.1 67.7-55.3 67.7-28.2-5.6-38.4-19.8v59.8h-30.5V3.4zm0 62.1c0 25.4 14.7 39 31.1 39s31.6-12.4 31.6-39-15.8-38.4-31.6-38.4-31.1 11.9-31.1 38.4M622.7 0c25.4 0 43.5 11.9 51.4 41.2l-27.7 4.5c-.6-14.7-9.6-19.8-23.1-19.8s-18.1 4.5-18.1 11.9 4 11.3 15.8 13.5l20.9 4c20.3 4 31.6 17.5 31.6 35.6 0 27.1-24.3 40.6-47.4 40.6s-51.4-12.4-55.3-42.9l27.7-4.5c1.7 15.8 11.3 21.5 27.1 21.5s19.8-4.5 19.8-11.9-4-11.9-16.9-14.1l-19.2-3.4c-20.3-4-32.7-18.1-32.7-36.1C577 11.9 602.4 0 622.7 0"/ style="fill: var(--vipps-fill-color-0, currentColor);"/>'],fills:["#ff5b24"],strokes:[null],viewBoxWidth:674.1,viewBoxHeight:176,widthRatio:3.8301136363636363,heightRatio:1},visa={elements:['<path d="M484.7 8.4C469.2 2.7 452.8-.1 436.3 0c-53.3 0-91 26.9-91.2 65.4-.3 28.3 26.8 44.3 47.3 53.8 21 9.7 28.1 15.9 28 24.6-.1 13.2-16.8 19.2-32.3 19.2s-32.9-3-50.8-10.4l-6.6-3.1-7.6 44.4c13 5.4 36.3 10 60.5 10.4 56.7 0 93.8-26.7 94.2-67.7.5-22.6-14.2-39.7-45.1-53.9-18.8-9.2-30.4-15.3-30.4-24.6s10-17 30.8-17c13.9-.3 27.6 2.3 40.4 7.6l5 2.2L486.1 8l-1.3.3Zm138.4-4.8h-41.7c-13 0-22.7 3.6-28.4 16.4l-80.1 181.5h56.7l11.3-29.8h69.2c1.6 7 6.6 29.8 6.6 29.8h50zM268.4 1.9h54L288.6 200h-54zM131.2 111.1l5.6 27.5 52.8-135h57.2l-85 197.7h-57.1L58 33.9c-.8-2.8-2.5-5.1-5-6.6C36.2 18.6 18.4 12 0 7.6l.7-4.1h87c11.8.5 21.3 4.2 24.5 16.8l19 91v-.1Zm425.2 20.2 21.5-55.4c-.3.6 4.4-11.4 7.2-18.9l3.7 17.1 12.5 57.1h-44.9Z"/ style="fill: var(--visa-fill-color-0, currentColor);"/>'],fills:["#182a85"],strokes:[null],viewBoxWidth:666.8,viewBoxHeight:204.3,widthRatio:3.263827704356338,heightRatio:1},icons={amex,"apple-pay":{elements:['<path d="M46.1 5.2 43.4 14l-2.7-8.8h-2.4l3.9 10.9-.2.7c-.4 1.1-.9 1.5-1.9 1.5h-.7v1.8h.9c2.2 0 3.3-.9 4.2-3.5l4-11.4h-2.3Zm-13-.1c-2.4 0-4.2 1.4-4.3 3.3h2.1c.2-.9 1-1.5 2.2-1.5s2.2.7 2.2 1.9v.8l-2.9.2c-2.7.2-4.1 1.3-4.1 3.2s1.5 3.2 3.6 3.2 2.8-.7 3.4-1.9v1.8h2.1V8.7c0-2.2-1.7-3.5-4.3-3.5Zm2.1 6.9c0 1.4-1.2 2.4-2.7 2.4s-2-.6-2-1.5.7-1.5 2.2-1.6l2.5-.2v.8ZM13 11.9c-.2-.1-2.1-1-2.1-3.3 0-1.9 1.5-2.9 1.7-3.1-1-1.4-2.4-1.6-2.9-1.6-.8 0-1.5.2-2.1.5q-.6.3-.9.3c-.3 0-.6-.1-1-.3-.5-.2-1-.4-1.6-.4-1.3 0-2.6.8-3.3 2-1.4 2.5-.4 6.1 1 8.1.7 1 1.5 2.1 2.5 2 .5 0 .8-.2 1.1-.3.4-.2.8-.4 1.5-.4s1 .2 1.4.3c.4.2.7.3 1.2.3 1.1 0 1.8-1 2.5-2 .7-1.1 1-2.1 1.1-2.3Zm9.8-10.8h-5.5V16h2.3v-5.1h3.2c2.9 0 4.9-2 4.9-4.9s-2-4.9-4.8-4.9ZM22.2 9h-2.6V3.1h2.6c2 0 3.1 1.1 3.1 3s-1.1 3-3.1 3ZM7.3 1.2c-.5.6-1 1.6-.9 2.5.9 0 1.8-.5 2.4-1.1.6-.7.9-1.6.8-2.6-.8 0-1.8.5-2.4 1.2Z" style="fill: var(--apple-pay-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:48.4,viewBoxHeight:20.1,widthRatio:2.407960199004975,heightRatio:1},billogram,card,checkmark,"chevron-down":{elements:['<path d="M7 11c-.3 0-.5-.1-.7-.3l-6-6c-.4-.4-.4-1 0-1.4s1-.4 1.4 0L7 8.6l5.3-5.3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-6 6c-.2.2-.4.3-.7.3" style="fill: var(--chevron-down-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:14,viewBoxHeight:14,widthRatio:1,heightRatio:1},"chevron-left":{elements:['<path d="M10 14c-.3 0-.5-.1-.7-.3l-6-6c-.4-.4-.4-1 0-1.4l6-6c.4-.4 1-.4 1.4 0s.4 1 0 1.4L5.4 7l5.3 5.3c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3" style="fill: var(--chevron-left-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:14,viewBoxHeight:14,widthRatio:1,heightRatio:1},"chevron-right":{elements:['<path d="M4 14c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4L8.6 7 3.3 1.7c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l6 6c.4.4.4 1 0 1.4l-6 6c-.2.2-.4.3-.7.3" style="fill: var(--chevron-right-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:14,viewBoxHeight:14,widthRatio:1,heightRatio:1},"chevron-up":{elements:['<path d="M13 11c-.3 0-.5-.1-.7-.3L7 5.4l-5.3 5.3c-.4.4-1 .4-1.4 0s-.4-1 0-1.4l6-6c.4-.4 1-.4 1.4 0l6 6c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3" style="fill: var(--chevron-up-fill-color-0, currentColor);"/>'],fills:["#000"],strokes:[null],viewBoxWidth:14,viewBoxHeight:14,widthRatio:1,heightRatio:1},"google-pay":{elements:['<path d="M37.8 19.7V29h-3V6h7.8c1.9 0 3.7.7 5.1 2 1.4 1.2 2.1 3 2.1 4.9s-.7 3.6-2.1 4.9-3.1 2-5.1 2zm0-10.9v8h5c1.1 0 2.2-.4 2.9-1.2 1.6-1.5 1.6-4 .1-5.5l-.1-.1c-.8-.8-1.8-1.3-2.9-1.2zm18.9 4c2.2 0 3.9.6 5.2 1.8s1.9 2.8 1.9 4.8V29H61v-2.2h-.1c-1.2 1.8-2.9 2.7-4.9 2.7-1.7 0-3.2-.5-4.4-1.5-1.1-1-1.8-2.4-1.8-3.9q0-2.4 1.8-3.9c1.2-1 2.9-1.4 4.9-1.4 1.8 0 3.2.3 4.3 1v-.7c0-1-.4-2-1.2-2.6-.8-.7-1.8-1.1-2.9-1.1q-2.55 0-3.9 2.1l-2.6-1.6c1.6-2.1 3.7-3.1 6.5-3.1m-3.8 11.4c0 .8.4 1.5 1 1.9.7.5 1.5.8 2.3.8 1.2 0 2.4-.5 3.3-1.4 1-.9 1.5-2 1.5-3.2-.9-.7-2.2-1.1-3.9-1.1q-1.8 0-3 .9-1.2.75-1.2 2.1M80 13.3 70.1 36h-3l3.7-7.9-6.5-14.7h3.2l4.7 11.3h.1l4.6-11.3H80z"/ style="fill: var(--google-pay-fill-color-0, currentColor);"/>','<path d="M25.9 17.7c0-.9-.1-1.8-.2-2.7H13.2v5.1h7.1c-.3 1.6-1.2 3.1-2.6 4v3.3H22c2.5-2.3 3.9-5.7 3.9-9.7"/ style="fill: var(--google-pay-fill-color-1, currentColor);"/>','<path d="M13.2 30.6c3.6 0 6.6-1.2 8.8-3.2l-4.3-3.3c-1.2.8-2.7 1.3-4.5 1.3-3.4 0-6.4-2.3-7.4-5.5H1.4v3.4c2.3 4.5 6.8 7.3 11.8 7.3"/ style="fill: var(--google-pay-fill-color-2, currentColor);"/>','<path d="M5.8 19.9c-.6-1.6-.6-3.4 0-5.1v-3.4H1.4c-1.9 3.7-1.9 8.1 0 11.9z"/ style="fill: var(--google-pay-fill-color-3, currentColor);"/>','<path d="M13.2 9.4c1.9 0 3.7.7 5.1 2l3.8-3.8c-2.4-2.2-5.6-3.5-8.8-3.4-5 0-9.6 2.8-11.8 7.3l4.4 3.4c.9-3.2 3.9-5.5 7.3-5.5"/ style="fill: var(--google-pay-fill-color-4, currentColor);"/>'],fills:["#5f6368","#4285f4","#34a853","#fbbc04","#ea4335"],strokes:[null,null,null,null,null],viewBoxWidth:80,viewBoxHeight:38.1,widthRatio:2.099737532808399,heightRatio:1},info,klarna,lock,mastercard,swish,vipps,visa};var root$d=ns_template("<svg><!></svg>");function Icon($e,De){push$6(De,!0);let Fe=prop(De,"multiColor",3,!1),He=prop(De,"ratio",3,1),Be=rest_props(De,["$$slots","$$events","$$legacy","name","multiColor","ratio","class"]);const{elements:Ge,fills:Ke,strokes:We,viewBoxWidth:Xe,viewBoxHeight:Je,widthRatio:Ze,heightRatio:Ye}=icons[De.name];var Qe=root$d();let et;var tt=child(Qe);html$3(tt,()=>Ge.join(""),!0,!1),reset(Qe),template_effect(()=>et=set_attributes(Qe,et,{class:twMerge(`icon-${De.name}`,De.class),viewBox:Xe&&Je?`0 0 ${Xe} ${Je}`:void 0,width:`${He()*Ze}em`,height:`${He()*Ye}em`,style:Fe()?[...Ke.map((rt,nt)=>rt&&`--${De.name}-fill-color-${nt}: ${rt};`),...We.map((rt,nt)=>rt&&`--${De.name}-stroke-color-${nt}: ${rt};`)].filter(Boolean).join(""):void 0,...Be},void 0,!0)),append$1($e,Qe),pop$1()}function PaymentMethod($e,De){push$6(De,!0);let Fe=prop(De,"size",3,"md");var He=derived(()=>twMerge("aspect-[4/3] px-1 rounded bg-white border border-transparent",De.name==="klarna"&&"bg-[#FEB4C7]",De.name==="amex"&&"bg-[#1F72CD]",Fe()==="sm"&&"w-8 border-gray-300",Fe()==="md"&&"w-10 shadow-sm",Fe()==="lg"&&"w-12 shadow"));Row($e,{get class(){return get$1(He)},children:(Be,Ge)=>{Icon(Be,{get name(){return De.name},multiColor:!0})},$$slots:{default:!0}}),pop$1()}var root_3$3=template('<span class="inline-block w-4 h-4 mr-2 border-2 border-current border-r-transparent rounded-full animate-spin" aria-hidden="true"></span>'),root_2$3=template("<!> <!>",1);function Button_wc($e,De){push$6(De,!0);let Fe=prop(De,"loading",7,!1),He=prop(De,"variant",7,"primary"),Be=prop(De,"disabled",7,!1),Ge=prop(De,"size",7,"md"),Ke=prop(De,"part",7),We=prop(De,"onclick",7),Xe=prop(De,"href",7),Je=prop(De,"class",7);return Base($e,{children:(Ze,Ye)=>{var Qe=derived(()=>twMerge("inline-flex font-bold ring-2 ring-transparent focus:ring-primary/25 active:enabled:translate-y-px border border-transparent items-center justify-center outline-none rounded-md transition-colors duration-200 ease-in-out",Ge()=="sm"&&"px-3 py-1.5 text-sm",Ge()=="md"&&"px-4 py-2 text-base",Ge()=="lg"&&"px-6 py-3 text-lg",He()==="primary"&&"bg-primary text-white enabled:hover:bg-primary/90",He()==="secondary"&&"bg-transparent border-primary text-primary enabled:hover:bg-primary/10",He()==="tertiary"&&"text-primary enabled:hover:bg-primary/10",Be()&&"opacity-50 cursor-not-allowed",Je()));Clickable(Ze,{get class(){return get$1(Qe)},get href(){return Xe()},get onclick(){return We()},get part(){return Ke()},get disabled(){return Be()},children:(et,tt)=>{var rt=root_2$3(),nt=first_child(rt);{var at=ct=>{var ot=root_3$3();append$1(ct,ot)};if_block(nt,ct=>{Fe()&&ct(at)})}var st=sibling(nt,2);slot(st,De,"default",{},null),append$1(et,rt)},$$slots:{default:!0}})},$$slots:{default:!0}}),pop$1({get loading(){return Fe()},set loading(Ze=!1){Fe(Ze),flush_sync()},get variant(){return He()},set variant(Ze="primary"){He(Ze),flush_sync()},get disabled(){return Be()},set disabled(Ze=!1){Be(Ze),flush_sync()},get size(){return Ge()},set size(Ze="md"){Ge(Ze),flush_sync()},get part(){return Ke()},set part(Ze){Ke(Ze),flush_sync()},get onclick(){return We()},set onclick(Ze){We(Ze),flush_sync()},get href(){return Xe()},set href(Ze){Xe(Ze),flush_sync()},get class(){return Je()},set class(Ze){Je(Ze),flush_sync()}})}customElements.define("sesamy-button-beta",create_custom_element(Button_wc,{loading:{},variant:{},disabled:{},size:{},part:{},onclick:{},href:{},class:{}},["default"],[],!0));function cubic_out($e){const De=$e-1;return De*De*De+1}function slide($e,{delay:De=0,duration:Fe=400,easing:He=cubic_out,axis:Be="y"}={}){const Ge=getComputedStyle($e),Ke=+Ge.opacity,We=Be==="y"?"height":"width",Xe=parseFloat(Ge[We]),Je=Be==="y"?["top","bottom"]:["left","right"],Ze=Je.map(at=>`${at[0].toUpperCase()}${at.slice(1)}`),Ye=parseFloat(Ge[`padding${Ze[0]}`]),Qe=parseFloat(Ge[`padding${Ze[1]}`]),et=parseFloat(Ge[`margin${Ze[0]}`]),tt=parseFloat(Ge[`margin${Ze[1]}`]),rt=parseFloat(Ge[`border${Ze[0]}Width`]),nt=parseFloat(Ge[`border${Ze[1]}Width`]);return{delay:De,duration:Fe,easing:He,css:at=>`overflow: hidden;opacity: ${Math.min(at*20,1)*Ke};${We}: ${at*Xe}px;padding-${Je[0]}: ${at*Ye}px;padding-${Je[1]}: ${at*Qe}px;margin-${Je[0]}: ${at*et}px;margin-${Je[1]}: ${at*tt}px;border-${Je[0]}-width: ${at*rt}px;border-${Je[1]}-width: ${at*nt}px;`}}var root_1$4=template('<li class="row-up-left gap-2"><!> <div> </div></li>'),root$c=template("<ul></ul>");function Features($e,De){push$6(De,!0);var Fe=root$c();const He=derived(()=>twMerge("text-gray-600 space-y-0.5 @md:space-y-1.5 text-sm @md:text-base",De.class));each(Fe,21,()=>De.features,index,(Be,Ge)=>{var Ke=root_1$4(),We=child(Ke);Icon(We,{class:"text-xs @md:text-sm text-primary mt-0.5 @md:mt-1",name:"checkmark"});var Xe=sibling(We,2);const Je=derived(()=>twMerge("flex-1 leading-snug"));var Ze=child(Xe,!0);reset(Xe),reset(Ke),template_effect(()=>{set_class(Xe,get$1(Je)),set_text(Ze,get$1(Ge))}),transition(3,Ke,()=>slide),append$1(Be,Ke)}),reset(Fe),template_effect(()=>set_class(Fe,get$1(He))),append$1($e,Fe),pop$1()}var root$b=template("<div><!></div>");function SelectionGroup($e,De){push$6(De,!0);let Fe=prop(De,"horizontal",3,!1);var He=root$b();const Be=derived(()=>twMerge("transition-colors grid rounded-md w-full",Fe()&&"gap-2 @xl:gap-4 @xl:auto-rows-fr",!Fe()&&"bg-white border-gray-200 border has-[input:checked]:border-primary",De.class));var Ge=child(He);snippet(Ge,()=>De.children),reset(He),template_effect(()=>set_class(He,get$1(Be))),append$1($e,He),pop$1()}var root$a=template('<div><div><div class="absolute top-full left-1/2 -translate-x-1/2 w-4 h-4 bg-primary rotate-45 -translate-y-3.5 rounded-sm"></div> <div class="relative"> </div></div></div>');function Tag($e,De){push$6(De,!0);var Fe=root$a();const He=derived(()=>twMerge("absolute top-2 -right-3 rotate-3",De.chunky&&"top-5"));var Be=child(Fe);const Ge=derived(()=>twMerge("absolute bg-primary bottom-0 rounded right-0 px-2 text-white text-xs py-1 font-bold whitespace-nowrap",De.chunky&&"px-3 text-sm @xl:text-base bottom-1"));var Ke=sibling(child(Be),2),We=child(Ke,!0);reset(Ke),reset(Be),reset(Fe),template_effect(()=>{set_class(Fe,get$1(He)),set_class(Be,get$1(Ge)),set_text(We,De.text)}),append$1($e,Fe),pop$1()}var root$9=template(`<label><input type="radio" class="peer sr-only"> <div class="w-4 h-4 rounded-full transition-all bg-white border border-[#E7E7EC] relative ring ring-transparent peer-focus-visible:ring-primary/20 peer-checked:border-primary peer-checked:bg-primary"><div class="content-[''] absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 w-1.5 h-1.5 bg-white rounded-full"></div></div> <div><!></div></label>`);function Selection($e,De){push$6(De,!0);let Fe=rest_props(De,["$$slots","$$events","$$legacy","id","name","checked","children","onchange","class"]);var He=root$9();let Be;var Ge=child(He);remove_input_defaults(Ge),Ge.__change=function(...Je){var Ze;(Ze=De.onchange)==null||Ze.apply(this,Je)};var Ke=sibling(Ge,4);const We=derived(()=>twMerge("column-up-left @md:row-left flex-1 !justify-between",De.class));var Xe=child(Ke);snippet(Xe,()=>De.children),reset(Ke),reset(He),template_effect(()=>{Be=set_attributes(He,Be,{class:"p-3 @3xl:p-4 row-left gap-4 w-full relative",for:De.id,...Fe}),set_checked(Ge,De.checked),set_attribute(Ge,"name",De.name),set_attribute(Ge,"id",De.id),set_class(Ke,get$1(We))}),append$1($e,He),pop$1()}delegate(["change"]);var root_10$1=template('<div class="leading-none"><span class="font-bold text-2xl @xl:text-4xl"> </span> <span class="text-xl @xl:text-2xl"> </span></div>'),root_9$1=template('<!> <div class="relative leading-tight"><span> </span> <span> </span> <div></div></div>',1),root_11=template('<div class="text-sm text-gray-700"> </div>'),root_7=template('<div class="text-base @xl:text-lg font-bold leading-tight"> </div> <!> <!> <!>',1),root_6$1=template("<!> <!>",1),root_4$3=template("<!> <!>",1),root_16=template('<hr class="w-full border-gray-100">'),root_19=template('<div class="leading-tight text-sm"> </div>'),root_18=template('<div class="text-base font-bold leading-tight"> </div> <!>',1),root_20=template('<div class="text-base font-bold leading-none"> </div>'),root_17=template('<!> <div class="column-left @md:column-right"><!> <div> </div></div> <!>',1),root_15$1=template("<!> <!>",1);function Subscriptions($e,De){push$6(De,!0);let Fe=prop(De,"horizontal",3,!1);const He=async Ge=>sesamy.generateLink({target:"checkout",sku:Ge.sku,purchaseOptionId:Ge.poId,discountCode:Ge.discountCode,redirectUrl:De.redirectUrl});var Be=derived(()=>twMerge(Fe()&&"@xl:grid-cols-3",Fe()&&De.subscriptions.length===4&&"@xl:grid-cols-2 @4xl:grid-cols-4",Fe()&&De.subscriptions.length===2&&"@xl:grid-cols-2",Fe()&&De.subscriptions.length===1&&"flex"));SelectionGroup($e,{get class(){return get$1(Be)},get horizontal(){return Fe()},children:(Ge,Ke)=>{var We=comment(),Xe=first_child(We);each(Xe,17,()=>De.subscriptions,index,(Je,Ze,Ye)=>{var Qe=comment();const et=derived(()=>{const{id:at,title:st,description:ct,price:ot,periodText:lt,features:dt,selected:mt,tag:gt,buttonText:wt,url:St,discountPrice:bt}=get$1(Ze);return{id:at,title:st,description:ct,price:ot,periodText:lt,features:dt,selected:mt,tag:gt,buttonText:wt,url:St,discountPrice:bt}});var tt=first_child(Qe);{var rt=at=>{var st=derived(()=>twMerge("border bg-white border-gray-300 rounded-lg relative",get$1(et).tag&&"border-primary mt-0 border-2"));Column(at,{get class(){return get$1(st)},children:(ct,ot)=>{var lt=root_4$3(),dt=first_child(lt);{var mt=wt=>{Tag(wt,{get text(){return get$1(et).tag},get t(){return De.t},chunky:!0})};if_block(dt,wt=>{get$1(et).tag&&wt(mt)})}var gt=sibling(dt,2);Column(gt,{class:"p-4 flex-1 gap-2 w-full !justify-between shadow-md",left:!0,up:!0,children:(wt,St)=>{var bt=root_6$1(),ht=first_child(bt);Column(ht,{class:"@xl:p-1",left:!0,children:($t,vt)=>{var Ct=root_7(),kt=first_child(Ct),Nt=child(kt,!0);reset(kt);var ut=sibling(kt,2);{var ft=xt=>{Column(xt,{class:"mb-0 @xl:mb-4",left:!0,children:(Ot,At)=>{var Tt=root_9$1(),jt=first_child(Tt);{var Mt=Vt=>{var Gt=root_10$1(),Yt=child(Gt),Qt=child(Yt);reset(Yt);var er=sibling(Yt,2),or=child(er);reset(er),reset(Gt),template_effect(()=>{set_text(Qt,`${get$1(et).discountPrice??""}
|
|
13
|
+
${De.currency??""}`),set_text(or,`/ ${get$1(et).periodText??""}`)}),append$1(Vt,Gt)};if_block(jt,Vt=>{get$1(et).discountPrice&&Vt(Mt)})}var Kt=sibling(jt,2),Wt=child(Kt);const pt=derived(()=>twMerge("font-bold text-2xl @xl:text-4xl",get$1(et).discountPrice&&"text-xl @xl:text-2xl text-gray-400"));var Et=child(Wt);reset(Wt);var It=sibling(Wt,2);const Ht=derived(()=>twMerge("text-xl @xl:text-2xl whitespace-nowrap",get$1(et).discountPrice&&"text-base @xl:text-lg text-gray-400"));var qt=child(It);reset(It);var Ut=sibling(It,2);const zt=derived(()=>twMerge("hidden absolute top-1/2 left-0 right-0 h-px bg-gray-400",get$1(et).discountPrice&&"block"));reset(Kt),template_effect(()=>{set_class(Wt,get$1(pt)),set_text(Et,`${get$1(et).price??""}
|
|
14
|
+
${De.currency??""}`),set_class(It,get$1(Ht)),set_text(qt,`/ ${get$1(et).periodText??""}`),set_class(Ut,get$1(zt))}),append$1(Ot,Tt)},$$slots:{default:!0}})};if_block(ut,xt=>{typeof get$1(et).price=="number"&&xt(ft)})}var _t=sibling(ut,2);{var Pt=xt=>{var Ot=root_11(),At=child(Ot,!0);reset(Ot),template_effect(()=>set_text(At,get$1(et).description)),append$1(xt,Ot)};if_block(_t,xt=>{get$1(et).description&&(!get$1(et).features||get$1(et).features.length<1)&&xt(Pt)})}var Rt=sibling(_t,2);{var Lt=xt=>{Features(xt,{get features(){return get$1(et).features}})};if_block(Rt,xt=>{get$1(et).features&&get$1(et).features.length>0&&xt(Lt)})}template_effect(()=>set_text(Nt,get$1(et).title)),append$1($t,Ct)},$$slots:{default:!0}});var yt=sibling(ht,2);await_block(yt,()=>He(get$1(Ze)),null,($t,vt)=>{var Ct=derived(()=>get$1(vt).replace("poId","option")),kt=derived(()=>get$1(et).selected||get$1(et).tag?"primary":"secondary");Button_wc($t,{get href(){return get$1(Ct)},class:"w-full mt-4",get variant(){return get$1(kt)},children:(Nt,ut)=>{next();var ft=text();template_effect(()=>set_text(ft,get$1(et).buttonText||De.t("continue"))),append$1(Nt,ft)},$$slots:{default:!0}})}),append$1(wt,bt)},$$slots:{default:!0}}),append$1(ct,lt)},$$slots:{default:!0}})},nt=at=>{var st=root_15$1(),ct=first_child(st);{var ot=dt=>{var mt=root_16();append$1(dt,mt)};if_block(ct,dt=>{Ye&&dt(ot)})}var lt=sibling(ct,2);Selection(lt,{get id(){return get$1(et).id},class:"gap-2 @md:gap-4",name:"purchase-option",get checked(){return get$1(et).selected},onchange:()=>De.selectProduct(get$1(Ze)),children:(dt,mt)=>{var gt=root_17(),wt=first_child(gt);Column(wt,{class:"flex-1",left:!0,children:(Nt,ut)=>{var ft=root_18(),_t=first_child(ft),Pt=child(_t,!0);reset(_t);var Rt=sibling(_t,2);{var Lt=xt=>{var Ot=root_19(),At=child(Ot,!0);reset(Ot),template_effect(()=>set_text(At,get$1(et).description)),append$1(xt,Ot)};if_block(Rt,xt=>{get$1(et).description&&xt(Lt)})}template_effect(()=>set_text(Pt,get$1(et).title)),append$1(Nt,ft)},$$slots:{default:!0}});var St=sibling(wt,2),bt=child(St);{var ht=Nt=>{var ut=root_20(),ft=child(ut);reset(ut),template_effect(()=>set_text(ft,`${get$1(et).discountPrice??""}
|
|
15
|
+
${De.currency??""} / ${get$1(et).periodText??""}`)),append$1(Nt,ut)};if_block(bt,Nt=>{get$1(et).discountPrice&&Nt(ht)})}var yt=sibling(bt,2);const $t=derived(()=>twMerge("text-base font-bold leading-none",get$1(et).discountPrice&&"line-through text-gray-400 text-sm"));var vt=child(yt);reset(yt),reset(St);var Ct=sibling(St,2);{var kt=Nt=>{Tag(Nt,{get text(){return get$1(et).tag},get t(){return De.t}})};if_block(Ct,Nt=>{get$1(et).tag&&Nt(kt)})}template_effect(()=>{set_class(yt,get$1($t)),set_text(vt,`${get$1(et).price??""}
|
|
16
|
+
${De.currency??""} / ${get$1(et).periodText??""}`)}),append$1(dt,gt)},$$slots:{default:!0}}),append$1(at,st)};if_block(tt,at=>{Fe()?at(rt):at(nt,!1)})}append$1(Je,Qe)}),append$1(Ge,We)},$$slots:{default:!0}}),pop$1()}var root_4$2=template('<div class="text-base font-bold leading-tight"></div> <div class="text-sm"></div>',1),root_3$2=template('<!> <div class="text-base font-bold"> </div>',1);function SinglePurchase($e,De){var Ye,Qe,et;push$6(De,!0);let Fe=prop(De,"item-src",7),He=prop(De,"price",7),Be=prop(De,"currency",7),{title:Ge,description:Ke}=De.singlePurchase;const We=()=>{const tt=He()?parseFloat(He()):0;De.selectProduct({...De.singlePurchase,price:tt,url:Fe()})};He()||He((Ye=document.querySelector('meta[property="sesamy:price"]'))==null?void 0:Ye.content),Be()||Be((Qe=document.querySelector('meta[property="sesamy:currency"]'))==null?void 0:Qe.content),Fe()||Fe((et=document.querySelector('meta[property="sesamy:item-src"]'))==null?void 0:et.content),Fe()&&!De.hasSubscriptions&&We();var Xe=comment(),Je=first_child(Xe);{var Ze=tt=>{SelectionGroup(tt,{children:(rt,nt)=>{var at=derived(()=>!De.hasSubscriptions);Selection(rt,{id:"single-purchase",name:"purchase-option",class:"gap-2 @md:gap-4",get checked(){return get$1(at)},onchange:We,children:(st,ct)=>{var ot=root_3$2(),lt=first_child(ot);Column(lt,{left:!0,children:(gt,wt)=>{var St=root_4$2(),bt=first_child(St);bt.textContent=Ge;var ht=sibling(bt,2);ht.textContent=Ke,append$1(gt,St)},$$slots:{default:!0}});var dt=sibling(lt,2),mt=child(dt);reset(dt),template_effect(()=>set_text(mt,`${He()??""} ${Be()??""}`)),append$1(st,ot)},$$slots:{default:!0}})},$$slots:{default:!0}})};if_block(Je,tt=>{Fe()&&tt(Ze)})}append$1($e,Xe),pop$1()}function Error$1($e,De){Row($e,{class:"text-red-500 w-full",left:!0,children:(Fe,He)=>{next();var Be=text();template_effect(()=>set_text(Be,`• ${De.text??""}`)),append$1(Fe,Be)},$$slots:{default:!0}})}const countryCodes=["AF","AL","DZ","AD","AO","AG","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BT","BO","BA","BW","BR","BN","BG","BF","BI","CV","KH","CM","CA","CF","TD","CL","CN","CO","KM","CG","CD","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GD","GT","GN","GW","GY","HT","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","MK","NO","OM","PK","PW","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","SS","ES","LK","SD","SR","SE","CH","SY","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"];function getCountryNameByCountryCode($e,De="en"){return new Intl.DisplayNames(De,{type:"region"}).of($e.toUpperCase())}function getAvailableCountryCodes(){return countryCodes}function getCountriesOptions($e="en"){return getAvailableCountryCodes().map(De=>({value:De,label:getCountryNameByCountryCode(De,$e)||""})).sort((De,Fe)=>De.label<Fe.label?-1:De.label>Fe.label?1:0)}var root_1$3=template("<div> </div>"),root$8=template("<label><input> <!></label>");function Input($e,De){push$6(De,!0);let Fe=prop(De,"value",15),He=prop(De,"hasError",3,!1),Be=prop(De,"placeholder",3,""),Ge=prop(De,"compact",3,!1),Ke=rest_props(De,["$$slots","$$events","$$legacy","value","error","hasError","placeholder","compact","class"]);var We=root$8();const Xe=derived(()=>twMerge("relative w-full column-left",(He()||!!De.error)&&"z-20"));var Je=child(We);remove_input_defaults(Je);let Ze;var Ye=sibling(Je,2);{var Qe=et=>{var tt=root_1$3();const rt=derived(()=>twMerge("pointer-events-none absolute left-4 right-4 top-1/2 line-clamp-1 -translate-y-1/2 text-base font-medium text-gray-400 transition-[transform,font-size] peer-focus-visible:-translate-y-[calc(50%+theme(space.3))] peer-focus:text-xs",!!Fe()&&"-translate-y-[calc(50%+theme(space.3))] text-xs sm:text-xs"));var nt=child(tt,!0);reset(tt),template_effect(()=>{set_class(tt,get$1(rt)),set_text(nt,Be())}),append$1(et,tt)};if_block(Ye,et=>{Ge()&&et(Qe)})}reset(We),template_effect(()=>{set_class(We,get$1(Xe)),Ze=set_attributes(Je,Ze,{...Ke,class:twMerge("peer w-full rounded-md border border-gray-200 bg-white p-4 text-base leading-snug text-gray-800 outline-0 transition-colors duration-150 placeholder:text-gray-400 focus:border-gray-300 disabled:opacity-[20%]",(He()||!!De.error)&&"border-red-500 focus-visible:border-red",Ge()&&"pb-2 pt-6 placeholder:text-transparent",De.class),placeholder:Be()})}),bind_value(Je,Fe),append$1($e,We),pop$1()}var root$7=template("<div><!></div>");function InputGroup($e,De){push$6(De,!0);var Fe=root$7();const He=derived(()=>twMerge("w-full [&>label:first-child>:where(select,input)]:rounded-t-md [&>label:last-child>:where(select,input)]:rounded-b-md [&>label>:where(select,input)]:rounded-none [&_label>:where(select,input)]:-mt-px [&_label>select]:-mt-px","max-sm:gap-0 max-sm:[&>*:first-child>*:first-child>label:first-of-type>:where(select,input)]:rounded-t-md max-sm:[&>*:last-child>*:last-child>label:last-of-type>:where(select,input)]:rounded-b-md max-sm:[&>*]:gap-0 max-sm:[&_label>:where(select,input)]:rounded-none",De.class));var Be=child(Fe);snippet(Be,()=>De.children),reset(Fe),template_effect(()=>set_class(Fe,get$1(He))),append$1($e,Fe),pop$1()}var root_1$2=template("<option> </option>"),root_2$2=template("<div> </div>"),root$6=template('<label class="relative w-full gap-2 column-left"><select></select> <!> <!></label>');function Select($e,De){push$6(De,!0);let Fe=prop(De,"value",15),He=prop(De,"hasError",3,!1),Be=prop(De,"placeholder",3,""),Ge=prop(De,"compact",3,!1),Ke=rest_props(De,["$$slots","$$events","$$legacy","value","class","hasError","options","placeholder","compact"]);var We=root$6(),Xe=child(We);let Je;each(Xe,21,()=>De.options,({value:tt,label:rt})=>tt,(tt,rt)=>{let nt=()=>get$1(rt).value,at=()=>get$1(rt).label;var st=root_1$2(),ct={},ot=child(st,!0);reset(st),template_effect(()=>{ct!==(ct=nt())&&(st.value=(st.__value=nt())==null?"":nt()),set_text(ot,at())}),append$1(tt,st)}),reset(Xe);var Ye=sibling(Xe,2);{var Qe=tt=>{var rt=root_2$2();const nt=derived(()=>twMerge("pointer-events-none absolute left-4 right-4 top-1/2 line-clamp-1 -translate-y-1/2 text-base font-medium text-gray-400 transition-[transform,font-size] peer-focus:-translate-y-[calc(50%+theme(space.3))] peer-focus:text-xs",Fe()!==void 0&&Fe()&&"-translate-y-[calc(50%+theme(space.3))] text-xs sm:text-xs"));var at=child(rt,!0);reset(rt),template_effect(()=>{set_class(rt,get$1(nt)),set_text(at,Be())}),append$1(tt,rt)};if_block(Ye,tt=>{Ge()&&tt(Qe)})}var et=sibling(Ye,2);Icon(et,{class:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-xs text-gray-300 peer-focus-visible:text-gray-400 sm:text-xs",name:"chevron-down"}),reset(We),template_effect(()=>Je=set_attributes(Xe,Je,{class:twMerge("peer w-full appearance-none rounded-md border border-gray-200 bg-white p-4 text-base leading-snug text-gray-800 outline-0 transition-colors duration-150 placeholder:text-gray-400 focus:border-gray-300 disabled:opacity-[20%]",He()&&"border-red focus-visible:border-red",Ge()&&"pb-2 pt-6 placeholder:text-transparent",De.class),...Ke})),bind_select_value(Xe,Fe),append$1($e,We),pop$1()}function isValidEmail($e){return!!$e.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)}const isSupportingGooglePay=()=>/Chrome/.test(navigator==null?void 0:navigator.userAgent)&&!/Edge|OPR/.test(navigator==null?void 0:navigator.userAgent),isSupportingApplePay=()=>window==null?void 0:window.ApplePaySession;function getDefaultExportFromCjs($e){return $e&&$e.__esModule&&Object.prototype.hasOwnProperty.call($e,"default")?$e.default:$e}var dist={},run$1={},assertValidUserOptions={},assert={},hasRequiredAssert;function requireAssert(){if(hasRequiredAssert)return assert;hasRequiredAssert=1,Object.defineProperty(assert,"__esModule",{value:!0});function $e(De,Fe){if(!De)throw new Error(Fe)}return assert.default=$e,assert}var hasRequiredAssertValidUserOptions;function requireAssertValidUserOptions(){if(hasRequiredAssertValidUserOptions)return assertValidUserOptions;hasRequiredAssertValidUserOptions=1;var $e=assertValidUserOptions&&assertValidUserOptions.__importDefault||function(He){return He&&He.__esModule?He:{default:He}};Object.defineProperty(assertValidUserOptions,"__esModule",{value:!0});const De=$e(requireAssert());function Fe(He){De.default(Array.isArray(He.domains),"domains must be an array"),De.default(Array.isArray(He.topLevelDomains),"topLevelDomains must be an array"),De.default(Array.isArray(He.secondLevelDomains),"secondLevelDomains must be an array"),De.default(typeof He.distanceFunction=="function","distanceFunction must be a function")}return assertValidUserOptions.default=Fe,assertValidUserOptions}var suggestEmail={},encodeEmail={},hasRequiredEncodeEmail;function requireEncodeEmail(){if(hasRequiredEncodeEmail)return encodeEmail;hasRequiredEncodeEmail=1,Object.defineProperty(encodeEmail,"__esModule",{value:!0});function $e(De){return encodeURI(De).replace(/%20/g," ").replace(/%25/g,"%").replace(/%5E/g,"^").replace(/%60/g,"`").replace(/%7B/g,"{").replace(/%7C/g,"|").replace(/%7D/g,"}")}return encodeEmail.default=$e,encodeEmail}var findClosestDomain={},hasRequiredFindClosestDomain;function requireFindClosestDomain(){if(hasRequiredFindClosestDomain)return findClosestDomain;hasRequiredFindClosestDomain=1,Object.defineProperty(findClosestDomain,"__esModule",{value:!0});function $e(De){const{domain:Fe,domains:He,distanceFunction:Be,threshold:Ge}=De;let Ke,We=1/0,Xe=null;if(!(!Fe||!He)){for(let Je=0;Je<He.length;Je++){if(Fe===He[Je])return Fe;Ke=Be(Fe,He[Je]),Ke<We&&(We=Ke,Xe=He[Je])}if(We<=Ge&&Xe!==null)return Xe}}return findClosestDomain.default=$e,findClosestDomain}var parseEmail={},trim={},hasRequiredTrim;function requireTrim(){if(hasRequiredTrim)return trim;hasRequiredTrim=1,Object.defineProperty(trim,"__esModule",{value:!0});const $e=/\s/;function De(Be){return Be.trim?Be.trim():He(Fe(Be))}function Fe(Be){return Be.trimLeft?Be.trimLeft():Be.replace(/^\s\s*/,"")}function He(Be){if(Be.trimRight)return Be.trimRight();let Ge=Be.length;for(;$e.test(Be.charAt(--Ge)););return Be.slice(0,Ge+1)}return trim.default=De,trim}var hasRequiredParseEmail;function requireParseEmail(){if(hasRequiredParseEmail)return parseEmail;hasRequiredParseEmail=1;var $e=parseEmail&&parseEmail.__importDefault||function(Be){return Be&&Be.__esModule?Be:{default:Be}};Object.defineProperty(parseEmail,"__esModule",{value:!0});const De=$e(requireTrim()),Fe=2;function He(Be){const Ke=De.default(Be).split("@");if(Ke.length<Fe)return!1;for(let Ye=0;Ye<Ke.length;Ye++)if(Ke[Ye]==="")return!1;let We="",Xe="";const Je=Ke.pop(),Ze=Je.split(".");if(Ze.length===0)return!1;if(Ze.length==1)Xe=Ze[0];else{We=Ze[0];for(let Ye=1;Ye<Ze.length;Ye++)Xe+=Ze[Ye]+".";Xe=Xe.substring(0,Xe.length-1)}return{topLevelDomain:Xe,secondLevelDomain:We,domain:Je,address:Ke.join("@")}}return parseEmail.default=He,parseEmail}var hasRequiredSuggestEmail;function requireSuggestEmail(){if(hasRequiredSuggestEmail)return suggestEmail;hasRequiredSuggestEmail=1;var $e=suggestEmail&&suggestEmail.__importDefault||function(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}};Object.defineProperty(suggestEmail,"__esModule",{value:!0});const De=$e(requireEncodeEmail()),Fe=$e(requireFindClosestDomain()),He=$e(requireParseEmail());function Be(Ge){const Ke=De.default(Ge.email.toLowerCase()),We=He.default(Ke);if(!We)return;const{domains:Xe,domainThreshold:Je,distanceFunction:Ze,secondLevelDomains:Ye,topLevelDomains:Qe}=Ge;if(Ye&&Qe&&Ye.indexOf(We.secondLevelDomain)!==-1&&Qe.indexOf(We.topLevelDomain)!==-1)return;let et=Fe.default({domain:We.domain,domains:Xe,distanceFunction:Ze,threshold:Je});if(et)return et==We.domain?void 0:{address:We.address,domain:et,full:We.address+"@"+et};const tt=Fe.default({domain:We.secondLevelDomain,domains:Ye,distanceFunction:Ze,threshold:Ge.secondLevelThreshold}),rt=Fe.default({domain:We.topLevelDomain,domains:Qe,distanceFunction:Ze,threshold:Ge.topLevelThreshold});if(We.domain){et=We.domain;let nt=!1;if(tt&&tt!=We.secondLevelDomain&&(et=et.replace(We.secondLevelDomain,tt),nt=!0),rt&&rt!=We.topLevelDomain&&We.secondLevelDomain!==""&&(et=et.replace(new RegExp(We.topLevelDomain+"$"),rt),nt=!0),nt)return{address:We.address,domain:et,full:We.address+"@"+et}}}return suggestEmail.default=Be,suggestEmail}var getOptions={},config$1={},sift3Distance={},hasRequiredSift3Distance;function requireSift3Distance(){if(hasRequiredSift3Distance)return sift3Distance;hasRequiredSift3Distance=1,Object.defineProperty(sift3Distance,"__esModule",{value:!0});function $e(De,Fe){if(De==null||De.length===0)return Fe==null||Fe.length===0?0:Fe.length;if(Fe==null||Fe.length===0)return De.length;let He=0,Be=0,Ge=0,Ke=0;const We=5;for(;He+Be<De.length&&He+Ge<Fe.length;){if(De.charAt(He+Be)==Fe.charAt(He+Ge))Ke++;else{Be=0,Ge=0;for(let Xe=0;Xe<We;Xe++){if(He+Xe<De.length&&De.charAt(He+Xe)==Fe.charAt(He)){Be=Xe;break}if(He+Xe<Fe.length&&De.charAt(He)==Fe.charAt(He+Xe)){Ge=Xe;break}}}He++}return(De.length+Fe.length)/2-Ke}return sift3Distance.default=$e,sift3Distance}var hasRequiredConfig;function requireConfig(){if(hasRequiredConfig)return config$1;hasRequiredConfig=1;var $e=config$1&&config$1.__importDefault||function(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}};Object.defineProperty(config$1,"__esModule",{value:!0}),config$1.POPULAR_TLDS=config$1.POPULAR_DOMAINS=config$1.DEFAULT_CONFIG=void 0;const De=$e(requireSift3Distance()),Fe=["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","optonline.net","sbcglobal.net","aol.com","aim.com","me.com","mailw.com","btinternet.com","charter.net","shaw.ca","hey.com","proton.me","pm.com","protonmail.com","zoho.com","yandex.com","titan.email"];config$1.POPULAR_DOMAINS=Fe;const He=["com","com.au","com.tw","co","ca","co.nz","co.uk","de","fr","it","ru","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","net","net.au","info","biz","mil","co.jp","sg","hu","uk","sk","ar","cf","cl","cn","ga","gq","ir","ml","mx","nu","nz","ph","pl","ro","tk","tw","ua","vg","ws","xn","za","app","au","ai","biz","br","blog","cloud","club","cc","de","dev","digital","fi","finance","id","in","io","me","mobi","network","pw","so","xyz","software","to","tech"];config$1.POPULAR_TLDS=He;const Be={domainThreshold:2,domains:Fe,secondLevelThreshold:2,secondLevelDomains:["yahoo","hotmail","mail","live","outlook"],topLevelThreshold:2,topLevelDomains:He,distanceFunction:De.default};return config$1.DEFAULT_CONFIG=Be,config$1}var hasRequiredGetOptions;function requireGetOptions(){if(hasRequiredGetOptions)return getOptions;hasRequiredGetOptions=1,Object.defineProperty(getOptions,"__esModule",{value:!0});const $e=requireConfig();function De(Fe){return{email:Fe.email,domains:Fe.domains||$e.DEFAULT_CONFIG.domains,topLevelDomains:Fe.topLevelDomains||$e.DEFAULT_CONFIG.topLevelDomains,secondLevelDomains:Fe.secondLevelDomains||$e.DEFAULT_CONFIG.secondLevelDomains,distanceFunction:Fe.distanceFunction||$e.DEFAULT_CONFIG.distanceFunction,domainThreshold:Fe.domainThreshold||$e.DEFAULT_CONFIG.domainThreshold,secondLevelThreshold:Fe.secondLevelThreshold||$e.DEFAULT_CONFIG.secondLevelThreshold,topLevelThreshold:Fe.topLevelThreshold||$e.DEFAULT_CONFIG.topLevelThreshold,suggested:Fe.suggested||void 0,empty:Fe.suggested||void 0}}return getOptions.default=De,getOptions}var hasRequiredRun;function requireRun(){if(hasRequiredRun)return run$1;hasRequiredRun=1;var $e=run$1&&run$1.__importDefault||function(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}};Object.defineProperty(run$1,"__esModule",{value:!0});const De=$e(requireAssertValidUserOptions()),Fe=$e(requireSuggestEmail()),He=$e(requireGetOptions());function Be(Ge){const Ke=He.default(Ge);De.default(Ke||{});const We=Fe.default(Ke);return!We&&Ge.empty&&Ge.empty(),We&&Ge.suggested&&Ge.suggested(We),We}return run$1.default=Be,run$1}var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function($e){var De=dist&&dist.__importDefault||function(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}};Object.defineProperty($e,"__esModule",{value:!0}),$e.POPULAR_TLDS=$e.POPULAR_DOMAINS=$e.run=void 0;const Fe=De(requireRun());$e.run=Fe.default;const He=requireConfig();Object.defineProperty($e,"POPULAR_DOMAINS",{enumerable:!0,get:function(){return He.POPULAR_DOMAINS}}),Object.defineProperty($e,"POPULAR_TLDS",{enumerable:!0,get:function(){return He.POPULAR_TLDS}});const Be={run:Fe.default,POPULAR_DOMAINS:He.POPULAR_DOMAINS,POPULAR_TLDS:He.POPULAR_TLDS};$e.default=Be}(dist)),dist}var distExports=requireDist();const emailSpellChecker=getDefaultExportFromCjs(distExports);var root$5=template('<div><div class="overflow-hidden"><!></div></div>');function Accordion($e,De){push$6(De,!0);let Fe=prop(De,"isOpen",3,!1);var He=root$5();const Be=derived(()=>twMerge("grid transition-[grid-template-rows] duration-200 ease-out grid-rows-[0fr]",Fe()&&"grid-rows-[1fr]"));var Ge=child(He),Ke=child(Ge);slot(Ke,De,"default",{},null),reset(Ge),reset(He),template_effect(()=>set_class(He,get$1(Be))),append$1($e,He),pop$1()}var root_4$1=template('<!> <div> <span class="text-primary"> </span>?</div>',1),root_3$1=template('<!> <div class="text-center whitespace-nowrap"> </div>',1),root_1$1=template("<!> <!> <!> <!> <!> <!>",1),root_12=template('<div class="gap-1 hidden @xl:row-left"><!> <!> <!></div>'),root_10=template("<!> <!>",1),root$4=template('<form class="contents"><!> <div class="grid grid-cols-2 w-full gap-2 auto-rows-fr"></div> <!></form> <!>',1);function PayNowForm($e,De){push$6(De,!0);const Fe="https://checkout3.sesamy.com",He=getCountriesOptions(De.checkout.language);let Be=state(""),Ge=state(""),Ke=state(""),We=state(""),Xe=state(proxy(De.checkout.country||"SE")),Je=state(!1),Ze=state(void 0),Ye=state(void 0),Qe=state(""),et;const tt=()=>{var ht,yt,$t,vt,Ct,kt,Nt,ut,ft,_t,Pt,Rt,Lt,xt,Ot,At,Tt,jt;const bt=[];isValidEmail(get$1(Be))||bt.push(["email","invalid_email"]),($t=(yt=(ht=De.checkout)==null?void 0:ht.settings)==null?void 0:yt.phone)!=null&&$t.enabled&&((kt=(Ct=(vt=De.checkout)==null?void 0:vt.settings)==null?void 0:Ct.phone)!=null&&kt.required)&&!get$1(We)&&bt.push(["phoneNumber","phone_number_required"]),(ft=(ut=(Nt=De.checkout)==null?void 0:Nt.settings)==null?void 0:ut.name)!=null&&ft.enabled&&((Rt=(Pt=(_t=De.checkout)==null?void 0:_t.settings)==null?void 0:Pt.name)!=null&&Rt.required)&&!get$1(Ge)&&bt.push(["firstName","first_name_required"]),(Ot=(xt=(Lt=De.checkout)==null?void 0:Lt.settings)==null?void 0:xt.name)!=null&&Ot.enabled&&((jt=(Tt=(At=De.checkout)==null?void 0:At.settings)==null?void 0:Tt.name)!=null&&jt.required)&&!get$1(Ke)&&bt.push(["lastName","last_name_required"]),set$2(Ze,proxy(bt.length?bt.reduce((Mt,[Kt,Wt])=>({...Mt,[Kt]:Wt}),{}):void 0))},rt=bt=>set$2(Ye,proxy(bt)),nt=()=>{set$2(Ze,void 0),clearTimeout(et),et=setTimeout(()=>{var bt;set$2(Qe,proxy(((bt=emailSpellChecker.run({email:get$1(Be)}))==null?void 0:bt.full)||""))},400)},at=async bt=>{var ht;if(bt.preventDefault(),tt(),!get$1(Ze)&&get$1(Ye)){set$2(Je,!0);try{const yt=["GOOGLE-PAY","APPLE-PAY"].includes(get$1(Ye).method);await De.api.checkouts.update(De.checkout.id,{paymentData:{provider:get$1(Ye).provider,method:yt?"CARD":get$1(Ye).method},email:get$1(Be)});const $t=new URL(Fe);$t.pathname=De.checkout.id,$t.searchParams.set("norecreate","true"),$t.searchParams.set("lang",De.checkout.language),$t.searchParams.set("redirect-url",De.checkout.redirectUrl),$t.searchParams.set("payment-method",get$1(Ye).method),window.location.href=$t.href;return}catch(yt){(ht=yt==null?void 0:yt.message)!=null&&ht.includes("User already owns item")?set$2(Ze,proxy({general:"user_already_owns_item"})):(console.error(yt),set$2(Ze,proxy({general:"something_went_wrong"}))),set$2(Je,!1);return}}},st=De.checkout.availablePaymentMethods.filter(({provider:bt})=>!["DUMMY","SESAMY","BILLOGRAM"].includes(bt)).reduce((bt,{provider:ht,methods:yt})=>[...bt,...yt!=null&&yt.length?yt.map($t=>({provider:ht,method:$t,icon:$t.toLocaleLowerCase()})):[]],[]);isSupportingGooglePay()&&st.push({provider:"STRIPE",method:"GOOGLE-PAY",icon:"google-pay"}),isSupportingApplePay()&&st.push({provider:"STRIPE",method:"APPLE-PAY",icon:"apple-pay"}),st.length&&rt(st[0]);var ct=root$4(),ot=first_child(ct),lt=child(ot);InputGroup(lt,{children:(bt,ht)=>{var yt=root_1$1(),$t=first_child(yt),vt=derived(()=>De.t("email")),Ct=derived(()=>{var At;return(At=get$1(Ze))==null?void 0:At.email});Input($t,{onkeyup:nt,compact:!0,get placeholder(){return get$1(vt)},get hasError(){return get$1(Ct)},get value(){return get$1(Be)},set value(At){set$2(Be,proxy(At))}});var kt=sibling($t,2),Nt=derived(()=>!!get$1(Qe));Accordion(kt,{get isOpen(){return get$1(Nt)},children:(At,Tt)=>{Row(At,{onclick:()=>{set$2(Be,proxy(get$1(Qe))),set$2(Qe,"")},class:"bg-primary/10 gap-4 px-2 py-3 !justify-between active:bg-primary/10 text-sm border-x border-gray-200 text-gray-500 hover:cursor-pointer hover:bg-primary/15 transition-colors duration-75",children:(jt,Mt)=>{var Kt=root_3$1(),Wt=first_child(Kt);Row(Wt,{class:"gap-2",children:(It,Ht)=>{var qt=root_4$1(),Ut=first_child(qt);Icon(Ut,{class:"text-primary text-xl",name:"info"});var zt=sibling(Ut,2),Vt=child(zt);template_effect(()=>set_text(Vt,`${De.t("did_you_mean")??""} `));var Gt=sibling(Vt),Yt=child(Gt,!0);reset(Gt),next(),reset(zt),template_effect(()=>set_text(Yt,get$1(Qe))),append$1(It,qt)},$$slots:{default:!0}});var pt=sibling(Wt,2),Et=child(pt,!0);template_effect(()=>set_text(Et,De.t("click_to_update"))),reset(pt),append$1(jt,Kt)},$$slots:{default:!0}})},$$slots:{default:!0}});var ut=sibling(kt,2),ft=derived(()=>De.t("country"));Select(ut,{options:He,compact:!0,get placeholder(){return get$1(ft)},get value(){return get$1(Xe)},set value(At){set$2(Xe,proxy(At))}});var _t=sibling(ut,2);{var Pt=At=>{var Tt=derived(()=>De.t("phone_number")),jt=derived(()=>{var Mt;return(Mt=get$1(Ze))==null?void 0:Mt.phoneNumber});Input(At,{onkeyup:()=>set$2(Ze,void 0),compact:!0,get placeholder(){return get$1(Tt)},get hasError(){return get$1(jt)},get value(){return get$1(We)},set value(Mt){set$2(We,proxy(Mt))}})};if_block(_t,At=>{var Tt,jt,Mt;(Mt=(jt=(Tt=De.checkout)==null?void 0:Tt.settings)==null?void 0:jt.phone)!=null&&Mt.enabled&&At(Pt)})}var Rt=sibling(_t,2);{var Lt=At=>{var Tt=derived(()=>De.t("first_name")),jt=derived(()=>{var Mt;return(Mt=get$1(Ze))==null?void 0:Mt.firstName});Input(At,{onkeyup:()=>set$2(Ze,void 0),compact:!0,get placeholder(){return get$1(Tt)},get hasError(){return get$1(jt)},get value(){return get$1(Ge)},set value(Mt){set$2(Ge,proxy(Mt))}})};if_block(Rt,At=>{var Tt,jt,Mt;(Mt=(jt=(Tt=De.checkout)==null?void 0:Tt.settings)==null?void 0:jt.name)!=null&&Mt.enabled&&At(Lt)})}var xt=sibling(Rt,2);{var Ot=At=>{var Tt=derived(()=>De.t("last_name")),jt=derived(()=>{var Mt;return(Mt=get$1(Ze))==null?void 0:Mt.lastName});Input(At,{onkeyup:()=>set$2(Ze,void 0),compact:!0,get placeholder(){return get$1(Tt)},get hasError(){return get$1(jt)},get value(){return get$1(Ke)},set value(Mt){set$2(Ke,proxy(Mt))}})};if_block(xt,At=>{var Tt,jt,Mt;(Mt=(jt=(Tt=De.checkout)==null?void 0:Tt.settings)==null?void 0:jt.name)!=null&&Mt.enabled&&At(Ot)})}append$1(bt,yt)},$$slots:{default:!0}});var dt=sibling(lt,2);each(dt,23,()=>st,bt=>`${bt.provider}-${bt.method}`,(bt,ht,yt)=>{const $t=derived(()=>{const{provider:vt,method:Ct,icon:kt}=get$1(ht);return{provider:vt,method:Ct,icon:kt}});SelectionGroup(bt,{children:(vt,Ct)=>{var kt=derived(()=>!get$1(yt)),Nt=derived(()=>`${get$1($t).provider}-${get$1($t).method}`);Selection(vt,{get checked(){return get$1(kt)},get id(){return get$1(Nt)},name:"payment-method",onchange:()=>rt(get$1(ht)),children:(ut,ft)=>{var _t=root_10(),Pt=first_child(_t);Row(Pt,{class:"w-16",left:!0,children:(xt,Ot)=>{Icon(xt,{class:"text-3xl",multiColor:!0,get name(){return get$1($t).icon}})},$$slots:{default:!0}});var Rt=sibling(Pt,2);{var Lt=xt=>{var Ot=root_12(),At=child(Ot);PaymentMethod(At,{size:"sm",name:"visa"});var Tt=sibling(At,2);PaymentMethod(Tt,{size:"sm",name:"amex"});var jt=sibling(Tt,2);PaymentMethod(jt,{size:"sm",name:"mastercard"}),reset(Ot),append$1(xt,Ot)};if_block(Rt,xt=>{get$1($t).method&&["CARD","GOOGLE-PAY","APPLE-PAY"].includes(get$1($t).method)&&xt(Lt)})}append$1(ut,_t)},$$slots:{default:!0}})},$$slots:{default:!0}})}),reset(dt);var gt=sibling(dt,2);Button_wc(gt,{get loading(){return get$1(Je)},get disabled(){return get$1(Je)},class:"mt-2 w-full shadow-md",type:"submit",children:(bt,ht)=>{next();var yt=text();template_effect(()=>set_text(yt,De.t("pay_now"))),append$1(bt,yt)},$$slots:{default:!0}}),reset(ot);var wt=sibling(ot,2);{var St=bt=>{Column(bt,{left:!0,children:(ht,yt)=>{var $t=comment(),vt=first_child($t);each(vt,17,()=>Object.values(get$1(Ze)),index,(Ct,kt)=>{var Nt=derived(()=>De.t(get$1(kt)));Error$1(Ct,{get text(){return get$1(Nt)}})}),append$1(ht,$t)},$$slots:{default:!0}})};if_block(wt,bt=>{get$1(Ze)&&bt(St)})}event("submit",ot,at),append$1($e,ct),pop$1()}function NotLoggedIn($e,De){push$6(De,!0);const Fe=async Ge=>{try{return await Ge.auth.isAuthenticated()}catch(Ke){console.error("Error checking login status:",Ke)}};var He=comment(),Be=first_child(He);await_block(Be,()=>Fe(De.api),null,(Ge,Ke)=>{var We=comment(),Xe=first_child(We);{var Je=Ze=>{var Ye=comment(),Qe=first_child(Ye);snippet(Qe,()=>De.children),append$1(Ze,Ye)};if_block(Xe,Ze=>{get$1(Ke)||Ze(Je)})}append$1(Ge,We)}),append$1($e,He),pop$1()}var root_5=template("<div> </div> <sesamy-login-beta></sesamy-login-beta>",3),root_4=template('<!> <div class="w-full h-px from-transparent bg-gradient-to-r to-transparent via-primary/30"></div>',1),root_6=template('<img class="h-7 mb-6">'),root_9=template('<form class="contents"><!> <!> <!></form>'),root_15=template("<!> ",1),root_2$1=template('<!> <div><!> <div class="text-2xl leading-tight @md:text-3xl font-bold max-w-[600px]"></div></div> <!> <!> <!> <div class="column gap-4 @md:row !justify-between w-full mt-4 @md:mt-8"><!> <!></div>',1),root$3=template('<div class="@container"><!></div> <!>',1);function Renderer($e,De){push$6(De,!0);let Fe=prop(De,"horizontal",3,!1),He=rest_props(De,["$$slots","$$events","$$legacy","api","t","horizontal","paywall"]),Be=state(void 0),Ge=state(void 0),Ke=state(!1),We=state("");const Xe=(He==null?void 0:He["redirect-url"])||window.location.href;let{subscriptions:Je,singlePurchase:Ze,headline:Ye,currency:Qe,mainColor:et,showLoginButton:tt,features:rt,footerPaymentMethods:nt,logoUrl:at,vendorId:st,settings:{useDefaultLogo:ct,styling:ot}}=De.paywall;const lt=async Ct=>{var Nt;if(set$2(We,""),Ct.preventDefault(),!get$1(Be))return;set$2(Ke,!0);const kt=(Nt=get$1(Be))!=null&&Nt.url?{url:get$1(Be).url}:{sku:get$1(Be).sku,purchaseOptionId:get$1(Be).poId};try{set$2(Ge,proxy(await De.api.checkouts.create({vendorId:st,items:[kt],discountCode:get$1(Be).discountCode,redirectUrl:Xe,price:get$1(Be).price,currency:Qe,attribution:{utmSource:He==null?void 0:He["utm-source"],utmMedium:He==null?void 0:He["utm-medium"],utmCampaign:He==null?void 0:He["utm-campaign"],utmTerm:He==null?void 0:He["utm-term"],utmContent:He==null?void 0:He["utm-content"],source:"PAYWALL",sourceId:De.paywall.id}})))}catch(ut){console.error(ut),set$2(We,proxy(De.t("something_went_wrong"))),set$2(Ke,!1);return}},dt=Ct=>{set$2(We,""),set$2(Be,proxy({...Ct,features:(Ct==null?void 0:Ct.features)||rt}))},mt=Je.length>0;if(mt){const Ct=Je.find(({selected:kt})=>kt);Ct?dt(Ct):(Je[0].selected=!0,dt(Je[0]))}const gt=hexToHsl((ot==null?void 0:ot.backgroundColor)||"#FFFFFF");let St="<style>"+`
|
|
17
17
|
:host * {
|
|
18
|
-
--s-paywall-bg-start-color: var(--sesamy-paywall-bg-start-color, ${
|
|
19
|
-
--s-paywall-bg-end-color: var(--sesamy-paywall-bg-end-color, ${
|
|
20
|
-
--s-primary-color: var(--sesamy-paywall-primary-color, ${
|
|
18
|
+
--s-paywall-bg-start-color: var(--sesamy-paywall-bg-start-color, ${gt[0]},${gt[1]}%,${gt[2]}%);
|
|
19
|
+
--s-paywall-bg-end-color: var(--sesamy-paywall-bg-end-color, ${gt[0]},${gt[1]}%,${gt[2]+(100-gt[2])*.5}%);
|
|
20
|
+
--s-primary-color: var(--sesamy-paywall-primary-color, ${hslArrayToCSS(hexToHsl(et))}) !important;
|
|
21
21
|
}
|
|
22
|
-
`+"</style>";var M=Ks(),D=I(M),C=A(D),U=G(()=>Y("w-full py-4 @md:py-6 rounded-lg @xl:rounded-3xl",(w==null?void 0:w.showBackground)&&"bg-gradient-to-b from-[hsl(var(--s-paywall-bg-start-color))] to-[hsl(var(--s-paywall-bg-end-color))]",(w==null?void 0:w.showBackground)&&(w==null?void 0:w.dropShadow)&&"shadow-md @xl:shadow-lg"));Qe(C,{get class(){return h(U)},children:(H,K)=>{var re=G(()=>Y("gap-2 @md:gap-4 pt-0 w-full",(w==null?void 0:w.showBackground)&&"px-2 pb-6 @xs:px-8 @md:pb-8 @3xl:px-16",r()&&(w==null?void 0:w.showBackground)&&"px-6 pb-4",!r()&&"max-w-[800px]"));Qe(H,{get class(){return h(re)},up:!0,left:!0,children:(pe,me)=>{var he=Zs(),ce=I(he);Us(ce,{get api(){return t.api},children:(ue,ye)=>{var xe=fe(),Ee=I(xe);B(Ee,()=>f&&!r(),qe=>{var Ie=Gs(),Gt=I(Ie);Ye(Gt,{class:"text-sm gap-1 font-bold w-full",children:(Rr,$n)=>{var ta=Hs(),En=I(ta),dc=A(En);$(()=>Q(dc,t.t("already_subscribing"))),L(En);var fc=E(En,2);di(fc,"class","p-0 border-none enabled:hover:bg-transparent hover:underline text-primary font-bold"),y(Rr,ta)},$$slots:{default:!0}}),Oe(2),y(qe,Ie)}),y(ue,xe)},$$slots:{default:!0}});var Pe=E(ce,2);$(()=>we(Pe,Y("w-full pt-2 @md:pt-4",r()&&"column text-center mb-6")));var q=A(Pe);B(q,()=>b,ue=>{var ye=Vs();_e(ye,"src",_),$(()=>_e(ye,"alt",`${t.t("logo_of")} ${v}`)),y(ue,ye)});var ee=E(q,2);ee.textContent=u,L(Pe);var J=E(Pe,2);B(J,()=>h(o)&&!r(),ue=>{Vo(ue,{get features(){return h(o).features},class:"font-bold text-black mb-2"})});var ie=E(J,2);B(ie,()=>h(a),ue=>{Fs(ue,{get api(){return t.api},get checkout(){return h(a)},get t(){return t.t}})},ue=>{var ye=Ws(),xe=A(ye);B(xe,()=>s.length,Ie=>{Fl(Ie,{get horizontal(){return r()},subscriptions:s,get t(){return t.t},currency:d,selectProduct:k})});var Ee=E(xe,2);B(Ee,()=>c&&c.enabled&&!r(),Ie=>{Gl(Ie,on({singlePurchase:c,get t(){return t.t},selectProduct:k,hasSubscriptions:T},()=>n))});var qe=E(Ee,2);B(qe,()=>!r(),Ie=>{Mr(Ie,{get loading(){return h(l)},get disabled(){return h(l)},class:"mt-2 w-full shadow-md",type:"submit",children:(Gt,Rr)=>{Oe();var $n=It();$(()=>Q($n,t.t("continue"))),y(Gt,$n)},$$slots:{default:!0}})}),L(ye),go("submit",ye,x),y(ue,ye)});var $e=E(ie,2);B($e,()=>h(i),ue=>{Yo(ue,{get text(){return h(i)}})});var Ze=E($e,2),rt=A(Ze);Ye(rt,{class:"gap-2 text-[#5F6D85] text-xs",children:(ue,ye)=>{var xe=Ys(),Ee=I(xe);Ht(Ee,{name:"lock"});var qe=E(Ee,1,!0);$(()=>Q(qe,t.t("secure_payment"))),y(ue,xe)},$$slots:{default:!0}});var xt=E(rt,2);Ye(xt,{class:"gap-2",children:(ue,ye)=>{var xe=fe(),Ee=I(xe);jt(Ee,17,()=>p,$r,(qe,Ie)=>{Pr(qe,{get name(){return h(Ie)}})}),y(ue,xe)},$$slots:{default:!0}}),L(Ze),y(pe,he)},$$slots:{default:!0}})},$$slots:{default:!0}}),L(D);var Z=E(D,2);Er(Z,()=>te,!1,!1),y(e,M),ae()}function Xo(e,t){oe(t,!0);let r=S(t,"template",7,"ARTICLE"),n=We(t,["$$slots","$$events","$$legacy","$$host","template"]),o=Ce(void 0);return Br(()=>{(async()=>{const a=await fetch(n["settings-url"]);N(o,de(await a.json()))})()}),Ut(e,{children:pr,$$slots:{default:(a,l)=>{const i=G(()=>l.api),s=G(()=>l.t);var c=fe(),u=I(c);B(u,()=>h(o),d=>{var m=G(()=>r()==="BOXES");Js(d,on({get api(){return h(i)},get paywall(){return h(o)},get horizontal(){return h(m)},get t(){return h(s)}},()=>({...n,template:r()})))}),y(a,c)}}}),ae({get template(){return r()},set template(a="ARTICLE"){r(a),X()}})}customElements.define("sesamy-paywall-beta",qt(Xo,{template:{}},[],[],!0));var Xs=xr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22.773 28.025"><path d="M20.4 7.8c-.8.5-1.4 1.1-1.8 1.9-.4.8-.7 1.6-.7 2.5 0 1 .3 2 .9 2.8.6.8 1.3 1.5 2.3 1.9-.4 1.2-.9 2.3-1.6 3.3-1 1.4-2 2.8-3.6 2.8s-2-.9-3.8-.9c-1.8 0-2.4.9-3.9.9s-2.5-1.3-3.6-2.9c-1.5-2.3-2.4-4.9-2.4-7.6C2 8 4.9 5.6 7.9 5.6c1.5 0 2.8 1 3.8 1 .9 0 2.4-1.1 4.1-1.1.9 0 1.8.2 2.6.6.8.4 1.5 1 2 1.7zm-5.5-4.1c.8-.9 1.2-2 1.2-3.2V0c-1.3.1-2.6.8-3.4 1.7-.8.9-1.2 2-1.3 3.1v.4h.3c.6 0 1.2-.2 1.8-.5.6-.2 1-.6 1.4-1z" fill="#000"></path></svg>');function Qs(e,t){let r=S(t,"width",8,"18"),n=S(t,"height",8,"18");var o=Xs();$(()=>{_e(o,"width",r()),_e(o,"height",n())}),y(e,o)}var ec=xr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><path d="M12.8 9h-2.5v9H6.6V9H4.9V5.8h1.8v-2C6.6 2.3 7.3 0 10.4 0h2.8v3.1h-2c-.3 0-.8.2-.8.9v1.9h2.8L12.8 9z" fill="#1877F2"></path></svg>');function tc(e,t){let r=S(t,"width",8,"18"),n=S(t,"height",8,"18");var o=ec();$(()=>{_e(o,"width",r()),_e(o,"height",n())}),y(e,o)}var rc=xr('<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg"><path d="M44.1035 23.0123C44.1054 21.4791 43.9758 19.9486 43.716 18.4375H22.498V27.1028H34.6507C34.4021 28.4868 33.8757 29.8061 33.1034 30.9812C32.3311 32.1562 31.3289 33.1628 30.1571 33.9401V39.5649H37.41C41.6567 35.6494 44.1035 29.859 44.1035 23.0123Z" fill="#4285F4"></path><path d="M22.4982 44.9997C28.5698 44.9997 33.6821 43.0061 37.4101 39.5687L30.1573 33.9439C28.1386 35.3126 25.5387 36.0938 22.4982 36.0938C16.6296 36.0938 11.6485 32.1377 9.86736 26.8066H2.39575V32.6033C4.26839 36.3297 7.13989 39.4622 10.6896 41.6512C14.2394 43.8402 18.3277 44.9995 22.4982 44.9997Z" fill="#34A853"></path><path d="M9.86737 26.8073C8.92572 24.0138 8.92572 20.9886 9.86737 18.1951V12.3984H2.39576C0.820432 15.5332 0 18.9929 0 22.5012C0 26.0095 0.820432 29.4692 2.39576 32.604L9.86737 26.8073Z" fill="#FBBC04"></path><path d="M22.4982 8.90741C25.7068 8.85499 28.8071 10.0673 31.1291 12.2823L37.5507 5.86064C33.4788 2.03602 28.0843 -0.0637686 22.4982 0.00147616C18.3277 0.00166623 14.2394 1.16098 10.6896 3.34999C7.13989 5.539 4.26839 8.67155 2.39575 12.3979L9.86736 18.1946C11.6485 12.8635 16.6296 8.90741 22.4982 8.90741Z" fill="#EA4335"></path></svg>');function nc(e,t){let r=S(t,"width",8,"18"),n=S(t,"height",8,"18");var o=rc();$(()=>{_e(o,"width",r()),_e(o,"height",n())}),y(e,o)}var oc=P('<h1 class="text-2xl font-bold mb-2.5">Skapa ett gratis konto eller logga in</h1>'),ac=P('<p class="text-sm mb-5 text-gray-600">Få tillgång till gratis artiklar och nyhetsbrev.</p>'),ic=(e,t,r)=>t(h(r)),lc=(e,t,r)=>t(h(r)),sc=(e,t,r)=>t(h(r)),cc=(e,t,r)=>t(h(r)),uc=P(`<div class="max-w-[800px] mx-auto p-5 text-center bg-[#f8f8f5] border border-[#e9e9da] rounded-lg font-sans"><!> <!> <div class="w-full"><input type="email" id="email" placeholder="Skriv in din epost" class="w-full p-2.5 mb-2.5 border border-gray-300 rounded-md box-border"> <button part="continueButton" class="w-full p-2.5 bg-[#4285f4] text-white border-none rounded-md cursor-pointer mb-2.5 text-sm">Fortsätt</button> <div class="my-4 text-center relative text-gray-500 before:content-[''] before:absolute before:top-1/2 before:left-0 before:w-[45%] before:h-px before:bg-gray-300 after:content-[''] after:absolute after:top-1/2 after:right-0 after:w-[45%] after:h-px after:bg-gray-300">eller</div> <button class="w-full p-2.5 bg-white text-black border border-gray-300 rounded-md cursor-pointer mb-2.5 text-sm flex justify-center items-center"><span class="flex items-center justify-center"><!> <span class="ml-2">Fortsätt med Google</span></span></button> <button class="w-full p-2.5 bg-white text-black border border-gray-300 rounded-md cursor-pointer mb-2.5 text-sm flex justify-center items-center"><span class="flex items-center justify-center"><!> <span class="ml-2">Fortsätt med Facebook</span></span></button> <button class="w-full p-2.5 bg-white text-black border border-gray-300 rounded-md cursor-pointer mb-2.5 text-sm flex justify-center items-center"><span class="flex items-center justify-center"><!> <span class="ml-2">Fortsätt med Apple</span></span></button></div> <p class="text-xs mt-5 text-gray-500">Genom att logga in godkänner du våra <a href="#terms" class="text-[#4285f4] no-underline">Vilkor</a></p></div>`);function Qo(e,t){const r=async n=>{try{await n.auth.loginWithRedirect()}catch(o){console.error("Login failed:",o)}};Ut(e,{children:pr,$$slots:{default:(n,o)=>{var x,k;const a=Wn(()=>o.api);var l=uc(),i=A(l);_t(i,(x=t.$$slots)==null?void 0:x.title,{},T=>{var R=oc();y(T,R)});var s=E(i,2);_t(s,(k=t.$$slots)==null?void 0:k.description,{},T=>{var R=ac();y(T,R)});var c=E(s,2),u=E(A(c),2);u.__click=[ic,r,a];var d=E(u,4);d.__click=[lc,r,a];var m=A(d),f=A(m);nc(f,{width:"18",height:"18"}),Oe(2),L(m),L(d);var g=E(d,2);g.__click=[sc,r,a];var p=A(g),_=A(p);tc(_,{width:"18",height:"18"}),Oe(2),L(p),L(g);var v=E(g,2);v.__click=[cc,r,a];var b=A(v),w=A(b);Qs(w,{width:"18",height:"18"}),Oe(2),L(b),L(v),L(c),Oe(2),L(l),y(n,l)}}})}yr(["click"]),customElements.define("sesamy-registration-wall-beta",qt(Qo,{},["title","description"],[],!0));function ea(e,t){oe(t,!0);let r=S(t,"item-src",7,""),n=S(t,"publisher-content-id",7),o=S(t,"access-url",7,""),a=S(t,"pass",7,""),l=S(t,"access-level",7,"entitlement"),i=S(t,"lock-mode",7,"embed");async function s(m){switch(l()){case"public":return!0;case"logged-in":return m.auth.isAuthenticated();case"entitlement":default:return m.entitlements.hasAccess(r(),a().split(","))}}async function c(m,f){var k;if(!o())return"";const g=typeof f=="object"?await m.entitlements.access(f.id):void 0,p=new URL(o()),_=new Headers({accept:"text/html"});g!=null&&g.token&&_.set("authorization",`Bearer ${g.token}`),g!=null&&g.url&&_.set("x-sesamy-signed-url",g.url);const b=await(await fetch(p,{headers:_})).text(),x=(k=new DOMParser().parseFromString(b,"text/html").querySelector(`sesamy-content-container-beta[access-url='${o()}'], sesamy-content-container-beta[item-src='${r()}'], sesamy-content-container-beta[pass='${a()}']`))==null?void 0:k.querySelector("div[slot='content']");return(x==null?void 0:x.innerHTML)||""}function u(){const m=new CustomEvent("sesamyUnlocked",{detail:{publisherContentId:n(),itemSrc:r()},bubbles:!0,composed:!0});dispatchEvent(m)}async function d(m,f){const g=t.$$host.querySelector('div[slot="content"]');switch(i()){case"encode":return atob((g==null?void 0:g.innerHTML)||"");case"event":return u(),"";case"signedUrl":return c(m,f);case"embed":default:return(g==null?void 0:g.innerHTML)||""}}return Ut(e,{applyStyles:!1,children:pr,$$slots:{default:(m,f)=>{const g=G(()=>f.api);var p=fe(),_=I(p);Ot(_,()=>s(h(g)),null,(v,b)=>{var w=fe(),x=I(w);B(x,()=>h(b),k=>{var T=fe(),R=I(T);Ot(R,()=>d(h(g),h(b)),null,(F,te)=>{var M=fe(),D=I(M);Er(D,()=>h(te),!1,!1),y(F,M)}),y(k,T)},k=>{var F;var T=fe(),R=I(T);_t(R,(F=t.$$slots)==null?void 0:F.preview,{},null),y(k,T)}),y(v,w)}),y(m,p)}}}),ae({get"item-src"(){return r()},set"item-src"(m=""){r(m),X()},get"publisher-content-id"(){return n()},set"publisher-content-id"(m){n(m),X()},get"access-url"(){return o()},set"access-url"(m=""){o(m),X()},get pass(){return a()},set pass(m=""){a(m),X()},get"access-level"(){return l()},set"access-level"(m="entitlement"){l(m),X()},get"lock-mode"(){return i()},set"lock-mode"(m="embed"){i(m),X()}})}customElements.define("sesamy-content-container-beta",qt(ea,{"item-src":{},"publisher-content-id":{},"access-url":{},pass:{},"access-level":{},"lock-mode":{}},["preview"],[],!0)),W.Avatar=ir,W.ContentContainer=ea,W.Login=Go,W.Paywall=Xo,W.RegistrationWall=Qo,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
|
|
22
|
+
`+"</style>";var bt=root$3(),ht=first_child(bt),yt=child(ht),$t=derived(()=>twMerge("w-full py-4 @md:py-6 rounded-lg @xl:rounded-3xl",(ot==null?void 0:ot.showBackground)&&"bg-gradient-to-b from-[hsl(var(--s-paywall-bg-start-color))] to-[hsl(var(--s-paywall-bg-end-color))]",(ot==null?void 0:ot.showBackground)&&(ot==null?void 0:ot.dropShadow)&&"shadow-md @xl:shadow-lg"));Column(yt,{get class(){return get$1($t)},children:(Ct,kt)=>{var Nt=derived(()=>twMerge("gap-2 @md:gap-4 pt-0 w-full",(ot==null?void 0:ot.showBackground)&&"px-2 pb-6 @xs:px-8 @md:pb-8 @3xl:px-16",Fe()&&(ot==null?void 0:ot.showBackground)&&"px-6 pb-4",!Fe()&&"max-w-[800px]"));Column(Ct,{get class(){return get$1(Nt)},up:!0,left:!0,children:(ut,ft)=>{var _t=root_2$1(),Pt=first_child(_t);NotLoggedIn(Pt,{get api(){return De.api},children:(Ut,zt)=>{var Vt=comment(),Gt=first_child(Vt);{var Yt=Qt=>{var er=root_4(),or=first_child(er);Row(or,{class:"text-sm gap-1 font-bold w-full",children:(Xt,ur)=>{var ir=root_5(),tr=first_child(ir),yr=child(tr,!0);template_effect(()=>set_text(yr,De.t("already_subscribing"))),reset(tr);var br=sibling(tr,2);set_custom_element_data(br,"class","p-0 border-none enabled:hover:bg-transparent hover:underline text-primary font-bold"),append$1(Xt,ir)},$$slots:{default:!0}}),next(2),append$1(Qt,er)};if_block(Gt,Qt=>{tt&&!Fe()&&Qt(Yt)})}append$1(Ut,Vt)},$$slots:{default:!0}});var Rt=sibling(Pt,2);const Lt=derived(()=>twMerge("w-full pt-2 @md:pt-4",Fe()&&"column text-center mb-6"));var xt=child(Rt);{var Ot=Ut=>{var zt=root_6();set_attribute(zt,"src",at),template_effect(()=>set_attribute(zt,"alt",`${De.t("logo_of")} ${st}`)),append$1(Ut,zt)};if_block(xt,Ut=>{ct&&Ut(Ot)})}var At=sibling(xt,2);At.textContent=Ye,reset(Rt);var Tt=sibling(Rt,2);{var jt=Ut=>{Features(Ut,{get features(){return get$1(Be).features},class:"font-bold text-black mb-2"})};if_block(Tt,Ut=>{get$1(Be)&&!Fe()&&Ut(jt)})}var Mt=sibling(Tt,2);{var Kt=Ut=>{PayNowForm(Ut,{get api(){return De.api},get checkout(){return get$1(Ge)},get t(){return De.t}})},Wt=Ut=>{var zt=root_9(),Vt=child(zt);{var Gt=Xt=>{Subscriptions(Xt,{get horizontal(){return Fe()},subscriptions:Je,get t(){return De.t},currency:Qe,selectProduct:dt,redirectUrl:Xe})};if_block(Vt,Xt=>{Je.length&&Xt(Gt)})}var Yt=sibling(Vt,2);{var Qt=Xt=>{SinglePurchase(Xt,spread_props({singlePurchase:Ze,get t(){return De.t},selectProduct:dt,hasSubscriptions:mt},()=>He))};if_block(Yt,Xt=>{Ze&&Ze.enabled&&!Fe()&&Xt(Qt)})}var er=sibling(Yt,2);{var or=Xt=>{Button_wc(Xt,{get loading(){return get$1(Ke)},get disabled(){return get$1(Ke)},class:"mt-2 w-full shadow-md",type:"submit",children:(ur,ir)=>{next();var tr=text();template_effect(()=>set_text(tr,De.t("continue"))),append$1(ur,tr)},$$slots:{default:!0}})};if_block(er,Xt=>{Fe()||Xt(or)})}reset(zt),event("submit",zt,lt),append$1(Ut,zt)};if_block(Mt,Ut=>{get$1(Ge)?Ut(Kt):Ut(Wt,!1)})}var pt=sibling(Mt,2);{var Et=Ut=>{Error$1(Ut,{get text(){return get$1(We)}})};if_block(pt,Ut=>{get$1(We)&&Ut(Et)})}var It=sibling(pt,2),Ht=child(It);Row(Ht,{class:"gap-2 text-[#5F6D85] text-xs",children:(Ut,zt)=>{var Vt=root_15(),Gt=first_child(Vt);Icon(Gt,{name:"lock"});var Yt=sibling(Gt,1,!0);template_effect(()=>set_text(Yt,De.t("secure_payment"))),append$1(Ut,Vt)},$$slots:{default:!0}});var qt=sibling(Ht,2);Row(qt,{class:"gap-2",children:(Ut,zt)=>{var Vt=comment(),Gt=first_child(Vt);each(Gt,17,()=>nt,index,(Yt,Qt)=>{PaymentMethod(Yt,{get name(){return get$1(Qt)}})}),append$1(Ut,Vt)},$$slots:{default:!0}}),reset(It),template_effect(()=>set_class(Rt,get$1(Lt))),append$1(ut,_t)},$$slots:{default:!0}})},$$slots:{default:!0}}),reset(ht);var vt=sibling(ht,2);html$3(vt,()=>St,!1,!1),append$1($e,bt),pop$1()}function Paywall_wc($e,De){push$6(De,!0);let Fe=prop(De,"template",7,"ARTICLE"),He=rest_props(De,["$$slots","$$events","$$legacy","$$host","template"]),Be=state(void 0);return user_effect(()=>{(async()=>{const Ge=await fetch(He["settings-url"]);set$2(Be,proxy(await Ge.json()))})()}),Base($e,{children:invalid_default_snippet,$$slots:{default:(Ge,Ke)=>{const We=derived(()=>Ke.api),Xe=derived(()=>Ke.t);var Je=comment(),Ze=first_child(Je);{var Ye=Qe=>{var et=derived(()=>Fe()==="BOXES"),tt=derived(()=>({...He,template:Fe()}));Renderer(Qe,spread_props({get api(){return get$1(We)},get paywall(){return get$1(Be)},get horizontal(){return get$1(et)},get t(){return get$1(Xe)}},()=>get$1(tt)))};if_block(Ze,Qe=>{get$1(Be)&&Qe(Ye)})}append$1(Ge,Je)}}}),pop$1({get template(){return Fe()},set template(Ge="ARTICLE"){Fe(Ge),flush_sync()}})}customElements.define("sesamy-paywall-beta",create_custom_element(Paywall_wc,{template:{}},[],[],!0));var root$2=ns_template('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22.773 28.025"><path d="M20.4 7.8c-.8.5-1.4 1.1-1.8 1.9-.4.8-.7 1.6-.7 2.5 0 1 .3 2 .9 2.8.6.8 1.3 1.5 2.3 1.9-.4 1.2-.9 2.3-1.6 3.3-1 1.4-2 2.8-3.6 2.8s-2-.9-3.8-.9c-1.8 0-2.4.9-3.9.9s-2.5-1.3-3.6-2.9c-1.5-2.3-2.4-4.9-2.4-7.6C2 8 4.9 5.6 7.9 5.6c1.5 0 2.8 1 3.8 1 .9 0 2.4-1.1 4.1-1.1.9 0 1.8.2 2.6.6.8.4 1.5 1 2 1.7zm-5.5-4.1c.8-.9 1.2-2 1.2-3.2V0c-1.3.1-2.6.8-3.4 1.7-.8.9-1.2 2-1.3 3.1v.4h.3c.6 0 1.2-.2 1.8-.5.6-.2 1-.6 1.4-1z" fill="#000"></path></svg>');function AppleLogo($e,De){let Fe=prop(De,"width",8,"18"),He=prop(De,"height",8,"18");var Be=root$2();template_effect(()=>{set_attribute(Be,"width",Fe()),set_attribute(Be,"height",He())}),append$1($e,Be)}var root$1=ns_template('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><path d="M12.8 9h-2.5v9H6.6V9H4.9V5.8h1.8v-2C6.6 2.3 7.3 0 10.4 0h2.8v3.1h-2c-.3 0-.8.2-.8.9v1.9h2.8L12.8 9z" fill="#1877F2"></path></svg>');function FacebookLogo($e,De){let Fe=prop(De,"width",8,"18"),He=prop(De,"height",8,"18");var Be=root$1();template_effect(()=>{set_attribute(Be,"width",Fe()),set_attribute(Be,"height",He())}),append$1($e,Be)}var root=ns_template('<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg"><path d="M44.1035 23.0123C44.1054 21.4791 43.9758 19.9486 43.716 18.4375H22.498V27.1028H34.6507C34.4021 28.4868 33.8757 29.8061 33.1034 30.9812C32.3311 32.1562 31.3289 33.1628 30.1571 33.9401V39.5649H37.41C41.6567 35.6494 44.1035 29.859 44.1035 23.0123Z" fill="#4285F4"></path><path d="M22.4982 44.9997C28.5698 44.9997 33.6821 43.0061 37.4101 39.5687L30.1573 33.9439C28.1386 35.3126 25.5387 36.0938 22.4982 36.0938C16.6296 36.0938 11.6485 32.1377 9.86736 26.8066H2.39575V32.6033C4.26839 36.3297 7.13989 39.4622 10.6896 41.6512C14.2394 43.8402 18.3277 44.9995 22.4982 44.9997Z" fill="#34A853"></path><path d="M9.86737 26.8073C8.92572 24.0138 8.92572 20.9886 9.86737 18.1951V12.3984H2.39576C0.820432 15.5332 0 18.9929 0 22.5012C0 26.0095 0.820432 29.4692 2.39576 32.604L9.86737 26.8073Z" fill="#FBBC04"></path><path d="M22.4982 8.90741C25.7068 8.85499 28.8071 10.0673 31.1291 12.2823L37.5507 5.86064C33.4788 2.03602 28.0843 -0.0637686 22.4982 0.00147616C18.3277 0.00166623 14.2394 1.16098 10.6896 3.34999C7.13989 5.539 4.26839 8.67155 2.39575 12.3979L9.86736 18.1946C11.6485 12.8635 16.6296 8.90741 22.4982 8.90741Z" fill="#EA4335"></path></svg>');function GoogleLogo($e,De){let Fe=prop(De,"width",8,"18"),He=prop(De,"height",8,"18");var Be=root();template_effect(()=>{set_attribute(Be,"width",Fe()),set_attribute(Be,"height",He())}),append$1($e,Be)}var root_2=template('<h1 class="text-2xl font-bold mb-2.5">Skapa ett gratis konto eller logga in</h1>'),root_3=template('<p class="text-sm mb-5 text-gray-600">Få tillgång till gratis artiklar och nyhetsbrev.</p>'),on_click=($e,De,Fe)=>De(get$1(Fe)),on_click_1=($e,De,Fe)=>De(get$1(Fe)),on_click_2=($e,De,Fe)=>De(get$1(Fe)),on_click_3=($e,De,Fe)=>De(get$1(Fe)),root_1=template(`<div class="max-w-[800px] mx-auto p-5 text-center bg-[#f8f8f5] border border-[#e9e9da] rounded-lg font-sans"><!> <!> <div class="w-full"><input type="email" id="email" placeholder="Skriv in din epost" class="w-full p-2.5 mb-2.5 border border-gray-300 rounded-md box-border"> <button part="continueButton" class="w-full p-2.5 bg-[#4285f4] text-white border-none rounded-md cursor-pointer mb-2.5 text-sm">Fortsätt</button> <div class="my-4 text-center relative text-gray-500 before:content-[''] before:absolute before:top-1/2 before:left-0 before:w-[45%] before:h-px before:bg-gray-300 after:content-[''] after:absolute after:top-1/2 after:right-0 after:w-[45%] after:h-px after:bg-gray-300">eller</div> <button class="w-full p-2.5 bg-white text-black border border-gray-300 rounded-md cursor-pointer mb-2.5 text-sm flex justify-center items-center"><span class="flex items-center justify-center"><!> <span class="ml-2">Fortsätt med Google</span></span></button> <button class="w-full p-2.5 bg-white text-black border border-gray-300 rounded-md cursor-pointer mb-2.5 text-sm flex justify-center items-center"><span class="flex items-center justify-center"><!> <span class="ml-2">Fortsätt med Facebook</span></span></button> <button class="w-full p-2.5 bg-white text-black border border-gray-300 rounded-md cursor-pointer mb-2.5 text-sm flex justify-center items-center"><span class="flex items-center justify-center"><!> <span class="ml-2">Fortsätt med Apple</span></span></button></div> <p class="text-xs mt-5 text-gray-500">Genom att logga in godkänner du våra <a href="#terms" class="text-[#4285f4] no-underline">Vilkor</a></p></div>`);function RegistrationWall_wc($e,De){const Fe=async He=>{try{await He.auth.loginWithRedirect()}catch(Be){console.error("Login failed:",Be)}};Base($e,{children:invalid_default_snippet,$$slots:{default:(He,Be)=>{const Ge=derived_safe_equal(()=>Be.api);var Ke=root_1(),We=child(Ke);slot(We,De,"title",{},ot=>{var lt=root_2();append$1(ot,lt)});var Xe=sibling(We,2);slot(Xe,De,"description",{},ot=>{var lt=root_3();append$1(ot,lt)});var Je=sibling(Xe,2),Ze=sibling(child(Je),2);Ze.__click=[on_click,Fe,Ge];var Ye=sibling(Ze,4);Ye.__click=[on_click_1,Fe,Ge];var Qe=child(Ye),et=child(Qe);GoogleLogo(et,{width:"18",height:"18"}),next(2),reset(Qe),reset(Ye);var tt=sibling(Ye,2);tt.__click=[on_click_2,Fe,Ge];var rt=child(tt),nt=child(rt);FacebookLogo(nt,{width:"18",height:"18"}),next(2),reset(rt),reset(tt);var at=sibling(tt,2);at.__click=[on_click_3,Fe,Ge];var st=child(at),ct=child(st);AppleLogo(ct,{width:"18",height:"18"}),next(2),reset(st),reset(at),reset(Je),next(2),reset(Ke),append$1(He,Ke)}}})}delegate(["click"]),customElements.define("sesamy-registration-wall-beta",create_custom_element(RegistrationWall_wc,{},["title","description"],[],!0));var rr=Object.defineProperty,nr=($e,De,Fe)=>De in $e?rr($e,De,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):$e[De]=Fe,Dt=($e,De,Fe)=>nr($e,typeof De!="symbol"?De+"":De,Fe),commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fails$h=function($e){try{return!!$e()}catch{return!0}},fails$g=fails$h,functionBindNative=!fails$g(function(){var $e=(function(){}).bind();return typeof $e!="function"||$e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,FunctionPrototype$2=Function.prototype,call$i=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$2.bind.bind(call$i,call$i),functionUncurryThis=NATIVE_BIND$3?uncurryThisWithBind:function($e){return function(){return call$i.apply($e,arguments)}},uncurryThis$n=functionUncurryThis,toString$a=uncurryThis$n({}.toString),stringSlice$4=uncurryThis$n("".slice),classofRaw$2=function($e){return stringSlice$4(toString$a($e),8,-1)},uncurryThis$m=functionUncurryThis,fails$f=fails$h,classof$7=classofRaw$2,$Object$4=Object,split$3=uncurryThis$m("".split),indexedObject=fails$f(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function($e){return classof$7($e)==="String"?split$3($e,""):$Object$4($e)}:$Object$4,isNullOrUndefined$4=function($e){return $e==null},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$c=TypeError,requireObjectCoercible$4=function($e){if(isNullOrUndefined$3($e))throw new $TypeError$c("Can't call method on "+$e);return $e},IndexedObject$1=indexedObject,requireObjectCoercible$3=requireObjectCoercible$4,toIndexedObject$5=function($e){return IndexedObject$1(requireObjectCoercible$3($e))},check=function($e){return $e&&$e.Math===Math&&$e},globalThis_1=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")(),sharedStore={exports:{}},isPure=!1,globalThis$n=globalThis_1,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function($e,De){try{defineProperty$6(globalThis$n,$e,{value:De,configurable:!0,writable:!0})}catch{globalThis$n[$e]=De}return De},globalThis$m=globalThis_1,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=sharedStore.exports=globalThis$m[SHARED]||defineGlobalProperty$2(SHARED,{});(store$3.versions||(store$3.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedStoreExports=sharedStore.exports,store$2=sharedStoreExports,shared$3=function($e,De){return store$2[$e]||(store$2[$e]=De||{})},requireObjectCoercible$2=requireObjectCoercible$4,$Object$3=Object,toObject$4=function($e){return $Object$3(requireObjectCoercible$2($e))},uncurryThis$l=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=uncurryThis$l({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function($e,De){return hasOwnProperty(toObject$3($e),De)},uncurryThis$k=functionUncurryThis,id=0,postfix=Math.random(),toString$9=uncurryThis$k(1 .toString),uid$2=function($e){return"Symbol("+($e===void 0?"":$e)+")_"+toString$9(++id+postfix,36)},globalThis$l=globalThis_1,navigator$1=globalThis$l.navigator,userAgent$5=navigator$1&&navigator$1.userAgent,environmentUserAgent=userAgent$5?String(userAgent$5):"",globalThis$k=globalThis_1,userAgent$4=environmentUserAgent,process$4=globalThis$k.process,Deno$1=globalThis$k.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,match,version$1;v8&&(match=v8.split("."),version$1=match[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version$1&&userAgent$4&&(match=userAgent$4.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=userAgent$4.match(/Chrome\/(\d+)/),match&&(version$1=+match[1])));var environmentV8Version=version$1,V8_VERSION$1=environmentV8Version,fails$e=fails$h,globalThis$j=globalThis_1,$String$5=globalThis$j.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$e(function(){var $e=Symbol("symbol detection");return!$String$5($e)||!(Object($e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",globalThis$i=globalThis_1,shared$2=shared$3,hasOwn$b=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID$1=useSymbolAsUid,Symbol$1=globalThis$i.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID$1?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$h=function($e){return hasOwn$b(WellKnownSymbolsStore,$e)||(WellKnownSymbolsStore[$e]=NATIVE_SYMBOL&&hasOwn$b(Symbol$1,$e)?Symbol$1[$e]:createWellKnownSymbol("Symbol."+$e)),WellKnownSymbolsStore[$e]},documentAll=typeof document=="object"&&document.all,isCallable$l=typeof documentAll>"u"&&documentAll!==void 0?function($e){return typeof $e=="function"||$e===documentAll}:function($e){return typeof $e=="function"},isCallable$k=isCallable$l,isObject$c=function($e){return typeof $e=="object"?$e!==null:isCallable$k($e)},isObject$b=isObject$c,$String$4=String,$TypeError$b=TypeError,anObject$b=function($e){if(isObject$b($e))return $e;throw new $TypeError$b($String$4($e)+" is not an object")},objectDefineProperties={},fails$d=fails$h,descriptors=!fails$d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),DESCRIPTORS$g=descriptors,fails$c=fails$h,v8PrototypeDefineBug=DESCRIPTORS$g&&fails$c(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),objectDefineProperty={},globalThis$h=globalThis_1,isObject$a=isObject$c,document$3=globalThis$h.document,EXISTS$1=isObject$a(document$3)&&isObject$a(document$3.createElement),documentCreateElement$2=function($e){return EXISTS$1?document$3.createElement($e):{}},DESCRIPTORS$f=descriptors,fails$b=fails$h,createElement$1=documentCreateElement$2,ie8DomDefine=!DESCRIPTORS$f&&!fails$b(function(){return Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a!==7}),NATIVE_BIND$2=functionBindNative,call$h=Function.prototype.call,functionCall=NATIVE_BIND$2?call$h.bind(call$h):function(){return call$h.apply(call$h,arguments)},globalThis$g=globalThis_1,isCallable$j=isCallable$l,aFunction=function($e){return isCallable$j($e)?$e:void 0},getBuiltIn$c=function($e,De){return arguments.length<2?aFunction(globalThis$g[$e]):globalThis$g[$e]&&globalThis$g[$e][De]},uncurryThis$j=functionUncurryThis,objectIsPrototypeOf=uncurryThis$j({}.isPrototypeOf),getBuiltIn$b=getBuiltIn$c,isCallable$i=isCallable$l,isPrototypeOf$3=objectIsPrototypeOf,USE_SYMBOL_AS_UID=useSymbolAsUid,$Object$2=Object,isSymbol$2=USE_SYMBOL_AS_UID?function($e){return typeof $e=="symbol"}:function($e){var De=getBuiltIn$b("Symbol");return isCallable$i(De)&&isPrototypeOf$3(De.prototype,$Object$2($e))},$String$3=String,tryToString$4=function($e){try{return $String$3($e)}catch{return"Object"}},isCallable$h=isCallable$l,tryToString$3=tryToString$4,$TypeError$a=TypeError,aCallable$b=function($e){if(isCallable$h($e))return $e;throw new $TypeError$a(tryToString$3($e)+" is not a function")},aCallable$a=aCallable$b,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function($e,De){var Fe=$e[De];return isNullOrUndefined$2(Fe)?void 0:aCallable$a(Fe)},call$g=functionCall,isCallable$g=isCallable$l,isObject$9=isObject$c,$TypeError$9=TypeError,ordinaryToPrimitive$1=function($e,De){var Fe,He;if(De==="string"&&isCallable$g(Fe=$e.toString)&&!isObject$9(He=call$g(Fe,$e))||isCallable$g(Fe=$e.valueOf)&&!isObject$9(He=call$g(Fe,$e))||De!=="string"&&isCallable$g(Fe=$e.toString)&&!isObject$9(He=call$g(Fe,$e)))return He;throw new $TypeError$9("Can't convert object to primitive value")},call$f=functionCall,isObject$8=isObject$c,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$g=wellKnownSymbol$h,$TypeError$8=TypeError,TO_PRIMITIVE=wellKnownSymbol$g("toPrimitive"),toPrimitive$1=function($e,De){if(!isObject$8($e)||isSymbol$1($e))return $e;var Fe=getMethod$2($e,TO_PRIMITIVE),He;if(Fe){if(De===void 0&&(De="default"),He=call$f(Fe,$e,De),!isObject$8(He)||isSymbol$1(He))return He;throw new $TypeError$8("Can't convert object to primitive value")}return De===void 0&&(De="number"),ordinaryToPrimitive($e,De)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function($e){var De=toPrimitive($e,"string");return isSymbol(De)?De:De+""},DESCRIPTORS$e=descriptors,IE8_DOM_DEFINE$1=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$a=anObject$b,toPropertyKey$1=toPropertyKey$2,$TypeError$7=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$e?V8_PROTOTYPE_DEFINE_BUG$1?function($e,De,Fe){if(anObject$a($e),De=toPropertyKey$1(De),anObject$a(Fe),typeof $e=="function"&&De==="prototype"&&"value"in Fe&&WRITABLE in Fe&&!Fe[WRITABLE]){var He=$getOwnPropertyDescriptor$1($e,De);He&&He[WRITABLE]&&($e[De]=Fe.value,Fe={configurable:CONFIGURABLE$1 in Fe?Fe[CONFIGURABLE$1]:He[CONFIGURABLE$1],enumerable:ENUMERABLE in Fe?Fe[ENUMERABLE]:He[ENUMERABLE],writable:!1})}return $defineProperty($e,De,Fe)}:$defineProperty:function($e,De,Fe){if(anObject$a($e),De=toPropertyKey$1(De),anObject$a(Fe),IE8_DOM_DEFINE$1)try{return $defineProperty($e,De,Fe)}catch{}if("get"in Fe||"set"in Fe)throw new $TypeError$7("Accessors not supported");return"value"in Fe&&($e[De]=Fe.value),$e};var ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function($e){var De=+$e;return(De>0?floor$3:ceil)(De)},trunc=mathTrunc,toIntegerOrInfinity$3=function($e){var De=+$e;return De!==De||De===0?0:trunc(De)},toIntegerOrInfinity$2=toIntegerOrInfinity$3,max=Math.max,min$1=Math.min,toAbsoluteIndex$2=function($e,De){var Fe=toIntegerOrInfinity$2($e);return Fe<0?max(Fe+De,0):min$1(Fe,De)},toIntegerOrInfinity$1=toIntegerOrInfinity$3,min=Math.min,toLength$1=function($e){var De=toIntegerOrInfinity$1($e);return De>0?min(De,9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$3=function($e){return toLength($e.length)},toIndexedObject$4=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$1=function($e){return function(De,Fe,He){var Be=toIndexedObject$4(De),Ge=lengthOfArrayLike$2(Be);if(Ge===0)return!$e&&-1;var Ke=toAbsoluteIndex$1(He,Ge),We;if($e&&Fe!==Fe){for(;Ge>Ke;)if(We=Be[Ke++],We!==We)return!0}else for(;Ge>Ke;Ke++)if(($e||Ke in Be)&&Be[Ke]===Fe)return $e||Ke||0;return!$e&&-1}},arrayIncludes={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},hiddenKeys$4={},uncurryThis$i=functionUncurryThis,hasOwn$a=hasOwnProperty_1,toIndexedObject$3=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$3=hiddenKeys$4,push$5=uncurryThis$i([].push),objectKeysInternal=function($e,De){var Fe=toIndexedObject$3($e),He=0,Be=[],Ge;for(Ge in Fe)!hasOwn$a(hiddenKeys$3,Ge)&&hasOwn$a(Fe,Ge)&&push$5(Be,Ge);for(;De.length>He;)hasOwn$a(Fe,Ge=De[He++])&&(~indexOf(Be,Ge)||push$5(Be,Ge));return Be},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,objectKeys$2=Object.keys||function($e){return internalObjectKeys$1($e,enumBugKeys$2)},DESCRIPTORS$d=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$4=objectDefineProperty,anObject$9=anObject$b,toIndexedObject$2=toIndexedObject$5,objectKeys$1=objectKeys$2;objectDefineProperties.f=DESCRIPTORS$d&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function($e,De){anObject$9($e);for(var Fe=toIndexedObject$2(De),He=objectKeys$1(De),Be=He.length,Ge=0,Ke;Be>Ge;)definePropertyModule$4.f($e,Ke=He[Ge++],Fe[Ke]);return $e};var getBuiltIn$a=getBuiltIn$c,html$2=getBuiltIn$a("document","documentElement"),shared$1=shared$3,uid=uid$2,keys=shared$1("keys"),sharedKey$3=function($e){return keys[$e]||(keys[$e]=uid($e))},anObject$8=anObject$b,definePropertiesModule=objectDefineProperties,enumBugKeys$1=enumBugKeys$3,hiddenKeys$2=hiddenKeys$4,html$1=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$2=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$2("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function($e){return LT+SCRIPT+GT+$e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function($e){$e.write(scriptTag("")),$e.close();var De=$e.parentWindow.Object;return $e=null,De},NullProtoObjectViaIFrame=function(){var $e=documentCreateElement$1("iframe"),De="java"+SCRIPT+":",Fe;return $e.style.display="none",html$1.appendChild($e),$e.src=String(De),Fe=$e.contentWindow.document,Fe.open(),Fe.write(scriptTag("document.F=Object")),Fe.close(),Fe.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var $e=enumBugKeys$1.length;$e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys$1[$e]];return NullProtoObject()};hiddenKeys$2[IE_PROTO$1]=!0;var objectCreate=Object.create||function($e,De){var Fe;return $e!==null?(EmptyConstructor[PROTOTYPE]=anObject$8($e),Fe=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,Fe[IE_PROTO$1]=$e):Fe=NullProtoObject(),De===void 0?Fe:definePropertiesModule.f(Fe,De)},wellKnownSymbol$f=wellKnownSymbol$h,create$3=objectCreate,defineProperty$5=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$f("unscopables"),ArrayPrototype$1=Array.prototype;ArrayPrototype$1[UNSCOPABLES]===void 0&&defineProperty$5(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$3(null)});var addToUnscopables$1=function($e){ArrayPrototype$1[UNSCOPABLES][$e]=!0},iterators={},globalThis$f=globalThis_1,isCallable$f=isCallable$l,WeakMap$1=globalThis$f.WeakMap,weakMapBasicDetection=isCallable$f(WeakMap$1)&&/native code/.test(String(WeakMap$1)),createPropertyDescriptor$7=function($e,De){return{enumerable:!($e&1),configurable:!($e&2),writable:!($e&4),value:De}},DESCRIPTORS$c=descriptors,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$6=createPropertyDescriptor$7,createNonEnumerableProperty$7=DESCRIPTORS$c?function($e,De,Fe){return definePropertyModule$3.f($e,De,createPropertyDescriptor$6(1,Fe))}:function($e,De,Fe){return $e[De]=Fe,$e},NATIVE_WEAK_MAP=weakMapBasicDetection,globalThis$e=globalThis_1,isObject$7=isObject$c,createNonEnumerableProperty$6=createNonEnumerableProperty$7,hasOwn$9=hasOwnProperty_1,shared=sharedStoreExports,sharedKey$1=sharedKey$3,hiddenKeys$1=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=globalThis$e.TypeError,WeakMap$2=globalThis$e.WeakMap,set$1,get,has,enforce=function($e){return has($e)?get($e):set$1($e,{})},getterFor=function($e){return function(De){var Fe;if(!isObject$7(De)||(Fe=get(De)).type!==$e)throw new TypeError$4("Incompatible receiver, "+$e+" required");return Fe}};if(NATIVE_WEAK_MAP||shared.state){var store$1=shared.state||(shared.state=new WeakMap$2);store$1.get=store$1.get,store$1.has=store$1.has,store$1.set=store$1.set,set$1=function($e,De){if(store$1.has($e))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return De.facade=$e,store$1.set($e,De),De},get=function($e){return store$1.get($e)||{}},has=function($e){return store$1.has($e)}}else{var STATE=sharedKey$1("state");hiddenKeys$1[STATE]=!0,set$1=function($e,De){if(hasOwn$9($e,STATE))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return De.facade=$e,createNonEnumerableProperty$6($e,STATE,De),De},get=function($e){return hasOwn$9($e,STATE)?$e[STATE]:{}},has=function($e){return hasOwn$9($e,STATE)}}var internalState={set:set$1,get,has,enforce,getterFor},objectGetOwnPropertyDescriptor={},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function($e){var De=getOwnPropertyDescriptor$2(this,$e);return!!De&&De.enumerable}:$propertyIsEnumerable;var DESCRIPTORS$b=descriptors,call$e=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$5=createPropertyDescriptor$7,toIndexedObject$1=toIndexedObject$5,toPropertyKey=toPropertyKey$2,hasOwn$8=hasOwnProperty_1,IE8_DOM_DEFINE=ie8DomDefine,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$b?$getOwnPropertyDescriptor:function($e,De){if($e=toIndexedObject$1($e),De=toPropertyKey(De),IE8_DOM_DEFINE)try{return $getOwnPropertyDescriptor($e,De)}catch{}if(hasOwn$8($e,De))return createPropertyDescriptor$5(!call$e(propertyIsEnumerableModule$1.f,$e,De),$e[De])};var makeBuiltIn$3={exports:{}},DESCRIPTORS$a=descriptors,hasOwn$7=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$a&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$7(FunctionPrototype$1,"name"),PROPER=EXISTS&&(function(){}).name==="something",CONFIGURABLE=EXISTS&&(!DESCRIPTORS$a||DESCRIPTORS$a&&getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS,PROPER,CONFIGURABLE},uncurryThis$h=functionUncurryThis,isCallable$e=isCallable$l,store=sharedStoreExports,functionToString=uncurryThis$h(Function.toString);isCallable$e(store.inspectSource)||(store.inspectSource=function($e){return functionToString($e)});var inspectSource$3=store.inspectSource,uncurryThis$g=functionUncurryThis,fails$a=fails$h,isCallable$d=isCallable$l,hasOwn$6=hasOwnProperty_1,DESCRIPTORS$9=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$5=internalState,enforceInternalState=InternalStateModule$5.enforce,getInternalState$2=InternalStateModule$5.get,$String$2=String,defineProperty$4=Object.defineProperty,stringSlice$3=uncurryThis$g("".slice),replace$5=uncurryThis$g("".replace),join$4=uncurryThis$g([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$9&&!fails$a(function(){return defineProperty$4(function(){},"length",{value:8}).length!==8}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function($e,De,Fe){stringSlice$3($String$2(De),0,7)==="Symbol("&&(De="["+replace$5($String$2(De),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),Fe&&Fe.getter&&(De="get "+De),Fe&&Fe.setter&&(De="set "+De),(!hasOwn$6($e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&$e.name!==De)&&(DESCRIPTORS$9?defineProperty$4($e,"name",{value:De,configurable:!0}):$e.name=De),CONFIGURABLE_LENGTH&&Fe&&hasOwn$6(Fe,"arity")&&$e.length!==Fe.arity&&defineProperty$4($e,"length",{value:Fe.arity});try{Fe&&hasOwn$6(Fe,"constructor")&&Fe.constructor?DESCRIPTORS$9&&defineProperty$4($e,"prototype",{writable:!1}):$e.prototype&&($e.prototype=void 0)}catch{}var He=enforceInternalState($e);return hasOwn$6(He,"source")||(He.source=join$4(TEMPLATE,typeof De=="string"?De:"")),$e};Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$d(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString");var makeBuiltInExports=makeBuiltIn$3.exports,isCallable$c=isCallable$l,definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltInExports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$c=function($e,De,Fe,He){He||(He={});var Be=He.enumerable,Ge=He.name!==void 0?He.name:De;if(isCallable$c(Fe)&&makeBuiltIn$1(Fe,Ge,He),He.global)Be?$e[De]=Fe:defineGlobalProperty$1(De,Fe);else{try{He.unsafe?$e[De]&&(Be=!0):delete $e[De]}catch{}Be?$e[De]=Fe:definePropertyModule$2.f($e,De,{value:Fe,enumerable:!1,configurable:!He.nonConfigurable,writable:!He.nonWritable})}return $e},objectGetOwnPropertyNames={},internalObjectKeys=objectKeysInternal,enumBugKeys=enumBugKeys$3,hiddenKeys=enumBugKeys.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function($e){return internalObjectKeys($e,hiddenKeys)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$9=getBuiltIn$c,uncurryThis$f=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$7=anObject$b,concat$1=uncurryThis$f([].concat),ownKeys$2=getBuiltIn$9("Reflect","ownKeys")||function($e){var De=getOwnPropertyNamesModule.f(anObject$7($e)),Fe=getOwnPropertySymbolsModule$1.f;return Fe?concat$1(De,Fe($e)):De},hasOwn$5=hasOwnProperty_1,ownKeys$1=ownKeys$2,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$2=function($e,De,Fe){for(var He=ownKeys$1(De),Be=definePropertyModule$1.f,Ge=getOwnPropertyDescriptorModule.f,Ke=0;Ke<He.length;Ke++){var We=He[Ke];!hasOwn$5($e,We)&&!(Fe&&hasOwn$5(Fe,We))&&Be($e,We,Ge(De,We))}},fails$9=fails$h,isCallable$b=isCallable$l,replacement=/#|\.prototype\./,isForced$2=function($e,De){var Fe=data[normalize($e)];return Fe===POLYFILL?!0:Fe===NATIVE?!1:isCallable$b(De)?fails$9(De):!!De},normalize=isForced$2.normalize=function($e){return String($e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,globalThis$d=globalThis_1,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$5=createNonEnumerableProperty$7,defineBuiltIn$b=defineBuiltIn$c,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function($e,De){var Fe=$e.target,He=$e.global,Be=$e.stat,Ge,Ke,We,Xe,Je,Ze;if(He?Ke=globalThis$d:Be?Ke=globalThis$d[Fe]||defineGlobalProperty(Fe,{}):Ke=globalThis$d[Fe]&&globalThis$d[Fe].prototype,Ke)for(We in De){if(Je=De[We],$e.dontCallGetSet?(Ze=getOwnPropertyDescriptor$1(Ke,We),Xe=Ze&&Ze.value):Xe=Ke[We],Ge=isForced$1(He?We:Fe+(Be?".":"#")+We,$e.forced),!Ge&&Xe!==void 0){if(typeof Je==typeof Xe)continue;copyConstructorProperties$1(Je,Xe)}($e.sham||Xe&&Xe.sham)&&createNonEnumerableProperty$5(Je,"sham",!0),defineBuiltIn$b(Ke,We,Je,$e)}},fails$8=fails$h,correctPrototypeGetter=!fails$8(function(){function $e(){}return $e.prototype.constructor=null,Object.getPrototypeOf(new $e)!==$e.prototype}),hasOwn$4=hasOwnProperty_1,isCallable$a=isCallable$l,toObject$2=toObject$4,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object$1=Object,ObjectPrototype=$Object$1.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$1.getPrototypeOf:function($e){var De=toObject$2($e);if(hasOwn$4(De,IE_PROTO))return De[IE_PROTO];var Fe=De.constructor;return isCallable$a(Fe)&&De instanceof Fe?Fe.prototype:De instanceof $Object$1?ObjectPrototype:null},fails$7=fails$h,isCallable$9=isCallable$l,isObject$6=isObject$c,getPrototypeOf$2=objectGetPrototypeOf,defineBuiltIn$a=defineBuiltIn$c,wellKnownSymbol$e=wellKnownSymbol$h,ITERATOR$7=wellKnownSymbol$e("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator;[].keys&&(arrayIterator=[].keys(),"next"in arrayIterator?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$2(getPrototypeOf$2(arrayIterator)),PrototypeOfArrayIteratorPrototype!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype)):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$6(IteratorPrototype$2)||fails$7(function(){var $e={};return IteratorPrototype$2[ITERATOR$7].call($e)!==$e});NEW_ITERATOR_PROTOTYPE&&(IteratorPrototype$2={}),isCallable$9(IteratorPrototype$2[ITERATOR$7])||defineBuiltIn$a(IteratorPrototype$2,ITERATOR$7,function(){return this});var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},defineProperty$3=objectDefineProperty.f,hasOwn$3=hasOwnProperty_1,wellKnownSymbol$d=wellKnownSymbol$h,TO_STRING_TAG$3=wellKnownSymbol$d("toStringTag"),setToStringTag$6=function($e,De,Fe){$e&&!Fe&&($e=$e.prototype),$e&&!hasOwn$3($e,TO_STRING_TAG$3)&&defineProperty$3($e,TO_STRING_TAG$3,{configurable:!0,value:De})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$2=objectCreate,createPropertyDescriptor$4=createPropertyDescriptor$7,setToStringTag$5=setToStringTag$6,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function($e,De,Fe,He){var Be=De+" Iterator";return $e.prototype=create$2(IteratorPrototype$1,{next:createPropertyDescriptor$4(+!He,Fe)}),setToStringTag$5($e,Be,!1),Iterators$4[Be]=returnThis$1,$e},uncurryThis$e=functionUncurryThis,aCallable$9=aCallable$b,functionUncurryThisAccessor=function($e,De,Fe){try{return uncurryThis$e(aCallable$9(Object.getOwnPropertyDescriptor($e,De)[Fe]))}catch{}},isObject$5=isObject$c,isPossiblePrototype$1=function($e){return isObject$5($e)||$e===null},isPossiblePrototype=isPossiblePrototype$1,$String$1=String,$TypeError$6=TypeError,aPossiblePrototype$1=function($e){if(isPossiblePrototype($e))return $e;throw new $TypeError$6("Can't set "+$String$1($e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,isObject$4=isObject$c,requireObjectCoercible$1=requireObjectCoercible$4,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var $e=!1,De={},Fe;try{Fe=uncurryThisAccessor(Object.prototype,"__proto__","set"),Fe(De,[]),$e=De instanceof Array}catch{}return function(He,Be){return requireObjectCoercible$1(He),aPossiblePrototype(Be),isObject$4(He)&&($e?Fe(He,Be):He.__proto__=Be),He}}():void 0),$$l=_export,call$d=functionCall,FunctionName=functionName,isCallable$8=isCallable$l,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf$1=objectGetPrototypeOf,setPrototypeOf$2=objectSetPrototypeOf,setToStringTag$4=setToStringTag$6,createNonEnumerableProperty$4=createNonEnumerableProperty$7,defineBuiltIn$9=defineBuiltIn$c,wellKnownSymbol$c=wellKnownSymbol$h,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$c("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function($e,De,Fe,He,Be,Ge,Ke){createIteratorConstructor$1(Fe,De,He);var We=function(at){if(at===Be&&Qe)return Qe;if(!BUGGY_SAFARI_ITERATORS&&at&&at in Ze)return Ze[at];switch(at){case KEYS:return function(){return new Fe(this,at)};case VALUES:return function(){return new Fe(this,at)};case ENTRIES:return function(){return new Fe(this,at)}}return function(){return new Fe(this)}},Xe=De+" Iterator",Je=!1,Ze=$e.prototype,Ye=Ze[ITERATOR$6]||Ze["@@iterator"]||Be&&Ze[Be],Qe=!BUGGY_SAFARI_ITERATORS&&Ye||We(Be),et=De==="Array"&&Ze.entries||Ye,tt,rt,nt;if(et&&(tt=getPrototypeOf$1(et.call(new $e)),tt!==Object.prototype&&tt.next&&(getPrototypeOf$1(tt)!==IteratorPrototype&&(setPrototypeOf$2?setPrototypeOf$2(tt,IteratorPrototype):isCallable$8(tt[ITERATOR$6])||defineBuiltIn$9(tt,ITERATOR$6,returnThis)),setToStringTag$4(tt,Xe,!0))),PROPER_FUNCTION_NAME&&Be===VALUES&&Ye&&Ye.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$4(Ze,"name",VALUES):(Je=!0,Qe=function(){return call$d(Ye,this)})),Be)if(rt={values:We(VALUES),keys:Ge?Qe:We(KEYS),entries:We(ENTRIES)},Ke)for(nt in rt)(BUGGY_SAFARI_ITERATORS||Je||!(nt in Ze))&&defineBuiltIn$9(Ze,nt,rt[nt]);else $$l({target:De,proto:!0,forced:BUGGY_SAFARI_ITERATORS||Je},rt);return Ze[ITERATOR$6]!==Qe&&defineBuiltIn$9(Ze,ITERATOR$6,Qe,{name:Be}),Iterators$3[De]=Qe,rt},createIterResultObject$3=function($e,De){return{value:$e,done:De}},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators$2=iterators,InternalStateModule$4=internalState,defineProperty$2=objectDefineProperty.f,defineIterator$1=iteratorDefine,createIterResultObject$2=createIterResultObject$3,DESCRIPTORS$8=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator$1(Array,"Array",function($e,De){setInternalState$4(this,{type:ARRAY_ITERATOR,target:toIndexedObject($e),index:0,kind:De})},function(){var $e=getInternalState$1(this),De=$e.target,Fe=$e.index++;if(!De||Fe>=De.length)return $e.target=null,createIterResultObject$2(void 0,!0);switch($e.kind){case"keys":return createIterResultObject$2(Fe,!1);case"values":return createIterResultObject$2(De[Fe],!1)}return createIterResultObject$2([Fe,De[Fe]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$8&&values.name!=="values")try{defineProperty$2(values,"name",{value:"values"})}catch{}var $$k=_export,uncurryThis$d=functionUncurryThis,toAbsoluteIndex=toAbsoluteIndex$2,$RangeError$1=RangeError,fromCharCode$2=String.fromCharCode,$fromCodePoint=String.fromCodePoint,join$3=uncurryThis$d([].join),INCORRECT_LENGTH=!!$fromCodePoint&&$fromCodePoint.length!==1;$$k({target:"String",stat:!0,arity:1,forced:INCORRECT_LENGTH},{fromCodePoint:function($e){for(var De=[],Fe=arguments.length,He=0,Be;Fe>He;){if(Be=+arguments[He++],toAbsoluteIndex(Be,1114111)!==Be)throw new $RangeError$1(Be+" is not a valid code point");De[He]=Be<65536?fromCharCode$2(Be):fromCharCode$2(((Be-=65536)>>10)+55296,Be%1024+56320)}return join$3(De,"")}});var globalThis$c=globalThis_1,DESCRIPTORS$7=descriptors,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,safeGetBuiltIn$2=function($e){if(!DESCRIPTORS$7)return globalThis$c[$e];var De=getOwnPropertyDescriptor(globalThis$c,$e);return De&&De.value},fails$6=fails$h,wellKnownSymbol$b=wellKnownSymbol$h,DESCRIPTORS$6=descriptors,IS_PURE=isPure,ITERATOR$5=wellKnownSymbol$b("iterator"),urlConstructorDetection=!fails$6(function(){var $e=new URL("b?a=1&b=2&c=3","https://a"),De=$e.searchParams,Fe=new URLSearchParams("a=1&a=2&b=3"),He="";return $e.pathname="c%20d",De.forEach(function(Be,Ge){De.delete("b"),He+=Ge+Be}),Fe.delete("a",2),Fe.delete("b",void 0),IS_PURE&&(!$e.toJSON||!Fe.has("a",1)||Fe.has("a",2)||!Fe.has("a",void 0)||Fe.has("b"))||!De.size&&(IS_PURE||!DESCRIPTORS$6)||!De.sort||$e.href!=="https://a/c%20d?a=1&c=3"||De.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!De[ITERATOR$5]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||He!=="a1c3"||new URL("https://x",void 0).host!=="x"}),makeBuiltIn=makeBuiltInExports,defineProperty$1=objectDefineProperty,defineBuiltInAccessor$4=function($e,De,Fe){return Fe.get&&makeBuiltIn(Fe.get,De,{getter:!0}),Fe.set&&makeBuiltIn(Fe.set,De,{setter:!0}),defineProperty$1.f($e,De,Fe)},defineBuiltIn$8=defineBuiltIn$c,defineBuiltIns$1=function($e,De,Fe){for(var He in De)defineBuiltIn$8($e,He,De[He],Fe);return $e},isPrototypeOf$2=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$3=function($e,De){if(isPrototypeOf$2(De,$e))return $e;throw new $TypeError$5("Incorrect invocation")},classofRaw$1=classofRaw$2,uncurryThis$c=functionUncurryThis,functionUncurryThisClause=function($e){if(classofRaw$1($e)==="Function")return uncurryThis$c($e)},uncurryThis$b=functionUncurryThisClause,aCallable$8=aCallable$b,NATIVE_BIND$1=functionBindNative,bind$7=uncurryThis$b(uncurryThis$b.bind),functionBindContext=function($e,De){return aCallable$8($e),De===void 0?$e:NATIVE_BIND$1?bind$7($e,De):function(){return $e.apply(De,arguments)}},wellKnownSymbol$a=wellKnownSymbol$h,TO_STRING_TAG$2=wellKnownSymbol$a("toStringTag"),test={};test[TO_STRING_TAG$2]="z";var toStringTagSupport=String(test)==="[object z]",TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$7=isCallable$l,classofRaw=classofRaw$2,wellKnownSymbol$9=wellKnownSymbol$h,TO_STRING_TAG$1=wellKnownSymbol$9("toStringTag"),$Object=Object,CORRECT_ARGUMENTS=classofRaw(function(){return arguments}())==="Arguments",tryGet=function($e,De){try{return $e[De]}catch{}},classof$6=TO_STRING_TAG_SUPPORT$2?classofRaw:function($e){var De,Fe,He;return $e===void 0?"Undefined":$e===null?"Null":typeof(Fe=tryGet(De=$Object($e),TO_STRING_TAG$1))=="string"?Fe:CORRECT_ARGUMENTS?classofRaw(De):(He=classofRaw(De))==="Object"&&isCallable$7(De.callee)?"Arguments":He},classof$5=classof$6,$String=String,toString$8=function($e){if(classof$5($e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return $String($e)},classof$4=classof$6,getMethod$1=getMethod$3,isNullOrUndefined$1=isNullOrUndefined$4,Iterators$1=iterators,wellKnownSymbol$8=wellKnownSymbol$h,ITERATOR$4=wellKnownSymbol$8("iterator"),getIteratorMethod$4=function($e){if(!isNullOrUndefined$1($e))return getMethod$1($e,ITERATOR$4)||getMethod$1($e,"@@iterator")||Iterators$1[classof$4($e)]},call$c=functionCall,aCallable$7=aCallable$b,anObject$6=anObject$b,tryToString$2=tryToString$4,getIteratorMethod$3=getIteratorMethod$4,$TypeError$4=TypeError,getIterator$3=function($e,De){var Fe=arguments.length<2?getIteratorMethod$3($e):De;if(aCallable$7(Fe))return anObject$6(call$c(Fe,$e));throw new $TypeError$4(tryToString$2($e)+" is not iterable")},$TypeError$3=TypeError,validateArgumentsLength$7=function($e,De){if($e<De)throw new $TypeError$3("Not enough arguments");return $e},uncurryThis$a=functionUncurryThis,arraySlice$3=uncurryThis$a([].slice),arraySlice$2=arraySlice$3,floor$2=Math.floor,sort=function($e,De){var Fe=$e.length;if(Fe<8)for(var He=1,Be,Ge;He<Fe;){for(Ge=He,Be=$e[He];Ge&&De($e[Ge-1],Be)>0;)$e[Ge]=$e[--Ge];Ge!==He++&&($e[Ge]=Be)}else for(var Ke=floor$2(Fe/2),We=sort(arraySlice$2($e,0,Ke),De),Xe=sort(arraySlice$2($e,Ke),De),Je=We.length,Ze=Xe.length,Ye=0,Qe=0;Ye<Je||Qe<Ze;)$e[Ye+Qe]=Ye<Je&&Qe<Ze?De(We[Ye],Xe[Qe])<=0?We[Ye++]:Xe[Qe++]:Ye<Je?We[Ye++]:Xe[Qe++];return $e},arraySort$1=sort,$$j=_export,globalThis$b=globalThis_1,safeGetBuiltIn$1=safeGetBuiltIn$2,getBuiltIn$8=getBuiltIn$c,call$b=functionCall,uncurryThis$9=functionUncurryThis,DESCRIPTORS$5=descriptors,USE_NATIVE_URL$3=urlConstructorDetection,defineBuiltIn$7=defineBuiltIn$c,defineBuiltInAccessor$3=defineBuiltInAccessor$4,defineBuiltIns=defineBuiltIns$1,setToStringTag$3=setToStringTag$6,createIteratorConstructor=iteratorCreateConstructor,InternalStateModule$3=internalState,anInstance$2=anInstance$3,isCallable$6=isCallable$l,hasOwn$2=hasOwnProperty_1,bind$6=functionBindContext,classof$3=classof$6,anObject$5=anObject$b,isObject$3=isObject$c,$toString$1=toString$8,create$1=objectCreate,createPropertyDescriptor$3=createPropertyDescriptor$7,getIterator$2=getIterator$3,getIteratorMethod$2=getIteratorMethod$4,createIterResultObject$1=createIterResultObject$3,validateArgumentsLength$6=validateArgumentsLength$7,wellKnownSymbol$7=wellKnownSymbol$h,arraySort=arraySort$1,ITERATOR$3=wellKnownSymbol$7("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$3=InternalStateModule$3.set,getInternalParamsState=InternalStateModule$3.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$3.getterFor(URL_SEARCH_PARAMS_ITERATOR),nativeFetch=safeGetBuiltIn$1("fetch"),NativeRequest=safeGetBuiltIn$1("Request"),Headers=safeGetBuiltIn$1("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,TypeError$3=globalThis$b.TypeError,encodeURIComponent$1=globalThis$b.encodeURIComponent,fromCharCode$1=String.fromCharCode,fromCodePoint=getBuiltIn$8("String","fromCodePoint"),$parseInt=parseInt,charAt$3=uncurryThis$9("".charAt),join$2=uncurryThis$9([].join),push$4=uncurryThis$9([].push),replace$4=uncurryThis$9("".replace),shift$1=uncurryThis$9([].shift),splice=uncurryThis$9([].splice),split$2=uncurryThis$9("".split),stringSlice$2=uncurryThis$9("".slice),exec$3=uncurryThis$9(/./.exec),plus=/\+/g,FALLBACK_REPLACER="�",VALID_HEX=/^[0-9a-f]+$/i,parseHexOctet=function($e,De){var Fe=stringSlice$2($e,De,De+2);return exec$3(VALID_HEX,Fe)?$parseInt(Fe,16):NaN},getLeadingOnes=function($e){for(var De=0,Fe=128;Fe>0&&$e&Fe;Fe>>=1)De++;return De},utf8Decode=function($e){var De=null;switch($e.length){case 1:De=$e[0];break;case 2:De=($e[0]&31)<<6|$e[1]&63;break;case 3:De=($e[0]&15)<<12|($e[1]&63)<<6|$e[2]&63;break;case 4:De=($e[0]&7)<<18|($e[1]&63)<<12|($e[2]&63)<<6|$e[3]&63;break}return De>1114111?null:De},decode=function($e){$e=replace$4($e,plus," ");for(var De=$e.length,Fe="",He=0;He<De;){var Be=charAt$3($e,He);if(Be==="%"){if(charAt$3($e,He+1)==="%"||He+3>De){Fe+="%",He++;continue}var Ge=parseHexOctet($e,He+1);if(Ge!==Ge){Fe+=Be,He++;continue}He+=2;var Ke=getLeadingOnes(Ge);if(Ke===0)Be=fromCharCode$1(Ge);else{if(Ke===1||Ke>4){Fe+=FALLBACK_REPLACER,He++;continue}for(var We=[Ge],Xe=1;Xe<Ke&&(He++,!(He+3>De||charAt$3($e,He)!=="%"));){var Je=parseHexOctet($e,He+1);if(Je!==Je){He+=3;break}if(Je>191||Je<128)break;push$4(We,Je),He+=2,Xe++}if(We.length!==Ke){Fe+=FALLBACK_REPLACER;continue}var Ze=utf8Decode(We);Ze===null?Fe+=FALLBACK_REPLACER:Be=fromCodePoint(Ze)}}Fe+=Be,He++}return Fe},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function($e){return replacements[$e]},serialize=function($e){return replace$4(encodeURIComponent$1($e),find,replacer)},URLSearchParamsIterator=createIteratorConstructor(function($e,De){setInternalState$3(this,{type:URL_SEARCH_PARAMS_ITERATOR,target:getInternalParamsState($e).entries,index:0,kind:De})},URL_SEARCH_PARAMS,function(){var $e=getInternalIteratorState(this),De=$e.target,Fe=$e.index++;if(!De||Fe>=De.length)return $e.target=null,createIterResultObject$1(void 0,!0);var He=De[Fe];switch($e.kind){case"keys":return createIterResultObject$1(He.key,!1);case"values":return createIterResultObject$1(He.value,!1)}return createIterResultObject$1([He.key,He.value],!1)},!0),URLSearchParamsState=function($e){this.entries=[],this.url=null,$e!==void 0&&(isObject$3($e)?this.parseObject($e):this.parseQuery(typeof $e=="string"?charAt$3($e,0)==="?"?stringSlice$2($e,1):$e:$toString$1($e)))};URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function($e){this.url=$e,this.update()},parseObject:function($e){var De=this.entries,Fe=getIteratorMethod$2($e),He,Be,Ge,Ke,We,Xe,Je;if(Fe)for(He=getIterator$2($e,Fe),Be=He.next;!(Ge=call$b(Be,He)).done;){if(Ke=getIterator$2(anObject$5(Ge.value)),We=Ke.next,(Xe=call$b(We,Ke)).done||(Je=call$b(We,Ke)).done||!call$b(We,Ke).done)throw new TypeError$3("Expected sequence with length 2");push$4(De,{key:$toString$1(Xe.value),value:$toString$1(Je.value)})}else for(var Ze in $e)hasOwn$2($e,Ze)&&push$4(De,{key:Ze,value:$toString$1($e[Ze])})},parseQuery:function($e){if($e)for(var De=this.entries,Fe=split$2($e,"&"),He=0,Be,Ge;He<Fe.length;)Be=Fe[He++],Be.length&&(Ge=split$2(Be,"="),push$4(De,{key:decode(shift$1(Ge)),value:decode(join$2(Ge,"="))}))},serialize:function(){for(var $e=this.entries,De=[],Fe=0,He;Fe<$e.length;)He=$e[Fe++],push$4(De,serialize(He.key)+"="+serialize(He.value));return join$2(De,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor=function(){anInstance$2(this,URLSearchParamsPrototype$3);var $e=arguments.length>0?arguments[0]:void 0,De=setInternalState$3(this,new URLSearchParamsState($e));DESCRIPTORS$5||(this.size=De.entries.length)},URLSearchParamsPrototype$3=URLSearchParamsConstructor.prototype;if(defineBuiltIns(URLSearchParamsPrototype$3,{append:function($e,De){var Fe=getInternalParamsState(this);validateArgumentsLength$6(arguments.length,2),push$4(Fe.entries,{key:$toString$1($e),value:$toString$1(De)}),DESCRIPTORS$5||this.length++,Fe.updateURL()},delete:function($e){for(var De=getInternalParamsState(this),Fe=validateArgumentsLength$6(arguments.length,1),He=De.entries,Be=$toString$1($e),Ge=Fe<2?void 0:arguments[1],Ke=Ge===void 0?Ge:$toString$1(Ge),We=0;We<He.length;){var Xe=He[We];if(Xe.key===Be&&(Ke===void 0||Xe.value===Ke)){if(splice(He,We,1),Ke!==void 0)break}else We++}DESCRIPTORS$5||(this.size=He.length),De.updateURL()},get:function($e){var De=getInternalParamsState(this).entries;validateArgumentsLength$6(arguments.length,1);for(var Fe=$toString$1($e),He=0;He<De.length;He++)if(De[He].key===Fe)return De[He].value;return null},getAll:function($e){var De=getInternalParamsState(this).entries;validateArgumentsLength$6(arguments.length,1);for(var Fe=$toString$1($e),He=[],Be=0;Be<De.length;Be++)De[Be].key===Fe&&push$4(He,De[Be].value);return He},has:function($e){for(var De=getInternalParamsState(this).entries,Fe=validateArgumentsLength$6(arguments.length,1),He=$toString$1($e),Be=Fe<2?void 0:arguments[1],Ge=Be===void 0?Be:$toString$1(Be),Ke=0;Ke<De.length;){var We=De[Ke++];if(We.key===He&&(Ge===void 0||We.value===Ge))return!0}return!1},set:function($e,De){var Fe=getInternalParamsState(this);validateArgumentsLength$6(arguments.length,1);for(var He=Fe.entries,Be=!1,Ge=$toString$1($e),Ke=$toString$1(De),We=0,Xe;We<He.length;We++)Xe=He[We],Xe.key===Ge&&(Be?splice(He,We--,1):(Be=!0,Xe.value=Ke));Be||push$4(He,{key:Ge,value:Ke}),DESCRIPTORS$5||(this.size=He.length),Fe.updateURL()},sort:function(){var $e=getInternalParamsState(this);arraySort($e.entries,function(De,Fe){return De.key>Fe.key?1:-1}),$e.updateURL()},forEach:function($e){for(var De=getInternalParamsState(this).entries,Fe=bind$6($e,arguments.length>1?arguments[1]:void 0),He=0,Be;He<De.length;)Be=De[He++],Fe(Be.value,Be.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn$7(URLSearchParamsPrototype$3,ITERATOR$3,URLSearchParamsPrototype$3.entries,{name:"entries"}),defineBuiltIn$7(URLSearchParamsPrototype$3,"toString",function(){return getInternalParamsState(this).serialize()},{enumerable:!0}),DESCRIPTORS$5&&defineBuiltInAccessor$3(URLSearchParamsPrototype$3,"size",{get:function(){return getInternalParamsState(this).entries.length},configurable:!0,enumerable:!0}),setToStringTag$3(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$j({global:!0,constructor:!0,forced:!USE_NATIVE_URL$3},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL$3&&isCallable$6(Headers)){var headersHas=uncurryThis$9(HeadersPrototype.has),headersSet=uncurryThis$9(HeadersPrototype.set),wrapRequestOptions=function($e){if(isObject$3($e)){var De=$e.body,Fe;if(classof$3(De)===URL_SEARCH_PARAMS)return Fe=$e.headers?new Headers($e.headers):new Headers,headersHas(Fe,"content-type")||headersSet(Fe,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create$1($e,{body:createPropertyDescriptor$3(0,$toString$1(De)),headers:createPropertyDescriptor$3(0,Fe)})}return $e};if(isCallable$6(nativeFetch)&&$$j({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function($e){return nativeFetch($e,arguments.length>1?wrapRequestOptions(arguments[1]):{})}}),isCallable$6(NativeRequest)){var RequestConstructor=function($e){return anInstance$2(this,RequestPrototype),new NativeRequest($e,arguments.length>1?wrapRequestOptions(arguments[1]):{})};RequestPrototype.constructor=RequestConstructor,RequestConstructor.prototype=RequestPrototype,$$j({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})}}var web_urlSearchParams_constructor={URLSearchParams:URLSearchParamsConstructor,getState:getInternalParamsState},defineBuiltIn$6=defineBuiltIn$c,uncurryThis$8=functionUncurryThis,toString$7=toString$8,validateArgumentsLength$5=validateArgumentsLength$7,$URLSearchParams$1=URLSearchParams,URLSearchParamsPrototype$2=$URLSearchParams$1.prototype,append=uncurryThis$8(URLSearchParamsPrototype$2.append),$delete=uncurryThis$8(URLSearchParamsPrototype$2.delete),forEach$1=uncurryThis$8(URLSearchParamsPrototype$2.forEach),push$3=uncurryThis$8([].push),params$1=new $URLSearchParams$1("a=1&a=2&b=3");params$1.delete("a",1),params$1.delete("b",void 0),params$1+""!="a=2"&&defineBuiltIn$6(URLSearchParamsPrototype$2,"delete",function($e){var De=arguments.length,Fe=De<2?void 0:arguments[1];if(De&&Fe===void 0)return $delete(this,$e);var He=[];forEach$1(this,function(Ye,Qe){push$3(He,{key:Qe,value:Ye})}),validateArgumentsLength$5(De,1);for(var Be=toString$7($e),Ge=toString$7(Fe),Ke=0,We=0,Xe=!1,Je=He.length,Ze;Ke<Je;)Ze=He[Ke++],Xe||Ze.key===Be?(Xe=!0,$delete(this,Ze.key)):We++;for(;We<Je;)Ze=He[We++],Ze.key===Be&&Ze.value===Ge||append(this,Ze.key,Ze.value)},{enumerable:!0,unsafe:!0});var defineBuiltIn$5=defineBuiltIn$c,uncurryThis$7=functionUncurryThis,toString$6=toString$8,validateArgumentsLength$4=validateArgumentsLength$7,$URLSearchParams=URLSearchParams,URLSearchParamsPrototype$1=$URLSearchParams.prototype,getAll=uncurryThis$7(URLSearchParamsPrototype$1.getAll),$has=uncurryThis$7(URLSearchParamsPrototype$1.has),params=new $URLSearchParams("a=1");(params.has("a",2)||!params.has("a",void 0))&&defineBuiltIn$5(URLSearchParamsPrototype$1,"has",function($e){var De=arguments.length,Fe=De<2?void 0:arguments[1];if(De&&Fe===void 0)return $has(this,$e);var He=getAll(this,$e);validateArgumentsLength$4(De,1);for(var Be=toString$6(Fe),Ge=0;Ge<He.length;)if(He[Ge++]===Be)return!0;return!1},{enumerable:!0,unsafe:!0});var DESCRIPTORS$4=descriptors,uncurryThis$6=functionUncurryThis,defineBuiltInAccessor$2=defineBuiltInAccessor$4,URLSearchParamsPrototype=URLSearchParams.prototype,forEach=uncurryThis$6(URLSearchParamsPrototype.forEach);DESCRIPTORS$4&&!("size"in URLSearchParamsPrototype)&&defineBuiltInAccessor$2(URLSearchParamsPrototype,"size",{get:function(){var $e=0;return forEach(this,function(){$e++}),$e},configurable:!0,enumerable:!0});var globalThis$a=globalThis_1,path$3=globalThis$a,path$2=path$3;path$2.URLSearchParams;var uncurryThis$5=functionUncurryThis,toIntegerOrInfinity=toIntegerOrInfinity$3,toString$5=toString$8,requireObjectCoercible=requireObjectCoercible$4,charAt$2=uncurryThis$5("".charAt),charCodeAt$1=uncurryThis$5("".charCodeAt),stringSlice$1=uncurryThis$5("".slice),createMethod=function($e){return function(De,Fe){var He=toString$5(requireObjectCoercible(De)),Be=toIntegerOrInfinity(Fe),Ge=He.length,Ke,We;return Be<0||Be>=Ge?$e?"":void 0:(Ke=charCodeAt$1(He,Be),Ke<55296||Ke>56319||Be+1===Ge||(We=charCodeAt$1(He,Be+1))<56320||We>57343?$e?charAt$2(He,Be):Ke:$e?stringSlice$1(He,Be,Be+2):(Ke-55296<<10)+(We-56320)+65536)}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$1=stringMultibyte.charAt,toString$4=toString$8,InternalStateModule$2=internalState,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$3,STRING_ITERATOR="String Iterator",setInternalState$2=InternalStateModule$2.set,getInternalState=InternalStateModule$2.getterFor(STRING_ITERATOR);defineIterator(String,"String",function($e){setInternalState$2(this,{type:STRING_ITERATOR,string:toString$4($e),index:0})},function(){var $e=getInternalState(this),De=$e.string,Fe=$e.index,He;return Fe>=De.length?createIterResultObject(void 0,!0):(He=charAt$1(De,Fe),$e.index+=He.length,createIterResultObject(He,!1))});var DESCRIPTORS$3=descriptors,uncurryThis$4=functionUncurryThis,call$a=functionCall,fails$5=fails$h,objectKeys=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty=Object.defineProperty,concat=uncurryThis$4([].concat),objectAssign=!$assign||fails$5(function(){if(DESCRIPTORS$3&&$assign({b:1},$assign(defineProperty({},"a",{enumerable:!0,get:function(){defineProperty(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var $e={},De={},Fe=Symbol("assign detection"),He="abcdefghijklmnopqrst";return $e[Fe]=7,He.split("").forEach(function(Be){De[Be]=Be}),$assign({},$e)[Fe]!==7||objectKeys($assign({},De)).join("")!==He})?function($e,De){for(var Fe=toObject$1($e),He=arguments.length,Be=1,Ge=getOwnPropertySymbolsModule.f,Ke=propertyIsEnumerableModule.f;He>Be;)for(var We=IndexedObject(arguments[Be++]),Xe=Ge?concat(objectKeys(We),Ge(We)):objectKeys(We),Je=Xe.length,Ze=0,Ye;Je>Ze;)Ye=Xe[Ze++],(!DESCRIPTORS$3||call$a(Ke,We,Ye))&&(Fe[Ye]=We[Ye]);return Fe}:$assign,call$9=functionCall,anObject$4=anObject$b,getMethod=getMethod$3,iteratorClose$2=function($e,De,Fe){var He,Be;anObject$4($e);try{if(He=getMethod($e,"return"),!He){if(De==="throw")throw Fe;return Fe}He=call$9(He,$e)}catch(Ge){Be=!0,He=Ge}if(De==="throw")throw Fe;if(Be)throw He;return anObject$4(He),Fe},anObject$3=anObject$b,iteratorClose$1=iteratorClose$2,callWithSafeIterationClosing$1=function($e,De,Fe,He){try{return He?De(anObject$3(Fe)[0],Fe[1]):De(Fe)}catch(Be){iteratorClose$1($e,"throw",Be)}},wellKnownSymbol$6=wellKnownSymbol$h,Iterators=iterators,ITERATOR$2=wellKnownSymbol$6("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$2=function($e){return $e!==void 0&&(Iterators.Array===$e||ArrayPrototype[ITERATOR$2]===$e)},uncurryThis$3=functionUncurryThis,fails$4=fails$h,isCallable$5=isCallable$l,classof$2=classof$6,getBuiltIn$7=getBuiltIn$c,inspectSource$1=inspectSource$3,noop=function(){},construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$2=uncurryThis$3(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.test(noop),isConstructorModern=function($e){if(!isCallable$5($e))return!1;try{return construct(noop,[],$e),!0}catch{return!1}},isConstructorLegacy=function($e){if(!isCallable$5($e))return!1;switch(classof$2($e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$2(constructorRegExp,inspectSource$1($e))}catch{return!0}};isConstructorLegacy.sham=!0;var isConstructor$2=!construct||fails$4(function(){var $e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){$e=!0})||$e})?isConstructorLegacy:isConstructorModern,DESCRIPTORS$2=descriptors,definePropertyModule=objectDefineProperty,createPropertyDescriptor$2=createPropertyDescriptor$7,createProperty$1=function($e,De,Fe){DESCRIPTORS$2?definePropertyModule.f($e,De,createPropertyDescriptor$2(0,Fe)):$e[De]=Fe},bind$5=functionBindContext,call$8=functionCall,toObject=toObject$4,callWithSafeIterationClosing=callWithSafeIterationClosing$1,isArrayIteratorMethod$1=isArrayIteratorMethod$2,isConstructor$1=isConstructor$2,lengthOfArrayLike$1=lengthOfArrayLike$3,createProperty=createProperty$1,getIterator$1=getIterator$3,getIteratorMethod$1=getIteratorMethod$4,$Array=Array,arrayFrom$1=function($e){var De=toObject($e),Fe=isConstructor$1(this),He=arguments.length,Be=He>1?arguments[1]:void 0,Ge=Be!==void 0;Ge&&(Be=bind$5(Be,He>2?arguments[2]:void 0));var Ke=getIteratorMethod$1(De),We=0,Xe,Je,Ze,Ye,Qe,et;if(Ke&&!(this===$Array&&isArrayIteratorMethod$1(Ke)))for(Je=Fe?new this:[],Ye=getIterator$1(De,Ke),Qe=Ye.next;!(Ze=call$8(Qe,Ye)).done;We++)et=Ge?callWithSafeIterationClosing(Ye,Be,[Ze.value,We],!0):Ze.value,createProperty(Je,We,et);else for(Xe=lengthOfArrayLike$1(De),Je=Fe?new this(Xe):$Array(Xe);Xe>We;We++)et=Ge?Be(De[We],We):De[We],createProperty(Je,We,et);return Je.length=We,Je},uncurryThis$2=functionUncurryThis,maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",baseMinusTMin=base-tMin,$RangeError=RangeError,exec$1=uncurryThis$2(regexSeparators.exec),floor$1=Math.floor,fromCharCode=String.fromCharCode,charCodeAt=uncurryThis$2("".charCodeAt),join$1=uncurryThis$2([].join),push$2=uncurryThis$2([].push),replace$3=uncurryThis$2("".replace),split$1=uncurryThis$2("".split),toLowerCase$1=uncurryThis$2("".toLowerCase),ucs2decode=function($e){for(var De=[],Fe=0,He=$e.length;Fe<He;){var Be=charCodeAt($e,Fe++);if(Be>=55296&&Be<=56319&&Fe<He){var Ge=charCodeAt($e,Fe++);(Ge&64512)===56320?push$2(De,((Be&1023)<<10)+(Ge&1023)+65536):(push$2(De,Be),Fe--)}else push$2(De,Be)}return De},digitToBasic=function($e){return $e+22+75*($e<26)},adapt=function($e,De,Fe){var He=0;for($e=Fe?floor$1($e/damp):$e>>1,$e+=floor$1($e/De);$e>baseMinusTMin*tMax>>1;)$e=floor$1($e/baseMinusTMin),He+=base;return floor$1(He+(baseMinusTMin+1)*$e/($e+skew))},encode=function($e){var De=[];$e=ucs2decode($e);var Fe=$e.length,He=initialN,Be=0,Ge=initialBias,Ke,We;for(Ke=0;Ke<$e.length;Ke++)We=$e[Ke],We<128&&push$2(De,fromCharCode(We));var Xe=De.length,Je=Xe;for(Xe&&push$2(De,delimiter);Je<Fe;){var Ze=maxInt;for(Ke=0;Ke<$e.length;Ke++)We=$e[Ke],We>=He&&We<Ze&&(Ze=We);var Ye=Je+1;if(Ze-He>floor$1((maxInt-Be)/Ye))throw new $RangeError(OVERFLOW_ERROR);for(Be+=(Ze-He)*Ye,He=Ze,Ke=0;Ke<$e.length;Ke++){if(We=$e[Ke],We<He&&++Be>maxInt)throw new $RangeError(OVERFLOW_ERROR);if(We===He){for(var Qe=Be,et=base;;){var tt=et<=Ge?tMin:et>=Ge+tMax?tMax:et-Ge;if(Qe<tt)break;var rt=Qe-tt,nt=base-tt;push$2(De,fromCharCode(digitToBasic(tt+rt%nt))),Qe=floor$1(rt/nt),et+=base}push$2(De,fromCharCode(digitToBasic(Qe))),Ge=adapt(Be,Ye,Je===Xe),Be=0,Je++}}Be++,He++}return join$1(De,"")},stringPunycodeToAscii=function($e){var De=[],Fe=split$1(replace$3(toLowerCase$1($e),regexSeparators,"."),"."),He,Be;for(He=0;He<Fe.length;He++)Be=Fe[He],push$2(De,exec$1(regexNonASCII,Be)?"xn--"+encode(Be):Be);return join$1(De,".")},$$i=_export,DESCRIPTORS$1=descriptors,USE_NATIVE_URL$2=urlConstructorDetection,globalThis$9=globalThis_1,bind$4=functionBindContext,uncurryThis$1=functionUncurryThis,defineBuiltIn$4=defineBuiltIn$c,defineBuiltInAccessor$1=defineBuiltInAccessor$4,anInstance$1=anInstance$3,hasOwn$1=hasOwnProperty_1,assign=objectAssign,arrayFrom=arrayFrom$1,arraySlice$1=arraySlice$3,codeAt=stringMultibyte.codeAt,toASCII=stringPunycodeToAscii,$toString=toString$8,setToStringTag$2=setToStringTag$6,validateArgumentsLength$3=validateArgumentsLength$7,URLSearchParamsModule=web_urlSearchParams_constructor,InternalStateModule$1=internalState,setInternalState$1=InternalStateModule$1.set,getInternalURLState=InternalStateModule$1.getterFor("URL"),URLSearchParams$1=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,NativeURL=globalThis$9.URL,TypeError$2=globalThis$9.TypeError,parseInt$1=globalThis$9.parseInt,floor=Math.floor,pow=Math.pow,charAt=uncurryThis$1("".charAt),exec=uncurryThis$1(/./.exec),join=uncurryThis$1([].join),numberToString=uncurryThis$1(1 .toString),pop=uncurryThis$1([].pop),push$1=uncurryThis$1([].push),replace$2=uncurryThis$1("".replace),shift=uncurryThis$1([].shift),split=uncurryThis$1("".split),stringSlice=uncurryThis$1("".slice),toLowerCase=uncurryThis$1("".toLowerCase),unshift=uncurryThis$1([].unshift),INVALID_AUTHORITY="Invalid authority",INVALID_SCHEME="Invalid scheme",INVALID_HOST="Invalid host",INVALID_PORT="Invalid port",ALPHA=/[a-z]/i,ALPHANUMERIC=/[\d+-.a-z]/i,DIGIT=/\d/,HEX_START=/^0x/i,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\da-f]+$/i,FORBIDDEN_HOST_CODE_POINT=/[\0\t\n\r #%/:<>?@[\\\]^|]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=/[\0\t\n\r #/:<>?@[\\\]^|]/,LEADING_C0_CONTROL_OR_SPACE=/^[\u0000-\u0020]+/,TRAILING_C0_CONTROL_OR_SPACE=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,TAB_AND_NEW_LINE=/[\t\n\r]/g,EOF,parseIPv4=function($e){var De=split($e,"."),Fe,He,Be,Ge,Ke,We,Xe;if(De.length&&De[De.length-1]===""&&De.length--,Fe=De.length,Fe>4)return $e;for(He=[],Be=0;Be<Fe;Be++){if(Ge=De[Be],Ge==="")return $e;if(Ke=10,Ge.length>1&&charAt(Ge,0)==="0"&&(Ke=exec(HEX_START,Ge)?16:8,Ge=stringSlice(Ge,Ke===8?1:2)),Ge==="")We=0;else{if(!exec(Ke===10?DEC:Ke===8?OCT:HEX,Ge))return $e;We=parseInt$1(Ge,Ke)}push$1(He,We)}for(Be=0;Be<Fe;Be++)if(We=He[Be],Be===Fe-1){if(We>=pow(256,5-Fe))return null}else if(We>255)return null;for(Xe=pop(He),Be=0;Be<He.length;Be++)Xe+=He[Be]*pow(256,3-Be);return Xe},parseIPv6=function($e){var De=[0,0,0,0,0,0,0,0],Fe=0,He=null,Be=0,Ge,Ke,We,Xe,Je,Ze,Ye,Qe=function(){return charAt($e,Be)};if(Qe()===":"){if(charAt($e,1)!==":")return;Be+=2,Fe++,He=Fe}for(;Qe();){if(Fe===8)return;if(Qe()===":"){if(He!==null)return;Be++,Fe++,He=Fe;continue}for(Ge=Ke=0;Ke<4&&exec(HEX,Qe());)Ge=Ge*16+parseInt$1(Qe(),16),Be++,Ke++;if(Qe()==="."){if(Ke===0||(Be-=Ke,Fe>6))return;for(We=0;Qe();){if(Xe=null,We>0)if(Qe()==="."&&We<4)Be++;else return;if(!exec(DIGIT,Qe()))return;for(;exec(DIGIT,Qe());){if(Je=parseInt$1(Qe(),10),Xe===null)Xe=Je;else{if(Xe===0)return;Xe=Xe*10+Je}if(Xe>255)return;Be++}De[Fe]=De[Fe]*256+Xe,We++,(We===2||We===4)&&Fe++}if(We!==4)return;break}else if(Qe()===":"){if(Be++,!Qe())return}else if(Qe())return;De[Fe++]=Ge}if(He!==null)for(Ze=Fe-He,Fe=7;Fe!==0&&Ze>0;)Ye=De[Fe],De[Fe--]=De[He+Ze-1],De[He+--Ze]=Ye;else if(Fe!==8)return;return De},findLongestZeroSequence=function($e){for(var De=null,Fe=1,He=null,Be=0,Ge=0;Ge<8;Ge++)$e[Ge]!==0?(Be>Fe&&(De=He,Fe=Be),He=null,Be=0):(He===null&&(He=Ge),++Be);return Be>Fe?He:De},serializeHost=function($e){var De,Fe,He,Be;if(typeof $e=="number"){for(De=[],Fe=0;Fe<4;Fe++)unshift(De,$e%256),$e=floor($e/256);return join(De,".")}if(typeof $e=="object"){for(De="",He=findLongestZeroSequence($e),Fe=0;Fe<8;Fe++)Be&&$e[Fe]===0||(Be&&(Be=!1),He===Fe?(De+=Fe?":":"::",Be=!0):(De+=numberToString($e[Fe],16),Fe<7&&(De+=":")));return"["+De+"]"}return $e},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function($e,De){var Fe=codeAt($e,0);return Fe>32&&Fe<127&&!hasOwn$1(De,$e)?$e:encodeURIComponent($e)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isWindowsDriveLetter=function($e,De){var Fe;return $e.length===2&&exec(ALPHA,charAt($e,0))&&((Fe=charAt($e,1))===":"||!De&&Fe==="|")},startsWithWindowsDriveLetter=function($e){var De;return $e.length>1&&isWindowsDriveLetter(stringSlice($e,0,2))&&($e.length===2||(De=charAt($e,2))==="/"||De==="\\"||De==="?"||De==="#")},isSingleDot=function($e){return $e==="."||toLowerCase($e)==="%2e"},isDoubleDot=function($e){return $e=toLowerCase($e),$e===".."||$e==="%2e."||$e===".%2e"||$e==="%2e%2e"},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START={},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},URLState=function($e,De,Fe){var He=$toString($e),Be,Ge,Ke;if(De){if(Ge=this.parse(He),Ge)throw new TypeError$2(Ge);this.searchParams=null}else{if(Fe!==void 0&&(Be=new URLState(Fe,!0)),Ge=this.parse(He,null,Be),Ge)throw new TypeError$2(Ge);Ke=getInternalSearchParamsState(new URLSearchParams$1),Ke.bindURL(this),this.searchParams=Ke}};URLState.prototype={type:"URL",parse:function($e,De,Fe){var He=this,Be=De||SCHEME_START,Ge=0,Ke="",We=!1,Xe=!1,Je=!1,Ze,Ye,Qe,et;for($e=$toString($e),De||(He.scheme="",He.username="",He.password="",He.host=null,He.port=null,He.path=[],He.query=null,He.fragment=null,He.cannotBeABaseURL=!1,$e=replace$2($e,LEADING_C0_CONTROL_OR_SPACE,""),$e=replace$2($e,TRAILING_C0_CONTROL_OR_SPACE,"$1")),$e=replace$2($e,TAB_AND_NEW_LINE,""),Ze=arrayFrom($e);Ge<=Ze.length;){switch(Ye=Ze[Ge],Be){case SCHEME_START:if(Ye&&exec(ALPHA,Ye))Ke+=toLowerCase(Ye),Be=SCHEME;else{if(De)return INVALID_SCHEME;Be=NO_SCHEME;continue}break;case SCHEME:if(Ye&&(exec(ALPHANUMERIC,Ye)||Ye==="+"||Ye==="-"||Ye==="."))Ke+=toLowerCase(Ye);else if(Ye===":"){if(De&&(He.isSpecial()!==hasOwn$1(specialSchemes,Ke)||Ke==="file"&&(He.includesCredentials()||He.port!==null)||He.scheme==="file"&&!He.host))return;if(He.scheme=Ke,De){He.isSpecial()&&specialSchemes[He.scheme]===He.port&&(He.port=null);return}Ke="",He.scheme==="file"?Be=FILE:He.isSpecial()&&Fe&&Fe.scheme===He.scheme?Be=SPECIAL_RELATIVE_OR_AUTHORITY:He.isSpecial()?Be=SPECIAL_AUTHORITY_SLASHES:Ze[Ge+1]==="/"?(Be=PATH_OR_AUTHORITY,Ge++):(He.cannotBeABaseURL=!0,push$1(He.path,""),Be=CANNOT_BE_A_BASE_URL_PATH)}else{if(De)return INVALID_SCHEME;Ke="",Be=NO_SCHEME,Ge=0;continue}break;case NO_SCHEME:if(!Fe||Fe.cannotBeABaseURL&&Ye!=="#")return INVALID_SCHEME;if(Fe.cannotBeABaseURL&&Ye==="#"){He.scheme=Fe.scheme,He.path=arraySlice$1(Fe.path),He.query=Fe.query,He.fragment="",He.cannotBeABaseURL=!0,Be=FRAGMENT;break}Be=Fe.scheme==="file"?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if(Ye==="/"&&Ze[Ge+1]==="/")Be=SPECIAL_AUTHORITY_IGNORE_SLASHES,Ge++;else{Be=RELATIVE;continue}break;case PATH_OR_AUTHORITY:if(Ye==="/"){Be=AUTHORITY;break}else{Be=PATH;continue}case RELATIVE:if(He.scheme=Fe.scheme,Ye===EOF)He.username=Fe.username,He.password=Fe.password,He.host=Fe.host,He.port=Fe.port,He.path=arraySlice$1(Fe.path),He.query=Fe.query;else if(Ye==="/"||Ye==="\\"&&He.isSpecial())Be=RELATIVE_SLASH;else if(Ye==="?")He.username=Fe.username,He.password=Fe.password,He.host=Fe.host,He.port=Fe.port,He.path=arraySlice$1(Fe.path),He.query="",Be=QUERY;else if(Ye==="#")He.username=Fe.username,He.password=Fe.password,He.host=Fe.host,He.port=Fe.port,He.path=arraySlice$1(Fe.path),He.query=Fe.query,He.fragment="",Be=FRAGMENT;else{He.username=Fe.username,He.password=Fe.password,He.host=Fe.host,He.port=Fe.port,He.path=arraySlice$1(Fe.path),He.path.length--,Be=PATH;continue}break;case RELATIVE_SLASH:if(He.isSpecial()&&(Ye==="/"||Ye==="\\"))Be=SPECIAL_AUTHORITY_IGNORE_SLASHES;else if(Ye==="/")Be=AUTHORITY;else{He.username=Fe.username,He.password=Fe.password,He.host=Fe.host,He.port=Fe.port,Be=PATH;continue}break;case SPECIAL_AUTHORITY_SLASHES:if(Be=SPECIAL_AUTHORITY_IGNORE_SLASHES,Ye!=="/"||charAt(Ke,Ge+1)!=="/")continue;Ge++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if(Ye!=="/"&&Ye!=="\\"){Be=AUTHORITY;continue}break;case AUTHORITY:if(Ye==="@"){We&&(Ke="%40"+Ke),We=!0,Qe=arrayFrom(Ke);for(var tt=0;tt<Qe.length;tt++){var rt=Qe[tt];if(rt===":"&&!Je){Je=!0;continue}var nt=percentEncode(rt,userinfoPercentEncodeSet);Je?He.password+=nt:He.username+=nt}Ke=""}else if(Ye===EOF||Ye==="/"||Ye==="?"||Ye==="#"||Ye==="\\"&&He.isSpecial()){if(We&&Ke==="")return INVALID_AUTHORITY;Ge-=arrayFrom(Ke).length+1,Ke="",Be=HOST}else Ke+=Ye;break;case HOST:case HOSTNAME:if(De&&He.scheme==="file"){Be=FILE_HOST;continue}else if(Ye===":"&&!Xe){if(Ke==="")return INVALID_HOST;if(et=He.parseHost(Ke),et)return et;if(Ke="",Be=PORT,De===HOSTNAME)return}else if(Ye===EOF||Ye==="/"||Ye==="?"||Ye==="#"||Ye==="\\"&&He.isSpecial()){if(He.isSpecial()&&Ke==="")return INVALID_HOST;if(De&&Ke===""&&(He.includesCredentials()||He.port!==null))return;if(et=He.parseHost(Ke),et)return et;if(Ke="",Be=PATH_START,De)return;continue}else Ye==="["?Xe=!0:Ye==="]"&&(Xe=!1),Ke+=Ye;break;case PORT:if(exec(DIGIT,Ye))Ke+=Ye;else if(Ye===EOF||Ye==="/"||Ye==="?"||Ye==="#"||Ye==="\\"&&He.isSpecial()||De){if(Ke!==""){var at=parseInt$1(Ke,10);if(at>65535)return INVALID_PORT;He.port=He.isSpecial()&&at===specialSchemes[He.scheme]?null:at,Ke=""}if(De)return;Be=PATH_START;continue}else return INVALID_PORT;break;case FILE:if(He.scheme="file",Ye==="/"||Ye==="\\")Be=FILE_SLASH;else if(Fe&&Fe.scheme==="file")switch(Ye){case EOF:He.host=Fe.host,He.path=arraySlice$1(Fe.path),He.query=Fe.query;break;case"?":He.host=Fe.host,He.path=arraySlice$1(Fe.path),He.query="",Be=QUERY;break;case"#":He.host=Fe.host,He.path=arraySlice$1(Fe.path),He.query=Fe.query,He.fragment="",Be=FRAGMENT;break;default:startsWithWindowsDriveLetter(join(arraySlice$1(Ze,Ge),""))||(He.host=Fe.host,He.path=arraySlice$1(Fe.path),He.shortenPath()),Be=PATH;continue}else{Be=PATH;continue}break;case FILE_SLASH:if(Ye==="/"||Ye==="\\"){Be=FILE_HOST;break}Fe&&Fe.scheme==="file"&&!startsWithWindowsDriveLetter(join(arraySlice$1(Ze,Ge),""))&&(isWindowsDriveLetter(Fe.path[0],!0)?push$1(He.path,Fe.path[0]):He.host=Fe.host),Be=PATH;continue;case FILE_HOST:if(Ye===EOF||Ye==="/"||Ye==="\\"||Ye==="?"||Ye==="#"){if(!De&&isWindowsDriveLetter(Ke))Be=PATH;else if(Ke===""){if(He.host="",De)return;Be=PATH_START}else{if(et=He.parseHost(Ke),et)return et;if(He.host==="localhost"&&(He.host=""),De)return;Ke="",Be=PATH_START}continue}else Ke+=Ye;break;case PATH_START:if(He.isSpecial()){if(Be=PATH,Ye!=="/"&&Ye!=="\\")continue}else if(!De&&Ye==="?")He.query="",Be=QUERY;else if(!De&&Ye==="#")He.fragment="",Be=FRAGMENT;else if(Ye!==EOF&&(Be=PATH,Ye!=="/"))continue;break;case PATH:if(Ye===EOF||Ye==="/"||Ye==="\\"&&He.isSpecial()||!De&&(Ye==="?"||Ye==="#")){if(isDoubleDot(Ke)?(He.shortenPath(),Ye!=="/"&&!(Ye==="\\"&&He.isSpecial())&&push$1(He.path,"")):isSingleDot(Ke)?Ye!=="/"&&!(Ye==="\\"&&He.isSpecial())&&push$1(He.path,""):(He.scheme==="file"&&!He.path.length&&isWindowsDriveLetter(Ke)&&(He.host&&(He.host=""),Ke=charAt(Ke,0)+":"),push$1(He.path,Ke)),Ke="",He.scheme==="file"&&(Ye===EOF||Ye==="?"||Ye==="#"))for(;He.path.length>1&&He.path[0]==="";)shift(He.path);Ye==="?"?(He.query="",Be=QUERY):Ye==="#"&&(He.fragment="",Be=FRAGMENT)}else Ke+=percentEncode(Ye,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:Ye==="?"?(He.query="",Be=QUERY):Ye==="#"?(He.fragment="",Be=FRAGMENT):Ye!==EOF&&(He.path[0]+=percentEncode(Ye,C0ControlPercentEncodeSet));break;case QUERY:!De&&Ye==="#"?(He.fragment="",Be=FRAGMENT):Ye!==EOF&&(Ye==="'"&&He.isSpecial()?He.query+="%27":Ye==="#"?He.query+="%23":He.query+=percentEncode(Ye,C0ControlPercentEncodeSet));break;case FRAGMENT:Ye!==EOF&&(He.fragment+=percentEncode(Ye,fragmentPercentEncodeSet));break}Ge++}},parseHost:function($e){var De,Fe,He;if(charAt($e,0)==="["){if(charAt($e,$e.length-1)!=="]"||(De=parseIPv6(stringSlice($e,1,-1)),!De))return INVALID_HOST;this.host=De}else if(this.isSpecial()){if($e=toASCII($e),exec(FORBIDDEN_HOST_CODE_POINT,$e)||(De=parseIPv4($e),De===null))return INVALID_HOST;this.host=De}else{if(exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT,$e))return INVALID_HOST;for(De="",Fe=arrayFrom($e),He=0;He<Fe.length;He++)De+=percentEncode(Fe[He],C0ControlPercentEncodeSet);this.host=De}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return hasOwn$1(specialSchemes,this.scheme)},shortenPath:function(){var $e=this.path,De=$e.length;De&&(this.scheme!=="file"||De!==1||!isWindowsDriveLetter($e[0],!0))&&$e.length--},serialize:function(){var $e=this,De=$e.scheme,Fe=$e.username,He=$e.password,Be=$e.host,Ge=$e.port,Ke=$e.path,We=$e.query,Xe=$e.fragment,Je=De+":";return Be!==null?(Je+="//",$e.includesCredentials()&&(Je+=Fe+(He?":"+He:"")+"@"),Je+=serializeHost(Be),Ge!==null&&(Je+=":"+Ge)):De==="file"&&(Je+="//"),Je+=$e.cannotBeABaseURL?Ke[0]:Ke.length?"/"+join(Ke,"/"):"",We!==null&&(Je+="?"+We),Xe!==null&&(Je+="#"+Xe),Je},setHref:function($e){var De=this.parse($e);if(De)throw new TypeError$2(De);this.searchParams.update()},getOrigin:function(){var $e=this.scheme,De=this.port;if($e==="blob")try{return new URLConstructor($e.path[0]).origin}catch{return"null"}return $e==="file"||!this.isSpecial()?"null":$e+"://"+serializeHost(this.host)+(De!==null?":"+De:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function($e){this.parse($toString($e)+":",SCHEME_START)},getUsername:function(){return this.username},setUsername:function($e){var De=arrayFrom($toString($e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var Fe=0;Fe<De.length;Fe++)this.username+=percentEncode(De[Fe],userinfoPercentEncodeSet)}},getPassword:function(){return this.password},setPassword:function($e){var De=arrayFrom($toString($e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var Fe=0;Fe<De.length;Fe++)this.password+=percentEncode(De[Fe],userinfoPercentEncodeSet)}},getHost:function(){var $e=this.host,De=this.port;return $e===null?"":De===null?serializeHost($e):serializeHost($e)+":"+De},setHost:function($e){this.cannotBeABaseURL||this.parse($e,HOST)},getHostname:function(){var $e=this.host;return $e===null?"":serializeHost($e)},setHostname:function($e){this.cannotBeABaseURL||this.parse($e,HOSTNAME)},getPort:function(){var $e=this.port;return $e===null?"":$toString($e)},setPort:function($e){this.cannotHaveUsernamePasswordPort()||($e=$toString($e),$e===""?this.port=null:this.parse($e,PORT))},getPathname:function(){var $e=this.path;return this.cannotBeABaseURL?$e[0]:$e.length?"/"+join($e,"/"):""},setPathname:function($e){this.cannotBeABaseURL||(this.path=[],this.parse($e,PATH_START))},getSearch:function(){var $e=this.query;return $e?"?"+$e:""},setSearch:function($e){$e=$toString($e),$e===""?this.query=null:(charAt($e,0)==="?"&&($e=stringSlice($e,1)),this.query="",this.parse($e,QUERY)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var $e=this.fragment;return $e?"#"+$e:""},setHash:function($e){if($e=$toString($e),$e===""){this.fragment=null;return}charAt($e,0)==="#"&&($e=stringSlice($e,1)),this.fragment="",this.parse($e,FRAGMENT)},update:function(){this.query=this.searchParams.serialize()||null}};var URLConstructor=function($e){var De=anInstance$1(this,URLPrototype),Fe=validateArgumentsLength$3(arguments.length,1)>1?arguments[1]:void 0,He=setInternalState$1(De,new URLState($e,!1,Fe));DESCRIPTORS$1||(De.href=He.serialize(),De.origin=He.getOrigin(),De.protocol=He.getProtocol(),De.username=He.getUsername(),De.password=He.getPassword(),De.host=He.getHost(),De.hostname=He.getHostname(),De.port=He.getPort(),De.pathname=He.getPathname(),De.search=He.getSearch(),De.searchParams=He.getSearchParams(),De.hash=He.getHash())},URLPrototype=URLConstructor.prototype,accessorDescriptor=function($e,De){return{get:function(){return getInternalURLState(this)[$e]()},set:De&&function(Fe){return getInternalURLState(this)[De](Fe)},configurable:!0,enumerable:!0}};if(DESCRIPTORS$1&&(defineBuiltInAccessor$1(URLPrototype,"href",accessorDescriptor("serialize","setHref")),defineBuiltInAccessor$1(URLPrototype,"origin",accessorDescriptor("getOrigin")),defineBuiltInAccessor$1(URLPrototype,"protocol",accessorDescriptor("getProtocol","setProtocol")),defineBuiltInAccessor$1(URLPrototype,"username",accessorDescriptor("getUsername","setUsername")),defineBuiltInAccessor$1(URLPrototype,"password",accessorDescriptor("getPassword","setPassword")),defineBuiltInAccessor$1(URLPrototype,"host",accessorDescriptor("getHost","setHost")),defineBuiltInAccessor$1(URLPrototype,"hostname",accessorDescriptor("getHostname","setHostname")),defineBuiltInAccessor$1(URLPrototype,"port",accessorDescriptor("getPort","setPort")),defineBuiltInAccessor$1(URLPrototype,"pathname",accessorDescriptor("getPathname","setPathname")),defineBuiltInAccessor$1(URLPrototype,"search",accessorDescriptor("getSearch","setSearch")),defineBuiltInAccessor$1(URLPrototype,"searchParams",accessorDescriptor("getSearchParams")),defineBuiltInAccessor$1(URLPrototype,"hash",accessorDescriptor("getHash","setHash"))),defineBuiltIn$4(URLPrototype,"toJSON",function(){return getInternalURLState(this).serialize()},{enumerable:!0}),defineBuiltIn$4(URLPrototype,"toString",function(){return getInternalURLState(this).serialize()},{enumerable:!0}),NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&defineBuiltIn$4(URLConstructor,"createObjectURL",bind$4(nativeCreateObjectURL,NativeURL)),nativeRevokeObjectURL&&defineBuiltIn$4(URLConstructor,"revokeObjectURL",bind$4(nativeRevokeObjectURL,NativeURL))}setToStringTag$2(URLConstructor,"URL"),$$i({global:!0,constructor:!0,forced:!USE_NATIVE_URL$2,sham:!DESCRIPTORS$1},{URL:URLConstructor});var $$h=_export,getBuiltIn$6=getBuiltIn$c,fails$3=fails$h,validateArgumentsLength$2=validateArgumentsLength$7,toString$3=toString$8,USE_NATIVE_URL$1=urlConstructorDetection,URL$2=getBuiltIn$6("URL"),THROWS_WITHOUT_ARGUMENTS=USE_NATIVE_URL$1&&fails$3(function(){URL$2.canParse()}),WRONG_ARITY=fails$3(function(){return URL$2.canParse.length!==1});$$h({target:"URL",stat:!0,forced:!THROWS_WITHOUT_ARGUMENTS||WRONG_ARITY},{canParse:function($e){var De=validateArgumentsLength$2(arguments.length,1),Fe=toString$3($e),He=De<2||arguments[1]===void 0?void 0:toString$3(arguments[1]);try{return!!new URL$2(Fe,He)}catch{return!1}}});var $$g=_export,getBuiltIn$5=getBuiltIn$c,validateArgumentsLength$1=validateArgumentsLength$7,toString$2=toString$8,USE_NATIVE_URL=urlConstructorDetection,URL$1=getBuiltIn$5("URL");$$g({target:"URL",stat:!0,forced:!USE_NATIVE_URL},{parse:function($e){var De=validateArgumentsLength$1(arguments.length,1),Fe=toString$2($e),He=De<2||arguments[1]===void 0?void 0:toString$2(arguments[1]);try{return new URL$1(Fe,He)}catch{return null}}});var $$f=_export,call$7=functionCall;$$f({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return call$7(URL.prototype.toString,this)}});var path$1=path$3;path$1.URL;var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,globalThis$8=globalThis_1,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$3=createNonEnumerableProperty$7,setToStringTag$1=setToStringTag$6,wellKnownSymbol$5=wellKnownSymbol$h,ITERATOR$1=wellKnownSymbol$5("iterator"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function($e,De){if($e){if($e[ITERATOR$1]!==ArrayValues)try{createNonEnumerableProperty$3($e,ITERATOR$1,ArrayValues)}catch{$e[ITERATOR$1]=ArrayValues}if(setToStringTag$1($e,De,!0),DOMIterables[De]){for(var Fe in ArrayIteratorMethods)if($e[Fe]!==ArrayIteratorMethods[Fe])try{createNonEnumerableProperty$3($e,Fe,ArrayIteratorMethods[Fe])}catch{$e[Fe]=ArrayIteratorMethods[Fe]}}}};for(var COLLECTION_NAME in DOMIterables)handlePrototype(globalThis$8[COLLECTION_NAME]&&globalThis$8[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var isObject$2=isObject$c,createNonEnumerableProperty$2=createNonEnumerableProperty$7,installErrorCause$1=function($e,De){isObject$2(De)&&"cause"in De&&createNonEnumerableProperty$2($e,"cause",De.cause)},uncurryThis=functionUncurryThis,$Error$1=Error,replace$1=uncurryThis("".replace),TEST=function($e){return String(new $Error$1($e).stack)}("zxcasd"),V8_OR_CHAKRA_STACK_ENTRY=/\n\s*at [^:]*:[^\n]*/,IS_V8_OR_CHAKRA_STACK=V8_OR_CHAKRA_STACK_ENTRY.test(TEST),errorStackClear=function($e,De){if(IS_V8_OR_CHAKRA_STACK&&typeof $e=="string"&&!$Error$1.prepareStackTrace)for(;De--;)$e=replace$1($e,V8_OR_CHAKRA_STACK_ENTRY,"");return $e},fails$2=fails$h,createPropertyDescriptor$1=createPropertyDescriptor$7,errorStackInstallable=!fails$2(function(){var $e=new Error("a");return"stack"in $e?(Object.defineProperty($e,"stack",createPropertyDescriptor$1(1,7)),$e.stack!==7):!0}),createNonEnumerableProperty$1=createNonEnumerableProperty$7,clearErrorStack=errorStackClear,ERROR_STACK_INSTALLABLE=errorStackInstallable,captureStackTrace=Error.captureStackTrace,errorStackInstall=function($e,De,Fe,He){ERROR_STACK_INSTALLABLE&&(captureStackTrace?captureStackTrace($e,De):createNonEnumerableProperty$1($e,"stack",clearErrorStack(Fe,He)))},bind$3=functionBindContext,call$6=functionCall,anObject$2=anObject$b,tryToString$1=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$2,lengthOfArrayLike=lengthOfArrayLike$3,isPrototypeOf$1=objectIsPrototypeOf,getIterator=getIterator$3,getIteratorMethod=getIteratorMethod$4,iteratorClose=iteratorClose$2,$TypeError$2=TypeError,Result=function($e,De){this.stopped=$e,this.result=De},ResultPrototype=Result.prototype,iterate$5=function($e,De,Fe){var He=Fe&&Fe.that,Be=!!(Fe&&Fe.AS_ENTRIES),Ge=!!(Fe&&Fe.IS_RECORD),Ke=!!(Fe&&Fe.IS_ITERATOR),We=!!(Fe&&Fe.INTERRUPTED),Xe=bind$3(De,He),Je,Ze,Ye,Qe,et,tt,rt,nt=function(st){return Je&&iteratorClose(Je,"normal",st),new Result(!0,st)},at=function(st){return Be?(anObject$2(st),We?Xe(st[0],st[1],nt):Xe(st[0],st[1])):We?Xe(st,nt):Xe(st)};if(Ge)Je=$e.iterator;else if(Ke)Je=$e;else{if(Ze=getIteratorMethod($e),!Ze)throw new $TypeError$2(tryToString$1($e)+" is not iterable");if(isArrayIteratorMethod(Ze)){for(Ye=0,Qe=lengthOfArrayLike($e);Qe>Ye;Ye++)if(et=at($e[Ye]),et&&isPrototypeOf$1(ResultPrototype,et))return et;return new Result(!1)}Je=getIterator($e,Ze)}for(tt=Ge?$e.next:Je.next;!(rt=call$6(tt,Je)).done;){try{et=at(rt.value)}catch(st){iteratorClose(Je,"throw",st)}if(typeof et=="object"&&et&&isPrototypeOf$1(ResultPrototype,et))return et}return new Result(!1)},toString$1=toString$8,normalizeStringArgument$1=function($e,De){return $e===void 0?arguments.length<2?"":De:toString$1($e)},$$e=_export,isPrototypeOf=objectIsPrototypeOf,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,copyConstructorProperties=copyConstructorProperties$2,create=objectCreate,createNonEnumerableProperty=createNonEnumerableProperty$7,createPropertyDescriptor=createPropertyDescriptor$7,installErrorCause=installErrorCause$1,installErrorStack=errorStackInstall,iterate$4=iterate$5,normalizeStringArgument=normalizeStringArgument$1,wellKnownSymbol$4=wellKnownSymbol$h,TO_STRING_TAG=wellKnownSymbol$4("toStringTag"),$Error=Error,push=[].push,$AggregateError=function($e,De){var Fe=isPrototypeOf(AggregateErrorPrototype,this),He;setPrototypeOf$1?He=setPrototypeOf$1(new $Error,Fe?getPrototypeOf(this):AggregateErrorPrototype):(He=Fe?this:create(AggregateErrorPrototype),createNonEnumerableProperty(He,TO_STRING_TAG,"Error")),De!==void 0&&createNonEnumerableProperty(He,"message",normalizeStringArgument(De)),installErrorStack(He,$AggregateError,He.stack,1),arguments.length>2&&installErrorCause(He,arguments[2]);var Be=[];return iterate$4($e,push,{that:Be}),createNonEnumerableProperty(He,"errors",Be),He};setPrototypeOf$1?setPrototypeOf$1($AggregateError,$Error):copyConstructorProperties($AggregateError,$Error,{name:!0});var AggregateErrorPrototype=$AggregateError.prototype=create($Error.prototype,{constructor:createPropertyDescriptor(1,$AggregateError),message:createPropertyDescriptor(1,""),name:createPropertyDescriptor(1,"AggregateError")});$$e({global:!0,constructor:!0,arity:2},{AggregateError:$AggregateError});var TO_STRING_TAG_SUPPORT$1=toStringTagSupport,classof$1=classof$6,objectToString=TO_STRING_TAG_SUPPORT$1?{}.toString:function(){return"[object "+classof$1(this)+"]"},TO_STRING_TAG_SUPPORT=toStringTagSupport,defineBuiltIn$3=defineBuiltIn$c,toString=objectToString;TO_STRING_TAG_SUPPORT||defineBuiltIn$3(Object.prototype,"toString",toString,{unsafe:!0});var globalThis$7=globalThis_1,userAgent$3=environmentUserAgent,classof=classofRaw$2,userAgentStartsWith=function($e){return userAgent$3.slice(0,$e.length)===$e},environment=function(){return userAgentStartsWith("Bun/")?"BUN":userAgentStartsWith("Cloudflare-Workers")?"CLOUDFLARE":userAgentStartsWith("Deno/")?"DENO":userAgentStartsWith("Node.js/")?"NODE":globalThis$7.Bun&&typeof Bun.version=="string"?"BUN":globalThis$7.Deno&&typeof Deno.version=="object"?"DENO":classof(globalThis$7.process)==="process"?"NODE":globalThis$7.window&&globalThis$7.document?"BROWSER":"REST"}(),ENVIRONMENT$1=environment,environmentIsNode=ENVIRONMENT$1==="NODE",getBuiltIn$4=getBuiltIn$c,defineBuiltInAccessor=defineBuiltInAccessor$4,wellKnownSymbol$3=wellKnownSymbol$h,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$3("species"),setSpecies$1=function($e){var De=getBuiltIn$4($e);DESCRIPTORS&&De&&!De[SPECIES$2]&&defineBuiltInAccessor(De,SPECIES$2,{configurable:!0,get:function(){return this}})},isConstructor=isConstructor$2,tryToString=tryToString$4,$TypeError$1=TypeError,aConstructor$1=function($e){if(isConstructor($e))return $e;throw new $TypeError$1(tryToString($e)+" is not a constructor")},anObject$1=anObject$b,aConstructor=aConstructor$1,isNullOrUndefined=isNullOrUndefined$4,wellKnownSymbol$2=wellKnownSymbol$h,SPECIES$1=wellKnownSymbol$2("species"),speciesConstructor$2=function($e,De){var Fe=anObject$1($e).constructor,He;return Fe===void 0||isNullOrUndefined(He=anObject$1(Fe)[SPECIES$1])?De:aConstructor(He)},NATIVE_BIND=functionBindNative,FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$5=FunctionPrototype.call,functionApply=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND?call$5.bind(apply$2):function(){return call$5.apply(apply$2,arguments)}),userAgent$2=environmentUserAgent,environmentIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),globalThis$6=globalThis_1,apply$1=functionApply,bind$2=functionBindContext,isCallable$4=isCallable$l,hasOwn=hasOwnProperty_1,fails$1=fails$h,html=html$2,arraySlice=arraySlice$3,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$7,IS_IOS$1=environmentIsIos,IS_NODE$2=environmentIsNode,set=globalThis$6.setImmediate,clear=globalThis$6.clearImmediate,process$3=globalThis$6.process,Dispatch=globalThis$6.Dispatch,Function$1=globalThis$6.Function,MessageChannel$1=globalThis$6.MessageChannel,String$1=globalThis$6.String,counter=0,queue$3={},ONREADYSTATECHANGE="onreadystatechange",$location,defer,channel,port;fails$1(function(){$location=globalThis$6.location});var run=function($e){if(hasOwn(queue$3,$e)){var De=queue$3[$e];delete queue$3[$e],De()}},runner=function($e){return function(){run($e)}},eventListener=function($e){run($e.data)},globalPostMessageDefer=function($e){globalThis$6.postMessage(String$1($e),$location.protocol+"//"+$location.host)};(!set||!clear)&&(set=function($e){validateArgumentsLength(arguments.length,1);var De=isCallable$4($e)?$e:Function$1($e),Fe=arraySlice(arguments,1);return queue$3[++counter]=function(){apply$1(De,void 0,Fe)},defer(counter),counter},clear=function($e){delete queue$3[$e]},IS_NODE$2?defer=function($e){process$3.nextTick(runner($e))}:Dispatch&&Dispatch.now?defer=function($e){Dispatch.now(runner($e))}:MessageChannel$1&&!IS_IOS$1?(channel=new MessageChannel$1,port=channel.port2,channel.port1.onmessage=eventListener,defer=bind$2(port.postMessage,port)):globalThis$6.addEventListener&&isCallable$4(globalThis$6.postMessage)&&!globalThis$6.importScripts&&$location&&$location.protocol!=="file:"&&!fails$1(globalPostMessageDefer)?(defer=globalPostMessageDefer,globalThis$6.addEventListener("message",eventListener,!1)):ONREADYSTATECHANGE in createElement("script")?defer=function($e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run($e)}}:defer=function($e){setTimeout(runner($e),0)});var task$1={set,clear},Queue$2=function(){this.head=null,this.tail=null};Queue$2.prototype={add:function($e){var De={item:$e,next:null},Fe=this.tail;Fe?Fe.next=De:this.head=De,this.tail=De},get:function(){var $e=this.head;if($e){var De=this.head=$e.next;return De===null&&(this.tail=null),$e.item}}};var queue$2=Queue$2,userAgent$1=environmentUserAgent,environmentIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&typeof Pebble<"u",userAgent=environmentUserAgent,environmentIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),globalThis$5=globalThis_1,safeGetBuiltIn=safeGetBuiltIn$2,bind$1=functionBindContext,macrotask=task$1.set,Queue$1=queue$2,IS_IOS=environmentIsIos,IS_IOS_PEBBLE=environmentIsIosPebble,IS_WEBOS_WEBKIT=environmentIsWebosWebkit,IS_NODE$1=environmentIsNode,MutationObserver$1=globalThis$5.MutationObserver||globalThis$5.WebKitMutationObserver,document$2=globalThis$5.document,process$2=globalThis$5.process,Promise$2=globalThis$5.Promise,microtask$1=safeGetBuiltIn("queueMicrotask"),notify$1,toggle,node,promise,then;if(!microtask$1){var queue$1=new Queue$1,flush=function(){var $e,De;for(IS_NODE$1&&($e=process$2.domain)&&$e.exit();De=queue$1.get();)try{De()}catch(Fe){throw queue$1.head&¬ify$1(),Fe}$e&&$e.enter()};!IS_IOS&&!IS_NODE$1&&!IS_WEBOS_WEBKIT&&MutationObserver$1&&document$2?(toggle=!0,node=document$2.createTextNode(""),new MutationObserver$1(flush).observe(node,{characterData:!0}),notify$1=function(){node.data=toggle=!toggle}):!IS_IOS_PEBBLE&&Promise$2&&Promise$2.resolve?(promise=Promise$2.resolve(void 0),promise.constructor=Promise$2,then=bind$1(promise.then,promise),notify$1=function(){then(flush)}):IS_NODE$1?notify$1=function(){process$2.nextTick(flush)}:(macrotask=bind$1(macrotask,globalThis$5),notify$1=function(){macrotask(flush)}),microtask$1=function($e){queue$1.head||notify$1(),queue$1.add($e)}}var microtask_1=microtask$1,hostReportErrors$1=function($e,De){try{arguments.length===1?console.error($e):console.error($e,De)}catch{}},perform$6=function($e){try{return{error:!1,value:$e()}}catch(De){return{error:!0,value:De}}},globalThis$4=globalThis_1,promiseNativeConstructor=globalThis$4.Promise,globalThis$3=globalThis_1,NativePromiseConstructor$4=promiseNativeConstructor,isCallable$3=isCallable$l,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$1=wellKnownSymbol$h,ENVIRONMENT=environment,V8_VERSION=environmentV8Version;NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype;var SPECIES=wellKnownSymbol$1("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$3(globalThis$3.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var $e=inspectSource(NativePromiseConstructor$4),De=$e!==String(NativePromiseConstructor$4);if(!De&&V8_VERSION===66)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test($e)){var Fe=new NativePromiseConstructor$4(function(Ge){Ge(1)}),He=function(Ge){Ge(function(){},function(){})},Be=Fe.constructor={};if(Be[SPECIES]=He,SUBCLASSING=Fe.then(function(){})instanceof He,!SUBCLASSING)return!0}return!De&&(ENVIRONMENT==="BROWSER"||ENVIRONMENT==="DENO")&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING},newPromiseCapability$2={},aCallable$6=aCallable$b,$TypeError=TypeError,PromiseCapability=function($e){var De,Fe;this.promise=new $e(function(He,Be){if(De!==void 0||Fe!==void 0)throw new $TypeError("Bad Promise constructor");De=He,Fe=Be}),this.resolve=aCallable$6(De),this.reject=aCallable$6(Fe)};newPromiseCapability$2.f=function($e){return new PromiseCapability($e)};var $$d=_export,IS_NODE=environmentIsNode,globalThis$2=globalThis_1,call$4=functionCall,defineBuiltIn$2=defineBuiltIn$c,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$6,setSpecies=setSpecies$1,aCallable$5=aCallable$b,isCallable$2=isCallable$l,isObject$1=isObject$c,anInstance=anInstance$3,speciesConstructor$1=speciesConstructor$2,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$5=perform$6,Queue=queue$2,InternalStateModule=internalState,NativePromiseConstructor$3=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$7=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$2=NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,PromiseConstructor=NativePromiseConstructor$3,PromisePrototype=NativePromisePrototype$2,TypeError$1=globalThis$2.TypeError,document$1=globalThis$2.document,process$1=globalThis$2.process,newPromiseCapability$1=newPromiseCapabilityModule$7.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&globalThis$2.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,isThenable=function($e){var De;return isObject$1($e)&&isCallable$2(De=$e.then)?De:!1},callReaction=function($e,De){var Fe=De.value,He=De.state===FULFILLED,Be=He?$e.ok:$e.fail,Ge=$e.resolve,Ke=$e.reject,We=$e.domain,Xe,Je,Ze;try{Be?(He||(De.rejection===UNHANDLED&&onHandleUnhandled(De),De.rejection=HANDLED),Be===!0?Xe=Fe:(We&&We.enter(),Xe=Be(Fe),We&&(We.exit(),Ze=!0)),Xe===$e.promise?Ke(new TypeError$1("Promise-chain cycle")):(Je=isThenable(Xe))?call$4(Je,Xe,Ge,Ke):Ge(Xe)):Ke(Fe)}catch(Ye){We&&!Ze&&We.exit(),Ke(Ye)}},notify=function($e,De){$e.notified||($e.notified=!0,microtask(function(){for(var Fe=$e.reactions,He;He=Fe.get();)callReaction(He,$e);$e.notified=!1,De&&!$e.rejection&&onUnhandled($e)}))},dispatchEvent$1=function($e,De,Fe){var He,Be;DISPATCH_EVENT?(He=document$1.createEvent("Event"),He.promise=De,He.reason=Fe,He.initEvent($e,!1,!0),globalThis$2.dispatchEvent(He)):He={promise:De,reason:Fe},!NATIVE_PROMISE_REJECTION_EVENT&&(Be=globalThis$2["on"+$e])?Be(He):$e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",Fe)},onUnhandled=function($e){call$4(task,globalThis$2,function(){var De=$e.facade,Fe=$e.value,He=isUnhandled($e),Be;if(He&&(Be=perform$5(function(){IS_NODE?process$1.emit("unhandledRejection",Fe,De):dispatchEvent$1(UNHANDLED_REJECTION,De,Fe)}),$e.rejection=IS_NODE||isUnhandled($e)?UNHANDLED:HANDLED,Be.error))throw Be.value})},isUnhandled=function($e){return $e.rejection!==HANDLED&&!$e.parent},onHandleUnhandled=function($e){call$4(task,globalThis$2,function(){var De=$e.facade;IS_NODE?process$1.emit("rejectionHandled",De):dispatchEvent$1(REJECTION_HANDLED,De,$e.value)})},bind=function($e,De,Fe){return function(He){$e(De,He,Fe)}},internalReject=function($e,De,Fe){$e.done||($e.done=!0,Fe&&($e=Fe),$e.value=De,$e.state=REJECTED,notify($e,!0))},internalResolve=function($e,De,Fe){if(!$e.done){$e.done=!0,Fe&&($e=Fe);try{if($e.facade===De)throw new TypeError$1("Promise can't be resolved itself");var He=isThenable(De);He?microtask(function(){var Be={done:!1};try{call$4(He,De,bind(internalResolve,Be,$e),bind(internalReject,Be,$e))}catch(Ge){internalReject(Be,Ge,$e)}}):($e.value=De,$e.state=FULFILLED,notify($e,!1))}catch(Be){internalReject({done:!1},Be,$e)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromiseConstructor=function($e){anInstance(this,PromisePrototype),aCallable$5($e),call$4(Internal,this);var De=getInternalPromiseState(this);try{$e(bind(internalResolve,De),bind(internalReject,De))}catch(Fe){internalReject(De,Fe)}},PromisePrototype=PromiseConstructor.prototype,Internal=function($e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:null})},Internal.prototype=defineBuiltIn$2(PromisePrototype,"then",function($e,De){var Fe=getInternalPromiseState(this),He=newPromiseCapability$1(speciesConstructor$1(this,PromiseConstructor));return Fe.parent=!0,He.ok=isCallable$2($e)?$e:!0,He.fail=isCallable$2(De)&&De,He.domain=IS_NODE?process$1.domain:void 0,Fe.state===PENDING?Fe.reactions.add(He):microtask(function(){callReaction(He,Fe)}),He.promise}),OwnPromiseCapability=function(){var $e=new Internal,De=getInternalPromiseState($e);this.promise=$e,this.resolve=bind(internalResolve,De),this.reject=bind(internalReject,De)},newPromiseCapabilityModule$7.f=newPromiseCapability$1=function($e){return $e===PromiseConstructor||$e===PromiseWrapper?new OwnPromiseCapability($e):newGenericPromiseCapability($e)},isCallable$2(NativePromiseConstructor$3)&&NativePromisePrototype$2!==Object.prototype)){nativeThen=NativePromisePrototype$2.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$2(NativePromisePrototype$2,"then",function($e,De){var Fe=this;return new PromiseConstructor(function(He,Be){call$4(nativeThen,Fe,He,Be)}).then($e,De)},{unsafe:!0});try{delete NativePromisePrototype$2.constructor}catch{}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$2,PromisePrototype)}$$d({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol=wellKnownSymbol$h,ITERATOR=wellKnownSymbol("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch{}var checkCorrectnessOfIteration$1=function($e,De){try{if(!De&&!SAFE_CLOSING)return!1}catch{return!1}var Fe=!1;try{var He={};He[ITERATOR]=function(){return{next:function(){return{done:Fe=!0}}}},$e(He)}catch{}return Fe},NativePromiseConstructor$2=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function($e){NativePromiseConstructor$2.all($e).then(void 0,function(){})}),$$c=_export,call$3=functionCall,aCallable$4=aCallable$b,newPromiseCapabilityModule$6=newPromiseCapability$2,perform$4=perform$6,iterate$3=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$3=promiseStaticsIncorrectIteration;$$c({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$3},{all:function($e){var De=this,Fe=newPromiseCapabilityModule$6.f(De),He=Fe.resolve,Be=Fe.reject,Ge=perform$4(function(){var Ke=aCallable$4(De.resolve),We=[],Xe=0,Je=1;iterate$3($e,function(Ze){var Ye=Xe++,Qe=!1;Je++,call$3(Ke,De,Ze).then(function(et){Qe||(Qe=!0,We[Ye]=et,--Je||He(We))},Be)}),--Je||He(We)});return Ge.error&&Be(Ge.value),Fe.promise}});var $$b=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$1=promiseNativeConstructor,getBuiltIn$3=getBuiltIn$c,isCallable$1=isCallable$l,defineBuiltIn$1=defineBuiltIn$c,NativePromisePrototype$1=NativePromiseConstructor$1&&NativePromiseConstructor$1.prototype;if($$b({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function($e){return this.then(void 0,$e)}}),isCallable$1(NativePromiseConstructor$1)){var method$1=getBuiltIn$3("Promise").prototype.catch;NativePromisePrototype$1.catch!==method$1&&defineBuiltIn$1(NativePromisePrototype$1,"catch",method$1,{unsafe:!0})}var $$a=_export,call$2=functionCall,aCallable$3=aCallable$b,newPromiseCapabilityModule$5=newPromiseCapability$2,perform$3=perform$6,iterate$2=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$2=promiseStaticsIncorrectIteration;$$a({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$2},{race:function($e){var De=this,Fe=newPromiseCapabilityModule$5.f(De),He=Fe.reject,Be=perform$3(function(){var Ge=aCallable$3(De.resolve);iterate$2($e,function(Ke){call$2(Ge,De,Ke).then(Fe.resolve,He)})});return Be.error&&He(Be.value),Fe.promise}});var $$9=_export,newPromiseCapabilityModule$4=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$9({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function($e){var De=newPromiseCapabilityModule$4.f(this),Fe=De.reject;return Fe($e),De.promise}});var anObject=anObject$b,isObject=isObject$c,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function($e,De){if(anObject($e),isObject(De)&&De.constructor===$e)return De;var Fe=newPromiseCapability.f($e),He=Fe.resolve;return He(De),Fe.promise},$$8=_export,getBuiltIn$2=getBuiltIn$c,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2;getBuiltIn$2("Promise"),$$8({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function($e){return promiseResolve$1(this,$e)}});var $$7=_export,call$1=functionCall,aCallable$2=aCallable$b,newPromiseCapabilityModule$3=newPromiseCapability$2,perform$2=perform$6,iterate$1=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$7({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{allSettled:function($e){var De=this,Fe=newPromiseCapabilityModule$3.f(De),He=Fe.resolve,Be=Fe.reject,Ge=perform$2(function(){var Ke=aCallable$2(De.resolve),We=[],Xe=0,Je=1;iterate$1($e,function(Ze){var Ye=Xe++,Qe=!1;Je++,call$1(Ke,De,Ze).then(function(et){Qe||(Qe=!0,We[Ye]={status:"fulfilled",value:et},--Je||He(We))},function(et){Qe||(Qe=!0,We[Ye]={status:"rejected",reason:et},--Je||He(We))})}),--Je||He(We)});return Ge.error&&Be(Ge.value),Fe.promise}});var $$6=_export,call=functionCall,aCallable$1=aCallable$b,getBuiltIn$1=getBuiltIn$c,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$6,iterate=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,PROMISE_ANY_ERROR="No one promise resolved";$$6({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{any:function($e){var De=this,Fe=getBuiltIn$1("AggregateError"),He=newPromiseCapabilityModule$2.f(De),Be=He.resolve,Ge=He.reject,Ke=perform$1(function(){var We=aCallable$1(De.resolve),Xe=[],Je=0,Ze=1,Ye=!1;iterate($e,function(Qe){var et=Je++,tt=!1;Ze++,call(We,De,Qe).then(function(rt){tt||Ye||(Ye=!0,Be(rt))},function(rt){tt||Ye||(tt=!0,Xe[et]=rt,--Ze||Ge(new Fe(Xe,PROMISE_ANY_ERROR)))})}),--Ze||Ge(new Fe(Xe,PROMISE_ANY_ERROR))});return Ke.error&&Ge(Ke.value),He.promise}});var $$5=_export,globalThis$1=globalThis_1,apply=functionApply,slice=arraySlice$3,newPromiseCapabilityModule$1=newPromiseCapability$2,aCallable=aCallable$b,perform=perform$6,Promise$1=globalThis$1.Promise,ACCEPT_ARGUMENTS=!1,FORCED=!Promise$1||!Promise$1.try||perform(function(){Promise$1.try(function($e){ACCEPT_ARGUMENTS=$e===8},8)}).error||!ACCEPT_ARGUMENTS;$$5({target:"Promise",stat:!0,forced:FORCED},{try:function($e){var De=arguments.length>1?slice(arguments,1):[],Fe=newPromiseCapabilityModule$1.f(this),He=perform(function(){return apply(aCallable($e),void 0,De)});return(He.error?Fe.reject:Fe.resolve)(He.value),Fe.promise}});var $$4=_export,newPromiseCapabilityModule=newPromiseCapability$2;$$4({target:"Promise",stat:!0},{withResolvers:function(){var $e=newPromiseCapabilityModule.f(this);return{promise:$e.promise,resolve:$e.resolve,reject:$e.reject}}});var $$3=_export,NativePromiseConstructor=promiseNativeConstructor,fails=fails$h,getBuiltIn=getBuiltIn$c,isCallable=isCallable$l,speciesConstructor=speciesConstructor$2,promiseResolve=promiseResolve$2,defineBuiltIn=defineBuiltIn$c,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,NON_GENERIC=!!NativePromiseConstructor&&fails(function(){NativePromisePrototype.finally.call({then:function(){}},function(){})});if($$3({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function($e){var De=speciesConstructor(this,getBuiltIn("Promise")),Fe=isCallable($e);return this.then(Fe?function(He){return promiseResolve(De,$e()).then(function(){return He})}:$e,Fe?function(He){return promiseResolve(De,$e()).then(function(){throw He})}:$e)}}),isCallable(NativePromiseConstructor)){var method=getBuiltIn("Promise").prototype.finally;NativePromisePrototype.finally!==method&&defineBuiltIn(NativePromisePrototype,"finally",method,{unsafe:!0})}var path=path$3;path.Promise;const DEBUG_COOKIE="sesamy-debug";function setCookie($e,De,Fe){const He=new Date;He.setTime(He.getTime()+Fe*60*60*1e3);const Be="expires="+He.toUTCString();document.cookie=`${$e}=${De}; ${Be}; path=/`}function getCookie($e){if(typeof document>"u")return null;const De=$e+"=",Fe=document.cookie.split(";");for(let He=0;He<Fe.length;He++){let Be=Fe[He];for(;Be.charAt(0)===" ";)Be=Be.substring(1);if(Be.indexOf(De)===0)return Be.substring(De.length,Be.length)}return null}function setDebug($e){setCookie(DEBUG_COOKIE,$e.toString(),1)}function getDebug(){return getCookie(DEBUG_COOKIE)==="true"}function log($e){getDebug()&&console.log($e)}function triggerEvent($e,De){if(typeof window>"u")return;const Fe=new CustomEvent($e,{detail:De,bubbles:!0,composed:!0});log(`Triggering event: ${$e}`),dispatchEvent(Fe)}function e$1($e,De){var Fe={};for(var He in $e)Object.prototype.hasOwnProperty.call($e,He)&&De.indexOf(He)<0&&(Fe[He]=$e[He]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function"){var Be=0;for(He=Object.getOwnPropertySymbols($e);Be<He.length;Be++)De.indexOf(He[Be])<0&&Object.prototype.propertyIsEnumerable.call($e,He[Be])&&(Fe[He[Be]]=$e[He[Be]])}return Fe}var t$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function i$6($e){return $e&&$e.__esModule&&Object.prototype.hasOwnProperty.call($e,"default")?$e.default:$e}function o$5($e,De){return $e(De={exports:{}},De.exports),De.exports}var n$2=o$5(function($e,De){Object.defineProperty(De,"__esModule",{value:!0});var Fe=function(){function He(){var Be=this;this.locked=new Map,this.addToLocked=function(Ge,Ke){var We=Be.locked.get(Ge);We===void 0?Ke===void 0?Be.locked.set(Ge,[]):Be.locked.set(Ge,[Ke]):Ke!==void 0&&(We.unshift(Ke),Be.locked.set(Ge,We))},this.isLocked=function(Ge){return Be.locked.has(Ge)},this.lock=function(Ge){return new Promise(function(Ke,We){Be.isLocked(Ge)?Be.addToLocked(Ge,Ke):(Be.addToLocked(Ge),Ke())})},this.unlock=function(Ge){var Ke=Be.locked.get(Ge);if(Ke!==void 0&&Ke.length!==0){var We=Ke.pop();Be.locked.set(Ge,Ke),We!==void 0&&setTimeout(We,0)}else Be.locked.delete(Ge)}}return He.getInstance=function(){return He.instance===void 0&&(He.instance=new He),He.instance},He}();De.default=function(){return Fe.getInstance()}});i$6(n$2);var a$6=i$6(o$5(function($e,De){var Fe=t$1&&t$1.__awaiter||function(Ze,Ye,Qe,et){return new(Qe||(Qe=Promise))(function(tt,rt){function nt(ct){try{st(et.next(ct))}catch(ot){rt(ot)}}function at(ct){try{st(et.throw(ct))}catch(ot){rt(ot)}}function st(ct){ct.done?tt(ct.value):new Qe(function(ot){ot(ct.value)}).then(nt,at)}st((et=et.apply(Ze,Ye||[])).next())})},He=t$1&&t$1.__generator||function(Ze,Ye){var Qe,et,tt,rt,nt={label:0,sent:function(){if(1&tt[0])throw tt[1];return tt[1]},trys:[],ops:[]};return rt={next:at(0),throw:at(1),return:at(2)},typeof Symbol=="function"&&(rt[Symbol.iterator]=function(){return this}),rt;function at(st){return function(ct){return function(ot){if(Qe)throw new TypeError("Generator is already executing.");for(;nt;)try{if(Qe=1,et&&(tt=2&ot[0]?et.return:ot[0]?et.throw||((tt=et.return)&&tt.call(et),0):et.next)&&!(tt=tt.call(et,ot[1])).done)return tt;switch(et=0,tt&&(ot=[2&ot[0],tt.value]),ot[0]){case 0:case 1:tt=ot;break;case 4:return nt.label++,{value:ot[1],done:!1};case 5:nt.label++,et=ot[1],ot=[0];continue;case 7:ot=nt.ops.pop(),nt.trys.pop();continue;default:if(tt=nt.trys,!((tt=tt.length>0&&tt[tt.length-1])||ot[0]!==6&&ot[0]!==2)){nt=0;continue}if(ot[0]===3&&(!tt||ot[1]>tt[0]&&ot[1]<tt[3])){nt.label=ot[1];break}if(ot[0]===6&&nt.label<tt[1]){nt.label=tt[1],tt=ot;break}if(tt&&nt.label<tt[2]){nt.label=tt[2],nt.ops.push(ot);break}tt[2]&&nt.ops.pop(),nt.trys.pop();continue}ot=Ye.call(Ze,nt)}catch(lt){ot=[6,lt],et=0}finally{Qe=tt=0}if(5&ot[0])throw ot[1];return{value:ot[0]?ot[1]:void 0,done:!0}}([st,ct])}}},Be=t$1;Object.defineProperty(De,"__esModule",{value:!0});var Ge="browser-tabs-lock-key",Ke={key:function(Ze){return Fe(Be,void 0,void 0,function(){return He(this,function(Ye){throw new Error("Unsupported")})})},getItem:function(Ze){return Fe(Be,void 0,void 0,function(){return He(this,function(Ye){throw new Error("Unsupported")})})},clear:function(){return Fe(Be,void 0,void 0,function(){return He(this,function(Ze){return[2,window.localStorage.clear()]})})},removeItem:function(Ze){return Fe(Be,void 0,void 0,function(){return He(this,function(Ye){throw new Error("Unsupported")})})},setItem:function(Ze,Ye){return Fe(Be,void 0,void 0,function(){return He(this,function(Qe){throw new Error("Unsupported")})})},keySync:function(Ze){return window.localStorage.key(Ze)},getItemSync:function(Ze){return window.localStorage.getItem(Ze)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(Ze){return window.localStorage.removeItem(Ze)},setItemSync:function(Ze,Ye){return window.localStorage.setItem(Ze,Ye)}};function We(Ze){return new Promise(function(Ye){return setTimeout(Ye,Ze)})}function Xe(Ze){for(var Ye="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",Qe="",et=0;et<Ze;et++)Qe+=Ye[Math.floor(Math.random()*Ye.length)];return Qe}var Je=function(){function Ze(Ye){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+Xe(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=Ye,Ze.waiters===void 0&&(Ze.waiters=[])}return Ze.prototype.acquireLock=function(Ye,Qe){return Qe===void 0&&(Qe=5e3),Fe(this,void 0,void 0,function(){var et,tt,rt,nt,at,st,ct;return He(this,function(ot){switch(ot.label){case 0:et=Date.now()+Xe(4),tt=Date.now()+Qe,rt=Ge+"-"+Ye,nt=this.storageHandler===void 0?Ke:this.storageHandler,ot.label=1;case 1:return Date.now()<tt?[4,We(30)]:[3,8];case 2:return ot.sent(),nt.getItemSync(rt)!==null?[3,5]:(at=this.id+"-"+Ye+"-"+et,[4,We(Math.floor(25*Math.random()))]);case 3:return ot.sent(),nt.setItemSync(rt,JSON.stringify({id:this.id,iat:et,timeoutKey:at,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,We(30)];case 4:return ot.sent(),(st=nt.getItemSync(rt))!==null&&(ct=JSON.parse(st)).id===this.id&&ct.iat===et?(this.acquiredIatSet.add(et),this.refreshLockWhileAcquired(rt,et),[2,!0]):[3,7];case 5:return Ze.lockCorrector(this.storageHandler===void 0?Ke:this.storageHandler),[4,this.waitForSomethingToChange(tt)];case 6:ot.sent(),ot.label=7;case 7:return et=Date.now()+Xe(4),[3,1];case 8:return[2,!1]}})})},Ze.prototype.refreshLockWhileAcquired=function(Ye,Qe){return Fe(this,void 0,void 0,function(){var et=this;return He(this,function(tt){return setTimeout(function(){return Fe(et,void 0,void 0,function(){var rt,nt,at;return He(this,function(st){switch(st.label){case 0:return[4,n$2.default().lock(Qe)];case 1:return st.sent(),this.acquiredIatSet.has(Qe)?(rt=this.storageHandler===void 0?Ke:this.storageHandler,(nt=rt.getItemSync(Ye))===null?(n$2.default().unlock(Qe),[2]):((at=JSON.parse(nt)).timeRefreshed=Date.now(),rt.setItemSync(Ye,JSON.stringify(at)),n$2.default().unlock(Qe),this.refreshLockWhileAcquired(Ye,Qe),[2])):(n$2.default().unlock(Qe),[2])}})})},1e3),[2]})})},Ze.prototype.waitForSomethingToChange=function(Ye){return Fe(this,void 0,void 0,function(){return He(this,function(Qe){switch(Qe.label){case 0:return[4,new Promise(function(et){var tt=!1,rt=Date.now(),nt=!1;function at(){if(nt||(window.removeEventListener("storage",at),Ze.removeFromWaiting(at),clearTimeout(st),nt=!0),!tt){tt=!0;var ct=50-(Date.now()-rt);ct>0?setTimeout(et,ct):et(null)}}window.addEventListener("storage",at),Ze.addToWaiting(at);var st=setTimeout(at,Math.max(0,Ye-Date.now()))})];case 1:return Qe.sent(),[2]}})})},Ze.addToWaiting=function(Ye){this.removeFromWaiting(Ye),Ze.waiters!==void 0&&Ze.waiters.push(Ye)},Ze.removeFromWaiting=function(Ye){Ze.waiters!==void 0&&(Ze.waiters=Ze.waiters.filter(function(Qe){return Qe!==Ye}))},Ze.notifyWaiters=function(){Ze.waiters!==void 0&&Ze.waiters.slice().forEach(function(Ye){return Ye()})},Ze.prototype.releaseLock=function(Ye){return Fe(this,void 0,void 0,function(){return He(this,function(Qe){switch(Qe.label){case 0:return[4,this.releaseLock__private__(Ye)];case 1:return[2,Qe.sent()]}})})},Ze.prototype.releaseLock__private__=function(Ye){return Fe(this,void 0,void 0,function(){var Qe,et,tt,rt;return He(this,function(nt){switch(nt.label){case 0:return Qe=this.storageHandler===void 0?Ke:this.storageHandler,et=Ge+"-"+Ye,(tt=Qe.getItemSync(et))===null?[2]:(rt=JSON.parse(tt)).id!==this.id?[3,2]:[4,n$2.default().lock(rt.iat)];case 1:nt.sent(),this.acquiredIatSet.delete(rt.iat),Qe.removeItemSync(et),n$2.default().unlock(rt.iat),Ze.notifyWaiters(),nt.label=2;case 2:return[2]}})})},Ze.lockCorrector=function(Ye){for(var Qe=Date.now()-5e3,et=Ye,tt=[],rt=0;;){var nt=et.keySync(rt);if(nt===null)break;tt.push(nt),rt++}for(var at=!1,st=0;st<tt.length;st++){var ct=tt[st];if(ct.includes(Ge)){var ot=et.getItemSync(ct);if(ot!==null){var lt=JSON.parse(ot);(lt.timeRefreshed===void 0&<.timeAcquired<Qe||lt.timeRefreshed!==void 0&<.timeRefreshed<Qe)&&(et.removeItemSync(ct),at=!0)}}}at&&Ze.notifyWaiters()},Ze.waiters=void 0,Ze}();De.default=Je}));const r$3={timeoutInSeconds:60},s$2={name:"auth0-spa-js",version:"2.1.3"},c$4=()=>Date.now();let d$2=class lr extends Error{constructor(De,Fe){super(Fe),this.error=De,this.error_description=Fe,Object.setPrototypeOf(this,lr.prototype)}static fromPayload({error:De,error_description:Fe}){return new lr(De,Fe)}},u$4=class hr extends d$2{constructor(De,Fe,He,Be=null){super(De,Fe),this.state=He,this.appState=Be,Object.setPrototypeOf(this,hr.prototype)}},l$3=class pr extends d$2{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,pr.prototype)}},h$1=class gr extends l$3{constructor(De){super(),this.popup=De,Object.setPrototypeOf(this,gr.prototype)}},p$1=class mr extends d$2{constructor(De){super("cancelled","Popup closed"),this.popup=De,Object.setPrototypeOf(this,mr.prototype)}},m$2=class _r extends d$2{constructor(De,Fe,He){super(De,Fe),this.mfa_token=He,Object.setPrototypeOf(this,_r.prototype)}},f$2=class vr extends d$2{constructor(De,Fe){super("missing_refresh_token",`Missing Refresh Token (audience: '${g$2(De,["default"])}', scope: '${g$2(Fe)}')`),this.audience=De,this.scope=Fe,Object.setPrototypeOf(this,vr.prototype)}};function g$2($e,De=[]){return $e&&!De.includes($e)?$e:""}const w$1=()=>window.crypto,y$2=()=>{const $e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let De="";return Array.from(w$1().getRandomValues(new Uint8Array(43))).forEach(Fe=>De+=$e[Fe%$e.length]),De},k$2=$e=>btoa($e),v$1=$e=>{var{clientId:De}=$e,Fe=e$1($e,["clientId"]);return new URLSearchParams((He=>Object.keys(He).filter(Be=>He[Be]!==void 0).reduce((Be,Ge)=>Object.assign(Object.assign({},Be),{[Ge]:He[Ge]}),{}))(Object.assign({client_id:De},Fe))).toString()},b$5=$e=>(De=>decodeURIComponent(atob(De).split("").map(Fe=>"%"+("00"+Fe.charCodeAt(0).toString(16)).slice(-2)).join("")))($e.replace(/_/g,"/").replace(/-/g,"+")),_$1=async($e,De)=>{const Fe=await fetch($e,De);return{ok:Fe.ok,json:await Fe.json()}},I$3=async($e,De,Fe)=>{const He=new AbortController;let Be;return De.signal=He.signal,Promise.race([_$1($e,De),new Promise((Ge,Ke)=>{Be=setTimeout(()=>{He.abort(),Ke(new Error("Timeout when executing 'fetch'"))},Fe)})]).finally(()=>{clearTimeout(Be)})},S$1=async($e,De,Fe,He,Be,Ge,Ke)=>{return We={auth:{audience:De,scope:Fe},timeout:Be,fetchUrl:$e,fetchOptions:He,useFormData:Ke},Xe=Ge,new Promise(function(Je,Ze){const Ye=new MessageChannel;Ye.port1.onmessage=function(Qe){Qe.data.error?Ze(new Error(Qe.data.error)):Je(Qe.data),Ye.port1.close()},Xe.postMessage(We,[Ye.port2])});var We,Xe},O$2=async($e,De,Fe,He,Be,Ge,Ke=1e4)=>Be?S$1($e,De,Fe,He,Ke,Be,Ge):I$3($e,He,Ke);async function T$1($e,De){var{baseUrl:Fe,timeout:He,audience:Be,scope:Ge,auth0Client:Ke,useFormData:We}=$e,Xe=e$1($e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const Je=We?v$1(Xe):JSON.stringify(Xe);return await async function(Ze,Ye,Qe,et,tt,rt,nt){let at,st=null;for(let gt=0;gt<3;gt++)try{at=await O$2(Ze,Qe,et,tt,rt,nt,Ye),st=null;break}catch(wt){st=wt}if(st)throw st;const ct=at.json,{error:ot,error_description:lt}=ct,dt=e$1(ct,["error","error_description"]),{ok:mt}=at;if(!mt){const gt=lt||`HTTP error. Unable to fetch ${Ze}`;throw ot==="mfa_required"?new m$2(ot,gt,dt.mfa_token):ot==="missing_refresh_token"?new f$2(Qe,et):new d$2(ot||"request_error",gt)}return dt}(`${Fe}/oauth/token`,He,Be||"default",Ge,{method:"POST",body:Je,headers:{"Content-Type":We?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(Ke||s$2))}},De,We)}const j$1=(...$e)=>{return(De=$e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(De))).join(" ");var De};let C$2=class cr{constructor(De,Fe="@@auth0spajs@@",He){this.prefix=Fe,this.suffix=He,this.clientId=De.clientId,this.scope=De.scope,this.audience=De.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(De){const[Fe,He,Be,Ge]=De.split("::");return new cr({clientId:He,scope:Ge,audience:Be},Fe)}static fromCacheEntry(De){const{scope:Fe,audience:He,client_id:Be}=De;return new cr({scope:Fe,audience:He,clientId:Be})}},z$1=class{set($e,De){localStorage.setItem($e,JSON.stringify(De))}get($e){const De=window.localStorage.getItem($e);if(De)try{return JSON.parse(De)}catch{return}}remove($e){localStorage.removeItem($e)}allKeys(){return Object.keys(window.localStorage).filter($e=>$e.startsWith("@@auth0spajs@@"))}},P$1=class{constructor(){this.enclosedCache=function(){let $e={};return{set(De,Fe){$e[De]=Fe},get(De){const Fe=$e[De];if(Fe)return Fe},remove(De){delete $e[De]},allKeys:()=>Object.keys($e)}}()}},x$2=class{constructor($e,De,Fe){this.cache=$e,this.keyManifest=De,this.nowProvider=Fe||c$4}async setIdToken($e,De,Fe){var He;const Be=this.getIdTokenCacheKey($e);await this.cache.set(Be,{id_token:De,decodedToken:Fe}),await((He=this.keyManifest)===null||He===void 0?void 0:He.add(Be))}async getIdToken($e){const De=await this.cache.get(this.getIdTokenCacheKey($e.clientId));if(!De&&$e.scope&&$e.audience){const Fe=await this.get($e);return!Fe||!Fe.id_token||!Fe.decodedToken?void 0:{id_token:Fe.id_token,decodedToken:Fe.decodedToken}}if(De)return{id_token:De.id_token,decodedToken:De.decodedToken}}async get($e,De=0){var Fe;let He=await this.cache.get($e.toKey());if(!He){const Ke=await this.getCacheKeys();if(!Ke)return;const We=this.matchExistingCacheKey($e,Ke);We&&(He=await this.cache.get(We))}if(!He)return;const Be=await this.nowProvider(),Ge=Math.floor(Be/1e3);return He.expiresAt-De<Ge?He.body.refresh_token?(He.body={refresh_token:He.body.refresh_token},await this.cache.set($e.toKey(),He),He.body):(await this.cache.remove($e.toKey()),void await((Fe=this.keyManifest)===null||Fe===void 0?void 0:Fe.remove($e.toKey()))):He.body}async set($e){var De;const Fe=new C$2({clientId:$e.client_id,scope:$e.scope,audience:$e.audience}),He=await this.wrapCacheEntry($e);await this.cache.set(Fe.toKey(),He),await((De=this.keyManifest)===null||De===void 0?void 0:De.add(Fe.toKey()))}async clear($e){var De;const Fe=await this.getCacheKeys();Fe&&(await Fe.filter(He=>!$e||He.includes($e)).reduce(async(He,Be)=>{await He,await this.cache.remove(Be)},Promise.resolve()),await((De=this.keyManifest)===null||De===void 0?void 0:De.clear()))}async wrapCacheEntry($e){const De=await this.nowProvider();return{body:$e,expiresAt:Math.floor(De/1e3)+$e.expires_in}}async getCacheKeys(){var $e;return this.keyManifest?($e=await this.keyManifest.get())===null||$e===void 0?void 0:$e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey($e){return new C$2({clientId:$e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey($e,De){return De.filter(Fe=>{var He;const Be=C$2.fromKey(Fe),Ge=new Set(Be.scope&&Be.scope.split(" ")),Ke=((He=$e.scope)===null||He===void 0?void 0:He.split(" "))||[],We=Be.scope&&Ke.reduce((Xe,Je)=>Xe&&Ge.has(Je),!0);return Be.prefix==="@@auth0spajs@@"&&Be.clientId===$e.clientId&&Be.audience===$e.audience&&We})[0]}},Z$1=class{constructor($e,De,Fe){this.storage=$e,this.clientId=De,this.cookieDomain=Fe,this.storageKey=`a0.spajs.txs.${this.clientId}`}create($e){this.storage.save(this.storageKey,$e,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}};const K$1=$e=>typeof $e=="number",W$2=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],E$2=$e=>{if(!$e.id_token)throw new Error("ID token is required but missing");const De=(Ge=>{const Ke=Ge.split("."),[We,Xe,Je]=Ke;if(Ke.length!==3||!We||!Xe||!Je)throw new Error("ID token could not be decoded");const Ze=JSON.parse(b$5(Xe)),Ye={__raw:Ge},Qe={};return Object.keys(Ze).forEach(et=>{Ye[et]=Ze[et],W$2.includes(et)||(Qe[et]=Ze[et])}),{encoded:{header:We,payload:Xe,signature:Je},header:JSON.parse(b$5(We)),claims:Ye,user:Qe}})($e.id_token);if(!De.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(De.claims.iss!==$e.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${$e.iss}", found "${De.claims.iss}"`);if(!De.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(De.header.alg!=="RS256")throw new Error(`Signature algorithm of "${De.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!De.claims.aud||typeof De.claims.aud!="string"&&!Array.isArray(De.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(De.claims.aud)){if(!De.claims.aud.includes($e.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${$e.aud}" but was not one of "${De.claims.aud.join(", ")}"`);if(De.claims.aud.length>1){if(!De.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(De.claims.azp!==$e.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${$e.aud}", found "${De.claims.azp}"`)}}else if(De.claims.aud!==$e.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${$e.aud}" but found "${De.claims.aud}"`);if($e.nonce){if(!De.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(De.claims.nonce!==$e.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${$e.nonce}", found "${De.claims.nonce}"`)}if($e.max_age&&!K$1(De.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(De.claims.exp==null||!K$1(De.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!K$1(De.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const Fe=$e.leeway||60,He=new Date($e.now||Date.now()),Be=new Date(0);if(Be.setUTCSeconds(De.claims.exp+Fe),He>Be)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${He}) is after expiration time (${Be})`);if(De.claims.nbf!=null&&K$1(De.claims.nbf)){const Ge=new Date(0);if(Ge.setUTCSeconds(De.claims.nbf-Fe),He<Ge)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${He}) is before ${Ge}`)}if(De.claims.auth_time!=null&&K$1(De.claims.auth_time)){const Ge=new Date(0);if(Ge.setUTCSeconds(parseInt(De.claims.auth_time)+$e.max_age+Fe),He>Ge)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${He}) is after last auth at ${Ge}`)}if($e.organization){const Ge=$e.organization.trim();if(Ge.startsWith("org_")){const Ke=Ge;if(!De.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(Ke!==De.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${Ke}", found "${De.claims.org_id}"`)}else{const Ke=Ge.toLowerCase();if(!De.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(Ke!==De.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${Ke}", found "${De.claims.org_name}"`)}}return De};var R$2=o$5(function($e,De){var Fe=t$1&&t$1.__assign||function(){return Fe=Object.assign||function(Xe){for(var Je,Ze=1,Ye=arguments.length;Ze<Ye;Ze++)for(var Qe in Je=arguments[Ze])Object.prototype.hasOwnProperty.call(Je,Qe)&&(Xe[Qe]=Je[Qe]);return Xe},Fe.apply(this,arguments)};function He(Xe,Je){if(!Je)return"";var Ze="; "+Xe;return Je===!0?Ze:Ze+"="+Je}function Be(Xe,Je,Ze){return encodeURIComponent(Xe).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(Je).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(Ye){if(typeof Ye.expires=="number"){var Qe=new Date;Qe.setMilliseconds(Qe.getMilliseconds()+864e5*Ye.expires),Ye.expires=Qe}return He("Expires",Ye.expires?Ye.expires.toUTCString():"")+He("Domain",Ye.domain)+He("Path",Ye.path)+He("Secure",Ye.secure)+He("SameSite",Ye.sameSite)}(Ze)}function Ge(Xe){for(var Je={},Ze=Xe?Xe.split("; "):[],Ye=/(%[\dA-F]{2})+/gi,Qe=0;Qe<Ze.length;Qe++){var et=Ze[Qe].split("="),tt=et.slice(1).join("=");tt.charAt(0)==='"'&&(tt=tt.slice(1,-1));try{Je[et[0].replace(Ye,decodeURIComponent)]=tt.replace(Ye,decodeURIComponent)}catch{}}return Je}function Ke(){return Ge(document.cookie)}function We(Xe,Je,Ze){document.cookie=Be(Xe,Je,Fe({path:"/"},Ze))}De.__esModule=!0,De.encode=Be,De.parse=Ge,De.getAll=Ke,De.get=function(Xe){return Ke()[Xe]},De.set=We,De.remove=function(Xe,Je){We(Xe,"",Fe(Fe({},Je),{expires:-1}))}});i$6(R$2),R$2.encode,R$2.parse,R$2.getAll;var U$2=R$2.get,L$2=R$2.set,D$1=R$2.remove;const X$1={get($e){const De=U$2($e);if(De!==void 0)return JSON.parse(De)},save($e,De,Fe){let He={};window.location.protocol==="https:"&&(He={secure:!0,sameSite:"none"}),Fe!=null&&Fe.daysUntilExpire&&(He.expires=Fe.daysUntilExpire),Fe!=null&&Fe.cookieDomain&&(He.domain=Fe.cookieDomain),L$2($e,JSON.stringify(De),He)},remove($e,De){let Fe={};De!=null&&De.cookieDomain&&(Fe.domain=De.cookieDomain),D$1($e,Fe)}},N$2={get($e){return X$1.get($e)||X$1.get(`_legacy_${$e}`)},save($e,De,Fe){let He={};window.location.protocol==="https:"&&(He={secure:!0}),Fe!=null&&Fe.daysUntilExpire&&(He.expires=Fe.daysUntilExpire),Fe!=null&&Fe.cookieDomain&&(He.domain=Fe.cookieDomain),L$2(`_legacy_${$e}`,JSON.stringify(De),He),X$1.save($e,De,Fe)},remove($e,De){let Fe={};De!=null&&De.cookieDomain&&(Fe.domain=De.cookieDomain),D$1($e,Fe),X$1.remove($e,De),X$1.remove(`_legacy_${$e}`,De)}},J$3={get($e){if(typeof sessionStorage>"u")return;const De=sessionStorage.getItem($e);return De!=null?JSON.parse(De):void 0},save($e,De){sessionStorage.setItem($e,JSON.stringify(De))},remove($e){sessionStorage.removeItem($e)}};function F$3($e,De,Fe){var He=De===void 0?null:De,Be=function(Xe,Je){var Ze=atob(Xe);if(Je){for(var Ye=new Uint8Array(Ze.length),Qe=0,et=Ze.length;Qe<et;++Qe)Ye[Qe]=Ze.charCodeAt(Qe);return String.fromCharCode.apply(null,new Uint16Array(Ye.buffer))}return Ze}($e,Fe!==void 0&&Fe),Ge=Be.indexOf(`
|
|
23
|
+
`,10)+1,Ke=Be.substring(Ge)+(He?"//# sourceMappingURL="+He:""),We=new Blob([Ke],{type:"application/javascript"});return URL.createObjectURL(We)}var H$2,Y$2,G$2,V$2,M$2=(H$2="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",Y$2=null,G$2=!1,function($e){return V$2=V$2||F$3(H$2,Y$2,G$2),new Worker(V$2,$e)});const A$2={};let B$1=class{constructor($e,De){this.cache=$e,this.clientId=De,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add($e){var De;const Fe=new Set(((De=await this.cache.get(this.manifestKey))===null||De===void 0?void 0:De.keys)||[]);Fe.add($e),await this.cache.set(this.manifestKey,{keys:[...Fe]})}async remove($e){const De=await this.cache.get(this.manifestKey);if(De){const Fe=new Set(De.keys);return Fe.delete($e),Fe.size>0?await this.cache.set(this.manifestKey,{keys:[...Fe]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom($e){return`@@auth0spajs@@::${$e}`}};const $$2={memory:()=>new P$1().enclosedCache,localstorage:()=>new z$1},q$2=$e=>$$2[$e],Q$2=$e=>{const{openUrl:De,onRedirect:Fe}=$e,He=e$1($e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},He),{openUrl:De===!1||De?De:Fe})},ee$1=new a$6;let te$1=class{constructor($e){let De,Fe;if(this.userCache=new P$1().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await ee$1.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),$e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),$e.authorizationParams)}),typeof window<"u"&&(()=>{if(!w$1())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(w$1().subtle===void 0)throw new Error(`
|
|
24
|
+
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
|
|
25
|
+
`)})(),$e.cache&&$e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),$e.cache)Fe=$e.cache;else{if(De=$e.cacheLocation||"memory",!q$2(De))throw new Error(`Invalid cache location "${De}"`);Fe=q$2(De)()}this.httpTimeoutMs=$e.httpTimeoutInSeconds?1e3*$e.httpTimeoutInSeconds:1e4,this.cookieStorage=$e.legacySameSiteCookie===!1?X$1:N$2,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(Ge=>`auth0.${Ge}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=$e.sessionCheckExpiryDays||1;const He=$e.useCookiesForTransactions?this.cookieStorage:J$3;var Be;this.scope=j$1("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Z$1(He,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||c$4,this.cacheManager=new x$2(Fe,Fe.allKeys?void 0:new B$1(Fe,this.options.clientId),this.nowProvider),this.domainUrl=(Be=this.options.domain,/^https?:\/\//.test(Be)?Be:`https://${Be}`),this.tokenIssuer=((Ge,Ke)=>Ge?Ge.startsWith("https://")?Ge:`https://${Ge}/`:`${Ke}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&De==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new M$2)}_url($e){const De=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||s$2)));return`${this.domainUrl}${$e}&auth0Client=${De}`}_authorizeUrl($e){return this._url(`/authorize?${v$1($e)}`)}async _verifyIdToken($e,De,Fe){const He=await this.nowProvider();return E$2({iss:this.tokenIssuer,aud:this.options.clientId,id_token:$e,nonce:De,organization:Fe,leeway:this.options.leeway,max_age:(Be=this.options.authorizationParams.max_age,typeof Be!="string"?Be:parseInt(Be,10)||void 0),now:He});var Be}_processOrgHint($e){$e?this.cookieStorage.save(this.orgHintCookieName,$e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl($e,De,Fe){const He=k$2(y$2()),Be=k$2(y$2()),Ge=y$2(),Ke=(Je=>{const Ze=new Uint8Array(Je);return(Ye=>{const Qe={"+":"-","/":"_","=":""};return Ye.replace(/[+/=]/g,et=>Qe[et])})(window.btoa(String.fromCharCode(...Array.from(Ze))))})(await(async Je=>await w$1().subtle.digest({name:"SHA-256"},new TextEncoder().encode(Je)))(Ge)),We=((Je,Ze,Ye,Qe,et,tt,rt,nt)=>Object.assign(Object.assign(Object.assign({client_id:Je.clientId},Je.authorizationParams),Ye),{scope:j$1(Ze,Ye.scope),response_type:"code",response_mode:nt||"query",state:Qe,nonce:et,redirect_uri:rt||Je.authorizationParams.redirect_uri,code_challenge:tt,code_challenge_method:"S256"}))(this.options,this.scope,$e,He,Be,Ke,$e.redirect_uri||this.options.authorizationParams.redirect_uri||Fe,De==null?void 0:De.response_mode),Xe=this._authorizeUrl(We);return{nonce:Be,code_verifier:Ge,scope:We.scope,audience:We.audience||"default",redirect_uri:We.redirect_uri,state:He,url:Xe}}async loginWithPopup($e,De){var Fe;if($e=$e||{},!(De=De||{}).popup&&(De.popup=(Ke=>{const We=window.screenX+(window.innerWidth-400)/2,Xe=window.screenY+(window.innerHeight-600)/2;return window.open(Ke,"auth0:authorize:popup",`left=${We},top=${Xe},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!De.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const He=await this._prepareAuthorizeUrl($e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);De.popup.location.href=He.url;const Be=await(Ke=>new Promise((We,Xe)=>{let Je;const Ze=setInterval(()=>{Ke.popup&&Ke.popup.closed&&(clearInterval(Ze),clearTimeout(Ye),window.removeEventListener("message",Je,!1),Xe(new p$1(Ke.popup)))},1e3),Ye=setTimeout(()=>{clearInterval(Ze),Xe(new h$1(Ke.popup)),window.removeEventListener("message",Je,!1)},1e3*(Ke.timeoutInSeconds||60));Je=function(Qe){if(Qe.data&&Qe.data.type==="authorization_response"){if(clearTimeout(Ye),clearInterval(Ze),window.removeEventListener("message",Je,!1),Ke.popup.close(),Qe.data.response.error)return Xe(d$2.fromPayload(Qe.data.response));We(Qe.data.response)}},window.addEventListener("message",Je)}))(Object.assign(Object.assign({},De),{timeoutInSeconds:De.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(He.state!==Be.state)throw new d$2("state_mismatch","Invalid state");const Ge=((Fe=$e.authorizationParams)===null||Fe===void 0?void 0:Fe.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:He.audience,scope:He.scope,code_verifier:He.code_verifier,grant_type:"authorization_code",code:Be.code,redirect_uri:He.redirect_uri},{nonceIn:He.nonce,organization:Ge})}async getUser(){var $e;const De=await this._getIdTokenFromCache();return($e=De==null?void 0:De.decodedToken)===null||$e===void 0?void 0:$e.user}async getIdTokenClaims(){var $e;const De=await this._getIdTokenFromCache();return($e=De==null?void 0:De.decodedToken)===null||$e===void 0?void 0:$e.claims}async loginWithRedirect($e={}){var De;const Fe=Q$2($e),{openUrl:He,fragment:Be,appState:Ge}=Fe,Ke=e$1(Fe,["openUrl","fragment","appState"]),We=((De=Ke.authorizationParams)===null||De===void 0?void 0:De.organization)||this.options.authorizationParams.organization,Xe=await this._prepareAuthorizeUrl(Ke.authorizationParams||{}),{url:Je}=Xe,Ze=e$1(Xe,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},Ze),{appState:Ge}),We&&{organization:We}));const Ye=Be?`${Je}#${Be}`:Je;He?await He(Ye):window.location.assign(Ye)}async handleRedirectCallback($e=window.location.href){const De=$e.split("?").slice(1);if(De.length===0)throw new Error("There are no query params available for parsing.");const{state:Fe,code:He,error:Be,error_description:Ge}=(Ze=>{Ze.indexOf("#")>-1&&(Ze=Ze.substring(0,Ze.indexOf("#")));const Ye=new URLSearchParams(Ze);return{state:Ye.get("state"),code:Ye.get("code")||void 0,error:Ye.get("error")||void 0,error_description:Ye.get("error_description")||void 0}})(De.join("")),Ke=this.transactionManager.get();if(!Ke)throw new d$2("missing_transaction","Invalid state");if(this.transactionManager.remove(),Be)throw new u$4(Be,Ge||Be,Fe,Ke.appState);if(!Ke.code_verifier||Ke.state&&Ke.state!==Fe)throw new d$2("state_mismatch","Invalid state");const We=Ke.organization,Xe=Ke.nonce,Je=Ke.redirect_uri;return await this._requestToken(Object.assign({audience:Ke.audience,scope:Ke.scope,code_verifier:Ke.code_verifier,grant_type:"authorization_code",code:He},Je?{redirect_uri:Je}:{}),{nonceIn:Xe,organization:We}),{appState:Ke.appState}}async checkSession($e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently($e)}catch{}}async getTokenSilently($e={}){var De;const Fe=Object.assign(Object.assign({cacheMode:"on"},$e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),$e.authorizationParams),{scope:j$1(this.scope,(De=$e.authorizationParams)===null||De===void 0?void 0:De.scope)})}),He=await((Be,Ge)=>{let Ke=A$2[Ge];return Ke||(Ke=Be().finally(()=>{delete A$2[Ge],Ke=null}),A$2[Ge]=Ke),Ke})(()=>this._getTokenSilently(Fe),`${this.options.clientId}::${Fe.authorizationParams.audience}::${Fe.authorizationParams.scope}`);return $e.detailedResponse?He:He==null?void 0:He.access_token}async _getTokenSilently($e){const{cacheMode:De}=$e,Fe=e$1($e,["cacheMode"]);if(De!=="off"){const He=await this._getEntryFromCache({scope:Fe.authorizationParams.scope,audience:Fe.authorizationParams.audience||"default",clientId:this.options.clientId});if(He)return He}if(De!=="cache-only"){if(!await(async(He,Be=3)=>{for(let Ge=0;Ge<Be;Ge++)if(await He())return!0;return!1})(()=>ee$1.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new l$3;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),De!=="off"){const Xe=await this._getEntryFromCache({scope:Fe.authorizationParams.scope,audience:Fe.authorizationParams.audience||"default",clientId:this.options.clientId});if(Xe)return Xe}const He=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(Fe):await this._getTokenFromIFrame(Fe),{id_token:Be,access_token:Ge,oauthTokenScope:Ke,expires_in:We}=He;return Object.assign(Object.assign({id_token:Be,access_token:Ge},Ke?{scope:Ke}:null),{expires_in:We})}finally{await ee$1.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup($e={},De={}){var Fe;const He=Object.assign(Object.assign({},$e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),$e.authorizationParams),{scope:j$1(this.scope,(Fe=$e.authorizationParams)===null||Fe===void 0?void 0:Fe.scope)})});return De=Object.assign(Object.assign({},r$3),De),await this.loginWithPopup(He,De),(await this.cacheManager.get(new C$2({scope:He.authorizationParams.scope,audience:He.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl($e){$e.clientId!==null?$e.clientId=$e.clientId||this.options.clientId:delete $e.clientId;const De=$e.logoutParams||{},{federated:Fe}=De,He=e$1(De,["federated"]),Be=Fe?"&federated":"";return this._url(`/v2/logout?${v$1(Object.assign({clientId:$e.clientId},He))}`)+Be}async logout($e={}){const De=Q$2($e),{openUrl:Fe}=De,He=e$1(De,["openUrl"]);$e.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear($e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const Be=this._buildLogoutUrl(He);Fe?await Fe(Be):Fe!==!1&&window.location.assign(Be)}async _getTokenFromIFrame($e){const De=Object.assign(Object.assign({},$e.authorizationParams),{prompt:"none"}),Fe=this.cookieStorage.get(this.orgHintCookieName);Fe&&!De.organization&&(De.organization=Fe);const{url:He,state:Be,nonce:Ge,code_verifier:Ke,redirect_uri:We,scope:Xe,audience:Je}=await this._prepareAuthorizeUrl(De,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new d$2("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const Ze=$e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,Ye=await((et,tt,rt=60)=>new Promise((nt,at)=>{const st=window.document.createElement("iframe");st.setAttribute("width","0"),st.setAttribute("height","0"),st.style.display="none";const ct=()=>{window.document.body.contains(st)&&(window.document.body.removeChild(st),window.removeEventListener("message",ot,!1))};let ot;const lt=setTimeout(()=>{at(new l$3),ct()},1e3*rt);ot=function(dt){if(dt.origin!=tt||!dt.data||dt.data.type!=="authorization_response")return;const mt=dt.source;mt&&mt.close(),dt.data.response.error?at(d$2.fromPayload(dt.data.response)):nt(dt.data.response),clearTimeout(lt),window.removeEventListener("message",ot,!1),setTimeout(ct,2e3)},window.addEventListener("message",ot,!1),window.document.body.appendChild(st),st.setAttribute("src",et)}))(He,this.domainUrl,Ze);if(Be!==Ye.state)throw new d$2("state_mismatch","Invalid state");const Qe=await this._requestToken(Object.assign(Object.assign({},$e.authorizationParams),{code_verifier:Ke,code:Ye.code,grant_type:"authorization_code",redirect_uri:We,timeout:$e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:Ge,organization:De.organization});return Object.assign(Object.assign({},Qe),{scope:Xe,oauthTokenScope:Qe.scope,audience:Je})}catch(Ze){throw Ze.error==="login_required"&&this.logout({openUrl:!1}),Ze}}async _getTokenUsingRefreshToken($e){const De=await this.cacheManager.get(new C$2({scope:$e.authorizationParams.scope,audience:$e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(De&&De.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame($e);throw new f$2($e.authorizationParams.audience||"default",$e.authorizationParams.scope)}const Fe=$e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,He=typeof $e.timeoutInSeconds=="number"?1e3*$e.timeoutInSeconds:null;try{const Be=await this._requestToken(Object.assign(Object.assign(Object.assign({},$e.authorizationParams),{grant_type:"refresh_token",refresh_token:De&&De.refresh_token,redirect_uri:Fe}),He&&{timeout:He}));return Object.assign(Object.assign({},Be),{scope:$e.authorizationParams.scope,oauthTokenScope:Be.scope,audience:$e.authorizationParams.audience||"default"})}catch(Be){if((Be.message.indexOf("Missing Refresh Token")>-1||Be.message&&Be.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame($e);throw Be}}async _saveEntryInCache($e){const{id_token:De,decodedToken:Fe}=$e,He=e$1($e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:De,decodedToken:Fe}),await this.cacheManager.setIdToken(this.options.clientId,$e.id_token,$e.decodedToken),await this.cacheManager.set(He)}async _getIdTokenFromCache(){const $e=this.options.authorizationParams.audience||"default",De=await this.cacheManager.getIdToken(new C$2({clientId:this.options.clientId,audience:$e,scope:this.scope})),Fe=this.userCache.get("@@user@@");return De&&De.id_token===(Fe==null?void 0:Fe.id_token)?Fe:(this.userCache.set("@@user@@",De),De)}async _getEntryFromCache({scope:$e,audience:De,clientId:Fe}){const He=await this.cacheManager.get(new C$2({scope:$e,audience:De,clientId:Fe}),60);if(He&&He.access_token){const{access_token:Be,oauthTokenScope:Ge,expires_in:Ke}=He,We=await this._getIdTokenFromCache();return We&&Object.assign(Object.assign({id_token:We.id_token,access_token:Be},Ge?{scope:Ge}:null),{expires_in:Ke})}}async _requestToken($e,De){const{nonceIn:Fe,organization:He}=De||{},Be=await T$1(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},$e),this.worker),Ge=await this._verifyIdToken(Be.id_token,Fe,He);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},Be),{decodedToken:Ge,scope:$e.scope,audience:$e.audience||"default"}),Be.scope?{oauthTokenScope:Be.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(He||Ge.claims.org_id),Object.assign(Object.assign({},Be),{decodedToken:Ge})}};async function oe$1($e){const De=new te$1($e);return await De.checkSession(),De}var Events=($e=>($e.AUTH_INITIALIZED="sesamyJsAuthInitialized",$e.READY="sesamyJsReady",$e.AUTHENTICATED="sesamyJsAuthenticated",$e.LOGOUT="sesamyJsLogout",$e.CLEAR_CACHE="sesamyJsClearCache",$e.USER_ATTRIBUTE_CHANGED="sesamyUserAttributeChanged",$e.PURCHASE="sesamyJsPurchase",$e))(Events||{});const BASE_URL_DOMAIN="sesamy.com",DEV_BASE_URL_DOMAIN="sesamy.dev",SHORTLINK_URL="https://sesa.my",CACHE_TIMESTAMP_KEY="sesamyCacheTimestamp",SESMAY_CONTENT_RELOAD_KEY="sesamyContentReload";function getBaseUrl($e,De){return`https://${$e}.${De==="dev"?DEV_BASE_URL_DOMAIN:BASE_URL_DOMAIN}`}function getLanguage(){var $e;return($e=(document.documentElement.getAttribute("lang")??navigator.language??"en").split("-")[0])==null?void 0:$e.toLocaleLowerCase()}/*!
|
|
26
|
+
*
|
|
27
|
+
* detectIncognito v1.3.7
|
|
28
|
+
*
|
|
29
|
+
* https://github.com/Joe12387/detectIncognito
|
|
30
|
+
*
|
|
31
|
+
* MIT License
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) 2021 - 2024 Joe Rutkowski <Joe@dreggle.com>
|
|
34
|
+
*
|
|
35
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
37
|
+
* in the Software without restriction, including without limitation the rights
|
|
38
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
39
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
40
|
+
* furnished to do so, subject to the following conditions:
|
|
41
|
+
*
|
|
42
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
43
|
+
* copies or substantial portions of the Software.
|
|
44
|
+
*
|
|
45
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
46
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
47
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
48
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
49
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
50
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
51
|
+
* SOFTWARE.
|
|
52
|
+
*
|
|
53
|
+
* Please keep this comment intact in order to properly abide by the MIT License.
|
|
54
|
+
*
|
|
55
|
+
**/var __webpack_require__={d:($e,De)=>{for(var Fe in De)__webpack_require__.o(De,Fe)&&!__webpack_require__.o($e,Fe)&&Object.defineProperty($e,Fe,{enumerable:!0,get:De[Fe]})},o:($e,De)=>Object.prototype.hasOwnProperty.call($e,De)},__webpack_exports__={};__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__,k:()=>detectIncognito});var __awaiter=function($e,De,Fe,He){return new(Fe||(Fe=Promise))(function(Be,Ge){function Ke(Je){try{Xe(He.next(Je))}catch(Ze){Ge(Ze)}}function We(Je){try{Xe(He.throw(Je))}catch(Ze){Ge(Ze)}}function Xe(Je){var Ze;Je.done?Be(Je.value):(Ze=Je.value,Ze instanceof Fe?Ze:new Fe(function(Ye){Ye(Ze)})).then(Ke,We)}Xe((He=He.apply($e,[])).next())})},__generator=function($e,De){var Fe,He,Be,Ge,Ke={label:0,sent:function(){if(1&Be[0])throw Be[1];return Be[1]},trys:[],ops:[]};return Ge={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(Ge[Symbol.iterator]=function(){return this}),Ge;function We(Xe){return function(Je){return function(Ze){if(Fe)throw new TypeError("Generator is already executing.");for(;Ge&&(Ge=0,Ze[0]&&(Ke=0)),Ke;)try{if(Fe=1,He&&(Be=2&Ze[0]?He.return:Ze[0]?He.throw||((Be=He.return)&&Be.call(He),0):He.next)&&!(Be=Be.call(He,Ze[1])).done)return Be;switch(He=0,Be&&(Ze=[2&Ze[0],Be.value]),Ze[0]){case 0:case 1:Be=Ze;break;case 4:return Ke.label++,{value:Ze[1],done:!1};case 5:Ke.label++,He=Ze[1],Ze=[0];continue;case 7:Ze=Ke.ops.pop(),Ke.trys.pop();continue;default:if(Be=Ke.trys,!((Be=Be.length>0&&Be[Be.length-1])||Ze[0]!==6&&Ze[0]!==2)){Ke=0;continue}if(Ze[0]===3&&(!Be||Ze[1]>Be[0]&&Ze[1]<Be[3])){Ke.label=Ze[1];break}if(Ze[0]===6&&Ke.label<Be[1]){Ke.label=Be[1],Be=Ze;break}if(Be&&Ke.label<Be[2]){Ke.label=Be[2],Ke.ops.push(Ze);break}Be[2]&&Ke.ops.pop(),Ke.trys.pop();continue}Ze=De.call($e,Ke)}catch(Ye){Ze=[6,Ye],He=0}finally{Fe=Be=0}if(5&Ze[0])throw Ze[1];return{value:Ze[0]?Ze[1]:void 0,done:!0}}([Xe,Je])}}};function detectIncognito(){return __awaiter(this,void 0,Promise,function(){return __generator(this,function(_a){switch(_a.label){case 0:return[4,new Promise(function(resolve,reject){var browserName="Unknown";function __callback($e){resolve({isPrivate:$e,browserName})}function identifyChromium(){var $e=navigator.userAgent;return $e.match(/Chrome/)?navigator.brave!==void 0?"Brave":$e.match(/Edg/)?"Edge":$e.match(/OPR/)?"Opera":"Chrome":"Chromium"}function assertEvalToString($e){return $e===eval.toString().length}function feid(){var toFixedEngineID=0;try{eval("(-1).toFixed(-1);")}catch($e){toFixedEngineID=$e.message.length}return toFixedEngineID}function isSafari(){return feid()===44}function isChrome(){return feid()===51}function isFirefox(){return feid()===25}function isMSIE(){return navigator.msSaveBlob!==void 0&&assertEvalToString(39)}function newSafariTest(){var $e=String(Math.random());try{window.indexedDB.open($e,1).onupgradeneeded=function(De){var Fe,He,Be=(Fe=De.target)===null||Fe===void 0?void 0:Fe.result;try{Be.createObjectStore("test",{autoIncrement:!0}).put(new Blob),__callback(!1)}catch(Ke){var Ge=Ke;return Ke instanceof Error&&(Ge=(He=Ke.message)!==null&&He!==void 0?He:Ke),typeof Ge!="string"?void __callback(!1):void __callback(Ge.includes("BlobURLs are not yet supported"))}finally{Be.close(),window.indexedDB.deleteDatabase($e)}}}catch{__callback(!1)}}function oldSafariTest(){var $e=window.openDatabase,De=window.localStorage;try{$e(null,null,null,null)}catch{return void __callback(!0)}try{De.setItem("test","1"),De.removeItem("test")}catch{return void __callback(!0)}__callback(!1)}function safariPrivateTest(){navigator.maxTouchPoints!==void 0?newSafariTest():oldSafariTest()}function getQuotaLimit(){var $e=window;return $e.performance!==void 0&&$e.performance.memory!==void 0&&$e.performance.memory.jsHeapSizeLimit!==void 0?performance.memory.jsHeapSizeLimit:1073741824}function storageQuotaChromePrivateTest(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function($e,De){__callback(Math.round(De/1048576)<2*Math.round(getQuotaLimit()/1048576))},function($e){reject(new Error("detectIncognito somehow failed to query storage quota: "+$e.message))})}function oldChromePrivateTest(){(0,window.webkitRequestFileSystem)(0,1,function(){__callback(!1)},function(){__callback(!0)})}function chromePrivateTest(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?storageQuotaChromePrivateTest():oldChromePrivateTest()}function firefoxPrivateTest(){__callback(navigator.serviceWorker===void 0)}function msiePrivateTest(){__callback(window.indexedDB===void 0)}function main(){isSafari()?(browserName="Safari",safariPrivateTest()):isChrome()?(browserName=identifyChromium(),chromePrivateTest()):isFirefox()?(browserName="Firefox",firefoxPrivateTest()):isMSIE()?(browserName="Internet Explorer",msiePrivateTest()):reject(new Error("detectIncognito cannot determine the browser"))}main()})];case 1:return[2,_a.sent()]}})})}typeof window<"u"&&(window.detectIncognito=detectIncognito);const __WEBPACK_DEFAULT_EXPORT__=detectIncognito;__webpack_exports__.A;var __webpack_exports__detectIncognito=__webpack_exports__.k;async function isIncognito(){try{const{isPrivate:$e}=await __webpack_exports__detectIncognito();return $e}catch{return!1}}function isBrowser(){return typeof window<"u"}let auth0Client,organization,initialized=!1,loginInProgress=!1;isBrowser()&&window.addEventListener("pageshow",()=>{loginInProgress=!1});const ACCESS_TOKEN_KEY="sesamyAccessToken",REFRESH_TOKEN_KEY="sesamyRefreshToken";async function waitForInit(){return initialized?!0:new Promise(($e,De)=>{const Fe=setTimeout(()=>{initialized?$e(!0):De(new Error("Initialization failed: Timeout"))},2e3);window.addEventListener(Events.AUTH_INITIALIZED,()=>{clearTimeout(Fe),$e(!0)})})}async function refreshLocalAccessToken($e){if(!$e)return null;const De=localStorage.getItem(REFRESH_TOKEN_KEY);if(!De)return log("No refresh token found in localstorage"),null;const Fe=new URLSearchParams;Fe.set("client_id",$e.iss),Fe.set("refresh_token",De),Fe.set("grant_type","refresh_token");const He=new URL($e.iss);He.pathname="/oauth/token",He.searchParams.set("user_id",$e.sub);try{const Be=await fetch(He.href,{body:Fe.toString(),method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"}});if(!Be.ok)throw localStorage.removeItem(REFRESH_TOKEN_KEY),new Error("Renew token failed");const Ge=await Be.json();return localStorage.setItem(REFRESH_TOKEN_KEY,Ge.refresh_token),localStorage.setItem(ACCESS_TOKEN_KEY,Ge.access_token),Ge.access_token}catch{logout()}}async function getLocalStorageAccessToken(){const $e=localStorage.getItem(ACCESS_TOKEN_KEY);if(!$e)return null;const De=getPayloadFromJwt($e);if(!De||!De.exp||De.exp<new Date().getTime()/1e3){const Fe=await refreshLocalAccessToken(De);if(Fe)return Fe;localStorage.removeItem(ACCESS_TOKEN_KEY)}return $e}function getTopLevelDomain($e){try{const De=new URL($e).hostname,Fe=De.split(".");return Fe.length>1?Fe.slice(-2).join("."):De}catch{return null}}async function init$3($e){if($e.enabled===!1)return;organization=$e.organization;const De={domain:getBaseUrl("token",$e.environment),clientId:$e.clientId,useCookiesForTransactions:!0};if(getTopLevelDomain(window.location.href)!==getTopLevelDomain(getBaseUrl("auth",$e.environment))&&(De.cacheLocation="localstorage",De.useRefreshTokens=!0),auth0Client=await oe$1(De),window.location.search.includes("code=")){log("Code found in URL, handling redirect");try{const Fe=await auth0Client.handleRedirectCallback();log(`Login result: ${JSON.stringify(Fe)}`);const He=await auth0Client.getUser();if(!He)throw log("No user found"),new Error("No user found");log(`User found ${JSON.stringify(He)}`),triggerEvent(Events.AUTHENTICATED,He);const Be=new URL(location.href),Ge=Be.searchParams;Ge.delete("code"),Ge.delete("state"),Be.search=Ge.toString(),window.history.replaceState({},document.title,Be.toString()),log("Rewrite url")}catch(Fe){alert("There was an error logging in"),console.error(Fe)}}initialized=!0,triggerEvent(Events.AUTH_INITIALIZED,{})}async function isAuthenticated(){return await waitForInit(),await getLocalStorageAccessToken()?!0:auth0Client?auth0Client.isAuthenticated():!1}async function getUser(){return await waitForInit(),await getLocalStorageAccessToken()?(log("Using local user"),{sub:"local",name:"Local User"}):auth0Client?auth0Client.getUser():null}async function loginWithRedirect($e){if(loginInProgress){log("Login already in progress");return}if(loginInProgress=!0,await waitForInit(),localStorage.removeItem(ACCESS_TOKEN_KEY),!auth0Client)throw new Error("Auth0 client not initialized");const De=($e==null?void 0:$e.authorizationParams)||{};return await isIncognito()&&navigator.userAgent.includes("Safari")&&navigator.userAgent.includes("iPhone")&&sessionStorage.setItem(SESMAY_CONTENT_RELOAD_KEY,"true"),auth0Client.loginWithRedirect({...$e,authorizationParams:{organization,redirect_uri:window.location.href,ui_locales:getLanguage(),...De}})}async function getTokenSilently($e=!0,De=!1){if(await waitForInit(),!De){const Fe=await getLocalStorageAccessToken();if(Fe)return Fe}try{if(!auth0Client)return log("Auth client not initialized"),null;let Fe=await auth0Client.getTokenSilently();const He=getPayloadFromJwt(Fe);return De&&He!=null&&He.exp&&He.exp+3600<new Date().getTime()/1e3&&(Fe=await auth0Client.getTokenSilently({cacheMode:De?"off":"on"})),Fe}catch(Fe){if(log(`Failed to get token silently: ${Fe.message}`),$e)throw Fe;return null}}async function logout($e={}){if(await waitForInit(),localStorage.removeItem(ACCESS_TOKEN_KEY),triggerEvent(Events.LOGOUT,{}),!!auth0Client)return log(`Logout with options: ${JSON.stringify($e)}`),auth0Client.logout({...$e,logoutParams:{returnTo:window.location.href,...$e.logoutParams}})}function getPayloadFromJwt($e){const De=$e.split(".");if(De.length!==3)return null;const Fe=De[1].replace(/-/g,"+").replace(/_/g,"/"),He=decodeURIComponent(atob(Fe).split("").map(function(Be){return"%"+("00"+Be.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(He)}async function setToken($e){const De=getPayloadFromJwt($e);if(!De||!De.exp||De.exp<new Date().getTime()/1e3)throw new Error("Invalid token");log("Set token"),localStorage.setItem(ACCESS_TOKEN_KEY,$e),triggerEvent(Events.AUTHENTICATED,De)}const defaultSkip=($e,De)=>De.skipDedupe||De.method!=="GET",defaultKey=($e,De)=>De.method+"@"+$e,defaultResolver=$e=>$e.clone(),dedupe=({skip:$e=defaultSkip,key:De=defaultKey,resolver:Fe=defaultResolver}={})=>{const He=new Map;return Be=>(Ge,Ke)=>{if($e(Ge,Ke))return Be(Ge,Ke);const We=De(Ge,Ke);if(!He.has(We))He.set(We,[]);else return new Promise((Xe,Je)=>{He.get(We).push([Xe,Je])});try{return Be(Ge,Ke).then(Xe=>(He.get(We).forEach(([Je])=>Je(Fe(Xe))),He.delete(We),Xe)).catch(Xe=>{throw He.get(We).forEach(([,Je])=>Je(Xe)),He.delete(We),Xe})}catch(Xe){return He.delete(We),Promise.reject(Xe)}}},defaultDelayRamp=($e,De)=>$e*De,defaultUntil=$e=>$e&&$e.ok,retry=({delayTimer:$e=500,delayRamp:De=defaultDelayRamp,maxAttempts:Fe=10,until:He=defaultUntil,onRetry:Be=null,retryOnNetworkError:Ge=!1,resolveWithLatestResponse:Ke=!1,skip:We}={})=>Xe=>(Je,Ze)=>{let Ye=0;if(We&&We(Je,Ze))return Xe(Je,Ze);const Qe=(et,tt)=>Promise.resolve(He(et,tt)).then(rt=>rt?et&&Ke?et:tt?Promise.reject(tt):et:(Ye++,!Fe||Ye<=Fe?new Promise(nt=>{const at=De($e,Ye);setTimeout(()=>{typeof Be=="function"?Promise.resolve(Be({response:et,error:tt,url:Je,options:Ze})).then((st={})=>{var ct,ot;nt(Xe((ct=st&&st.url)!==null&&ct!==void 0?ct:Je,(ot=st&&st.options)!==null&&ot!==void 0?ot:Ze))}):nt(Xe(Je,Ze))},at)}).then(Qe).catch(nt=>{if(!Ge)throw nt;return Qe(null,nt)}):et&&Ke?et:Promise.reject(tt||new Error("Number of attempts exceeded."))));return Xe(Je,Ze).then(Qe).catch(et=>{if(!Ge)throw et;return Qe(null,et)})},JSON_MIME="application/json",CONTENT_TYPE_HEADER="Content-Type",FETCH_ERROR=Symbol(),CATCHER_FALLBACK=Symbol();function extractContentType($e={}){var De;return(De=Object.entries($e).find(([Fe])=>Fe.toLowerCase()===CONTENT_TYPE_HEADER.toLowerCase()))===null||De===void 0?void 0:De[1]}function isLikelyJsonMime($e){return/^application\/.*json.*/.test($e)}const mix=function($e,De,Fe=!1){return Object.entries(De).reduce((He,[Be,Ge])=>{const Ke=$e[Be];return Array.isArray(Ke)&&Array.isArray(Ge)?He[Be]=Fe?[...Ke,...Ge]:Ge:typeof Ke=="object"&&typeof Ge=="object"?He[Be]=mix(Ke,Ge,Fe):He[Be]=Ge,He},{...$e})},config={options:{},errorType:"text",polyfills:{},polyfill($e,De=!0,Fe=!1,...He){const Be=this.polyfills[$e]||(typeof self<"u"?self[$e]:null)||(typeof global<"u"?global[$e]:null);if(De&&!Be)throw new Error($e+" is not defined");return Fe&&Be?new Be(...He):Be}};function setOptions($e,De=!1){config.options=De?$e:mix(config.options,$e)}function setPolyfills($e,De=!1){config.polyfills=De?$e:mix(config.polyfills,$e)}function setErrorType($e){config.errorType=$e}const middlewareHelper=$e=>De=>$e.reduceRight((Fe,He)=>He(Fe),De)||De;class WretchError extends Error{}const resolver=$e=>{const De=Object.create(null);$e=$e._addons.reduce((ct,ot)=>ot.beforeRequest&&ot.beforeRequest(ct,$e._options,De)||ct,$e);const{_url:Fe,_options:He,_config:Be,_catchers:Ge,_resolvers:Ke,_middlewares:We,_addons:Xe}=$e,Je=new Map(Ge),Ze=mix(Be.options,He);let Ye=Fe;const Qe=middlewareHelper(We)((ct,ot)=>(Ye=ct,Be.polyfill("fetch")(ct,ot)))(Fe,Ze),et=new Error,tt=Qe.catch(ct=>{throw{[FETCH_ERROR]:ct}}).then(ct=>{var ot;if(!ct.ok){const lt=new WretchError;if(lt.cause=et,lt.stack=lt.stack+`
|
|
56
|
+
CAUSE: `+et.stack,lt.response=ct,lt.status=ct.status,lt.url=Ye,ct.type==="opaque")throw lt;const dt=Be.errorType==="json"||((ot=ct.headers.get("Content-Type"))===null||ot===void 0?void 0:ot.split(";")[0])==="application/json";return(Be.errorType?dt?ct.text():ct[Be.errorType]():Promise.resolve(ct.body)).then(mt=>{throw lt.message=typeof mt=="string"?mt:ct.statusText,mt&&(dt&&typeof mt=="string"?(lt.text=mt,lt.json=JSON.parse(mt)):lt[Be.errorType]=mt),lt})}return ct}),rt=ct=>ct.catch(ot=>{const lt=Object.prototype.hasOwnProperty.call(ot,FETCH_ERROR),dt=lt?ot[FETCH_ERROR]:ot,mt=(dt==null?void 0:dt.status)&&Je.get(dt.status)||Je.get(dt==null?void 0:dt.name)||lt&&Je.has(FETCH_ERROR)&&Je.get(FETCH_ERROR);if(mt)return mt(dt,$e);const gt=Je.get(CATCHER_FALLBACK);if(gt)return gt(dt,$e);throw dt}),nt=ct=>ot=>rt(ct?tt.then(lt=>lt&<[ct]()).then(lt=>ot?ot(lt):lt):tt.then(lt=>ot?ot(lt):lt)),at={_wretchReq:$e,_fetchReq:Qe,_sharedState:De,res:nt(null),json:nt("json"),blob:nt("blob"),formData:nt("formData"),arrayBuffer:nt("arrayBuffer"),text:nt("text"),error(ct,ot){return Je.set(ct,ot),this},badRequest(ct){return this.error(400,ct)},unauthorized(ct){return this.error(401,ct)},forbidden(ct){return this.error(403,ct)},notFound(ct){return this.error(404,ct)},timeout(ct){return this.error(408,ct)},internalError(ct){return this.error(500,ct)},fetchError(ct){return this.error(FETCH_ERROR,ct)}},st=Xe.reduce((ct,ot)=>({...ct,...typeof ot.resolver=="function"?ot.resolver(ct):ot.resolver}),at);return Ke.reduce((ct,ot)=>ot(ct,$e),st)},core={_url:"",_options:{},_config:config,_catchers:new Map,_resolvers:[],_deferred:[],_middlewares:[],_addons:[],addon($e){return{...this,_addons:[...this._addons,$e],...$e.wretch}},errorType($e){return{...this,_config:{...this._config,errorType:$e}}},polyfills($e,De=!1){return{...this,_config:{...this._config,polyfills:De?$e:mix(this._config.polyfills,$e)}}},url($e,De=!1){if(De)return{...this,_url:$e};const Fe=this._url.split("?");return{...this,_url:Fe.length>1?Fe[0]+$e+"?"+Fe[1]:this._url+$e}},options($e,De=!1){return{...this,_options:De?$e:mix(this._options,$e)}},headers($e){const De=$e?Array.isArray($e)?Object.fromEntries($e):"entries"in $e?Object.fromEntries($e.entries()):$e:{};return{...this,_options:mix(this._options,{headers:De})}},accept($e){return this.headers({Accept:$e})},content($e){return this.headers({[CONTENT_TYPE_HEADER]:$e})},auth($e){return this.headers({Authorization:$e})},catcher($e,De){const Fe=new Map(this._catchers);return Fe.set($e,De),{...this,_catchers:Fe}},catcherFallback($e){return this.catcher(CATCHER_FALLBACK,$e)},resolve($e,De=!1){return{...this,_resolvers:De?[$e]:[...this._resolvers,$e]}},defer($e,De=!1){return{...this,_deferred:De?[$e]:[...this._deferred,$e]}},middlewares($e,De=!1){return{...this,_middlewares:De?$e:[...this._middlewares,...$e]}},fetch($e=this._options.method,De="",Fe=null){let He=this.url(De).options({method:$e});const Be=extractContentType(He._options.headers),Ge=this._config.polyfill("FormData",!1),Ke=typeof Fe=="object"&&!(Ge&&Fe instanceof Ge)&&(!He._options.headers||!Be||isLikelyJsonMime(Be));return He=Fe?Ke?He.json(Fe,Be):He.body(Fe):He,resolver(He._deferred.reduce((We,Xe)=>Xe(We,We._url,We._options),He))},get($e=""){return this.fetch("GET",$e)},delete($e=""){return this.fetch("DELETE",$e)},put($e,De=""){return this.fetch("PUT",De,$e)},post($e,De=""){return this.fetch("POST",De,$e)},patch($e,De=""){return this.fetch("PATCH",De,$e)},head($e=""){return this.fetch("HEAD",$e)},opts($e=""){return this.fetch("OPTIONS",$e)},body($e){return{...this,_options:{...this._options,body:$e}}},json($e,De){const Fe=extractContentType(this._options.headers);return this.content(De||isLikelyJsonMime(Fe)&&Fe||JSON_MIME).body(JSON.stringify($e))}};function factory($e="",De={}){return{...core,_url:$e,_options:De}}factory.default=factory,factory.options=setOptions,factory.errorType=setErrorType,factory.polyfills=setPolyfills,factory.WretchError=WretchError;function clearCache(){return sessionStorage.removeItem(CACHE_TIMESTAMP_KEY),log("Cache cleared"),triggerEvent(Events.CLEAR_CACHE,{}),"Cache cleared"}function isValidHttpUrl($e){let De;try{De=new URL($e)}catch{return!1}return De.protocol==="http:"||De.protocol==="https:"}function decodeItemSrc($e,De){if(isValidHttpUrl($e))return{itemSrc:$e};const[Fe,He,Be]=$e.split(":");return{sku:`${Fe}:${He}`,purchaseOption:De||Be}}function removeTrailingSlash($e){return $e.endsWith("/")?$e.slice(0,-1):$e}function compareUrlWithoutHash($e,De){if(!isValidHttpUrl($e)||!isValidHttpUrl(De))return!1;const Fe=new URL($e),He=new URL(De);return Fe.origin===He.origin&&removeTrailingSlash(Fe.pathname)===removeTrailingSlash(He.pathname)}function generateCheckoutLink($e,De,Fe){const He=new URL(`${getBaseUrl("checkout3",$e.environment)}`);if(De.language&&He.searchParams.set("lang",De.language),De.sku)He.searchParams.set("sku",De.sku),De.purchaseOptionId&&He.searchParams.set("po-id",De.purchaseOptionId);else if(De.itemSrc){const{sku:Ke,purchaseOption:We,itemSrc:Xe}=decodeItemSrc(De.itemSrc,De.purchaseOptionId);Xe&&He.searchParams.set("url",Xe),Ke&&He.searchParams.set("sku",Ke),We&&He.searchParams.set("po-id",We)}De.email&&He.searchParams.set("email",De.email),De.business&&He.searchParams.set("business","true"),De.currency&&He.searchParams.set("currency",De.currency),De.price&&He.searchParams.set("price",De.price.toString()),De.discountCode&&He.searchParams.set("discount-code",De.discountCode),De.attributionItemSrc?He.searchParams.set("itemSrc",De.attributionItemSrc):Fe.itemSrc&&He.searchParams.set("itemSrc",Fe.itemSrc),De.attributionPublisherContentId?He.searchParams.set("publisherContentId",De.attributionPublisherContentId):Fe.publisherContentId&&He.searchParams.set("publisherContentId",Fe.publisherContentId),De.utmSource?He.searchParams.set("utm_source",De.utmSource):Fe.utmSource&&He.searchParams.set("utm_source",Fe.utmSource),De.utmMedium?He.searchParams.set("utm_medium",De.utmMedium):Fe.utmMedium&&He.searchParams.set("utm_medium",Fe.utmMedium),De.utmCampaign?He.searchParams.set("utm_campaign",De.utmCampaign):Fe.utmCampaign&&He.searchParams.set("utm_campaign",Fe.utmCampaign),De.utmTerm?He.searchParams.set("utm_term",De.utmTerm):Fe.utmTerm&&He.searchParams.set("utm_term",Fe.utmTerm),De.utmContent?He.searchParams.set("utm_content",De.utmContent):Fe.utmContent&&He.searchParams.set("utm_content",Fe.utmContent);const Be=["_ga","_gid","_fbp","_fbc"];document.cookie.split(";").map(Ke=>{const[We,Xe]=Ke.trim().split("=");return{key:We,value:Xe}}).filter(Ke=>Be.some(We=>We===Ke.key)).forEach(Ke=>{He.searchParams.append(Ke.key,Ke.value)});const Ge=new URL(De.redirectUrl||window.location.href);return Ge.searchParams.set("force-refetch-entitlements","true"),De.itemSrc&&Ge.searchParams.set("sesamy-purchase",De.itemSrc),He.searchParams.set("redirect-url",Ge.toString()),De.paymentMethodsFilter&&He.searchParams.set("paymentmethods-filter",De.paymentMethodsFilter.flatMap(({provider:Ke,methods:We})=>We?We.map(Xe=>`${Ke}|${Xe}`):Ke).join(",")),He}const SIGNED_URL_KEY="sesamySignedURLs";function getSignedLinks(){const $e=sessionStorage.getItem(SIGNED_URL_KEY);return $e?JSON.parse($e):[]}function addSignedLink($e){const De=getSignedLinks();De.push($e),log(`Adding signed URL: ${$e}`),sessionStorage.setItem(SIGNED_URL_KEY,JSON.stringify(De))}function removeUndefinedValues($e){const De={};return Object.keys($e).forEach(Fe=>{const He=$e[Fe];He!=null&&(De[Fe]=He.toString())}),De}const ATTRIBUTION_KEY="sesamyAttribution";function parseFromSessionStorage($e){const De=sessionStorage.getItem($e);if(!De)return null;try{return JSON.parse(De).value}catch{return console.error(`Failed to parse ${$e}`),null}}function resetUtmTags($e){return Object.keys($e).find(De=>De.startsWith("utm_"))?{utmSource:void 0,utmMedium:void 0,utmCampaign:void 0,...$e}:$e}function getAttribution(){return parseFromSessionStorage(ATTRIBUTION_KEY)||{}}function setAttribution($e){if($e===null)sessionStorage.removeItem(ATTRIBUTION_KEY);else{log(`Setting attribution ${JSON.stringify($e)}`);const De=getAttribution()??{},Fe=removeUndefinedValues({...De,...resetUtmTags($e)});sessionStorage.setItem(ATTRIBUTION_KEY,JSON.stringify({value:Fe}))}}function createApi($e){const De=getBaseUrl("api2",$e.environment),Fe=pt=>async(Et,It)=>{let Ht=sessionStorage.getItem(CACHE_TIMESTAMP_KEY);Ht||(Ht=Date.now().toString(),sessionStorage.setItem(CACHE_TIMESTAMP_KEY,Ht));const qt={...It,headers:{...It.headers,"Cache-Timestamp":Ht}};return pt(Et,qt)},He=(pt=!0)=>Et=>async(It,Ht)=>{let qt=null;if(qt=await getTokenSilently(pt),!qt){if(pt)throw new Error("No access token available");return Et(It,Ht)}const Ut={...Ht,headers:{...Ht.headers,...qt?{Authorization:`Bearer ${qt}`}:{}}};return Et(It,Ut)},Be=pt=>(Et,It)=>{if(It.headers.Authorization)return pt(Et,It);const Ht=localStorage.getItem("__anon_id"),qt=btoa(`${$e.clientId}|${Ht}:`),Ut={...It,headers:{...It.headers,Authorization:`Basic ${qt}`}};return pt(Et,Ut)},Ge=factory(De).headers({"Content-Type":"application/json"}).middlewares([Fe,He(),dedupe(),retry({delayTimer:1e3,delayRamp:(pt,Et)=>pt*Et,maxAttempts:3,until:pt=>!!(pt&&(pt.ok||pt.status>=400&&pt.status<500)),retryOnNetworkError:!1})]),Ke=factory(De).headers({"Content-Type":"application/json"}).middlewares([Fe,He(!1),Be,dedupe(),retry({delayTimer:1e3,delayRamp:(pt,Et)=>pt*Et,maxAttempts:3,until:pt=>!!(pt&&(pt.ok||pt.status>=400&&pt.status<500)),retryOnNetworkError:!1})]);async function We(pt={}){const{waitForEntitlementAfter:Et,includeSignedLinks:It=!0}=pt,Ht=Et?`?wait-for-entitlement-after=${Et.toISOString()}`:"",qt=await isAuthenticated()?await Ge.get(`/entitlements${Ht}`).json():[];return It&&qt.push(...getSignedLinks()),qt}async function Xe(pt,Et=[]){const It=await We();return It==null?void 0:It.find(Ht=>{const{sku:qt,purchaseOption:Ut}=decodeItemSrc(pt);let zt="sku"in Ht&&qt===Ht.sku;zt&&Ut&&"purchaseOptionId"in Ht&&(zt=Ut===Ht.purchaseOptionId);const Vt=compareUrlWithoutHash(pt,Ht.url),Gt=Et.some(Yt=>compareUrlWithoutHash(Yt,Ht.url));return zt||Vt||Gt})}async function Je(pt){const Et=await Ge.get("/entitlements").json();return Et==null?void 0:Et.find(It=>It.id===pt)}async function Ze(pt){return Ge.get(`/entitlements/${encodeURIComponent(pt)}/access`).json()}async function Ye(pt,Et,It){const Ht=new URL(getBaseUrl("api2",$e.environment));return Ht.pathname="/proxy",Ht.searchParams.set("url",Et),It&&Ht.searchParams.set("selector",It),factory(Ht.toString()).headers({Authorization:`Bearer ${pt}`}).get().text()}async function Qe(pt){return await isAuthenticated()?await Ge.get(`/fulfillments?sku=${encodeURIComponent(pt)}`).json():[]}async function et(){return Ge.get("/contracts").json()}async function tt(pt){const Et=await Ge.get("/contracts").json();return Et==null?void 0:Et.find(It=>It.id===pt)}async function rt(pt){return(await Ge.post({},`/contracts/${encodeURIComponent(pt)}/cancel`).res()).ok}async function nt(){return console.warn("getSubscriptions is deprecated, use getContracts instead"),Ge.get("/subscriptions").json()}async function at(){return Ge.get("/bills").json()}async function st(pt){const Et=await Ge.get("/bills").json();return Et==null?void 0:Et.find(It=>It.id===pt)}async function ct(){return Ge.get("/transactions").json()}async function ot(pt){const Et=await Ge.get("/transactions").json();return Et==null?void 0:Et.find(It=>It.id===pt)}async function lt(pt,Et){const It=await Ge.url(`/user-metadata/${encodeURIComponent(pt)}`).put(Et).json();return triggerEvent(Events.USER_ATTRIBUTE_CHANGED,{}),clearCache(),It}async function dt(pt){const Et=await Ge.url(`/user-metadata/${encodeURIComponent(pt)}`).delete().res();return clearCache(),Et.ok}async function mt(pt){return(await Ge.url(`/user-metadata/${encodeURIComponent(pt)}`).get().json())[pt]}async function gt(){return await Ge.url("/user-metadata").get().json()}async function wt(){return await Ge.url("/tags").get().json()}async function St(pt){const Et=await Ge.url(`/tags/${encodeURIComponent(pt)}`).delete().res();return clearCache(),Et.ok}async function bt(pt){const Et=await Ge.url("/tags").post(encodeURIComponent(pt)).res();return triggerEvent(Events.USER_ATTRIBUTE_CHANGED,{}),clearCache(),Et.ok}async function ht(pt){return(await Ke.url("/tallies").get().json())[pt]}async function yt(){return await Ke.url("/tallies").get().json()}async function $t(pt){const Et=await Ke.url(`/tallies/${pt}`).delete().res();return clearCache(),Et.ok}async function vt(pt,Et){return await Ke.url(`/tallies/${encodeURIComponent(pt)}/push`).post(Et).json()}async function Ct(pt){return await Ge.url(`/products/${encodeURIComponent(pt)}`).get().json()}async function kt(){return await getTokenSilently(!1)?await Ge.url("/profile").get().json():null}async function Nt(pt){const Et=await Ge.url("/profile").patch(pt).res();return clearCache(),Et.ok}async function ut(){return await Ge.url("/payment-issues").get().json()}async function ft(){return(await Ge.url("/profile/spotify-link").get().json()).isSpotifyLinked}async function _t(){return(await Ge.url("/profile/unlink-spotify").post().res()).ok}async function Pt(pt){const Et=await getTokenSilently(!1);if(!Et)throw new Error("No access token available");const It=new URL(`${getBaseUrl("spotify-oas",$e.environment)}/sesamy-callback`);It.searchParams.set("access_token",Et),It.searchParams.set("state",pt),window.location.href=It.toString()}async function Rt(pt){const Et=await Ge.url(`/products/${encodeURIComponent(pt)}/auto-onboard`).post().json();return Et.length&&clearCache(),Et}async function Lt(pt,Et=3600){const{shortlink:It}=await factory(SHORTLINK_URL).post({url:pt,ttl:Et}).json();return It}async function xt(pt){const Et=await getTokenSilently(!1,!0);let It;const Ht=pt.language||getLanguage(),qt=getAttribution();switch(pt.target){case"account":It=new URL(`${getBaseUrl("account",$e.environment)}/${encodeURIComponent(pt.language||Ht)}/subscriptions/${encodeURIComponent($e.clientId)}`),It.searchParams.set("sesamy-redirect-url",pt.redirectUrl||window.location.href);break;case"change-payment":It=new URL(`${getBaseUrl("account",$e.environment)}/${encodeURIComponent(pt.language||Ht)}/subscriptions/${encodeURIComponent($e.clientId)}/${encodeURIComponent(pt.contractId)}/change-payment-method`),It.searchParams.set("sesamy-redirect-url",pt.redirectUrl||window.location.href);break;case"consume":It=new URL(`${getBaseUrl("consume",$e.environment)}/${encodeURIComponent(pt.language||Ht)}/@${encodeURIComponent($e.clientId)}/${encodeURIComponent(pt.sku)}`),pt.episodeId?It.href+=`/${pt.episodeId}`:It.href+="/listen",It.searchParams.set("sesamy-redirect-url",pt.redirectUrl||window.location.href);break;case"checkout":It=generateCheckoutLink($e,{language:Ht,...pt},qt);break;default:throw new Error("Invalid target")}return Et&&(It.hash=`#access_token=${Et}`),pt.shorten?Lt(It.href,pt.ttl):It.href}async function Ot(pt){const Et=getAttribution(),It=["_ga","_gid","_fbp","_fbc"];return document.cookie.split(";").forEach(Ht=>{const qt=Et,[Ut,zt]=Ht.trim().split("=");It.includes(Ut)&&!qt[Ut]&&(qt[Ut]=zt)}),(await Ke.url("/checkouts").post({language:getLanguage(),attribution:{...Et,...pt.attribution},...pt,vendorId:$e.clientId})).json()}async function At(pt,Et){return(await Ke.url(`/checkouts/${pt}`).patch(Et)).json()}async function Tt(pt){return(await Ke.url(`/checkouts/${pt}`).get()).json()}async function jt(pt){return(await Ke.url(`/paywalls/${pt}`).get()).json()}async function Mt(){return(await Ke.url("/vendor").get()).json()}async function Kt(){return(await Ge.url("/vendors").get()).json()}async function Wt(){const pt=await getTokenSilently(!1),Et=new URL(`${getBaseUrl("account",$e.environment)}/subscriptions/${$e.clientId}`);pt&&(Et.hash=`#access_token=${pt}`),window.location.href=Et.toString()}return{autoOnboardProduct:Rt,cancelContract:rt,createCheckout:Ot,deleteTag:St,deleteTally:$t,deleteUserMetadata:dt,generateLink:xt,getBill:st,getBills:at,getCheckout:Tt,getProxyContent:Ye,getContract:tt,getContracts:et,getEntitlement:Je,getEntitlementAccess:Ze,getEntitlements:We,getFulfillments:Qe,getPaywall:jt,getPaymentIssues:ut,getProfile:kt,getProduct:Ct,getSubscriptions:nt,getTally:ht,getTallies:yt,getTags:wt,getTransaction:ot,getTransactions:ct,getUserMetadata:mt,hasAccess:Xe,isSpotifyLinked:ft,linkSpotify:Pt,listUserMetadata:gt,openHostedAccountPage:Wt,pushTally:vt,setTag:bt,setUserMetadata:lt,unlinkSpotify:_t,updateCheckout:At,updateProfile:Nt,getVendorSettings:Mt,listVendors:Kt}}const name="@sesamy/sesamy-js",version="1.32.6";function i$5($e,De,Fe,He,Be){for(De=De.split?De.split("."):De,He=0;He<De.length;He++)$e=$e?$e[De[He]]:Be;return $e===Be?Fe:$e}var e="undefined",o$4="object",g$1=function(){},b$4="any",m$1="*",j="__",F$2=typeof process<"u"?process:{};F$2.env&&F$2.env.NODE_ENV;var $$1=typeof document<"u";F$2.versions!=null&&F$2.versions.node!=null,typeof Deno<"u"&&Deno.core,$$1&&window.name==="nodejs"||typeof navigator<"u"&&navigator.userAgent!==void 0&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function M$1($e,De){return De.charAt(0)[$e]()+De.slice(1)}var U$1=M$1.bind(null,"toUpperCase"),H$1=M$1.bind(null,"toLowerCase");function J$2($e){return Y$1($e)?U$1("null"):typeof $e=="object"?yn($e):Object.prototype.toString.call($e).slice(8,-1)}function R$1($e,De){De===void 0&&(De=!0);var Fe=J$2($e);return De?H$1(Fe):Fe}function V$1($e,De){return typeof De===$e}var W$1=V$1.bind(null,"function"),q$1=V$1.bind(null,"string"),I$2=V$1.bind(null,"undefined"),Q$1=V$1.bind(null,"boolean");V$1.bind(null,"symbol");function Y$1($e){return $e===null}function nn($e){return R$1($e)==="number"&&!isNaN($e)}function rn($e){return R$1($e)==="array"}function on($e){if(!un($e))return!1;for(var De=$e;Object.getPrototypeOf(De)!==null;)De=Object.getPrototypeOf(De);return Object.getPrototypeOf($e)===De}function un($e){return $e&&(typeof $e=="object"||$e!==null)}function yn($e){return W$1($e.constructor)?$e.constructor.name:null}function hn($e){return $e instanceof Error||q$1($e.message)&&$e.constructor&&nn($e.constructor.stackTraceLimit)}function On($e,De){if(typeof De!="object"||Y$1(De))return!1;if(De instanceof $e)return!0;var Fe=R$1(new $e(""));if(hn(De))for(;De;){if(R$1(De)===Fe)return!0;De=Object.getPrototypeOf(De)}return!1}On.bind(null,TypeError),On.bind(null,SyntaxError);function $n($e,De){var Fe=$e instanceof Element||$e instanceof HTMLDocument;return Fe&&De?Tn($e,De):Fe}function Tn($e,De){return De===void 0&&(De=""),$e&&$e.nodeName===De.toUpperCase()}function _n($e){var De=[].slice.call(arguments,1);return function(){return $e.apply(void 0,[].slice.call(arguments).concat(De))}}_n($n,"form"),_n($n,"button"),_n($n,"input"),_n($n,"select");function Hn($e){return $e?rn($e)?$e:[$e]:[]}function n$1($e){try{return decodeURIComponent($e.replace(/\+/g," "))}catch{return null}}function o$3(){if($$1){var $e=navigator,De=$e.languages;return $e.userLanguage||(De&&De.length?De[0]:$e.language)}}function a$5(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function s$1($e){return function(De){for(var Fe,He=Object.create(null),Be=/([^&=]+)=?([^&]*)/g;Fe=Be.exec(De);){var Ge=n$1(Fe[1]),Ke=n$1(Fe[2]);Ge.substring(Ge.length-2)==="[]"?(He[Ge=Ge.substring(0,Ge.length-2)]||(He[Ge]=[])).push(Ke):He[Ge]=Ke===""||Ke}for(var We in He){var Xe=We.split("[");Xe.length>1&&(m(He,Xe.map(function(Je){return Je.replace(/[?[\]\\ ]/g,"")}),He[We]),delete He[We])}return He}(function(De){return $$1&&window.location.search.substring(1)}())}function m($e,De,Fe){for(var He=De.length-1,Be=0;Be<He;++Be){var Ge=De[Be];if(Ge==="__proto__"||Ge==="constructor")break;Ge in $e||($e[Ge]={}),$e=$e[Ge]}$e[De[He]]=Fe}function y$1(){for(var $e="",De=0,Fe=4294967295*Math.random()|0;De++<36;){var He="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[De-1],Be=15&Fe;$e+=He=="-"||He=="4"?He:(He=="x"?Be:3&Be|8).toString(16),Fe=De%8==0?4294967295*Math.random()|0:Fe>>4}return $e}function b$3($e,De){var Fe,He,Be,Ge=null,Ke=0,We=function(){Ke=new Date,Ge=null,Be=$e.apply(Fe,He)};return function(){var Xe=new Date;Ke||(Ke=Xe);var Je=De-(Xe-Ke);return Fe=this,He=arguments,Je<=0?(clearTimeout(Ge),Ge=null,Ke=Xe,Be=$e.apply(Fe,He)):Ge||(Ge=setTimeout(We,Je)),Be}}var l$2="global",o$2=j+"global"+j,n=typeof self===o$4&&self.self===self&&self||typeof global===o$4&&global.global===global&&global||void 0;function a$4($e){return n[o$2][$e]}function f$1($e,De){return n[o$2][$e]=De}function i$4($e){delete n[o$2][$e]}function u$3($e,De,Fe){var He;try{if(b$2($e)){var Be=window[$e];He=Be[De].bind(Be)}}catch{}return He||Fe}n[o$2]||(n[o$2]={});var c$3={};function b$2($e){if(typeof c$3[$e]!==e)return c$3[$e];try{var De=window[$e];De.setItem(e,e),De.removeItem(e)}catch{return c$3[$e]=!1}return c$3[$e]=!0}function v(){return v=Object.assign||function($e){for(var De=1;De<arguments.length;De++){var Fe=arguments[De];for(var He in Fe)Object.prototype.hasOwnProperty.call(Fe,He)&&($e[He]=Fe[He])}return $e},v.apply(this,arguments)}var y="function",b$1="undefined",I$1="@@redux/"+Math.random().toString(36),w=function(){return typeof Symbol===y&&Symbol.observable||"@@observable"}(),E$1=" != "+y;function P($e,De,Fe){var He;if(typeof De===y&&typeof Fe===b$1&&(Fe=De,De=void 0),typeof Fe!==b$1){if(typeof Fe!==y)throw new Error("enhancer"+E$1);return Fe(P)($e,De)}if(typeof $e!==y)throw new Error("reducer"+E$1);var Be=$e,Ge=De,Ke=[],We=Ke,Xe=!1;function Je(){We===Ke&&(We=Ke.slice())}function Ze(){return Ge}function Ye(et){if(typeof et!==y)throw new Error("Listener"+E$1);var tt=!0;return Je(),We.push(et),function(){if(tt){tt=!1,Je();var rt=We.indexOf(et);We.splice(rt,1)}}}function Qe(et){if(!on(et))throw new Error("Act != obj");if(typeof et.type===b$1)throw new Error("ActType "+b$1);if(Xe)throw new Error("Dispatch in reducer");try{Xe=!0,Ge=Be(Ge,et)}finally{Xe=!1}for(var tt=Ke=We,rt=0;rt<tt.length;rt++)(0,tt[rt])();return et}return Qe({type:"@@redux/INIT"}),(He={dispatch:Qe,subscribe:Ye,getState:Ze,replaceReducer:function(et){if(typeof et!==y)throw new Error("next reducer"+E$1);Be=et,Qe({type:"@@redux/INIT"})}})[w]=function(){var et,tt=Ye;return(et={subscribe:function(rt){if(typeof rt!="object")throw new TypeError("Observer != obj");function nt(){rt.next&&rt.next(Ze())}return nt(),{unsubscribe:tt(nt)}}})[w]=function(){return this},et},He}function S($e,De){var Fe=De&&De.type;return"action "+(Fe&&Fe.toString()||"?")+"reducer "+$e+" returns "+b$1}function N$1(){var $e=[].slice.call(arguments);return $e.length===0?function(De){return De}:$e.length===1?$e[0]:$e.reduce(function(De,Fe){return function(){return De(Fe.apply(void 0,[].slice.call(arguments)))}})}function O$1(){var $e=arguments;return function(De){return function(Fe,He,Be){var Ge,Ke=De(Fe,He,Be),We=Ke.dispatch,Xe={getState:Ke.getState,dispatch:function(Je){return We(Je)}};return Ge=[].slice.call($e).map(function(Je){return Je(Xe)}),v({},Ke,{dispatch:We=N$1.apply(void 0,Ge)(Ke.dispatch)})}}}var A$1=j+"anon_id",_=j+"user_id",x$1=j+"user_traits",k$1="userId",T="anonymousId",z=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],M=["name","EVENTS","config","loaded"],q=z.reduce(function($e,De){return $e[De]=De,$e},{registerPluginType:function($e){return"registerPlugin:"+$e},pluginReadyType:function($e){return"ready:"+$e}}),U=/^utm_/,V=/^an_prop_/,L$1=/^an_trait_/;function C$1($e){var De=$e.storage.setItem;return function(Fe){return function(He){return function(Be){if(Be.type===q.bootstrap){var Ge=Be.params,Ke=Be.user,We=Be.persistedUser,Xe=Be.initialUser,Je=We.userId===Ke.userId;We.anonymousId!==Ke.anonymousId&&De(A$1,Ke.anonymousId),Je||De(_,Ke.userId),Xe.traits&&De(x$1,v({},Je&&We.traits?We.traits:{},Xe.traits));var Ze=Object.keys(Be.params);if(Ze.length){var Ye=Ge.an_uid,Qe=Ge.an_event,et=Ze.reduce(function(tt,rt){if(rt.match(U)||rt.match(/^(d|g)clid/)){var nt=rt.replace(U,"");tt.campaign[nt==="campaign"?"name":nt]=Ge[rt]}return rt.match(V)&&(tt.props[rt.replace(V,"")]=Ge[rt]),rt.match(L$1)&&(tt.traits[rt.replace(L$1,"")]=Ge[rt]),tt},{campaign:{},props:{},traits:{}});Fe.dispatch(v({type:q.params,raw:Ge},et,Ye?{userId:Ye}:{})),Ye&&setTimeout(function(){return $e.identify(Ye,et.traits)},0),Qe&&setTimeout(function(){return $e.track(Qe,et.props)},0),Object.keys(et.campaign).length&&Fe.dispatch({type:q.campaign,campaign:et.campaign})}}return He(Be)}}}}function R($e){return function(De,Fe){if(De===void 0&&(De={}),Fe===void 0&&(Fe={}),Fe.type===q.setItemEnd){if(Fe.key===A$1)return v({},De,{anonymousId:Fe.value});if(Fe.key===_)return v({},De,{userId:Fe.value})}switch(Fe.type){case q.identify:return Object.assign({},De,{userId:Fe.userId,traits:v({},De.traits,Fe.traits)});case q.reset:return[_,A$1,x$1].forEach(function(He){$e.removeItem(He)}),Object.assign({},De,{userId:null,anonymousId:null,traits:{}});default:return De}}}function $($e){return{userId:$e.getItem(_),anonymousId:$e.getItem(A$1),traits:$e.getItem(x$1)}}var D=function($e){return j+"TEMP"+j+$e};function B($e){var De=$e.storage,Fe=De.setItem,He=De.removeItem,Be=De.getItem;return function(Ge){return function(Ke){return function(We){var Xe=We.userId,Je=We.traits,Ze=We.options;if(We.type===q.reset&&([_,x$1,A$1].forEach(function(et){He(et)}),[k$1,T,"traits"].forEach(function(et){i$4(D(et))})),We.type===q.identify){Be(A$1)||Fe(A$1,y$1());var Ye=Be(_),Qe=Be(x$1)||{};Ye&&Ye!==Xe&&Ge.dispatch({type:q.userIdChanged,old:{userId:Ye,traits:Qe},new:{userId:Xe,traits:Je},options:Ze}),Xe&&Fe(_,Xe),Je&&Fe(x$1,v({},Qe,Je))}return Ke(We)}}}}var X={};function J$1($e,De){X[$e]&&W$1(X[$e])&&(X[$e](De),delete X[$e])}function W($e,De,Fe){return new Promise(function(He,Be){return De()?He($e):Fe<1?Be(v({},$e,{queue:!0})):new Promise(function(Ge){return setTimeout(Ge,10)}).then(function(Ge){return W($e,De,Fe-10).then(He,Be)})})}function H($e){return{abort:$e}}function F$1($e,De,Fe){var He={},Be=De(),Ge=$e.getState(),Ke=Ge.plugins,We=Ge.queue,Xe=Ge.user;if(!Ge.context.offline&&We&&We.actions&&We.actions.length){var Je=We.actions.reduce(function(Ye,Qe,et){return Ke[Qe.plugin].loaded?(Ye.process.push(Qe),Ye.processIndex.push(et)):(Ye.requeue.push(Qe),Ye.requeueIndex.push(et)),Ye},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(Je.processIndex&&Je.processIndex.length){Je.processIndex.forEach(function(Ye){var Qe=We.actions[Ye],et=Qe.plugin,tt=Qe.payload.type,rt=Be[et][tt];if(rt&&W$1(rt)){var nt,at=function(ot,lt){return ot===void 0&&(ot={}),lt===void 0&&(lt={}),[k$1,T].reduce(function(dt,mt){return ot.hasOwnProperty(mt)&<[mt]&<[mt]!==ot[mt]&&(dt[mt]=lt[mt]),dt},ot)}(Qe.payload,Xe),st=He[at.meta.rid];if(!st&&(nt=rt({payload:at,config:Ke[et].config,instance:Fe,abort:H}))&&on(nt)&&nt.abort)return void(He[at.meta.rid]=!0);if(!st){var ct=tt+":"+et;$e.dispatch(v({},at,{type:ct,_:{called:ct,from:"queueDrain"}}))}}});var Ze=We.actions.filter(function(Ye,Qe){return!~Je.processIndex.indexOf(Qe)});We.actions=Ze}}}var G$1=function($e){var De=$e.data,Fe=$e.action,He=$e.instance,Be=$e.state,Ge=$e.allPlugins,Ke=$e.allMatches,We=$e.store,Xe=$e.EVENTS;try{var Je=Be.plugins,Ze=Be.context,Ye=Fe.type,Qe=Ye.match(K),et=De.exact.map(function(nt){return nt.pluginName});Qe&&(et=Ke.during.map(function(nt){return nt.pluginName}));var tt=function(nt,at){return function(st,ct,ot){var lt=ct.config,dt=ct.name,mt=dt+"."+st.type;ot&&(mt=ot.event);var gt=st.type.match(K)?function(wt,St,bt,ht,yt){return function($t,vt){var Ct=ht?ht.name:wt,kt=vt&&ae(vt)?vt:bt;if(ht&&(!(kt=vt&&ae(vt)?vt:[wt]).includes(wt)||kt.length!==1))throw new Error("Method "+St+" can only abort "+wt+" plugin. "+JSON.stringify(kt)+" input valid");return v({},yt,{abort:{reason:$t,plugins:kt,caller:St,_:Ct}})}}(dt,mt,at,ot,st):function(wt,St){return function(){throw new Error(wt.type+" action not cancellable. Remove abort in "+St)}}(st,mt);return{payload:ce(st),instance:nt,config:lt||{},abort:gt}}}(He,et),rt=De.exact.reduce(function(nt,at){var st=at.pluginName,ct=at.methodName,ot=!1;return ct.match(/^initialize/)||ct.match(/^reset/)||(ot=!Je[st].loaded),Ze.offline&&ct.match(/^(page|track|identify)/)&&(ot=!0),nt[""+st]=ot,nt},{});return Promise.resolve(De.exact.reduce(function(nt,at,st){try{var ct=at.pluginName;return Promise.resolve(nt).then(function(ot){function lt(){return Promise.resolve(ot)}var dt=function(){if(De.namespaced&&De.namespaced[ct])return Promise.resolve(De.namespaced[ct].reduce(function(mt,gt,wt){try{return Promise.resolve(mt).then(function(St){return gt.method&&W$1(gt.method)?(function($t,vt){var Ct=ue($t);if(Ct&&Ct.name===vt){var kt=ue(Ct.method);throw new Error([vt+" plugin is calling method "+$t,"Plugins cant call self","Use "+Ct.method+" "+(kt?"or "+kt.method:"")+" in "+vt+" plugin insteadof "+$t].join(`
|
|
57
|
+
`))}}(gt.methodName,gt.pluginName),Promise.resolve(gt.method({payload:St,instance:He,abort:(bt=St,ht=ct,yt=gt.pluginName,function($t,vt){return v({},bt,{abort:{reason:$t,plugins:vt||[ht],caller:Ye,from:yt||ht}})}),config:ee(gt.pluginName,Je,Ge),plugins:Je})).then(function($t){var vt=on($t)?$t:{};return Promise.resolve(v({},St,vt))})):St;var bt,ht,yt})}catch(St){return Promise.reject(St)}},Promise.resolve(Fe))).then(function(mt){ot[ct]=mt});ot[ct]=Fe}();return dt&&dt.then?dt.then(lt):lt()})}catch(ot){return Promise.reject(ot)}},Promise.resolve({}))).then(function(nt){return Promise.resolve(De.exact.reduce(function(at,st,ct){try{var ot=De.exact.length===ct+1,lt=st.pluginName,dt=Ge[lt];return Promise.resolve(at).then(function(mt){var gt=nt[lt]?nt[lt]:{};if(Qe&&(gt=mt),re(gt,lt))return Z({data:gt,method:Ye,instance:He,pluginName:lt,store:We}),Promise.resolve(mt);if(re(mt,lt))return ot&&Z({data:mt,method:Ye,instance:He,store:We}),Promise.resolve(mt);if(rt.hasOwnProperty(lt)&&rt[lt]===!0)return We.dispatch({type:"queue",plugin:lt,payload:gt,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(mt);var wt=tt(nt[lt],Ge[lt]);return Promise.resolve(dt[Ye]({abort:wt.abort,payload:gt,instance:He,config:ee(lt,Je,Ge),plugins:Je})).then(function(St){var bt=on(St)?St:{},ht=v({},mt,bt),yt=nt[lt];if(re(yt,lt))Z({data:yt,method:Ye,instance:He,pluginName:lt,store:We});else{var $t=Ye+":"+lt;($t.match(/:/g)||[]).length<2&&!Ye.match(Q)&&!Ye.match(Y)&&He.dispatch(v({},Qe?ht:gt,{type:$t,_:{called:$t,from:"submethod"}}))}return Promise.resolve(ht)})})}catch(mt){return Promise.reject(mt)}},Promise.resolve(Fe))).then(function(at){if(!(Ye.match(K)||Ye.match(/^registerPlugin/)||Ye.match(Y)||Ye.match(Q)||Ye.match(/^params/)||Ye.match(/^userIdChanged/))){if(Xe.plugins.includes(Ye),at._&&at._.originalAction===Ye)return at;var st=v({},at,{_:{originalAction:at.type,called:at.type,from:"engineEnd"}});ie(at,De.exact.length)&&!Ye.match(/End$/)&&(st=v({},st,{type:at.type+"Aborted"})),We.dispatch(st)}return at})})}catch(nt){return Promise.reject(nt)}},K=/Start$/,Q=/^bootstrap/,Y=/^ready/;function Z($e){var De=$e.pluginName,Fe=$e.method+"Aborted"+(De?":"+De:"");$e.store.dispatch(v({},$e.data,{type:Fe,_:{called:Fe,from:"abort"}}))}function ee($e,De,Fe){var He=De[$e]||Fe[$e];return He&&He.config?He.config:{}}function ne($e,De){return De.reduce(function(Fe,He){return He[$e]?Fe.concat({methodName:$e,pluginName:He.name,method:He[$e]}):Fe},[])}function te($e,De){var Fe=$e.replace(K,""),He=De?":"+De:"";return[""+$e+He,""+Fe+He,Fe+"End"+He]}function re($e,De){var Fe=$e.abort;return!!Fe&&(Fe===!0||oe(Fe,De)||Fe&&oe(Fe.plugins,De))}function ie($e,De){var Fe=$e.abort;if(!Fe)return!1;if(Fe===!0||q$1(Fe))return!0;var He=Fe.plugins;return ae(Fe)&&Fe.length===De||ae(He)&&He.length===De}function ae($e){return Array.isArray($e)}function oe($e,De){return!(!$e||!ae($e))&&$e.includes(De)}function ue($e){var De=$e.match(/(.*):(.*)/);return!!De&&{method:De[1],name:De[2]}}function ce($e){return Object.keys($e).reduce(function(De,Fe){return Fe==="type"||(De[Fe]=on($e[Fe])?Object.assign({},$e[Fe]):$e[Fe]),De},{})}function se($e,De,Fe){var He={};return function(Be){return function(Ge){return function(Ke){try{var We,Xe=function(ot){return We?ot:Ge(Ye)},Je=Ke.type,Ze=Ke.plugins,Ye=Ke;if(Ke.abort)return Promise.resolve(Ge(Ke));if(Je===q.enablePlugin&&Be.dispatch({type:q.initializeStart,plugins:Ze,disabled:[],fromEnable:!0,meta:Ke.meta}),Je===q.disablePlugin&&setTimeout(function(){return J$1(Ke.meta.rid,{payload:Ke})},0),Je===q.initializeEnd){var Qe=De(),et=Object.keys(Qe),tt=et.filter(function(ot){return Ze.includes(ot)}).map(function(ot){return Qe[ot]}),rt=[],nt=[],at=Ke.disabled,st=tt.map(function(ot){var lt=ot.loaded,dt=ot.name,mt=ot.config;return W(ot,function(){return lt({config:mt})},1e4).then(function(gt){return He[dt]||(Be.dispatch({type:q.pluginReadyType(dt),name:dt,events:Object.keys(ot).filter(function(wt){return!M.includes(wt)})}),He[dt]=!0),rt=rt.concat(dt),ot}).catch(function(gt){if(gt instanceof Error)throw new Error(gt);return nt=nt.concat(gt.name),gt})});Promise.all(st).then(function(ot){var lt={plugins:rt,failed:nt,disabled:at};setTimeout(function(){et.length===st.length+at.length&&Be.dispatch(v({},{type:q.ready},lt))},0)})}var ct=function(){if(Je!==q.bootstrap)return/^ready:([^:]*)$/.test(Je)&&setTimeout(function(){return F$1(Be,De,$e)},0),Promise.resolve(function(ot,lt,dt,mt,gt){try{var wt=W$1(lt)?lt():lt,St=ot.type,bt=St.replace(K,"");if(ot._&&ot._.called)return Promise.resolve(ot);var ht=dt.getState(),yt=(Ct=wt,(kt=ht.plugins)===void 0&&(kt={}),(Nt=ot.options)===void 0&&(Nt={}),Object.keys(Ct).filter(function(ut){var ft=Nt.plugins||{};return Q$1(ft[ut])?ft[ut]:ft.all!==!1&&(!kt[ut]||kt[ut].enabled!==!1)}).map(function(ut){return Ct[ut]}));St===q.initializeStart&&ot.fromEnable&&(yt=Object.keys(ht.plugins).filter(function(ut){var ft=ht.plugins[ut];return ot.plugins.includes(ut)&&!ft.initialized}).map(function(ut){return wt[ut]}));var $t=yt.map(function(ut){return ut.name}),vt=function(ut,ft,_t){var Pt=te(ut).map(function(Rt){return ne(Rt,ft)});return ft.reduce(function(Rt,Lt){var xt=Lt.name,Ot=te(ut,xt).map(function(Mt){return ne(Mt,ft)}),At=Ot[0],Tt=Ot[1],jt=Ot[2];return At.length&&(Rt.beforeNS[xt]=At),Tt.length&&(Rt.duringNS[xt]=Tt),jt.length&&(Rt.afterNS[xt]=jt),Rt},{before:Pt[0],beforeNS:{},during:Pt[1],duringNS:{},after:Pt[2],afterNS:{}})}(St,yt);return Promise.resolve(G$1({action:ot,data:{exact:vt.before,namespaced:vt.beforeNS},state:ht,allPlugins:wt,allMatches:vt,instance:dt,store:mt,EVENTS:gt})).then(function(ut){function ft(){var Rt=function(){if(St.match(K))return Promise.resolve(G$1({action:v({},_t,{type:bt+"End"}),data:{exact:vt.after,namespaced:vt.afterNS},state:ht,allPlugins:wt,allMatches:vt,instance:dt,store:mt,EVENTS:gt})).then(function(Lt){Lt.meta&&Lt.meta.hasCallback&&J$1(Lt.meta.rid,{payload:Lt})})}();return Rt&&Rt.then?Rt.then(function(){return ut}):ut}if(ie(ut,$t.length))return ut;var _t,Pt=function(){if(St!==bt)return Promise.resolve(G$1({action:v({},ut,{type:bt}),data:{exact:vt.during,namespaced:vt.duringNS},state:ht,allPlugins:wt,allMatches:vt,instance:dt,store:mt,EVENTS:gt})).then(function(Rt){_t=Rt});_t=ut}();return Pt&&Pt.then?Pt.then(ft):ft()})}catch(ut){return Promise.reject(ut)}var Ct,kt,Nt}(Ke,De,$e,Be,Fe)).then(function(ot){return We=1,Ge(ot)})}();return Promise.resolve(ct&&ct.then?ct.then(Xe):Xe(ct))}catch(ot){return Promise.reject(ot)}}}}}function le($e){return function(De){return function(Fe){return function(He){var Be=He.type,Ge=He.key,Ke=He.value,We=He.options;if(Be===q.setItem||Be===q.removeItem){if(He.abort)return Fe(He);Be===q.setItem?$e.setItem(Ge,Ke,We):$e.removeItem(Ge,We)}return Fe(He)}}}}var fe=function(){var $e=this;this.before=[],this.after=[],this.addMiddleware=function(De,Fe){$e[Fe]=$e[Fe].concat(De)},this.removeMiddleware=function(De,Fe){var He=$e[Fe].findIndex(function(Be){return Be===De});He!==-1&&($e[Fe]=[].concat($e[Fe].slice(0,He),$e[Fe].slice(He+1)))},this.dynamicMiddlewares=function(De){return function(Fe){return function(He){return function(Be){var Ge={getState:Fe.getState,dispatch:function(We){return Fe.dispatch(We)}},Ke=$e[De].map(function(We){return We(Ge)});return N$1.apply(void 0,Ke)(He)(Be)}}}}};function de($e){return function(De,Fe){De===void 0&&(De={});var He={};if(Fe.type==="initialize:aborted")return De;if(/^registerPlugin:([^:]*)$/.test(Fe.type)){var Be=pe(Fe.type,"registerPlugin"),Ge=$e()[Be];if(!Ge||!Be)return De;var Ke=Fe.enabled,We=Ge.config;return He[Be]={enabled:Ke,initialized:!!Ke&&!Ge.initialize,loaded:!!Ke&&!!Ge.loaded({config:We}),config:We},v({},De,He)}if(/^initialize:([^:]*)$/.test(Fe.type)){var Xe=pe(Fe.type,q.initialize),Je=$e()[Xe];return Je&&Xe?(He[Xe]=v({},De[Xe],{initialized:!0,loaded:!!Je.loaded({config:Je.config})}),v({},De,He)):De}if(/^ready:([^:]*)$/.test(Fe.type))return He[Fe.name]=v({},De[Fe.name],{loaded:!0}),v({},De,He);switch(Fe.type){case q.disablePlugin:return v({},De,me(Fe.plugins,!1,De));case q.enablePlugin:return v({},De,me(Fe.plugins,!0,De));default:return De}}}function pe($e,De){return $e.substring(De.length+1,$e.length)}function me($e,De,Fe){return $e.reduce(function(He,Be){return He[Be]=v({},Fe[Be],{enabled:De}),He},Fe)}function ge($e){try{return JSON.parse(JSON.stringify($e))}catch{}return $e}var he={last:{},history:[]};function ve($e,De){$e===void 0&&($e=he);var Fe=De.options,He=De.meta;if(De.type===q.track){var Be=ge(v({event:De.event,properties:De.properties},Object.keys(Fe).length&&{options:Fe},{meta:He}));return v({},$e,{last:Be,history:$e.history.concat(Be)})}return $e}var ye={actions:[]};function be($e,De){$e===void 0&&($e=ye);var Fe=De.payload;switch(De.type){case"queue":var He;return He=Fe&&Fe.type&&Fe.type===q.identify?[De].concat($e.actions):$e.actions.concat(De),v({},$e,{actions:He});case"dequeue":return[];default:return $e}}var Ie=/#.*$/;function we($e){var De=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec($e);return"/"+(De&&De[3]?De[3].split("?")[0].replace(Ie,""):"")}var Ee,Pe,Se,Ne,Oe=function($e){if($e===void 0&&($e={}),!$$1)return $e;var De=document,Fe=De.title,He=De.referrer,Be=window,Ge=Be.location,Ke=Be.innerWidth,We=Be.innerHeight,Xe=Ge.hash,Je=Ge.search,Ze=function(Qe){var et=function(){if($$1){for(var tt,rt=document.getElementsByTagName("link"),nt=0;tt=rt[nt];nt++)if(tt.getAttribute("rel")==="canonical")return tt.getAttribute("href")}}();return et?et.match(/\?/)?et:et+Qe:window.location.href.replace(Ie,"")}(Je),Ye={title:Fe,url:Ze,path:we(Ze),hash:Xe,search:Je,width:Ke,height:We};return He&&He!==""&&(Ye.referrer=He),v({},Ye,$e)},Ae={last:{},history:[]};function _e($e,De){$e===void 0&&($e=Ae);var Fe=De.options;if(De.type===q.page){var He=ge(v({properties:De.properties,meta:De.meta},Object.keys(Fe).length&&{options:Fe}));return v({},$e,{last:He,history:$e.history.concat(He)})}return $e}Ee=function(){if(!$$1)return!1;var $e=navigator.appVersion;return~$e.indexOf("Win")?"Windows":~$e.indexOf("Mac")?"MacOS":~$e.indexOf("X11")?"UNIX":~$e.indexOf("Linux")?"Linux":"Unknown OS"}(),Pe=$$1?document.referrer:null,Se=o$3(),Ne=a$5();var xe={initialized:!1,sessionId:y$1(),app:null,version:null,debug:!1,offline:!!$$1&&!navigator.onLine,os:{name:Ee},userAgent:$$1?navigator.userAgent:"node",library:{name:"analytics",version:"0.12.13"},timezone:Ne,locale:Se,campaign:{},referrer:Pe};function je($e,De){$e===void 0&&($e=xe);var Fe=$e.initialized,He=De.campaign;switch(De.type){case q.campaign:return v({},$e,{campaign:He});case q.offline:return v({},$e,{offline:!0});case q.online:return v({},$e,{offline:!1});default:return Fe?$e:v({},xe,$e,{initialized:!0})}}var ke=["plugins","reducers","storage"];function Te($e,De,Fe){if($$1){var He=window[(Fe?"add":"remove")+"EventListener"];$e.split(" ").forEach(function(Be){He(Be,De)})}}function ze($e){var De=Te.bind(null,"online offline",function(Fe){return Promise.resolve(!navigator.onLine).then($e)});return De(!0),function(Fe){return De(!1)}}function Me(){return f$1("analytics",[]),function($e){return function(De,Fe,He){var Be=$e(De,Fe,He),Ge=Be.dispatch;return Object.assign(Be,{dispatch:function(Ke){return n[o$2].analytics.push(Ke.action||Ke),Ge(Ke)}})}}}function qe($e){return function(){return N$1(N$1.apply(null,arguments),Me())}}function Ue($e){return $e?rn($e)?$e:[$e]:[]}function Ve($e,De,Fe){$e===void 0&&($e={});var He,Be,Ge=y$1();return De&&(X[Ge]=(He=De,Be=function(Ke){for(var We,Xe=Ke||Array.prototype.slice.call(arguments),Je=0;Je<Xe.length;Je++)if(W$1(Xe[Je])){We=Xe[Je];break}return We}(Fe),function(Ke){Be&&Be(Ke),He(Ke)})),v({},$e,{rid:Ge,ts:new Date().getTime()},De?{hasCallback:!0}:{})}function Le($e){$e===void 0&&($e={});var De=$e.reducers||{},Fe=$e.initialUser||{},He=($e.plugins||[]).reduce(function(ut,ft){if(W$1(ft))return ut.middlewares=ut.middlewares.concat(ft),ut;if(ft.NAMESPACE&&(ft.name=ft.NAMESPACE),!ft.name)throw new Error("https://lytics.dev/errors/1");ft.config||(ft.config={});var _t=ft.EVENTS?Object.keys(ft.EVENTS).map(function(Lt){return ft.EVENTS[Lt]}):[];ut.pluginEnabled[ft.name]=!(ft.enabled===!1||ft.config.enabled===!1),delete ft.enabled,ft.methods&&(ut.methods[ft.name]=Object.keys(ft.methods).reduce(function(Lt,xt){var Ot;return Lt[xt]=(Ot=ft.methods[xt],function(){for(var At=Array.prototype.slice.call(arguments),Tt=new Array(Ot.length),jt=0;jt<At.length;jt++)Tt[jt]=At[jt];return Tt[Tt.length]=lt,Ot.apply({instance:lt},Tt)}),Lt},{}),delete ft.methods);var Pt=Object.keys(ft).concat(_t),Rt=new Set(ut.events.concat(Pt));if(ut.events=Array.from(Rt),ut.pluginsArray=ut.pluginsArray.concat(ft),ut.plugins[ft.name])throw new Error(ft.name+"AlreadyLoaded");return ut.plugins[ft.name]=ft,ut.plugins[ft.name].loaded||(ut.plugins[ft.name].loaded=function(){return!0}),ut},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),Be=$e.storage?$e.storage:{getItem:a$4,setItem:f$1,removeItem:i$4},Ge=function(ut){return function(ft,_t,Pt){return _t.getState("user")[ft]||(Pt&&on(Pt)&&Pt[ft]?Pt[ft]:$(ut)[ft]||a$4(D(ft))||null)}}(Be),Ke=He.plugins,We=He.events.filter(function(ut){return!M.includes(ut)}).sort(),Xe=new Set(We.concat(z).filter(function(ut){return!M.includes(ut)})),Je=Array.from(Xe).sort(),Ze=function(){return Ke},Ye=new fe,Qe=Ye.addMiddleware,et=Ye.removeMiddleware,tt=Ye.dynamicMiddlewares,rt=function(){throw new Error("Abort disabled inListener")},nt=s$1(),at=$(Be),st=v({},at,Fe,nt.an_uid?{userId:nt.an_uid}:{},nt.an_aid?{anonymousId:nt.an_aid}:{});st.anonymousId||(st.anonymousId=y$1());var ct=v({enable:function(ut,ft){return new Promise(function(_t){vt.dispatch({type:q.enablePlugin,plugins:Ue(ut),_:{originalAction:q.enablePlugin}},_t,[ft])})},disable:function(ut,ft){return new Promise(function(_t){vt.dispatch({type:q.disablePlugin,plugins:Ue(ut),_:{originalAction:q.disablePlugin}},_t,[ft])})}},He.methods),ot=!1,lt={identify:function(ut,ft,_t,Pt){try{var Rt=q$1(ut)?ut:null,Lt=on(ut)?ut:ft,xt=_t||{},Ot=lt.user();f$1(D(k$1),Rt);var At=Rt||Lt.userId||Ge(k$1,lt,Lt);return Promise.resolve(new Promise(function(Tt){vt.dispatch(v({type:q.identifyStart,userId:At,traits:Lt||{},options:xt,anonymousId:Ot.anonymousId},Ot.id&&Ot.id!==Rt&&{previousId:Ot.id}),Tt,[ft,_t,Pt])}))}catch(Tt){return Promise.reject(Tt)}},track:function(ut,ft,_t,Pt){try{var Rt=on(ut)?ut.event:ut;if(!Rt||!q$1(Rt))throw new Error("EventMissing");var Lt=on(ut)?ut:ft||{},xt=on(_t)?_t:{};return Promise.resolve(new Promise(function(Ot){vt.dispatch({type:q.trackStart,event:Rt,properties:Lt,options:xt,userId:Ge(k$1,lt,ft),anonymousId:Ge(T,lt,ft)},Ot,[ft,_t,Pt])}))}catch(Ot){return Promise.reject(Ot)}},page:function(ut,ft,_t){try{var Pt=on(ut)?ut:{},Rt=on(ft)?ft:{};return Promise.resolve(new Promise(function(Lt){vt.dispatch({type:q.pageStart,properties:Oe(Pt),options:Rt,userId:Ge(k$1,lt,Pt),anonymousId:Ge(T,lt,Pt)},Lt,[ut,ft,_t])}))}catch(Lt){return Promise.reject(Lt)}},user:function(ut){if(ut===k$1||ut==="id")return Ge(k$1,lt);if(ut===T||ut==="anonId")return Ge(T,lt);var ft=lt.getState("user");return ut?i$5(ft,ut):ft},reset:function(ut){return new Promise(function(ft){vt.dispatch({type:q.resetStart},ft,ut)})},ready:function(ut){return ot&&ut({plugins:ct,instance:lt}),lt.on(q.ready,function(ft){ut(ft),ot=!0})},on:function(ut,ft){if(!ut||!W$1(ft))return!1;if(ut===q.bootstrap)throw new Error(".on disabled for "+ut);var _t=/Start$|Start:/;if(ut==="*"){var Pt=function(Ot){return function(At){return function(Tt){return Tt.type.match(_t)&&ft({payload:Tt,instance:lt,plugins:Ke}),At(Tt)}}},Rt=function(Ot){return function(At){return function(Tt){return Tt.type.match(_t)||ft({payload:Tt,instance:lt,plugins:Ke}),At(Tt)}}};return Qe(Pt,Ce),Qe(Rt,Re),function(){et(Pt,Ce),et(Rt,Re)}}var Lt=ut.match(_t)?Ce:Re,xt=function(Ot){return function(At){return function(Tt){return Tt.type===ut&&ft({payload:Tt,instance:lt,plugins:Ke,abort:rt}),At(Tt)}}};return Qe(xt,Lt),function(){return et(xt,Lt)}},once:function(ut,ft){if(!ut||!W$1(ft))return!1;if(ut===q.bootstrap)throw new Error(".once disabled for "+ut);var _t=lt.on(ut,function(Pt){ft({payload:Pt.payload,instance:lt,plugins:Ke,abort:rt}),_t()});return _t},getState:function(ut){var ft=vt.getState();return ut?i$5(ft,ut):Object.assign({},ft)},dispatch:function(ut){var ft=q$1(ut)?{type:ut}:ut;if(z.includes(ft.type))throw new Error("reserved action "+ft.type);var _t=v({},ft,{_:v({originalAction:ft.type},ut._||{})});vt.dispatch(_t)},enablePlugin:ct.enable,disablePlugin:ct.disable,plugins:ct,storage:{getItem:Be.getItem,setItem:function(ut,ft,_t){vt.dispatch({type:q.setItemStart,key:ut,value:ft,options:_t})},removeItem:function(ut,ft){vt.dispatch({type:q.removeItemStart,key:ut,options:ft})}},setAnonymousId:function(ut,ft){lt.storage.setItem(A$1,ut,ft)},events:{core:z,plugins:We}},dt=He.middlewares.concat([function(ut){return function(ft){return function(_t){return _t.meta||(_t.meta=Ve()),ft(_t)}}},tt(Ce),se(lt,Ze,{all:Je,plugins:We}),le(Be),C$1(lt),B(lt),tt(Re)]),mt={context:je,user:R(Be),page:_e,track:ve,plugins:de(Ze),queue:be},gt=N$1,wt=N$1;if($$1&&$e.debug){var St=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;St&&(gt=St({trace:!0,traceLimit:25})),wt=function(){return arguments.length===0?Me():on(typeof arguments[0])?qe():qe().apply(null,arguments)}}var bt,ht=function(ut){return Object.keys(ut).reduce(function(ft,_t){return ke.includes(_t)||(ft[_t]=ut[_t]),ft},{})}($e),yt=He.pluginsArray.reduce(function(ut,ft){var _t=ft.name,Pt=ft.config,Rt=ft.loaded,Lt=He.pluginEnabled[_t];return ut[_t]={enabled:Lt,initialized:!!Lt&&!ft.initialize,loaded:!!Rt({config:Pt}),config:Pt},ut},{}),$t={context:ht,user:st,plugins:yt},vt=P(function(ut){for(var ft=Object.keys(ut),_t={},Pt=0;Pt<ft.length;Pt++){var Rt=ft[Pt];typeof ut[Rt]===y&&(_t[Rt]=ut[Rt])}var Lt,xt=Object.keys(_t);try{(function(Ot){Object.keys(Ot).forEach(function(At){var Tt=Ot[At];if(typeof Tt(void 0,{type:"@@redux/INIT"})===b$1||typeof Tt(void 0,{type:I$1})===b$1)throw new Error("reducer "+At+" "+b$1)})})(_t)}catch(Ot){Lt=Ot}return function(Ot,At){if(Ot===void 0&&(Ot={}),Lt)throw Lt;for(var Tt=!1,jt={},Mt=0;Mt<xt.length;Mt++){var Kt=xt[Mt],Wt=Ot[Kt],pt=(0,_t[Kt])(Wt,At);if(typeof pt===b$1){var Et=S(Kt,At);throw new Error(Et)}jt[Kt]=pt,Tt=Tt||pt!==Wt}return Tt?jt:Ot}}(v({},mt,De)),$t,wt(gt(O$1.apply(void 0,dt))));vt.dispatch=(bt=vt.dispatch,function(ut,ft,_t){var Pt=v({},ut,{meta:Ve(ut.meta,ft,Ue(_t))});return bt.apply(null,[Pt])});var Ct=Object.keys(Ke);vt.dispatch({type:q.bootstrap,plugins:Ct,config:ht,params:nt,user:st,initialUser:Fe,persistedUser:at});var kt=Ct.filter(function(ut){return He.pluginEnabled[ut]}),Nt=Ct.filter(function(ut){return!He.pluginEnabled[ut]});return vt.dispatch({type:q.registerPlugins,plugins:Ct,enabled:He.pluginEnabled}),He.pluginsArray.map(function(ut,ft){var _t=ut.bootstrap,Pt=ut.config,Rt=ut.name;_t&&W$1(_t)&&_t({instance:lt,config:Pt,payload:ut}),vt.dispatch({type:q.registerPluginType(Rt),name:Rt,enabled:He.pluginEnabled[Rt],plugin:ut}),He.pluginsArray.length===ft+1&&vt.dispatch({type:q.initializeStart,plugins:kt,disabled:Nt})}),ze(function(ut){vt.dispatch({type:ut?q.offline:q.online})}),function(ut,ft,_t){setInterval(function(){return F$1(ut,ft,_t)},3e3)}(vt,Ze,lt),lt}var Ce="before",Re="after",t="cookie",i$3=a$3(),r$2=d$1,c$2=d$1;function u$2($e){return i$3?d$1($e,"",-1):i$4($e)}function a$3(){if(i$3!==void 0)return i$3;var $e="cookiecookie";try{d$1($e,$e),i$3=document.cookie.indexOf($e)!==-1,u$2($e)}catch{i$3=!1}return i$3}function d$1($e,De,Fe,He,Be,Ge){if(typeof window<"u"){var Ke=arguments.length>1;return i$3===!1&&(Ke?f$1($e,De):a$4($e)),Ke?document.cookie=$e+"="+encodeURIComponent(De)+(Fe?"; expires="+new Date(+new Date+1e3*Fe).toUTCString()+(He?"; path="+He:"")+(Be?"; domain="+Be:"")+(Ge?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+$e+"=")[1]||"").split(";")[0])}}var r$1="localStorage",g=b$2.bind(null,"localStorage");u$3("localStorage","getItem",a$4),u$3("localStorage","setItem",f$1),u$3("localStorage","removeItem",i$4);var a$2="sessionStorage",i$2=b$2.bind(null,"sessionStorage");u$3("sessionStorage","getItem",a$4),u$3("sessionStorage","setItem",f$1),u$3("sessionStorage","removeItem",i$4);function I($e){var De=$e;try{if((De=JSON.parse($e))==="true")return!0;if(De==="false")return!1;if(on(De))return De;parseFloat(De)===De&&(De=parseFloat(De))}catch{}if(De!==null&&De!=="")return De}var k=g(),O=i$2(),x=a$3();function C($e,De){if($e){var Fe=A(De),He=!N(Fe),Be=d(Fe)?I(localStorage.getItem($e)):void 0;if(He&&!I$2(Be))return Be;var Ge=h(Fe)?I(r$2($e)):void 0;if(He&&Ge)return Ge;var Ke=E(Fe)?I(sessionStorage.getItem($e)):void 0;if(He&&Ke)return Ke;var We=a$4($e);return He?We:{localStorage:Be,sessionStorage:Ke,cookie:Ge,global:We}}}function L($e,De,Fe){if($e&&!I$2(De)){var He={},Be=A(Fe),Ge=JSON.stringify(De),Ke=!N(Be);return d(Be)&&(He[r$1]=F(r$1,De,I(localStorage.getItem($e))),localStorage.setItem($e,Ge),Ke)?He[r$1]:h(Be)&&(He[t]=F(t,De,I(r$2($e))),c$2($e,Ge),Ke)?He[t]:E(Be)&&(He[a$2]=F(a$2,De,I(sessionStorage.getItem($e))),sessionStorage.setItem($e,Ge),Ke)?He[a$2]:(He[l$2]=F(l$2,De,a$4($e)),f$1($e,De),Ke?He[l$2]:He)}}function b($e,De){if($e){var Fe=A(De),He=C($e,m$1),Be={};return!I$2(He.localStorage)&&d(Fe)&&(localStorage.removeItem($e),Be[r$1]=He.localStorage),!I$2(He.cookie)&&h(Fe)&&(u$2($e),Be[t]=He.cookie),!I$2(He.sessionStorage)&&E(Fe)&&(sessionStorage.removeItem($e),Be[a$2]=He.sessionStorage),!I$2(He.global)&&G(Fe,l$2)&&(i$4($e),Be[l$2]=He.global),Be}}function A($e){return $e?q$1($e)?$e:$e.storage:b$4}function d($e){return k&&G($e,r$1)}function h($e){return x&&G($e,t)}function E($e){return O&&G($e,a$2)}function N($e){return $e===m$1||$e==="all"}function G($e,De){return $e===b$4||$e===De||N($e)}function F($e,De,Fe){return{location:$e,current:De,previous:Fe}}var J={setItem:L,getItem:C,removeItem:b};function _defineProperty($e,De,Fe){return De in $e?Object.defineProperty($e,De,{value:Fe,enumerable:!0,configurable:!0,writable:!0}):$e[De]=Fe,$e}function ownKeys($e,De){var Fe=Object.keys($e);if(Object.getOwnPropertySymbols){var He=Object.getOwnPropertySymbols($e);De&&(He=He.filter(function(Be){return Object.getOwnPropertyDescriptor($e,Be).enumerable})),Fe.push.apply(Fe,He)}return Fe}function _objectSpread2($e){for(var De=1;De<arguments.length;De++){var Fe=arguments[De]!=null?arguments[De]:{};De%2?ownKeys(Object(Fe),!0).forEach(function(He){_defineProperty($e,He,Fe[He])}):Object.getOwnPropertyDescriptors?Object.defineProperties($e,Object.getOwnPropertyDescriptors(Fe)):ownKeys(Object(Fe)).forEach(function(He){Object.defineProperty($e,He,Object.getOwnPropertyDescriptor(Fe,He))})}return $e}function analyticsLib(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},De={storage:J};return Le(_objectSpread2(_objectSpread2({},De),$e))}function saturated($e,De){De=De||{};var Fe,He,Be=[],Ge=De.max||1/0;function Ke(){clearInterval(Fe),$e(Be.splice(0,Ge)),We()}function We(){Fe=setInterval(Ke,De.interval||1e4)}return We(),{flush:Ke,push:function(Xe){return He=Be.push(Xe),He>=Ge&&Ke(),He},size:function(){return Be.length},end:function(Xe){Xe&&Ke(),clearInterval(Fe)}}}function onRouteChange($e){if(typeof window>"u")return;const{addEventListener:De,history:Fe,location:He}=window;let Be=He.pathname;De("popstate",()=>$e(He.pathname)),["push","replace"].map(Ge=>{const Ke=`${Ge}State`;if(Ke!=="pushState"&&Ke!=="replaceState")return;const We=Fe[Ke];Fe[Ke]=function(...Xe){var Je;const Ze=((Je=Xe[2])==null?void 0:Je.toString())||"",Ye=trimPath(Ze);return Be!==Ye&&(Be=Ye,setTimeout(()=>$e(Ze),0)),We.apply(Fe,Xe)}})}function remove($e,De){const Fe=$e.indexOf(De);return Fe>-1?$e.slice(0,Fe):$e}function trimPath($e){return["#","?"].forEach(De=>$e=remove($e,De)),$e}function routeChangeListener(){onRouteChange(()=>{analytics.page()})}function i$1($e){if($e===void 0&&($e={}),!$$1)return g$1;var De=l$1(),Fe=c$1(),He=o$1(),Be=s(He,De),Ge=s(Fe,De),Ke=[],We=[],Xe=[],Je=He,Ze=Be,Ye=Ge,Qe=Object.keys($e);if(!Qe.length)return g$1;var et=Qe.map(function(rt){return Number(rt)}),tt=b$3(function(){var rt=l$1(),nt=function(ht,yt){return yt.map(function($t){return $t===100?ht-5:ht*($t/100)})}(rt,et),at=c$1(),st=o$1(),ct=s(st,rt),ot=s(at,rt);if(Ze=ct>Ze?ct:Ze,Ye=ot<Ye?ot:Ye,!(Ke.length>=et.length)){var lt=Je===st,dt="up";lt?dt="initial":Je<=st&&(dt="down");var mt=nt,gt=et;(dt==="up"||lt)&&(mt=nt.slice().reverse(),gt=et.slice().reverse());var wt=gt.reduce(function(ht,yt,$t){var vt=mt[$t];return Xe.includes(yt)&&st<=vt&&(Xe=Xe.filter(function(Ct){return Ct!==yt}),ht.singleFunction=yt),dt==="down"&&!Ke.includes(yt)&&st>=vt&&yt>Ge?(We.push(yt),ht.callbacks=ht.callbacks.concat(yt),ht):dt==="up"&&!Ke.includes(yt)&&st<=vt&&yt<=ct?(ht.foundFunc=[yt],ht):(lt&&st>=vt&&ht.foundFunc.length===0&&(ht.foundFunc=[yt]),!We.includes(yt)&&st>=vt&&(We.push(yt),ht.singleFunction?Xe.push(yt):ht.singleFunction=yt),ht)},{foundFunc:[],singleFunction:null,callbacks:[],direction:dt});if(Je=st,dt==="down"&&wt.callbacks&&wt.callbacks.forEach(function(ht){W$1($e[ht])&&($e[ht]({trigger:ht,direction:dt,scrollMin:Ye,scrollMax:Ze,range:[Ye,Ze]}),Ke.push(ht))}),wt.singleFunction){var St=wt.singleFunction,bt=wt.direction;W$1($e[St])&&$e[St]({trigger:St,direction:bt,scrollMin:Ye,scrollMax:Ze,range:[Ye,Ze]}),Ke.push(St)}}},500);return window.addEventListener("scroll",tt),function(){return window.removeEventListener("scroll",tt)}}function c$1(){return $$1?document.body.scrollTop||document.documentElement.scrollTop:0}function u$1(){return $$1?window.innerHeight||document.documentElement.clientHeight:0}function o$1(){return Math.round(c$1()+u$1())}function l$1(){if(!$$1)return 0;var $e=document.body,De=document.documentElement;return Math.max($e.scrollHeight,$e.offsetHeight,De.clientHeight,De.scrollHeight,De.offsetHeight)}function s($e,De){return Math.round($e/De*100)}var i="EventListener";function u($e){return function(De,Fe,He,Be){var Ge=He||g$1,Ke=Be||!1;if(!$$1)return Ge;var We=l(Fe),Xe=l(De,!0);if(!Xe.length)throw new Error("noElements");if(!We.length)throw new Error("noEvent");var Je=[];return function Ze(Ye){Ye&&(Je=[]);for(var Qe=Ye?"add"+i:"remove"+i,et=0;et<Xe.length;et++){var tt=Xe[et];Je[et]=Ye?Ke&&Ke.once?a$1(Ge):Ge:Je[et]||Ge;for(var rt=0;rt<We.length;rt++)tt[Qe]?tt["on"+We[rt]]=Ye?Je[et]:null:tt[Qe](We[rt],Je[et],Ke)}return Ze.bind(null,!Ye)}($e)}}function l($e,De){if(q$1($e))return De?l(document.querySelectorAll($e)):(Fe=$e).split(Fe.indexOf(",")>-1?",":" ").map(function(Ke){return Ke.trim()});var Fe;if(NodeList.prototype.isPrototypeOf($e)){for(var He=[],Be=$e.length>>>0;Be--;)He[Be]=$e[Be];return He}var Ge=Hn($e);return De?Ge.map(function(Ke){return q$1(Ke)?l(Ke,!0):Ke}).flat():Ge}function a$1($e,De){var Fe;return function(){return $e&&(Fe=$e.apply(this,arguments),$e=null),Fe}}var f=u("Event");function p($e,De){return $$1&&W$1(window[$e])?(Fe=window[$e],He=De,(Be=window)===void 0&&(Be=null),W$1(Fe)?function(){Fe.apply(Be,arguments),He.apply(Be,arguments)}:He):window[$e]=De;var Fe,He,Be}p.bind(null,"onerror"),p.bind(null,"onload");var isServer=typeof window>"u",HIDDEN="hidden";function onTabChange($e){if(isServer)return!1;var De=getHiddenProp(),Fe="".concat(De.replace(/[H|h]idden/,""),"visibilitychange"),He=function(){return $e(!!document[De])},Be=function(){return document.addEventListener(Fe,He)};return Be(),function(){return document.removeEventListener(Fe,He),Be}}function getHiddenProp(){var $e=["webkit","moz","ms","o"];return isServer||HIDDEN in document?HIDDEN:$e.reduce(function(De,Fe){var He=Fe+"Hidden";return!De&&He in document?He:De},null)}var o=["mousemove","mousedown","touchmove","touchstart","touchend","keydown"];function r($e,De){De===void 0&&(De={});var Fe=function(Ke,We){var Xe=this,Je=!1;return function(Ze){Je||(Ke.call(Xe,Ze),Je=!0,setTimeout(function(){return Je=!1},We))}}($e,De.throttle||1e4),He=[];function Be(){var Ke=onTabChange(function(We){We||Fe({type:"tabVisible"})});return He=[Ke].concat(o.map(function(We){return f(document,We,Fe)})).concat(f(window,"load",Fe)).concat(f(window,"scroll",Fe,{capture:!0,passive:!0})),Ge}function Ge(){He.map(function(Ke){return Ke()})}return Be(),function(){return Ge(),Be}}function a($e){var De,Fe,He=$e.onIdle,Be=$e.onWakeUp,Ge=$e.onHeartbeat,Ke=$e.timeout,We=Ke===void 0?1e4:Ke,Xe=$e.throttle,Je=Xe===void 0?2e3:Xe,Ze=!1,Ye=!1,Qe=new Date,et=function(){return clearTimeout(De)};function tt(nt){et(),Ge&&!Ze&&Ge(c(Qe),nt),Be&&Ze&&(Ze=!1,Be(c(Fe),nt),Qe=new Date),De=setTimeout(function(){Ze=!0,He&&(Fe=new Date,He(c(Qe),nt))},We)}var rt=r(tt,{throttle:Je});return{disable:function(){Ye=!0,Ze=!1,et();var nt=rt();return function(){return Ye=!1,Qe=new Date,tt({type:"load"}),nt()}},getStatus:function(){return{isIdle:Ze,isDisabled:Ye,active:Ze?0:c(Qe,Ye),idle:Ze?c(Fe,Ye):0}}}}function c($e,De){return De?0:Math.round((new Date-$e)/1e3)}const timeout=5e3;class ElementTracker{constructor(De){Dt(this,"element"),Dt(this,"isInViewport",!1),Dt(this,"isAwake",!1),Dt(this,"isFlushing"),Dt(this,"observer"),Dt(this,"lastEventAt",Date.now()),Dt(this,"registeredView",!1),Dt(this,"viewCallback"),Dt(this,"activeDurationCallback"),Dt(this,"idleDurationCallback"),Dt(this,"scrollCallback"),this.element=De.element,this.viewCallback=De.viewCallback,this.activeDurationCallback=De.activeDurationCallback,this.idleDurationCallback=De.idleDurationCallback,this.scrollCallback=De.scrollCallback,this.observer=new IntersectionObserver(Fe=>{Fe.forEach(He=>{this.handleInViewPort(He.isIntersecting)})},{threshold:0}),this.observer.observe(this.element),a({onIdle:Fe=>this.handleAwake(!1,Fe),onWakeUp:Fe=>this.handleAwake(!0,Fe),timeout}),i$1({25:this.handleScroll.bind(this),50:this.handleScroll.bind(this),75:this.handleScroll.bind(this),90:this.handleScroll.bind(this),100:this.handleScroll.bind(this)})}flush(){this.isFlushing=!0,this.handleAwake(!this.isAwake)}handleInViewPort(De){De?(this.isAwake=!0,this.trackInViewport()):this.handleAwake(!1),this.isInViewport=De}handleAwake(De,Fe=Math.round((Date.now()-this.lastEventAt)/1e3)){this.isAwake=De,this.lastEventAt=De?Date.now()-Fe*timeout:Date.now(),this.isInViewport&&this.trackAwake(De,Fe)}handleScroll(De){this.scrollCallback&&this.scrollCallback(De)}handleVisibilityChange(){this.isAwake=!1;const De=Math.round((Date.now()-this.lastEventAt)/1e3);De>1&&(this.lastEventAt=Date.now(),this.trackAwake(!1,De))}trackAwake(De,Fe){!De&&this.activeDurationCallback&&this.activeDurationCallback(Fe,this.isFlushing,this.lastEventAt),De&&this.idleDurationCallback&&this.idleDurationCallback(Fe,this.isFlushing,this.lastEventAt)}trackInViewport(){this.registeredView||(this.registeredView=!0,this.viewCallback&&this.viewCallback())}}const SESSION_ID_KEY="sesamy_session_id";function getSessionId(){let $e=sessionStorage.getItem(SESSION_ID_KEY);return $e||($e=Math.random().toString(36).slice(2,9),sessionStorage.setItem(SESSION_ID_KEY,$e)),$e}function generateCSSSelector($e){function De(He){return He.id?`#${He.id}`:He.classList.length>0?Array.from(He.classList).map(Be=>`.${Be}`).join(""):null}function Fe(He){const Be=[];let Ge=He;for(;Ge&&Ge!==document.body&&Ge!==document.documentElement;){const Ke=De(Ge);if(Ke){Be.unshift(Ke);break}if(Ge.parentElement){const We=Array.from(Ge.parentElement.children),Xe=We.indexOf(Ge)+1,Je=Ge.tagName.toLowerCase();We.filter(Ze=>Ze.tagName.toLowerCase()===Je).length>1?Be.unshift(`${Je}:nth-child(${Xe})`):Be.unshift(Je)}Ge=Ge.parentElement}return Be.join(" > ")}return Fe($e)}let contentSelectors={article:{selector:"sesamy-article"},image:{selector:"img",attribute:"src"},title:{selector:"h1",attribute:"textContent"},excerpt:{selector:"p",attribute:"textContent"},price:{selector:"sesamy-article",attribute:"price"},currency:{selector:"sesamy-article",attribute:"currency"},url:{selector:"sesamy-article",attribute:"item-src"},id:{selector:"sesamy-article",attribute:"publisher-content-id"},pass:{selector:"sesamy-article",attribute:"pass"}},api;function init$2($e,De){var Fe;contentSelectors={...contentSelectors,...(Fe=$e.content)==null?void 0:Fe.article},api=De}function getElementFromSelector($e,De){const{selector:Fe}=De;return Fe===contentSelectors.article.selector?$e:$e.querySelector(Fe)}function getElementValue($e,De){if($e)return De.attribute?De.attribute==="textContent"?$e.textContent??void 0:$e.getAttribute(De.attribute)??getElementValue($e.parentElement,De):$e.textContent??void 0}function getMetaTag($e){var De,Fe;return((De=document.head.querySelector(`[property~='${$e}'][content]`))==null?void 0:De.content)??((Fe=document.head.querySelector(`[name~='${$e}'][content]`))==null?void 0:Fe.content)}function getPropertyFromHTML({publisherContentId:$e,key:De,defaultValue:Fe=""}){const He=$e?document.body.querySelector(`sesamy-content-data[id='${$e}']`):null;return(He==null?void 0:He.getAttribute(De))||getMetaTag(`sesamy:${De}`)||getMetaTag(`og:${De}`)||getMetaTag(De)||Fe}function listContent(){const $e=document.querySelectorAll(contentSelectors.article.selector);return Array.from($e).map(getContent$1).filter(De=>De!==null)}function getContent$1($e){const De=typeof $e=="string"?document.querySelector($e):$e;if(!De)return null;const Fe={element:De,selector:typeof $e=="string"?$e:generateCSSSelector(De)},He=(Be,Ge,Ke,We)=>{const Xe=getElementFromSelector(De,Ge);if(Xe){const Je=getElementValue(Xe,Ge)||getPropertyFromHTML({publisherContentId:Ke,key:Be});Je!==void 0&&(Fe[Be]=We?We(Je):Je)}};return He("id",contentSelectors.id),He("title",contentSelectors.title,Fe.id),He("excerpt",contentSelectors.excerpt,Fe.id),He("image",contentSelectors.image,Fe.id),He("price",contentSelectors.price,Fe.id,Be=>parseFloat(Be)),He("currency",contentSelectors.currency,Fe.id),He("url",contentSelectors.url,Fe.id),He("pass",contentSelectors.pass,Fe.id),Fe}async function unlockContent($e,De){var Fe;const He=typeof $e=="string"?document.querySelector($e):$e;if(!He)throw new Error("Could not find element");const Be=getContent$1(He);if(!(Be!=null&&Be.url))throw new Error("Could not find content for element");const Ge=await api.entitlements.hasAccess(Be.url||"",((Fe=Be.pass)==null?void 0:Fe.split(","))||[]);if(!Ge)throw new Error("User does not have access to the content");const Ke=await api.entitlements.access(Ge.id);if(!Ke.token)throw new Error("Could not get access token");const We=De||generateCSSSelector(He.parentElement||He);return api.proxy.getContent(Ke.token,Be.url,We)}let flushing=!1,_clientId,_enabled,_endpoint;const visibilityListeners=new Map;function initAnalytics({clientId:$e,enabled:De=!0,environment:Fe}){if(_clientId=$e,_enabled=De,_endpoint=`${getBaseUrl("logs",Fe)}/events`,!_enabled)return;window.addEventListener("beforeunload",()=>{unloadPageListeners.forEach((Be,Ge)=>{Be.bind(Ge)()}),flushQueue()}),window.addEventListener("visibilitychange",()=>{document.visibilityState!=="visible"&&visibilityListeners.forEach((Be,Ge)=>{Be.bind(Ge)()})}),routeChangeListener();const He=new ElementTracker({element:document.body,viewCallback:()=>{analytics.page()},activeDurationCallback:(Be,Ge,Ke)=>{analytics.track("activeDuration",{duration:Be,durationStart:Ke,flushing:Ge})},idleDurationCallback:(Be,Ge,Ke)=>{analytics.track("idleDuration",{duration:Be,durationStart:Ke,flushing:Ge})},scrollCallback:Be=>{analytics.track("scroll",{scroll:Be.scrollMax})}});addUnloadPageListener(document.body,()=>{He.flush()}),addVisibilityListener(document.body,()=>{He.handleVisibilityChange()}),window.addEventListener(Events.AUTHENTICATED,async Be=>{const Ge=Be;await analytics.identify(Ge.detail.sub)}),window.addEventListener(Events.LOGOUT,async()=>{await analytics.track("logout",{}),queue.flush(),await analytics.reset()})}function createMessage($e){return JSON.stringify($e.map(De=>({...De,clientId:_clientId,requestId:Math.random().toString(36).slice(2,9),sessionId:getSessionId(),timestamp:new Date().toISOString(),version,event:De.event,context:{page:{url:window.location.href,title:document.title,referrer:document.referrer,itemSrc:getMetaTag("sesamy:item-src"),publisherContentId:getMetaTag("sesamy:publisher-content-id")},locale:navigator.language,library:name,userAgent:navigator.userAgent,clientId:_clientId}})))}const queue=saturated(async $e=>{if($e.length>0){const De=createMessage($e);flushing?navigator.sendBeacon(_endpoint,De):(await fetch(_endpoint,{method:"POST",body:De,headers:{"Content-Type":"text/plain"}})).ok}},{max:10,interval:3e3});function send($e){var De;if($e.anonymousId)if((De=$e.properties)!=null&&De.flushing){const Fe={...$e};delete Fe.properties.flushing,navigator.sendBeacon(_endpoint,createMessage([Fe]))}else queue.push($e)}const analytics=analyticsLib({app:name,version,plugins:[{name:"custom-analytics-plugin",page:({payload:$e})=>{const{properties:De,anonymousId:Fe,userId:He,event:Be}=$e;send({anonymousId:Fe,userId:He,properties:De,event:Be,type:"page"})},track:({payload:$e})=>{const{properties:De,anonymousId:Fe,userId:He,event:Be}=$e;send({anonymousId:Fe,userId:He,properties:De,event:Be,type:"track"})},identify:({payload:$e})=>{const{properties:De,anonymousId:Fe,userId:He}=$e;send({anonymousId:Fe,userId:He,properties:De,type:"identify"})}}]});function track($e,De){analytics.track($e,De)}function flushQueue(){return flushing=!0,queue.flush()}const unloadPageListeners=new Map;function addUnloadPageListener($e,De){unloadPageListeners.set($e,De)}function addVisibilityListener($e,De){visibilityListeners.set($e,De)}const bannerIds=["AdHeader","AdContainer","AD_Top","homead","ad-lead"];function detectAdblock(){return new Promise($e=>{const De=bannerIds.map(Fe=>{const He=document.createElement("div");return He.innerHTML=" ",He.id=Fe,He.style.position="absolute",document.body.appendChild(He),He});window.setTimeout(()=>{const Fe=!De.every(He=>{const Be=document.querySelector(`#${He.id}`);return Be==null?void 0:Be.offsetParent});De.forEach(He=>He.remove()),$e(Fe)},100)})}function isInAppBrowser(){const $e=navigator.userAgent.toLowerCase(),De=[{name:"Facebook",regex:/fbav|fban/i},{name:"LinkedIn",regex:/linkedin/i},{name:"Instagram",regex:/instagram/i},{name:"Gmail",regex:/gmail/i},{name:"Twitter",regex:/twitter/i},{name:"WeChat",regex:/micromessenger/i},{name:"Line",regex:/line/i},{name:"Snapchat",regex:/snapchat/i},{name:"Pinterest",regex:/pinterest/i},{name:"Kakao",regex:/kakaotalk/i},{name:"Skype",regex:/skype/i},{name:"WhatsApp",regex:/whatsapp/i}];for(const Fe of De)if(Fe.regex.test($e))return{isInAppBrowser:!0,browserName:Fe.name};return/; wv\)/.test($e)?{isInAppBrowser:!0,browserName:"Unknown In-App Browser"}:{isInAppBrowser:!1,browserName:null}}function registerAPI($e){const{autoOnboardProduct:De,cancelContract:Fe,createCheckout:He,deleteTag:Be,deleteTally:Ge,deleteUserMetadata:Ke,generateLink:We,getBill:Xe,getBills:Je,getCheckout:Ze,getContract:Ye,getContracts:Qe,getEntitlement:et,getEntitlementAccess:tt,getEntitlements:rt,getFulfillments:nt,getPaywall:at,getPaymentIssues:st,getProfile:ct,getProduct:ot,getProxyContent:lt,getSubscriptions:dt,getTags:mt,getTally:gt,getTallies:wt,getTransaction:St,getTransactions:bt,getUserMetadata:ht,getVendorSettings:yt,listVendors:$t,hasAccess:vt,isSpotifyLinked:Ct,linkSpotify:kt,listUserMetadata:Nt,openHostedAccountPage:ut,pushTally:ft,setTag:_t,setUserMetadata:Pt,unlinkSpotify:Rt,updateCheckout:Lt,updateProfile:xt}=createApi($e),Ot={analytics:{track},attribution:{get:getAttribution,set:setAttribution},auth:{getUser:ct,isAuthenticated,loginWithRedirect,logout,setToken},bills:{get:Xe,list:Je},browser:{detectAdblock,isInAppBrowser,isIncognito},checkouts:{create:He,get:Ze,update:Lt},clearCache,content:{list:listContent,get:getContent$1,getLanguage,unlock:unlockContent},contracts:{cancel:Fe,get:Ye,list:Qe},entitlements:{access:tt,get:et,hasAccess:vt,list:rt,signedLinks:getSignedLinks},fulfillments:{list:nt},generateLink:We,getPaymentIssues:st,getVersion,log,paywalls:{get:at},products:{autoOnboard:De,get:ot,linkSpotify:kt},profile:{get:ct,isSpotifyLinked:Ct,openHostedAccountPage:ut,unlinkSpotify:Rt,update:xt},proxy:{getContent:lt},subscriptions:{list:dt},tags:{delete:Be,list:mt,set:_t},tallies:{delete:Ge,get:gt,list:wt,push:ft},transactions:{get:St,list:bt},userMetadata:{delete:Ke,get:ht,list:Nt,set:Pt},vendors:{get:yt,list:$t}};return $e.namespace&&(window[$e.namespace]=Ot),Ot}function getVersion(){return version}function gradient($e,De){$e.style.position="relative",$e.style.height="200px",$e.style.overflow="hidden";let Fe=0;const He=Array.from($e.children);for(const Ge of He){const Ke=Ge.offsetHeight;Fe+Ke>200?Ge.remove():Fe+=Ke}const Be=document.createElement("style");Be.innerHTML=`
|
|
58
|
+
${De.selector}::before {
|
|
59
|
+
content: '';
|
|
60
|
+
position: absolute;
|
|
61
|
+
bottom: 0;
|
|
62
|
+
left: 0;
|
|
63
|
+
right: 0;
|
|
64
|
+
height: 200px;
|
|
65
|
+
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
}
|
|
68
|
+
`,document.head.appendChild(Be)}async function fetchContent($e){try{const De=await fetch($e);return De.ok?await De.text():(console.error(`Failed to fetch content from ${$e}: ${De.statusText}`),null)}catch(De){return console.error(`Error fetching content from ${$e}:`,De),null}}async function getContent($e){if($e.contentType==="selector"&&$e.content){const De=document.querySelector($e.content);if(De)return De.innerHTML;console.warn(`Source element for selector '${$e.content}' not found`)}else if($e.contentType==="url"&&$e.content){const De=await fetchContent($e.content);if(De)return De;console.warn(`Failed to fetch content from URL '${$e.content}'`)}else if($e.content)return $e.content;return""}async function insert($e,De){const Fe=De.insertionPoint||"inside",He=await getContent(De);switch(Fe){case"before":$e.insertAdjacentHTML("beforebegin",He);break;case"after":$e.insertAdjacentHTML("afterend",He);break;case"inside":default:$e.innerHTML+=He;break}}async function replace($e,De){const Fe=await getContent(De);$e.innerHTML=Fe}async function wrap($e,De){const Fe=await getContent(De);$e.innerHTML=Fe.replace("${content}",$e.innerHTML)}async function init$1({enabled:$e=!1,rules:De}){if(!$e)return;const Fe=await isAuthenticated(),He=window.location.href;for(const Be of De){const Ge=document.querySelectorAll(Be.selector);if(!(Be.path&&!new RegExp(Be.path).test(He)))for(const Ke of Ge){const We=Ke;if(!(Be.authenticated!==void 0&&Be.authenticated!==Fe))switch(Be.transform){case"insert":await insert(We,Be);break;case"replace":await replace(We,Be);break;case"remove":Ke.remove();break;case"wrap":await wrap(We,Be);break;case"gradient":gradient(We,Be);break;default:console.warn(`Unknown transform type: ${Be.transform}`)}}}}const ACCESS_TOKEN="access_token";function handleTokenFromQuerystring(){const $e=new URLSearchParams(window.location.hash.substring(1)),De=$e.get(ACCESS_TOKEN);if(De){setToken(De);const Fe=new URL(window.location.href);$e.delete(ACCESS_TOKEN),Fe.hash=$e.toString(),window.history.replaceState(null,"",Fe)}}const REFRESH_KEY="sesamy-refresh",DEPRECATED_REFRESH_KEY="force-refetch-entitlements";function handleForceRefreshFromQuerystring(){const $e=new URLSearchParams(window.location.search),De=$e.get(DEPRECATED_REFRESH_KEY),Fe=$e.get(REFRESH_KEY);if(De!==null||Fe!==null){const He=new URL(window.location.href);$e.delete(DEPRECATED_REFRESH_KEY),$e.delete(REFRESH_KEY),He.search=$e.toString(),clearCache(),window.history.replaceState(null,"",He)}}function extractJwt($e){const De=$e.split(".")[1],Fe=atob(De);return JSON.parse(Fe)}function handleSignedLinksFromQuerystring(){var $e,De,Fe,He;const Be=new URLSearchParams(window.location.search),Ge=Be.get("sesamy-token")||Be.get("token");if(!Ge)return;try{const We=extractJwt(Ge),Xe=new Date(We.exp*1e3),Je={id:"",title:($e=We.p)==null?void 0:$e.toString(),sku:(De=We.s)==null?void 0:De.toString(),purchaseOptionsId:(Fe=We.pid)==null?void 0:Fe.toString(),url:(He=We.url)==null?void 0:He.toString(),token:Ge,type:"article",expiresAt:Xe.toISOString(),createdAt:new Date(We.iat).toISOString(),updatedAt:new Date(We.iat).toISOString()};addSignedLink(Je)}catch(We){log(`Failed to extract signed link ${We}`)}const Ke=new URL(window.location.href);Ke.searchParams.delete("ss"),Ke.searchParams.delete("se"),Ke.searchParams.delete("sp"),Ke.searchParams.delete("so"),Ke.searchParams.delete("token"),Ke.searchParams.delete("sesamy-token"),window.history.replaceState(null,"",Ke)}const SESAMY_USER="sesamy-user";async function handleUserFromQuerystring(){var $e;const De=($e=new URLSearchParams(window.location.search).get(SESAMY_USER))==null?void 0:$e.toLowerCase();if(!De)return;const Fe=await getUser();(Fe==null?void 0:Fe.email)!==De?(log(`Current user does not match sesamy user: ${Fe==null?void 0:Fe.email} !== ${De}`),clearCache(),loginWithRedirect({authorizationParams:{email_hint:De,login_hint:De}})):log(`Current user matches sesamy user: ${Fe==null?void 0:Fe.email} === ${De}`);const He=new URL(window.location.href);He.searchParams.delete(SESAMY_USER),window.history.replaceState(null,"",He)}const PURCHASE_KEY="sesamy-purchase";function handlePurchaseFromQuerystring(){const $e=new URLSearchParams(window.location.search),De=$e.get(PURCHASE_KEY);if(De!==null){const Fe=new URL(window.location.href);$e.delete(PURCHASE_KEY),Fe.search=$e.toString(),log(`Purchase ${De}`),triggerEvent(Events.PURCHASE,{itemSrc:De}),clearCache(),window.history.replaceState(null,"",Fe)}}const SESAMY_LOGIN="sesamy-login",SESAMY_LOGIN_LEGACY="sesamy_login";async function handleLoginFromQuerystring(){const $e=new URLSearchParams(window.location.search);if(!($e.get(SESAMY_LOGIN)||$e.get(SESAMY_LOGIN_LEGACY)))return;await isAuthenticated()||loginWithRedirect();const De=new URL(window.location.href);De.searchParams.delete(SESAMY_LOGIN),window.history.replaceState(null,"",De)}const SESAMY_DEBUG="sesamy-debug";async function handleDebugFromQuerystring(){var $e;const De=($e=new URLSearchParams(window.location.search).get(SESAMY_DEBUG))==null?void 0:$e.toLowerCase();if(!De)return;setDebug(De==="true");const Fe=new URL(window.location.href);Fe.searchParams.delete(SESAMY_DEBUG),window.history.replaceState(null,"",Fe)}function getReferrer(){if(!document.referrer.length)return;const $e=new URL(document.referrer);if(!($e.hostname===window.location.hostname||$e.hostname.includes("sesamy")))return document.referrer}async function handleAttribution(){if(!isBrowser())return;const $e=new URLSearchParams(window.location.search),De={utmSource:$e.get("utm_source")??void 0,utmMedium:$e.get("utm_medium")??void 0,utmCampaign:$e.get("utm_campaign")??void 0,utmTerm:$e.get("utm_term")??void 0,utmContent:$e.get("utm_content")??void 0,ref:$e.get("ref")??void 0,referrer:getReferrer()};setAttribution(De)}function handleLoginReload(){sessionStorage.getItem(SESMAY_CONTENT_RELOAD_KEY)==="true"&&(sessionStorage.removeItem(SESMAY_CONTENT_RELOAD_KEY),window.location.search.includes("code=")||(log("Reloading page to get query params in incognito browser"),window.location.reload()))}async function initOtherServices($e,De){log(`Init with config: ${JSON.stringify($e)}`);try{handleLoginReload(),initAnalytics({clientId:$e.clientId,environment:$e.environment,...$e.analytics}),await init$3({clientId:$e.clientId,organization:$e.organization,environment:$e.environment,...$e.auth}),init$2($e,De),$e.transform&&await init$1($e.transform),handleDebugFromQuerystring(),handleAttribution(),handleTokenFromQuerystring(),handleForceRefreshFromQuerystring(),handleSignedLinksFromQuerystring(),await handleLoginFromQuerystring(),await handleUserFromQuerystring(),handlePurchaseFromQuerystring(),triggerEvent(Events.READY,{})}catch(Fe){log(`Failed to init ${Fe.message}`)}}async function init($e){var De;log("Initializing Sesamy");const Fe=((De=$e.api)==null?void 0:De.namespace)||"sesamy";if(isBrowser()&&Fe in window)return log("Sesamy already initialized. This is likely due to a duplicate import"),window[Fe];const He=registerAPI({clientId:$e.clientId,environment:$e.environment,...$e.api});return isBrowser()&&($e.awaitAllServices?await initOtherServices($e,He):initOtherServices($e,He)),He}if(isBrowser()){const $e=document.getElementById("sesamy-js");if($e!=null&&$e.textContent)try{const De=JSON.parse($e.textContent);init(De)}catch(De){console.error("Failed to parse config",De)}}function ContentContainer_wc($e,De){push$6(De,!0);let Fe=prop(De,"item-src",7,""),He=prop(De,"publisher-content-id",7),Be=prop(De,"pass",7,""),Ge=prop(De,"access-level",7,"entitlement"),Ke=prop(De,"lock-mode",7,"embed"),We=prop(De,"locked-content-selector",7);async function Xe(Ye){switch(Ge()){case"public":return!0;case"logged-in":return Ye.auth.isAuthenticated();case"entitlement":default:return Ye.entitlements.hasAccess(Fe(),Be().split(","))}}function Je(){const Ye=new CustomEvent("sesamyUnlocked",{detail:{publisherContentId:He(),itemSrc:Fe()},bubbles:!0,composed:!0});dispatchEvent(Ye)}async function Ze(Ye){const Qe=De.$$host.querySelector('div[slot="content"]');switch(Ke()){case"encode":return atob((Qe==null?void 0:Qe.innerHTML)||"");case"event":return Je(),"";case"proxy":case"signedUrl":return Ye.content.unlock(De.$$host,We());case"embed":default:return(Qe==null?void 0:Qe.innerHTML)||""}}return Base($e,{applyStyles:!1,children:invalid_default_snippet,$$slots:{default:(Ye,Qe)=>{const et=derived(()=>Qe.api);var tt=comment(),rt=first_child(tt);await_block(rt,()=>Xe(get$1(et)),null,(nt,at)=>{var st=comment(),ct=first_child(st);{var ot=dt=>{var mt=comment(),gt=first_child(mt);slot(gt,De,"content",{},wt=>{var St=comment(),bt=first_child(St);await_block(bt,()=>Ze(get$1(et)),null,(ht,yt)=>{var $t=comment(),vt=first_child($t);html$3(vt,()=>get$1(yt),!1,!1),append$1(ht,$t)}),append$1(wt,St)}),append$1(dt,mt)},lt=dt=>{var mt=comment(),gt=first_child(mt);slot(gt,De,"preview",{},null),append$1(dt,mt)};if_block(ct,dt=>{get$1(at)?dt(ot):dt(lt,!1)})}append$1(nt,st)}),append$1(Ye,tt)}}}),pop$1({get"item-src"(){return Fe()},set"item-src"(Ye=""){Fe(Ye),flush_sync()},get"publisher-content-id"(){return He()},set"publisher-content-id"(Ye){He(Ye),flush_sync()},get pass(){return Be()},set pass(Ye=""){Be(Ye),flush_sync()},get"access-level"(){return Ge()},set"access-level"(Ye="entitlement"){Ge(Ye),flush_sync()},get"lock-mode"(){return Ke()},set"lock-mode"(Ye="embed"){Ke(Ye),flush_sync()},get"locked-content-selector"(){return We()},set"locked-content-selector"(Ye){We(Ye),flush_sync()}})}customElements.define("sesamy-content-container-beta",create_custom_element(ContentContainer_wc,{"item-src":{},"publisher-content-id":{},pass:{},"access-level":{},"lock-mode":{},"locked-content-selector":{}},["content","preview"],[],!0)),exports.Avatar=Avatar_wc,exports.ContentContainer=ContentContainer_wc,exports.Login=Login_wc,exports.Paywall=Paywall_wc,exports.RegistrationWall=RegistrationWall_wc,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});
|