@htmlbricks/hb-checkout 0.61.51 → 0.61.52

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/main.iife.js CHANGED
@@ -1,18 +1,5 @@
1
- (function(Pn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Vr=1,Ur=2,Yr=16,Hr=1,Wr=4,Gr=8,Jr=16,Xr=1,Zr=2,Gt="[",Jt="[!",Xt="]",ct={},ue=Symbol(),Kr="http://www.w3.org/1999/xhtml",Rn=!1;var Zt=Array.isArray,Qr=Array.prototype.indexOf,Kt=Array.from,Pt=Object.keys,dt=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,ei=Object.getOwnPropertyDescriptors,ti=Object.prototype,ni=Array.prototype,Nn=Object.getPrototypeOf,An=Object.isExtensible;function Dn(e){for(var t=0;t<e.length;t++)e[t]()}function ri(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const me=2,Qt=4,en=8,ft=16,Fe=32,He=64,On=128,Ce=256,Rt=512,ce=1024,Te=2048,We=4096,Re=8192,Qe=16384,tn=32768,nn=65536,In=1<<17,Ln=1<<18,vt=1<<19,ii=1<<20,rn=1<<21,an=1<<22,et=1<<23,Nt=Symbol("$state"),qn=Symbol("legacy props"),ai=Symbol(""),sn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},jn=3,ht=8;function si(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function oi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function li(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ui(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ci(e){throw new Error("https://svelte.dev/e/effect_orphan")}function di(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function fi(){throw new Error("https://svelte.dev/e/hydration_failed")}function vi(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function hi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function bi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function At(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let A=!1;function _e(e){A=e}let B;function ye(e){if(e===null)throw At(),ct;return B=e}function Ct(){return ye(Ae(B))}function D(e){if(A){if(Ae(B)!==null)throw At(),ct;B=e}}function zn(e=1){if(A){for(var t=e,n=B;t--;)n=Ae(n);B=n}}function on(){for(var e=0,t=B;;){if(t.nodeType===ht){var n=t.data;if(n===Xt){if(e===0)return t;e-=1}else(n===Gt||n===Jt)&&(e+=1)}var r=Ae(t);t.remove(),t=r}}function Fn(e){if(!e||e.nodeType!==ht)throw At(),ct;return e.data}function Bn(e){return e===this.v}function mi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vn(e){return!mi(e,this.v)}let _i=!1,Ne=null;function Dt(e){Ne=e}function Un(e,t=!1,n){Ne={p:Ne,c:null,e:null,s:e,x:null,l:null}}function Yn(e){var t=Ne,n=t.e;if(n!==null){t.e=null;for(var r of n)dr(r)}return e!==void 0&&(t.x=e),Ne=t.p,e??{}}function Hn(){return!0}const yi=new WeakMap;function gi(e){var t=N;if(t===null)return O.f|=et,e;if((t.f&tn)===0){if((t.f&On)===0)throw!t.parent&&e instanceof Error&&Wn(e),e;t.b.error(e)}else ln(e,t)}function ln(e,t){for(;t!==null;){if((t.f&On)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Wn(e),e}function Wn(e){const t=yi.get(e);t&&(dt(e,"message",{value:t.message}),dt(e,"stack",{value:t.stack}))}let Tt=[],un=[];function Gn(){var e=Tt;Tt=[],Dn(e)}function wi(){var e=un;un=[],Dn(e)}function $i(e){Tt.length===0&&queueMicrotask(Gn),Tt.push(e)}function Ei(){Tt.length>0&&Gn(),un.length>0&&wi()}function xi(){const e=N.b;return e===null&&si(),e}function cn(e){var t=me|Te,n=O!==null&&(O.f&me)!==0?O:null;return N===null||n!==null&&(n.f&Ce)!==0?t|=Ce:N.f|=vt,{ctx:Ne,deps:null,effects:null,equals:Bn,f:t,fn:e,reactions:null,rv:0,v:ue,wv:0,parent:n??N,ac:null}}function Ci(e,t){let n=N;n===null&&oi();var r=n.b,i=void 0,s=kt(ue),a=null,o=!O;return Li(()=>{try{var c=e();a&&Promise.resolve(c).catch(()=>{})}catch(v){c=Promise.reject(v)}var u=()=>c;i=a?.then(u,u)??Promise.resolve(c),a=i;var d=se,h=r.is_pending();o&&(r.update_pending_count(1),h||d.increment());const f=(v,b=void 0)=>{a=null,h||d.activate(),b?b!==sn&&(s.f|=et,qt(s,b)):((s.f&et)!==0&&(s.f^=et),qt(s,v)),o&&(r.update_pending_count(-1),h||d.decrement()),Kn()};if(i.then(f,v=>f(null,v||"unknown")),d)return()=>{queueMicrotask(()=>d.neuter())}}),new Promise(c=>{function u(d){function h(){d===i?c(s):u(i)}d.then(h,h)}u(i)})}function Jn(e){const t=cn(e);return t.equals=Vn,t}function Xn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Le(t[n])}}function Ti(e){for(var t=e.parent;t!==null;){if((t.f&me)===0)return t;t=t.parent}return null}function dn(e){var t,n=N;je(Ti(e));try{Xn(e),t=Er(e)}finally{je(n)}return t}function Zn(e){var t=dn(e);if(e.equals(t)||(e.v=t,e.wv=wr()),!st){var n=(Xe||(e.f&Ce)!==0)&&e.deps!==null?We:ce;be(e,n)}}function ki(e,t,n){const r=cn;if(t.length===0){n(e.map(r));return}var i=se,s=N,a=Si(),o=xi();Promise.all(t.map(c=>Ci(c))).then(c=>{i?.activate(),a();try{n([...e.map(r),...c])}catch(u){(s.f&Qe)===0&&ln(u,s)}i?.deactivate(),Kn()}).catch(c=>{o.error(c)})}function Si(){var e=N,t=O,n=Ne,r=se;return function(){je(e),ke(t),Dt(n),r?.activate()}}function Kn(){je(null),ke(null),Dt(null)}const fn=new Set;let se=null,Qn=new Set,Ot=[];function er(){const e=Ot.shift();Ot.length>0&&queueMicrotask(er),e()}let tt=[],It=null,vn=!1,Lt=!1;class nt{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#c=!1;#i=[];#s=[];#a=[];#r=[];#o=[];#d=[];#f=[];skipped_effects=new Set;process(t){tt=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#n===0){this.#v();var n=this.#a,r=this.#r;this.#a=[],this.#r=[],this.#o=[],se=null,nr(n),nr(r),se===null?se=this:fn.delete(this),this.#u?.resolve()}else this.#l(this.#a),this.#l(this.#r),this.#l(this.#o);for(const i of this.#i)_t(i);for(const i of this.#s)_t(i);this.#i=[],this.#s=[]}#h(t){t.f^=ce;for(var n=t.first;n!==null;){var r=n.f,i=(r&(Fe|He))!==0,s=i&&(r&ce)!==0,a=s||(r&Re)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(i)n.f^=ce;else if((r&Qt)!==0)this.#r.push(n);else if((r&ce)===0)if((r&an)!==0){var o=n.b?.is_pending()?this.#s:this.#i;o.push(n)}else jt(n)&&((n.f&ft)!==0&&this.#o.push(n),_t(n));var c=n.first;if(c!==null){n=c;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#l(t){for(const n of t)((n.f&Te)!==0?this.#d:this.#f).push(n),be(n,ce);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){se=this}deactivate(){se=null;for(const t of Qn)if(Qn.delete(t),t(),se!==null)break}neuter(){this.#c=!0}flush(){tt.length>0?tr():this.#v(),se===this&&(this.#n===0&&fn.delete(this),this.deactivate())}#v(){if(!this.#c)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#d)be(t,Te),bt(t);for(const t of this.#f)be(t,We),bt(t);this.#a=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=ri()).promise}static ensure(){if(se===null){const t=se=new nt;fn.add(se),Lt||nt.enqueue(()=>{se===t&&t.flush()})}return se}static enqueue(t){Ot.length===0&&queueMicrotask(er),Ot.unshift(t)}}function rt(e){var t=Lt;Lt=!0;try{for(var n;;){if(Ei(),tt.length===0&&(se?.flush(),tt.length===0))return It=null,n;tr()}}finally{Lt=t}}function tr(){var e=mt;vn=!0;try{var t=0;for(mr(!0);tt.length>0;){var n=nt.ensure();if(t++>1e3){var r,i;Mi()}n.process(tt),Ge.clear()}}finally{vn=!1,mr(e),It=null}}function Mi(){try{di()}catch(e){ln(e,It)}}let it=null;function nr(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Qe|Re))===0&&jt(r)&&(it=[],_t(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?hr(r):r.fn=null),it?.length>0)){Ge.clear();for(const i of it)_t(i);it=[]}}it=null}}function bt(e){for(var t=It=e;t.parent!==null;){t=t.parent;var n=t.f;if(vn&&t===N&&(n&ft)!==0)return;if((n&(He|Fe))!==0){if((n&ce)===0)return;t.f^=ce}}tt.push(t)}const Ge=new Map;function kt(e,t){var n={f:0,v:e,reactions:null,equals:Bn,rv:0,wv:0};return n}function ve(e,t){const n=kt(e);return Fi(n),n}function rr(e,t=!1,n=!0){const r=kt(e);return t||(r.equals=Vn),r}function re(e,t,n=!1){O!==null&&(!qe||(O.f&In)!==0)&&Hn()&&(O.f&(me|ft|an|In))!==0&&!Ve?.includes(e)&&pi();let r=n?at(t):t;return qt(e,r)}function qt(e,t){if(!e.equals(t)){var n=e.v;st?Ge.set(e,t):Ge.set(e,n),e.v=t;var r=nt.ensure();r.capture(e,n),(e.f&me)!==0&&((e.f&Te)!==0&&dn(e),be(e,(e.f&Ce)===0?ce:We)),e.wv=wr(),ir(e,Te),N!==null&&(N.f&ce)!==0&&(N.f&(Fe|He))===0&&(Se===null?Bi([e]):Se.push(e))}return t}function hn(e){re(e,e.v+1)}function ir(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],a=s.f,o=(a&Te)===0;o&&be(s,t),(a&me)!==0?ir(s,We):o&&((a&ft)!==0&&it!==null&&it.push(s),bt(s))}}function at(e){if(typeof e!="object"||e===null||Nt in e)return e;const t=Nn(e);if(t!==ti&&t!==ni)return e;var n=new Map,r=Zt(e),i=ve(0),s=ot,a=o=>{if(ot===s)return o();var c=O,u=ot;ke(null),gr(s);var d=o();return ke(c),gr(u),d};return r&&n.set("length",ve(e.length)),new Proxy(e,{defineProperty(o,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&hi();var d=n.get(c);return d===void 0?d=a(()=>{var h=ve(u.value);return n.set(c,h),h}):re(d,u.value,!0),!0},deleteProperty(o,c){var u=n.get(c);if(u===void 0){if(c in o){const d=a(()=>ve(ue));n.set(c,d),hn(i)}}else re(u,ue),hn(i);return!0},get(o,c,u){if(c===Nt)return e;var d=n.get(c),h=c in o;if(d===void 0&&(!h||Ke(o,c)?.writable)&&(d=a(()=>{var v=at(h?o[c]:ue),b=ve(v);return b}),n.set(c,d)),d!==void 0){var f=j(d);return f===ue?void 0:f}return Reflect.get(o,c,u)},getOwnPropertyDescriptor(o,c){var u=Reflect.getOwnPropertyDescriptor(o,c);if(u&&"value"in u){var d=n.get(c);d&&(u.value=j(d))}else if(u===void 0){var h=n.get(c),f=h?.v;if(h!==void 0&&f!==ue)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(o,c){if(c===Nt)return!0;var u=n.get(c),d=u!==void 0&&u.v!==ue||Reflect.has(o,c);if(u!==void 0||N!==null&&(!d||Ke(o,c)?.writable)){u===void 0&&(u=a(()=>{var f=d?at(o[c]):ue,v=ve(f);return v}),n.set(c,u));var h=j(u);if(h===ue)return!1}return d},set(o,c,u,d){var h=n.get(c),f=c in o;if(r&&c==="length")for(var v=u;v<h.v;v+=1){var b=n.get(v+"");b!==void 0?re(b,ue):v in o&&(b=a(()=>ve(ue)),n.set(v+"",b))}if(h===void 0)(!f||Ke(o,c)?.writable)&&(h=a(()=>ve(void 0)),re(h,at(u)),n.set(c,h));else{f=h.v!==ue;var w=a(()=>at(u));re(h,w)}var C=Reflect.getOwnPropertyDescriptor(o,c);if(C?.set&&C.set.call(d,u),!f){if(r&&typeof c=="string"){var U=n.get("length"),x=Number(c);Number.isInteger(x)&&x>=U.v&&re(U,x+1)}hn(i)}return!0},ownKeys(o){j(i);var c=Reflect.ownKeys(o).filter(h=>{var f=n.get(h);return f===void 0||f.v!==ue});for(var[u,d]of n)d.v!==ue&&!(u in o)&&c.push(u);return c},setPrototypeOf(){bi()}})}var ar,sr,or,lr;function bn(){if(ar===void 0){ar=window,sr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;or=Ke(t,"firstChild").get,lr=Ke(t,"nextSibling").get,An(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),An(n)&&(n.__t=void 0)}}function Be(e=""){return document.createTextNode(e)}function Je(e){return or.call(e)}function Ae(e){return lr.call(e)}function L(e,t){if(!A)return Je(e);var n=Je(B);if(n===null)n=B.appendChild(Be());else if(t&&n.nodeType!==jn){var r=Be();return n?.before(r),ye(r),r}return ye(n),n}function ge(e,t){if(!A){var n=Je(e);return n instanceof Comment&&n.data===""?Ae(n):n}return B}function Z(e,t=1,n=!1){let r=A?B:e;for(var i;t--;)i=r,r=Ae(r);if(!A)return r;if(n&&r?.nodeType!==jn){var s=Be();return r===null?i?.after(s):r.before(s),ye(s),s}return ye(r),r}function ur(e){e.textContent=""}function cr(){return!1}function pn(e){var t=O,n=N;ke(null),je(null);try{return e()}finally{ke(t),je(n)}}function Pi(e){N===null&&O===null&&ci(),O!==null&&(O.f&Ce)!==0&&N===null&&ui(),st&&li()}function Ri(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Ie(e,t,n,r=!0){var i=N;i!==null&&(i.f&Re)!==0&&(e|=Re);var s={ctx:Ne,deps:null,nodes_start:null,nodes_end:null,f:e|Te,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{_t(s),s.f|=tn}catch(c){throw Le(s),c}else t!==null&&bt(s);if(r){var a=s;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&vt)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&Ri(a,i),O!==null&&(O.f&me)!==0&&(e&He)===0)){var o=O;(o.effects??=[]).push(a)}}return s}function Ni(e){const t=Ie(en,null,!1);return be(t,ce),t.teardown=e,t}function Ai(e){Pi();var t=N.f,n=!O&&(t&Fe)!==0&&(t&tn)===0;if(n){var r=Ne;(r.e??=[]).push(e)}else return dr(e)}function dr(e){return Ie(Qt|ii,e,!1)}function Di(e){nt.ensure();const t=Ie(He|vt,e,!0);return()=>{Le(t)}}function Oi(e){nt.ensure();const t=Ie(He|vt,e,!0);return(n={})=>new Promise(r=>{n.outro?_n(t,()=>{Le(t),r(void 0)}):(Le(t),r(void 0))})}function Ii(e){return Ie(Qt,e,!1)}function Li(e){return Ie(an|vt,e,!0)}function qi(e,t=0){return Ie(en|t,e,!0)}function we(e,t=[],n=[]){ki(t,n,r=>{Ie(en,()=>e(...r.map(j)),!0)})}function mn(e,t=0){var n=Ie(ft|t,e,!0);return n}function pt(e,t=!0){return Ie(Fe|vt,e,!0,t)}function fr(e){var t=e.teardown;if(t!==null){const n=st,r=O;_r(!0),ke(null);try{t.call(null)}finally{_r(n),ke(r)}}}function vr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&pn(()=>{i.abort(sn)});var r=n.next;(n.f&He)!==0?n.parent=null:Le(n,t),n=r}}function ji(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Fe)===0&&Le(t),t=n}}function Le(e,t=!0){var n=!1;(t||(e.f&Ln)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(zi(e.nodes_start,e.nodes_end),n=!0),vr(e,t&&!n),zt(e,0),be(e,Qe);var r=e.transitions;if(r!==null)for(const s of r)s.stop();fr(e);var i=e.parent;i!==null&&i.first!==null&&hr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function zi(e,t){for(;e!==null;){var n=e===t?null:Ae(e);e.remove(),e=n}}function hr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function _n(e,t){var n=[];yn(e,n,!0),br(n,()=>{Le(e),t&&t()})}function br(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function yn(e,t,n){if((e.f&Re)===0){if(e.f^=Re,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&nn)!==0||(r.f&Fe)!==0;yn(r,t,s?n:!1),r=i}}}function gn(e){pr(e,!0)}function pr(e,t){if((e.f&Re)!==0){e.f^=Re,(e.f&ce)===0&&(be(e,Te),bt(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&nn)!==0||(n.f&Fe)!==0;pr(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let mt=!1;function mr(e){mt=e}let st=!1;function _r(e){st=e}let O=null,qe=!1;function ke(e){O=e}let N=null;function je(e){N=e}let Ve=null;function Fi(e){O!==null&&(Ve===null?Ve=[e]:Ve.push(e))}let he=null,$e=0,Se=null;function Bi(e){Se=e}let yr=1,St=0,ot=St;function gr(e){ot=e}let Xe=!1;function wr(){return++yr}function jt(e){var t=e.f;if((t&Te)!==0)return!0;if((t&We)!==0){var n=e.deps,r=(t&Ce)!==0;if(n!==null){var i,s,a=(t&Rt)!==0,o=r&&N!==null&&!Xe,c=n.length;if((a||o)&&(N===null||(N.f&Qe)===0)){var u=e,d=u.parent;for(i=0;i<c;i++)s=n[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Rt),o&&d!==null&&(d.f&Ce)===0&&(u.f^=Ce)}for(i=0;i<c;i++)if(s=n[i],jt(s)&&Zn(s),s.wv>e.wv)return!0}(!r||N!==null&&!Xe)&&be(e,ce)}return!1}function $r(e,t,n=!0){var r=e.reactions;if(r!==null&&!Ve?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&me)!==0?$r(s,t,!1):t===s&&(n?be(s,Te):(s.f&ce)!==0&&be(s,We),bt(s))}}function Er(e){var t=he,n=$e,r=Se,i=O,s=Xe,a=Ve,o=Ne,c=qe,u=ot,d=e.f;he=null,$e=0,Se=null,Xe=(d&Ce)!==0&&(qe||!mt||O===null),O=(d&(Fe|He))===0?e:null,Ve=null,Dt(e.ctx),qe=!1,ot=++St,e.ac!==null&&(pn(()=>{e.ac.abort(sn)}),e.ac=null);try{e.f|=rn;var h=e.fn,f=h(),v=e.deps;if(he!==null){var b;if(zt(e,$e),v!==null&&$e>0)for(v.length=$e+he.length,b=0;b<he.length;b++)v[$e+b]=he[b];else e.deps=v=he;if(!Xe||(d&me)!==0&&e.reactions!==null)for(b=$e;b<v.length;b++)(v[b].reactions??=[]).push(e)}else v!==null&&$e<v.length&&(zt(e,$e),v.length=$e);if(Hn()&&Se!==null&&!qe&&v!==null&&(e.f&(me|We|Te))===0)for(b=0;b<Se.length;b++)$r(Se[b],e);return i!==null&&i!==e&&(St++,Se!==null&&(r===null?r=Se:r.push(...Se))),(e.f&et)!==0&&(e.f^=et),f}catch(w){return gi(w)}finally{e.f^=rn,he=t,$e=n,Se=r,O=i,Xe=s,Ve=a,Dt(o),qe=c,ot=u}}function Vi(e,t){let n=t.reactions;if(n!==null){var r=Qr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&me)!==0&&(he===null||!he.includes(t))&&(be(t,We),(t.f&(Ce|Rt))===0&&(t.f^=Rt),Xn(t),zt(t,0))}function zt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Vi(e,n[r])}function _t(e){var t=e.f;if((t&Qe)===0){be(e,ce);var n=N,r=mt;N=e,mt=!0;try{(t&ft)!==0?ji(e):vr(e),fr(e);var i=Er(e);e.teardown=typeof i=="function"?i:null,e.wv=yr;var s;Rn&&_i&&(e.f&Te)!==0&&e.deps}finally{mt=r,N=n}}}function j(e){var t=e.f,n=(t&me)!==0;if(O!==null&&!qe){var r=N!==null&&(N.f&Qe)!==0;if(!r&&!Ve?.includes(e)){var i=O.deps;if((O.f&rn)!==0)e.rv<St&&(e.rv=St,he===null&&i!==null&&i[$e]===e?$e++:he===null?he=[e]:(!Xe||!he.includes(e))&&he.push(e));else{(O.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[O]:s.includes(O)||s.push(O)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&Ce)===0&&(a.f^=Ce)}if(st){if(Ge.has(e))return Ge.get(e);if(n){a=e;var c=a.v;return((a.f&ce)===0&&a.reactions!==null||xr(a))&&(c=dn(a)),Ge.set(a,c),c}}else n&&(a=e,jt(a)&&Zn(a));if((e.f&et)!==0)throw e.v;return e.v}function xr(e){if(e.v===ue)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ge.has(t)||(t.f&me)!==0&&xr(t))return!0;return!1}function Ui(e){var t=qe;try{return qe=!0,e()}finally{qe=t}}const Yi=-7169;function be(e,t){e.f=e.f&Yi|t}const Cr=new Set,wn=new Set;function Hi(e,t,n,r={}){function i(s){if(r.capture||Mt.call(t,s),!s.cancelBubble)return pn(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?$i(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Ft(e,t,n,r,i){var s={capture:r,passive:i},a=Hi(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ni(()=>{t.removeEventListener(e,a,s)})}function Wi(e){for(var t=0;t<e.length;t++)Cr.add(e[t]);for(var n of wn)n(e)}let Tr=null;function Mt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Tr=e;var a=0,o=Tr===e&&e.__root;if(o){var c=i.indexOf(o);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(a=c)}if(s=i[a]||e.target,s!==t){dt(e,"currentTarget",{configurable:!0,get(){return s||n}});var d=O,h=N;ke(null),je(null);try{for(var f,v=[];s!==null;){var b=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+r];if(w!=null&&(!s.disabled||e.target===s))if(Zt(w)){var[C,...U]=w;C.apply(s,[e,...U])}else w.call(s,e)}catch(x){f?v.push(x):f=x}if(e.cancelBubble||b===t||b===null)break;s=b}if(f){for(let x of v)queueMicrotask(()=>{throw x});throw f}}finally{e.__root=t,delete e.currentTarget,ke(d),je(h)}}}let Me;function Gi(){Me=void 0}function Ji(e){let t=null,n=A;var r;if(A){for(t=B,Me===void 0&&(Me=Je(document.head));Me!==null&&(Me.nodeType!==ht||Me.data!==Gt);)Me=Ae(Me);Me===null?_e(!1):Me=ye(Ae(Me))}A||(r=document.head.appendChild(Be()));try{mn(()=>e(r),Ln)}finally{n&&(_e(!0),Me=B,ye(t))}}function Xi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function yt(e,t){var n=N;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function oe(e,t){var n=(t&Xr)!==0,r=(t&Zr)!==0,i,s=!e.startsWith("<!>");return()=>{if(A)return yt(B,null),B;i===void 0&&(i=Xi(s?e:"<!>"+e),n||(i=Je(i)));var a=r||sr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Je(a),c=a.lastChild;yt(o,c)}else yt(a,a);return a}}function gt(){if(A)return yt(B,null),B;var e=document.createDocumentFragment(),t=document.createComment(""),n=Be();return e.append(t,n),yt(t,n),e}function K(e,t){if(A){N.nodes_end=B,Ct();return}e!==null&&e.before(t)}const Zi=["touchstart","touchmove"];function Ki(e){return Zi.includes(e)}function Ze(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function kr(e,t){return Sr(e,t)}function Qi(e,t){bn(),t.intro=t.intro??!1;const n=t.target,r=A,i=B;try{for(var s=Je(n);s&&(s.nodeType!==ht||s.data!==Gt);)s=Ae(s);if(!s)throw ct;_e(!0),ye(s),Ct();const a=Sr(e,{...t,anchor:s});if(B===null||B.nodeType!==ht||B.data!==Xt)throw At(),ct;return _e(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==ct&&console.warn("Failed to hydrate: ",a),t.recover===!1&&fi(),bn(),ur(n),_e(!1),kr(e,t)}finally{_e(r),ye(i),Gi()}}const wt=new Map;function Sr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){bn();var o=new Set,c=h=>{for(var f=0;f<h.length;f++){var v=h[f];if(!o.has(v)){o.add(v);var b=Ki(v);t.addEventListener(v,Mt,{passive:b});var w=wt.get(v);w===void 0?(document.addEventListener(v,Mt,{passive:b}),wt.set(v,1)):wt.set(v,w+1)}}};c(Kt(Cr)),wn.add(c);var u=void 0,d=Oi(()=>{var h=n??t.appendChild(Be());return pt(()=>{if(s){Un({});var f=Ne;f.c=s}i&&(r.$$events=i),A&&yt(h,null),u=e(h,r)||{},A&&(N.nodes_end=B),s&&Yn()}),()=>{for(var f of o){t.removeEventListener(f,Mt);var v=wt.get(f);--v===0?(document.removeEventListener(f,Mt),wt.delete(f)):wt.set(f,v)}wn.delete(c),h!==n&&h.parentNode?.removeChild(h)}});return $n.set(u,d),u}let $n=new WeakMap;function ea(e,t){const n=$n.get(e);return n?($n.delete(e),n(t)):Promise.resolve()}function De(e,t,n=!1){A&&Ct();var r=e,i=null,s=null,a=ue,o=n?nn:0,c=!1;const u=(v,b=!0)=>{c=!0,f(b,v)};var d=null;function h(){d!==null&&(d.lastChild.remove(),r.before(d),d=null);var v=a?i:s,b=a?s:i;v&&gn(v),b&&_n(b,()=>{a?s=null:i=null})}const f=(v,b)=>{if(a===(a=v))return;let w=!1;if(A){const q=Fn(r)===Jt;!!a===q&&(r=on(),ye(r),_e(!1),w=!0)}var C=cr(),U=r;if(C&&(d=document.createDocumentFragment(),d.append(U=Be())),a?i??=b&&pt(()=>b(U)):s??=b&&pt(()=>b(U)),C){var x=se,M=a?i:s,G=a?s:i;M&&x.skipped_effects.delete(M),G&&x.skipped_effects.add(G),x.add_callback(h)}else h();w&&_e(!0)};mn(()=>{c=!1,t(u),c||f(null,null)},o),A&&(r=B)}function ta(e,t,n){for(var r=e.items,i=[],s=t.length,a=0;a<s;a++)yn(t[a].e,i,!0);var o=s>0&&i.length===0&&n!==null;if(o){var c=n.parentNode;ur(c),c.append(n),r.clear(),ze(e,t[0].prev,t[s-1].next)}br(i,()=>{for(var u=0;u<s;u++){var d=t[u];o||(r.delete(d.k),ze(e,d.prev,d.next)),Le(d.e,!o)}})}function na(e,t,n,r,i,s=null){var a=e,o={flags:t,items:new Map,first:null};{var c=e;a=A?ye(Je(c)):c.appendChild(Be())}A&&Ct();var u=null,d=!1,h=new Map,f=Jn(()=>{var C=n();return Zt(C)?C:C==null?[]:Kt(C)}),v,b;function w(){ra(b,v,o,h,a,i,t,r,n),s!==null&&(v.length===0?u?gn(u):u=pt(()=>s(a)):u!==null&&_n(u,()=>{u=null}))}mn(()=>{b??=N,v=j(f);var C=v.length;if(d&&C===0)return;d=C===0;let U=!1;if(A){var x=Fn(a)===Jt;x!==(C===0)&&(a=on(),ye(a),_e(!1),U=!0)}if(A){for(var M=null,G,q=0;q<C;q++){if(B.nodeType===ht&&B.data===Xt){a=B,U=!0,_e(!1);break}var te=v[q],ne=r(te,q);G=En(B,o,M,null,te,ne,q,i,t,n),o.items.set(ne,G),M=G}C>0&&ye(on())}if(A)C===0&&s&&(u=pt(()=>s(a)));else if(cr()){var le=new Set,ae=se;for(q=0;q<C;q+=1){te=v[q],ne=r(te,q);var Y=o.items.get(ne)??h.get(ne);Y?Mr(Y,te,q):(G=En(null,o,null,null,te,ne,q,i,t,n,!0),h.set(ne,G)),le.add(ne)}for(const[P,pe]of o.items)le.has(P)||ae.skipped_effects.add(pe.e);ae.add_callback(w)}else w();U&&_e(!0),j(f)}),A&&(a=B)}function ra(e,t,n,r,i,s,a,o,c){var u=t.length,d=n.items,h=n.first,f=h,v,b=null,w=[],C=[],U,x,M,G;for(G=0;G<u;G+=1){if(U=t[G],x=o(U,G),M=d.get(x),M===void 0){var q=r.get(x);if(q!==void 0){r.delete(x),d.set(x,q);var te=b?b.next:f;ze(n,b,q),ze(n,q,te),xn(q,te,i),b=q}else{var ne=f?f.e.nodes_start:i;b=En(ne,n,b,b===null?n.first:b.next,U,x,G,s,a,c)}d.set(x,b),w=[],C=[],f=b.next;continue}if(Mr(M,U,G),(M.e.f&Re)!==0&&gn(M.e),M!==f){if(v!==void 0&&v.has(M)){if(w.length<C.length){var le=C[0],ae;b=le.prev;var Y=w[0],P=w[w.length-1];for(ae=0;ae<w.length;ae+=1)xn(w[ae],le,i);for(ae=0;ae<C.length;ae+=1)v.delete(C[ae]);ze(n,Y.prev,P.next),ze(n,b,Y),ze(n,P,le),f=le,b=P,G-=1,w=[],C=[]}else v.delete(M),xn(M,f,i),ze(n,M.prev,M.next),ze(n,M,b===null?n.first:b.next),ze(n,b,M),b=M;continue}for(w=[],C=[];f!==null&&f.k!==x;)(f.e.f&Re)===0&&(v??=new Set).add(f),C.push(f),f=f.next;if(f===null)continue;M=f}w.push(M),b=M,f=M.next}if(f!==null||v!==void 0){for(var pe=v===void 0?[]:Kt(v);f!==null;)(f.e.f&Re)===0&&pe.push(f),f=f.next;var I=pe.length;if(I>0){var p=u===0?i:null;ta(n,pe,p)}}e.first=n.first&&n.first.e,e.last=b&&b.e;for(var _ of r.values())Le(_.e);r.clear()}function Mr(e,t,n,r){qt(e.v,t),e.i=n}function En(e,t,n,r,i,s,a,o,c,u,d){var h=(c&Vr)!==0,f=(c&Yr)===0,v=h?f?rr(i,!1,!1):kt(i):i,b=(c&Ur)===0?a:kt(a),w={i:b,v,k:s,a:null,e:null,prev:n,next:r};try{if(e===null){var C=document.createDocumentFragment();C.append(e=Be())}return w.e=pt(()=>o(e,v,b,u),A),w.e.prev=n&&n.e,w.e.next=r&&r.e,n===null?d||(t.first=w):(n.next=w,n.e.next=w.e),r!==null&&(r.prev=w,r.e.prev=w.e),w}finally{}}function xn(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,s=e.e.nodes_start;s!==null&&s!==r;){var a=Ae(s);i.before(s),s=a}}function ze(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function Bt(e,t,n,r,i){A&&Ct();var s=t.$$slots?.[n],a=!1;s===!0&&(s=t[n==="default"?"children":n],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>r:r)}function ia(e,t){Ii(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function aa(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function sa(e,t){return e==null?null:String(e)}function Vt(e,t,n,r,i,s){var a=e.__className;if(A||a!==n||a===void 0){var o=aa(n);(!A||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}function Cn(e,t,n,r){var i=e.__style;if(A||i!==t){var s=sa(t);(!A||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const oa=Symbol("is custom element"),la=Symbol("is html");function ua(e,t,n,r){var i=ca(e);A&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[ai]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Pr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ee(e,t,n){var r=O,i=N;let s=A;A&&_e(!1),ke(null),je(null);try{t!=="style"&&(Tn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Pr(e).includes(t):n&&typeof n=="object")?e[t]=n:ua(e,t,n==null?n:String(n))}finally{ke(r),je(i),s&&_e(!0)}}function ca(e){return e.__attributes??={[oa]:e.nodeName.includes("-"),[la]:e.namespaceURI===Kr}}var Tn=new Map;function Pr(e){var t=e.getAttribute("is")||e.nodeName,n=Tn.get(t);if(n)return n;Tn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ei(i);for(var a in r)r[a].set&&n.push(a);i=Nn(i)}return n}let Ut=!1;function da(e){var t=Ut;try{return Ut=!1,[e(),Ut]}finally{Ut=t}}function $t(e,t,n,r){var i=(n&Gr)!==0,s=(n&Jr)!==0,a=r,o=!0,c=()=>(o&&(o=!1,a=s?Ui(r):r),a),u;if(i){var d=Nt in e||qn in e;u=Ke(e,t)?.set??(d&&t in e?x=>e[t]=x:void 0)}var h,f=!1;i?[h,f]=da(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=c(),u&&(vi(),u(h)));var v;if(v=()=>{var x=e[t];return x===void 0?c():(o=!0,x)},(n&Wr)===0)return v;if(u){var b=e.$$legacy;return(function(x,M){return arguments.length>0?((!M||b||f)&&u(M?v():x),x):v()})}var w=!1,C=((n&Hr)!==0?cn:Jn)(()=>(w=!1,v()));i&&j(C);var U=N;return(function(x,M){if(arguments.length>0){const G=M?j(C):i?at(x):x;return re(C,G),w=!0,a!==void 0&&(a=G),x}return st&&w||(U.f&Qe)!==0?C.v:j(C)})}function fa(e){return new va(e)}class va{#t;#e;constructor(t){var n=new Map,r=(s,a)=>{var o=rr(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return j(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===qn?!0:(j(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return re(n.get(a)??r(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?Qi:kr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&rt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||dt(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{ea(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Rr;typeof HTMLElement=="function"&&(Rr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),K(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ha(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Yt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=fa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Di(()=>{qi(()=>{this.$$r=!0;for(const r of Pt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Yt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Yt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Pt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Yt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ha(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ba(e,t,n,r,i,s){let a=class extends Rr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Pt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Pt(t).forEach(o=>{dt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){c=Yt(o,c,t),this.$$d[o]=c;var u=this.$$c;if(u){var d=Ke(u,o)?.get;d?u[o]=c:u.$set({[o]:c})}}})}),r.forEach(o=>{dt(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}/*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function de(e,t,n,r){var i=arguments.length,s=i<3?t:r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(i<3?a(s):i>3?a(t,n,s):a(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function Ht(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(d){try{u(r.next(d))}catch(h){a(h)}}function c(d){try{u(r.throw(d))}catch(h){a(h)}}function u(d){d.done?s(d.value):i(d.value).then(o,c)}u((r=r.apply(e,[])).next())})}function Nr(e){return e.replace(/[A-Z]+/g,t=>`-${t}`).replace(/^-/,"").toLowerCase()}function lt(e){return function(t,n){const r=Nr(n);t.addObservedAttribute&&t.addObservedAttribute(r),Object.defineProperty(t,n,{get(){return this.getAttribute(r)},set(i){i==null?this.removeAttribute(r):this.setAttribute(r,i),this.notifyPropertyChanged(n)},enumerable:!0,configurable:!0})}}function pa(e){return function(t,n){const r=Nr(n);t.addObservedAttribute&&t.addObservedAttribute(r),Object.defineProperty(t,n,{get(){return this.hasAttribute(r)},set(i){i?this.setAttribute(r,""):this.removeAttribute(r),this.notifyPropertyChanged(n)},enumerable:!0,configurable:!0})}}function kn(e){return function(t,n){Object.defineProperty(t,n,{get(){return this[`$__${n}`]},set(r){this[`$__${n}`]=r,this.notifyPropertyChanged(n)},enumerable:!0,configurable:!0})}}function V(e){return function(t,n){Object.defineProperty(t,e,{get(){return this[n]},set(r){this[n]=r},enumerable:!0,configurable:!1})}}let Sn={};function ma(e){const t=Sn[e];if(t)return t;const n=new Promise((r,i)=>{const s=document.createElement("script");s.src=e,s.async=!0;const a=()=>{r()},o=()=>{c(),delete Sn[e],s.remove(),i(new Error(`Unable to load script ${e}`))};s.addEventListener("load",a),s.addEventListener("error",o),document.body.appendChild(s);function c(){s.removeEventListener("load",a),s.removeEventListener("error",o)}});return Sn[e]=n,n}class _a{constructor(t){this.handleClick=n=>Ht(this,void 0,void 0,function*(){const r=this.config;if(!r)throw new Error("google-pay-button: Missing configuration");const i=this.createLoadPaymentDataRequest(r);try{if(r.onClick&&r.onClick(n),n.defaultPrevented)return;const s=yield this.client.loadPaymentData(i);r.onLoadPaymentData&&r.onLoadPaymentData(s)}catch(s){s.statusCode==="CANCELED"?r.onCancel&&r.onCancel(s):r.onError?r.onError(s):console.error(s)}}),this.options=t}getElement(){return this.element}isGooglePayLoaded(){var t,n;return"google"in(window||global)&&!!(!((n=(t=google==null?void 0:google.payments)===null||t===void 0?void 0:t.api)===null||n===void 0)&&n.PaymentsClient)}mount(t){var n;return Ht(this,void 0,void 0,function*(){if(!this.isGooglePayLoaded())try{yield ma("https://pay.google.com/gp/p/js/pay.js")}catch(r){!((n=this.config)===null||n===void 0)&&n.onError?this.config.onError(r):console.error(r);return}this.element=t,t&&(this.appendStyles(),this.config&&this.updateElement())})}unmount(){this.element=void 0}configure(t){let n;return this.config=t,(!this.oldInvalidationValues||this.isClientInvalidated(t))&&(n=this.updateElement()),this.oldInvalidationValues=this.getInvalidationValues(t),n??Promise.resolve()}createClientOptions(t){const n={environment:t.environment,merchantInfo:this.createMerchantInfo(t)};return(t.onPaymentDataChanged||t.onPaymentAuthorized)&&(n.paymentDataCallbacks={},t.onPaymentDataChanged&&(n.paymentDataCallbacks.onPaymentDataChanged=r=>t.onPaymentDataChanged(r)||{}),t.onPaymentAuthorized&&(n.paymentDataCallbacks.onPaymentAuthorized=r=>t.onPaymentAuthorized(r)||{})),n}createIsReadyToPayRequest(t){const n=t.paymentRequest;return{apiVersion:n.apiVersion,apiVersionMinor:n.apiVersionMinor,allowedPaymentMethods:n.allowedPaymentMethods,existingPaymentMethodRequired:t.existingPaymentMethodRequired}}createLoadPaymentDataRequest(t){return Object.assign(Object.assign({},t.paymentRequest),{merchantInfo:this.createMerchantInfo(t)})}createMerchantInfo(t){const n=Object.assign({},t.paymentRequest.merchantInfo);return n.softwareInfo||(n.softwareInfo={id:this.options.softwareInfoId,version:this.options.softwareInfoVersion}),n}isMounted(){return this.element!=null&&this.element.isConnected!==!1}removeButton(){if(this.element instanceof ShadowRoot||this.element instanceof Element)for(const t of Array.from(this.element.children))t.tagName!=="STYLE"&&t.remove()}updateElement(){return Ht(this,void 0,void 0,function*(){if(!this.isMounted())return;const t=this.getElement();if(!this.config)throw new Error("google-pay-button: Missing configuration");this.removeButton();try{this.client=new google.payments.api.PaymentsClient(this.createClientOptions(this.config))}catch(o){this.config.onError?this.config.onError(o):console.error(o);return}const n={buttonType:this.config.buttonType,buttonColor:this.config.buttonColor,buttonRadius:this.config.buttonRadius,buttonSizeMode:this.config.buttonSizeMode,buttonLocale:this.config.buttonLocale,buttonBorderType:this.config.buttonBorderType,onClick:this.handleClick,allowedPaymentMethods:this.config.paymentRequest.allowedPaymentMethods},r=t.getRootNode();r instanceof ShadowRoot&&(n.buttonRootNode=r);const i=this.client.createButton(n);this.setClassName(t,[t.className,"not-ready"]),t.appendChild(i);let s=!1,a;try{a=yield this.client.isReadyToPay(this.createIsReadyToPayRequest(this.config)),s=a.result&&!this.config.existingPaymentMethodRequired||a.result&&a.paymentMethodPresent&&this.config.existingPaymentMethodRequired||!1}catch(o){this.config.onError?this.config.onError(o):console.error(o)}if(this.isMounted()){if(s){try{this.client.prefetchPaymentData(this.createLoadPaymentDataRequest(this.config))}catch(o){console.log("Error with prefetch",o)}this.setClassName(t,(t.className||"").split(" ").filter(o=>o&&o!=="not-ready"))}if((this.isReadyToPay!==a?.result||this.paymentMethodPresent!==a?.paymentMethodPresent)&&(this.isReadyToPay=!!a?.result,this.paymentMethodPresent=a?.paymentMethodPresent,this.config.onReadyToPayChange)){const o={isButtonVisible:s,isReadyToPay:this.isReadyToPay};this.paymentMethodPresent&&(o.paymentMethodPresent=this.paymentMethodPresent),this.config.onReadyToPayChange(o)}}})}setClassName(t,n){const r=n.filter(i=>i).join(" ");r?t.className=r:t.removeAttribute("class")}appendStyles(){var t,n,r;if(typeof document>"u")return;const i=(t=this.element)===null||t===void 0?void 0:t.getRootNode(),s=`default-google-style-${this.options.cssSelector.replace(/[^\w-]+/g,"")}-${(n=this.config)===null||n===void 0?void 0:n.buttonLocale}`;if(i&&!(!((r=i.getElementById)===null||r===void 0)&&r.call(i,s))){const a=document.createElement("style");a.id=s,a.type="text/css",a.innerHTML=`
1
+ (function(Rn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ur=1,Yr=2,Hr=16,Wr=1,Jr=4,Gr=8,Zr=16,Kr=1,Xr=2,Dn="[",jt="[!",ln="]",_t={},le=Symbol(),Qr="http://www.w3.org/1999/xhtml",In=!1;var On=Array.isArray,ei=Array.prototype.indexOf,un=Array.from,zt=Object.keys,Ft=Object.defineProperty,st=Object.getOwnPropertyDescriptor,ti=Object.getOwnPropertyDescriptors,ni=Object.prototype,ri=Array.prototype,Ln=Object.getPrototypeOf,qn=Object.isExtensible;function ii(t){for(var e=0;e<t.length;e++)t[e]()}function jn(){var t,e,n=new Promise((r,i)=>{t=r,e=i});return{promise:n,resolve:t,reject:e}}const ue=2,Bt=4,cn=8,He=16,We=32,Qe=64,Vt=128,qe=512,ce=1024,ge=2048,Je=4096,$e=8192,et=16384,fn=32768,yt=65536,zn=1<<17,dn=1<<18,at=1<<19,si=1<<20,Pt=32768,hn=1<<21,vn=1<<22,tt=1<<23,Ut=Symbol("$state"),Fn=Symbol("legacy props"),ai=Symbol(""),gt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},bn=3,ot=8;function oi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function li(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ui(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ci(t){throw new Error("https://svelte.dev/e/effect_orphan")}function fi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function di(){throw new Error("https://svelte.dev/e/hydration_failed")}function hi(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function vi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function bi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function mi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Yt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function _i(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let T=!1;function xe(t){T=t}let L;function fe(t){if(t===null)throw Yt(),_t;return L=t}function At(){return fe(Ne(L))}function N(t){if(T){if(Ne(L)!==null)throw Yt(),_t;L=t}}function pn(t=1){if(T){for(var e=t,n=L;e--;)n=Ne(n);L=n}}function Ht(t=!0){for(var e=0,n=L;;){if(n.nodeType===ot){var r=n.data;if(r===ln){if(e===0)return n;e-=1}else(r===Dn||r===jt)&&(e+=1)}var i=Ne(n);t&&n.remove(),n=i}}function Bn(t){if(!t||t.nodeType!==ot)throw Yt(),_t;return t.data}function Vn(t){return t===this.v}function yi(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Un(t){return!yi(t,this.v)}let gi=!1,Pe=null;function wt(t){Pe=t}function Yn(t,e=!1,n){Pe={p:Pe,i:!1,c:null,e:null,s:t,x:null,l:null}}function Hn(t){var e=Pe,n=e.e;if(n!==null){e.e=null;for(var r of n)hr(r)}return t!==void 0&&(e.x=t),e.i=!0,Pe=e.p,t??{}}function Wn(){return!0}let lt=[];function Jn(){var t=lt;lt=[],ii(t)}function Wt(t){if(lt.length===0&&!Nt){var e=lt;queueMicrotask(()=>{e===lt&&Jn()})}lt.push(t)}function wi(){for(;lt.length>0;)Jn()}function Gn(t){var e=I;if(e===null)return R.f|=tt,t;if((e.f&fn)===0){if((e.f&Vt)===0)throw t;e.b.error(t)}else $t(t,e)}function $t(t,e){for(;e!==null;){if((e.f&Vt)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t}const Jt=new Set;let ee=null,Ee=null,Be=[],Gt=null,mn=!1,Nt=!1;class je{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#l=null;#a=[];#o=[];skipped_effects=new Set;is_fork=!1;process(e){Be=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)this.#i(r,n);this.is_fork||this.#u(),this.#r>0||this.is_fork?(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects)):(ee=null,Kn(n.render_effects),Kn(n.effects),this.#l?.resolve()),Ee=null}#i(e,n){e.f^=ce;for(var r=e.first;r!==null;){var i=r.f,s=(i&(We|Qe))!==0,a=s&&(i&ce)!==0,o=a||(i&$e)!==0||this.skipped_effects.has(r);if((r.f&Vt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!o&&r.fn!==null){s?r.f^=ce:(i&Bt)!==0?n.effects.push(r):Ot(r)&&((r.f&He)!==0&&n.block_effects.push(r),Lt(r));var u=r.first;if(u!==null){r=u;continue}}var l=r.parent;for(r=r.next;r===null&&l!==null;)l===n.effect&&(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects),n=n.parent),r=l.next,l=l.parent}}#s(e){for(const n of e)((n.f&ge)!==0?this.#a:this.#o).push(n),ve(n,ce)}capture(e,n){this.previous.has(e)||this.previous.set(e,n),(e.f&tt)===0&&(this.current.set(e,e.v),Ee?.set(e,e.v))}activate(){ee=this,this.apply()}deactivate(){ee=null,Ee=null}flush(){if(this.activate(),Be.length>0){if(Zn(),ee!==null&&ee!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#e)e(this);this.#e.clear()}#u(){if(this.#r===0){for(const e of this.#t)e();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Jt.size>1){this.previous.clear();var e=Ee,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Jt){if(i===this){n=!1;continue}const s=[];for(const[o,u]of this.current){if(i.current.has(o))if(n&&u!==i.current.get(o))i.current.set(o,u);else continue;s.push(o)}if(s.length===0)continue;const a=[...i.current.keys()].filter(o=>!this.current.has(o));if(a.length>0){const o=new Set,u=new Map;for(const l of s)Xn(l,a,o,u);if(Be.length>0){ee=i,i.apply();for(const l of Be)i.#i(l,r);Be=[],i.deactivate()}}}ee=null,Ee=e}this.committed=!0,Jt.delete(this)}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e){this.#n-=1,e&&(this.#r-=1),this.revive()}revive(){for(const e of this.#a)ve(e,ge),ct(e);for(const e of this.#o)ve(e,Je),ct(e);this.#a=[],this.#o=[],this.flush()}oncommit(e){this.#t.add(e)}ondiscard(e){this.#e.add(e)}settled(){return(this.#l??=jn()).promise}static ensure(){if(ee===null){const e=ee=new je;Jt.add(ee),Nt||je.enqueue(()=>{ee===e&&e.flush()})}return ee}static enqueue(e){Wt(e)}apply(){}}function ut(t){var e=Nt;Nt=!0;try{for(var n;;){if(wi(),Be.length===0&&(ee?.flush(),Be.length===0))return Gt=null,n;Zn()}}finally{Nt=e}}function Zn(){var t=ht;mn=!0;try{var e=0;for(wr(!0);Be.length>0;){var n=je.ensure();if(e++>1e3){var r,i;$i()}n.process(Be),nt.clear()}}finally{mn=!1,wr(t),Gt=null}}function $i(){try{fi()}catch(t){$t(t,Gt)}}let Ge=null;function Kn(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(et|$e))===0&&Ot(r)&&(Ge=new Set,Lt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?mr(r):r.fn=null),Ge?.size>0)){nt.clear();for(const i of Ge){if((i.f&(et|$e))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)Ge.has(a)&&(Ge.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];(u.f&(et|$e))===0&&Lt(u)}}Ge.clear()}}Ge=null}}function Xn(t,e,n,r){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const i of t.reactions){const s=i.f;(s&ue)!==0?Xn(i,e,n,r):(s&(vn|He))!==0&&(s&ge)===0&&Qn(i,e,r)&&(ve(i,ge),ct(i))}}function Qn(t,e,n){const r=n.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const i of t.deps){if(e.includes(i))return!0;if((i.f&ue)!==0&&Qn(i,e,n))return n.set(i,!0),!0}return n.set(t,!1),!1}function ct(t){for(var e=Gt=t;e.parent!==null;){e=e.parent;var n=e.f;if(mn&&e===I&&(n&He)!==0&&(n&dn)===0)return;if((n&(Qe|We))!==0){if((n&ce)===0)return;e.f^=ce}}Be.push(e)}function xi(t){let e=0,n=ft(0),r;return()=>{Kt()&&(O(n),vr(()=>(e===0&&(r=Pr(()=>t(()=>Dt(n)))),e+=1,()=>{Wt(()=>{e-=1,e===0&&(r?.(),r=void 0,Dt(n))})})))}}var Ei=yt|at|Vt;function ki(t,e,n){new Ci(t,e,n)}class Ci{parent;#t=!1;#e;#n=T?L:null;#r;#l;#a;#o=null;#i=null;#s=null;#u=null;#c=null;#h=0;#f=0;#v=!1;#d=null;#y=xi(()=>(this.#d=ft(this.#h),()=>{this.#d=null}));constructor(e,n,r){this.#e=e,this.#r=n,this.#l=r,this.parent=I.b,this.#t=!!this.#r.pending,this.#a=Xt(()=>{if(I.b=this,T){const s=this.#n;At(),s.nodeType===ot&&s.data===jt?this.#w():this.#g()}else{var i=this.#m();try{this.#o=Re(()=>r(i))}catch(s){this.error(s)}this.#f>0?this.#p():this.#t=!1}return()=>{this.#c?.remove()}},Ei),T&&(this.#e=L)}#g(){try{this.#o=Re(()=>this.#l(this.#e))}catch(e){this.error(e)}this.#t=!1}#w(){const e=this.#r.pending;e&&(this.#i=Re(()=>e(this.#e)),je.enqueue(()=>{var n=this.#m();this.#o=this.#b(()=>(je.ensure(),Re(()=>this.#l(n)))),this.#f>0?this.#p():(xt(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#m(){var e=this.#e;return this.#t&&(this.#c=Ae(),this.#e.before(this.#c),e=this.#c),e}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#b(e){var n=I,r=R,i=Pe;De(this.#a),he(this.#a),wt(this.#a.ctx);try{return e()}catch(s){return Gn(s),null}finally{De(n),he(r),wt(i)}}#p(){const e=this.#r.pending;this.#o!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#c),gr(this.#o,this.#u)),this.#i===null&&(this.#i=Re(()=>e(this.#e)))}#_(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(e);return}this.#f+=e,this.#f===0&&(this.#t=!1,this.#i&&xt(this.#i,()=>{this.#i=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(e){this.#_(e),this.#h+=e,this.#d&&Rt(this.#d,this.#h)}get_effect_pending(){return this.#y(),O(this.#d)}error(e){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw e;this.#o&&(de(this.#o),this.#o=null),this.#i&&(de(this.#i),this.#i=null),this.#s&&(de(this.#s),this.#s=null),T&&(fe(this.#n),pn(),fe(Ht()));var i=!1,s=!1;const a=()=>{if(i){_i();return}i=!0,s&&mi(),je.ensure(),this.#h=0,this.#s!==null&&xt(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#o=this.#b(()=>(this.#v=!1,Re(()=>this.#l(this.#e)))),this.#f>0?this.#p():this.#t=!1};var o=R;try{he(null),s=!0,n?.(e,a),s=!1}catch(u){$t(u,this.#a&&this.#a.parent)}finally{he(o)}r&&Wt(()=>{this.#s=this.#b(()=>{je.ensure(),this.#v=!0;try{return Re(()=>{r(this.#e,()=>e,()=>a)})}catch(u){return $t(u,this.#a.parent),null}finally{this.#v=!1}})})}}function Si(t,e,n,r){const i=_n;if(n.length===0&&t.length===0){r(e.map(i));return}var s=ee,a=I,o=Ti();function u(){Promise.all(n.map(l=>Mi(l))).then(l=>{o();try{r([...e.map(i),...l])}catch(h){(a.f&et)===0&&$t(h,a)}s?.deactivate(),Zt()}).catch(l=>{$t(l,a)})}t.length>0?Promise.all(t).then(()=>{o();try{return u()}finally{s?.deactivate(),Zt()}}):u()}function Ti(){var t=I,e=R,n=Pe,r=ee;return function(s=!0){De(t),he(e),wt(n),s&&r?.activate()}}function Zt(){De(null),he(null),wt(null)}function _n(t){var e=ue|ge,n=R!==null&&(R.f&ue)!==0?R:null;return I!==null&&(I.f|=at),{ctx:Pe,deps:null,effects:null,equals:Vn,f:e,fn:t,reactions:null,rv:0,v:le,wv:0,parent:n??I,ac:null}}function Mi(t,e){let n=I;n===null&&oi();var r=n.b,i=void 0,s=ft(le),a=!R,o=new Map;return qi(()=>{var u=jn();i=u.promise;try{Promise.resolve(t()).then(u.resolve,u.reject).then(()=>{l===ee&&l.committed&&l.deactivate(),Zt()})}catch(f){u.reject(f),Zt()}var l=ee;if(a){var h=!r.is_pending();r.update_pending_count(1),l.increment(h),o.get(l)?.reject(gt),o.delete(l),o.set(l,u)}const v=(f,d=void 0)=>{if(l.activate(),d)d!==gt&&(s.f|=tt,Rt(s,d));else{(s.f&tt)!==0&&(s.f^=tt),Rt(s,f);for(const[y,E]of o){if(o.delete(y),y===l)break;E.reject(gt)}}a&&(r.update_pending_count(-1),l.decrement(h))};u.promise.then(v,f=>v(null,f||"unknown"))}),dr(()=>{for(const u of o.values())u.reject(gt)}),new Promise(u=>{function l(h){function v(){h===i?u(s):l(i)}h.then(v,v)}l(i)})}function er(t){const e=_n(t);return e.equals=Un,e}function tr(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)de(e[n])}}function Pi(t){for(var e=t.parent;e!==null;){if((e.f&ue)===0)return e;e=e.parent}return null}function yn(t){var e,n=I;De(Pi(t));try{t.f&=~Pt,tr(t),e=Sr(t)}finally{De(n)}return e}function nr(t){var e=yn(t);if(t.equals(e)||(t.v=e,t.wv=kr()),!vt)if(Ee!==null)Kt()&&Ee.set(t,t.v);else{var n=(t.f&qe)===0?Je:ce;ve(t,n)}}let gn=new Set;const nt=new Map;let rr=!1;function ft(t,e){var n={f:0,v:t,reactions:null,equals:Vn,rv:0,wv:0};return n}function _e(t,e){const n=ft(t);return Fi(n),n}function ir(t,e=!1,n=!0){const r=ft(t);return e||(r.equals=Un),r}function X(t,e,n=!1){R!==null&&(!Ue||(R.f&zn)!==0)&&Wn()&&(R.f&(ue|He|vn|zn))!==0&&!Ze?.includes(t)&&pi();let r=n?dt(e):e;return Rt(t,r)}function Rt(t,e){if(!t.equals(e)){var n=t.v;vt?nt.set(t,e):nt.set(t,n),t.v=e;var r=je.ensure();r.capture(t,n),(t.f&ue)!==0&&((t.f&ge)!==0&&yn(t),ve(t,(t.f&qe)!==0?ce:Je)),t.wv=kr(),sr(t,ge),I!==null&&(I.f&ce)!==0&&(I.f&(We|Qe))===0&&(Ie===null?Bi([t]):Ie.push(t)),!r.is_fork&&gn.size>0&&!rr&&Ai()}return e}function Ai(){rr=!1;const t=Array.from(gn);for(const e of t)(e.f&ce)!==0&&ve(e,Je),Ot(e)&&Lt(e);gn.clear()}function Dt(t){X(t,t.v+1)}function sr(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],a=s.f,o=(a&ge)===0;if(o&&ve(s,e),(a&ue)!==0){var u=s;Ee?.delete(u),(a&Pt)===0&&(a&qe&&(s.f|=Pt),sr(u,Je))}else o&&((a&He)!==0&&Ge!==null&&Ge.add(s),ct(s))}}function dt(t){if(typeof t!="object"||t===null||Ut in t)return t;const e=Ln(t);if(e!==ni&&e!==ri)return t;var n=new Map,r=On(t),i=_e(0),s=bt,a=o=>{if(bt===s)return o();var u=R,l=bt;he(null),Er(s);var h=o();return he(u),Er(l),h};return r&&n.set("length",_e(t.length)),new Proxy(t,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&vi();var h=n.get(u);return h===void 0?h=a(()=>{var v=_e(l.value);return n.set(u,v),v}):X(h,l.value,!0),!0},deleteProperty(o,u){var l=n.get(u);if(l===void 0){if(u in o){const h=a(()=>_e(le));n.set(u,h),Dt(i)}}else X(l,le),Dt(i);return!0},get(o,u,l){if(u===Ut)return t;var h=n.get(u),v=u in o;if(h===void 0&&(!v||st(o,u)?.writable)&&(h=a(()=>{var d=dt(v?o[u]:le),y=_e(d);return y}),n.set(u,h)),h!==void 0){var f=O(h);return f===le?void 0:f}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var l=Reflect.getOwnPropertyDescriptor(o,u);if(l&&"value"in l){var h=n.get(u);h&&(l.value=O(h))}else if(l===void 0){var v=n.get(u),f=v?.v;if(v!==void 0&&f!==le)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return l},has(o,u){if(u===Ut)return!0;var l=n.get(u),h=l!==void 0&&l.v!==le||Reflect.has(o,u);if(l!==void 0||I!==null&&(!h||st(o,u)?.writable)){l===void 0&&(l=a(()=>{var f=h?dt(o[u]):le,d=_e(f);return d}),n.set(u,l));var v=O(l);if(v===le)return!1}return h},set(o,u,l,h){var v=n.get(u),f=u in o;if(r&&u==="length")for(var d=l;d<v.v;d+=1){var y=n.get(d+"");y!==void 0?X(y,le):d in o&&(y=a(()=>_e(le)),n.set(d+"",y))}if(v===void 0)(!f||st(o,u)?.writable)&&(v=a(()=>_e(void 0)),X(v,dt(l)),n.set(u,v));else{f=v.v!==le;var E=a(()=>dt(l));X(v,E)}var C=Reflect.getOwnPropertyDescriptor(o,u);if(C?.set&&C.set.call(h,l),!f){if(r&&typeof u=="string"){var oe=n.get("length"),q=Number(u);Number.isInteger(q)&&q>=oe.v&&X(oe,q+1)}Dt(i)}return!0},ownKeys(o){O(i);var u=Reflect.ownKeys(o).filter(v=>{var f=n.get(v);return f===void 0||f.v!==le});for(var[l,h]of n)h.v!==le&&!(l in o)&&u.push(l);return u},setPrototypeOf(){bi()}})}var ar,or,lr,ur;function wn(){if(ar===void 0){ar=window,or=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;lr=st(e,"firstChild").get,ur=st(e,"nextSibling").get,qn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),qn(n)&&(n.__t=void 0)}}function Ae(t=""){return document.createTextNode(t)}function rt(t){return lr.call(t)}function Ne(t){return ur.call(t)}function D(t,e){if(!T)return rt(t);var n=rt(L);if(n===null)n=L.appendChild(Ae());else if(e&&n.nodeType!==bn){var r=Ae();return n?.before(r),fe(r),r}return fe(n),n}function ke(t,e=!1){if(!T){var n=rt(t);return n instanceof Comment&&n.data===""?Ne(n):n}if(e&&L?.nodeType!==bn){var r=Ae();return L?.before(r),fe(r),r}return L}function J(t,e=1,n=!1){let r=T?L:t;for(var i;e--;)i=r,r=Ne(r);if(!T)return r;if(n&&r?.nodeType!==bn){var s=Ae();return r===null?i?.after(s):r.before(s),fe(s),s}return fe(r),r}function cr(t){t.textContent=""}function fr(){return!1}function $n(t){var e=R,n=I;he(null),De(null);try{return t()}finally{he(e),De(n)}}function Ni(t){I===null&&(R===null&&ci(),ui()),vt&&li()}function Ri(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Ve(t,e,n,r=!0){var i=I;i!==null&&(i.f&$e)!==0&&(t|=$e);var s={ctx:Pe,deps:null,nodes_start:null,nodes_end:null,f:t|ge|qe,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Lt(s),s.f|=fn}catch(u){throw de(s),u}else e!==null&&ct(s);if(r){var a=s;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&at)===0&&(a=a.first,(t&He)!==0&&(t&yt)!==0&&a!==null&&(a.f|=yt)),a!==null&&(a.parent=i,i!==null&&Ri(a,i),R!==null&&(R.f&ue)!==0&&(t&Qe)===0)){var o=R;(o.effects??=[]).push(a)}}return s}function Kt(){return R!==null&&!Ue}function dr(t){const e=Ve(cn,null,!1);return ve(e,ce),e.teardown=t,e}function Di(t){Ni();var e=I.f,n=!R&&(e&We)!==0&&(e&fn)===0;if(n){var r=Pe;(r.e??=[]).push(t)}else return hr(t)}function hr(t){return Ve(Bt|si,t,!1)}function Ii(t){je.ensure();const e=Ve(Qe|at,t,!0);return()=>{de(e)}}function Oi(t){je.ensure();const e=Ve(Qe|at,t,!0);return(n={})=>new Promise(r=>{n.outro?xt(e,()=>{de(e),r(void 0)}):(de(e),r(void 0))})}function Li(t){return Ve(Bt,t,!1)}function qi(t){return Ve(vn|at,t,!0)}function vr(t,e=0){return Ve(cn|e,t,!0)}function Ce(t,e=[],n=[],r=[],i=!1){Si(r,e,n,s=>{Ve(i?Bt:cn,()=>t(...s.map(O)),!0)})}function Xt(t,e=0){var n=Ve(He|e,t,!0);return n}function Re(t,e=!0){return Ve(We|at,t,!0,e)}function br(t){var e=t.teardown;if(e!==null){const n=vt,r=R;$r(!0),he(null);try{e.call(null)}finally{$r(n),he(r)}}}function pr(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&$n(()=>{i.abort(gt)});var r=n.next;(n.f&Qe)!==0?n.parent=null:de(n,e),n=r}}function ji(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&We)===0&&de(e),e=n}}function de(t,e=!0){var n=!1;(e||(t.f&dn)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(zi(t.nodes_start,t.nodes_end),n=!0),pr(t,e&&!n),Qt(t,0),ve(t,et);var r=t.transitions;if(r!==null)for(const s of r)s.stop();br(t);var i=t.parent;i!==null&&i.first!==null&&mr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function zi(t,e){for(;t!==null;){var n=t===e?null:Ne(t);t.remove(),t=n}}function mr(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function xt(t,e,n=!0){var r=[];xn(t,r,!0),_r(r,()=>{n&&de(t),e&&e()})}function _r(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function xn(t,e,n){if((t.f&$e)===0){if(t.f^=$e,t.transitions!==null)for(const a of t.transitions)(a.is_global||n)&&e.push(a);for(var r=t.first;r!==null;){var i=r.next,s=(r.f&yt)!==0||(r.f&We)!==0&&(t.f&He)!==0;xn(r,e,s?n:!1),r=i}}}function En(t){yr(t,!0)}function yr(t,e){if((t.f&$e)!==0){t.f^=$e,(t.f&ce)===0&&(ve(t,ge),ct(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&yt)!==0||(n.f&We)!==0;yr(n,i?e:!1),n=r}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}function gr(t,e){for(var n=t.nodes_start,r=t.nodes_end;n!==null;){var i=n===r?null:Ne(n);e.append(n),n=i}}let ht=!1;function wr(t){ht=t}let vt=!1;function $r(t){vt=t}let R=null,Ue=!1;function he(t){R=t}let I=null;function De(t){I=t}let Ze=null;function Fi(t){R!==null&&(Ze===null?Ze=[t]:Ze.push(t))}let ye=null,Se=0,Ie=null;function Bi(t){Ie=t}let xr=1,It=0,bt=It;function Er(t){bt=t}function kr(){return++xr}function Ot(t){var e=t.f;if((e&ge)!==0)return!0;if(e&ue&&(t.f&=~Pt),(e&Je)!==0){var n=t.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(Ot(s)&&nr(s),s.wv>t.wv)return!0}(e&qe)!==0&&Ee===null&&ve(t,ce)}return!1}function Cr(t,e,n=!0){var r=t.reactions;if(r!==null&&!Ze?.includes(t))for(var i=0;i<r.length;i++){var s=r[i];(s.f&ue)!==0?Cr(s,e,!1):e===s&&(n?ve(s,ge):(s.f&ce)!==0&&ve(s,Je),ct(s))}}function Sr(t){var e=ye,n=Se,r=Ie,i=R,s=Ze,a=Pe,o=Ue,u=bt,l=t.f;ye=null,Se=0,Ie=null,R=(l&(We|Qe))===0?t:null,Ze=null,wt(t.ctx),Ue=!1,bt=++It,t.ac!==null&&($n(()=>{t.ac.abort(gt)}),t.ac=null);try{t.f|=hn;var h=t.fn,v=h(),f=t.deps;if(ye!==null){var d;if(Qt(t,Se),f!==null&&Se>0)for(f.length=Se+ye.length,d=0;d<ye.length;d++)f[Se+d]=ye[d];else t.deps=f=ye;if(ht&&Kt()&&(t.f&qe)!==0)for(d=Se;d<f.length;d++)(f[d].reactions??=[]).push(t)}else f!==null&&Se<f.length&&(Qt(t,Se),f.length=Se);if(Wn()&&Ie!==null&&!Ue&&f!==null&&(t.f&(ue|Je|ge))===0)for(d=0;d<Ie.length;d++)Cr(Ie[d],t);return i!==null&&i!==t&&(It++,Ie!==null&&(r===null?r=Ie:r.push(...Ie))),(t.f&tt)!==0&&(t.f^=tt),v}catch(y){return Gn(y)}finally{t.f^=hn,ye=e,Se=n,Ie=r,R=i,Ze=s,wt(a),Ue=o,bt=u}}function Vi(t,e){let n=e.reactions;if(n!==null){var r=ei.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(e.f&ue)!==0&&(ye===null||!ye.includes(e))&&(ve(e,Je),(e.f&qe)!==0&&(e.f^=qe,e.f&=~Pt),tr(e),Qt(e,0))}function Qt(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)Vi(t,n[r])}function Lt(t){var e=t.f;if((e&et)===0){ve(t,ce);var n=I,r=ht;I=t,ht=!0;try{(e&He)!==0?ji(t):pr(t),br(t);var i=Sr(t);t.teardown=typeof i=="function"?i:null,t.wv=xr;var s;In&&gi&&(t.f&ge)!==0&&t.deps}finally{ht=r,I=n}}}function O(t){var e=t.f,n=(e&ue)!==0;if(R!==null&&!Ue){var r=I!==null&&(I.f&et)!==0;if(!r&&!Ze?.includes(t)){var i=R.deps;if((R.f&hn)!==0)t.rv<It&&(t.rv=It,ye===null&&i!==null&&i[Se]===t?Se++:ye===null?ye=[t]:ye.includes(t)||ye.push(t));else{(R.deps??=[]).push(t);var s=t.reactions;s===null?t.reactions=[R]:s.includes(R)||s.push(R)}}}if(vt){if(nt.has(t))return nt.get(t);if(n){var a=t,o=a.v;return((a.f&ce)===0&&a.reactions!==null||Mr(a))&&(o=yn(a)),nt.set(a,o),o}}else if(n){if(a=t,Ee?.has(a))return Ee.get(a);Ot(a)&&nr(a),ht&&Kt()&&(a.f&qe)===0&&Tr(a)}else if(Ee?.has(t))return Ee.get(t);if((t.f&tt)!==0)throw t.v;return t.v}function Tr(t){if(t.deps!==null){t.f^=qe;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&ue)!==0&&(e.f&qe)===0&&Tr(e)}}function Mr(t){if(t.v===le)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(nt.has(e)||(e.f&ue)!==0&&Mr(e))return!0;return!1}function Pr(t){var e=Ue;try{return Ue=!0,t()}finally{Ue=e}}const Ui=-7169;function ve(t,e){t.f=t.f&Ui|e}const Ar=new Set,kn=new Set;function Yi(t,e,n,r={}){function i(s){if(r.capture||qt.call(e,s),!s.cancelBubble)return $n(()=>n?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Wt(()=>{e.addEventListener(t,i,r)}):e.addEventListener(t,i,r),i}function en(t,e,n,r,i){var s={capture:r,passive:i},a=Yi(t,e,n,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&dr(()=>{e.removeEventListener(t,a,s)})}function Hi(t){for(var e=0;e<t.length;e++)Ar.add(t[e]);for(var n of kn)n(t)}let Nr=null;function qt(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;Nr=t;var a=0,o=Nr===t&&t.__root;if(o){var u=i.indexOf(o);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var l=i.indexOf(e);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||t.target,s!==e){Ft(t,"currentTarget",{configurable:!0,get(){return s||n}});var h=R,v=I;he(null),De(null);try{for(var f,d=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var E=s["__"+r];E!=null&&(!s.disabled||t.target===s)&&E.call(s,t)}catch(C){f?d.push(C):f=C}if(t.cancelBubble||y===e||y===null)break;s=y}if(f){for(let C of d)queueMicrotask(()=>{throw C});throw f}}finally{t.__root=e,delete t.currentTarget,he(h),De(v)}}}function Wi(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Et(t,e){var n=I;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function se(t,e){var n=(e&Kr)!==0,r=(e&Xr)!==0,i,s=!t.startsWith("<!>");return()=>{if(T)return Et(L,null),L;i===void 0&&(i=Wi(s?t:"<!>"+t),n||(i=rt(i)));var a=r||or?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=rt(a),u=a.lastChild;Et(o,u)}else Et(a,a);return a}}function kt(){if(T)return Et(L,null),L;var t=document.createDocumentFragment(),e=document.createComment(""),n=Ae();return t.append(e,n),Et(e,n),t}function G(t,e){if(T){I.nodes_end=L,At();return}t!==null&&t.before(e)}const Ji=["touchstart","touchmove"];function Gi(t){return Ji.includes(t)}function it(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function Rr(t,e){return Dr(t,e)}function Zi(t,e){wn(),e.intro=e.intro??!1;const n=e.target,r=T,i=L;try{for(var s=rt(n);s&&(s.nodeType!==ot||s.data!==Dn);)s=Ne(s);if(!s)throw _t;xe(!0),fe(s);const a=Dr(t,{...e,anchor:s});return xe(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==_t&&console.warn("Failed to hydrate: ",a),e.recover===!1&&di(),wn(),cr(n),xe(!1),Rr(t,e)}finally{xe(r),fe(i)}}const Ct=new Map;function Dr(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:a=!0}){wn();var o=new Set,u=v=>{for(var f=0;f<v.length;f++){var d=v[f];if(!o.has(d)){o.add(d);var y=Gi(d);e.addEventListener(d,qt,{passive:y});var E=Ct.get(d);E===void 0?(document.addEventListener(d,qt,{passive:y}),Ct.set(d,1)):Ct.set(d,E+1)}}};u(un(Ar)),kn.add(u);var l=void 0,h=Oi(()=>{var v=n??e.appendChild(Ae());return ki(v,{pending:()=>{}},f=>{if(s){Yn({});var d=Pe;d.c=s}if(i&&(r.$$events=i),T&&Et(f,null),l=t(f,r)||{},T&&(I.nodes_end=L,L===null||L.nodeType!==ot||L.data!==ln))throw Yt(),_t;s&&Hn()}),()=>{for(var f of o){e.removeEventListener(f,qt);var d=Ct.get(f);--d===0?(document.removeEventListener(f,qt),Ct.delete(f)):Ct.set(f,d)}kn.delete(u),v!==n&&v.parentNode?.removeChild(v)}});return Cn.set(l,h),l}let Cn=new WeakMap;function Ki(t,e){const n=Cn.get(t);return n?(Cn.delete(t),n(e)):Promise.resolve()}class Xi{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(e,n=!0){this.anchor=e,this.#r=n}#l=()=>{var e=ee;if(this.#t.has(e)){var n=this.#t.get(e),r=this.#e.get(n);if(r)En(r);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===e)break;const o=this.#n.get(a);o&&(de(o.effect),this.#n.delete(a))}for(const[s,a]of this.#e){if(s===n)continue;const o=()=>{if(Array.from(this.#t.values()).includes(s)){var l=document.createDocumentFragment();gr(a,l),l.append(Ae()),this.#n.set(s,{effect:a,fragment:l})}else de(a);this.#e.delete(s)};this.#r||!r?xt(a,o,!1):o()}}};#a=e=>{this.#t.delete(e);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(de(i.effect),this.#n.delete(r))};ensure(e,n){var r=ee,i=fr();if(n&&!this.#e.has(e)&&!this.#n.has(e))if(i){var s=document.createDocumentFragment(),a=Ae();s.append(a),this.#n.set(e,{effect:Re(()=>n(a)),fragment:s})}else this.#e.set(e,Re(()=>n(this.anchor)));if(this.#t.set(r,e),i){for(const[o,u]of this.#e)o===e?r.skipped_effects.delete(u):r.skipped_effects.add(u);for(const[o,u]of this.#n)o===e?r.skipped_effects.delete(u.effect):r.skipped_effects.add(u.effect);r.oncommit(this.#l),r.ondiscard(this.#a)}else T&&(this.anchor=L),this.#l()}}function ze(t,e,n=!1){T&&At();var r=new Xi(t),i=n?yt:0;function s(a,o){if(T){const l=Bn(t)===jt;if(a===l){var u=Ht();fe(u),r.anchor=u,xe(!1),r.ensure(a,o),xe(!0);return}}r.ensure(a,o)}Xt(()=>{var a=!1;e((o,u=!0)=>{a=!0,s(u,o)}),a||s(!1,null)},i)}function Qi(t,e,n){for(var r=t.items,i=[],s=e.length,a=0;a<s;a++)xn(e[a].e,i,!0);var o=s>0&&i.length===0&&n!==null;if(o){var u=n.parentNode;cr(u),u.append(n),r.clear(),Ye(t,e[0].prev,e[s-1].next)}_r(i,()=>{for(var l=0;l<s;l++){var h=e[l];o||(r.delete(h.k),Ye(t,h.prev,h.next)),de(h.e,!o)}})}function es(t,e,n,r,i,s=null){var a=t,o={flags:e,items:new Map,first:null};{var u=t;a=T?fe(rt(u)):u.appendChild(Ae())}T&&At();var l=null,h=!1,v=new Map,f=er(()=>{var C=n();return On(C)?C:C==null?[]:un(C)}),d,y;function E(){ts(y,d,o,v,a,i,e,r,n),s!==null&&(d.length===0?l?En(l):l=Re(()=>s(a)):l!==null&&xt(l,()=>{l=null}))}Xt(()=>{y??=I,d=O(f);var C=d.length;if(h&&C===0)return;h=C===0;let oe=!1;if(T){var q=Bn(a)===jt;q!==(C===0)&&(a=Ht(),fe(a),xe(!1),oe=!0)}if(T){for(var j=null,Z,Y=0;Y<C;Y++){if(L.nodeType===ot&&L.data===ln){a=L,oe=!0,xe(!1);break}var re=d[Y],me=r(re,Y);Z=Sn(L,o,j,null,re,me,Y,i,e,n),o.items.set(me,Z),j=Z}C>0&&fe(Ht())}if(T)C===0&&s&&(l=Re(()=>s(a)));else if(fr()){var we=new Set,te=ee;for(Y=0;Y<C;Y+=1){re=d[Y],me=r(re,Y);var H=o.items.get(me)??v.get(me);H?Ir(H,re,Y):(Z=Sn(null,o,null,null,re,me,Y,i,e,n,!0),v.set(me,Z)),we.add(me)}for(const[A,Oe]of o.items)we.has(A)||te.skipped_effects.add(Oe.e);te.oncommit(E)}else E();oe&&xe(!0),O(f)}),T&&(a=L)}function ts(t,e,n,r,i,s,a,o,u){var l=e.length,h=n.items,v=n.first,f=v,d,y=null,E=[],C=[],oe,q,j,Z;for(Z=0;Z<l;Z+=1){if(oe=e[Z],q=o(oe,Z),j=h.get(q),j===void 0){var Y=r.get(q);if(Y!==void 0){r.delete(q),h.set(q,Y);var re=y?y.next:f;Ye(n,y,Y),Ye(n,Y,re),Tn(Y,re,i),y=Y}else{var me=f?f.e.nodes_start:i;y=Sn(me,n,y,y===null?n.first:y.next,oe,q,Z,s,a,u)}h.set(q,y),E=[],C=[],f=y.next;continue}if(Ir(j,oe,Z),(j.e.f&$e)!==0&&En(j.e),j!==f){if(d!==void 0&&d.has(j)){if(E.length<C.length){var we=C[0],te;y=we.prev;var H=E[0],A=E[E.length-1];for(te=0;te<E.length;te+=1)Tn(E[te],we,i);for(te=0;te<C.length;te+=1)d.delete(C[te]);Ye(n,H.prev,A.next),Ye(n,y,H),Ye(n,A,we),f=we,y=A,Z-=1,E=[],C=[]}else d.delete(j),Tn(j,f,i),Ye(n,j.prev,j.next),Ye(n,j,y===null?n.first:y.next),Ye(n,y,j),y=j;continue}for(E=[],C=[];f!==null&&f.k!==q;)(f.e.f&$e)===0&&(d??=new Set).add(f),C.push(f),f=f.next;if(f===null)continue;j=f}E.push(j),y=j,f=j.next}if(f!==null||d!==void 0){for(var Oe=d===void 0?[]:un(d);f!==null;)(f.e.f&$e)===0&&Oe.push(f),f=f.next;var Tt=Oe.length;if(Tt>0){var $=l===0?i:null;Qi(n,Oe,$)}}t.first=n.first&&n.first.e,t.last=y&&y.e;for(var p of r.values())de(p.e);r.clear()}function Ir(t,e,n,r){Rt(t.v,e),t.i=n}function Sn(t,e,n,r,i,s,a,o,u,l,h){var v=(u&Ur)!==0,f=(u&Hr)===0,d=v?f?ir(i,!1,!1):ft(i):i,y=(u&Yr)===0?a:ft(a),E={i:y,v:d,k:s,a:null,e:null,prev:n,next:r};try{if(t===null){var C=document.createDocumentFragment();C.append(t=Ae())}return E.e=Re(()=>o(t,d,y,l),T),E.e.prev=n&&n.e,E.e.next=r&&r.e,n===null?h||(e.first=E):(n.next=E,n.e.next=E.e),r!==null&&(r.prev=E,r.e.prev=E.e),E}finally{}}function Tn(t,e,n){for(var r=t.next?t.next.e.nodes_start:n,i=e?e.e.nodes_start:n,s=t.e.nodes_start;s!==null&&s!==r;){var a=Ne(s);i.before(s),s=a}}function Ye(t,e,n){e===null?t.first=n:(e.next=n,e.e.next=n&&n.e),n!==null&&(n.prev=e,n.e.prev=e&&e.e)}function tn(t,e,n,r,i){T&&At();var s=e.$$slots?.[n],a=!1;s===!0&&(s=e[n==="default"?"children":n],a=!0),s===void 0?i!==null&&i(t):s(t,a?()=>r:r)}function ns(t,e){let n=null,r=T;var i;if(T){n=L;for(var s=rt(document.head);s!==null&&(s.nodeType!==ot||s.data!==t);)s=Ne(s);if(s===null)xe(!1);else{var a=Ne(s);s.remove(),fe(a)}}T||(i=document.head.appendChild(Ae()));try{Xt(()=>e(i),dn)}finally{r&&(xe(!0),fe(n))}}function rs(t,e){Li(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=document.createElement("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}function is(t,e,n){var r=t==null?"":""+t;return r===""?null:r}function ss(t,e){return t==null?null:String(t)}function nn(t,e,n,r,i,s){var a=t.__className;if(T||a!==n||a===void 0){var o=is(n);(!T||o!==t.getAttribute("class"))&&(o==null?t.removeAttribute("class"):t.className=o),t.__className=n}return s}function Mn(t,e,n,r){var i=t.__style;if(T||i!==e){var s=ss(e);(!T||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}return r}const as=Symbol("is custom element"),os=Symbol("is html");function ls(t,e,n,r){var i=us(t);T&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||i[e]!==(i[e]=n)&&(e==="loading"&&(t[ai]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Or(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function Te(t,e,n){var r=R,i=I;let s=T;T&&xe(!1),he(null),De(null);try{e!=="style"&&(Pn.has(t.getAttribute("is")||t.nodeName)||!customElements||customElements.get(t.getAttribute("is")||t.tagName.toLowerCase())?Or(t).includes(e):n&&typeof n=="object")?t[e]=n:ls(t,e,n==null?n:String(n))}finally{he(r),De(i),s&&xe(!0)}}function us(t){return t.__attributes??={[as]:t.nodeName.includes("-"),[os]:t.namespaceURI===Qr}}var Pn=new Map;function Or(t){var e=t.getAttribute("is")||t.nodeName,n=Pn.get(e);if(n)return n;Pn.set(e,n=[]);for(var r,i=t,s=Element.prototype;s!==i;){r=ti(i);for(var a in r)r[a].set&&n.push(a);i=Ln(i)}return n}let rn=!1;function cs(t){var e=rn;try{return rn=!1,[t(),rn]}finally{rn=e}}function St(t,e,n,r){var i=(n&Gr)!==0,s=(n&Zr)!==0,a=r,o=!0,u=()=>(o&&(o=!1,a=s?Pr(r):r),a),l;if(i){var h=Ut in t||Fn in t;l=st(t,e)?.set??(h&&e in t?q=>t[e]=q:void 0)}var v,f=!1;i?[v,f]=cs(()=>t[e]):v=t[e],v===void 0&&r!==void 0&&(v=u(),l&&(hi(),l(v)));var d;if(d=()=>{var q=t[e];return q===void 0?u():(o=!0,q)},(n&Jr)===0)return d;if(l){var y=t.$$legacy;return(function(q,j){return arguments.length>0?((!j||y||f)&&l(j?d():q),q):d()})}var E=!1,C=((n&Wr)!==0?_n:er)(()=>(E=!1,d()));i&&O(C);var oe=I;return(function(q,j){if(arguments.length>0){const Z=j?O(C):i?dt(q):q;return X(C,Z),E=!0,a!==void 0&&(a=Z),q}return vt&&E||(oe.f&et)!==0?C.v:O(C)})}function fs(t){return new ds(t)}class ds{#t;#e;constructor(e){var n=new Map,r=(s,a)=>{var o=ir(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...e.props||{},$$events:{}},{get(s,a){return O(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===Fn?!0:(O(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return X(n.get(a)??r(a,o),o),Reflect.set(s,a,o)}});this.#e=(e.hydrate?Zi:Rr)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&ut(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ft(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Ki(this.#e)}}$set(e){this.#e.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const r=(...i)=>n.call(this,...i);return this.#t[e].push(r),()=>{this.#t[e]=this.#t[e].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Lr;typeof HTMLElement=="function"&&(Lr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),G(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=hs(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=sn(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=fs({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Ii(()=>{vr(()=>{this.$$r=!0;for(const r of zt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=sn(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=sn(t,n,this.$$p_d,"toProp"),this.$$c?.$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 zt(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function sn(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function hs(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function vs(t,e,n,r,i,s){let a=class extends Lr{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return zt(e).map(o=>(e[o].attribute||o).toLowerCase())}};return zt(e).forEach(o=>{Ft(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=sn(o,u,e),this.$$d[o]=u;var l=this.$$c;if(l){var h=st(l,o)?.get;h?l[o]=u:l.$set({[o]:u})}}})}),r.forEach(o=>{Ft(a.prototype,o,{get(){return this.$$c?.[o]}})}),t.element=a,a}function be(t,e,n,r){var i=arguments.length,s=i<3?e:r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,r);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,n,s):a(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function an(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{l(r.next(h))}catch(v){a(v)}}function u(h){try{l(r.throw(h))}catch(v){a(v)}}function l(h){h.done?s(h.value):i(h.value).then(o,u)}l((r=r.apply(t,[])).next())})}function qr(t){return t.replace(/[A-Z]+/g,e=>`-${e}`).replace(/^-/,"").toLowerCase()}function pt(t){return function(e,n){const r=qr(n);e.addObservedAttribute&&e.addObservedAttribute(r),Object.defineProperty(e,n,{get(){return this.getAttribute(r)},set(i){i==null?this.removeAttribute(r):this.setAttribute(r,i),this.notifyPropertyChanged(n)},enumerable:!0,configurable:!0})}}function bs(t){return function(e,n){const r=qr(n);e.addObservedAttribute&&e.addObservedAttribute(r),Object.defineProperty(e,n,{get(){return this.hasAttribute(r)},set(i){i?this.setAttribute(r,""):this.removeAttribute(r),this.notifyPropertyChanged(n)},enumerable:!0,configurable:!0})}}function An(t){return function(e,n){Object.defineProperty(e,n,{get(){return this[`$__${n}`]},set(r){this[`$__${n}`]=r,this.notifyPropertyChanged(n)},enumerable:!0,configurable:!0})}}function V(t){return function(e,n){Object.defineProperty(e,t,{get(){return this[n]},set(r){this[n]=r},enumerable:!0,configurable:!1})}}let Nn={};function ps(t){const e=Nn[t];if(e)return e;const n=new Promise((r,i)=>{const s=document.createElement("script");s.src=t,s.async=!0;const a=()=>{r()},o=()=>{u(),delete Nn[t],s.remove(),i(new Error(`Unable to load script ${t}`))};s.addEventListener("load",a),s.addEventListener("error",o),document.body.appendChild(s);function u(){s.removeEventListener("load",a),s.removeEventListener("error",o)}});return Nn[t]=n,n}class ms{constructor(e){this.handleClick=n=>an(this,void 0,void 0,function*(){const r=this.config;if(!r)throw new Error("google-pay-button: Missing configuration");const i=this.createLoadPaymentDataRequest(r);try{if(r.onClick&&r.onClick(n),n.defaultPrevented)return;const s=yield this.client.loadPaymentData(i);r.onLoadPaymentData&&r.onLoadPaymentData(s)}catch(s){s.statusCode==="CANCELED"?r.onCancel&&r.onCancel(s):r.onError?r.onError(s):console.error(s)}}),this.options=e}getElement(){return this.element}isGooglePayLoaded(){var e,n;return"google"in(window||global)&&!!(!((n=(e=google==null?void 0:google.payments)===null||e===void 0?void 0:e.api)===null||n===void 0)&&n.PaymentsClient)}mount(e){var n;return an(this,void 0,void 0,function*(){if(!this.isGooglePayLoaded())try{yield ps("https://pay.google.com/gp/p/js/pay.js")}catch(r){!((n=this.config)===null||n===void 0)&&n.onError?this.config.onError(r):console.error(r);return}this.element=e,e&&(this.appendStyles(),this.config&&this.updateElement())})}unmount(){this.element=void 0}configure(e){let n;return this.config=e,(!this.oldInvalidationValues||this.isClientInvalidated(e))&&(n=this.updateElement()),this.oldInvalidationValues=this.getInvalidationValues(e),n??Promise.resolve()}createClientOptions(e){const n={environment:e.environment,merchantInfo:this.createMerchantInfo(e)};return(e.onPaymentDataChanged||e.onPaymentAuthorized)&&(n.paymentDataCallbacks={},e.onPaymentDataChanged&&(n.paymentDataCallbacks.onPaymentDataChanged=r=>e.onPaymentDataChanged(r)||{}),e.onPaymentAuthorized&&(n.paymentDataCallbacks.onPaymentAuthorized=r=>e.onPaymentAuthorized(r)||{})),n}createIsReadyToPayRequest(e){const n=e.paymentRequest;return{apiVersion:n.apiVersion,apiVersionMinor:n.apiVersionMinor,allowedPaymentMethods:n.allowedPaymentMethods,existingPaymentMethodRequired:e.existingPaymentMethodRequired}}createLoadPaymentDataRequest(e){return Object.assign(Object.assign({},e.paymentRequest),{merchantInfo:this.createMerchantInfo(e)})}createMerchantInfo(e){const n=Object.assign({},e.paymentRequest.merchantInfo);return n.softwareInfo||(n.softwareInfo={id:this.options.softwareInfoId,version:this.options.softwareInfoVersion}),n}isMounted(){return this.element!=null&&this.element.isConnected!==!1}removeButton(){if(this.element instanceof ShadowRoot||this.element instanceof Element)for(const e of Array.from(this.element.children))e.tagName!=="STYLE"&&e.remove()}updateElement(){return an(this,void 0,void 0,function*(){if(!this.isMounted())return;const e=this.getElement();if(!this.config)throw new Error("google-pay-button: Missing configuration");this.removeButton();try{this.client=new google.payments.api.PaymentsClient(this.createClientOptions(this.config))}catch(o){this.config.onError?this.config.onError(o):console.error(o);return}const n={buttonType:this.config.buttonType,buttonColor:this.config.buttonColor,buttonRadius:this.config.buttonRadius,buttonSizeMode:this.config.buttonSizeMode,buttonLocale:this.config.buttonLocale,buttonBorderType:this.config.buttonBorderType,onClick:this.handleClick,allowedPaymentMethods:this.config.paymentRequest.allowedPaymentMethods},r=e.getRootNode();r instanceof ShadowRoot&&(n.buttonRootNode=r);const i=this.client.createButton(n);this.setClassName(e,[e.className,"not-ready"]),e.appendChild(i);let s=!1,a;try{a=yield this.client.isReadyToPay(this.createIsReadyToPayRequest(this.config)),s=a.result&&!this.config.existingPaymentMethodRequired||a.result&&a.paymentMethodPresent&&this.config.existingPaymentMethodRequired||!1}catch(o){this.config.onError?this.config.onError(o):console.error(o)}if(this.isMounted()){if(s){try{this.client.prefetchPaymentData(this.createLoadPaymentDataRequest(this.config))}catch(o){console.log("Error with prefetch",o)}this.setClassName(e,(e.className||"").split(" ").filter(o=>o&&o!=="not-ready"))}if((this.isReadyToPay!==a?.result||this.paymentMethodPresent!==a?.paymentMethodPresent)&&(this.isReadyToPay=!!a?.result,this.paymentMethodPresent=a?.paymentMethodPresent,this.config.onReadyToPayChange)){const o={isButtonVisible:s,isReadyToPay:this.isReadyToPay};this.paymentMethodPresent&&(o.paymentMethodPresent=this.paymentMethodPresent),this.config.onReadyToPayChange(o)}}})}setClassName(e,n){const r=n.filter(i=>i).join(" ");r?e.className=r:e.removeAttribute("class")}appendStyles(){var e,n,r;if(typeof document>"u")return;const i=(e=this.element)===null||e===void 0?void 0:e.getRootNode(),s=`default-google-style-${this.options.cssSelector.replace(/[^\w-]+/g,"")}-${(n=this.config)===null||n===void 0?void 0:n.buttonLocale}`;if(i&&!(!((r=i.getElementById)===null||r===void 0)&&r.call(i,s))){const a=document.createElement("style");a.id=s,a.type="text/css",a.innerHTML=`
16
3
  ${this.options.cssSelector} {
17
4
  display: inline-block;
18
5
  }
@@ -21,8 +8,7 @@
21
8
  height: 0;
22
9
  overflow: hidden;
23
10
  }
24
- `,i instanceof Document&&i.head?i.head.appendChild(a):i.appendChild(a)}}isClientInvalidated(t){return this.oldInvalidationValues?this.getInvalidationValues(t).some((r,i)=>JSON.stringify(r)!==JSON.stringify(this.oldInvalidationValues[i])):!0}getInvalidationValues(t){var n,r;return[t.environment,t.existingPaymentMethodRequired,!!t.onPaymentDataChanged,!!t.onPaymentAuthorized,t.buttonType,t.buttonColor,t.buttonRadius,t.buttonLocale,t.buttonSizeMode,t.buttonBorderType,t.paymentRequest.merchantInfo.merchantId,t.paymentRequest.merchantInfo.merchantName,(n=t.paymentRequest.merchantInfo.softwareInfo)===null||n===void 0?void 0:n.id,(r=t.paymentRequest.merchantInfo.softwareInfo)===null||r===void 0?void 0:r.version,t.paymentRequest.allowedPaymentMethods]}}var ya="@google-pay/button-element",ga="3.2.1";function wa(e,t=0){let n;return function(...r){window.clearTimeout(n);const i=function(){return n=void 0,e(...r)};return new Promise(s=>{n=window.setTimeout(()=>{const a=i();s(a)},t)})}}class ie extends HTMLElement{constructor(){super(...arguments),this.manager=new _a({cssSelector:"google-pay-button",softwareInfoId:ya,softwareInfoVersion:ga}),this.initializeButton=wa(()=>{if(!this.assertRequiredProperty("paymentRequest")||!this.assertRequiredProperty("environment"))return;const t={paymentRequest:this.paymentRequest,environment:this.environment,existingPaymentMethodRequired:this.existingPaymentMethodRequired,onPaymentDataChanged:this.onPaymentDataChanged,onPaymentAuthorized:this.onPaymentAuthorized,buttonColor:this.buttonColor,buttonType:this.buttonType,buttonRadius:this.buttonRadius,buttonSizeMode:this.buttonSizeMode,buttonLocale:this.buttonLocale,buttonBorderType:this.buttonBorderType,onReadyToPayChange:n=>{this.onReadyToPayChange&&this.onReadyToPayChange(n),this.dispatch("readytopaychange",n)},onCancel:n=>{this.onCancel&&this.onCancel(n),this.dispatch("cancel",n)},onError:n=>{var r;this.onError&&((r=this.onError)===null||r===void 0||r.call(this,n)),this.dispatchEvent(new ErrorEvent("error",{error:n}))},onLoadPaymentData:n=>{this.onLoadPaymentData&&this.onLoadPaymentData(n),this.dispatch("loadpaymentdata",n)},onClick:n=>{var r;this.onClick&&((r=this.onClick)===null||r===void 0||r.call(this,n))}};this.manager.configure(t)})}get isReadyToPay(){return this.manager.isReadyToPay}assertRequiredProperty(t){const n=this[t];return n==null?(this.throwError(Error(`Required property not set: ${t}`)),!1):!0}throwError(t){throw t}static get observedAttributes(){return ie._observedAttributes}addObservedAttribute(t){ie._observedAttributes.push(t)}dispatch(t,n){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!1,detail:n}))}connectedCallback(){return Ht(this,void 0,void 0,function*(){return yield this.manager.mount(this),this.initializeButton()})}disconnectedCallback(){this.manager.unmount()}attributeChangedCallback(t){return this.initializeButton()}notifyPropertyChanged(t){return this.initializeButton()}}ie._observedAttributes=[],de([kn(),V("paymentrequest")],ie.prototype,"paymentRequest",void 0),de([lt()],ie.prototype,"environment",void 0),de([pa(),V("existingpaymentmethodrequired")],ie.prototype,"existingPaymentMethodRequired",void 0),de([lt(),V("buttoncolor")],ie.prototype,"buttonColor",void 0),de([lt(),V("buttontype")],ie.prototype,"buttonType",void 0),de([lt(),V("buttonradius")],ie.prototype,"buttonRadius",void 0),de([lt(),V("buttonsizemode")],ie.prototype,"buttonSizeMode",void 0),de([lt(),V("buttonlocale")],ie.prototype,"buttonLocale",void 0),de([lt(),V("buttonbordertype")],ie.prototype,"buttonBorderType",void 0),de([kn(),V("paymentDataChangedCallback"),V("paymentdatachangedcallback"),V("onpaymentdatachanged")],ie.prototype,"onPaymentDataChanged",void 0),de([kn(),V("paymentAuthorizedCallback"),V("paymentauthorizedcallback"),V("onpaymentauthorized")],ie.prototype,"onPaymentAuthorized",void 0),de([V("readyToPayChangeCallback"),V("readytopaychangecallback"),V("onreadytopaychange")],ie.prototype,"onReadyToPayChange",void 0),de([V("loadPaymentDataCallback"),V("loadpaymentdatacallback"),V("onloadpaymentdata")],ie.prototype,"onLoadPaymentData",void 0),de([V("cancelCallback"),V("cancelcallback"),V("oncancel")],ie.prototype,"onCancel",void 0),de([V("errorCallback"),V("errorcallback"),V("onerror")],ie.prototype,"onError",void 0),de([V("clickCallback"),V("clickcallback"),V("onclick")],ie.prototype,"onClick",void 0),customElements.define("google-pay-button",ie);const Ar={version:"0.61.51"},fe=[{type:"text",placeholder:"Insert your Full Name here...",id:"fullName",required:!0,label:"Full Name",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Insert your Street/Square address with number...",id:"addressWithNumber",required:!0,label:"Street/Square/...",validationTip:"This field cannot be empty."},{id:"name-row2",type:"row",params:{columns:[{type:"text",placeholder:"Insert your nationality here...",id:"nationality",required:!0,label:"Nationality",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Insert your city name here...",id:"city",required:!0,label:"City",validationTip:"This field cannot be empty."},{type:"number",placeholder:"Insert your zip code here...",id:"zip",required:!0,label:"Zip",validationTip:"This field cannot be empty."}]}}];function Dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wt={exports:{}},$a=Wt.exports,Or;function Ea(){return Or||(Or=1,(function(e,t){(function(n,r){e.exports=r()})($a,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",c="hour",u="day",d="week",h="month",f="quarter",v="year",b="date",w="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(p){var _=["th","st","nd","rd"],y=p%100;return"["+p+(_[(y-20)%10]||_[y]||_[0])+"]"}},M=function(p,_,y){var $=String(p);return!$||$.length>=_?p:""+Array(_+1-$.length).join(y)+p},G={s:M,z:function(p){var _=-p.utcOffset(),y=Math.abs(_),$=Math.floor(y/60),l=y%60;return(_<=0?"+":"-")+M($,2,"0")+":"+M(l,2,"0")},m:function p(_,y){if(_.date()<y.date())return-p(y,_);var $=12*(y.year()-_.year())+(y.month()-_.month()),l=_.clone().add($,h),m=y-l<0,g=_.clone().add($+(m?-1:1),h);return+(-($+(y-l)/(m?l-g:g-l))||0)},a:function(p){return p<0?Math.ceil(p)||0:Math.floor(p)},p:function(p){return{M:h,y:v,w:d,d:u,D:b,h:c,m:o,s:a,ms:s,Q:f}[p]||String(p||"").toLowerCase().replace(/s$/,"")},u:function(p){return p===void 0}},q="en",te={};te[q]=x;var ne="$isDayjsObject",le=function(p){return p instanceof pe||!(!p||!p[ne])},ae=function p(_,y,$){var l;if(!_)return q;if(typeof _=="string"){var m=_.toLowerCase();te[m]&&(l=m),y&&(te[m]=y,l=m);var g=_.split("-");if(!l&&g.length>1)return p(g[0])}else{var E=_.name;te[E]=_,l=E}return!$&&l&&(q=l),l||!$&&q},Y=function(p,_){if(le(p))return p.clone();var y=typeof _=="object"?_:{};return y.date=p,y.args=arguments,new pe(y)},P=G;P.l=ae,P.i=le,P.w=function(p,_){return Y(p,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var pe=(function(){function p(y){this.$L=ae(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[ne]=!0}var _=p.prototype;return _.parse=function(y){this.$d=(function($){var l=$.date,m=$.utc;if(l===null)return new Date(NaN);if(P.u(l))return new Date;if(l instanceof Date)return new Date(l);if(typeof l=="string"&&!/Z$/i.test(l)){var g=l.match(C);if(g){var E=g[2]-1||0,k=(g[7]||"0").substring(0,3);return m?new Date(Date.UTC(g[1],E,g[3]||1,g[4]||0,g[5]||0,g[6]||0,k)):new Date(g[1],E,g[3]||1,g[4]||0,g[5]||0,g[6]||0,k)}}return new Date(l)})(y),this.init()},_.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},_.$utils=function(){return P},_.isValid=function(){return this.$d.toString()!==w},_.isSame=function(y,$){var l=Y(y);return this.startOf($)<=l&&l<=this.endOf($)},_.isAfter=function(y,$){return Y(y)<this.startOf($)},_.isBefore=function(y,$){return this.endOf($)<Y(y)},_.$g=function(y,$,l){return P.u(y)?this[$]:this.set(l,y)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(y,$){var l=this,m=!!P.u($)||$,g=P.p(y),E=function(W,J){var X=P.w(l.$u?Date.UTC(l.$y,J,W):new Date(l.$y,J,W),l);return m?X:X.endOf(u)},k=function(W,J){return P.w(l.toDate()[W].apply(l.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(J)),l)},T=this.$W,S=this.$M,R=this.$D,H="set"+(this.$u?"UTC":"");switch(g){case v:return m?E(1,0):E(31,11);case h:return m?E(1,S):E(0,S+1);case d:var F=this.$locale().weekStart||0,z=(T<F?T+7:T)-F;return E(m?R-z:R+(6-z),S);case u:case b:return k(H+"Hours",0);case c:return k(H+"Minutes",1);case o:return k(H+"Seconds",2);case a:return k(H+"Milliseconds",3);default:return this.clone()}},_.endOf=function(y){return this.startOf(y,!1)},_.$set=function(y,$){var l,m=P.p(y),g="set"+(this.$u?"UTC":""),E=(l={},l[u]=g+"Date",l[b]=g+"Date",l[h]=g+"Month",l[v]=g+"FullYear",l[c]=g+"Hours",l[o]=g+"Minutes",l[a]=g+"Seconds",l[s]=g+"Milliseconds",l)[m],k=m===u?this.$D+($-this.$W):$;if(m===h||m===v){var T=this.clone().set(b,1);T.$d[E](k),T.init(),this.$d=T.set(b,Math.min(this.$D,T.daysInMonth())).$d}else E&&this.$d[E](k);return this.init(),this},_.set=function(y,$){return this.clone().$set(y,$)},_.get=function(y){return this[P.p(y)]()},_.add=function(y,$){var l,m=this;y=Number(y);var g=P.p($),E=function(S){var R=Y(m);return P.w(R.date(R.date()+Math.round(S*y)),m)};if(g===h)return this.set(h,this.$M+y);if(g===v)return this.set(v,this.$y+y);if(g===u)return E(1);if(g===d)return E(7);var k=(l={},l[o]=r,l[c]=i,l[a]=n,l)[g]||1,T=this.$d.getTime()+y*k;return P.w(T,this)},_.subtract=function(y,$){return this.add(-1*y,$)},_.format=function(y){var $=this,l=this.$locale();if(!this.isValid())return l.invalidDate||w;var m=y||"YYYY-MM-DDTHH:mm:ssZ",g=P.z(this),E=this.$H,k=this.$m,T=this.$M,S=l.weekdays,R=l.months,H=l.meridiem,F=function(J,X,Q,ee){return J&&(J[X]||J($,m))||Q[X].slice(0,ee)},z=function(J){return P.s(E%12||12,J,"0")},W=H||function(J,X,Q){var ee=J<12?"AM":"PM";return Q?ee.toLowerCase():ee};return m.replace(U,(function(J,X){return X||(function(Q){switch(Q){case"YY":return String($.$y).slice(-2);case"YYYY":return P.s($.$y,4,"0");case"M":return T+1;case"MM":return P.s(T+1,2,"0");case"MMM":return F(l.monthsShort,T,R,3);case"MMMM":return F(R,T);case"D":return $.$D;case"DD":return P.s($.$D,2,"0");case"d":return String($.$W);case"dd":return F(l.weekdaysMin,$.$W,S,2);case"ddd":return F(l.weekdaysShort,$.$W,S,3);case"dddd":return S[$.$W];case"H":return String(E);case"HH":return P.s(E,2,"0");case"h":return z(1);case"hh":return z(2);case"a":return W(E,k,!0);case"A":return W(E,k,!1);case"m":return String(k);case"mm":return P.s(k,2,"0");case"s":return String($.$s);case"ss":return P.s($.$s,2,"0");case"SSS":return P.s($.$ms,3,"0");case"Z":return g}return null})(J)||g.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(y,$,l){var m,g=this,E=P.p($),k=Y(y),T=(k.utcOffset()-this.utcOffset())*r,S=this-k,R=function(){return P.m(g,k)};switch(E){case v:m=R()/12;break;case h:m=R();break;case f:m=R()/3;break;case d:m=(S-T)/6048e5;break;case u:m=(S-T)/864e5;break;case c:m=S/i;break;case o:m=S/r;break;case a:m=S/n;break;default:m=S}return l?m:P.a(m)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return te[this.$L]},_.locale=function(y,$){if(!y)return this.$L;var l=this.clone(),m=ae(y,$,!0);return m&&(l.$L=m),l},_.clone=function(){return P.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},p})(),I=pe.prototype;return Y.prototype=I,[["$ms",s],["$s",a],["$m",o],["$H",c],["$W",u],["$M",h],["$y",v],["$D",b]].forEach((function(p){I[p[1]]=function(_){return this.$g(_,p[0],p[1])}})),Y.extend=function(p,_){return p.$i||(p(_,pe,Y),p.$i=!0),Y},Y.locale=ae,Y.isDayjs=le,Y.unix=function(p){return Y(1e3*p)},Y.en=te[q],Y.Ls=te,Y.p={},Y}))})(Wt)),Wt.exports}var xa=Ea();const Ca=Dr(xa);var ut={},Ir;function Ta(){if(Ir)return ut;Ir=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.LanguageTranslator=void 0,ut.getChildStyleToPass=e,ut.addComponent=t;function e(r,i){var s,a,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(f){return Object.keys(r).includes(f.name)}))===null||a===void 0)&&a.length))for(var c=function(f){var v=i?.filter(function(b){return b.name===f&&b.defaultValue!==r[f]});v&&(o+="".concat(f,":").concat(r[f],";"))},u=0,d=Object.keys(r);u<d.length;u++){var h=d[u];c(h)}}catch(f){console.error("error getting child style to pass",f)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var a=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(a),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var c=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(c+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(u){console.warn(u)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,a){return r.formatDate(i,s,a||this.lang)},r.getDefaultLang=function(){var i,s,a,o,c,u="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(u=(c=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||c===void 0?void 0:c.toLowerCase()),u},r.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var c="",u=r.getDefaultLang();if(!a||u!==a){var d=s?.[u];d?.[i]&&(c=d[i])}return c},r.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||r.getDefaultLang(),s);return o.format(i)},r})();return ut.LanguageTranslator=n,ut}var Lr=Ta(),Et={},Mn,qr;function ka(){if(qr)return Mn;qr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,c=`
25
- `,u="/",d="*",h="",f="comment",v="declaration";Mn=function(w,C){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];C=C||{};var U=1,x=1;function M(I){var p=I.match(t);p&&(U+=p.length);var _=I.lastIndexOf(c);x=~_?I.length-_:x+I.length}function G(){var I={line:U,column:x};return function(p){return p.position=new q(I),le(),p}}function q(I){this.start=I,this.end={line:U,column:x},this.source=C.source}q.prototype.content=w;function te(I){var p=new Error(C.source+":"+U+":"+x+": "+I);if(p.reason=I,p.filename=C.source,p.line=U,p.column=x,p.source=w,!C.silent)throw p}function ne(I){var p=I.exec(w);if(p){var _=p[0];return M(_),w=w.slice(_.length),p}}function le(){ne(n)}function ae(I){var p;for(I=I||[];p=Y();)p!==!1&&I.push(p);return I}function Y(){var I=G();if(!(u!=w.charAt(0)||d!=w.charAt(1))){for(var p=2;h!=w.charAt(p)&&(d!=w.charAt(p)||u!=w.charAt(p+1));)++p;if(p+=2,h===w.charAt(p-1))return te("End of comment missing");var _=w.slice(2,p-2);return x+=2,M(_),w=w.slice(p),x+=2,I({type:f,comment:_})}}function P(){var I=G(),p=ne(r);if(p){if(Y(),!ne(i))return te("property missing ':'");var _=ne(s),y=I({type:v,property:b(p[0].replace(e,h)),value:_?b(_[0].replace(e,h)):h});return ne(a),y}}function pe(){var I=[];ae(I);for(var p;p=P();)p!==!1&&(I.push(p),ae(I));return I}return le(),pe()};function b(w){return w?w.replace(o,h):h}return Mn}var jr;function Sa(){if(jr)return Et;jr=1;var e=Et&&Et.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Et,"__esModule",{value:!0}),Et.default=n;var t=e(ka());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var a=(0,t.default)(r),o=typeof i=="function";return a.forEach(function(c){if(c.type==="declaration"){var u=c.property,d=c.value;o?i(u,d,c):d&&(s=s||{},s[u]=d)}}),s}return Et}var Ma=Sa();const zr=Dr(Ma);zr.default;function Pa(e,t,n){re(t,!0),re(n,!1)}function Fr(e,t,n){re(t,!1),re(n,!0)}var Ra=oe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-94r8nt"/>'),Na=oe('<h1 class="title svelte-94r8nt" part="title">Checkout</h1>'),Aa=oe('<div class="dataentry svelte-94r8nt"><span class="dataentry_value svelte-94r8nt"> </span></div>'),Da=oe('<div class="dataentrycontainer svelte-94r8nt"><!></div>'),Oa=oe('<h4 class="subtitle svelte-94r8nt" part="subtitle"><button class="btn btn-sm detail_btn svelte-94r8nt">edit</button></h4> <div class="dataentrycontainer svelte-94r8nt"><div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Name</span><span class="dataentry_value svelte-94r8nt"> </span></div> <div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Address</span><span class="dataentry_value svelte-94r8nt"> </span></div></div>',1),Ia=(e,t)=>{re(t,"yes"),setTimeout(()=>{re(t,"no")},200)},La=oe('<h4 class="subtitle svelte-94r8nt" part="subtitle">Address</h4> <div class="svelte-94r8nt"><hb-form></hb-form> <div class="svelte-94r8nt"><button style="width:100%;margin-bottom:10px" class="btn btn-primary svelte-94r8nt">continue</button></div></div>',3),qa=oe('<h4 style="margin-top:20px" class="subtitle svelte-94r8nt" part="subtitle"><span class="detail_label svelte-94r8nt"><i class="bi bi-truck svelte-94r8nt"></i> Shipment Service</span><button class="btn btn-sm detail_btn svelte-94r8nt">edit</button></h4> <div class="dataentrycontainer svelte-94r8nt"><div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Shipping Fee</span><span class="dataentry_value svelte-94r8nt"> </span></div> <div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Arrive</span><span class="dataentry_value svelte-94r8nt"> </span></div></div>',1),ja=(e,t)=>{re(t,"yes"),setTimeout(()=>{re(t,"no")},200)},za=oe('<h4 class="subtitle svelte-94r8nt" part="subtitle" style="margin-top:20px"><i class="bi bi-truck svelte-94r8nt"></i> Shipment Service</h4> <div class="svelte-94r8nt"><hb-form></hb-form> <div class="svelte-94r8nt"><button style="width:100%" class="btn btn-primary svelte-94r8nt">continue</button></div></div>',3),Fa=oe('<h4 style="margin-top:20px" class="subtitle svelte-94r8nt" part="subtitle"><span class="detail_label svelte-94r8nt"><i class="bi bi-truck svelte-94r8nt"></i> Shipment Service</span><button class="btn btn-sm detail_btn svelte-94r8nt">edit</button></h4> <div class="dataentrycontainer svelte-94r8nt"><div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Shipping Fee</span><span class="dataentry_value svelte-94r8nt"> </span></div> <div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Shipping Time</span><span class="dataentry_value svelte-94r8nt"> </span></div></div>',1),Ba=oe('<div id="shipment_separator" class="svelte-94r8nt"><!></div>'),Va=oe("<hb-payment-paypal></hb-payment-paypal>",2),Ua=oe("<google-pay-button></google-pay-button>",2),Ya=oe('<div class="payment_button_container svelte-94r8nt"><!></div>'),Ha=oe('<div id="payment_btn_container" class="svelte-94r8nt"></div>'),Wa=oe('By Clicking..<button class="btn btn-default svelte-94r8nt">Terms and conditions</button>',1),Ga=oe('<h3 class="subtitle svelte-94r8nt" part="subtitle"><i class="bi bi-wallet2 svelte-94r8nt"></i> Payment Method</h3> <!> <div class="footer_note svelte-94r8nt"><!></div>',1),Ja=oe('<div id="payment_completed_content" class="svelte-94r8nt"><div id="payment_completed_title" class="svelte-94r8nt">payment completed</div> <div id="payment_completed_content" class="svelte-94r8nt"> </div> <div id="payment_completed_footer" class="svelte-94r8nt"><button class="btn btn-link svelte-94r8nt">invoice</button></div></div>'),Xa=oe('<!> <div id="border_top" class="svelte-94r8nt"><div class="svelte-94r8nt"><h3 class="subtitle svelte-94r8nt" part="subtitle"><i class="bi bi-send-fill svelte-94r8nt"></i> Delivery</h3> <!></div> <!></div> <div class="payment_title svelte-94r8nt"><!></div>',1);const Za={hash:"svelte-94r8nt",code:`@charset "UTF-8";
11
+ `,i instanceof Document&&i.head?i.head.appendChild(a):i.appendChild(a)}}isClientInvalidated(e){return this.oldInvalidationValues?this.getInvalidationValues(e).some((r,i)=>JSON.stringify(r)!==JSON.stringify(this.oldInvalidationValues[i])):!0}getInvalidationValues(e){var n,r;return[e.environment,e.existingPaymentMethodRequired,!!e.onPaymentDataChanged,!!e.onPaymentAuthorized,e.buttonType,e.buttonColor,e.buttonRadius,e.buttonLocale,e.buttonSizeMode,e.buttonBorderType,e.paymentRequest.merchantInfo.merchantId,e.paymentRequest.merchantInfo.merchantName,(n=e.paymentRequest.merchantInfo.softwareInfo)===null||n===void 0?void 0:n.id,(r=e.paymentRequest.merchantInfo.softwareInfo)===null||r===void 0?void 0:r.version,e.paymentRequest.allowedPaymentMethods]}}var _s="@google-pay/button-element",ys="3.2.1";function gs(t,e=0){let n;return function(...r){window.clearTimeout(n);const i=function(){return n=void 0,t(...r)};return new Promise(s=>{n=window.setTimeout(()=>{const a=i();s(a)},e)})}}class Q extends HTMLElement{constructor(){super(...arguments),this.manager=new ms({cssSelector:"google-pay-button",softwareInfoId:_s,softwareInfoVersion:ys}),this.initializeButton=gs(()=>{if(!this.assertRequiredProperty("paymentRequest")||!this.assertRequiredProperty("environment"))return;const e={paymentRequest:this.paymentRequest,environment:this.environment,existingPaymentMethodRequired:this.existingPaymentMethodRequired,onPaymentDataChanged:this.onPaymentDataChanged,onPaymentAuthorized:this.onPaymentAuthorized,buttonColor:this.buttonColor,buttonType:this.buttonType,buttonRadius:this.buttonRadius,buttonSizeMode:this.buttonSizeMode,buttonLocale:this.buttonLocale,buttonBorderType:this.buttonBorderType,onReadyToPayChange:n=>{this.onReadyToPayChange&&this.onReadyToPayChange(n),this.dispatch("readytopaychange",n)},onCancel:n=>{this.onCancel&&this.onCancel(n),this.dispatch("cancel",n)},onError:n=>{var r;this.onError&&((r=this.onError)===null||r===void 0||r.call(this,n)),this.dispatchEvent(new ErrorEvent("error",{error:n}))},onLoadPaymentData:n=>{this.onLoadPaymentData&&this.onLoadPaymentData(n),this.dispatch("loadpaymentdata",n)},onClick:n=>{var r;this.onClick&&((r=this.onClick)===null||r===void 0||r.call(this,n))}};this.manager.configure(e)})}get isReadyToPay(){return this.manager.isReadyToPay}assertRequiredProperty(e){const n=this[e];return n==null?(this.throwError(Error(`Required property not set: ${e}`)),!1):!0}throwError(e){throw e}static get observedAttributes(){return Q._observedAttributes}addObservedAttribute(e){Q._observedAttributes.push(e)}dispatch(e,n){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!1,detail:n}))}connectedCallback(){return an(this,void 0,void 0,function*(){return yield this.manager.mount(this),this.initializeButton()})}disconnectedCallback(){this.manager.unmount()}attributeChangedCallback(e){return this.initializeButton()}notifyPropertyChanged(e){return this.initializeButton()}}Q._observedAttributes=[],be([An(),V("paymentrequest")],Q.prototype,"paymentRequest",void 0),be([pt()],Q.prototype,"environment",void 0),be([bs(),V("existingpaymentmethodrequired")],Q.prototype,"existingPaymentMethodRequired",void 0),be([pt(),V("buttoncolor")],Q.prototype,"buttonColor",void 0),be([pt(),V("buttontype")],Q.prototype,"buttonType",void 0),be([pt(),V("buttonradius")],Q.prototype,"buttonRadius",void 0),be([pt(),V("buttonsizemode")],Q.prototype,"buttonSizeMode",void 0),be([pt(),V("buttonlocale")],Q.prototype,"buttonLocale",void 0),be([pt(),V("buttonbordertype")],Q.prototype,"buttonBorderType",void 0),be([An(),V("paymentDataChangedCallback"),V("paymentdatachangedcallback"),V("onpaymentdatachanged")],Q.prototype,"onPaymentDataChanged",void 0),be([An(),V("paymentAuthorizedCallback"),V("paymentauthorizedcallback"),V("onpaymentauthorized")],Q.prototype,"onPaymentAuthorized",void 0),be([V("readyToPayChangeCallback"),V("readytopaychangecallback"),V("onreadytopaychange")],Q.prototype,"onReadyToPayChange",void 0),be([V("loadPaymentDataCallback"),V("loadpaymentdatacallback"),V("onloadpaymentdata")],Q.prototype,"onLoadPaymentData",void 0),be([V("cancelCallback"),V("cancelcallback"),V("oncancel")],Q.prototype,"onCancel",void 0),be([V("errorCallback"),V("errorcallback"),V("onerror")],Q.prototype,"onError",void 0),be([V("clickCallback"),V("clickcallback"),V("onclick")],Q.prototype,"onClick",void 0),customElements.define("google-pay-button",Q);const jr={version:"0.61.52"},pe=[{type:"text",placeholder:"Insert your Full Name here...",id:"fullName",required:!0,label:"Full Name",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Insert your Street/Square address with number...",id:"addressWithNumber",required:!0,label:"Street/Square/...",validationTip:"This field cannot be empty."},{id:"name-row2",type:"row",params:{columns:[{type:"text",placeholder:"Insert your nationality here...",id:"nationality",required:!0,label:"Nationality",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Insert your city name here...",id:"city",required:!0,label:"City",validationTip:"This field cannot be empty."},{type:"number",placeholder:"Insert your zip code here...",id:"zip",required:!0,label:"Zip",validationTip:"This field cannot be empty."}]}}];function ws(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var on={exports:{}},$s=on.exports,zr;function xs(){return zr||(zr=1,(function(t,e){(function(n,r){t.exports=r()})($s,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",l="day",h="week",v="month",f="quarter",d="year",y="date",E="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,oe=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var p=["th","st","nd","rd"],b=$%100;return"["+$+(p[(b-20)%10]||p[b]||p[0])+"]"}},j=function($,p,b){var g=String($);return!g||g.length>=p?$:""+Array(p+1-g.length).join(b)+$},Z={s:j,z:function($){var p=-$.utcOffset(),b=Math.abs(p),g=Math.floor(b/60),m=b%60;return(p<=0?"+":"-")+j(g,2,"0")+":"+j(m,2,"0")},m:function $(p,b){if(p.date()<b.date())return-$(b,p);var g=12*(b.year()-p.year())+(b.month()-p.month()),m=p.clone().add(g,v),k=b-m<0,c=p.clone().add(g+(k?-1:1),v);return+(-(g+(b-m)/(k?m-c:c-m))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:v,y:d,w:h,d:l,D:y,h:u,m:o,s:a,ms:s,Q:f}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},Y="en",re={};re[Y]=q;var me="$isDayjsObject",we=function($){return $ instanceof Oe||!(!$||!$[me])},te=function $(p,b,g){var m;if(!p)return Y;if(typeof p=="string"){var k=p.toLowerCase();re[k]&&(m=k),b&&(re[k]=b,m=k);var c=p.split("-");if(!m&&c.length>1)return $(c[0])}else{var _=p.name;re[_]=p,m=_}return!g&&m&&(Y=m),m||!g&&Y},H=function($,p){if(we($))return $.clone();var b=typeof p=="object"?p:{};return b.date=$,b.args=arguments,new Oe(b)},A=Z;A.l=te,A.i=we,A.w=function($,p){return H($,{locale:p.$L,utc:p.$u,x:p.$x,$offset:p.$offset})};var Oe=(function(){function $(b){this.$L=te(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[me]=!0}var p=$.prototype;return p.parse=function(b){this.$d=(function(g){var m=g.date,k=g.utc;if(m===null)return new Date(NaN);if(A.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var c=m.match(C);if(c){var _=c[2]-1||0,w=(c[7]||"0").substring(0,3);return k?new Date(Date.UTC(c[1],_,c[3]||1,c[4]||0,c[5]||0,c[6]||0,w)):new Date(c[1],_,c[3]||1,c[4]||0,c[5]||0,c[6]||0,w)}}return new Date(m)})(b),this.init()},p.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},p.$utils=function(){return A},p.isValid=function(){return this.$d.toString()!==E},p.isSame=function(b,g){var m=H(b);return this.startOf(g)<=m&&m<=this.endOf(g)},p.isAfter=function(b,g){return H(b)<this.startOf(g)},p.isBefore=function(b,g){return this.endOf(g)<H(b)},p.$g=function(b,g,m){return A.u(b)?this[g]:this.set(m,b)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(b,g){var m=this,k=!!A.u(g)||g,c=A.p(b),_=function(B,S){var U=A.w(m.$u?Date.UTC(m.$y,S,B):new Date(m.$y,S,B),m);return k?U:U.endOf(l)},w=function(B,S){return A.w(m.toDate()[B].apply(m.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(S)),m)},x=this.$W,P=this.$M,M=this.$D,F="set"+(this.$u?"UTC":"");switch(c){case d:return k?_(1,0):_(31,11);case v:return k?_(1,P):_(0,P+1);case h:var z=this.$locale().weekStart||0,W=(x<z?x+7:x)-z;return _(k?M-W:M+(6-W),P);case l:case y:return w(F+"Hours",0);case u:return w(F+"Minutes",1);case o:return w(F+"Seconds",2);case a:return w(F+"Milliseconds",3);default:return this.clone()}},p.endOf=function(b){return this.startOf(b,!1)},p.$set=function(b,g){var m,k=A.p(b),c="set"+(this.$u?"UTC":""),_=(m={},m[l]=c+"Date",m[y]=c+"Date",m[v]=c+"Month",m[d]=c+"FullYear",m[u]=c+"Hours",m[o]=c+"Minutes",m[a]=c+"Seconds",m[s]=c+"Milliseconds",m)[k],w=k===l?this.$D+(g-this.$W):g;if(k===v||k===d){var x=this.clone().set(y,1);x.$d[_](w),x.init(),this.$d=x.set(y,Math.min(this.$D,x.daysInMonth())).$d}else _&&this.$d[_](w);return this.init(),this},p.set=function(b,g){return this.clone().$set(b,g)},p.get=function(b){return this[A.p(b)]()},p.add=function(b,g){var m,k=this;b=Number(b);var c=A.p(g),_=function(P){var M=H(k);return A.w(M.date(M.date()+Math.round(P*b)),k)};if(c===v)return this.set(v,this.$M+b);if(c===d)return this.set(d,this.$y+b);if(c===l)return _(1);if(c===h)return _(7);var w=(m={},m[o]=r,m[u]=i,m[a]=n,m)[c]||1,x=this.$d.getTime()+b*w;return A.w(x,this)},p.subtract=function(b,g){return this.add(-1*b,g)},p.format=function(b){var g=this,m=this.$locale();if(!this.isValid())return m.invalidDate||E;var k=b||"YYYY-MM-DDTHH:mm:ssZ",c=A.z(this),_=this.$H,w=this.$m,x=this.$M,P=m.weekdays,M=m.months,F=m.meridiem,z=function(S,U,ae,K){return S&&(S[U]||S(g,k))||ae[U].slice(0,K)},W=function(S){return A.s(_%12||12,S,"0")},B=F||function(S,U,ae){var K=S<12?"AM":"PM";return ae?K.toLowerCase():K};return k.replace(oe,(function(S,U){return U||(function(ae){switch(ae){case"YY":return String(g.$y).slice(-2);case"YYYY":return A.s(g.$y,4,"0");case"M":return x+1;case"MM":return A.s(x+1,2,"0");case"MMM":return z(m.monthsShort,x,M,3);case"MMMM":return z(M,x);case"D":return g.$D;case"DD":return A.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return z(m.weekdaysMin,g.$W,P,2);case"ddd":return z(m.weekdaysShort,g.$W,P,3);case"dddd":return P[g.$W];case"H":return String(_);case"HH":return A.s(_,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return B(_,w,!0);case"A":return B(_,w,!1);case"m":return String(w);case"mm":return A.s(w,2,"0");case"s":return String(g.$s);case"ss":return A.s(g.$s,2,"0");case"SSS":return A.s(g.$ms,3,"0");case"Z":return c}return null})(S)||c.replace(":","")}))},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(b,g,m){var k,c=this,_=A.p(g),w=H(b),x=(w.utcOffset()-this.utcOffset())*r,P=this-w,M=function(){return A.m(c,w)};switch(_){case d:k=M()/12;break;case v:k=M();break;case f:k=M()/3;break;case h:k=(P-x)/6048e5;break;case l:k=(P-x)/864e5;break;case u:k=P/i;break;case o:k=P/r;break;case a:k=P/n;break;default:k=P}return m?k:A.a(k)},p.daysInMonth=function(){return this.endOf(v).$D},p.$locale=function(){return re[this.$L]},p.locale=function(b,g){if(!b)return this.$L;var m=this.clone(),k=te(b,g,!0);return k&&(m.$L=k),m},p.clone=function(){return A.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},$})(),Tt=Oe.prototype;return H.prototype=Tt,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",l],["$M",v],["$y",d],["$D",y]].forEach((function($){Tt[$[1]]=function(p){return this.$g(p,$[0],$[1])}})),H.extend=function($,p){return $.$i||($(p,Oe,H),$.$i=!0),H},H.locale=te,H.isDayjs=we,H.unix=function($){return H(1e3*$)},H.en=re[Y],H.Ls=re,H.p={},H}))})(on)),on.exports}var Es=xs();const ks=ws(Es);var mt={},Fr;function Cs(){if(Fr)return mt;Fr=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.LanguageTranslator=void 0,mt.getChildStyleToPass=t,mt.addComponent=e;function t(r,i){var s,a,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(f){return Object.keys(r).includes(f.name)}))===null||a===void 0)&&a.length))for(var u=function(f){var d=i?.filter(function(y){return y.name===f&&y.defaultValue!==r[f]});d&&(o+="".concat(f,":").concat(r[f],";"))},l=0,h=Object.keys(r);l<h.length;l++){var v=h[l];u(v)}}catch(f){console.error("error getting child style to pass",f)}finally{return o}}function e(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var a=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(a),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var u=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(u+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(l){console.warn(l)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,a){return r.formatDate(i,s,a||this.lang)},r.getDefaultLang=function(){var i,s,a,o="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var u="",l=r.getDefaultLang();if(!a||l!==a){var h=s?.[l];h?.[i]&&(u=h[i])}return u},r.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||r.getDefaultLang(),s);return o.format(i)},r})();return mt.LanguageTranslator=n,mt}var Br=Cs(),Ss=se('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-162a4cu"/>'),Ts=se('<h1 class="title svelte-162a4cu" part="title">Checkout</h1>'),Ms=se('<div class="dataentry svelte-162a4cu"><span class="dataentry_value svelte-162a4cu"> </span></div>'),Ps=se('<div class="dataentrycontainer svelte-162a4cu"><!></div>'),As=se('<h4 class="subtitle svelte-162a4cu" part="subtitle"><button class="btn btn-sm detail_btn svelte-162a4cu">edit</button></h4> <div class="dataentrycontainer svelte-162a4cu"><div class="dataentry svelte-162a4cu"><span class="dataentry_key svelte-162a4cu">Name</span><span class="dataentry_value svelte-162a4cu"> </span></div> <div class="dataentry svelte-162a4cu"><span class="dataentry_key svelte-162a4cu">Address</span><span class="dataentry_value svelte-162a4cu"> </span></div></div>',1),Ns=se('<h4 class="subtitle svelte-162a4cu" part="subtitle">Address</h4> <div class="svelte-162a4cu"><hb-form></hb-form> <div class="svelte-162a4cu"><button style="width:100%;margin-bottom:10px" class="btn btn-primary svelte-162a4cu">continue</button></div></div>',3),Rs=se('<h4 style="margin-top:20px" class="subtitle svelte-162a4cu" part="subtitle"><span class="detail_label svelte-162a4cu"><i class="bi bi-truck svelte-162a4cu"></i> Shipment Service</span><button class="btn btn-sm detail_btn svelte-162a4cu">edit</button></h4> <div class="dataentrycontainer svelte-162a4cu"><div class="dataentry svelte-162a4cu"><span class="dataentry_key svelte-162a4cu">Shipping Fee</span><span class="dataentry_value svelte-162a4cu"> </span></div> <div class="dataentry svelte-162a4cu"><span class="dataentry_key svelte-162a4cu">Arrive</span><span class="dataentry_value svelte-162a4cu"> </span></div></div>',1),Ds=se('<h4 class="subtitle svelte-162a4cu" part="subtitle" style="margin-top:20px"><i class="bi bi-truck svelte-162a4cu"></i> Shipment Service</h4> <div class="svelte-162a4cu"><hb-form></hb-form> <div class="svelte-162a4cu"><button style="width:100%" class="btn btn-primary svelte-162a4cu">continue</button></div></div>',3),Is=se('<h4 style="margin-top:20px" class="subtitle svelte-162a4cu" part="subtitle"><span class="detail_label svelte-162a4cu"><i class="bi bi-truck svelte-162a4cu"></i> Shipment Service</span><button class="btn btn-sm detail_btn svelte-162a4cu">edit</button></h4> <div class="dataentrycontainer svelte-162a4cu"><div class="dataentry svelte-162a4cu"><span class="dataentry_key svelte-162a4cu">Shipping Fee</span><span class="dataentry_value svelte-162a4cu"> </span></div> <div class="dataentry svelte-162a4cu"><span class="dataentry_key svelte-162a4cu">Shipping Time</span><span class="dataentry_value svelte-162a4cu"> </span></div></div>',1),Os=se('<div id="shipment_separator" class="svelte-162a4cu"><!></div>'),Ls=se("<hb-payment-paypal></hb-payment-paypal>",2),qs=se("<google-pay-button></google-pay-button>",2),js=se('<div class="payment_button_container svelte-162a4cu"><!></div>'),zs=se('<div id="payment_btn_container" class="svelte-162a4cu"></div>'),Fs=se('By Clicking..<button class="btn btn-default svelte-162a4cu">Terms and conditions</button>',1),Bs=se('<h3 class="subtitle svelte-162a4cu" part="subtitle"><i class="bi bi-wallet2 svelte-162a4cu"></i> Payment Method</h3> <!> <div class="footer_note svelte-162a4cu"><!></div>',1),Vs=se('<div id="payment_completed_content" class="svelte-162a4cu"><div id="payment_completed_title" class="svelte-162a4cu">payment completed</div> <div id="payment_completed_content" class="svelte-162a4cu"> </div> <div id="payment_completed_footer" class="svelte-162a4cu"><button class="btn btn-link svelte-162a4cu">invoice</button></div></div>'),Us=se('<!> <div id="border_top" class="svelte-162a4cu"><div class="svelte-162a4cu"><h3 class="subtitle svelte-162a4cu" part="subtitle"><i class="bi bi-send-fill svelte-162a4cu"></i> Delivery</h3> <!></div> <!></div> <div class="payment_title svelte-162a4cu"><!></div>',1);const Ys={hash:"svelte-162a4cu",code:`@charset "UTF-8";
26
12
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
27
13
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
28
14
  /*!
@@ -30,28 +16,28 @@
30
16
  * Copyright 2011-2021 The Bootstrap Authors
31
17
  * Copyright 2011-2021 Twitter, Inc.
32
18
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
33
- */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-94r8nt,
34
- .svelte-94r8nt::before,
35
- .svelte-94r8nt::after {box-sizing:border-box;}
19
+ */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-162a4cu,
20
+ .svelte-162a4cu::before,
21
+ .svelte-162a4cu::after {box-sizing:border-box;}
36
22
  @media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
37
- } h4.svelte-94r8nt, h3.svelte-94r8nt, h1.svelte-94r8nt {margin-top:0;margin-bottom:0.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color);}h1.svelte-94r8nt {font-size:calc(1.375rem + 1.5vw);}
38
- @media (min-width: 1200px) {h1.svelte-94r8nt {font-size:2.5rem;}
23
+ } h4.svelte-162a4cu, h3.svelte-162a4cu, h1.svelte-162a4cu {margin-top:0;margin-bottom:0.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color);}h1.svelte-162a4cu {font-size:calc(1.375rem + 1.5vw);}
24
+ @media (min-width: 1200px) {h1.svelte-162a4cu {font-size:2.5rem;}
39
25
  }
40
26
  @media (min-width: 1200px) {
41
- }h3.svelte-94r8nt {font-size:calc(1.3rem + 0.6vw);}
42
- @media (min-width: 1200px) {h3.svelte-94r8nt {font-size:1.75rem;}
43
- }h4.svelte-94r8nt {font-size:calc(1.275rem + 0.3vw);}
44
- @media (min-width: 1200px) {h4.svelte-94r8nt {font-size:1.5rem;}
45
- }button.svelte-94r8nt {border-radius:0;}button.svelte-94r8nt:focus:not(:focus-visible) {outline:0;}
46
- button.svelte-94r8nt {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button.svelte-94r8nt {text-transform:none;}button.svelte-94r8nt {-webkit-appearance:button;}button.svelte-94r8nt:not(:disabled) {cursor:pointer;}.svelte-94r8nt::-moz-focus-inner {padding:0;border-style:none;}
27
+ }h3.svelte-162a4cu {font-size:calc(1.3rem + 0.6vw);}
28
+ @media (min-width: 1200px) {h3.svelte-162a4cu {font-size:1.75rem;}
29
+ }h4.svelte-162a4cu {font-size:calc(1.275rem + 0.3vw);}
30
+ @media (min-width: 1200px) {h4.svelte-162a4cu {font-size:1.5rem;}
31
+ }button.svelte-162a4cu {border-radius:0;}button.svelte-162a4cu:focus:not(:focus-visible) {outline:0;}
32
+ button.svelte-162a4cu {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button.svelte-162a4cu {text-transform:none;}button.svelte-162a4cu {-webkit-appearance:button;}button.svelte-162a4cu:not(:disabled) {cursor:pointer;}.svelte-162a4cu::-moz-focus-inner {padding:0;border-style:none;}
47
33
  @media (min-width: 1200px) {
48
- }.svelte-94r8nt::-webkit-datetime-edit-fields-wrapper,
49
- .svelte-94r8nt::-webkit-datetime-edit-text,
50
- .svelte-94r8nt::-webkit-datetime-edit-minute,
51
- .svelte-94r8nt::-webkit-datetime-edit-hour-field,
52
- .svelte-94r8nt::-webkit-datetime-edit-day-field,
53
- .svelte-94r8nt::-webkit-datetime-edit-month-field,
54
- .svelte-94r8nt::-webkit-datetime-edit-year-field {padding:0;}.svelte-94r8nt::-webkit-inner-spin-button {height:auto;}
34
+ }.svelte-162a4cu::-webkit-datetime-edit-fields-wrapper,
35
+ .svelte-162a4cu::-webkit-datetime-edit-text,
36
+ .svelte-162a4cu::-webkit-datetime-edit-minute,
37
+ .svelte-162a4cu::-webkit-datetime-edit-hour-field,
38
+ .svelte-162a4cu::-webkit-datetime-edit-day-field,
39
+ .svelte-162a4cu::-webkit-datetime-edit-month-field,
40
+ .svelte-162a4cu::-webkit-datetime-edit-year-field {padding:0;}.svelte-162a4cu::-webkit-inner-spin-button {height:auto;}
55
41
  /* rtl:raw:
56
42
  [type="tel"],
57
43
  [type="url"],
@@ -59,7 +45,7 @@ button.svelte-94r8nt {margin:0;font-family:inherit;font-size:inherit;line-height
59
45
  [type="number"] {
60
46
  direction: ltr;
61
47
  }
62
- */.svelte-94r8nt::-webkit-search-decoration {-webkit-appearance:none;}.svelte-94r8nt::-webkit-color-swatch-wrapper {padding:0;}.svelte-94r8nt::file-selector-button {font:inherit;-webkit-appearance:button;}
48
+ */.svelte-162a4cu::-webkit-search-decoration {-webkit-appearance:none;}.svelte-162a4cu::-webkit-color-swatch-wrapper {padding:0;}.svelte-162a4cu::file-selector-button {font:inherit;-webkit-appearance:button;}
63
49
  @media (min-width: 1200px) {
64
50
  }
65
51
  @media (min-width: 1200px) {
@@ -91,9 +77,9 @@ button.svelte-94r8nt {margin:0;font-family:inherit;font-size:inherit;line-height
91
77
  @media (min-width: 1200px) {
92
78
  }
93
79
  @media (min-width: 1400px) {
94
- }.btn.svelte-94r8nt {--bs-btn-padding-x: 0.75rem;--bs-btn-padding-y: 0.375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: var(--bs-border-radius);--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity: 0.65;--bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
95
- @media (prefers-reduced-motion: reduce) {.btn.svelte-94r8nt {transition:none;}
96
- }.btn.svelte-94r8nt:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-94r8nt:focus-visible {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow);} .svelte-94r8nt:not(.btn-check) + .btn:where(.svelte-94r8nt):active, .btn.svelte-94r8nt:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .svelte-94r8nt:not(.btn-check) + .btn:where(.svelte-94r8nt):active:focus-visible, .btn.svelte-94r8nt:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-94r8nt:disabled {color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity);}.btn-primary.svelte-94r8nt {--bs-btn-color: #fff;--bs-btn-bg: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(11.05, 93.5, 215.05);--bs-btn-hover-border-color: rgb(10.4, 88, 202.4);--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(10.4, 88, 202.4);--bs-btn-active-border-color: rgb(9.75, 82.5, 189.75);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;}.btn-link.svelte-94r8nt {--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: 0 0 0 #000;--bs-btn-focus-shadow-rgb: 49, 132, 253;text-decoration:underline;}.btn-link.svelte-94r8nt:focus-visible {color:var(--bs-btn-color);}.btn-link.svelte-94r8nt:hover {color:var(--bs-btn-hover-color);}.btn-sm.svelte-94r8nt {--bs-btn-padding-y: 0.25rem;--bs-btn-padding-x: 0.5rem;--bs-btn-font-size: 0.875rem;--bs-btn-border-radius: var(--bs-border-radius-sm);}
80
+ }.btn.svelte-162a4cu {--bs-btn-padding-x: 0.75rem;--bs-btn-padding-y: 0.375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: var(--bs-border-radius);--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity: 0.65;--bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
81
+ @media (prefers-reduced-motion: reduce) {.btn.svelte-162a4cu {transition:none;}
82
+ }.btn.svelte-162a4cu:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-162a4cu:focus-visible {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow);} .svelte-162a4cu:not(.btn-check) + .btn:where(.svelte-162a4cu):active, .btn.svelte-162a4cu:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .svelte-162a4cu:not(.btn-check) + .btn:where(.svelte-162a4cu):active:focus-visible, .btn.svelte-162a4cu:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-162a4cu:disabled {color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity);}.btn-primary.svelte-162a4cu {--bs-btn-color: #fff;--bs-btn-bg: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(11.05, 93.5, 215.05);--bs-btn-hover-border-color: rgb(10.4, 88, 202.4);--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(10.4, 88, 202.4);--bs-btn-active-border-color: rgb(9.75, 82.5, 189.75);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;}.btn-link.svelte-162a4cu {--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: 0 0 0 #000;--bs-btn-focus-shadow-rgb: 49, 132, 253;text-decoration:underline;}.btn-link.svelte-162a4cu:focus-visible {color:var(--bs-btn-color);}.btn-link.svelte-162a4cu:hover {color:var(--bs-btn-hover-color);}.btn-sm.svelte-162a4cu {--bs-btn-padding-y: 0.25rem;--bs-btn-padding-x: 0.5rem;--bs-btn-font-size: 0.875rem;--bs-btn-border-radius: var(--bs-border-radius-sm);}
97
83
  /* rtl:begin:remove */
98
84
  /* rtl:end:remove */
99
85
  @media (min-width: 576px) {
@@ -109,13 +95,5 @@ button.svelte-94r8nt {margin:0;font-family:inherit;font-size:inherit;line-height
109
95
  @media (min-width: 1200px) {
110
96
  }
111
97
  @media print {
112
- }:host {--edit-color: blue;--paypal-button-color: yellow;--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;}#payment_completed_content.svelte-94r8nt {text-align:center;}#payment_completed_title.svelte-94r8nt {margin:30px;text-transform:capitalize;font-size:2em;font-weight:bold;}#payment_btn_container.svelte-94r8nt {display:flex;}.payment_button_container.svelte-94r8nt {flex:1;margin:15px;display:inline-block;text-align:center;}.payment_button.svelte-94r8nt {height:40px;width:100%;max-width:50vw;}.detail_label.svelte-94r8nt {font-size:0.8em;font-weight:bold;}.dataentry_key.svelte-94r8nt {margin-right:3px;}.dataentry_key.svelte-94r8nt::after {content:":";}.detail_btn.svelte-94r8nt {float:right;margin-right:10px;color:var(--edit-color);font-weight:bold;text-transform:capitalize;}.dataentry.svelte-94r8nt {line-height:30px;}.footer_note.svelte-94r8nt {text-align:center;font-size:12px;padding:5px;line-height:30px;}.subtitle.svelte-94r8nt {margin-bottom:30px;}.title.svelte-94r8nt {text-align:center;border-bottom:var(--hb-checkout-border);padding-bottom:20px;}.payment_title.svelte-94r8nt {margin-top:20px;border-top:var(--hb-checkout-border);padding-top:10px;}`};function Br(e,t){Un(t,!0),ia(e,Za);/**
113
- * Svelte Payment Page WebComponent
114
- * =====================
115
- *
116
- * @contributors: Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)
117
- *
118
- * @license: MIT License
119
- *
120
- */let n=ve(""),r=ve("");at({});const i={type:"plain",total:0,currencyCode:"EUR",countryCode:"IT",merchantName:"merchant"};let s=$t(t,"id",7,""),a=$t(t,"shipments",23,()=>[]),o=$t(t,"user",7,void 0),c=$t(t,"gateways",23,()=>[]),u=$t(t,"payment",7,i),d=$t(t,"completed",7,"no");const h=[{type:"radio",placeholder:"Insert your Full Name here...",id:"shipmentsolution",required:!0,label:"Shipment",validationTip:"This field cannot be empty.",params:{options:[]}}];let f=ve(!1),v=ve(!1),b=ve("no"),w=ve("no");Ai(()=>{if(typeof u()=="string"&&u(JSON.parse(u())||i),typeof a()=="string"&&a(JSON.parse(a())||[]),typeof c()=="string"){c(JSON.parse(c())||[]);for(const l of c())l.cardNetworks?.length||(l.cardNetworks=["VISA","MASTERCARD"])}if(u().type||(u().type="buy"),typeof o()=="string"&&(o(JSON.parse(o())),o())){for(const l of Object.keys(o()))if(fe?.find?.(m=>m.id===l))fe[fe?.findIndex?.(m=>m.id===l)].value=o()[l];else if(fe?.find?.(m=>m.params?.columns?.length&&m.params.columns?.find?.(g=>g.id===l))){const m=fe?.findIndex?.(E=>E.params?.columns?.length&&E.params.columns.find(k=>k.id===l)),g=fe[m].params?.columns?.findIndex?.(E=>E.id===l);fe[m].params&&(g||g===0)&&(fe[m].params.columns[g].value=o()[l])}}h?.[0]?.params&&(h[0].params.options=a().map(l=>({value:l.id,label:l.label+" "+l.price+l.currency}))),h[0]&&a()&&(a().find(l=>l.selected)||a().find(l=>l.standard))&&(a().find(l=>l.selected)||a().find(l=>l.standard))?.id&&(h[0].value=(a().find(l=>l.selected)||a().find(l=>l.standard))?.id)});function C(l){console.log("saveuser",l);const m={fullName:l.fullName,addressWithNumber:l.addressWithNumber,city:l.city,zip:l.zip,nationality:l.nationality};for(const g of Object.keys(l))if(fe.find(E=>E.id===g))fe[fe.findIndex(E=>E.id===g)].value=l[g];else if(fe.find(E=>E.params?.columns?.length&&E.params.columns.find(k=>k.id===g))){const E=fe.findIndex(T=>T.params?.columns?.length&&T.params.columns.find(S=>S.id===g)),k=fe[E].params?.columns.findIndex(T=>T.id===g);k&&(fe[E].params.columns[k].value=l[g])}o(m),re(f,!1),re(b,"no"),console.log("edited"),x("saveUser",o())}function U(l){console.log("saveShipment",l);const m=l?.shipmentsolution;if(m&&a().find(g=>g.id===m)){a().forEach(E=>E.selected=!1);const g=a().findIndex(E=>E.id===m);a()[g].selected=!0,re(v,!1),h[0].value=m,x("saveShipment",a()[g])}re(w,"no")}function x(l,m){t.$$host.dispatchEvent(new CustomEvent(l,{detail:m}))}Lr.addComponent({repoName:"@htmlbricks/hb-form",version:Ar.version}),Lr.addComponent({repoName:"@htmlbricks/hb-payment-paypal",version:Ar.version});function M(l){d("yes"),x("paymentCompleted",{total:u()?.total,method:l,completed:!0})}var G={get id(){return s()},set id(l=""){s(l),rt()},get shipments(){return a()},set shipments(l=[]){a(l),rt()},get user(){return o()},set user(l=void 0){o(l),rt()},get gateways(){return c()},set gateways(l=[]){c(l),rt()},get payment(){return u()},set payment(l=i){u(l),rt()},get completed(){return d()},set completed(l="no"){d(l),rt()}},q=Xa();Ji(l=>{var m=Ra();K(l,m)});var te=ge(q);Bt(te,t,"title",{},l=>{var m=Na();K(l,m)});var ne=Z(te,2),le=L(ne),ae=Z(L(le),2);{var Y=l=>{var m=Da(),g=L(m);Bt(g,t,"userinfo",{},E=>{var k=gt(),T=ge(k);{var S=R=>{var H=Aa(),F=L(H),z=L(F,!0);D(F),D(H),we(()=>Ze(z,o().fullName)),K(R,H)};De(T,R=>{o().fullName&&R(S)})}K(E,k)}),D(m),K(l,m)},P=l=>{var m=gt(),g=ge(m);{var E=T=>{var S=Oa(),R=ge(S),H=L(R);H.__click=[Pa,f,v],D(R);var F=Z(R,2),z=L(F),W=Z(L(z)),J=L(W,!0);D(W),D(z);var X=Z(z,2),Q=Z(L(X)),ee=L(Q,!0);D(Q),D(X),D(F),we(()=>{Ze(J,o().fullName),Ze(ee,`${o().addressWithNumber}, ${o().city}, ${o().zip},${o().nationality}`)}),K(T,S)},k=T=>{var S=La(),R=Z(ge(S),2),H=L(R);Ee(H,"hide_submit","yes"),Cn(H,j(n)),we(()=>Ee(H,"schema",JSON.stringify(fe))),we(()=>Ee(H,"submitted",j(b))),Vt(H,1,"svelte-94r8nt");var F=Z(H,2),z=L(F);z.__click=[Ia,b],D(F),D(R),Ft("submit",H,W=>{C(W.detail)}),K(T,S)};De(g,T=>{o()?.fullName&&o()?.addressWithNumber&&!j(f)?T(E):T(k,!1)},!0)}K(l,m)};De(ae,l=>{o()?.fixed&&!j(f)?l(Y):l(P,!1)})}D(le);var pe=Z(le,2);{var I=l=>{var m=Ba(),g=L(m);{var E=T=>{var S=gt(),R=ge(S);{var H=z=>{var W=qa(),J=ge(W),X=Z(L(J));X.__click=[Fr,f,v],D(J);var Q=Z(J,2),ee=L(Q),Ue=Z(L(ee)),xt=L(Ue,!0);D(Ue),D(ee);var Ye=Z(ee,2),xe=Z(L(Ye)),Pe=L(xe,!0);D(xe),D(Ye),D(Q),we((Oe,Ka)=>{Ze(xt,Oe),Ze(Pe,Ka)},[()=>(a().find(Oe=>Oe.selected)||a().find(Oe=>Oe.standard))?.price,()=>Ca((a().find(Oe=>Oe.selected)||a().find(Oe=>Oe.standard))?.arriveDate).format()]),K(z,W)},F=z=>{var W=za(),J=Z(ge(W),2),X=L(J);Ee(X,"hide_submit","yes"),Cn(X,j(n)),we(()=>Ee(X,"schema",JSON.stringify(h))),we(()=>Ee(X,"submitted",j(w))),Vt(X,1,"svelte-94r8nt");var Q=Z(X,2),ee=L(Q);ee.__click=[ja,w],D(Q),D(J),Ft("submit",X,Ue=>{U(Ue.detail)}),K(z,W)};De(R,z=>{!j(v)&&typeof a()=="object"&&a()?.length&&(a().find(W=>W.selected)||a().find(W=>W.standard))?z(H):z(F,!1)})}K(T,S)},k=T=>{var S=gt(),R=ge(S);{var H=F=>{var z=Fa(),W=ge(z),J=Z(L(W));J.__click=[Fr,f,v],D(W);var X=Z(W,2),Q=L(X),ee=Z(L(Q)),Ue=L(ee,!0);D(ee),D(Q);var xt=Z(Q,2),Ye=Z(L(xt)),xe=L(Ye,!0);D(Ye),D(xt),D(X),we((Pe,Oe)=>{Ze(Ue,Pe),Ze(xe,Oe)},[()=>(a().find(Pe=>Pe.selected)||a().find(Pe=>Pe.standard))?.price,()=>(a().find(Pe=>Pe.selected)||a().find(Pe=>Pe.standard))?.arriveDate]),K(F,z)};De(R,F=>{!j(v)&&a()&&typeof a()=="object"&&(a().find(z=>z.selected)||a().find(z=>z.standard))&&F(H)},!0)}K(T,S)};De(g,T=>{(o()?.fullName&&o()?.addressWithNumber||o()?.fixed)&&!j(f)?T(E):T(k,!1)})}D(m),K(l,m)};De(pe,l=>{a()?.length&&l(I)})}D(ne);var p=Z(ne,2),_=L(p);{var y=l=>{var m=Ga(),g=Z(ge(m),2);{var E=S=>{var R=Ha();na(R,21,c,H=>H.id,(H,F)=>{var z=Ya(),W=L(z);{var J=Q=>{var ee=Va();Cn(ee,j(r)),Vt(ee,1,"payment_button svelte-94r8nt"),we(()=>Ee(ee,"paypalid",j(F).paypalid)),we(()=>Ee(ee,"total",u()?.total?.toString())),Ft("paymentCompleted",ee,Ue=>M("paypal")),K(Q,ee)},X=Q=>{var ee=gt(),Ue=ge(ee);{var xt=Ye=>{var xe=Ua();Vt(xe,1,"payment_button svelte-94r8nt"),Ee(xe,"environment","TEST"),we(()=>Ee(xe,"button-type",u()?.type?.toLowerCase())),Ee(xe,"button-color","black"),Ee(xe,"button-size-mode","fill"),we(()=>Ee(xe,"paymentRequest",{apiVersion:2,apiVersionMinor:0,merchantInfo:{merchantName:u().merchantName,merchantId:j(F).gatewayMerchantId},allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:j(F).cardNetworks},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:j(F).gatewayId,gatewayMerchantId:j(F).gatewayMerchantId}}}],transactionInfo:{totalPriceStatus:"FINAL",totalPriceLabel:"Total",totalPrice:u()?.total?.toString(),currencyCode:u()?.currencyCode?.toUpperCase(),countryCode:u()?.countryCode?.toUpperCase(),checkoutOption:"COMPLETE_IMMEDIATE_PURCHASE"}})),Ft("loadpaymentdata",xe,Pe=>{M("google")}),K(Ye,xe)};De(Ue,Ye=>{j(F).id==="google"&&u().countryCode&&Ye(xt)},!0)}K(Q,ee)};De(W,Q=>{j(F).id==="paypal"?Q(J):Q(X,!1)})}D(z),K(H,z)}),D(R),K(S,R)};De(g,S=>{!j(f)&&!j(v)&&(a()?.find?.(R=>R.selected)||a()?.find?.(R=>R.standard)||!a()?.length)&&S(E)})}var k=Z(g,2),T=L(k);Bt(T,t,"payment_terms",{},S=>{var R=Wa();zn(),K(S,R)}),D(k),K(l,m)},$=l=>{var m=gt(),g=ge(m);Bt(g,t,"payment_completed",{},E=>{var k=Ja(),T=Z(L(k),2),S=L(T);D(T),zn(2),D(k),we(()=>Ze(S,`Total: ${u().total??""}`)),K(E,k)}),K(l,m)};De(_,l=>{d()!=="yes"?l(y):l($,!1)})}return D(p),K(e,q),Yn(G)}Wi(["click"]),customElements.define("hb-checkout",ba(Br,{id:{},shipments:{},user:{},gateways:{},payment:{},completed:{}},["title","userinfo","payment_terms","payment_completed"],[],!0)),Pn.Component=Br,Object.defineProperty(Pn,Symbol.toStringTag,{value:"Module"})})(this.checkout=this.checkout||{});
98
+ }:host {--edit-color: blue;--paypal-button-color: yellow;--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;}#payment_completed_content.svelte-162a4cu {text-align:center;}#payment_completed_title.svelte-162a4cu {margin:30px;text-transform:capitalize;font-size:2em;font-weight:bold;}#payment_btn_container.svelte-162a4cu {display:flex;}.payment_button_container.svelte-162a4cu {flex:1;margin:15px;display:inline-block;text-align:center;}.payment_button.svelte-162a4cu {height:40px;width:100%;max-width:50vw;}.detail_label.svelte-162a4cu {font-size:0.8em;font-weight:bold;}.dataentry_key.svelte-162a4cu {margin-right:3px;}.dataentry_key.svelte-162a4cu::after {content:":";}.detail_btn.svelte-162a4cu {float:right;margin-right:10px;color:var(--edit-color);font-weight:bold;text-transform:capitalize;}.dataentry.svelte-162a4cu {line-height:30px;}.footer_note.svelte-162a4cu {text-align:center;font-size:12px;padding:5px;line-height:30px;}.subtitle.svelte-162a4cu {margin-bottom:30px;}.title.svelte-162a4cu {text-align:center;border-bottom:var(--hb-checkout-border);padding-bottom:20px;}.payment_title.svelte-162a4cu {margin-top:20px;border-top:var(--hb-checkout-border);padding-top:10px;}`};function Vr(t,e){Yn(e,!0),rs(t,Ys);let n=_e(""),r=_e("");dt({});const i={type:"plain",total:0,currencyCode:"EUR",countryCode:"IT",merchantName:"merchant"};let s=St(e,"id",7,""),a=St(e,"shipments",23,()=>[]),o=St(e,"user",7,void 0),u=St(e,"gateways",23,()=>[]),l=St(e,"payment",7,i),h=St(e,"completed",7,"no");const v=[{type:"radio",placeholder:"Insert your Full Name here...",id:"shipmentsolution",required:!0,label:"Shipment",validationTip:"This field cannot be empty.",params:{options:[]}}];let f=_e(!1),d=_e(!1),y=_e("no"),E=_e("no");Di(()=>{if(typeof l()=="string"&&l(JSON.parse(l())||i),typeof a()=="string"&&a(JSON.parse(a())||[]),typeof u()=="string"){u(JSON.parse(u())||[]);for(const c of u())c.cardNetworks?.length||(c.cardNetworks=["VISA","MASTERCARD"])}if(l().type||(l().type="buy"),typeof o()=="string"&&(o(JSON.parse(o())),o())){for(const c of Object.keys(o()))if(pe?.find?.(_=>_.id===c))pe[pe?.findIndex?.(_=>_.id===c)].value=o()[c];else if(pe?.find?.(_=>_.params?.columns?.length&&_.params.columns?.find?.(w=>w.id===c))){const _=pe?.findIndex?.(x=>x.params?.columns?.length&&x.params.columns.find(P=>P.id===c)),w=pe[_].params?.columns?.findIndex?.(x=>x.id===c);pe[_].params&&(w||w===0)&&(pe[_].params.columns[w].value=o()[c])}}v?.[0]?.params&&(v[0].params.options=a().map(c=>({value:c.id,label:c.label+" "+c.price+c.currency}))),v[0]&&a()&&(a().find(c=>c.selected)||a().find(c=>c.standard))&&(a().find(c=>c.selected)||a().find(c=>c.standard))?.id&&(v[0].value=(a().find(c=>c.selected)||a().find(c=>c.standard))?.id)});function C(c){console.log("saveuser",c);const _={fullName:c.fullName,addressWithNumber:c.addressWithNumber,city:c.city,zip:c.zip,nationality:c.nationality};for(const w of Object.keys(c))if(pe.find(x=>x.id===w))pe[pe.findIndex(x=>x.id===w)].value=c[w];else if(pe.find(x=>x.params?.columns?.length&&x.params.columns.find(P=>P.id===w))){const x=pe.findIndex(M=>M.params?.columns?.length&&M.params.columns.find(F=>F.id===w)),P=pe[x].params?.columns.findIndex(M=>M.id===w);P&&(pe[x].params.columns[P].value=c[w])}o(_),X(f,!1),X(y,"no"),console.log("edited"),q("saveUser",o())}function oe(c){console.log("saveShipment",c);const _=c?.shipmentsolution;if(_&&a().find(w=>w.id===_)){a().forEach(x=>x.selected=!1);const w=a().findIndex(x=>x.id===_);a()[w].selected=!0,X(d,!1),v[0].value=_,q("saveShipment",a()[w])}X(E,"no")}function q(c,_){e.$$host.dispatchEvent(new CustomEvent(c,{detail:_}))}Br.addComponent({repoName:"@htmlbricks/hb-form",version:jr.version}),Br.addComponent({repoName:"@htmlbricks/hb-payment-paypal",version:jr.version});function j(){X(f,!0),X(d,!1)}function Z(){X(f,!1),X(d,!0)}function Y(c){h("yes"),q("paymentCompleted",{total:l()?.total,method:c,completed:!0})}var re={get id(){return s()},set id(c=""){s(c),ut()},get shipments(){return a()},set shipments(c=[]){a(c),ut()},get user(){return o()},set user(c=void 0){o(c),ut()},get gateways(){return u()},set gateways(c=[]){u(c),ut()},get payment(){return l()},set payment(c=i){l(c),ut()},get completed(){return h()},set completed(c="no"){h(c),ut()}},me=Us();ns("162a4cu",c=>{var _=Ss();G(c,_)});var we=ke(me);tn(we,e,"title",{},c=>{var _=Ts();G(c,_)});var te=J(we,2),H=D(te),A=J(D(H),2);{var Oe=c=>{var _=Ps(),w=D(_);tn(w,e,"userinfo",{},x=>{var P=kt(),M=ke(P);{var F=z=>{var W=Ms(),B=D(W),S=D(B,!0);N(B),N(W),Ce(()=>it(S,o().fullName)),G(z,W)};ze(M,z=>{o().fullName&&z(F)})}G(x,P)}),N(_),G(c,_)},Tt=c=>{var _=kt(),w=ke(_);{var x=M=>{var F=As(),z=ke(F),W=D(z);W.__click=j,N(z);var B=J(z,2),S=D(B),U=J(D(S)),ae=D(U,!0);N(U),N(S);var K=J(S,2),ie=J(D(K)),ne=D(ie,!0);N(ie),N(K),N(B),Ce(()=>{it(ae,o().fullName),it(ne,`${o().addressWithNumber}, ${o().city}, ${o().zip},${o().nationality}`)}),G(M,F)},P=M=>{var F=Ns(),z=J(ke(F),2),W=D(z);Te(W,"hide_submit","yes"),Mn(W,O(n)),Ce(()=>Te(W,"schema",JSON.stringify(pe))),Ce(()=>Te(W,"submitted",O(y))),nn(W,1,"svelte-162a4cu");var B=J(W,2),S=D(B);S.__click=()=>{X(y,"yes"),setTimeout(()=>{X(y,"no")},200)},N(B),N(z),en("submit",W,U=>{C(U.detail)}),G(M,F)};ze(w,M=>{o()?.fullName&&o()?.addressWithNumber&&!O(f)?M(x):M(P,!1)},!0)}G(c,_)};ze(A,c=>{o()?.fixed&&!O(f)?c(Oe):c(Tt,!1)})}N(H);var $=J(H,2);{var p=c=>{var _=Os(),w=D(_);{var x=M=>{var F=kt(),z=ke(F);{var W=S=>{var U=Rs(),ae=ke(U),K=J(D(ae));K.__click=Z,N(ae);var ie=J(ae,2),ne=D(ie),Ke=J(D(ne)),Mt=D(Ke,!0);N(Ke),N(ne);var Xe=J(ne,2),Me=J(D(Xe)),Le=D(Me,!0);N(Me),N(Xe),N(ie),Ce((Fe,Hs)=>{it(Mt,Fe),it(Le,Hs)},[()=>(a().find(Fe=>Fe.selected)||a().find(Fe=>Fe.standard))?.price,()=>ks((a().find(Fe=>Fe.selected)||a().find(Fe=>Fe.standard))?.arriveDate).format()]),G(S,U)},B=S=>{var U=Ds(),ae=J(ke(U),2),K=D(ae);Te(K,"hide_submit","yes"),Mn(K,O(n)),Ce(()=>Te(K,"schema",JSON.stringify(v))),Ce(()=>Te(K,"submitted",O(E))),nn(K,1,"svelte-162a4cu");var ie=J(K,2),ne=D(ie);ne.__click=()=>{X(E,"yes"),setTimeout(()=>{X(E,"no")},200)},N(ie),N(ae),en("submit",K,Ke=>{oe(Ke.detail)}),G(S,U)};ze(z,S=>{!O(d)&&typeof a()=="object"&&a()?.length&&(a().find(U=>U.selected)||a().find(U=>U.standard))?S(W):S(B,!1)})}G(M,F)},P=M=>{var F=kt(),z=ke(F);{var W=B=>{var S=Is(),U=ke(S),ae=J(D(U));ae.__click=Z,N(U);var K=J(U,2),ie=D(K),ne=J(D(ie)),Ke=D(ne,!0);N(ne),N(ie);var Mt=J(ie,2),Xe=J(D(Mt)),Me=D(Xe,!0);N(Xe),N(Mt),N(K),Ce((Le,Fe)=>{it(Ke,Le),it(Me,Fe)},[()=>(a().find(Le=>Le.selected)||a().find(Le=>Le.standard))?.price,()=>(a().find(Le=>Le.selected)||a().find(Le=>Le.standard))?.arriveDate]),G(B,S)};ze(z,B=>{!O(d)&&a()&&typeof a()=="object"&&(a().find(S=>S.selected)||a().find(S=>S.standard))&&B(W)},!0)}G(M,F)};ze(w,M=>{(o()?.fullName&&o()?.addressWithNumber||o()?.fixed)&&!O(f)?M(x):M(P,!1)})}N(_),G(c,_)};ze($,c=>{a()?.length&&c(p)})}N(te);var b=J(te,2),g=D(b);{var m=c=>{var _=Bs(),w=J(ke(_),2);{var x=F=>{var z=zs();es(z,21,u,W=>W.id,(W,B)=>{var S=js(),U=D(S);{var ae=ie=>{var ne=Ls();Mn(ne,O(r)),nn(ne,1,"payment_button svelte-162a4cu"),Ce(()=>Te(ne,"paypalid",O(B).paypalid)),Ce(()=>Te(ne,"total",l()?.total?.toString())),en("paymentCompleted",ne,Ke=>Y("paypal")),G(ie,ne)},K=ie=>{var ne=kt(),Ke=ke(ne);{var Mt=Xe=>{var Me=qs();nn(Me,1,"payment_button svelte-162a4cu"),Te(Me,"environment","TEST"),Ce(()=>Te(Me,"button-type",l()?.type?.toLowerCase())),Te(Me,"button-color","black"),Te(Me,"button-size-mode","fill"),Ce(()=>Te(Me,"paymentRequest",{apiVersion:2,apiVersionMinor:0,merchantInfo:{merchantName:l().merchantName,merchantId:O(B).gatewayMerchantId},allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:O(B).cardNetworks},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:O(B).gatewayId,gatewayMerchantId:O(B).gatewayMerchantId}}}],transactionInfo:{totalPriceStatus:"FINAL",totalPriceLabel:"Total",totalPrice:l()?.total?.toString(),currencyCode:l()?.currencyCode?.toUpperCase(),countryCode:l()?.countryCode?.toUpperCase(),checkoutOption:"COMPLETE_IMMEDIATE_PURCHASE"}})),en("loadpaymentdata",Me,Le=>{Y("google")}),G(Xe,Me)};ze(Ke,Xe=>{O(B).id==="google"&&l().countryCode&&Xe(Mt)},!0)}G(ie,ne)};ze(U,ie=>{O(B).id==="paypal"?ie(ae):ie(K,!1)})}N(S),G(W,S)}),N(z),G(F,z)};ze(w,F=>{!O(f)&&!O(d)&&(a()?.find?.(z=>z.selected)||a()?.find?.(z=>z.standard)||!a()?.length)&&F(x)})}var P=J(w,2),M=D(P);tn(M,e,"payment_terms",{},F=>{var z=Fs();pn(),G(F,z)}),N(P),G(c,_)},k=c=>{var _=kt(),w=ke(_);tn(w,e,"payment_completed",{},x=>{var P=Vs(),M=J(D(P),2),F=D(M);N(M),pn(2),N(P),Ce(()=>it(F,`Total: ${l().total??""}`)),G(x,P)}),G(c,_)};ze(g,c=>{h()!=="yes"?c(m):c(k,!1)})}return N(b),G(t,me),Hn(re)}Hi(["click"]),customElements.define("hb-checkout",vs(Vr,{id:{},shipments:{},user:{},gateways:{},payment:{},completed:{}},["title","userinfo","payment_terms","payment_completed"],[],!0)),Rn.Component=Vr,Object.defineProperty(Rn,Symbol.toStringTag,{value:"Module"})})(this.checkout=this.checkout||{});
121
99
  //# sourceMappingURL=main.iife.js.map