@htmlbricks/hb-page-checkout 0.66.0 → 0.66.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(wt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const En=1,xn=4,Tn=8,Nn=16,Sn=2,yt="[",bt="[!",$t="]",Te={},T=Symbol(),Cn="http://www.w3.org/1999/xhtml",nt=!1;var An=Array.isArray,On=Array.prototype.indexOf,Rn=Array.from,qe=Object.keys,Le=Object.defineProperty,le=Object.getOwnPropertyDescriptor,Pn=Object.getOwnPropertyDescriptors,qn=Object.prototype,Ln=Array.prototype,kt=Object.getPrototypeOf,Et=Object.isExtensible;function Dn(e){for(var t=0;t<e.length;t++)e[t]()}function xt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const k=2,rt=4,it=8,H=16,Z=32,X=64,De=128,F=512,S=1024,O=2048,V=4096,Q=8192,J=16384,Ie=32768,Me=65536,Tt=1<<17,Nt=1<<18,oe=1<<19,In=1<<20,ae=32768,st=1<<21,lt=1<<22,ee=1<<23,Fe=Symbol("$state"),St=Symbol("legacy props"),Mn=Symbol(""),ge=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Fn=3,je=8;function jn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Bn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Un(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Yn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Hn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Jn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Wn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Gn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Kn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ot(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Zn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function we(e){w=e}let y;function te(e){if(e===null)throw ot(),Te;return y=e}function Ct(){return te(ie(y))}function Be(e){if(w){if(ie(y)!==null)throw ot(),Te;y=e}}function Xn(e=1){if(w){for(var t=e,n=y;t--;)n=ie(n);y=n}}function Qn(e=!0){for(var t=0,n=y;;){if(n.nodeType===je){var r=n.data;if(r===$t){if(t===0)return n;t-=1}else(r===yt||r===bt)&&(t+=1)}var i=ie(n);e&&n.remove(),n=i}}function At(e){return e===this.v}function er(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ot(e){return!er(e,this.v)}let tr=!1,P=null;function ye(e){P=e}function Rt(e,t=!1,n){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function Pt(e){var t=P,n=t.e;if(n!==null){t.e=null;for(var r of n)Kt(r)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function qt(){return!0}let fe=[];function Lt(){var e=fe;fe=[],Dn(e)}function Ue(e){if(fe.length===0&&!Ne){var t=fe;queueMicrotask(()=>{t===fe&&Lt()})}fe.push(e)}function nr(){for(;fe.length>0;)Lt()}function Dt(e){var t=p;if(t===null)return v.f|=ee,e;if((t.f&Ie)===0){if((t.f&De)===0)throw e;t.b.error(e)}else be(e,t)}function be(e,t){for(;t!==null;){if((t.f&De)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Ye=new Set;let b=null,q=null,L=[],He=null,at=!1,Ne=!1;class j{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#a=0;#s=0;#f=null;#l=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(t){L=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#n(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects)):(b=null,Mt(n.render_effects),Mt(n.effects),this.#f?.resolve()),q=null}#n(t,n){t.f^=S;for(var r=t.first;r!==null;){var i=r.f,s=(i&(Z|X))!==0,l=s&&(i&S)!==0,o=l||(i&Q)!==0||this.skipped_effects.has(r);if((r.f&De)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!o&&r.fn!==null){s?r.f^=S:(i&rt)!==0?n.effects.push(r):Oe(r)&&((r.f&H)!==0&&n.block_effects.push(r),Re(r));var a=r.first;if(a!==null){r=a;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#r(t){for(const n of t)((n.f&O)!==0?this.#l:this.#i).push(n),this.#o(n.deps),A(n,S)}#o(t){if(t!==null)for(const n of t)(n.f&k)===0||(n.f&ae)===0||(n.f^=ae,this.#o(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&ee)===0&&(this.current.set(t,t.v),q?.set(t,t.v))}activate(){b=this,this.apply()}deactivate(){b===this&&(b=null,q=null)}flush(){if(this.activate(),L.length>0){if(It(),b!==null&&b!==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.#s===0){for(const t of this.#t)t();this.#t.clear()}this.#a===0&&this.#c()}#c(){if(Ye.size>1){this.previous.clear();var t=q,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Ye){if(s===this){n=!1;continue}const l=[];for(const[a,f]of this.current){if(s.current.has(a))if(n&&f!==s.current.get(a))s.current.set(a,f);else continue;l.push(a)}if(l.length===0)continue;const o=[...s.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){var i=L;L=[];const a=new Set,f=new Map;for(const c of l)Ft(c,o,a,f);if(L.length>0){b=s,s.apply();for(const c of L)s.#n(c,r);s.deactivate()}L=i}}b=null,q=t}this.committed=!0,Ye.delete(this)}increment(t){this.#a+=1,t&&(this.#s+=1)}decrement(t){this.#a-=1,t&&(this.#s-=1),this.revive()}revive(){for(const t of this.#l)A(t,O),$e(t);for(const t of this.#i)A(t,V),$e(t);this.#l=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=xt()).promise}static ensure(){if(b===null){const t=b=new j;Ye.add(b),Ne||j.enqueue(()=>{b===t&&t.flush()})}return b}static enqueue(t){Ue(t)}apply(){}}function ue(e){var t=Ne;Ne=!0;try{for(var n;;){if(nr(),L.length===0&&(b?.flush(),L.length===0))return He=null,n;It()}}finally{Ne=t}}function It(){var e=se;at=!0;var t=null;try{var n=0;for(Xe(!0);L.length>0;){var r=j.ensure();if(n++>1e3){var i,s;rr()}r.process(L),ne.clear()}}finally{at=!1,Xe(e),He=null}}function rr(){try{Hn()}catch(e){be(e,He)}}let W=null;function Mt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(J|Q))===0&&Oe(r)&&(W=new Set,Re(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?en(r):r.fn=null),W?.size>0)){ne.clear();for(const i of W){if((i.f&(J|Q))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)W.has(l)&&(W.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(J|Q))===0&&Re(a)}}W.clear()}}W=null}}function Ft(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&k)!==0?Ft(i,t,n,r):(s&(lt|H))!==0&&(s&O)===0&&jt(i,t,r)&&(A(i,O),$e(i))}}function jt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&k)!==0&&jt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function $e(e){for(var t=He=e;t.parent!==null;){t=t.parent;var n=t.f;if(at&&t===p&&(n&H)!==0&&(n&Nt)===0)return;if((n&(X|Z))!==0){if((n&S)===0)return;t.f^=S}}L.push(t)}function ir(e){let t=0,n=Se(0),r;return()=>{Ke()&&(M(n),Zt(()=>(t===0&&(r=cn(()=>e(()=>Ce(n)))),t+=1,()=>{Ue(()=>{t-=1,t===0&&(r?.(),r=void 0,Ce(n))})})))}}var sr=Me|oe|De;function lr(e,t,n){new or(e,t,n)}class or{parent;#t=!1;#e;#a=w?y:null;#s;#f;#l;#i=null;#n=null;#r=null;#o=null;#u=null;#c=0;#h=0;#v=!1;#d=null;#w=ir(()=>(this.#d=Se(this.#c),()=>{this.#d=null}));constructor(t,n,r){this.#e=t,this.#s=n,this.#f=r,this.parent=p.b,this.#t=!!this.#s.pending,this.#l=Er(()=>{if(p.b=this,w){const s=this.#a;Ct(),s.nodeType===je&&s.data===bt?this.#b():this.#y()}else{var i=this.#m();try{this.#i=he(()=>r(i))}catch(s){this.error(s)}this.#h>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},sr),w&&(this.#e=y)}#y(){try{this.#i=he(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#b(){const t=this.#s.pending;t&&(this.#n=he(()=>t(this.#e)),j.enqueue(()=>{var n=this.#m();this.#i=this.#_(()=>(j.ensure(),he(()=>this.#f(n)))),this.#h>0?this.#p():(Ze(this.#n,()=>{this.#n=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#u=We(),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.#s.pending}#_(t){var n=p,r=v,i=P;D(this.#l),N(this.#l),ye(this.#l.ctx);try{return t()}catch(s){return Dt(s),null}finally{D(n),N(r),ye(i)}}#p(){const t=this.#s.pending;this.#i!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),Sr(this.#i,this.#o)),this.#n===null&&(this.#n=he(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#h+=t,this.#h===0&&(this.#t=!1,this.#n&&Ze(this.#n,()=>{this.#n=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#d&&Je(this.#d,this.#c)}get_effect_pending(){return this.#w(),M(this.#d)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(this.#v||!n&&!r)throw t;this.#i&&(B(this.#i),this.#i=null),this.#n&&(B(this.#n),this.#n=null),this.#r&&(B(this.#r),this.#r=null),w&&(te(this.#a),Xn(),te(Qn()));var i=!1,s=!1;const l=()=>{if(i){Zn();return}i=!0,s&&Kn(),j.ensure(),this.#c=0,this.#r!==null&&Ze(this.#r,()=>{this.#r=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,he(()=>this.#f(this.#e)))),this.#h>0?this.#p():this.#t=!1};var o=v;try{N(null),s=!0,n?.(t,l),s=!1}catch(a){be(a,this.#l&&this.#l.parent)}finally{N(o)}r&&Ue(()=>{this.#r=this.#_(()=>{j.ensure(),this.#v=!0;try{return he(()=>{r(this.#e,()=>t,()=>l)})}catch(a){return be(a,this.#l.parent),null}finally{this.#v=!1}})})}}function ar(e,t,n,r){const i=ft;if(n.length===0&&e.length===0){r(t.map(i));return}var s=b,l=p,o=fr();function a(){Promise.all(n.map(f=>ur(f))).then(f=>{o();try{r([...t.map(i),...f])}catch(c){(l.f&J)===0&&be(c,l)}s?.deactivate(),Ve()}).catch(f=>{be(f,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return a()}finally{s?.deactivate(),Ve()}}):a()}function fr(){var e=p,t=v,n=P,r=b;return function(s=!0){D(e),N(t),ye(n),s&&r?.activate()}}function Ve(){D(null),N(null),ye(null)}function ft(e){var t=k|O,n=v!==null&&(v.f&k)!==0?v:null;return p!==null&&(p.f|=oe),{ctx:P,deps:null,effects:null,equals:At,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??p,ac:null}}function ur(e,t){let n=p;n===null&&jn();var r=n.b,i=void 0,s=Se(T),l=!v,o=new Map;return kr(()=>{var a=xt();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===b&&f.committed&&f.deactivate(),Ve()})}catch(u){a.reject(u),Ve()}var f=b;if(l){var c=!r.is_pending();r.update_pending_count(1),f.increment(c),o.get(f)?.reject(ge),o.delete(f),o.set(f,a)}const d=(u,h=void 0)=>{if(f.activate(),h)h!==ge&&(s.f|=ee,Je(s,h));else{(s.f&ee)!==0&&(s.f^=ee),Je(s,u);for(const[m,E]of o){if(o.delete(m),m===f)break;E.reject(ge)}}l&&(r.update_pending_count(-1),f.decrement(c))};a.promise.then(d,u=>d(null,u||"unknown"))}),Gt(()=>{for(const a of o.values())a.reject(ge)}),new Promise(a=>{function f(c){function d(){c===i?a(s):f(i)}c.then(d,d)}f(i)})}function cr(e){const t=ft(e);return t.equals=Ot,t}function Bt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)B(t[n])}}function hr(e){for(var t=e.parent;t!==null;){if((t.f&k)===0)return(t.f&J)===0?t:null;t=t.parent}return null}function ut(e){var t,n=p;D(hr(e));try{e.f&=~ae,Bt(e),t=an(e)}finally{D(n)}return t}function Ut(e){var t=ut(e);if(e.equals(t)||(b?.is_fork||(e.v=t),e.wv=ln()),!de)if(q!==null)Ke()&&q.set(e,t);else{var n=(e.f&F)===0?V:S;A(e,n)}}let ct=new Set;const ne=new Map;let Yt=!1;function Se(e,t){var n={f:0,v:e,reactions:null,equals:At,rv:0,wv:0};return n}function re(e,t){const n=Se(e);return Cr(n),n}function dr(e,t=!1,n=!0){const r=Se(e);return t||(r.equals=Ot),r}function z(e,t,n=!1){v!==null&&(!Y||(v.f&Tt)!==0)&&qt()&&(v.f&(k|H|lt|Tt))!==0&&!G?.includes(e)&&Gn();let r=n?ke(t):t;return Je(e,r)}function Je(e,t){if(!e.equals(t)){var n=e.v;de?ne.set(e,t):ne.set(e,n),e.v=t;var r=j.ensure();r.capture(e,n),(e.f&k)!==0&&((e.f&O)!==0&&ut(e),A(e,(e.f&F)!==0?S:V)),e.wv=ln(),Ht(e,O),p!==null&&(p.f&S)!==0&&(p.f&(Z|X))===0&&(I===null?Ar([e]):I.push(e)),!r.is_fork&&ct.size>0&&!Yt&&vr()}return t}function vr(){Yt=!1;var e=se;Xe(!0);const t=Array.from(ct);try{for(const n of t)(n.f&S)!==0&&A(n,V),Oe(n)&&Re(n)}finally{Xe(e)}ct.clear()}function Ce(e){z(e,e.v+1)}function Ht(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,o=(l&O)===0;if(o&&A(s,t),(l&k)!==0){var a=s;q?.delete(a),(l&ae)===0&&(l&F&&(s.f|=ae),Ht(a,V))}else o&&((l&H)!==0&&W!==null&&W.add(s),$e(s))}}function ke(e){if(typeof e!="object"||e===null||Fe in e)return e;const t=kt(e);if(t!==qn&&t!==Ln)return e;var n=new Map,r=An(e),i=re(0),s=ve,l=o=>{if(ve===s)return o();var a=v,f=ve;N(null),sn(s);var c=o();return N(a),sn(f),c};return r&&n.set("length",re(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Wn();var c=n.get(a);return c===void 0?c=l(()=>{var d=re(f.value);return n.set(a,d),d}):z(c,f.value,!0),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0){if(a in o){const c=l(()=>re(T));n.set(a,c),Ce(i)}}else z(f,T),Ce(i);return!0},get(o,a,f){if(a===Fe)return e;var c=n.get(a),d=a in o;if(c===void 0&&(!d||le(o,a)?.writable)&&(c=l(()=>{var h=ke(d?o[a]:T),m=re(h);return m}),n.set(a,c)),c!==void 0){var u=M(c);return u===T?void 0:u}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var c=n.get(a);c&&(f.value=M(c))}else if(f===void 0){var d=n.get(a),u=d?.v;if(d!==void 0&&u!==T)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(o,a){if(a===Fe)return!0;var f=n.get(a),c=f!==void 0&&f.v!==T||Reflect.has(o,a);if(f!==void 0||p!==null&&(!c||le(o,a)?.writable)){f===void 0&&(f=l(()=>{var u=c?ke(o[a]):T,h=re(u);return h}),n.set(a,f));var d=M(f);if(d===T)return!1}return c},set(o,a,f,c){var d=n.get(a),u=a in o;if(r&&a==="length")for(var h=f;h<d.v;h+=1){var m=n.get(h+"");m!==void 0?z(m,T):h in o&&(m=l(()=>re(T)),n.set(h+"",m))}if(d===void 0)(!u||le(o,a)?.writable)&&(d=l(()=>re(void 0)),z(d,ke(f)),n.set(a,d));else{u=d.v!==T;var E=l(()=>ke(f));z(d,E)}var g=Reflect.getOwnPropertyDescriptor(o,a);if(g?.set&&g.set.call(c,f),!u){if(r&&typeof a=="string"){var me=n.get("length"),$=Number(a);Number.isInteger($)&&$>=me.v&&z(me,$+1)}Ce(i)}return!0},ownKeys(o){M(i);var a=Reflect.ownKeys(o).filter(d=>{var u=n.get(d);return u===void 0||u.v!==T});for(var[f,c]of n)c.v!==T&&!(f in o)&&a.push(f);return a},setPrototypeOf(){zn()}})}var Vt,Jt,Wt,zt;function ht(){if(Vt===void 0){Vt=window,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=le(t,"firstChild").get,zt=le(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(n)&&(n.__t=void 0)}}function We(e=""){return document.createTextNode(e)}function ze(e){return Wt.call(e)}function ie(e){return zt.call(e)}function Ge(e,t){if(!w)return ze(e);var n=ze(y);return n===null&&(n=y.appendChild(We())),te(n),n}function _r(e,t=1,n=!1){let r=w?y:e;for(var i;t--;)i=r,r=ie(r);if(!w)return r;if(n&&r?.nodeType!==Fn){var s=We();return r===null?i?.after(s):r.before(s),te(s),s}return te(r),r}function pr(e){e.textContent=""}function dt(e){var t=v,n=p;N(null),D(null);try{return e()}finally{N(t),D(n)}}function mr(e){p===null&&(v===null&&Yn(),Un()),de&&Bn()}function gr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function U(e,t,n){var r=p;r!==null&&(r.f&Q)!==0&&(e|=Q);var i={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:e|O|F,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Re(i),i.f|=Ie}catch(o){throw B(i),o}else t!==null&&$e(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&oe)===0&&(s=s.first,(e&H)!==0&&(e&Me)!==0&&s!==null&&(s.f|=Me)),s!==null&&(s.parent=r,r!==null&&gr(s,r),v!==null&&(v.f&k)!==0&&(e&X)===0)){var l=v;(l.effects??=[]).push(s)}return i}function Ke(){return v!==null&&!Y}function Gt(e){const t=U(it,null,!1);return A(t,S),t.teardown=e,t}function wr(e){mr();var t=p.f,n=!v&&(t&Z)!==0&&(t&Ie)===0;if(n){var r=P;(r.e??=[]).push(e)}else return Kt(e)}function Kt(e){return U(rt|In,e,!1)}function yr(e){j.ensure();const t=U(X|oe,e,!0);return()=>{B(t)}}function br(e){j.ensure();const t=U(X|oe,e,!0);return(n={})=>new Promise(r=>{n.outro?Ze(t,()=>{B(t),r(void 0)}):(B(t),r(void 0))})}function $r(e){return U(rt,e,!1)}function kr(e){return U(lt|oe,e,!0)}function Zt(e,t=0){return U(it|t,e,!0)}function ce(e,t=[],n=[],r=[]){ar(r,t,n,i=>{U(it,()=>e(...i.map(M)),!0)})}function Er(e,t=0){var n=U(H|t,e,!0);return n}function he(e){return U(Z|oe,e,!0)}function Xt(e){var t=e.teardown;if(t!==null){const n=de,r=v;nn(!0),N(null);try{t.call(null)}finally{nn(n),N(r)}}}function Qt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&dt(()=>{i.abort(ge)});var r=n.next;(n.f&X)!==0?n.parent=null:B(n,t),n=r}}function xr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Z)===0&&B(t),t=n}}function B(e,t=!0){var n=!1;(t||(e.f&Nt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Tr(e.nodes_start,e.nodes_end),n=!0),Qt(e,t&&!n),Qe(e,0),A(e,J);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Xt(e);var i=e.parent;i!==null&&i.first!==null&&en(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Tr(e,t){for(;e!==null;){var n=e===t?null:ie(e);e.remove(),e=n}}function en(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 Ze(e,t,n=!0){var r=[];tn(e,r,!0),Nr(r,()=>{n&&B(e),t&&t()})}function Nr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function tn(e,t,n){if((e.f&Q)===0){if(e.f^=Q,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Me)!==0||(r.f&Z)!==0&&(e.f&H)!==0;tn(r,t,s?n:!1),r=i}}}function Sr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:ie(n);t.append(n),n=i}}let se=!1;function Xe(e){se=e}let de=!1;function nn(e){de=e}let v=null,Y=!1;function N(e){v=e}let p=null;function D(e){p=e}let G=null;function Cr(e){v!==null&&(G===null?G=[e]:G.push(e))}let C=null,R=0,I=null;function Ar(e){I=e}let rn=1,Ae=0,ve=Ae;function sn(e){ve=e}function ln(){return++rn}function Oe(e){var t=e.f;if((t&O)!==0)return!0;if(t&k&&(e.f&=~ae),(t&V)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(Oe(s)&&Ut(s),s.wv>e.wv)return!0}(t&F)!==0&&q===null&&A(e,S)}return!1}function on(e,t,n=!0){var r=e.reactions;if(r!==null&&!G?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&k)!==0?on(s,t,!1):t===s&&(n?A(s,O):(s.f&S)!==0&&A(s,V),$e(s))}}function an(e){var t=C,n=R,r=I,i=v,s=G,l=P,o=Y,a=ve,f=e.f;C=null,R=0,I=null,v=(f&(Z|X))===0?e:null,G=null,ye(e.ctx),Y=!1,ve=++Ae,e.ac!==null&&(dt(()=>{e.ac.abort(ge)}),e.ac=null);try{e.f|=st;var c=e.fn,d=c(),u=e.deps;if(C!==null){var h;if(Qe(e,R),u!==null&&R>0)for(u.length=R+C.length,h=0;h<C.length;h++)u[R+h]=C[h];else e.deps=u=C;if(se&&Ke()&&(e.f&F)!==0)for(h=R;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&R<u.length&&(Qe(e,R),u.length=R);if(qt()&&I!==null&&!Y&&u!==null&&(e.f&(k|V|O))===0)for(h=0;h<I.length;h++)on(I[h],e);return i!==null&&i!==e&&(Ae++,I!==null&&(r===null?r=I:r.push(...I))),(e.f&ee)!==0&&(e.f^=ee),d}catch(m){return Dt(m)}finally{e.f^=st,C=t,R=n,I=r,v=i,G=s,ye(l),Y=o,ve=a}}function Or(e,t){let n=t.reactions;if(n!==null){var r=On.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&k)!==0&&(C===null||!C.includes(t))&&(A(t,V),(t.f&F)!==0&&(t.f^=F,t.f&=~ae),Bt(t),Qe(t,0))}function Qe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Or(e,n[r])}function Re(e){var t=e.f;if((t&J)===0){A(e,S);var n=p,r=se;p=e,se=!0;try{(t&H)!==0?xr(e):Qt(e),Xt(e);var i=an(e);e.teardown=typeof i=="function"?i:null,e.wv=rn;var s;nt&&tr&&(e.f&O)!==0&&e.deps}finally{se=r,p=n}}}function M(e){var t=e.f,n=(t&k)!==0;if(v!==null&&!Y){var r=p!==null&&(p.f&J)!==0;if(!r&&!G?.includes(e)){var i=v.deps;if((v.f&st)!==0)e.rv<Ae&&(e.rv=Ae,C===null&&i!==null&&i[R]===e?R++:C===null?C=[e]:C.includes(e)||C.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(de){if(ne.has(e))return ne.get(e);if(n){var l=e,o=l.v;return((l.f&S)===0&&l.reactions!==null||un(l))&&(o=ut(l)),ne.set(l,o),o}}else n&&!q?.has(e)&&(l=e,Oe(l)&&Ut(l),se&&Ke()&&(l.f&F)===0&&fn(l));if(q?.has(e))return q.get(e);if((e.f&ee)!==0)throw e.v;return e.v}function fn(e){if(e.deps!==null){e.f^=F;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&k)!==0&&(t.f&F)===0&&fn(t)}}function un(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ne.has(t)||(t.f&k)!==0&&un(t))return!0;return!1}function cn(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const Rr=-7169;function A(e,t){e.f=e.f&Rr|t}const Pr=new Set,hn=new Set;function qr(e,t,n,r={}){function i(s){if(r.capture||Pe.call(t,s),!s.cancelBubble)return dt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ue(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function vt(e,t,n,r,i){var s={capture:r,passive:i},l=qr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Gt(()=>{t.removeEventListener(e,l,s)})}let dn=null;function Pe(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;dn=e;var l=0,o=dn===e&&e.__root;if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){Le(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=v,d=p;N(null),D(null);try{for(var u,h=[];s!==null;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var E=s["__"+r];E!=null&&(!s.disabled||e.target===s)&&E.call(s,e)}catch(g){u?h.push(g):u=g}if(e.cancelBubble||m===t||m===null)break;s=m}if(u){for(let g of h)queueMicrotask(()=>{throw g});throw u}}finally{e.__root=t,delete e.currentTarget,N(c),D(d)}}}function Lr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function _t(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Dr(e,t){var n=(t&Sn)!==0,r,i=!e.startsWith("<!>");return()=>{if(w)return _t(y,null),y;r===void 0&&(r=Lr(i?e:"<!>"+e),r=ze(r));var s=n||Jt?document.importNode(r,!0):r.cloneNode(!0);return _t(s,s),s}}function vn(e,t){if(w){var n=p;((n.f&Ie)===0||n.nodes_end===null)&&(n.nodes_end=y),Ct();return}e!==null&&e.before(t)}const Ir=["touchstart","touchmove"];function Mr(e){return Ir.includes(e)}function _n(e,t){return pn(e,t)}function Fr(e,t){ht(),t.intro=t.intro??!1;const n=t.target,r=w,i=y;try{for(var s=ze(n);s&&(s.nodeType!==je||s.data!==yt);)s=ie(s);if(!s)throw Te;we(!0),te(s);const l=pn(e,{...t,anchor:s});return we(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Te&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Vn(),ht(),pr(n),we(!1),_n(e,t)}finally{we(r),te(i)}}const Ee=new Map;function pn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){ht();var o=new Set,a=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!o.has(h)){o.add(h);var m=Mr(h);t.addEventListener(h,Pe,{passive:m});var E=Ee.get(h);E===void 0?(document.addEventListener(h,Pe,{passive:m}),Ee.set(h,1)):Ee.set(h,E+1)}}};a(Rn(Pr)),hn.add(a);var f=void 0,c=br(()=>{var d=n??t.appendChild(We());return lr(d,{pending:()=>{}},u=>{if(s){Rt({});var h=P;h.c=s}if(i&&(r.$$events=i),w&&_t(u,null),f=e(u,r)||{},w&&(p.nodes_end=y,y===null||y.nodeType!==je||y.data!==$t))throw ot(),Te;s&&Pt()}),()=>{for(var u of o){t.removeEventListener(u,Pe);var h=Ee.get(u);--h===0?(document.removeEventListener(u,Pe),Ee.delete(u)):Ee.set(u,h)}hn.delete(a),d!==n&&d.parentNode?.removeChild(d)}});return pt.set(f,c),f}let pt=new WeakMap;function jr(e,t){const n=pt.get(e);return n?(pt.delete(e),n(t)):Promise.resolve()}function Br(e,t){$r(()=>{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 Ur(e,t,n){var r=""+e;return r}function mn(e,t,n,r,i,s){var l=e.__className;if(w||l!==n||l===void 0){var o=Ur(n);(!w||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}const Yr=Symbol("is custom element"),Hr=Symbol("is html");function Vr(e,t,n,r){var i=Jr(e);w&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Mn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&gn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _e(e,t,n){var r=v,i=p;let s=w;w&&we(!1),N(null),D(null);try{t!=="style"&&(mt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?gn(e).includes(t):n&&typeof n=="object")?e[t]=n:Vr(e,t,n==null?n:String(n))}finally{N(r),D(i),s&&we(!0)}}function Jr(e){return e.__attributes??={[Yr]:e.nodeName.includes("-"),[Hr]:e.namespaceURI===Cn}}var mt=new Map;function gn(e){var t=e.getAttribute("is")||e.nodeName,n=mt.get(t);if(n)return n;mt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Pn(i);for(var l in r)r[l].set&&n.push(l);i=kt(i)}return n}let et=!1;function Wr(e){var t=et;try{return et=!1,[e(),et]}finally{et=t}}function xe(e,t,n,r){var i=(n&Tn)!==0,s=(n&Nn)!==0,l=r,o=!0,a=()=>(o&&(o=!1,l=s?cn(r):r),l),f;if(i){var c=Fe in e||St in e;f=le(e,t)?.set??(c&&t in e?$=>e[t]=$:void 0)}var d,u=!1;i?[d,u]=Wr(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=a(),f&&(Jn(),f(d)));var h;if(h=()=>{var $=e[t];return $===void 0?a():(o=!0,$)},(n&xn)===0)return h;if(f){var m=e.$$legacy;return(function($,_){return arguments.length>0?((!_||m||u)&&f(_?h():$),$):h()})}var E=!1,g=((n&En)!==0?ft:cr)(()=>(E=!1,h()));i&&M(g);var me=p;return(function($,_){if(arguments.length>0){const K=_?M(g):i?ke($):$;return z(g,K),E=!0,l!==void 0&&(l=K),$}return de&&E||(me.f&J)!==0?g.v:M(g)})}function zr(e){return new Gr(e)}class Gr{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var o=dr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return M(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===St?!0:(M(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return z(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#e=(t.hydrate?Fr:_n)(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)&&ue(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Le(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{jr(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 wn;typeof HTMLElement=="function"&&(wn=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),vn(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Kr(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]=tt(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=zr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=yr(()=>{Zt(()=>{this.$$r=!0;for(const r of qe(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=tt(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]=tt(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 qe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function tt(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 Kr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Zr(e,t,n,r,i,s){let l=class extends wn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return qe(t).map(o=>(t[o].attribute||o).toLowerCase())}};return qe(t).forEach(o=>{Le(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=tt(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var c=le(f,o)?.get;c?f[o]=a:f.$set({[o]:a})}}})}),r.forEach(o=>{Le(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const yn={version:"0.66.0"};var pe={},bn;function Xr(){if(bn)return pe;bn=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.LanguageTranslator=void 0,pe.getChildStyleToPass=e,pe.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||l===void 0)&&l.length))for(var a=function(u){var h=i?.filter(function(m){return m.name===u&&m.defaultValue!==r[u]});h&&(o+="".concat(u,":").concat(r[u],";"))},f=0,c=Object.keys(r);f<c.length;f++){var d=c[f];a(d)}}catch(u){console.error("error getting child style to pass",u)}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 l=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(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}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,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var a="",f=r.getDefaultLang();if(!l||f!==l){var c=s?.[f];c?.[i]&&(a=c[i])}return a},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return pe.LanguageTranslator=n,pe}var $n=Xr(),Qr=Dr('<div class="container svelte-sykhqk"><div class="row svelte-sykhqk"><div class="col-7 svelte-sykhqk" style="padding-right:30px"><hb-checkout></hb-checkout></div> <div class="col-5 svelte-sykhqk" style="padding-left:30px"><hb-checkout-shopping-cart></hb-checkout-shopping-cart></div></div></div>',2);const ei={hash:"svelte-sykhqk",code:`@charset "UTF-8";
|
|
1
|
+
(function(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Dn=1,Mn=4,In=8,Fn=16,jn=2,xt="[",Et="[!",Tt="[?",St="]",Ce={},S=Symbol(),Nt="http://www.w3.org/1999/xhtml",Bn=!1;var Un=Array.isArray,Hn=Array.prototype.indexOf,$e=Array.prototype.includes,Yn=Array.from,De=Object.keys,Me=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,Vn=Object.getOwnPropertyDescriptors,zn=Object.prototype,Jn=Array.prototype,At=Object.getPrototypeOf,Ct=Object.isExtensible;const Wn=()=>{};function Gn(e){for(var t=0;t<e.length;t++)e[t]()}function Ot(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const E=2,ke=4,Ie=8,Rt=1<<24,X=16,z=32,Z=64,et=128,L=512,T=1024,C=2048,Y=4096,Q=8192,j=16384,ee=32768,Pt=1<<25,Fe=65536,Lt=1<<17,Kn=1<<18,ce=1<<19,Xn=1<<20,he=65536,tt=1<<21,nt=1<<22,te=1<<23,je=Symbol("$state"),qt=Symbol("legacy props"),Zn=Symbol(""),J=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Qn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Dt=3,rt=8;function er(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function tr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function nr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ir(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function lr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ar(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function or(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function fr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ur(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function it(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function cr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function xe(e){$=e}let k;function ne(e){if(e===null)throw it(),Ce;return k=e}function Mt(){return ne(oe(k))}function Be(e){if($){if(oe(k)!==null)throw it(),Ce;k=e}}function hr(e=1){if($){for(var t=e,n=k;t--;)n=oe(n);k=n}}function dr(e=!0){for(var t=0,n=k;;){if(n.nodeType===rt){var r=n.data;if(r===St){if(t===0)return n;t-=1}else(r===xt||r===Et||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=oe(n);e&&n.remove(),n=i}}function It(e){return e===this.v}function vr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ft(e){return!vr(e,this.v)}let _r=!1,q=null;function Ee(e){q=e}function jt(e,t=!1,n){q={p:q,i:!1,c:null,e:null,s:e,x:null,r:m,l:null}}function Bt(e){var t=q,n=t.e;if(n!==null){t.e=null;for(var r of n)un(r)}return e!==void 0&&(t.x=e),t.i=!0,q=t.p,e??{}}function Ut(){return!0}let de=[];function Ht(){var e=de;de=[],Gn(e)}function ve(e){if(de.length===0&&!Oe){var t=de;queueMicrotask(()=>{t===de&&Ht()})}de.push(e)}function pr(){for(;de.length>0;)Ht()}function Yt(e){var t=m;if(t===null)return p.f|=te,e;if((t.f&ee)===0&&(t.f&ke)===0)throw e;re(e,t)}function re(e,t){for(;t!==null;){if((t.f&et)!==0){if((t.f&ee)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const mr=-7169;function x(e,t){e.f=e.f&mr|t}function st(e){(e.f&L)!==0||e.deps===null?x(e,T):x(e,Y)}function Vt(e){if(e!==null)for(const t of e)(t.f&E)===0||(t.f&he)===0||(t.f^=he,Vt(t.deps))}function zt(e,t,n){(e.f&C)!==0?t.add(e):(e.f&Y)!==0&&n.add(e),Vt(e.deps),x(e,T)}let Ue=!1;function gr(e){var t=Ue;try{return Ue=!1,[e(),Ue]}finally{Ue=t}}const ie=new Set;let y=null,B=null,lt=null,Oe=!1,at=!1,Te=null,He=null;var Jt=0;let wr=1;class se{id=wr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#s=new Map;#o=new Map;#l=null;#t=[];#r=new Set;#i=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#o.size>0}#v(){for(const r of this.#f)for(const i of r.#o.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)x(r,C),this.schedule(r);for(r of n.m)x(r,Y),this.schedule(r)}}#d(){if(Jt++>1e3&&(ie.delete(this),yr()),!this.#h()){for(const a of this.#r)this.#i.delete(a),x(a,C),this.schedule(a);for(const a of this.#i)x(a,Y),this.schedule(a)}const t=this.#t;this.#t=[],this.apply();var n=Te=[],r=[],i=He=[];for(const a of t)try{this.#u(a,n,r)}catch(f){throw Zt(a),f}if(y=null,i.length>0){var s=se.ensure();for(const a of i)s.schedule(a)}if(Te=null,He=null,this.#h()||this.#v()){this.#_(r),this.#_(n);for(const[a,f]of this.#a)Xt(a,f)}else{this.#s.size===0&&ie.delete(this),this.#r.clear(),this.#i.clear();for(const a of this.#e)a(this);this.#e.clear(),Wt(r),Wt(n),this.#l?.resolve()}var l=y;if(this.#t.length>0){const a=l??=this;a.#t.push(...this.#t.filter(f=>!a.#t.includes(f)))}l!==null&&(ie.add(l),l.#d()),ie.has(this)||this.#p()}#u(t,n,r){t.f^=T;for(var i=t.first;i!==null;){var s=i.f,l=(s&(z|Z))!==0,a=l&&(s&T)!==0,f=a||(s&Q)!==0||this.#a.has(i);if(!f&&i.fn!==null){l?i.f^=T:(s&ke)!==0?n.push(i):Le(i)&&((s&X)!==0&&this.#i.add(i),Ne(i));var o=i.first;if(o!==null){i=o;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)zt(t[n],this.#r,this.#i)}capture(t,n,r=!1){n!==S&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&te)===0&&(this.current.set(t,[t.v,r]),B?.set(t,t.v))}activate(){y=this}deactivate(){y=null,B=null}flush(){try{at=!0,y=this,this.#d()}finally{Jt=0,lt=null,Te=null,He=null,at=!1,y=null,B=null,le.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ie.delete(this)}#p(){for(const o of ie){var t=o.id<this.id,n=[];for(const[u,[h,c]]of this.current){if(o.current.has(u)){var r=o.current.get(u)[0];if(t&&h!==r)o.current.set(u,[h,c]);else continue}n.push(u)}var i=[...o.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&o.discard();else if(n.length>0){o.activate();var s=new Set,l=new Map;for(var a of n)Gt(a,i,s,l);if(o.#t.length>0){o.apply();for(var f of o.#t)o.#u(f,[],[]);o.#t=[]}o.deactivate()}}for(const o of ie)o.#f.has(this)&&(o.#f.delete(this),o.#f.size===0&&!o.#h()&&(o.activate(),o.#d()))}increment(t,n){let r=this.#s.get(n)??0;if(this.#s.set(n,r+1),t){let i=this.#o.get(n)??0;this.#o.set(n,i+1)}}decrement(t,n,r){let i=this.#s.get(n)??0;if(i===1?this.#s.delete(n):this.#s.set(n,i-1),t){let s=this.#o.get(n)??0;s===1?this.#o.delete(n):this.#o.set(n,s-1)}this.#c||r||(this.#c=!0,ve(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#r.add(r);for(const r of n)this.#i.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#l??=Ot()).promise}static ensure(){if(y===null){const t=y=new se;at||(ie.add(y),Oe||ve(()=>{y===t&&t.flush()}))}return y}apply(){{B=null;return}}schedule(t){if(lt=t,t.b?.is_pending&&(t.f&(ke|Ie|Rt))!==0&&(t.f&ee)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Te!==null&&n===m&&(p===null||(p.f&E)===0))return;if((r&(Z|z))!==0){if((r&T)===0)return;n.f^=T}}this.#t.push(n)}}function _e(e){var t=Oe;Oe=!0;try{for(var n;;){if(pr(),y===null)return n;y.flush()}}finally{Oe=t}}function yr(){try{ir()}catch(e){re(e,lt)}}let W=null;function Wt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(j|Q))===0&&Le(r)&&(W=new Set,Ne(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&dn(r),W?.size>0)){le.clear();for(const i of W){if((i.f&(j|Q))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)W.has(l)&&(W.delete(l),s.push(l)),l=l.parent;for(let a=s.length-1;a>=0;a--){const f=s[a];(f.f&(j|Q))===0&&Ne(f)}}W.clear()}}W=null}}function Gt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&E)!==0?Gt(i,t,n,r):(s&(nt|X))!==0&&(s&C)===0&&Kt(i,t,r)&&(x(i,C),ot(i))}}function Kt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if($e.call(t,i))return!0;if((i.f&E)!==0&&Kt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ot(e){y.schedule(e)}function Xt(e,t){if(!((e.f&z)!==0&&(e.f&T)!==0)){(e.f&C)!==0?t.d.push(e):(e.f&Y)!==0&&t.m.push(e),x(e,T);for(var n=e.first;n!==null;)Xt(n,t),n=n.next}}function Zt(e){x(e,T);for(var t=e.first;t!==null;)Zt(t),t=t.next}function br(e){let t=0,n=Re(0),r;return()=>{_t()&&(F(n),cn(()=>(t===0&&(r=kn(()=>e(()=>Pe(n)))),t+=1,()=>{ve(()=>{t-=1,t===0&&(r?.(),r=void 0,Pe(n))})})))}}var $r=Fe|ce;function kr(e,t,n,r){new xr(e,t,n,r)}class xr{parent;is_pending=!1;transform_error;#e;#n=$?k:null;#s;#o;#l;#t=null;#r=null;#i=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=br(()=>(this.#u=Re(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#s=n,this.#o=s=>{var l=m;l.b=this,l.f|=et,r(s)},this.parent=m.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#l=Yr(()=>{if($){const s=this.#n;Mt();const l=s.data===Et;if(s.data.startsWith(Tt)){const f=JSON.parse(s.data.slice(Tt.length));this.#b(f)}else l?this.#$():this.#p()}else this.#w()},$r),$&&(this.#e=k)}#p(){try{this.#t=me(()=>this.#o(this.#e))}catch(t){this.error(t)}}#b(t){const n=this.#s.failed;n&&(this.#i=me(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#s.pending;t&&(this.is_pending=!0,this.#r=me(()=>t(this.#e)),ve(()=>{var n=this.#a=document.createDocumentFragment(),r=ze();n.append(r),this.#t=this.#g(()=>me(()=>this.#o(r))),this.#f===0&&(this.#e.before(n),this.#a=null,Ge(this.#r,()=>{this.#r=null}),this.#m(y))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#t=me(()=>{this.#o(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Jr(this.#t,t);const n=this.#s.pending;this.#r=me(()=>n(this.#e))}else this.#m(y)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){zt(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#g(t){var n=m,r=p,i=q;D(this.#l),O(this.#l),Ee(this.#l.ctx);try{return se.ensure(),t()}catch(s){return Yt(s),null}finally{D(n),O(r),Ee(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#f+=t,this.#f===0&&(this.#m(n),this.#r&&Ge(this.#r,()=>{this.#r=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,ve(()=>{this.#h=!1,this.#u&&Ve(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),F(this.#u)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(!n&&!r)throw t;this.#t&&(U(this.#t),this.#t=null),this.#r&&(U(this.#r),this.#r=null),this.#i&&(U(this.#i),this.#i=null),$&&(ne(this.#n),hr(),ne(dr()));var i=!1,s=!1;const l=()=>{if(i){cr();return}i=!0,s&&ur(),this.#i!==null&&Ge(this.#i,()=>{this.#i=null}),this.#g(()=>{this.#w()})},a=f=>{try{s=!0,n?.(f,l),s=!1}catch(o){re(o,this.#l&&this.#l.parent)}r&&(this.#i=this.#g(()=>{try{return me(()=>{var o=m;o.b=this,o.f|=et,r(this.#e,()=>f,()=>l)})}catch(o){return re(o,this.#l.parent),null}}))};ve(()=>{var f;try{f=this.transform_error(t)}catch(o){re(o,this.#l&&this.#l.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(a,o=>re(o,this.#l&&this.#l.parent)):a(f)})}}function Er(e,t,n,r){const i=ft;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=m,a=Tr(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function o(c){a();try{r(c)}catch(d){(l.f&j)===0&&re(d,l)}Ye()}if(n.length===0){f.then(()=>o(t.map(i)));return}var u=Qt();function h(){Promise.all(n.map(c=>Sr(c))).then(c=>o([...t.map(i),...c])).catch(c=>re(c,l)).finally(()=>u())}f?f.then(()=>{a(),h(),Ye()}):h()}function Tr(){var e=m,t=p,n=q,r=y;return function(s=!0){D(e),O(t),Ee(n),s&&(e.f&j)===0&&(r?.activate(),r?.apply())}}function Ye(e=!0){D(null),O(null),Ee(null),e&&y?.deactivate()}function Qt(){var e=m,t=e.b,n=y,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function ft(e){var t=E|C,n=p!==null&&(p.f&E)!==0?p:null;return m!==null&&(m.f|=ce),{ctx:q,deps:null,effects:null,equals:It,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??m,ac:null}}function Sr(e,t,n){let r=m;r===null&&er();var i=void 0,s=Re(S),l=!p,a=new Map;return Hr(()=>{var f=m,o=Ot();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(Ye)}catch(d){o.reject(d),Ye()}var u=y;if(l){if((f.f&ee)!==0)var h=Qt();if(r.b.is_rendered())a.get(u)?.reject(J),a.delete(u);else{for(const d of a.values())d.reject(J);a.clear()}a.set(u,o)}const c=(d,v=void 0)=>{if(h){var g=v===J;h(g)}if(!(v===J||(f.f&j)!==0)){if(u.activate(),v)s.f|=te,Ve(s,v);else{(s.f&te)!==0&&(s.f^=te),Ve(s,d);for(const[w,A]of a){if(a.delete(w),w===u)break;A.reject(J)}}u.deactivate()}};o.promise.then(c,d=>c(null,d||"unknown"))}),fn(()=>{for(const f of a.values())f.reject(J)}),new Promise(f=>{function o(u){function h(){u===i?f(s):o(i)}u.then(h,h)}o(i)})}function Nr(e){const t=ft(e);return t.equals=Ft,t}function Ar(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function Cr(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&j)===0?t:null;t=t.parent}return null}function ut(e){var t,n=m;D(Cr(e));try{e.f&=~he,Ar(e),t=yn(e)}finally{D(n)}return t}function en(e){var t=e.v,n=ut(e);if(!e.equals(n)&&(e.wv=gn(),(!y?.is_fork||e.deps===null)&&(e.v=n,y?.capture(e,t,!0),e.deps===null))){x(e,T);return}fe||(B!==null?(_t()||y?.is_fork)&&B.set(e,n):st(e))}function Or(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(J),t.teardown=Wn,t.ac=null,qe(t,0),pt(t))}function tn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ne(t)}let ct=new Set;const le=new Map;let nn=!1;function Re(e,t){var n={f:0,v:e,reactions:null,equals:It,rv:0,wv:0};return n}function ae(e,t){const n=Re(e);return Wr(n),n}function Rr(e,t=!1,n=!0){const r=Re(e);return t||(r.equals=Ft),r}function G(e,t,n=!1){p!==null&&(!H||(p.f&Lt)!==0)&&Ut()&&(p.f&(E|X|nt|Lt))!==0&&(M===null||!$e.call(M,e))&&fr();let r=n?Se(t):t;return Ve(e,r,He)}function Ve(e,t,n=null){if(!e.equals(t)){var r=e.v;fe?le.set(e,t):le.set(e,r),e.v=t;var i=se.ensure();if(i.capture(e,r),(e.f&E)!==0){const s=e;(e.f&C)!==0&&ut(s),B===null&&st(s)}e.wv=gn(),rn(e,C,n),m!==null&&(m.f&T)!==0&&(m.f&(z|Z))===0&&(I===null?Gr([e]):I.push(e)),!i.is_fork&&ct.size>0&&!nn&&Pr()}return t}function Pr(){nn=!1;for(const e of ct)(e.f&T)!==0&&x(e,Y),Le(e)&&Ne(e);ct.clear()}function Pe(e){G(e,e.v+1)}function rn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],a=l.f,f=(a&C)===0;if(f&&x(l,t),(a&E)!==0){var o=l;B?.delete(o),(a&he)===0&&(a&L&&(l.f|=he),rn(o,Y,n))}else if(f){var u=l;(a&X)!==0&&W!==null&&W.add(u),n!==null?n.push(u):ot(u)}}}function Se(e){if(typeof e!="object"||e===null||je in e)return e;const t=At(e);if(t!==zn&&t!==Jn)return e;var n=new Map,r=Un(e),i=ae(0),s=we,l=a=>{if(we===s)return a();var f=p,o=we;O(null),mn(s);var u=a();return O(f),mn(o),u};return r&&n.set("length",ae(e.length)),new Proxy(e,{defineProperty(a,f,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&ar();var u=n.get(f);return u===void 0?l(()=>{var h=ae(o.value);return n.set(f,h),h}):G(u,o.value,!0),!0},deleteProperty(a,f){var o=n.get(f);if(o===void 0){if(f in a){const u=l(()=>ae(S));n.set(f,u),Pe(i)}}else G(o,S),Pe(i);return!0},get(a,f,o){if(f===je)return e;var u=n.get(f),h=f in a;if(u===void 0&&(!h||ue(a,f)?.writable)&&(u=l(()=>{var d=Se(h?a[f]:S),v=ae(d);return v}),n.set(f,u)),u!==void 0){var c=F(u);return c===S?void 0:c}return Reflect.get(a,f,o)},getOwnPropertyDescriptor(a,f){var o=Reflect.getOwnPropertyDescriptor(a,f);if(o&&"value"in o){var u=n.get(f);u&&(o.value=F(u))}else if(o===void 0){var h=n.get(f),c=h?.v;if(h!==void 0&&c!==S)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return o},has(a,f){if(f===je)return!0;var o=n.get(f),u=o!==void 0&&o.v!==S||Reflect.has(a,f);if(o!==void 0||m!==null&&(!u||ue(a,f)?.writable)){o===void 0&&(o=l(()=>{var c=u?Se(a[f]):S,d=ae(c);return d}),n.set(f,o));var h=F(o);if(h===S)return!1}return u},set(a,f,o,u){var h=n.get(f),c=f in a;if(r&&f==="length")for(var d=o;d<h.v;d+=1){var v=n.get(d+"");v!==void 0?G(v,S):d in a&&(v=l(()=>ae(S)),n.set(d+"",v))}if(h===void 0)(!c||ue(a,f)?.writable)&&(h=l(()=>ae(void 0)),G(h,Se(o)),n.set(f,h));else{c=h.v!==S;var g=l(()=>Se(o));G(h,g)}var w=Reflect.getOwnPropertyDescriptor(a,f);if(w?.set&&w.set.call(u,o),!c){if(r&&typeof f=="string"){var A=n.get("length"),b=Number(f);Number.isInteger(b)&&b>=A.v&&G(A,b+1)}Pe(i)}return!0},ownKeys(a){F(i);var f=Reflect.ownKeys(a).filter(h=>{var c=n.get(h);return c===void 0||c.v!==S});for(var[o,u]of n)u.v!==S&&!(o in a)&&f.push(o);return f},setPrototypeOf(){or()}})}var sn,ln,an,on;function ht(){if(sn===void 0){sn=window,ln=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;an=ue(t,"firstChild").get,on=ue(t,"nextSibling").get,Ct(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ct(n)&&(n.__t=void 0)}}function ze(e=""){return document.createTextNode(e)}function Je(e){return an.call(e)}function oe(e){return on.call(e)}function We(e,t){if(!$)return Je(e);var n=Je(k);return n===null&&(n=k.appendChild(ze())),ne(n),n}function Lr(e,t=1,n=!1){let r=$?k:e;for(var i;t--;)i=r,r=oe(r);if(!$)return r;if(n){if(r?.nodeType!==Dt){var s=ze();return r===null?i?.after(s):r.before(s),ne(s),s}Dr(r)}return ne(r),r}function qr(e){e.textContent=""}function dt(e,t,n){return document.createElementNS(Nt,e,void 0)}function Dr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Dt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function vt(e){var t=p,n=m;O(null),D(null);try{return e()}finally{O(t),D(n)}}function Mr(e){m===null&&(p===null&&rr(),nr()),fe&&tr()}function Ir(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=m;n!==null&&(n.f&Q)!==0&&(e|=Q);var r={ctx:q,deps:null,nodes:null,f:e|C|L,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&ke)!==0)Te!==null?Te.push(r):se.ensure().schedule(r);else if(t!==null){try{Ne(r)}catch(l){throw U(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ce)===0&&(i=i.first,(e&X)!==0&&(e&Fe)!==0&&i!==null&&(i.f|=Fe))}if(i!==null&&(i.parent=n,n!==null&&Ir(i,n),p!==null&&(p.f&E)!==0&&(e&Z)===0)){var s=p;(s.effects??=[]).push(i)}return r}function _t(){return p!==null&&!H}function fn(e){const t=V(Ie,null);return x(t,T),t.teardown=e,t}function Fr(e){Mr();var t=m.f,n=!p&&(t&z)!==0&&(t&ee)===0;if(n){var r=q;(r.e??=[]).push(e)}else return un(e)}function un(e){return V(ke|Xn,e)}function jr(e){se.ensure();const t=V(Z|ce,e);return()=>{U(t)}}function Br(e){se.ensure();const t=V(Z|ce,e);return(n={})=>new Promise(r=>{n.outro?Ge(t,()=>{U(t),r(void 0)}):(U(t),r(void 0))})}function Ur(e){return V(ke,e)}function Hr(e){return V(nt|ce,e)}function cn(e,t=0){return V(Ie|t,e)}function pe(e,t=[],n=[],r=[]){Er(r,t,n,i=>{V(Ie,()=>e(...i.map(F)))})}function Yr(e,t=0){var n=V(X|t,e);return n}function me(e){return V(z|ce,e)}function hn(e){var t=e.teardown;if(t!==null){const n=fe,r=p;_n(!0),O(null);try{t.call(null)}finally{_n(n),O(r)}}}function pt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&vt(()=>{i.abort(J)});var r=n.next;(n.f&Z)!==0?n.parent=null:U(n,t),n=r}}function Vr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&z)===0&&U(t),t=n}}function U(e,t=!0){var n=!1;(t||(e.f&Kn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(zr(e.nodes.start,e.nodes.end),n=!0),x(e,Pt),pt(e,t&&!n),qe(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();hn(e),e.f^=Pt,e.f|=j;var i=e.parent;i!==null&&i.first!==null&&dn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function zr(e,t){for(;e!==null;){var n=e===t?null:oe(e);e.remove(),e=n}}function dn(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 Ge(e,t,n=!0){var r=[];vn(e,r,!0);var i=()=>{n&&U(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var a of r)a.out(l)}else i()}function vn(e,t,n){if((e.f&Q)===0){e.f^=Q;var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&t.push(a);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&Fe)!==0||(i.f&z)!==0&&(e.f&X)!==0;vn(i,t,l?n:!1),i=s}}}function Jr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:oe(n);t.append(n),n=i}}let Ke=!1,fe=!1;function _n(e){fe=e}let p=null,H=!1;function O(e){p=e}let m=null;function D(e){m=e}let M=null;function Wr(e){p!==null&&(M===null?M=[e]:M.push(e))}let R=null,P=0,I=null;function Gr(e){I=e}let pn=1,ge=0,we=ge;function mn(e){we=e}function gn(){return++pn}function Le(e){var t=e.f;if((t&C)!==0)return!0;if(t&E&&(e.f&=~he),(t&Y)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Le(s)&&en(s),s.wv>e.wv)return!0}(t&L)!==0&&B===null&&x(e,T)}return!1}function wn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(M!==null&&$e.call(M,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&E)!==0?wn(s,t,!1):t===s&&(n?x(s,C):(s.f&T)!==0&&x(s,Y),ot(s))}}function yn(e){var t=R,n=P,r=I,i=p,s=M,l=q,a=H,f=we,o=e.f;R=null,P=0,I=null,p=(o&(z|Z))===0?e:null,M=null,Ee(e.ctx),H=!1,we=++ge,e.ac!==null&&(vt(()=>{e.ac.abort(J)}),e.ac=null);try{e.f|=tt;var u=e.fn,h=u();e.f|=ee;var c=e.deps,d=y?.is_fork;if(R!==null){var v;if(d||qe(e,P),c!==null&&P>0)for(c.length=P+R.length,v=0;v<R.length;v++)c[P+v]=R[v];else e.deps=c=R;if(_t()&&(e.f&L)!==0)for(v=P;v<c.length;v++)(c[v].reactions??=[]).push(e)}else!d&&c!==null&&P<c.length&&(qe(e,P),c.length=P);if(Ut()&&I!==null&&!H&&c!==null&&(e.f&(E|Y|C))===0)for(v=0;v<I.length;v++)wn(I[v],e);if(i!==null&&i!==e){if(ge++,i.deps!==null)for(let g=0;g<n;g+=1)i.deps[g].rv=ge;if(t!==null)for(const g of t)g.rv=ge;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&te)!==0&&(e.f^=te),h}catch(g){return Yt(g)}finally{e.f^=tt,R=t,P=n,I=r,p=i,M=s,Ee(l),H=a,we=f}}function Kr(e,t){let n=t.reactions;if(n!==null){var r=Hn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&E)!==0&&(R===null||!$e.call(R,t))){var s=t;(s.f&L)!==0&&(s.f^=L,s.f&=~he),st(s),Or(s),qe(s,0)}}function qe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Kr(e,n[r])}function Ne(e){var t=e.f;if((t&j)===0){x(e,T);var n=m,r=Ke;m=e,Ke=!0;try{(t&(X|Rt))!==0?Vr(e):pt(e),hn(e);var i=yn(e);e.teardown=typeof i=="function"?i:null,e.wv=pn;var s;Bn&&_r&&(e.f&C)!==0&&e.deps}finally{Ke=r,m=n}}}function F(e){var t=e.f,n=(t&E)!==0;if(p!==null&&!H){var r=m!==null&&(m.f&j)!==0;if(!r&&(M===null||!$e.call(M,e))){var i=p.deps;if((p.f&tt)!==0)e.rv<ge&&(e.rv=ge,R===null&&i!==null&&i[P]===e?P++:R===null?R=[e]:R.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:$e.call(s,p)||s.push(p)}}}if(fe&&le.has(e))return le.get(e);if(n){var l=e;if(fe){var a=l.v;return((l.f&T)===0&&l.reactions!==null||$n(l))&&(a=ut(l)),le.set(l,a),a}var f=(l.f&L)===0&&!H&&p!==null&&(Ke||(p.f&L)!==0),o=(l.f&ee)===0;Le(l)&&(f&&(l.f|=L),en(l)),f&&!o&&(tn(l),bn(l))}if(B?.has(e))return B.get(e);if((e.f&te)!==0)throw e.v;return e.v}function bn(e){if(e.f|=L,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&L)===0&&(tn(t),bn(t))}function $n(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(le.has(t)||(t.f&E)!==0&&$n(t))return!0;return!1}function kn(e){var t=H;try{return H=!0,e()}finally{H=t}}const Xe=Symbol("events"),Xr=new Set,xn=new Set;function Zr(e,t,n,r={}){function i(s){if(r.capture||gt.call(t,s),!s.cancelBubble)return vt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ve(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function mt(e,t,n,r,i){var s={capture:r,passive:i},l=Zr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&fn(()=>{t.removeEventListener(e,l,s)})}let En=null;function gt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;En=e;var l=0,a=En===e&&e[Xe];if(a){var f=i.indexOf(a);if(f!==-1&&(t===document||t===window)){e[Xe]=t;return}var o=i.indexOf(t);if(o===-1)return;f<=o&&(l=f)}if(s=i[l]||e.target,s!==t){Me(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=p,h=m;O(null),D(null);try{for(var c,d=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var g=s[Xe]?.[r];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(w){c?d.push(w):c=w}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let w of d)queueMicrotask(()=>{throw w});throw c}}finally{e[Xe]=t,delete e.currentTarget,O(u),D(h)}}}const Qr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ei(e){return Qr?.createHTML(e)??e}function ti(e){var t=dt("template");return t.innerHTML=ei(e.replaceAll("<!>","<!---->")),t.content}function wt(e,t){var n=m;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ni(e,t){var n=(t&jn)!==0,r,i=!e.startsWith("<!>");return()=>{if($)return wt(k,null),k;r===void 0&&(r=ti(i?e:"<!>"+e),r=Je(r));var s=n||ln?document.importNode(r,!0):r.cloneNode(!0);return wt(s,s),s}}function Tn(e,t){if($){var n=m;((n.f&ee)===0||n.nodes.end===null)&&(n.nodes.end=k),Mt();return}e!==null&&e.before(t)}const ri=["touchstart","touchmove"];function ii(e){return ri.includes(e)}function Sn(e,t){return Nn(e,t)}function si(e,t){ht(),t.intro=t.intro??!1;const n=t.target,r=$,i=k;try{for(var s=Je(n);s&&(s.nodeType!==rt||s.data!==xt);)s=oe(s);if(!s)throw Ce;xe(!0),ne(s);const l=Nn(e,{...t,anchor:s});return xe(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==Ce&&console.warn("Failed to hydrate: ",l),t.recover===!1&&sr(),ht(),qr(n),xe(!1),Sn(e,t)}finally{xe(r),ne(i)}}const Ze=new Map;function Nn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:a}){ht();var f=void 0,o=Br(()=>{var u=n??t.appendChild(ze());kr(u,{pending:()=>{}},d=>{jt({});var v=q;if(s&&(v.c=s),i&&(r.$$events=i),$&&wt(d,null),f=e(d,r)||{},$&&(m.nodes.end=k,k===null||k.nodeType!==rt||k.data!==St))throw it(),Ce;Bt()},a);var h=new Set,c=d=>{for(var v=0;v<d.length;v++){var g=d[v];if(!h.has(g)){h.add(g);var w=ii(g);for(const _ of[t,document]){var A=Ze.get(_);A===void 0&&(A=new Map,Ze.set(_,A));var b=A.get(g);b===void 0?(_.addEventListener(g,gt,{passive:w}),A.set(g,1)):A.set(g,b+1)}}}};return c(Yn(Xr)),xn.add(c),()=>{for(var d of h)for(const w of[t,document]){var v=Ze.get(w),g=v.get(d);--g==0?(w.removeEventListener(d,gt),v.delete(d),v.size===0&&Ze.delete(w)):v.set(d,g)}xn.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return yt.set(f,o),f}let yt=new WeakMap;function li(e,t){const n=yt.get(e);return n?(yt.delete(e),n(t)):Promise.resolve()}function ai(e,t){Ur(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=dt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function oi(e,t,n){var r=""+e;return r}function An(e,t,n,r,i,s){var l=e.__className;if($||l!==n||l===void 0){var a=oi(n);(!$||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}return s}const fi=Symbol("is custom element"),ui=Symbol("is html"),ci=Qn?"link":"LINK";function hi(e,t,n,r){var i=di(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ci)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Zn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Cn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ye(e,t,n){var r=p,i=m;let s=$;$&&xe(!1),O(null),D(null);try{t!=="style"&&(bt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Cn(e).includes(t):n&&typeof n=="object")?e[t]=n:hi(e,t,n==null?n:String(n))}finally{O(r),D(i),s&&xe(!0)}}function di(e){return e.__attributes??={[fi]:e.nodeName.includes("-"),[ui]:e.namespaceURI===Nt}}var bt=new Map;function Cn(e){var t=e.getAttribute("is")||e.nodeName,n=bt.get(t);if(n)return n;bt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Vn(i);for(var l in r)r[l].set&&n.push(l);i=At(i)}return n}function Ae(e,t,n,r){var i=(n&In)!==0,s=(n&Fn)!==0,l=r,a=!0,f=()=>(a&&(a=!1,l=s?kn(r):r),l);let o;if(i){var u=je in e||qt in e;o=ue(e,t)?.set??(u&&t in e?b=>e[t]=b:void 0)}var h,c=!1;i?[h,c]=gr(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=f(),o&&(lr(),o(h)));var d;if(d=()=>{var b=e[t];return b===void 0?f():(a=!0,b)},(n&Mn)===0)return d;if(o){var v=e.$$legacy;return(function(b,_){return arguments.length>0?((!_||v||c)&&o(_?d():b),b):d()})}var g=!1,w=((n&Dn)!==0?ft:Nr)(()=>(g=!1,d()));i&&F(w);var A=m;return(function(b,_){if(arguments.length>0){const K=_?F(w):i?Se(b):b;return G(w,K),g=!0,l!==void 0&&(l=K),b}return fe&&g||(A.f&j)!==0?w.v:F(w)})}function vi(e){return new _i(e)}class _i{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var a=Rr(l,!1,!1);return n.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return F(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===qt?!0:(F(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,a){return G(n.get(l)??r(l,a),a),Reflect.set(s,l,a)}});this.#n=(t.hydrate?si:Sn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&_e(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Me(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{li(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let On;typeof HTMLElement=="function"&&(On=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}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=dt("slot");r!=="default"&&(s.name=r),Tn(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=pi(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]=Qe(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=vi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=jr(()=>{cn(()=>{this.$$r=!0;for(const r of De(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Qe(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]=Qe(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 De(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Qe(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 pi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function mi(e,t,n,r,i,s){let l=class extends On{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return De(t).map(a=>(t[a].attribute||a).toLowerCase())}};return De(t).forEach(a=>{Me(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(f){f=Qe(a,f,t),this.$$d[a]=f;var o=this.$$c;if(o){var u=ue(o,a)?.get;u?o[a]=f:o.$set({[a]:f})}}})}),r.forEach(a=>{Me(l.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=l,l}const Rn={version:"0.66.2"};var be={},Pn;function gi(){if(Pn)return be;Pn=1,Object.defineProperty(be,"__esModule",{value:!0}),be.LanguageTranslator=void 0,be.getChildStyleToPass=e,be.addComponent=t;function e(r,i){var s,l,a="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||l===void 0)&&l.length))for(var f=function(c){var d=i?.filter(function(v){return v.name===c&&v.defaultValue!==r[c]});d&&(a+="".concat(c,":").concat(r[c],";"))},o=0,u=Object.keys(r);o<u.length;o++){var h=u[o];f(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return a}}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 l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)a.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(l)}document.head.appendChild(a)}catch(o){console.warn(o)}}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,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,a="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},r.getDictionaryWord=function(i,s,l){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((a=s[l])===null||a===void 0)&&a[i]))return s[l][i];var f="",o=r.getDefaultLang();if(!l||o!==l){var u=s?.[o];u?.[i]&&(f=u[i])}return f},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return a.format(i)},r})();return be.LanguageTranslator=n,be}var Ln=gi(),wi=ni('<div class="container svelte-sykhqk"><div class="row svelte-sykhqk"><div class="col-7 svelte-sykhqk" style="padding-right:30px"><hb-checkout></hb-checkout></div> <div class="col-5 svelte-sykhqk" style="padding-left:30px"><hb-checkout-shopping-cart></hb-checkout-shopping-cart></div></div></div>',2);const yi={hash:"svelte-sykhqk",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
|
/*!
|
|
5
5
|
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
@media (min-width: 1200px) {
|
|
85
85
|
}
|
|
86
86
|
@media print {
|
|
87
|
-
}:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}hb-checkout-shopping-cart.svelte-sykhqk {border:var(--hb-checkout-border);--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}`};function
|
|
87
|
+
}:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}hb-checkout-shopping-cart.svelte-sykhqk {border:var(--hb-checkout-border);--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}`};function qn(e,t){jt(t,!0),ai(e,yi);const n={merchantName:"merchant",countryCode:"IT",total:0,currencyCode:"EUR",items:[]};let r=Ae(t,"id",7,""),i=Ae(t,"shipments",23,()=>[]),s=Ae(t,"user",7),l=Ae(t,"payment",7,n),a=Ae(t,"gateways",23,()=>[]),f=Ae(t,"completed",7,"no");Fr(()=>{typeof i()=="string"&&i(JSON.parse(i())||[]),typeof a()=="string"&&a(JSON.parse(a())||[]),typeof l()=="string"&&l(JSON.parse(l())),l()&&(i().find(N=>N.selected)||i().find(N=>N.standard))&&(l().shipmentFee=(i()?.find(N=>N.selected)||i().find(N=>N.standard))?.price);let _=l()?.shipmentFee||0;for(const N of l().items)_+=N.unitaryPrice*(N.quantity||1)+Math.round(N.taxPercentage*.01*N.unitaryPrice*(N.quantity||1)*100)/100;let K;switch(l()?.countryCode?.toUpperCase()){default:K="EUR"}l().total=Math.round(_*100)/100,l().currencyCode=K});function o(_,K){t.$$host.dispatchEvent(new CustomEvent(_,{detail:K}))}Ln.addComponent({repoName:"@htmlbricks/hb-checkout-shopping-cart",version:Rn.version}),Ln.addComponent({repoName:"@htmlbricks/hb-checkout",version:Rn.version});function u(_){const K=i().findIndex($t=>$t.id===_.id),N=i()[K];i().forEach($t=>$t.selected=!1),N.selected=!0,l().shipmentFee=N.price,console.log("sss",N,_)}function h(_){_.completed?(f("yes"),o("paymentCompleted",_)):console.warn(_)}var c={get id(){return r()},set id(_=""){r(_),_e()},get shipments(){return i()},set shipments(_=[]){i(_),_e()},get user(){return s()},set user(_){s(_),_e()},get payment(){return l()},set payment(_=n){l(_),_e()},get gateways(){return a()},set gateways(_=[]){a(_),_e()},get completed(){return f()},set completed(_="no"){f(_),_e()}},d=wi(),v=We(d),g=We(v),w=We(g);pe(()=>ye(w,"completed",f())),pe(()=>ye(w,"user",s())),pe(()=>ye(w,"shipments",JSON.stringify(i()))),pe(()=>ye(w,"gateways",JSON.stringify(a()))),pe(()=>ye(w,"payment",JSON.stringify(l()))),An(w,1,"svelte-sykhqk"),Be(g);var A=Lr(g,2),b=We(A);return pe(()=>ye(b,"completed",f())),pe(()=>ye(b,"payment",JSON.stringify(l()))),An(b,1,"svelte-sykhqk"),Be(A),Be(v),Be(d),mt("paymentCompleted",w,_=>h(_.detail)),mt("saveUser",w,_=>o("saveUser",_.detail)),mt("saveShipment",w,_=>u(_.detail)),Tn(e,d),Bt(c)}customElements.define("hb-page-checkout",mi(qn,{id:{},shipments:{},user:{},payment:{},gateways:{},completed:{}},[],[],{mode:"open"})),kt.Component=qn,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})})(this["page-checkout"]=this["page-checkout"]||{});
|
|
88
88
|
//# sourceMappingURL=main.iife.js.map
|