@htmlbricks/hb-page-invoice 0.66.4 → 0.66.6

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
1
  (function(cn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const jr=1,Yr=4,Fr=8,Hr=16,qr=1,zr=2,dn="[",hn="[!",vn="[?",_n="]",Ge={},B=Symbol(),pn="http://www.w3.org/1999/xhtml",Br=!1;var Ur=Array.isArray,Vr=Array.prototype.indexOf,Ke=Array.prototype.includes,Jr=Array.from,wt=Object.keys,yt=Object.defineProperty,He=Object.getOwnPropertyDescriptor,Wr=Object.getOwnPropertyDescriptors,Gr=Object.prototype,Kr=Array.prototype,bn=Object.getPrototypeOf,mn=Object.isExtensible;const Zr=()=>{};function Xr(e){for(var t=0;t<e.length;t++)e[t]()}function gn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const q=2,Ze=4,$t=8,wn=1<<24,Me=16,de=32,Oe=64,Yt=128,te=512,H=1024,J=2048,he=4096,ve=8192,le=16384,De=32768,yn=1<<25,Xe=65536,$n=1<<17,Qr=1<<18,qe=1<<19,ei=1<<20,ze=65536,Ft=1<<21,Ht=1<<22,Ne=1<<23,xt=Symbol("$state"),xn=Symbol("legacy props"),ti=Symbol(""),ge=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ni=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ot=3,Et=8;function ri(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ii(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function si(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ai(e){throw new Error("https://svelte.dev/e/effect_orphan")}function oi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function li(){throw new Error("https://svelte.dev/e/hydration_failed")}function ui(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function fi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ci(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function di(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function hi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function St(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function vi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let N=!1;function Ae(e){N=e}let D;function ne(e){if(e===null)throw St(),Ge;return D=e}function qt(){return ne($e(D))}function k(e){if(N){if($e(D)!==null)throw St(),Ge;D=e}}function _i(e=1){if(N){for(var t=e,n=D;t--;)n=$e(n);D=n}}function En(e=!0){for(var t=0,n=D;;){if(n.nodeType===Et){var r=n.data;if(r===_n){if(t===0)return n;t-=1}else(r===dn||r===hn||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=$e(n);e&&n.remove(),n=i}}function pi(e){if(!e||e.nodeType!==Et)throw St(),Ge;return e.data}function Sn(e){return e===this.v}function bi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function kn(e){return!bi(e,this.v)}let mi=!1,re=null;function Qe(e){re=e}function Tn(e,t=!1,n){re={p:re,i:!1,c:null,e:null,s:e,x:null,r:E,l:null}}function Mn(e){var t=re,n=t.e;if(n!==null){t.e=null;for(var r of n)Kn(r)}return e!==void 0&&(t.x=e),t.i=!0,re=t.p,e??{}}function On(){return!0}let Be=[];function Dn(){var e=Be;Be=[],Xr(e)}function et(e){if(Be.length===0&&!lt){var t=Be;queueMicrotask(()=>{t===Be&&Dn()})}Be.push(e)}function gi(){for(;Be.length>0;)Dn()}function Nn(e){var t=E;if(t===null)return x.f|=Ne,e;if((t.f&De)===0&&(t.f&Ze)===0)throw e;Re(e,t)}function Re(e,t){for(;t!==null;){if((t.f&Yt)!==0){if((t.f&De)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const wi=-7169;function j(e,t){e.f=e.f&wi|t}function zt(e){(e.f&te)!==0||e.deps===null?j(e,H):j(e,he)}function An(e){if(e!==null)for(const t of e)(t.f&q)===0||(t.f&ze)===0||(t.f^=ze,An(t.deps))}function Rn(e,t,n){(e.f&J)!==0?t.add(e):(e.f&he)!==0&&n.add(e),An(e.deps),j(e,H)}let kt=!1;function yi(e){var t=kt;try{return kt=!1,[e(),kt]}finally{kt=t}}const Pe=new Set;let P=null,ue=null,Bt=null,lt=!1,Ut=!1,tt=null,Tt=null;var Pn=0;let $i=1;class we{id=$i++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#a=new Set;#o=new Set;#l=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#u)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#l.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#l.get(t);if(n){this.#l.delete(t);for(var r of n.d)j(r,J),this.schedule(r);for(r of n.m)j(r,he),this.schedule(r)}}#h(){if(Pn++>1e3&&(Pe.delete(this),xi()),!this.#d()){for(const o of this.#a)this.#o.delete(o),j(o,J),this.schedule(o);for(const o of this.#o)j(o,he),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=tt=[],r=[],i=Tt=[];for(const o of t)try{this.#f(o,n,r)}catch(l){throw Yn(o),l}if(P=null,i.length>0){var s=we.ensure();for(const o of i)s.schedule(o)}if(tt=null,Tt=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[o,l]of this.#l)jn(o,l)}else{this.#t.size===0&&Pe.delete(this),this.#a.clear(),this.#o.clear();for(const o of this.#e)o(this);this.#e.clear(),Cn(r),Cn(n),this.#s?.resolve()}var a=P;if(this.#r.length>0){const o=a??=this;o.#r.push(...this.#r.filter(l=>!o.#r.includes(l)))}a!==null&&(Pe.add(a),a.#h()),Pe.has(this)||this.#p()}#f(t,n,r){t.f^=H;for(var i=t.first;i!==null;){var s=i.f,a=(s&(de|Oe))!==0,o=a&&(s&H)!==0,l=o||(s&ve)!==0||this.#l.has(i);if(!l&&i.fn!==null){a?i.f^=H:(s&Ze)!==0?n.push(i):ht(i)&&((s&Me)!==0&&this.#o.add(i),st(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)Rn(t[n],this.#a,this.#o)}capture(t,n,r=!1){n!==B&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Ne)===0&&(this.current.set(t,[t.v,r]),ue?.set(t,t.v))}activate(){P=this}deactivate(){P=null,ue=null}flush(){try{Ut=!0,P=this,this.#h()}finally{Pn=0,Bt=null,tt=null,Tt=null,Ut=!1,P=null,ue=null,Ce.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Pe.delete(this)}#p(){for(const u of Pe){var t=u.id<this.id,n=[];for(const[f,[h,v]]of this.current){if(u.current.has(f)){var r=u.current.get(f)[0];if(t&&h!==r)u.current.set(f,[h,v]);else continue}n.push(f)}var i=[...u.current.keys()].filter(f=>!this.current.has(f));if(i.length===0)t&&u.discard();else if(n.length>0){u.activate();var s=new Set,a=new Map;for(var o of n)Ln(o,i,s,a);if(u.#r.length>0){u.apply();for(var l of u.#r)u.#f(l,[],[]);u.#r=[]}u.deactivate()}}for(const u of Pe)u.#u.has(this)&&(u.#u.delete(this),u.#u.size===0&&!u.#d()&&(u.activate(),u.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,et(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#a.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=gn()).promise}static ensure(){if(P===null){const t=P=new we;Ut||(Pe.add(P),lt||et(()=>{P===t&&t.flush()}))}return P}apply(){{ue=null;return}}schedule(t){if(Bt=t,t.b?.is_pending&&(t.f&(Ze|$t|wn))!==0&&(t.f&De)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(tt!==null&&n===E&&(x===null||(x.f&q)===0))return;if((r&(Oe|de))!==0){if((r&H)===0)return;n.f^=H}}this.#r.push(n)}}function ut(e){var t=lt;lt=!0;try{for(var n;;){if(gi(),P===null)return n;P.flush()}}finally{lt=t}}function xi(){try{oi()}catch(e){Re(e,Bt)}}let ye=null;function Cn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(le|ve))===0&&ht(r)&&(ye=new Set,st(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&er(r),ye?.size>0)){Ce.clear();for(const i of ye){if((i.f&(le|ve))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)ye.has(a)&&(ye.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const l=s[o];(l.f&(le|ve))===0&&st(l)}}ye.clear()}}ye=null}}function Ln(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&q)!==0?Ln(i,t,n,r):(s&(Ht|Me))!==0&&(s&J)===0&&In(i,t,r)&&(j(i,J),Vt(i))}}function In(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(Ke.call(t,i))return!0;if((i.f&q)!==0&&In(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Vt(e){P.schedule(e)}function jn(e,t){if(!((e.f&de)!==0&&(e.f&H)!==0)){(e.f&J)!==0?t.d.push(e):(e.f&he)!==0&&t.m.push(e),j(e,H);for(var n=e.first;n!==null;)jn(n,t),n=n.next}}function Yn(e){j(e,H);for(var t=e.first;t!==null;)Yn(t),t=t.next}function Ei(e){let t=0,n=ft(0),r;return()=>{Zt()&&(A(n),Zn(()=>(t===0&&(r=hr(()=>e(()=>ct(n)))),t+=1,()=>{et(()=>{t-=1,t===0&&(r?.(),r=void 0,ct(n))})})))}}var Si=Xe|qe;function ki(e,t,n,r){new Ti(e,t,n,r)}class Ti{parent;is_pending=!1;transform_error;#e;#n=N?D:null;#t;#i;#s;#r=null;#a=null;#o=null;#l=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#_=Ei(()=>(this.#f=ft(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var a=E;a.b=this,a.f|=Yt,r(s)},this.parent=E.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=Xn(()=>{if(N){const s=this.#n;qt();const a=s.data===hn;if(s.data.startsWith(vn)){const l=JSON.parse(s.data.slice(vn.length));this.#y(l)}else a?this.#$():this.#p()}else this.#g()},Si),N&&(this.#e=D)}#p(){try{this.#r=xe(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#o=xe(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#a=xe(()=>t(this.#e)),et(()=>{var n=this.#l=document.createDocumentFragment(),r=fe();n.append(r),this.#r=this.#m(()=>xe(()=>this.#i(r))),this.#u===0&&(this.#e.before(n),this.#l=null,dt(this.#a,()=>{this.#a=null}),this.#b(P))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#r=xe(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();rr(this.#r,t);const n=this.#t.pending;this.#a=xe(()=>n(this.#e))}else this.#b(P)}catch(n){this.error(n)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Rn(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=E,r=x,i=re;ie(this.#s),Z(this.#s),Qe(this.#s.ctx);try{return we.ensure(),t()}catch(s){return Nn(s),null}finally{ie(n),Z(r),Qe(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#u+=t,this.#u===0&&(this.#b(n),this.#a&&dt(this.#a,()=>{this.#a=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,et(()=>{this.#d=!1,this.#f&&Dt(this.#f,this.#c)}))}get_effect_pending(){return this.#_(),A(this.#f)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(K(this.#r),this.#r=null),this.#a&&(K(this.#a),this.#a=null),this.#o&&(K(this.#o),this.#o=null),N&&(ne(this.#n),_i(),ne(En()));var i=!1,s=!1;const a=()=>{if(i){vi();return}i=!0,s&&hi(),this.#o!==null&&dt(this.#o,()=>{this.#o=null}),this.#m(()=>{this.#g()})},o=l=>{try{s=!0,n?.(l,a),s=!1}catch(u){Re(u,this.#s&&this.#s.parent)}r&&(this.#o=this.#m(()=>{try{return xe(()=>{var u=E;u.b=this,u.f|=Yt,r(this.#e,()=>l,()=>a)})}catch(u){return Re(u,this.#s.parent),null}}))};et(()=>{var l;try{l=this.transform_error(t)}catch(u){Re(u,this.#s&&this.#s.parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(o,u=>Re(u,this.#s&&this.#s.parent)):o(l)})}}function Mi(e,t,n,r){const i=Ot;var s=e.filter(v=>!v.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var a=E,o=Oi(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(v=>v.promise)):null;function u(v){o();try{r(v)}catch(b){(a.f&le)===0&&Re(b,a)}Mt()}if(n.length===0){l.then(()=>u(t.map(i)));return}var f=Fn();function h(){Promise.all(n.map(v=>Di(v))).then(v=>u([...t.map(i),...v])).catch(v=>Re(v,a)).finally(()=>f())}l?l.then(()=>{o(),h(),Mt()}):h()}function Oi(){var e=E,t=x,n=re,r=P;return function(s=!0){ie(e),Z(t),Qe(n),s&&(e.f&le)===0&&(r?.activate(),r?.apply())}}function Mt(e=!0){ie(null),Z(null),Qe(null),e&&P?.deactivate()}function Fn(){var e=E,t=e.b,n=P,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 Ot(e){var t=q|J,n=x!==null&&(x.f&q)!==0?x:null;return E!==null&&(E.f|=qe),{ctx:re,deps:null,effects:null,equals:Sn,f:t,fn:e,reactions:null,rv:0,v:B,wv:0,parent:n??E,ac:null}}function Di(e,t,n){let r=E;r===null&&ri();var i=void 0,s=ft(B),a=!x,o=new Map;return Ji(()=>{var l=E,u=gn();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(Mt)}catch(b){u.reject(b),Mt()}var f=P;if(a){if((l.f&De)!==0)var h=Fn();if(r.b.is_rendered())o.get(f)?.reject(ge),o.delete(f);else{for(const b of o.values())b.reject(ge);o.clear()}o.set(f,u)}const v=(b,g=void 0)=>{if(h){var S=g===ge;h(S)}if(!(g===ge||(l.f&le)!==0)){if(f.activate(),g)s.f|=Ne,Dt(s,g);else{(s.f&Ne)!==0&&(s.f^=Ne),Dt(s,b);for(const[R,U]of o){if(o.delete(R),R===f)break;U.reject(ge)}}f.deactivate()}};u.promise.then(v,b=>v(null,b||"unknown"))}),qi(()=>{for(const l of o.values())l.reject(ge)}),new Promise(l=>{function u(f){function h(){f===i?l(s):u(i)}f.then(h,h)}u(i)})}function nt(e){const t=Ot(e);return sr(t),t}function Ni(e){const t=Ot(e);return t.equals=kn,t}function Ai(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)K(t[n])}}function Ri(e){for(var t=e.parent;t!==null;){if((t.f&q)===0)return(t.f&le)===0?t:null;t=t.parent}return null}function Jt(e){var t,n=E;ie(Ri(e));try{e.f&=~ze,Ai(e),t=fr(e)}finally{ie(n)}return t}function Hn(e){var t=e.v,n=Jt(e);if(!e.equals(n)&&(e.wv=lr(),(!P?.is_fork||e.deps===null)&&(e.v=n,P?.capture(e,t,!0),e.deps===null))){j(e,H);return}Le||(ue!==null?(Zt()||P?.is_fork)&&ue.set(e,n):zt(e))}function Pi(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ge),t.teardown=Zr,t.ac=null,vt(t,0),Qt(t))}function qn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&st(t)}let Wt=new Set;const Ce=new Map;let zn=!1;function ft(e,t){var n={f:0,v:e,reactions:null,equals:Sn,rv:0,wv:0};return n}function _e(e,t){const n=ft(e);return sr(n),n}function Ci(e,t=!1,n=!0){const r=ft(e);return t||(r.equals=kn),r}function G(e,t,n=!1){x!==null&&(!ce||(x.f&$n)!==0)&&On()&&(x.f&(q|Me|Ht|$n))!==0&&(se===null||!Ke.call(se,e))&&di();let r=n?rt(t):t;return Dt(e,r,Tt)}function Dt(e,t,n=null){if(!e.equals(t)){var r=e.v;Le?Ce.set(e,t):Ce.set(e,r),e.v=t;var i=we.ensure();if(i.capture(e,r),(e.f&q)!==0){const s=e;(e.f&J)!==0&&Jt(s),ue===null&&zt(s)}e.wv=lr(),Bn(e,J,n),E!==null&&(E.f&H)!==0&&(E.f&(de|Oe))===0&&(ae===null?Zi([e]):ae.push(e)),!i.is_fork&&Wt.size>0&&!zn&&Li()}return t}function Li(){zn=!1;for(const e of Wt)(e.f&H)!==0&&j(e,he),ht(e)&&st(e);Wt.clear()}function ct(e){G(e,e.v+1)}function Bn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var a=r[s],o=a.f,l=(o&J)===0;if(l&&j(a,t),(o&q)!==0){var u=a;ue?.delete(u),(o&ze)===0&&(o&te&&(a.f|=ze),Bn(u,he,n))}else if(l){var f=a;(o&Me)!==0&&ye!==null&&ye.add(f),n!==null?n.push(f):Vt(f)}}}function rt(e){if(typeof e!="object"||e===null||xt in e)return e;const t=bn(e);if(t!==Gr&&t!==Kr)return e;var n=new Map,r=Ur(e),i=_e(0),s=Ve,a=o=>{if(Ve===s)return o();var l=x,u=Ve;Z(null),or(s);var f=o();return Z(l),or(u),f};return r&&n.set("length",_e(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&fi();var f=n.get(l);return f===void 0?a(()=>{var h=_e(u.value);return n.set(l,h),h}):G(f,u.value,!0),!0},deleteProperty(o,l){var u=n.get(l);if(u===void 0){if(l in o){const f=a(()=>_e(B));n.set(l,f),ct(i)}}else G(u,B),ct(i);return!0},get(o,l,u){if(l===xt)return e;var f=n.get(l),h=l in o;if(f===void 0&&(!h||He(o,l)?.writable)&&(f=a(()=>{var b=rt(h?o[l]:B),g=_e(b);return g}),n.set(l,f)),f!==void 0){var v=A(f);return v===B?void 0:v}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var f=n.get(l);f&&(u.value=A(f))}else if(u===void 0){var h=n.get(l),v=h?.v;if(h!==void 0&&v!==B)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(o,l){if(l===xt)return!0;var u=n.get(l),f=u!==void 0&&u.v!==B||Reflect.has(o,l);if(u!==void 0||E!==null&&(!f||He(o,l)?.writable)){u===void 0&&(u=a(()=>{var v=f?rt(o[l]):B,b=_e(v);return b}),n.set(l,u));var h=A(u);if(h===B)return!1}return f},set(o,l,u,f){var h=n.get(l),v=l in o;if(r&&l==="length")for(var b=u;b<h.v;b+=1){var g=n.get(b+"");g!==void 0?G(g,B):b in o&&(g=a(()=>_e(B)),n.set(b+"",g))}if(h===void 0)(!v||He(o,l)?.writable)&&(h=a(()=>_e(void 0)),G(h,rt(u)),n.set(l,h));else{v=h.v!==B;var S=a(()=>rt(u));G(h,S)}var R=Reflect.getOwnPropertyDescriptor(o,l);if(R?.set&&R.set.call(f,u),!v){if(r&&typeof l=="string"){var U=n.get("length"),p=Number(l);Number.isInteger(p)&&p>=U.v&&G(U,p+1)}ct(i)}return!0},ownKeys(o){A(i);var l=Reflect.ownKeys(o).filter(h=>{var v=n.get(h);return v===void 0||v.v!==B});for(var[u,f]of n)f.v!==B&&!(u in o)&&l.push(u);return l},setPrototypeOf(){ci()}})}var Un,Vn,Jn,Wn;function Gt(){if(Un===void 0){Un=window,Vn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Jn=He(t,"firstChild").get,Wn=He(t,"nextSibling").get,mn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mn(n)&&(n.__t=void 0)}}function fe(e=""){return document.createTextNode(e)}function it(e){return Jn.call(e)}function $e(e){return Wn.call(e)}function T(e,t){if(!N)return it(e);var n=it(D);if(n===null)n=D.appendChild(fe());else if(t&&n.nodeType!==ot){var r=fe();return n?.before(r),ne(r),r}return t&&Nt(n),ne(n),n}function Ii(e,t=!1){if(!N){var n=it(e);return n instanceof Comment&&n.data===""?$e(n):n}if(t){if(D?.nodeType!==ot){var r=fe();return D?.before(r),ne(r),r}Nt(D)}return D}function Y(e,t=1,n=!1){let r=N?D:e;for(var i;t--;)i=r,r=$e(r);if(!N)return r;if(n){if(r?.nodeType!==ot){var s=fe();return r===null?i?.after(s):r.before(s),ne(s),s}Nt(r)}return ne(r),r}function ji(e){e.textContent=""}function Yi(){return!1}function Kt(e,t,n){return document.createElementNS(pn,e,void 0)}function Nt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ot;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Gn(e){var t=x,n=E;Z(null),ie(null);try{return e()}finally{Z(t),ie(n)}}function Fi(e){E===null&&(x===null&&ai(),si()),Le&&ii()}function Hi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function pe(e,t){var n=E;n!==null&&(n.f&ve)!==0&&(e|=ve);var r={ctx:re,deps:null,nodes:null,f:e|J|te,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&Ze)!==0)tt!==null?tt.push(r):we.ensure().schedule(r);else if(t!==null){try{st(r)}catch(a){throw K(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&qe)===0&&(i=i.first,(e&Me)!==0&&(e&Xe)!==0&&i!==null&&(i.f|=Xe))}if(i!==null&&(i.parent=n,n!==null&&Hi(i,n),x!==null&&(x.f&q)!==0&&(e&Oe)===0)){var s=x;(s.effects??=[]).push(i)}return r}function Zt(){return x!==null&&!ce}function qi(e){const t=pe($t,null);return j(t,H),t.teardown=e,t}function zi(e){Fi();var t=E.f,n=!x&&(t&de)!==0&&(t&De)===0;if(n){var r=re;(r.e??=[]).push(e)}else return Kn(e)}function Kn(e){return pe(Ze|ei,e)}function Bi(e){we.ensure();const t=pe(Oe|qe,e);return()=>{K(t)}}function Ui(e){we.ensure();const t=pe(Oe|qe,e);return(n={})=>new Promise(r=>{n.outro?dt(t,()=>{K(t),r(void 0)}):(K(t),r(void 0))})}function Vi(e){return pe(Ze,e)}function Ji(e){return pe(Ht|qe,e)}function Zn(e,t=0){return pe($t|t,e)}function Xt(e,t=[],n=[],r=[]){Mi(r,t,n,i=>{pe($t,()=>e(...i.map(A)))})}function Xn(e,t=0){var n=pe(Me|t,e);return n}function xe(e){return pe(de|qe,e)}function Qn(e){var t=e.teardown;if(t!==null){const n=Le,r=x;ir(!0),Z(null);try{t.call(null)}finally{ir(n),Z(r)}}}function Qt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Gn(()=>{i.abort(ge)});var r=n.next;(n.f&Oe)!==0?n.parent=null:K(n,t),n=r}}function Wi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&de)===0&&K(t),t=n}}function K(e,t=!0){var n=!1;(t||(e.f&Qr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Gi(e.nodes.start,e.nodes.end),n=!0),j(e,yn),Qt(e,t&&!n),vt(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Qn(e),e.f^=yn,e.f|=le;var i=e.parent;i!==null&&i.first!==null&&er(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Gi(e,t){for(;e!==null;){var n=e===t?null:$e(e);e.remove(),e=n}}function er(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 dt(e,t,n=!0){var r=[];tr(e,r,!0);var i=()=>{n&&K(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var o of r)o.out(a)}else i()}function tr(e,t,n){if((e.f&ve)===0){e.f^=ve;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&Xe)!==0||(i.f&de)!==0&&(e.f&Me)!==0;tr(i,t,a?n:!1),i=s}}}function Ki(e){nr(e,!0)}function nr(e,t){if((e.f&ve)!==0){e.f^=ve,(e.f&H)===0&&(j(e,J),we.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Xe)!==0||(n.f&de)!==0;nr(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function rr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:$e(n);t.append(n),n=i}}let At=!1,Le=!1;function ir(e){Le=e}let x=null,ce=!1;function Z(e){x=e}let E=null;function ie(e){E=e}let se=null;function sr(e){x!==null&&(se===null?se=[e]:se.push(e))}let X=null,ee=0,ae=null;function Zi(e){ae=e}let ar=1,Ue=0,Ve=Ue;function or(e){Ve=e}function lr(){return++ar}function ht(e){var t=e.f;if((t&J)!==0)return!0;if(t&q&&(e.f&=~ze),(t&he)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(ht(s)&&Hn(s),s.wv>e.wv)return!0}(t&te)!==0&&ue===null&&j(e,H)}return!1}function ur(e,t,n=!0){var r=e.reactions;if(r!==null&&!(se!==null&&Ke.call(se,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&q)!==0?ur(s,t,!1):t===s&&(n?j(s,J):(s.f&H)!==0&&j(s,he),Vt(s))}}function fr(e){var t=X,n=ee,r=ae,i=x,s=se,a=re,o=ce,l=Ve,u=e.f;X=null,ee=0,ae=null,x=(u&(de|Oe))===0?e:null,se=null,Qe(e.ctx),ce=!1,Ve=++Ue,e.ac!==null&&(Gn(()=>{e.ac.abort(ge)}),e.ac=null);try{e.f|=Ft;var f=e.fn,h=f();e.f|=De;var v=e.deps,b=P?.is_fork;if(X!==null){var g;if(b||vt(e,ee),v!==null&&ee>0)for(v.length=ee+X.length,g=0;g<X.length;g++)v[ee+g]=X[g];else e.deps=v=X;if(Zt()&&(e.f&te)!==0)for(g=ee;g<v.length;g++)(v[g].reactions??=[]).push(e)}else!b&&v!==null&&ee<v.length&&(vt(e,ee),v.length=ee);if(On()&&ae!==null&&!ce&&v!==null&&(e.f&(q|he|J))===0)for(g=0;g<ae.length;g++)ur(ae[g],e);if(i!==null&&i!==e){if(Ue++,i.deps!==null)for(let S=0;S<n;S+=1)i.deps[S].rv=Ue;if(t!==null)for(const S of t)S.rv=Ue;ae!==null&&(r===null?r=ae:r.push(...ae))}return(e.f&Ne)!==0&&(e.f^=Ne),h}catch(S){return Nn(S)}finally{e.f^=Ft,X=t,ee=n,ae=r,x=i,se=s,Qe(a),ce=o,Ve=l}}function Xi(e,t){let n=t.reactions;if(n!==null){var r=Vr.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&q)!==0&&(X===null||!Ke.call(X,t))){var s=t;(s.f&te)!==0&&(s.f^=te,s.f&=~ze),zt(s),Pi(s),vt(s,0)}}function vt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xi(e,n[r])}function st(e){var t=e.f;if((t&le)===0){j(e,H);var n=E,r=At;E=e,At=!0;try{(t&(Me|wn))!==0?Wi(e):Qt(e),Qn(e);var i=fr(e);e.teardown=typeof i=="function"?i:null,e.wv=ar;var s;Br&&mi&&(e.f&J)!==0&&e.deps}finally{At=r,E=n}}}function A(e){var t=e.f,n=(t&q)!==0;if(x!==null&&!ce){var r=E!==null&&(E.f&le)!==0;if(!r&&(se===null||!Ke.call(se,e))){var i=x.deps;if((x.f&Ft)!==0)e.rv<Ue&&(e.rv=Ue,X===null&&i!==null&&i[ee]===e?ee++:X===null?X=[e]:X.push(e));else{(x.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[x]:Ke.call(s,x)||s.push(x)}}}if(Le&&Ce.has(e))return Ce.get(e);if(n){var a=e;if(Le){var o=a.v;return((a.f&H)===0&&a.reactions!==null||dr(a))&&(o=Jt(a)),Ce.set(a,o),o}var l=(a.f&te)===0&&!ce&&x!==null&&(At||(x.f&te)!==0),u=(a.f&De)===0;ht(a)&&(l&&(a.f|=te),Hn(a)),l&&!u&&(qn(a),cr(a))}if(ue?.has(e))return ue.get(e);if((e.f&Ne)!==0)throw e.v;return e.v}function cr(e){if(e.f|=te,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&q)!==0&&(t.f&te)===0&&(qn(t),cr(t))}function dr(e){if(e.v===B)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ce.has(t)||(t.f&q)!==0&&dr(t))return!0;return!1}function hr(e){var t=ce;try{return ce=!0,e()}finally{ce=t}}const _t=Symbol("events"),vr=new Set,en=new Set;function _r(e,t,n){(t[_t]??={})[e]=n}function Qi(e){for(var t=0;t<e.length;t++)vr.add(e[t]);for(var n of en)n(e)}let pr=null;function br(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;pr=e;var a=0,o=pr===e&&e[_t];if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e[_t]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){yt(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=x,h=E;Z(null),ie(null);try{for(var v,b=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var S=s[_t]?.[r];S!=null&&(!s.disabled||e.target===s)&&S.call(s,e)}catch(R){v?b.push(R):v=R}if(e.cancelBubble||g===t||g===null)break;s=g}if(v){for(let R of b)queueMicrotask(()=>{throw R});throw v}}finally{e[_t]=t,delete e.currentTarget,Z(f),ie(h)}}}const es=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ts(e){return es?.createHTML(e)??e}function ns(e){var t=Kt("template");return t.innerHTML=ts(e.replaceAll("<!>","<!---->")),t.content}function Ie(e,t){var n=E;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function mr(e,t){var n=(t&qr)!==0,r=(t&zr)!==0,i,s=!e.startsWith("<!>");return()=>{if(N)return Ie(D,null),D;i===void 0&&(i=ns(s?e:"<!>"+e),n||(i=it(i)));var a=r||Vn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=it(a),l=a.lastChild;Ie(o,l)}else Ie(a,a);return a}}function rs(e=""){if(!N){var t=fe(e+"");return Ie(t,t),t}var n=D;return n.nodeType!==ot?(n.before(n=fe()),ne(n)):Nt(n),Ie(n,n),n}function is(){if(N)return Ie(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(""),n=fe();return e.append(t,n),Ie(t,n),e}function pt(e,t){if(N){var n=E;((n.f&De)===0||n.nodes.end===null)&&(n.nodes.end=D),qt();return}e!==null&&e.before(t)}const ss=["touchstart","touchmove"];function as(e){return ss.includes(e)}function Q(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function gr(e,t){return wr(e,t)}function os(e,t){Gt(),t.intro=t.intro??!1;const n=t.target,r=N,i=D;try{for(var s=it(n);s&&(s.nodeType!==Et||s.data!==dn);)s=$e(s);if(!s)throw Ge;Ae(!0),ne(s);const a=wr(e,{...t,anchor:s});return Ae(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Ge&&console.warn("Failed to hydrate: ",a),t.recover===!1&&li(),Gt(),ji(n),Ae(!1),gr(e,t)}finally{Ae(r),ne(i)}}const Rt=new Map;function wr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:o}){Gt();var l=void 0,u=Ui(()=>{var f=n??t.appendChild(fe());ki(f,{pending:()=>{}},b=>{Tn({});var g=re;if(s&&(g.c=s),i&&(r.$$events=i),N&&Ie(b,null),l=e(b,r)||{},N&&(E.nodes.end=D,D===null||D.nodeType!==Et||D.data!==_n))throw St(),Ge;Mn()},o);var h=new Set,v=b=>{for(var g=0;g<b.length;g++){var S=b[g];if(!h.has(S)){h.add(S);var R=as(S);for(const C of[t,document]){var U=Rt.get(C);U===void 0&&(U=new Map,Rt.set(C,U));var p=U.get(S);p===void 0?(C.addEventListener(S,br,{passive:R}),U.set(S,1)):U.set(S,p+1)}}}};return v(Jr(vr)),en.add(v),()=>{for(var b of h)for(const R of[t,document]){var g=Rt.get(R),S=g.get(b);--S==0?(R.removeEventListener(b,br),g.delete(b),g.size===0&&Rt.delete(R)):g.set(b,S)}en.delete(v),f!==n&&f.parentNode?.removeChild(f)}});return tn.set(l,u),l}let tn=new WeakMap;function ls(e,t){const n=tn.get(e);return n?(tn.delete(e),n(t)):Promise.resolve()}class us{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)Ki(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(a);o&&(K(o.effect),this.#t.delete(a))}for(const[s,a]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var u=document.createDocumentFragment();rr(a,u),u.append(fe()),this.#t.set(s,{effect:a,fragment:u})}else K(a);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),dt(a,o,!1)):o()}}};#a=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(K(i.effect),this.#t.delete(r))};ensure(t,n){var r=P,i=Yi();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),a=fe();s.append(a),this.#t.set(t,{effect:xe(()=>n(a)),fragment:s})}else this.#n.set(t,xe(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,l]of this.#n)o===t?r.unskip_effect(l):r.skip_effect(l);for(const[o,l]of this.#t)o===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(this.#r),r.ondiscard(this.#a)}else N&&(this.anchor=D),this.#r(r)}}function yr(e,t,n=!1){var r;N&&(r=D,qt());var i=new us(e),s=n?Xe:0;function a(o,l){if(N){var u=pi(r);if(o!==parseInt(u.substring(1))){var f=En();ne(f),i.anchor=f,Ae(!1),i.ensure(o,l),Ae(!0);return}}i.ensure(o,l)}Xn(()=>{var o=!1;t((l,u=0)=>{o=!0,a(u,l)}),o||a(-1,null)},s)}function fs(e,t){Vi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Kt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function cs(e,t,n){var r=""+e;return r}function ds(e,t,n,r,i,s){var a=e.__className;if(N||a!==n||a===void 0){var o=cs(n);(!N||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}const hs=Symbol("is custom element"),vs=Symbol("is html"),_s=ni?"link":"LINK";function $r(e,t,n,r){var i=ps(e);N&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===_s)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[ti]=n),n==null?e.removeAttribute(t):typeof n!="string"&&xr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function nn(e,t,n){var r=x,i=E;let s=N;N&&Ae(!1),Z(null),ie(null);try{t!=="style"&&(rn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?xr(e).includes(t):n&&typeof n=="object")?e[t]=n:$r(e,t,n==null?n:String(n))}finally{Z(r),ie(i),s&&Ae(!0)}}function ps(e){return e.__attributes??={[hs]:e.nodeName.includes("-"),[vs]:e.namespaceURI===pn}}var rn=new Map;function xr(e){var t=e.getAttribute("is")||e.nodeName,n=rn.get(t);if(n)return n;rn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Wr(i);for(var a in r)r[a].set&&n.push(a);i=bn(i)}return n}function Pt(e,t,n,r){var i=(n&Fr)!==0,s=(n&Hr)!==0,a=r,o=!0,l=()=>(o&&(o=!1,a=s?hr(r):r),a);let u;if(i){var f=xt in e||xn in e;u=He(e,t)?.set??(f&&t in e?p=>e[t]=p:void 0)}var h,v=!1;i?[h,v]=yi(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=l(),u&&(ui(),u(h)));var b;if(b=()=>{var p=e[t];return p===void 0?l():(o=!0,p)},(n&Yr)===0)return b;if(u){var g=e.$$legacy;return(function(p,C){return arguments.length>0?((!C||g||v)&&u(C?b():p),p):b()})}var S=!1,R=((n&jr)!==0?Ot:Ni)(()=>(S=!1,b()));i&&A(R);var U=E;return(function(p,C){if(arguments.length>0){const Ee=C?A(R):i?rt(p):p;return G(R,Ee),S=!0,a!==void 0&&(a=Ee),p}return Le&&S||(U.f&le)!==0?R.v:A(R)})}function bs(e){return new ms(e)}class ms{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var o=Ci(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return A(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===xn?!0:(A(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return G(n.get(a)??r(a,o),o),Reflect.set(s,a,o)}});this.#n=(t.hydrate?os:gr)(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)&&ut(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||yt(this,s,{get(){return this.#n[s]},set(a){this.#n[s]=a},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ls(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 Er;typeof HTMLElement=="function"&&(Er=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=Kt("slot");r!=="default"&&(s.name=r),pt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=gs(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]=Ct(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=bs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Bi(()=>{Zn(()=>{this.$$r=!0;for(const r of wt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ct(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]=Ct(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 wt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ct(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 gs(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ws(e,t,n,r,i,s){let a=class extends Er{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return wt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return wt(t).forEach(o=>{yt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Ct(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=He(u,o)?.get;f?u[o]=l:u.$set({[o]:l})}}})}),r.forEach(o=>{yt(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}function ys(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice printer="yes" items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const n=document.createElement("script");n.id="hb-page-invoice-script",n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/webcomponents/page-invoice/main.iife.js"),t.document.head.appendChild(n),setTimeout(()=>{t.print(),t.close()},2e3)}function $s(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const n=document.createElement("script");n.id="hb-page-invoice-script",n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/webcomponents/page-invoice/main.iife.js"),t.document.head.appendChild(n)}const sn={version:"0.66.4"};function xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lt={exports:{}},Es=Lt.exports,Sr;function kr(){return Sr||(Sr=1,(function(e,t){(function(n,r){e.exports=r()})(Es,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",u="day",f="week",h="month",v="quarter",b="year",g="date",S="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var _=["th","st","nd","rd"],c=w%100;return"["+w+(_[(c-20)%10]||_[c]||_[0])+"]"}},C=function(w,_,c){var m=String(w);return!m||m.length>=_?w:""+Array(_+1-m.length).join(c)+w},Ee={s:C,z:function(w){var _=-w.utcOffset(),c=Math.abs(_),m=Math.floor(c/60),d=c%60;return(_<=0?"+":"-")+C(m,2,"0")+":"+C(d,2,"0")},m:function w(_,c){if(_.date()<c.date())return-w(c,_);var m=12*(c.year()-_.year())+(c.month()-_.month()),d=_.clone().add(m,h),y=c-d<0,$=_.clone().add(m+(y?-1:1),h);return+(-(m+(c-d)/(y?d-$:$-d))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:b,w:f,d:u,D:g,h:l,m:o,s:a,ms:s,Q:v}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},Se="en",be={};be[Se]=p;var bt="$isDayjsObject",mt=function(w){return w instanceof je||!(!w||!w[bt])},Je=function w(_,c,m){var d;if(!_)return Se;if(typeof _=="string"){var y=_.toLowerCase();be[y]&&(d=y),c&&(be[y]=c,d=y);var $=_.split("-");if(!d&&$.length>1)return w($[0])}else{var O=_.name;be[O]=_,d=O}return!m&&d&&(Se=d),d||!m&&Se},F=function(w,_){if(mt(w))return w.clone();var c=typeof _=="object"?_:{};return c.date=w,c.args=arguments,new je(c)},M=Ee;M.l=Je,M.i=mt,M.w=function(w,_){return F(w,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var je=(function(){function w(c){this.$L=Je(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[bt]=!0}var _=w.prototype;return _.parse=function(c){this.$d=(function(m){var d=m.date,y=m.utc;if(d===null)return new Date(NaN);if(M.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var $=d.match(R);if($){var O=$[2]-1||0,L=($[7]||"0").substring(0,3);return y?new Date(Date.UTC($[1],O,$[3]||1,$[4]||0,$[5]||0,$[6]||0,L)):new Date($[1],O,$[3]||1,$[4]||0,$[5]||0,$[6]||0,L)}}return new Date(d)})(c),this.init()},_.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},_.$utils=function(){return M},_.isValid=function(){return this.$d.toString()!==S},_.isSame=function(c,m){var d=F(c);return this.startOf(m)<=d&&d<=this.endOf(m)},_.isAfter=function(c,m){return F(c)<this.startOf(m)},_.isBefore=function(c,m){return this.endOf(m)<F(c)},_.$g=function(c,m,d){return M.u(c)?this[m]:this.set(d,c)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(c,m){var d=this,y=!!M.u(m)||m,$=M.p(c),O=function(Te,V){var oe=M.w(d.$u?Date.UTC(d.$y,V,Te):new Date(d.$y,V,Te),d);return y?oe:oe.endOf(u)},L=function(Te,V){return M.w(d.toDate()[Te].apply(d.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(V)),d)},I=this.$W,z=this.$M,W=this.$D,me="set"+(this.$u?"UTC":"");switch($){case b:return y?O(1,0):O(31,11);case h:return y?O(1,z):O(0,z+1);case f:var ke=this.$locale().weekStart||0,Ye=(I<ke?I+7:I)-ke;return O(y?W-Ye:W+(6-Ye),z);case u:case g:return L(me+"Hours",0);case l:return L(me+"Minutes",1);case o:return L(me+"Seconds",2);case a:return L(me+"Milliseconds",3);default:return this.clone()}},_.endOf=function(c){return this.startOf(c,!1)},_.$set=function(c,m){var d,y=M.p(c),$="set"+(this.$u?"UTC":""),O=(d={},d[u]=$+"Date",d[g]=$+"Date",d[h]=$+"Month",d[b]=$+"FullYear",d[l]=$+"Hours",d[o]=$+"Minutes",d[a]=$+"Seconds",d[s]=$+"Milliseconds",d)[y],L=y===u?this.$D+(m-this.$W):m;if(y===h||y===b){var I=this.clone().set(g,1);I.$d[O](L),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else O&&this.$d[O](L);return this.init(),this},_.set=function(c,m){return this.clone().$set(c,m)},_.get=function(c){return this[M.p(c)]()},_.add=function(c,m){var d,y=this;c=Number(c);var $=M.p(m),O=function(z){var W=F(y);return M.w(W.date(W.date()+Math.round(z*c)),y)};if($===h)return this.set(h,this.$M+c);if($===b)return this.set(b,this.$y+c);if($===u)return O(1);if($===f)return O(7);var L=(d={},d[o]=r,d[l]=i,d[a]=n,d)[$]||1,I=this.$d.getTime()+c*L;return M.w(I,this)},_.subtract=function(c,m){return this.add(-1*c,m)},_.format=function(c){var m=this,d=this.$locale();if(!this.isValid())return d.invalidDate||S;var y=c||"YYYY-MM-DDTHH:mm:ssZ",$=M.z(this),O=this.$H,L=this.$m,I=this.$M,z=d.weekdays,W=d.months,me=d.meridiem,ke=function(V,oe,We,Fe){return V&&(V[oe]||V(m,y))||We[oe].slice(0,Fe)},Ye=function(V){return M.s(O%12||12,V,"0")},Te=me||function(V,oe,We){var Fe=V<12?"AM":"PM";return We?Fe.toLowerCase():Fe};return y.replace(U,(function(V,oe){return oe||(function(We){switch(We){case"YY":return String(m.$y).slice(-2);case"YYYY":return M.s(m.$y,4,"0");case"M":return I+1;case"MM":return M.s(I+1,2,"0");case"MMM":return ke(d.monthsShort,I,W,3);case"MMMM":return ke(W,I);case"D":return m.$D;case"DD":return M.s(m.$D,2,"0");case"d":return String(m.$W);case"dd":return ke(d.weekdaysMin,m.$W,z,2);case"ddd":return ke(d.weekdaysShort,m.$W,z,3);case"dddd":return z[m.$W];case"H":return String(O);case"HH":return M.s(O,2,"0");case"h":return Ye(1);case"hh":return Ye(2);case"a":return Te(O,L,!0);case"A":return Te(O,L,!1);case"m":return String(L);case"mm":return M.s(L,2,"0");case"s":return String(m.$s);case"ss":return M.s(m.$s,2,"0");case"SSS":return M.s(m.$ms,3,"0");case"Z":return $}return null})(V)||$.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(c,m,d){var y,$=this,O=M.p(m),L=F(c),I=(L.utcOffset()-this.utcOffset())*r,z=this-L,W=function(){return M.m($,L)};switch(O){case b:y=W()/12;break;case h:y=W();break;case v:y=W()/3;break;case f:y=(z-I)/6048e5;break;case u:y=(z-I)/864e5;break;case l:y=z/i;break;case o:y=z/r;break;case a:y=z/n;break;default:y=z}return d?y:M.a(y)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return be[this.$L]},_.locale=function(c,m){if(!c)return this.$L;var d=this.clone(),y=Je(c,m,!0);return y&&(d.$L=y),d},_.clone=function(){return M.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},w})(),at=je.prototype;return F.prototype=at,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",u],["$M",h],["$y",b],["$D",g]].forEach((function(w){at[w[1]]=function(_){return this.$g(_,w[0],w[1])}})),F.extend=function(w,_){return w.$i||(w(_,je,F),w.$i=!0),F},F.locale=Je,F.isDayjs=mt,F.unix=function(w){return F(1e3*w)},F.en=be[Se],F.Ls=be,F.p={},F}))})(Lt)),Lt.exports}var Ss=kr();const ks=xs(Ss);function Tr(e,t=100,n={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");if(typeof n=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:r}=n;let i,s,a,o,l;function u(){const v=i,b=s;return i=void 0,s=void 0,l=e.apply(v,b),l}function f(){const v=Date.now()-o;v<t&&v>=0?a=setTimeout(f,t-v):(a=void 0,r||(l=u()))}const h=function(...v){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw new Error("Debounced method called with different contexts of the same prototype.");i=this,s=v,o=Date.now();const b=r&&!a;if(a||(a=setTimeout(f,t)),b)return l=u(),l};return Object.defineProperty(h,"isPending",{get(){return a!==void 0}}),h.clear=()=>{a&&(clearTimeout(a),a=void 0,i=void 0,s=void 0)},h.flush=()=>{a&&h.trigger()},h.trigger=()=>{l=u(),h.clear()},h}var It={exports:{}},Ts=It.exports,Mr;function Ms(){return Mr||(Mr=1,(function(e,t){(function(n,r){e.exports=r(kr())})(Ts,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),s={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(a){return a+"º"}};return i.default.locale(s,null,!0),s}))})(It)),It.exports}Ms();function Os(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Ds=mr('<div style="text-align:right;padding-right:60px" class="svelte-1694i3h"><button class="btn btn-default svelte-1694i3h"><i class="bi-printer-fill svelte-1694i3h"></i></button> <button class="btn btn-default svelte-1694i3h"><i class="bi-arrows-fullscreen svelte-1694i3h"></i></button></div>'),Ns=mr('<div id="page" class="container svelte-1694i3h"><div class="row svelte-1694i3h" style="margin-top:20px"><div class="col svelte-1694i3h"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-1694i3h"/> <span style="margin:0px 40px 0px 40px" class="svelte-1694i3h"> </span></div> <div class="col svelte-1694i3h"><!></div></div> <div class="row svelte-1694i3h" style="margin-top:60px"><div class="col svelte-1694i3h"> </div> <div class="col svelte-1694i3h"></div> <div class="col svelte-1694i3h"> </div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><hb-table></hb-table></div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><div style="width:300px;float:right" class="svelte-1694i3h"><div style="text-align:left;" class="svelte-1694i3h"><div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Totale:</span> </div></div></div></div></div></div>',2);const As={hash:"svelte-1694i3h",code:`@charset "UTF-8";
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Ge&&console.warn("Failed to hydrate: ",a),t.recover===!1&&li(),Gt(),ji(n),Ae(!1),gr(e,t)}finally{Ae(r),ne(i)}}const Rt=new Map;function wr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:o}){Gt();var l=void 0,u=Ui(()=>{var f=n??t.appendChild(fe());ki(f,{pending:()=>{}},b=>{Tn({});var g=re;if(s&&(g.c=s),i&&(r.$$events=i),N&&Ie(b,null),l=e(b,r)||{},N&&(E.nodes.end=D,D===null||D.nodeType!==Et||D.data!==_n))throw St(),Ge;Mn()},o);var h=new Set,v=b=>{for(var g=0;g<b.length;g++){var S=b[g];if(!h.has(S)){h.add(S);var R=as(S);for(const C of[t,document]){var U=Rt.get(C);U===void 0&&(U=new Map,Rt.set(C,U));var p=U.get(S);p===void 0?(C.addEventListener(S,br,{passive:R}),U.set(S,1)):U.set(S,p+1)}}}};return v(Jr(vr)),en.add(v),()=>{for(var b of h)for(const R of[t,document]){var g=Rt.get(R),S=g.get(b);--S==0?(R.removeEventListener(b,br),g.delete(b),g.size===0&&Rt.delete(R)):g.set(b,S)}en.delete(v),f!==n&&f.parentNode?.removeChild(f)}});return tn.set(l,u),l}let tn=new WeakMap;function ls(e,t){const n=tn.get(e);return n?(tn.delete(e),n(t)):Promise.resolve()}class us{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)Ki(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(a);o&&(K(o.effect),this.#t.delete(a))}for(const[s,a]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var u=document.createDocumentFragment();rr(a,u),u.append(fe()),this.#t.set(s,{effect:a,fragment:u})}else K(a);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),dt(a,o,!1)):o()}}};#a=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(K(i.effect),this.#t.delete(r))};ensure(t,n){var r=P,i=Yi();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),a=fe();s.append(a),this.#t.set(t,{effect:xe(()=>n(a)),fragment:s})}else this.#n.set(t,xe(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,l]of this.#n)o===t?r.unskip_effect(l):r.skip_effect(l);for(const[o,l]of this.#t)o===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(this.#r),r.ondiscard(this.#a)}else N&&(this.anchor=D),this.#r(r)}}function yr(e,t,n=!1){var r;N&&(r=D,qt());var i=new us(e),s=n?Xe:0;function a(o,l){if(N){var u=pi(r);if(o!==parseInt(u.substring(1))){var f=En();ne(f),i.anchor=f,Ae(!1),i.ensure(o,l),Ae(!0);return}}i.ensure(o,l)}Xn(()=>{var o=!1;t((l,u=0)=>{o=!0,a(u,l)}),o||a(-1,null)},s)}function fs(e,t){Vi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Kt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function cs(e,t,n){var r=""+e;return r}function ds(e,t,n,r,i,s){var a=e.__className;if(N||a!==n||a===void 0){var o=cs(n);(!N||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}const hs=Symbol("is custom element"),vs=Symbol("is html"),_s=ni?"link":"LINK";function $r(e,t,n,r){var i=ps(e);N&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===_s)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[ti]=n),n==null?e.removeAttribute(t):typeof n!="string"&&xr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function nn(e,t,n){var r=x,i=E;let s=N;N&&Ae(!1),Z(null),ie(null);try{t!=="style"&&(rn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?xr(e).includes(t):n&&typeof n=="object")?e[t]=n:$r(e,t,n==null?n:String(n))}finally{Z(r),ie(i),s&&Ae(!0)}}function ps(e){return e.__attributes??={[hs]:e.nodeName.includes("-"),[vs]:e.namespaceURI===pn}}var rn=new Map;function xr(e){var t=e.getAttribute("is")||e.nodeName,n=rn.get(t);if(n)return n;rn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Wr(i);for(var a in r)r[a].set&&n.push(a);i=bn(i)}return n}function Pt(e,t,n,r){var i=(n&Fr)!==0,s=(n&Hr)!==0,a=r,o=!0,l=()=>(o&&(o=!1,a=s?hr(r):r),a);let u;if(i){var f=xt in e||xn in e;u=He(e,t)?.set??(f&&t in e?p=>e[t]=p:void 0)}var h,v=!1;i?[h,v]=yi(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=l(),u&&(ui(),u(h)));var b;if(b=()=>{var p=e[t];return p===void 0?l():(o=!0,p)},(n&Yr)===0)return b;if(u){var g=e.$$legacy;return(function(p,C){return arguments.length>0?((!C||g||v)&&u(C?b():p),p):b()})}var S=!1,R=((n&jr)!==0?Ot:Ni)(()=>(S=!1,b()));i&&A(R);var U=E;return(function(p,C){if(arguments.length>0){const Ee=C?A(R):i?rt(p):p;return G(R,Ee),S=!0,a!==void 0&&(a=Ee),p}return Le&&S||(U.f&le)!==0?R.v:A(R)})}function bs(e){return new ms(e)}class ms{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var o=Ci(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return A(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===xn?!0:(A(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return G(n.get(a)??r(a,o),o),Reflect.set(s,a,o)}});this.#n=(t.hydrate?os:gr)(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)&&ut(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||yt(this,s,{get(){return this.#n[s]},set(a){this.#n[s]=a},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ls(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 Er;typeof HTMLElement=="function"&&(Er=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=Kt("slot");r!=="default"&&(s.name=r),pt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=gs(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]=Ct(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=bs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Bi(()=>{Zn(()=>{this.$$r=!0;for(const r of wt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ct(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]=Ct(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 wt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ct(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 gs(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ws(e,t,n,r,i,s){let a=class extends Er{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return wt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return wt(t).forEach(o=>{yt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Ct(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=He(u,o)?.get;f?u[o]=l:u.$set({[o]:l})}}})}),r.forEach(o=>{yt(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}function ys(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice printer="yes" items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const n=document.createElement("script");n.id="hb-page-invoice-script",n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/webcomponents/page-invoice/main.iife.js"),t.document.head.appendChild(n),setTimeout(()=>{t.print(),t.close()},2e3)}function $s(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const n=document.createElement("script");n.id="hb-page-invoice-script",n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/webcomponents/page-invoice/main.iife.js"),t.document.head.appendChild(n)}const sn={version:"0.66.6"};function xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lt={exports:{}},Es=Lt.exports,Sr;function kr(){return Sr||(Sr=1,(function(e,t){(function(n,r){e.exports=r()})(Es,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",u="day",f="week",h="month",v="quarter",b="year",g="date",S="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var _=["th","st","nd","rd"],c=w%100;return"["+w+(_[(c-20)%10]||_[c]||_[0])+"]"}},C=function(w,_,c){var m=String(w);return!m||m.length>=_?w:""+Array(_+1-m.length).join(c)+w},Ee={s:C,z:function(w){var _=-w.utcOffset(),c=Math.abs(_),m=Math.floor(c/60),d=c%60;return(_<=0?"+":"-")+C(m,2,"0")+":"+C(d,2,"0")},m:function w(_,c){if(_.date()<c.date())return-w(c,_);var m=12*(c.year()-_.year())+(c.month()-_.month()),d=_.clone().add(m,h),y=c-d<0,$=_.clone().add(m+(y?-1:1),h);return+(-(m+(c-d)/(y?d-$:$-d))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:b,w:f,d:u,D:g,h:l,m:o,s:a,ms:s,Q:v}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},Se="en",be={};be[Se]=p;var bt="$isDayjsObject",mt=function(w){return w instanceof je||!(!w||!w[bt])},Je=function w(_,c,m){var d;if(!_)return Se;if(typeof _=="string"){var y=_.toLowerCase();be[y]&&(d=y),c&&(be[y]=c,d=y);var $=_.split("-");if(!d&&$.length>1)return w($[0])}else{var O=_.name;be[O]=_,d=O}return!m&&d&&(Se=d),d||!m&&Se},F=function(w,_){if(mt(w))return w.clone();var c=typeof _=="object"?_:{};return c.date=w,c.args=arguments,new je(c)},M=Ee;M.l=Je,M.i=mt,M.w=function(w,_){return F(w,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var je=(function(){function w(c){this.$L=Je(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[bt]=!0}var _=w.prototype;return _.parse=function(c){this.$d=(function(m){var d=m.date,y=m.utc;if(d===null)return new Date(NaN);if(M.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var $=d.match(R);if($){var O=$[2]-1||0,L=($[7]||"0").substring(0,3);return y?new Date(Date.UTC($[1],O,$[3]||1,$[4]||0,$[5]||0,$[6]||0,L)):new Date($[1],O,$[3]||1,$[4]||0,$[5]||0,$[6]||0,L)}}return new Date(d)})(c),this.init()},_.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},_.$utils=function(){return M},_.isValid=function(){return this.$d.toString()!==S},_.isSame=function(c,m){var d=F(c);return this.startOf(m)<=d&&d<=this.endOf(m)},_.isAfter=function(c,m){return F(c)<this.startOf(m)},_.isBefore=function(c,m){return this.endOf(m)<F(c)},_.$g=function(c,m,d){return M.u(c)?this[m]:this.set(d,c)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(c,m){var d=this,y=!!M.u(m)||m,$=M.p(c),O=function(Te,V){var oe=M.w(d.$u?Date.UTC(d.$y,V,Te):new Date(d.$y,V,Te),d);return y?oe:oe.endOf(u)},L=function(Te,V){return M.w(d.toDate()[Te].apply(d.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(V)),d)},I=this.$W,z=this.$M,W=this.$D,me="set"+(this.$u?"UTC":"");switch($){case b:return y?O(1,0):O(31,11);case h:return y?O(1,z):O(0,z+1);case f:var ke=this.$locale().weekStart||0,Ye=(I<ke?I+7:I)-ke;return O(y?W-Ye:W+(6-Ye),z);case u:case g:return L(me+"Hours",0);case l:return L(me+"Minutes",1);case o:return L(me+"Seconds",2);case a:return L(me+"Milliseconds",3);default:return this.clone()}},_.endOf=function(c){return this.startOf(c,!1)},_.$set=function(c,m){var d,y=M.p(c),$="set"+(this.$u?"UTC":""),O=(d={},d[u]=$+"Date",d[g]=$+"Date",d[h]=$+"Month",d[b]=$+"FullYear",d[l]=$+"Hours",d[o]=$+"Minutes",d[a]=$+"Seconds",d[s]=$+"Milliseconds",d)[y],L=y===u?this.$D+(m-this.$W):m;if(y===h||y===b){var I=this.clone().set(g,1);I.$d[O](L),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else O&&this.$d[O](L);return this.init(),this},_.set=function(c,m){return this.clone().$set(c,m)},_.get=function(c){return this[M.p(c)]()},_.add=function(c,m){var d,y=this;c=Number(c);var $=M.p(m),O=function(z){var W=F(y);return M.w(W.date(W.date()+Math.round(z*c)),y)};if($===h)return this.set(h,this.$M+c);if($===b)return this.set(b,this.$y+c);if($===u)return O(1);if($===f)return O(7);var L=(d={},d[o]=r,d[l]=i,d[a]=n,d)[$]||1,I=this.$d.getTime()+c*L;return M.w(I,this)},_.subtract=function(c,m){return this.add(-1*c,m)},_.format=function(c){var m=this,d=this.$locale();if(!this.isValid())return d.invalidDate||S;var y=c||"YYYY-MM-DDTHH:mm:ssZ",$=M.z(this),O=this.$H,L=this.$m,I=this.$M,z=d.weekdays,W=d.months,me=d.meridiem,ke=function(V,oe,We,Fe){return V&&(V[oe]||V(m,y))||We[oe].slice(0,Fe)},Ye=function(V){return M.s(O%12||12,V,"0")},Te=me||function(V,oe,We){var Fe=V<12?"AM":"PM";return We?Fe.toLowerCase():Fe};return y.replace(U,(function(V,oe){return oe||(function(We){switch(We){case"YY":return String(m.$y).slice(-2);case"YYYY":return M.s(m.$y,4,"0");case"M":return I+1;case"MM":return M.s(I+1,2,"0");case"MMM":return ke(d.monthsShort,I,W,3);case"MMMM":return ke(W,I);case"D":return m.$D;case"DD":return M.s(m.$D,2,"0");case"d":return String(m.$W);case"dd":return ke(d.weekdaysMin,m.$W,z,2);case"ddd":return ke(d.weekdaysShort,m.$W,z,3);case"dddd":return z[m.$W];case"H":return String(O);case"HH":return M.s(O,2,"0");case"h":return Ye(1);case"hh":return Ye(2);case"a":return Te(O,L,!0);case"A":return Te(O,L,!1);case"m":return String(L);case"mm":return M.s(L,2,"0");case"s":return String(m.$s);case"ss":return M.s(m.$s,2,"0");case"SSS":return M.s(m.$ms,3,"0");case"Z":return $}return null})(V)||$.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(c,m,d){var y,$=this,O=M.p(m),L=F(c),I=(L.utcOffset()-this.utcOffset())*r,z=this-L,W=function(){return M.m($,L)};switch(O){case b:y=W()/12;break;case h:y=W();break;case v:y=W()/3;break;case f:y=(z-I)/6048e5;break;case u:y=(z-I)/864e5;break;case l:y=z/i;break;case o:y=z/r;break;case a:y=z/n;break;default:y=z}return d?y:M.a(y)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return be[this.$L]},_.locale=function(c,m){if(!c)return this.$L;var d=this.clone(),y=Je(c,m,!0);return y&&(d.$L=y),d},_.clone=function(){return M.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},w})(),at=je.prototype;return F.prototype=at,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",u],["$M",h],["$y",b],["$D",g]].forEach((function(w){at[w[1]]=function(_){return this.$g(_,w[0],w[1])}})),F.extend=function(w,_){return w.$i||(w(_,je,F),w.$i=!0),F},F.locale=Je,F.isDayjs=mt,F.unix=function(w){return F(1e3*w)},F.en=be[Se],F.Ls=be,F.p={},F}))})(Lt)),Lt.exports}var Ss=kr();const ks=xs(Ss);function Tr(e,t=100,n={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");if(typeof n=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:r}=n;let i,s,a,o,l;function u(){const v=i,b=s;return i=void 0,s=void 0,l=e.apply(v,b),l}function f(){const v=Date.now()-o;v<t&&v>=0?a=setTimeout(f,t-v):(a=void 0,r||(l=u()))}const h=function(...v){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw new Error("Debounced method called with different contexts of the same prototype.");i=this,s=v,o=Date.now();const b=r&&!a;if(a||(a=setTimeout(f,t)),b)return l=u(),l};return Object.defineProperty(h,"isPending",{get(){return a!==void 0}}),h.clear=()=>{a&&(clearTimeout(a),a=void 0,i=void 0,s=void 0)},h.flush=()=>{a&&h.trigger()},h.trigger=()=>{l=u(),h.clear()},h}var It={exports:{}},Ts=It.exports,Mr;function Ms(){return Mr||(Mr=1,(function(e,t){(function(n,r){e.exports=r(kr())})(Ts,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),s={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(a){return a+"º"}};return i.default.locale(s,null,!0),s}))})(It)),It.exports}Ms();function Os(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Ds=mr('<div style="text-align:right;padding-right:60px" class="svelte-1694i3h"><button class="btn btn-default svelte-1694i3h"><i class="bi-printer-fill svelte-1694i3h"></i></button> <button class="btn btn-default svelte-1694i3h"><i class="bi-arrows-fullscreen svelte-1694i3h"></i></button></div>'),Ns=mr('<div id="page" class="container svelte-1694i3h"><div class="row svelte-1694i3h" style="margin-top:20px"><div class="col svelte-1694i3h"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-1694i3h"/> <span style="margin:0px 40px 0px 40px" class="svelte-1694i3h"> </span></div> <div class="col svelte-1694i3h"><!></div></div> <div class="row svelte-1694i3h" style="margin-top:60px"><div class="col svelte-1694i3h"> </div> <div class="col svelte-1694i3h"></div> <div class="col svelte-1694i3h"> </div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><hb-table></hb-table></div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><div style="width:300px;float:right" class="svelte-1694i3h"><div style="text-align:left;" class="svelte-1694i3h"><div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Totale:</span> </div></div></div></div></div></div>',2);const As={hash:"svelte-1694i3h",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
  /*!
package/manifest.json CHANGED
@@ -267,8 +267,7 @@
267
267
  }
268
268
  }
269
269
  ],
270
- "iifeIntegrity": "sha384-/yCXH91UaNqkTfMc5y4kz+th8NMtXGLNzXUDocJgsHbNoNYFD24M4RroF4rQbgLL",
271
- "iifeIntegrityType": "sha384",
270
+ "iifeIntegrity": "sha384-jFl5EVCv9LlN+gpu/nNKdgVuIK5m592jrqoAJGOrErOjCaz8Q7YM+8AGg8PnASf2",
272
271
  "screenshots": [],
273
272
  "licenses": [
274
273
  {
@@ -289,5 +288,5 @@
289
288
  "size": {},
290
289
  "iifePath": "main.iife.js",
291
290
  "repoName": "@htmlbricks/hb-page-invoice",
292
- "version": "0.66.4"
291
+ "version": "0.66.6"
293
292
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-page-invoice",
3
- "version": "0.66.4",
3
+ "version": "0.66.6",
4
4
  "contributors": [],
5
5
  "description": "Printable invoice page: shows seller and buyer from headers, invoice date and serial, line items in hb-table with price, quantity, VAT and row totals, plus subtotal, tax and grand total in the invoice currency. When printer is not yes, offers print and open-in-window actions.",
6
6
  "licenses": [