@htmlbricks/hb-payment-paypal 0.62.0 → 0.62.2

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,5 +1,5 @@
1
- (function(Je){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const rr=2,Ge="[",Ze="[!",Qe="]",ge={},g=Symbol(),Xe=!1;var nr=Array.isArray,sr=Array.prototype.indexOf,ir=Array.from,me=Object.keys,ye=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,or=Object.prototype,lr=Array.prototype,ar=Object.getPrototypeOf,et=Object.isExtensible;function fr(e){for(var t=0;t<e.length;t++)e[t]()}function ur(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const p=2,Me=4,cr=8,F=16,H=32,V=64,we=128,A=512,w=1024,E=2048,L=4096,z=8192,G=16384,Fe=32768,$e=65536,tt=1<<17,rt=1<<18,se=1<<19,dr=1<<20,ae=32768,Le=1<<21,nt=1<<22,fe=1<<23,Be=Symbol("$state"),hr=Symbol("legacy props"),st=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ee=8;function br(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function _r(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function vr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function gr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function mr(){throw new Error("https://svelte.dev/e/hydration_failed")}function yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $r(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Er(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function it(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function xr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let N=!1;function xe(e){N=e}let m;function ue(e){if(e===null)throw it(),ge;return m=e}function ot(){return ue(oe(m))}function Sr(e=1){if(N){for(var t=e,r=m;t--;)r=oe(r);m=r}}function kr(e=!0){for(var t=0,r=m;;){if(r.nodeType===Ee){var n=r.data;if(n===Qe){if(t===0)return r;t-=1}else(n===Ge||n===Ze)&&(t+=1)}var s=oe(r);e&&r.remove(),r=s}}function lt(e){return e===this.v}function Tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Or(e){return!Tr(e,this.v)}let Cr=!1,T=null;function Se(e){T=e}function at(e,t=!1,r){T={p:T,i:!1,c:null,e:null,s:e,x:null,l:null}}function ft(e){var t=T,r=t.e;if(r!==null){t.e=null;for(var n of r)Rt(n)}return e!==void 0&&(t.x=e),t.i=!0,T=t.p,e??{}}function ut(){return!0}let Z=[];function ct(){var e=Z;Z=[],fr(e)}function Ue(e){if(Z.length===0&&!ce){var t=Z;queueMicrotask(()=>{t===Z&&ct()})}Z.push(e)}function Rr(){for(;Z.length>0;)ct()}function dt(e){var t=_;if(t===null)return b.f|=fe,e;if((t.f&Fe)===0){if((t.f&we)===0)throw e;t.b.error(e)}else ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&we)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Te=new Set;let x=null,S=null,I=[],Oe=null,qe=!1,ce=!1;class j{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#a=0;#i=0;#f=null;#o=[];#s=[];skipped_effects=new Set;is_fork=!1;process(t){I=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#r(n,r);this.is_fork||this.#l(),this.#i>0||this.is_fork?(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects)):(x=null,bt(r.render_effects),bt(r.effects),this.#f?.resolve()),S=null}#r(t,r){t.f^=w;for(var n=t.first;n!==null;){var s=n.f,i=(s&(H|V))!==0,o=i&&(s&w)!==0,l=o||(s&z)!==0||this.skipped_effects.has(n);if((n.f&we)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){i?n.f^=w:(s&Me)!==0?r.effects.push(n):ve(n)&&((n.f&F)!==0&&r.block_effects.push(n),pe(n));var a=n.first;if(a!==null){n=a;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#n(t){for(const r of t)((r.f&E)!==0?this.#o:this.#s).push(r),$(r,w)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&fe)===0&&(this.current.set(t,t.v),S?.set(t,t.v))}activate(){x=this,this.apply()}deactivate(){x=null,S=null}flush(){if(this.activate(),I.length>0){if(ht(),x!==null&&x!==this)return}else this.#a===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#l(){if(this.#i===0){for(const t of this.#t)t();this.#t.clear()}this.#a===0&&this.#u()}#u(){if(Te.size>1){this.previous.clear();var t=S,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Te){if(s===this){r=!1;continue}const i=[];for(const[l,a]of this.current){if(s.current.has(l))if(r&&a!==s.current.get(l))s.current.set(l,a);else continue;i.push(l)}if(i.length===0)continue;const o=[...s.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){const l=new Set,a=new Map;for(const f of i)_t(f,o,l,a);if(I.length>0){x=s,s.apply();for(const f of I)s.#r(f,n);I=[],s.deactivate()}}}x=null,S=t}this.committed=!0,Te.delete(this)}increment(t){this.#a+=1,t&&(this.#i+=1)}decrement(t){this.#a-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#o)$(t,E),ie(t);for(const t of this.#s)$(t,L),ie(t);this.#o=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=ur()).promise}static ensure(){if(x===null){const t=x=new j;Te.add(x),ce||j.enqueue(()=>{x===t&&t.flush()})}return x}static enqueue(t){Ue(t)}apply(){}}function de(e){var t=ce;ce=!0;try{for(var r;;){if(Rr(),I.length===0&&(x?.flush(),I.length===0))return Oe=null,r;ht()}}finally{ce=t}}function ht(){var e=ee;qe=!0;try{var t=0;for(Dt(!0);I.length>0;){var r=j.ensure();if(t++>1e3){var n,s;Ar()}r.process(I),W.clear()}}finally{qe=!1,Dt(e),Oe=null}}function Ar(){try{gr()}catch(e){ke(e,Oe)}}let B=null;function bt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(G|z))===0&&ve(n)&&(B=new Set,pe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Pt(n):n.fn=null),B?.size>0)){W.clear();for(const s of B){if((s.f&(G|z))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)B.has(o)&&(B.delete(o),i.push(o)),o=o.parent;for(let l=i.length-1;l>=0;l--){const a=i[l];(a.f&(G|z))===0&&pe(a)}}B.clear()}}B=null}}function _t(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&p)!==0?_t(s,t,r,n):(i&(nt|F))!==0&&(i&E)===0&&vt(s,t,n)&&($(s,E),ie(s))}}function vt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&p)!==0&&vt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function ie(e){for(var t=Oe=e;t.parent!==null;){t=t.parent;var r=t.f;if(qe&&t===_&&(r&F)!==0&&(r&rt)===0)return;if((r&(V|H))!==0){if((r&w)===0)return;t.f^=w}}I.push(t)}function Nr(e){let t=0,r=Ce(0),n;return()=>{Re()&&(M(r),At(()=>(t===0&&(n=Vt(()=>e(()=>he(r)))),t+=1,()=>{Ue(()=>{t-=1,t===0&&(n?.(),n=void 0,he(r))})})))}}var jr=$e|se|we;function Pr(e,t,r){new Ir(e,t,r)}class Ir{parent;#t=!1;#e;#a=N?m:null;#i;#f;#o;#s=null;#r=null;#n=null;#l=null;#u=null;#h=0;#c=0;#b=!1;#d=null;#m=Nr(()=>(this.#d=Ce(this.#h),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#i=r,this.#f=n,this.parent=_.b,this.#t=!!this.#i.pending,this.#o=zr(()=>{if(_.b=this,N){const i=this.#a;ot(),i.nodeType===Ee&&i.data===Ze?this.#w():this.#y()}else{var s=this.#p();try{this.#s=X(()=>n(s))}catch(i){this.error(i)}this.#c>0?this.#v():this.#t=!1}return()=>{this.#u?.remove()}},jr),N&&(this.#e=m)}#y(){try{this.#s=X(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#i.pending;t&&(this.#r=X(()=>t(this.#e)),j.enqueue(()=>{var r=this.#p();this.#s=this.#_(()=>(j.ensure(),X(()=>this.#f(r)))),this.#c>0?this.#v():(Ae(this.#r,()=>{this.#r=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=kt(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#_(t){var r=_,n=b,s=T;J(this.#o),O(this.#o),Se(this.#o.ctx);try{return t()}catch(i){return dt(i),null}finally{J(r),O(n),Se(s)}}#v(){const t=this.#i.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),Gr(this.#s,this.#l)),this.#r===null&&(this.#r=X(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#r&&Ae(this.#r,()=>{this.#r=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#g(t),this.#h+=t,this.#d&&yt(this.#d,this.#h)}get_effect_pending(){return this.#m(),M(this.#d)}error(t){var r=this.#i.onerror;let n=this.#i.failed;if(this.#b||!r&&!n)throw t;this.#s&&(P(this.#s),this.#s=null),this.#r&&(P(this.#r),this.#r=null),this.#n&&(P(this.#n),this.#n=null),N&&(ue(this.#a),Sr(),ue(kr()));var s=!1,i=!1;const o=()=>{if(s){xr();return}s=!0,i&&Er(),j.ensure(),this.#h=0,this.#n!==null&&Ae(this.#n,()=>{this.#n=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#b=!1,X(()=>this.#f(this.#e)))),this.#c>0?this.#v():this.#t=!1};var l=b;try{O(null),i=!0,r?.(t,o),i=!1}catch(a){ke(a,this.#o&&this.#o.parent)}finally{O(l)}n&&Ue(()=>{this.#n=this.#_(()=>{j.ensure(),this.#b=!0;try{return X(()=>{n(this.#e,()=>t,()=>o)})}catch(a){return ke(a,this.#o.parent),null}finally{this.#b=!1}})})}}function Dr(e){var t=p|E,r=b!==null&&(b.f&p)!==0?b:null;return _!==null&&(_.f|=se),{ctx:T,deps:null,effects:null,equals:lt,f:t,fn:e,reactions:null,rv:0,v:g,wv:0,parent:r??_,ac:null}}function pt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)P(t[r])}}function Mr(e){for(var t=e.parent;t!==null;){if((t.f&p)===0)return t;t=t.parent}return null}function Ye(e){var t,r=_;J(Mr(e));try{e.f&=~ae,pt(e),t=qt(e)}finally{J(r)}return t}function gt(e){var t=Ye(e);if(e.equals(t)||(e.v=t,e.wv=Bt()),!te)if(S!==null)Re()&&S.set(e,e.v);else{var r=(e.f&A)===0?L:w;$(e,r)}}let He=new Set;const W=new Map;let mt=!1;function Ce(e,t){var r={f:0,v:e,reactions:null,equals:lt,rv:0,wv:0};return r}function K(e,t){const r=Ce(e);return Zr(r),r}function Fr(e,t=!1,r=!0){const n=Ce(e);return t||(n.equals=Or),n}function U(e,t,r=!1){b!==null&&(!D||(b.f&tt)!==0)&&ut()&&(b.f&(p|F|nt|tt))!==0&&!q?.includes(e)&&$r();let n=r?be(t):t;return yt(e,n)}function yt(e,t){if(!e.equals(t)){var r=e.v;te?W.set(e,t):W.set(e,r),e.v=t;var n=j.ensure();n.capture(e,r),(e.f&p)!==0&&((e.f&E)!==0&&Ye(e),$(e,(e.f&A)!==0?w:L)),e.wv=Bt(),wt(e,E),_!==null&&(_.f&w)!==0&&(_.f&(H|V))===0&&(C===null?Qr([e]):C.push(e)),!n.is_fork&&He.size>0&&!mt&&Lr()}return t}function Lr(){mt=!1;const e=Array.from(He);for(const t of e)(t.f&w)!==0&&$(t,L),ve(t)&&pe(t);He.clear()}function he(e){U(e,e.v+1)}function wt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,l=(o&E)===0;if(l&&$(i,t),(o&p)!==0){var a=i;S?.delete(a),(o&ae)===0&&(o&A&&(i.f|=ae),wt(a,L))}else l&&((o&F)!==0&&B!==null&&B.add(i),ie(i))}}function be(e){if(typeof e!="object"||e===null||Be in e)return e;const t=ar(e);if(t!==or&&t!==lr)return e;var r=new Map,n=nr(e),s=K(0),i=re,o=l=>{if(re===i)return l();var a=b,f=re;O(null),Lt(i);var d=l();return O(a),Lt(f),d};return n&&r.set("length",K(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&yr();var d=r.get(a);return d===void 0?d=o(()=>{var h=K(f.value);return r.set(a,h),h}):U(d,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const d=o(()=>K(g));r.set(a,d),he(s)}}else U(f,g),he(s);return!0},get(l,a,f){if(a===Be)return e;var d=r.get(a),h=a in l;if(d===void 0&&(!h||ne(l,a)?.writable)&&(d=o(()=>{var u=be(h?l[a]:g),v=K(u);return v}),r.set(a,d)),d!==void 0){var c=M(d);return c===g?void 0:c}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var d=r.get(a);d&&(f.value=M(d))}else if(f===void 0){var h=r.get(a),c=h?.v;if(h!==void 0&&c!==g)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(l,a){if(a===Be)return!0;var f=r.get(a),d=f!==void 0&&f.v!==g||Reflect.has(l,a);if(f!==void 0||_!==null&&(!d||ne(l,a)?.writable)){f===void 0&&(f=o(()=>{var c=d?be(l[a]):g,u=K(c);return u}),r.set(a,f));var h=M(f);if(h===g)return!1}return d},set(l,a,f,d){var h=r.get(a),c=a in l;if(n&&a==="length")for(var u=f;u<h.v;u+=1){var v=r.get(u+"");v!==void 0?U(v,g):u in l&&(v=o(()=>K(g)),r.set(u+"",v))}if(h===void 0)(!c||ne(l,a)?.writable)&&(h=o(()=>K(void 0)),U(h,be(f)),r.set(a,h));else{c=h.v!==g;var R=o(()=>be(f));U(h,R)}var Y=Reflect.getOwnPropertyDescriptor(l,a);if(Y?.set&&Y.set.call(d,f),!c){if(n&&typeof a=="string"){var De=r.get("length"),Ke=Number(a);Number.isInteger(Ke)&&Ke>=De.v&&U(De,Ke+1)}he(s)}return!0},ownKeys(l){M(s);var a=Reflect.ownKeys(l).filter(h=>{var c=r.get(h);return c===void 0||c.v!==g});for(var[f,d]of r)d.v!==g&&!(f in l)&&a.push(f);return a},setPrototypeOf(){wr()}})}var $t,Et,xt,St;function Ve(){if($t===void 0){$t=window,Et=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;xt=ne(t,"firstChild").get,St=ne(t,"nextSibling").get,et(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),et(r)&&(r.__t=void 0)}}function kt(e=""){return document.createTextNode(e)}function Tt(e){return xt.call(e)}function oe(e){return St.call(e)}function Br(e){e.textContent=""}function Ot(e){var t=b,r=_;O(null),J(null);try{return e()}finally{O(t),J(r)}}function Ur(e){_===null&&(b===null&&pr(),vr()),te&&_r()}function qr(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Q(e,t,r,n=!0){var s=_;s!==null&&(s.f&z)!==0&&(e|=z);var i={ctx:T,deps:null,nodes_start:null,nodes_end:null,f:e|E|A,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{pe(i),i.f|=Fe}catch(a){throw P(i),a}else t!==null&&ie(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&se)===0&&(o=o.first,(e&F)!==0&&(e&$e)!==0&&o!==null&&(o.f|=$e)),o!==null&&(o.parent=s,s!==null&&qr(o,s),b!==null&&(b.f&p)!==0&&(e&V)===0)){var l=b;(l.effects??=[]).push(o)}}return i}function Re(){return b!==null&&!D}function Ct(e){Ur();var t=_.f,r=!b&&(t&H)!==0&&(t&Fe)===0;if(r){var n=T;(n.e??=[]).push(e)}else return Rt(e)}function Rt(e){return Q(Me|dr,e,!1)}function Yr(e){j.ensure();const t=Q(V|se,e,!0);return()=>{P(t)}}function Hr(e){j.ensure();const t=Q(V|se,e,!0);return(r={})=>new Promise(n=>{r.outro?Ae(t,()=>{P(t),n(void 0)}):(P(t),n(void 0))})}function Vr(e){return Q(Me,e,!1)}function At(e,t=0){return Q(cr|t,e,!0)}function zr(e,t=0){var r=Q(F|t,e,!0);return r}function X(e,t=!0){return Q(H|se,e,!0,t)}function Nt(e){var t=e.teardown;if(t!==null){const r=te,n=b;Mt(!0),O(null);try{t.call(null)}finally{Mt(r),O(n)}}}function jt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Ot(()=>{s.abort(st)});var n=r.next;(r.f&V)!==0?r.parent=null:P(r,t),r=n}}function Wr(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&H)===0&&P(t),t=r}}function P(e,t=!0){var r=!1;(t||(e.f&rt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Kr(e.nodes_start,e.nodes_end),r=!0),jt(e,t&&!r),Ne(e,0),$(e,G);var n=e.transitions;if(n!==null)for(const i of n)i.stop();Nt(e);var s=e.parent;s!==null&&s.first!==null&&Pt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Kr(e,t){for(;e!==null;){var r=e===t?null:oe(e);e.remove(),e=r}}function Pt(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ae(e,t,r=!0){var n=[];It(e,n,!0),Jr(n,()=>{r&&P(e),t&&t()})}function Jr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function It(e,t,r){if((e.f&z)===0){if(e.f^=z,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&$e)!==0||(n.f&H)!==0&&(e.f&F)!==0;It(n,t,i?r:!1),n=s}}}function Gr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:oe(r);t.append(r),r=s}}let ee=!1;function Dt(e){ee=e}let te=!1;function Mt(e){te=e}let b=null,D=!1;function O(e){b=e}let _=null;function J(e){_=e}let q=null;function Zr(e){b!==null&&(q===null?q=[e]:q.push(e))}let y=null,k=0,C=null;function Qr(e){C=e}let Ft=1,_e=0,re=_e;function Lt(e){re=e}function Bt(){return++Ft}function ve(e){var t=e.f;if((t&E)!==0)return!0;if(t&p&&(e.f&=~ae),(t&L)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(ve(i)&&gt(i),i.wv>e.wv)return!0}(t&A)!==0&&S===null&&$(e,w)}return!1}function Ut(e,t,r=!0){var n=e.reactions;if(n!==null&&!q?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&p)!==0?Ut(i,t,!1):t===i&&(r?$(i,E):(i.f&w)!==0&&$(i,L),ie(i))}}function qt(e){var t=y,r=k,n=C,s=b,i=q,o=T,l=D,a=re,f=e.f;y=null,k=0,C=null,b=(f&(H|V))===0?e:null,q=null,Se(e.ctx),D=!1,re=++_e,e.ac!==null&&(Ot(()=>{e.ac.abort(st)}),e.ac=null);try{e.f|=Le;var d=e.fn,h=d(),c=e.deps;if(y!==null){var u;if(Ne(e,k),c!==null&&k>0)for(c.length=k+y.length,u=0;u<y.length;u++)c[k+u]=y[u];else e.deps=c=y;if(ee&&Re()&&(e.f&A)!==0)for(u=k;u<c.length;u++)(c[u].reactions??=[]).push(e)}else c!==null&&k<c.length&&(Ne(e,k),c.length=k);if(ut()&&C!==null&&!D&&c!==null&&(e.f&(p|L|E))===0)for(u=0;u<C.length;u++)Ut(C[u],e);return s!==null&&s!==e&&(_e++,C!==null&&(n===null?n=C:n.push(...C))),(e.f&fe)!==0&&(e.f^=fe),h}catch(v){return dt(v)}finally{e.f^=Le,y=t,k=r,C=n,b=s,q=i,Se(o),D=l,re=a}}function Xr(e,t){let r=t.reactions;if(r!==null){var n=sr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&p)!==0&&(y===null||!y.includes(t))&&($(t,L),(t.f&A)!==0&&(t.f^=A,t.f&=~ae),pt(t),Ne(t,0))}function Ne(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xr(e,r[n])}function pe(e){var t=e.f;if((t&G)===0){$(e,w);var r=_,n=ee;_=e,ee=!0;try{(t&F)!==0?Wr(e):jt(e),Nt(e);var s=qt(e);e.teardown=typeof s=="function"?s:null,e.wv=Ft;var i;Xe&&Cr&&(e.f&E)!==0&&e.deps}finally{ee=n,_=r}}}function M(e){var t=e.f,r=(t&p)!==0;if(b!==null&&!D){var n=_!==null&&(_.f&G)!==0;if(!n&&!q?.includes(e)){var s=b.deps;if((b.f&Le)!==0)e.rv<_e&&(e.rv=_e,y===null&&s!==null&&s[k]===e?k++:y===null?y=[e]:y.includes(e)||y.push(e));else{(b.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[b]:i.includes(b)||i.push(b)}}}if(te){if(W.has(e))return W.get(e);if(r){var o=e,l=o.v;return((o.f&w)===0&&o.reactions!==null||Ht(o))&&(l=Ye(o)),W.set(o,l),l}}else if(r){if(o=e,S?.has(o))return S.get(o);ve(o)&&gt(o),ee&&Re()&&(o.f&A)===0&&Yt(o)}else if(S?.has(e))return S.get(e);if((e.f&fe)!==0)throw e.v;return e.v}function Yt(e){if(e.deps!==null){e.f^=A;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&p)!==0&&(t.f&A)===0&&Yt(t)}}function Ht(e){if(e.v===g)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(W.has(t)||(t.f&p)!==0&&Ht(t))return!0;return!1}function Vt(e){var t=D;try{return D=!0,e()}finally{D=t}}const en=-7169;function $(e,t){e.f=e.f&en|t}const tn=new Set,zt=new Set;let Wt=null;function je(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Wt=e;var o=0,l=Wt===e&&e.__root;if(l){var a=s.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(i=s[o]||e.target,i!==t){ye(e,"currentTarget",{configurable:!0,get(){return i||r}});var d=b,h=_;O(null),J(null);try{for(var c,u=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var R=i["__"+n];R!=null&&(!i.disabled||e.target===i)&&R.call(i,e)}catch(Y){c?u.push(Y):c=Y}if(e.cancelBubble||v===t||v===null)break;i=v}if(c){for(let Y of u)queueMicrotask(()=>{throw Y});throw c}}finally{e.__root=t,delete e.currentTarget,O(d),J(h)}}}function rn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ze(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function nn(e,t){var r=(t&rr)!==0,n,s=!e.startsWith("<!>");return()=>{if(N)return ze(m,null),m;n===void 0&&(n=rn(s?e:"<!>"+e),n=Tt(n));var i=r||Et?document.importNode(n,!0):n.cloneNode(!0);return ze(i,i),i}}function Kt(e,t){if(N){_.nodes_end=m,ot();return}e!==null&&e.before(t)}const sn=["touchstart","touchmove"];function on(e){return sn.includes(e)}function Jt(e,t){return Gt(e,t)}function ln(e,t){Ve(),t.intro=t.intro??!1;const r=t.target,n=N,s=m;try{for(var i=Tt(r);i&&(i.nodeType!==Ee||i.data!==Ge);)i=oe(i);if(!i)throw ge;xe(!0),ue(i);const o=Gt(e,{...t,anchor:i});return xe(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==ge&&console.warn("Failed to hydrate: ",o),t.recover===!1&&mr(),Ve(),Br(r),xe(!1),Jt(e,t)}finally{xe(n),ue(s)}}const le=new Map;function Gt(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){Ve();var l=new Set,a=h=>{for(var c=0;c<h.length;c++){var u=h[c];if(!l.has(u)){l.add(u);var v=on(u);t.addEventListener(u,je,{passive:v});var R=le.get(u);R===void 0?(document.addEventListener(u,je,{passive:v}),le.set(u,1)):le.set(u,R+1)}}};a(ir(tn)),zt.add(a);var f=void 0,d=Hr(()=>{var h=r??t.appendChild(kt());return Pr(h,{pending:()=>{}},c=>{if(i){at({});var u=T;u.c=i}if(s&&(n.$$events=s),N&&ze(c,null),f=e(c,n)||{},N&&(_.nodes_end=m,m===null||m.nodeType!==Ee||m.data!==Qe))throw it(),ge;i&&ft()}),()=>{for(var c of l){t.removeEventListener(c,je);var u=le.get(c);--u===0?(document.removeEventListener(c,je),le.delete(c)):le.set(c,u)}zt.delete(a),h!==r&&h.parentNode?.removeChild(h)}});return We.set(f,d),f}let We=new WeakMap;function an(e,t){const r=We.get(e);return r?(We.delete(e),r(t)):Promise.resolve()}function fn(e){T===null&&br(),Ct(()=>{const t=Vt(e);if(typeof t=="function")return t})}function un(e,t){Vr(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function Pe(e,t,r,n){var s=n,i=!0,o=()=>(i&&(i=!1,s=n),s),l;l=e[t],l===void 0&&n!==void 0&&(l=o());var a;a=()=>{var c=e[t];return c===void 0?o():(i=!0,c)};var f=!1,d=Dr(()=>(f=!1,a())),h=_;return(function(c,u){if(arguments.length>0){const v=u?M(d):c;return U(d,v),f=!0,s!==void 0&&(s=v),c}return te&&f||(h.f&G)!==0?d.v:M(d)})}function cn(e){return new dn(e)}class dn{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var l=Fr(o,!1,!1);return r.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return M(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===hr?!0:(M(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,l){return U(r.get(o)??n(o,l),l),Reflect.set(i,o,l)}});this.#e=(t.hydrate?ln:Jt)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&de(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||ye(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{an(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Zt;typeof HTMLElement=="function"&&(Zt=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),Kt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=hn(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Ie(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=cn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Yr(()=>{At(()=>{this.$$r=!0;for(const n of me(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Ie(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ie(e,r,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 me(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ie(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function hn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function bn(e,t,r,n,s,i){let o=class extends Zt{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return me(t).map(l=>(t[l].attribute||l).toLowerCase())}};return me(t).forEach(l=>{ye(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Ie(l,a,t),this.$$d[l]=a;var f=this.$$c;if(f){var d=ne(f,l)?.get;d?f[l]=a:f.$set({[l]:a})}}})}),n.forEach(l=>{ye(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}function _n(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}typeof SuppressedError=="function"&&SuppressedError;function vn(e,t){var r=document.querySelector('script[src="'.concat(e,'"]'));if(r===null)return null;var n=Qt(e,t),s=r.cloneNode();if(delete s.dataset.uidAuto,Object.keys(s.dataset).length!==Object.keys(n.dataset).length)return null;var i=!0;return Object.keys(s.dataset).forEach(function(o){s.dataset[o]!==n.dataset[o]&&(i=!1)}),i?r:null}function pn(e){var t=e.url,r=e.attributes,n=e.onSuccess,s=e.onError,i=Qt(t,r);i.onerror=s,i.onload=n,document.head.insertBefore(i,document.head.firstElementChild)}function gn(e){var t=e.sdkBaseUrl,r=e.environment,n=_n(e,["sdkBaseUrl","environment"]),s=t||wn(r),i=n,o=Object.keys(i).filter(function(f){return typeof i[f]<"u"&&i[f]!==null&&i[f]!==""}).reduce(function(f,d){var h=i[d].toString();return d=mn(d),d.substring(0,4)==="data"||d==="crossorigin"?f.attributes[d]=h:f.queryParams[d]=h,f},{queryParams:{},attributes:{}}),l=o.queryParams,a=o.attributes;return l["merchant-id"]&&l["merchant-id"].indexOf(",")!==-1&&(a["data-merchant-id"]=l["merchant-id"],l["merchant-id"]="*"),{url:"".concat(s,"?").concat(yn(l)),attributes:a}}function mn(e){var t=function(r,n){return(n?"-":"")+r.toLowerCase()};return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,t)}function yn(e){var t="";return Object.keys(e).forEach(function(r){t.length!==0&&(t+="&"),t+=r+"="+e[r]}),t}function wn(e){return e==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function Qt(e,t){t===void 0&&(t={});var r=document.createElement("script");return r.src=e,Object.keys(t).forEach(function(n){r.setAttribute(n,t[n]),n==="data-csp-nonce"&&r.setAttribute("nonce",t["data-csp-nonce"])}),r}function $n(e,t){if(t===void 0&&(t=Promise),er(e,t),typeof document>"u")return t.resolve(null);var r=gn(e),n=r.url,s=r.attributes,i=s["data-namespace"]||"paypal",o=Xt(i);return s["data-js-sdk-library"]||(s["data-js-sdk-library"]="paypal-js"),vn(n,s)&&o?t.resolve(o):En({url:n,attributes:s},t).then(function(){var l=Xt(i);if(l)return l;throw new Error("The window.".concat(i," global variable is not available."))})}function En(e,t){t===void 0&&(t=Promise),er(e,t);var r=e.url,n=e.attributes;if(typeof r!="string"||r.length===0)throw new Error("Invalid url.");if(typeof n<"u"&&typeof n!="object")throw new Error("Expected attributes to be an object.");return new t(function(s,i){if(typeof document>"u")return s();pn({url:r,attributes:n,onSuccess:function(){return s()},onError:function(){var o=new Error('The script "'.concat(r,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return i(o)}})})}function Xt(e){return window[e]}function er(e,t){if(typeof e!="object"||e===null)throw new Error("Expected an options object.");var r=e.environment;if(r&&r!=="production"&&r!=="sandbox")throw new Error('The `environment` option must be either "production" or "sandbox".');if(typeof t<"u"&&typeof t!="function")throw new Error("Expected PromisePonyfill to be a function.")}var xn=nn('<div part="btn" id="paypalbtn" class="svelte-d34b58"></div>');const Sn={hash:"svelte-d34b58",code:`@charset "UTF-8";
1
+ (function(Ze){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const rr=2,Qe="[",Xe="[!",et="]",ge={},g=Symbol(),Le=!1;var nr=Array.isArray,sr=Array.prototype.indexOf,ir=Array.from,me=Object.keys,ye=Object.defineProperty,se=Object.getOwnPropertyDescriptor,or=Object.prototype,lr=Array.prototype,ar=Object.getPrototypeOf,tt=Object.isExtensible;function fr(e){for(var t=0;t<e.length;t++)e[t]()}function ur(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const p=2,Be=4,cr=8,F=16,H=32,V=64,we=128,N=512,$=1024,x=2048,L=4096,z=8192,W=16384,$e=32768,Ee=65536,rt=1<<17,nt=1<<18,ie=1<<19,dr=1<<20,Q=32768,Ue=1<<21,st=1<<22,fe=1<<23,qe=Symbol("$state"),hr=Symbol("legacy props"),it=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xe=8;function br(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function _r(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function vr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function gr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function mr(){throw new Error("https://svelte.dev/e/hydration_failed")}function yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $r(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Er(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ot(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function xr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let j=!1;function Se(e){j=e}let m;function ue(e){if(e===null)throw ot(),ge;return m=e}function lt(){return ue(le(m))}function Sr(e=1){if(j){for(var t=e,r=m;t--;)r=le(r);m=r}}function kr(e=!0){for(var t=0,r=m;;){if(r.nodeType===xe){var n=r.data;if(n===et){if(t===0)return r;t-=1}else(n===Qe||n===Xe)&&(t+=1)}var i=le(r);e&&r.remove(),r=i}}function at(e){return e===this.v}function Tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Or(e){return!Tr(e,this.v)}let Cr=!1,k=null;function ke(e){k=e}function ft(e,t=!1,r){k={p:k,i:!1,c:null,e:null,s:e,x:null,l:null}}function ut(e){var t=k,r=t.e;if(r!==null){t.e=null;for(var n of r)At(n)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function ct(){return!0}let X=[];function dt(){var e=X;X=[],fr(e)}function Ye(e){if(X.length===0&&!ce){var t=X;queueMicrotask(()=>{t===X&&dt()})}X.push(e)}function Rr(){for(;X.length>0;)dt()}function ht(e){var t=_;if(t===null)return b.f|=fe,e;if((t.f&$e)===0){if((t.f&we)===0)throw e;t.b.error(e)}else Te(e,t)}function Te(e,t){for(;t!==null;){if((t.f&we)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Oe=new Set;let y=null,T=null,O=[],Ce=null,He=!1,ce=!1;class P{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#a=0;#i=0;#f=null;#o=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#i>0}process(t){O=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#r(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects)):(y=null,_t(r.render_effects),_t(r.effects),this.#f?.resolve()),T=null}#r(t,r){t.f^=$;for(var n=t.first;n!==null;){var i=n.f,s=(i&(H|V))!==0,o=s&&(i&$)!==0,l=o||(i&z)!==0||this.skipped_effects.has(n);if((n.f&we)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){s?n.f^=$:(i&Be)!==0?r.effects.push(n):ve(n)&&((n.f&F)!==0&&r.block_effects.push(n),pe(n));var a=n.first;if(a!==null){n=a;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#n(t){for(const r of t)((r.f&x)!==0?this.#o:this.#s).push(r),this.#l(r.deps),E(r,$)}#l(t){if(t!==null)for(const r of t)(r.f&p)===0||(r.f&Q)===0||(r.f^=Q,this.#l(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&fe)===0&&(this.current.set(t,t.v),T?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y===this&&(y=null,T=null)}flush(){if(this.activate(),O.length>0){if(bt(),y!==null&&y!==this)return}else this.#a===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#i===0){for(const t of this.#t)t();this.#t.clear()}this.#a===0&&this.#c()}#c(){if(Oe.size>1){this.previous.clear();var t=T,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Oe){if(s===this){r=!1;continue}const o=[];for(const[a,f]of this.current){if(s.current.has(a))if(r&&f!==s.current.get(a))s.current.set(a,f);else continue;o.push(a)}if(o.length===0)continue;const l=[...s.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var i=O;O=[];const a=new Set,f=new Map;for(const c of o)vt(c,l,a,f);if(O.length>0){y=s,s.apply();for(const c of O)s.#r(c,n);s.deactivate()}O=i}}y=null,T=t}this.committed=!0,Oe.delete(this)}increment(t){this.#a+=1,t&&(this.#i+=1)}decrement(t){this.#a-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#o)E(t,x),oe(t);for(const t of this.#s)E(t,L),oe(t);this.#o=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=ur()).promise}static ensure(){if(y===null){const t=y=new P;Oe.add(y),ce||P.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){Ye(t)}apply(){}}function de(e){var t=ce;ce=!0;try{for(var r;;){if(Rr(),O.length===0&&(y?.flush(),O.length===0))return Ce=null,r;bt()}}finally{ce=t}}function bt(){var e=G;He=!0;var t=null;try{var r=0;for(je(!0);O.length>0;){var n=P.ensure();if(r++>1e3){var i,s;Ar()}n.process(O),K.clear()}}finally{He=!1,je(e),Ce=null}}function Ar(){try{gr()}catch(e){Te(e,Ce)}}let B=null;function _t(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(W|z))===0&&ve(n)&&(B=new Set,pe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?It(n):n.fn=null),B?.size>0)){K.clear();for(const i of B){if((i.f&(W|z))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)B.has(o)&&(B.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(W|z))===0&&pe(a)}}B.clear()}}B=null}}function vt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&p)!==0?vt(i,t,r,n):(s&(st|F))!==0&&(s&x)===0&&pt(i,t,n)&&(E(i,x),oe(i))}}function pt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&p)!==0&&pt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function oe(e){for(var t=Ce=e;t.parent!==null;){t=t.parent;var r=t.f;if(He&&t===_&&(r&F)!==0&&(r&nt)===0)return;if((r&(V|H))!==0){if((r&$)===0)return;t.f^=$}}O.push(t)}function Nr(e){let t=0,r=Re(0),n;return()=>{Ae()&&(M(r),Nt(()=>(t===0&&(n=Vt(()=>e(()=>he(r)))),t+=1,()=>{Ye(()=>{t-=1,t===0&&(n?.(),n=void 0,he(r))})})))}}var jr=Ee|ie|we;function Pr(e,t,r){new Ir(e,t,r)}class Ir{parent;#t=!1;#e;#a=j?m:null;#i;#f;#o;#s=null;#r=null;#n=null;#l=null;#u=null;#c=0;#d=0;#b=!1;#h=null;#m=Nr(()=>(this.#h=Re(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#i=r,this.#f=n,this.parent=_.b,this.#t=!!this.#i.pending,this.#o=zr(()=>{if(_.b=this,j){const s=this.#a;lt(),s.nodeType===xe&&s.data===Xe?this.#w():this.#y()}else{var i=this.#p();try{this.#s=te(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#v():this.#t=!1}return()=>{this.#u?.remove()}},jr),j&&(this.#e=m)}#y(){try{this.#s=te(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#i.pending;t&&(this.#r=te(()=>t(this.#e)),P.enqueue(()=>{var r=this.#p();this.#s=this.#_(()=>(P.ensure(),te(()=>this.#f(r)))),this.#d>0?this.#v():(Ne(this.#r,()=>{this.#r=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=Tt(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#_(t){var r=_,n=b,i=k;Z(this.#o),C(this.#o),ke(this.#o.ctx);try{return t()}catch(s){return ht(s),null}finally{Z(r),C(n),ke(i)}}#v(){const t=this.#i.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),Gr(this.#s,this.#l)),this.#r===null&&(this.#r=te(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#r&&Ne(this.#r,()=>{this.#r=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&wt(this.#h,this.#c)}get_effect_pending(){return this.#m(),M(this.#h)}error(t){var r=this.#i.onerror;let n=this.#i.failed;if(this.#b||!r&&!n)throw t;this.#s&&(I(this.#s),this.#s=null),this.#r&&(I(this.#r),this.#r=null),this.#n&&(I(this.#n),this.#n=null),j&&(ue(this.#a),Sr(),ue(kr()));var i=!1,s=!1;const o=()=>{if(i){xr();return}i=!0,s&&Er(),P.ensure(),this.#c=0,this.#n!==null&&Ne(this.#n,()=>{this.#n=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#b=!1,te(()=>this.#f(this.#e)))),this.#d>0?this.#v():this.#t=!1};var l=b;try{C(null),s=!0,r?.(t,o),s=!1}catch(a){Te(a,this.#o&&this.#o.parent)}finally{C(l)}n&&Ye(()=>{this.#n=this.#_(()=>{P.ensure(),this.#b=!0;try{return te(()=>{n(this.#e,()=>t,()=>o)})}catch(a){return Te(a,this.#o.parent),null}finally{this.#b=!1}})})}}function Dr(e){var t=p|x,r=b!==null&&(b.f&p)!==0?b:null;return _!==null&&(_.f|=ie),{ctx:k,deps:null,effects:null,equals:at,f:t,fn:e,reactions:null,rv:0,v:g,wv:0,parent:r??_,ac:null}}function gt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)I(t[r])}}function Mr(e){for(var t=e.parent;t!==null;){if((t.f&p)===0)return(t.f&W)===0?t:null;t=t.parent}return null}function Ve(e){var t,r=_;Z(Mr(e));try{e.f&=~Q,gt(e),t=qt(e)}finally{Z(r)}return t}function mt(e){var t=Ve(e);if(e.equals(t)||(y?.is_fork||(e.v=t),e.wv=Bt()),!re)if(T!==null)Ae()&&T.set(e,t);else{var r=(e.f&N)===0?L:$;E(e,r)}}let ze=new Set;const K=new Map;let yt=!1;function Re(e,t){var r={f:0,v:e,reactions:null,equals:at,rv:0,wv:0};return r}function J(e,t){const r=Re(e);return Zr(r),r}function Fr(e,t=!1,r=!0){const n=Re(e);return t||(n.equals=Or),n}function U(e,t,r=!1){b!==null&&(!D||(b.f&rt)!==0)&&ct()&&(b.f&(p|F|st|rt))!==0&&!q?.includes(e)&&$r();let n=r?be(t):t;return wt(e,n)}function wt(e,t){if(!e.equals(t)){var r=e.v;re?K.set(e,t):K.set(e,r),e.v=t;var n=P.ensure();n.capture(e,r),(e.f&p)!==0&&((e.f&x)!==0&&Ve(e),E(e,(e.f&N)!==0?$:L)),e.wv=Bt(),$t(e,x),_!==null&&(_.f&$)!==0&&(_.f&(H|V))===0&&(R===null?Qr([e]):R.push(e)),!n.is_fork&&ze.size>0&&!yt&&Lr()}return t}function Lr(){yt=!1;var e=G;je(!0);const t=Array.from(ze);try{for(const r of t)(r.f&$)!==0&&E(r,L),ve(r)&&pe(r)}finally{je(e)}ze.clear()}function he(e){U(e,e.v+1)}function $t(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,l=(o&x)===0;if(l&&E(s,t),(o&p)!==0){var a=s;T?.delete(a),(o&Q)===0&&(o&N&&(s.f|=Q),$t(a,L))}else l&&((o&F)!==0&&B!==null&&B.add(s),oe(s))}}function be(e){if(typeof e!="object"||e===null||qe in e)return e;const t=ar(e);if(t!==or&&t!==lr)return e;var r=new Map,n=nr(e),i=J(0),s=ne,o=l=>{if(ne===s)return l();var a=b,f=ne;C(null),Lt(s);var c=l();return C(a),Lt(f),c};return n&&r.set("length",J(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&yr();var c=r.get(a);return c===void 0?c=o(()=>{var h=J(f.value);return r.set(a,h),h}):U(c,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const c=o(()=>J(g));r.set(a,c),he(i)}}else U(f,g),he(i);return!0},get(l,a,f){if(a===qe)return e;var c=r.get(a),h=a in l;if(c===void 0&&(!h||se(l,a)?.writable)&&(c=o(()=>{var u=be(h?l[a]:g),v=J(u);return v}),r.set(a,c)),c!==void 0){var d=M(c);return d===g?void 0:d}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var c=r.get(a);c&&(f.value=M(c))}else if(f===void 0){var h=r.get(a),d=h?.v;if(h!==void 0&&d!==g)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,a){if(a===qe)return!0;var f=r.get(a),c=f!==void 0&&f.v!==g||Reflect.has(l,a);if(f!==void 0||_!==null&&(!c||se(l,a)?.writable)){f===void 0&&(f=o(()=>{var d=c?be(l[a]):g,u=J(d);return u}),r.set(a,f));var h=M(f);if(h===g)return!1}return c},set(l,a,f,c){var h=r.get(a),d=a in l;if(n&&a==="length")for(var u=f;u<h.v;u+=1){var v=r.get(u+"");v!==void 0?U(v,g):u in l&&(v=o(()=>J(g)),r.set(u+"",v))}if(h===void 0)(!d||se(l,a)?.writable)&&(h=o(()=>J(void 0)),U(h,be(f)),r.set(a,h));else{d=h.v!==g;var A=o(()=>be(f));U(h,A)}var Y=Reflect.getOwnPropertyDescriptor(l,a);if(Y?.set&&Y.set.call(c,f),!d){if(n&&typeof a=="string"){var Fe=r.get("length"),Ge=Number(a);Number.isInteger(Ge)&&Ge>=Fe.v&&U(Fe,Ge+1)}he(i)}return!0},ownKeys(l){M(i);var a=Reflect.ownKeys(l).filter(h=>{var d=r.get(h);return d===void 0||d.v!==g});for(var[f,c]of r)c.v!==g&&!(f in l)&&a.push(f);return a},setPrototypeOf(){wr()}})}var Et,xt,St,kt;function We(){if(Et===void 0){Et=window,xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;St=se(t,"firstChild").get,kt=se(t,"nextSibling").get,tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),tt(r)&&(r.__t=void 0)}}function Tt(e=""){return document.createTextNode(e)}function Ot(e){return St.call(e)}function le(e){return kt.call(e)}function Br(e){e.textContent=""}function Ct(e){var t=b,r=_;C(null),Z(null);try{return e()}finally{C(t),Z(r)}}function Ur(e){_===null&&(b===null&&pr(),vr()),re&&_r()}function qr(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ee(e,t,r){var n=_;n!==null&&(n.f&z)!==0&&(e|=z);var i={ctx:k,deps:null,nodes_start:null,nodes_end:null,f:e|x|N,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{pe(i),i.f|=$e}catch(l){throw I(i),l}else t!==null&&oe(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&ie)===0&&(s=s.first,(e&F)!==0&&(e&Ee)!==0&&s!==null&&(s.f|=Ee)),s!==null&&(s.parent=n,n!==null&&qr(s,n),b!==null&&(b.f&p)!==0&&(e&V)===0)){var o=b;(o.effects??=[]).push(s)}return i}function Ae(){return b!==null&&!D}function Rt(e){Ur();var t=_.f,r=!b&&(t&H)!==0&&(t&$e)===0;if(r){var n=k;(n.e??=[]).push(e)}else return At(e)}function At(e){return ee(Be|dr,e,!1)}function Yr(e){P.ensure();const t=ee(V|ie,e,!0);return()=>{I(t)}}function Hr(e){P.ensure();const t=ee(V|ie,e,!0);return(r={})=>new Promise(n=>{r.outro?Ne(t,()=>{I(t),n(void 0)}):(I(t),n(void 0))})}function Vr(e){return ee(Be,e,!1)}function Nt(e,t=0){return ee(cr|t,e,!0)}function zr(e,t=0){var r=ee(F|t,e,!0);return r}function te(e){return ee(H|ie,e,!0)}function jt(e){var t=e.teardown;if(t!==null){const r=re,n=b;Mt(!0),C(null);try{t.call(null)}finally{Mt(r),C(n)}}}function Pt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Ct(()=>{i.abort(it)});var n=r.next;(r.f&V)!==0?r.parent=null:I(r,t),r=n}}function Wr(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&H)===0&&I(t),t=r}}function I(e,t=!0){var r=!1;(t||(e.f&nt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Kr(e.nodes_start,e.nodes_end),r=!0),Pt(e,t&&!r),Pe(e,0),E(e,W);var n=e.transitions;if(n!==null)for(const s of n)s.stop();jt(e);var i=e.parent;i!==null&&i.first!==null&&It(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Kr(e,t){for(;e!==null;){var r=e===t?null:le(e);e.remove(),e=r}}function It(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ne(e,t,r=!0){var n=[];Dt(e,n,!0),Jr(n,()=>{r&&I(e),t&&t()})}function Jr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Dt(e,t,r){if((e.f&z)===0){if(e.f^=z,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ee)!==0||(n.f&H)!==0&&(e.f&F)!==0;Dt(n,t,s?r:!1),n=i}}}function Gr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:le(r);t.append(r),r=i}}let G=!1;function je(e){G=e}let re=!1;function Mt(e){re=e}let b=null,D=!1;function C(e){b=e}let _=null;function Z(e){_=e}let q=null;function Zr(e){b!==null&&(q===null?q=[e]:q.push(e))}let w=null,S=0,R=null;function Qr(e){R=e}let Ft=1,_e=0,ne=_e;function Lt(e){ne=e}function Bt(){return++Ft}function ve(e){var t=e.f;if((t&x)!==0)return!0;if(t&p&&(e.f&=~Q),(t&L)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(ve(s)&&mt(s),s.wv>e.wv)return!0}(t&N)!==0&&T===null&&E(e,$)}return!1}function Ut(e,t,r=!0){var n=e.reactions;if(n!==null&&!q?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&p)!==0?Ut(s,t,!1):t===s&&(r?E(s,x):(s.f&$)!==0&&E(s,L),oe(s))}}function qt(e){var t=w,r=S,n=R,i=b,s=q,o=k,l=D,a=ne,f=e.f;w=null,S=0,R=null,b=(f&(H|V))===0?e:null,q=null,ke(e.ctx),D=!1,ne=++_e,e.ac!==null&&(Ct(()=>{e.ac.abort(it)}),e.ac=null);try{e.f|=Ue;var c=e.fn,h=c(),d=e.deps;if(w!==null){var u;if(Pe(e,S),d!==null&&S>0)for(d.length=S+w.length,u=0;u<w.length;u++)d[S+u]=w[u];else e.deps=d=w;if(G&&Ae()&&(e.f&N)!==0)for(u=S;u<d.length;u++)(d[u].reactions??=[]).push(e)}else d!==null&&S<d.length&&(Pe(e,S),d.length=S);if(ct()&&R!==null&&!D&&d!==null&&(e.f&(p|L|x))===0)for(u=0;u<R.length;u++)Ut(R[u],e);return i!==null&&i!==e&&(_e++,R!==null&&(n===null?n=R:n.push(...R))),(e.f&fe)!==0&&(e.f^=fe),h}catch(v){return ht(v)}finally{e.f^=Ue,w=t,S=r,R=n,b=i,q=s,ke(o),D=l,ne=a}}function Xr(e,t){let r=t.reactions;if(r!==null){var n=sr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&p)!==0&&(w===null||!w.includes(t))&&(E(t,L),(t.f&N)!==0&&(t.f^=N,t.f&=~Q),gt(t),Pe(t,0))}function Pe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xr(e,r[n])}function pe(e){var t=e.f;if((t&W)===0){E(e,$);var r=_,n=G;_=e,G=!0;try{(t&F)!==0?Wr(e):Pt(e),jt(e);var i=qt(e);e.teardown=typeof i=="function"?i:null,e.wv=Ft;var s;Le&&Cr&&(e.f&x)!==0&&e.deps}finally{G=n,_=r}}}function M(e){var t=e.f,r=(t&p)!==0;if(b!==null&&!D){var n=_!==null&&(_.f&W)!==0;if(!n&&!q?.includes(e)){var i=b.deps;if((b.f&Ue)!==0)e.rv<_e&&(e.rv=_e,w===null&&i!==null&&i[S]===e?S++:w===null?w=[e]:w.includes(e)||w.push(e));else{(b.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[b]:s.includes(b)||s.push(b)}}}if(re){if(K.has(e))return K.get(e);if(r){var o=e,l=o.v;return((o.f&$)===0&&o.reactions!==null||Ht(o))&&(l=Ve(o)),K.set(o,l),l}}else r&&!T?.has(e)&&(o=e,ve(o)&&mt(o),G&&Ae()&&(o.f&N)===0&&Yt(o));if(T?.has(e))return T.get(e);if((e.f&fe)!==0)throw e.v;return e.v}function Yt(e){if(e.deps!==null){e.f^=N;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&p)!==0&&(t.f&N)===0&&Yt(t)}}function Ht(e){if(e.v===g)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(K.has(t)||(t.f&p)!==0&&Ht(t))return!0;return!1}function Vt(e){var t=D;try{return D=!0,e()}finally{D=t}}const en=-7169;function E(e,t){e.f=e.f&en|t}const tn=new Set,zt=new Set;let Wt=null;function Ie(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Wt=e;var o=0,l=Wt===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){ye(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=b,h=_;C(null),Z(null);try{for(var d,u=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var A=s["__"+n];A!=null&&(!s.disabled||e.target===s)&&A.call(s,e)}catch(Y){d?u.push(Y):d=Y}if(e.cancelBubble||v===t||v===null)break;s=v}if(d){for(let Y of u)queueMicrotask(()=>{throw Y});throw d}}finally{e.__root=t,delete e.currentTarget,C(c),Z(h)}}}function rn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ke(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function nn(e,t){var r=(t&rr)!==0,n,i=!e.startsWith("<!>");return()=>{if(j)return Ke(m,null),m;n===void 0&&(n=rn(i?e:"<!>"+e),n=Ot(n));var s=r||xt?document.importNode(n,!0):n.cloneNode(!0);return Ke(s,s),s}}function Kt(e,t){if(j){var r=_;((r.f&$e)===0||r.nodes_end===null)&&(r.nodes_end=m),lt();return}e!==null&&e.before(t)}const sn=["touchstart","touchmove"];function on(e){return sn.includes(e)}function Jt(e,t){return Gt(e,t)}function ln(e,t){We(),t.intro=t.intro??!1;const r=t.target,n=j,i=m;try{for(var s=Ot(r);s&&(s.nodeType!==xe||s.data!==Qe);)s=le(s);if(!s)throw ge;Se(!0),ue(s);const o=Gt(e,{...t,anchor:s});return Se(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==ge&&console.warn("Failed to hydrate: ",o),t.recover===!1&&mr(),We(),Br(r),Se(!1),Jt(e,t)}finally{Se(n),ue(i)}}const ae=new Map;function Gt(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){We();var l=new Set,a=h=>{for(var d=0;d<h.length;d++){var u=h[d];if(!l.has(u)){l.add(u);var v=on(u);t.addEventListener(u,Ie,{passive:v});var A=ae.get(u);A===void 0?(document.addEventListener(u,Ie,{passive:v}),ae.set(u,1)):ae.set(u,A+1)}}};a(ir(tn)),zt.add(a);var f=void 0,c=Hr(()=>{var h=r??t.appendChild(Tt());return Pr(h,{pending:()=>{}},d=>{if(s){ft({});var u=k;u.c=s}if(i&&(n.$$events=i),j&&Ke(d,null),f=e(d,n)||{},j&&(_.nodes_end=m,m===null||m.nodeType!==xe||m.data!==et))throw ot(),ge;s&&ut()}),()=>{for(var d of l){t.removeEventListener(d,Ie);var u=ae.get(d);--u===0?(document.removeEventListener(d,Ie),ae.delete(d)):ae.set(d,u)}zt.delete(a),h!==r&&h.parentNode?.removeChild(h)}});return Je.set(f,c),f}let Je=new WeakMap;function an(e,t){const r=Je.get(e);return r?(Je.delete(e),r(t)):Promise.resolve()}function fn(e){k===null&&br(),Rt(()=>{const t=Vt(e);if(typeof t=="function")return t})}function un(e,t){Vr(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function De(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=o());var a;a=()=>{var d=e[t];return d===void 0?o():(s=!0,d)};var f=!1,c=Dr(()=>(f=!1,a())),h=_;return(function(d,u){if(arguments.length>0){const v=u?M(c):d;return U(c,v),f=!0,i!==void 0&&(i=v),d}return re&&f||(h.f&W)!==0?c.v:M(c)})}function cn(e){return new dn(e)}class dn{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var l=Fr(o,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return M(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===hr?!0:(M(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return U(r.get(o)??n(o,l),l),Reflect.set(s,o,l)}});this.#e=(t.hydrate?ln:Jt)(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)&&de(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ye(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{an(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let Zt;typeof HTMLElement=="function"&&(Zt=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),Kt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=hn(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Me(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=cn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Yr(()=>{Nt(()=>{this.$$r=!0;for(const n of me(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Me(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Me(e,r,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 me(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Me(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 hn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function bn(e,t,r,n,i,s){let o=class extends Zt{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return me(t).map(l=>(t[l].attribute||l).toLowerCase())}};return me(t).forEach(l=>{ye(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Me(l,a,t),this.$$d[l]=a;var f=this.$$c;if(f){var c=se(f,l)?.get;c?f[l]=a:f.$set({[l]:a})}}})}),n.forEach(l=>{ye(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}function _n(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}typeof SuppressedError=="function"&&SuppressedError;function vn(e,t){var r=document.querySelector('script[src="'.concat(e,'"]'));if(r===null)return null;var n=Qt(e,t),i=r.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(n.dataset).length)return null;var s=!0;return Object.keys(i.dataset).forEach(function(o){i.dataset[o]!==n.dataset[o]&&(s=!1)}),s?r:null}function pn(e){var t=e.url,r=e.attributes,n=e.onSuccess,i=e.onError,s=Qt(t,r);s.onerror=i,s.onload=n,document.head.insertBefore(s,document.head.firstElementChild)}function gn(e){var t=e.sdkBaseUrl,r=e.environment,n=_n(e,["sdkBaseUrl","environment"]),i=t||wn(r),s=n,o=Object.keys(s).filter(function(f){return typeof s[f]<"u"&&s[f]!==null&&s[f]!==""}).reduce(function(f,c){var h=s[c].toString();return c=mn(c),c.substring(0,4)==="data"||c==="crossorigin"?f.attributes[c]=h:f.queryParams[c]=h,f},{queryParams:{},attributes:{}}),l=o.queryParams,a=o.attributes;return l["merchant-id"]&&l["merchant-id"].indexOf(",")!==-1&&(a["data-merchant-id"]=l["merchant-id"],l["merchant-id"]="*"),{url:"".concat(i,"?").concat(yn(l)),attributes:a}}function mn(e){var t=function(r,n){return(n?"-":"")+r.toLowerCase()};return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,t)}function yn(e){var t="";return Object.keys(e).forEach(function(r){t.length!==0&&(t+="&"),t+=r+"="+e[r]}),t}function wn(e){return e==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function Qt(e,t){t===void 0&&(t={});var r=document.createElement("script");return r.src=e,Object.keys(t).forEach(function(n){r.setAttribute(n,t[n]),n==="data-csp-nonce"&&r.setAttribute("nonce",t["data-csp-nonce"])}),r}function $n(e,t){if(t===void 0&&(t=Promise),er(e,t),typeof document>"u")return t.resolve(null);var r=gn(e),n=r.url,i=r.attributes,s=i["data-namespace"]||"paypal",o=Xt(s);return i["data-js-sdk-library"]||(i["data-js-sdk-library"]="paypal-js"),vn(n,i)&&o?t.resolve(o):En({url:n,attributes:i},t).then(function(){var l=Xt(s);if(l)return l;throw new Error("The window.".concat(s," global variable is not available."))})}function En(e,t){t===void 0&&(t=Promise),er(e,t);var r=e.url,n=e.attributes;if(typeof r!="string"||r.length===0)throw new Error("Invalid url.");if(typeof n<"u"&&typeof n!="object")throw new Error("Expected attributes to be an object.");return new t(function(i,s){if(typeof document>"u")return i();pn({url:r,attributes:n,onSuccess:function(){return i()},onError:function(){var o=new Error('The script "'.concat(r,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return s(o)}})})}function Xt(e){return window[e]}function er(e,t){if(typeof e!="object"||e===null)throw new Error("Expected an options object.");var r=e.environment;if(r&&r!=="production"&&r!=="sandbox")throw new Error('The `environment` option must be either "production" or "sandbox".');if(typeof t<"u"&&typeof t!="function")throw new Error("Expected PromisePonyfill to be a function.")}var xn=nn('<div part="btn" id="paypalbtn" class="svelte-d34b58"></div>');const Sn={hash:"svelte-d34b58",code:`@charset "UTF-8";
3
3
  @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");
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
5
  /*!
@@ -65,5 +65,5 @@
65
65
  @media (min-width: 1200px) {
66
66
  }
67
67
  @media print {
68
- }:host {--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);font-family:"Roboto", sans-serif;}`};function tr(e,t){at(t,!0),un(e,Sn);let r=Pe(t,"id",7,""),n=Pe(t,"paypalid"),s=Pe(t,"total",7,0),i=Pe(t,"currency",7,"EUR"),o=!1,l,a;Ct(()=>{typeof s()=="string"&&s(Number(s())),i()?i(i().toUpperCase()):i("EUR"),n()&&f()});function f(){l&&l.Buttons?.().close?.(),n()&&a&&!o&&(o=!0,$n({"client-id":n(),currency:i()}).then(u=>{console.info("configured paypal payment"),l=u,o=!1,l?.Buttons?.({style:{layout:"horizontal",tagline:!1,height:40},createOrder(v,R){return R.order.create({intent:"CAPTURE",purchase_units:[{amount:{currency_code:i(),value:s().toString()}}]})},onApprove(v,R){return R?.order?R.order.capture().then(function(Y){d("paymentCompleted",{method:"paypal",total:s()})}):new Promise((Y,De)=>{De("no order")})}}).render(a).catch(v=>{console.error("failed to render the PayPal Buttons",v)})}).catch(u=>{console.error("failed to load the PayPal JS SDK script",u)}))}fn(()=>(a=t.$$host?.shadowRoot?.querySelector("#paypalbtn"),f(),()=>{try{l.Buttons?.().close?.()}catch{}}));function d(u,v){t.$$host.dispatchEvent(new CustomEvent(u,{detail:v}))}var h={get id(){return r()},set id(u=""){r(u),de()},get paypalid(){return n()},set paypalid(u){n(u),de()},get total(){return s()},set total(u=0){s(u),de()},get currency(){return i()},set currency(u="EUR"){i(u),de()}},c=xn();return Kt(e,c),ft(h)}customElements.define("hb-payment-paypal",bn(tr,{id:{},paypalid:{},total:{},currency:{}},[],[],!0)),Je.Component=tr,Object.defineProperty(Je,Symbol.toStringTag,{value:"Module"})})(this["payment-paypal"]=this["payment-paypal"]||{});
68
+ }:host {--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);font-family:"Roboto", sans-serif;}`};function tr(e,t){ft(t,!0),un(e,Sn);let r=De(t,"id",7,""),n=De(t,"paypalid"),i=De(t,"total",7,0),s=De(t,"currency",7,"EUR"),o=!1,l,a;Rt(()=>{typeof i()=="string"&&i(Number(i())),s()?s(s().toUpperCase()):s("EUR"),n()&&f()});function f(){l&&l.Buttons?.().close?.(),n()&&a&&!o&&(o=!0,$n({"client-id":n(),currency:s()}).then(u=>{console.info("configured paypal payment"),l=u,o=!1,l?.Buttons?.({style:{layout:"horizontal",tagline:!1,height:40},createOrder(v,A){return A.order.create({intent:"CAPTURE",purchase_units:[{amount:{currency_code:s(),value:i().toString()}}]})},onApprove(v,A){return A?.order?A.order.capture().then(function(Y){c("paymentCompleted",{method:"paypal",total:i()})}):new Promise((Y,Fe)=>{Fe("no order")})}}).render(a).catch(v=>{console.error("failed to render the PayPal Buttons",v)})}).catch(u=>{console.error("failed to load the PayPal JS SDK script",u)}))}fn(()=>(a=t.$$host?.shadowRoot?.querySelector("#paypalbtn"),f(),()=>{try{l.Buttons?.().close?.()}catch{}}));function c(u,v){t.$$host.dispatchEvent(new CustomEvent(u,{detail:v}))}var h={get id(){return r()},set id(u=""){r(u),de()},get paypalid(){return n()},set paypalid(u){n(u),de()},get total(){return i()},set total(u=0){i(u),de()},get currency(){return s()},set currency(u="EUR"){s(u),de()}},d=xn();return Kt(e,d),ut(h)}customElements.define("hb-payment-paypal",bn(tr,{id:{},paypalid:{},total:{},currency:{}},[],[],!0)),Ze.Component=tr,Object.defineProperty(Ze,Symbol.toStringTag,{value:"Module"})})(this["payment-paypal"]=this["payment-paypal"]||{});
69
69
  //# sourceMappingURL=main.iife.js.map