@htmlbricks/hb-page-invoice 0.50.0-alpha.8 → 0.60.0
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 +36 -26
- package/main.iife.js.map +1 -0
- package/manifest.json +1 -1
- package/package.json +6 -2
- package/types/webcomponent.type.d.json +1 -0
- package/types/webcomponent_events.type.d.json +1 -0
package/main.iife.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
var rs=Object.defineProperty;var pn=A=>{throw TypeError(A)};var ns=(A,Y,J)=>Y in A?rs(A,Y,{enumerable:!0,configurable:!0,writable:!0,value:J}):A[Y]=J;var fe=(A,Y,J)=>ns(A,typeof Y!="symbol"?Y+"":Y,J),_n=(A,Y,J)=>Y.has(A)||pn("Cannot "+J);var ne=(A,Y,J)=>(_n(A,Y,"read from private field"),J?J.call(A):Y.get(A)),Qt=(A,Y,J)=>Y.has(A)?pn("Cannot add the same private member more than once"):Y instanceof WeakSet?Y.add(A):Y.set(A,J),er=(A,Y,J,at)=>(_n(A,Y,"write to private field"),at?at.call(A,J):Y.set(A,J),J);(function(A){"use strict";var we,oe;const Y="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Y);const J=1,at=4,mn=8,gn=16,bn=1,yn=2,tr="[",rr="[!",nr="]",Xe={},ee=Symbol(),Ot=!1,ue=2,ir=4,kt=8,zt=16,_e=32,qe=64,ot=128,ae=256,ut=512,te=1024,me=2048,He=4096,Fe=8192,lt=16384,$n=32768,Dt=65536,wn=1<<19,sr=1<<20,ft=Symbol("$state"),ar=Symbol("legacy props"),xn=Symbol("");var or=Array.isArray,En=Array.prototype.indexOf,Sn=Array.from,ct=Object.keys,dt=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyDescriptors,Mn=Object.prototype,On=Array.prototype,ur=Object.getPrototypeOf;function kn(e){for(var t=0;t<e.length;t++)e[t]()}let vt=!1,Nt=[];function lr(){vt=!1;const e=Nt.slice();Nt=[],kn(e)}function zn(e){vt||(vt=!0,queueMicrotask(lr)),Nt.push(e)}function Dn(){vt&&lr()}function fr(e){return e===this.v}function Nn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cr(e){return!Nn(e,this.v)}function Pn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function An(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Cn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function In(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ln(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function jn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qn(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Hn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Fn=!1;function ce(e,t){var r={f:0,v:e,reactions:null,equals:fr,rv:0,wv:0};return r}function ht(e){return Vn(ce(e))}function dr(e,t=!1){const r=ce(e);return t||(r.equals=cr),r}function Vn(e){return D!==null&&!de&&D.f&ue&&(ve===null?Zn([e]):ve.push(e)),e}function B(e,t){return D!==null&&!de&&Hr()&&D.f&(ue|zt)&&(ve===null||!ve.includes(e))&&Hn(),Un(e,t)}function Un(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Sr(),vr(e,me),P!==null&&P.f&te&&!(P.f&(_e|qe))&&(ye===null?Qn([e]):ye.push(e))),t}function vr(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var s=r[n],a=s.f;a&me||($e(s,t),a&(te|ae)&&(a&ue?vr(s,He):yt(s)))}}function Se(e){var t=ue|me,r=D!==null&&D.f&ue?D:null;return P===null||r!==null&&r.f&ae?t|=ae:P.f|=sr,{ctx:se,deps:null,effects:null,equals:fr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??P}}function hr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ze(t[r])}}function Bn(e){for(var t=e.parent;t!==null;){if(!(t.f&ue))return t;t=t.parent}return null}function Wn(e){var t,r=P;Oe(Bn(e));try{hr(e),t=Mr(e)}finally{Oe(r)}return t}function pr(e){var t=Wn(e),r=(ke||e.f&ae)&&e.deps!==null?He:te;$e(e,r),e.equals(t)||(e.v=t,e.wv=Sr())}function Pt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let U=!1;function Te(e){U=e}let H;function ge(e){if(e===null)throw Pt(),Xe;return H=e}function At(){return ge(Le(H))}function M(e){if(U){if(Le(H)!==null)throw Pt(),Xe;H=e}}function Jn(){for(var e=0,t=H;;){if(t.nodeType===8){var r=t.data;if(r===nr){if(e===0)return t;e-=1}else(r===tr||r===rr)&&(e+=1)}var i=Le(t);t.remove(),t=i}}function be(e,t=null,r){if(typeof e!="object"||e===null||ft in e)return e;const i=ur(e);if(i!==Mn&&i!==On)return e;var n=new Map,s=or(e),a=ce(0);s&&n.set("length",ce(e.length));var u;return new Proxy(e,{defineProperty(l,o,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&jn();var f=n.get(o);return f===void 0?(f=ce(h.value),n.set(o,f)):B(f,be(h.value,u)),!0},deleteProperty(l,o){var h=n.get(o);if(h===void 0)o in l&&n.set(o,ce(ee));else{if(s&&typeof o=="string"){var f=n.get("length"),d=Number(o);Number.isInteger(d)&&d<f.v&&B(f,d)}B(h,ee),_r(a)}return!0},get(l,o,h){var w;if(o===ft)return e;var f=n.get(o),d=o in l;if(f===void 0&&(!d||(w=Ce(l,o))!=null&&w.writable)&&(f=ce(be(d?l[o]:ee,u)),n.set(o,f)),f!==void 0){var m=N(f);return m===ee?void 0:m}return Reflect.get(l,o,h)},getOwnPropertyDescriptor(l,o){var h=Reflect.getOwnPropertyDescriptor(l,o);if(h&&"value"in h){var f=n.get(o);f&&(h.value=N(f))}else if(h===void 0){var d=n.get(o),m=d==null?void 0:d.v;if(d!==void 0&&m!==ee)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return h},has(l,o){var m;if(o===ft)return!0;var h=n.get(o),f=h!==void 0&&h.v!==ee||Reflect.has(l,o);if(h!==void 0||P!==null&&(!f||(m=Ce(l,o))!=null&&m.writable)){h===void 0&&(h=ce(f?be(l[o],u):ee),n.set(o,h));var d=N(h);if(d===ee)return!1}return f},set(l,o,h,f){var V;var d=n.get(o),m=o in l;if(s&&o==="length")for(var w=h;w<d.v;w+=1){var x=n.get(w+"");x!==void 0?B(x,ee):w in l&&(x=ce(ee),n.set(w+"",x))}d===void 0?(!m||(V=Ce(l,o))!=null&&V.writable)&&(d=ce(void 0),B(d,be(h,u)),n.set(o,d)):(m=d.v!==ee,B(d,be(h,u)));var R=Reflect.getOwnPropertyDescriptor(l,o);if(R!=null&&R.set&&R.set.call(f,h),!m){if(s&&typeof o=="string"){var X=n.get("length"),I=Number(o);Number.isInteger(I)&&I>=X.v&&B(X,I+1)}_r(a)}return!0},ownKeys(l){N(a);var o=Reflect.ownKeys(l).filter(d=>{var m=n.get(d);return m===void 0||m.v!==ee});for(var[h,f]of n)f.v!==ee&&!(h in l)&&o.push(h);return o},setPrototypeOf(){Yn()}})}function _r(e,t=1){B(e,e.v+t)}var mr,gr,br,yr;function Rt(){if(mr===void 0){mr=window,gr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;br=Ce(t,"firstChild").get,yr=Ce(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Ie(e=""){return document.createTextNode(e)}function Ve(e){return br.call(e)}function Le(e){return yr.call(e)}function O(e,t){if(!U)return Ve(e);var r=Ve(H);if(r===null)r=H.appendChild(Ie());else if(t&&r.nodeType!==3){var i=Ie();return r==null||r.before(i),ge(i),i}return ge(r),r}function Gn(e,t){if(!U){var r=Ve(e);return r instanceof Comment&&r.data===""?Le(r):r}return H}function F(e,t=1,r=!1){let i=U?H:e;for(var n;t--;)n=i,i=Le(i);if(!U)return i;var s=i==null?void 0:i.nodeType;if(r&&s!==3){var a=Ie();return i===null?n==null||n.after(a):i.before(a),ge(a),a}return ge(i),i}function Xn(e){e.textContent=""}const $r=0,Kn=1;let pt=!1,_t=$r,Ke=!1,Ze=null,Ue=!1,Ct=!1;function wr(e){Ue=e}function xr(e){Ct=e}let je=[],Be=0,is=[],D=null,de=!1;function Me(e){D=e}let P=null;function Oe(e){P=e}let ve=null;function Zn(e){ve=e}let Z=null,ie=0,ye=null;function Qn(e){ye=e}let Er=1,mt=0,ke=!1;function Sr(){return++Er}function Qe(e){var f;var t=e.f;if(t&me)return!0;if(t&He){var r=e.deps,i=(t&ae)!==0;if(r!==null){var n,s,a=(t&ut)!==0,u=i&&P!==null&&!ke,l=r.length;if(a||u){var o=e,h=o.parent;for(n=0;n<l;n++)s=r[n],(a||!((f=s==null?void 0:s.reactions)!=null&&f.includes(o)))&&(s.reactions??(s.reactions=[])).push(o);a&&(o.f^=ut),u&&h!==null&&!(h.f&ae)&&(o.f^=ae)}for(n=0;n<l;n++)if(s=r[n],Qe(s)&&pr(s),s.wv>e.wv)return!0}(!i||P!==null&&!ke)&&$e(e,te)}return!1}function ei(e,t){for(var r=t;r!==null;){if(r.f&ot)try{r.fn(e);return}catch{r.f^=ot}r=r.parent}throw pt=!1,e}function ti(e){return(e.f<)===0&&(e.parent===null||(e.parent.f&ot)===0)}function gt(e,t,r,i){if(pt){if(r===null&&(pt=!1),ti(t))throw e;return}r!==null&&(pt=!0);{ei(e,t);return}}function Tr(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var s=i[n];s.f&ue?Tr(s,t,!1):t===s&&(r?$e(s,me):s.f&te&&$e(s,He),yt(s))}}function Mr(e){var m;var t=Z,r=ie,i=ye,n=D,s=ke,a=ve,u=se,l=de,o=e.f;Z=null,ie=0,ye=null,D=o&(_e|qe)?null:e,ke=(o&ae)!==0&&(!Ue||n===null||l),ve=null,jr(e.ctx),de=!1,mt++;try{var h=(0,e.fn)(),f=e.deps;if(Z!==null){var d;if(bt(e,ie),f!==null&&ie>0)for(f.length=ie+Z.length,d=0;d<Z.length;d++)f[ie+d]=Z[d];else e.deps=f=Z;if(!ke)for(d=ie;d<f.length;d++)((m=f[d]).reactions??(m.reactions=[])).push(e)}else f!==null&&ie<f.length&&(bt(e,ie),f.length=ie);if(Hr()&&ye!==null&&!de&&f!==null&&!(e.f&(ue|He|me)))for(d=0;d<ye.length;d++)Tr(ye[d],e);return n!==null&&mt++,h}finally{Z=t,ie=r,ye=i,D=n,ke=s,ve=a,jr(u),de=l}}function ri(e,t){let r=t.reactions;if(r!==null){var i=En.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&ue&&(Z===null||!Z.includes(t))&&($e(t,He),t.f&(ae|ut)||(t.f^=ut),hr(t),bt(t,0))}function bt(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)ri(e,r[i])}function It(e){var t=e.f;if(!(t<)){$e(e,te);var r=P,i=se;P=e;try{t&zt?vi(e):Ar(e),Pr(e);var n=Mr(e);e.teardown=typeof n=="function"?n:null,e.wv=Er;var s=e.deps,a;Ot&&Fn&&e.f&me}catch(u){gt(u,e,r,i||e.ctx)}finally{P=r}}}function Or(){if(Be>1e3){Be=0;try{Cn()}catch(e){if(Ze!==null)gt(e,Ze,null);else throw e}}Be++}function kr(e){var t=e.length;if(t!==0){Or();var r=Ue;Ue=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&te||(n.f^=te);var s=si(n);ni(s)}}finally{Ue=r}}}function ni(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(lt|Fe)))try{Qe(i)&&(It(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Rr(i):i.fn=null))}catch(n){gt(n,i,null,i.ctx)}}}function ii(){if(Ke=!1,Be>1001)return;const e=je;je=[],kr(e),Ke||(Be=0,Ze=null)}function yt(e){_t===$r&&(Ke||(Ke=!0,queueMicrotask(ii))),Ze=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(qe|_e)){if(!(r&te))return;t.f^=te}}je.push(t)}function si(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&_e)!==0,s=n&&(i&te)!==0,a=r.next;if(!s&&!(i&Fe)){if(i&ir)t.push(r);else if(n)r.f^=te;else{var u=D;try{D=r,Qe(r)&&It(r)}catch(h){gt(h,r,null,r.ctx)}finally{D=u}}var l=r.first;if(l!==null){r=l;continue}}if(a===null){let h=r.parent;for(;h!==null;){if(e===h)break e;var o=h.next;if(o!==null){r=o;continue e}h=h.parent}}r=a}return t}function Ye(e){var t=_t,r=je;try{Or();const n=[];_t=Kn,je=n,Ke=!1,kr(r);var i=e==null?void 0:e();return Dn(),(je.length>0||n.length>0)&&Ye(),Be=0,Ze=null,i}finally{_t=t,je=r}}function N(e){var t=e.f,r=(t&ue)!==0;if(D!==null&&!de){ve!==null&&ve.includes(e)&&qn();var i=D.deps;e.rv<mt&&(e.rv=mt,Z===null&&i!==null&&i[ie]===e?ie++:Z===null?Z=[e]:(!ke||!Z.includes(e))&&Z.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,s=n.parent;s!==null&&!(s.f&ae)&&(n.f^=ae)}return r&&(n=e,Qe(n)&&pr(n)),e.v}function zr(e){var t=de;try{return de=!0,e()}finally{de=t}}const ai=-7169;function $e(e,t){e.f=e.f&ai|t}function oi(e){P===null&&D===null&&Rn(),D!==null&&D.f&ae&&P===null&&An(),Ct&&Pn()}function ui(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function We(e,t,r,i=!0){var n=(e&qe)!==0,s=P,a={ctx:se,deps:null,nodes_start:null,nodes_end:null,f:e|me,first:null,fn:t,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var u=Ue;try{wr(!0),It(a),a.f|=$n}catch(h){throw ze(a),h}finally{wr(u)}}else t!==null&&yt(a);var l=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(sr|ot))===0;if(!l&&!n&&i&&(s!==null&&ui(a,s),D!==null&&D.f&ue)){var o=D;(o.effects??(o.effects=[])).push(a)}return a}function li(e){oi();var t=P!==null&&(P.f&_e)!==0&&se!==null&&!se.m;if(t){var r=se;(r.e??(r.e=[])).push({fn:e,effect:P,reaction:D})}else{var i=Dr(e);return i}}function fi(e){const t=We(qe,e,!0);return()=>{ze(t)}}function ci(e){const t=We(qe,e,!0);return(r={})=>new Promise(i=>{r.outro?jt(t,()=>{ze(t),i(void 0)}):(ze(t),i(void 0))})}function Dr(e){return We(ir,e,!1)}function di(e){return We(kt,e,!0)}function $t(e,t=[],r=Se){const i=t.map(r);return Nr(()=>e(...i.map(N)))}function Nr(e,t=0){return We(kt|zt|t,e,!0)}function Lt(e,t=!0){return We(kt|_e,e,!0,t)}function Pr(e){var t=e.teardown;if(t!==null){const r=Ct,i=D;xr(!0),Me(null);try{t.call(null)}finally{xr(r),Me(i)}}}function Ar(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;ze(r,t),r=i}}function vi(e){for(var t=e.first;t!==null;){var r=t.next;t.f&_e||ze(t),t=r}}function ze(e,t=!0){var r=!1;if((t||e.f&wn)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var s=i===n?null:Le(i);i.remove(),i=s}r=!0}Ar(e,t&&!r),bt(e,0),$e(e,lt);var a=e.transitions;if(a!==null)for(const l of a)l.stop();Pr(e);var u=e.parent;u!==null&&u.first!==null&&Rr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Rr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function jt(e,t){var r=[];Cr(e,r,!0),hi(r,()=>{ze(e),t&&t()})}function hi(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function Cr(e,t,r){if(!(e.f&Fe)){if(e.f^=Fe,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var i=e.first;i!==null;){var n=i.next,s=(i.f&Dt)!==0||(i.f&_e)!==0;Cr(i,t,s?r:!1),i=n}}}function Ir(e){Lr(e,!0)}function Lr(e,t){if(e.f&Fe){e.f^=Fe,e.f&te||(e.f^=te),Qe(e)&&($e(e,me),yt(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&Dt)!==0||(r.f&_e)!==0;Lr(r,n?t:!1),r=i}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let se=null;function jr(e){se=e}function Yr(e,t=!1,r){se={p:se,c:null,e:null,m:!1,s:e,x:null,l:null}}function qr(e){const t=se;if(t!==null){e!==void 0&&(t.x=e);const a=t.e;if(a!==null){var r=P,i=D;t.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];Oe(s.effect),Me(s.reaction),Dr(s.fn)}}finally{Oe(r),Me(i)}}se=t.p,t.m=!0}return e||{}}function Hr(){return!0}const pi=["touchstart","touchmove"];function _i(e){return pi.includes(e)}const Fr=new Set,Yt=new Set;function mi(e){for(var t=0;t<e.length;t++)Fr.add(e[t]);for(var r of Yt)r(e)}function wt(e){var I;var t=this,r=t.ownerDocument,i=e.type,n=((I=e.composedPath)==null?void 0:I.call(e))||[],s=n[0]||e.target,a=0,u=e.__root;if(u){var l=n.indexOf(u);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var o=n.indexOf(t);if(o===-1)return;l<=o&&(a=l)}if(s=n[a]||e.target,s!==t){dt(e,"currentTarget",{configurable:!0,get(){return s||r}});var h=D,f=P;Me(null),Oe(null);try{for(var d,m=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+i];if(x!==void 0&&!s.disabled)if(or(x)){var[R,...X]=x;R.apply(s,[e,...X])}else x.call(s,e)}catch(V){d?m.push(V):d=V}if(e.cancelBubble||w===t||w===null)break;s=w}if(d){for(let V of m)queueMicrotask(()=>{throw V});throw d}}finally{e.__root=t,delete e.currentTarget,Me(h),Oe(f)}}}function gi(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function De(e,t){var r=P;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Vr(e,t){var r=(t&bn)!==0,i=(t&yn)!==0,n,s=!e.startsWith("<!>");return()=>{if(U)return De(H,null),H;n===void 0&&(n=gi(s?e:"<!>"+e),r||(n=Ve(n)));var a=i||gr?document.importNode(n,!0):n.cloneNode(!0);if(r){var u=Ve(a),l=a.lastChild;De(u,l)}else De(a,a);return a}}function bi(e=""){if(!U){var t=Ie(e+"");return De(t,t),t}var r=H;return r.nodeType!==3&&(r.before(r=Ie()),ge(r)),De(r,r),r}function yi(){if(U)return De(H,null),H;var e=document.createDocumentFragment(),t=document.createComment(""),r=Ie();return e.append(t,r),De(t,r),e}function et(e,t){if(U){P.nodes_end=H,At();return}e!==null&&e.before(t)}function re(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function Ur(e,t){return Br(e,t)}function $i(e,t){Rt(),t.intro=t.intro??!1;const r=t.target,i=U,n=H;try{for(var s=Ve(r);s&&(s.nodeType!==8||s.data!==tr);)s=Le(s);if(!s)throw Xe;Te(!0),ge(s),At();const a=Br(e,{...t,anchor:s});if(H===null||H.nodeType!==8||H.data!==nr)throw Pt(),Xe;return Te(!1),a}catch(a){if(a===Xe)return t.recover===!1&&In(),Rt(),Xn(r),Te(!1),Ur(e,t);throw a}finally{Te(i),ge(n)}}const Je=new Map;function Br(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:a=!0}){Rt();var u=new Set,l=f=>{for(var d=0;d<f.length;d++){var m=f[d];if(!u.has(m)){u.add(m);var w=_i(m);t.addEventListener(m,wt,{passive:w});var x=Je.get(m);x===void 0?(document.addEventListener(m,wt,{passive:w}),Je.set(m,1)):Je.set(m,x+1)}}};l(Sn(Fr)),Yt.add(l);var o=void 0,h=ci(()=>{var f=r??t.appendChild(Ie());return Lt(()=>{if(s){Yr({});var d=se;d.c=s}n&&(i.$$events=n),U&&De(f,null),o=e(f,i)||{},U&&(P.nodes_end=H),s&&qr()}),()=>{var w;for(var d of u){t.removeEventListener(d,wt);var m=Je.get(d);--m===0?(document.removeEventListener(d,wt),Je.delete(d)):Je.set(d,m)}Yt.delete(l),f!==r&&((w=f.parentNode)==null||w.removeChild(f))}});return qt.set(o,h),o}let qt=new WeakMap;function wi(e,t){const r=qt.get(e);return r?(qt.delete(e),r(t)):Promise.resolve()}function Wr(e,t,r=!1){U&&At();var i=e,n=null,s=null,a=ee,u=r?Dt:0,l=!1;const o=(f,d=!0)=>{l=!0,h(d,f)},h=(f,d)=>{if(a===(a=f))return;let m=!1;if(U){const w=i.data===rr;!!a===w&&(i=Jn(),ge(i),Te(!1),m=!0)}a?(n?Ir(n):d&&(n=Lt(()=>d(i))),s&&jt(s,()=>{s=null})):(s?Ir(s):d&&(s=Lt(()=>d(i))),n&&jt(n,()=>{n=null})),m&&Te(!0)};Nr(()=>{l=!1,t(o),l||h(null,null)},u),U&&(i=H)}function xi(e,t){zn(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function Jr(e,t,r,i){var n=e.__attributes??(e.__attributes={});U&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[xn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Gr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function tt(e,t,r){var i=D,n=P;let s=U;U&&Te(!1),Me(null),Oe(null);try{(Ht.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Gr(e).includes(t):r&&typeof r=="object")?e[t]=r:Jr(e,t,r==null?r:String(r))}finally{Me(i),Oe(n),s&&Te(!0)}}var Ht=new Map;function Gr(e){var t=Ht.get(e.nodeName);if(t)return t;Ht.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Tn(i);for(var s in r)r[s].set&&t.push(s);i=ur(i)}return t}let xt=!1;function Ei(e){var t=xt;try{return xt=!1,[e(),xt]}finally{xt=t}}function rt(e,t,r,i){var z;var n=(r&J)!==0,s=!0,a=(r&mn)!==0,u=(r&gn)!==0,l=!1,o;a?[o,l]=Ei(()=>e[t]):o=e[t];var h=ft in e||ar in e,f=a&&(((z=Ce(e,t))==null?void 0:z.set)??(h&&t in e&&(T=>e[t]=T)))||void 0,d=i,m=!0,w=!1,x=()=>(w=!0,m&&(m=!1,u?d=zr(i):d=i),d);o===void 0&&i!==void 0&&(f&&s&&Ln(),o=x(),f&&f(o));var R;if(R=()=>{var T=e[t];return T===void 0?x():(m=!0,w=!1,T)},!(r&at))return R;if(f){var X=e.$$legacy;return function(T,C){return arguments.length>0?((!C||X||l)&&f(C?R():T),T):R()}}var I=!1,V=dr(o),b=Se(()=>{var T=R(),C=N(V);return I?(I=!1,C):V.v=T});return n||(b.equals=cr),function(T,C){if(arguments.length>0){const K=C?N(b):a?be(T):T;return b.equals(K)||(I=!0,B(V,K),w&&d!==void 0&&(d=K),zr(()=>N(b))),T}return N(b)}}function Si(e){return new Ti(e)}class Ti{constructor(t){Qt(this,we);Qt(this,oe);var s;var r=new Map,i=(a,u)=>{var l=dr(u);return r.set(a,l),l};const n=new Proxy({...t.props||{},$$events:{}},{get(a,u){return N(r.get(u)??i(u,Reflect.get(a,u)))},has(a,u){return u===ar?!0:(N(r.get(u)??i(u,Reflect.get(a,u))),Reflect.has(a,u))},set(a,u,l){return B(r.get(u)??i(u,l),l),Reflect.set(a,u,l)}});er(this,oe,(t.hydrate?$i:Ur)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&Ye(),er(this,we,n.$$events);for(const a of Object.keys(ne(this,oe)))a==="$set"||a==="$destroy"||a==="$on"||dt(this,a,{get(){return ne(this,oe)[a]},set(u){ne(this,oe)[a]=u},enumerable:!0});ne(this,oe).$set=a=>{Object.assign(n,a)},ne(this,oe).$destroy=()=>{wi(ne(this,oe))}}$set(t){ne(this,oe).$set(t)}$on(t,r){ne(this,we)[t]=ne(this,we)[t]||[];const i=(...n)=>r.call(this,...n);return ne(this,we)[t].push(i),()=>{ne(this,we)[t]=ne(this,we)[t].filter(n=>n!==i)}}$destroy(){ne(this,oe).$destroy()}}we=new WeakMap,oe=new WeakMap;let Xr;typeof HTMLElement=="function"&&(Xr=class extends HTMLElement{constructor(t,r,i){super();fe(this,"$$ctor");fe(this,"$$s");fe(this,"$$c");fe(this,"$$cn",!1);fe(this,"$$d",{});fe(this,"$$r",!1);fe(this,"$$p_d",{});fe(this,"$$l",{});fe(this,"$$l_u",new Map);fe(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const a=document.createElement("slot");n!=="default"&&(a.name=n),et(s,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Mi(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Et(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Si({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=fi(()=>{di(()=>{var n;this.$$r=!0;for(const s of ct(this.$$c)){if(!((n=this.$$p_d[s])!=null&&n.reflect))continue;this.$$d[s]=this.$$c[s];const a=Et(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Et(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return ct(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Et(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Mi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Oi(e,t,r,i,n,s){let a=class extends Xr{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return ct(t).map(u=>(t[u].attribute||u).toLowerCase())}};return ct(t).forEach(u=>{dt(a.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var f;l=Et(u,l,t),this.$$d[u]=l;var o=this.$$c;if(o){var h=(f=Ce(o,u))==null?void 0:f.get;h?o[u]=l:o.$set({[u]:l})}}})}),i.forEach(u=>{dt(a.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=a,a}function ki(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 r=document.createElement("script");r.id="hb-page-invoice-script",r.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/release/release.js`,location.href.includes("localhost")&&(r.src="http://localhost:6006/page-invoice/dist/release.js"),t.document.head.appendChild(r),setTimeout(()=>{t.print(),t.close()},2e3)}function zi(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 r=document.createElement("script");r.id="hb-page-invoice-script",r.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/release/release.js`,location.href.includes("localhost")&&(r.src="http://localhost:6006/page-invoice/dist/release.js"),t.document.head.appendChild(r)}const Ft={version:"0.50.0-alpha.008"};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var St={exports:{}},Di=St.exports,Kr;function Zr(){return Kr||(Kr=1,function(e,t){(function(r,i){e.exports=i()})(Di,function(){var r=1e3,i=6e4,n=36e5,s="millisecond",a="second",u="minute",l="hour",o="day",h="week",f="month",d="quarter",m="year",w="date",x="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|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,I={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(c){var v=["th","st","nd","rd"],p=c%100;return"["+c+(v[(p-20)%10]||v[p]||v[0])+"]"}},V=function(c,v,p){var g=String(c);return!g||g.length>=v?c:""+Array(v+1-g.length).join(p)+c},b={s:V,z:function(c){var v=-c.utcOffset(),p=Math.abs(v),g=Math.floor(p/60),_=p%60;return(v<=0?"+":"-")+V(g,2,"0")+":"+V(_,2,"0")},m:function c(v,p){if(v.date()<p.date())return-c(p,v);var g=12*(p.year()-v.year())+(p.month()-v.month()),_=v.clone().add(g,f),y=p-_<0,$=v.clone().add(g+(y?-1:1),f);return+(-(g+(p-_)/(y?_-$:$-_))||0)},a:function(c){return c<0?Math.ceil(c)||0:Math.floor(c)},p:function(c){return{M:f,y:m,w:h,d:o,D:w,h:l,m:u,s:a,ms:s,Q:d}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(c){return c===void 0}},z="en",T={};T[z]=I;var C="$isDayjsObject",K=function(c){return c instanceof Ne||!(!c||!c[C])},he=function c(v,p,g){var _;if(!v)return z;if(typeof v=="string"){var y=v.toLowerCase();T[y]&&(_=y),p&&(T[y]=p,_=y);var $=v.split("-");if(!_&&$.length>1)return c($[0])}else{var k=v.name;T[k]=v,_=k}return!g&&_&&(z=_),_||!g&&z},L=function(c,v){if(K(c))return c.clone();var p=typeof v=="object"?v:{};return p.date=c,p.args=arguments,new Ne(p)},E=b;E.l=he,E.i=K,E.w=function(c,v){return L(c,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var Ne=function(){function c(p){this.$L=he(p.locale,null,!0),this.parse(p),this.$x=this.$x||p.x||{},this[C]=!0}var v=c.prototype;return v.parse=function(p){this.$d=function(g){var _=g.date,y=g.utc;if(_===null)return new Date(NaN);if(E.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var $=_.match(R);if($){var k=$[2]-1||0,j=($[7]||"0").substring(0,3);return y?new Date(Date.UTC($[1],k,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)):new Date($[1],k,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)}}return new Date(_)}(p),this.init()},v.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==x},v.isSame=function(p,g){var _=L(p);return this.startOf(g)<=_&&_<=this.endOf(g)},v.isAfter=function(p,g){return L(p)<this.startOf(g)},v.isBefore=function(p,g){return this.endOf(g)<L(p)},v.$g=function(p,g,_){return E.u(p)?this[g]:this.set(_,p)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(p,g){var _=this,y=!!E.u(g)||g,$=E.p(p),k=function(Ee,G){var pe=E.w(_.$u?Date.UTC(_.$y,G,Ee):new Date(_.$y,G,Ee),_);return y?pe:pe.endOf(o)},j=function(Ee,G){return E.w(_.toDate()[Ee].apply(_.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(G)),_)},q=this.$W,W=this.$M,Q=this.$D,Pe="set"+(this.$u?"UTC":"");switch($){case m:return y?k(1,0):k(31,11);case f:return y?k(1,W):k(0,W+1);case h:var le=this.$locale().weekStart||0,xe=(q<le?q+7:q)-le;return k(y?Q-xe:Q+(6-xe),W);case o:case w:return j(Pe+"Hours",0);case l:return j(Pe+"Minutes",1);case u:return j(Pe+"Seconds",2);case a:return j(Pe+"Milliseconds",3);default:return this.clone()}},v.endOf=function(p){return this.startOf(p,!1)},v.$set=function(p,g){var _,y=E.p(p),$="set"+(this.$u?"UTC":""),k=(_={},_[o]=$+"Date",_[w]=$+"Date",_[f]=$+"Month",_[m]=$+"FullYear",_[l]=$+"Hours",_[u]=$+"Minutes",_[a]=$+"Seconds",_[s]=$+"Milliseconds",_)[y],j=y===o?this.$D+(g-this.$W):g;if(y===f||y===m){var q=this.clone().set(w,1);q.$d[k](j),q.init(),this.$d=q.set(w,Math.min(this.$D,q.daysInMonth())).$d}else k&&this.$d[k](j);return this.init(),this},v.set=function(p,g){return this.clone().$set(p,g)},v.get=function(p){return this[E.p(p)]()},v.add=function(p,g){var _,y=this;p=Number(p);var $=E.p(g),k=function(W){var Q=L(y);return E.w(Q.date(Q.date()+Math.round(W*p)),y)};if($===f)return this.set(f,this.$M+p);if($===m)return this.set(m,this.$y+p);if($===o)return k(1);if($===h)return k(7);var j=(_={},_[u]=i,_[l]=n,_[a]=r,_)[$]||1,q=this.$d.getTime()+p*j;return E.w(q,this)},v.subtract=function(p,g){return this.add(-1*p,g)},v.format=function(p){var g=this,_=this.$locale();if(!this.isValid())return _.invalidDate||x;var y=p||"YYYY-MM-DDTHH:mm:ssZ",$=E.z(this),k=this.$H,j=this.$m,q=this.$M,W=_.weekdays,Q=_.months,Pe=_.meridiem,le=function(G,pe,Ae,Re){return G&&(G[pe]||G(g,y))||Ae[pe].slice(0,Re)},xe=function(G){return E.s(k%12||12,G,"0")},Ee=Pe||function(G,pe,Ae){var Re=G<12?"AM":"PM";return Ae?Re.toLowerCase():Re};return y.replace(X,function(G,pe){return pe||function(Ae){switch(Ae){case"YY":return String(g.$y).slice(-2);case"YYYY":return E.s(g.$y,4,"0");case"M":return q+1;case"MM":return E.s(q+1,2,"0");case"MMM":return le(_.monthsShort,q,Q,3);case"MMMM":return le(Q,q);case"D":return g.$D;case"DD":return E.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return le(_.weekdaysMin,g.$W,W,2);case"ddd":return le(_.weekdaysShort,g.$W,W,3);case"dddd":return W[g.$W];case"H":return String(k);case"HH":return E.s(k,2,"0");case"h":return xe(1);case"hh":return xe(2);case"a":return Ee(k,j,!0);case"A":return Ee(k,j,!1);case"m":return String(j);case"mm":return E.s(j,2,"0");case"s":return String(g.$s);case"ss":return E.s(g.$s,2,"0");case"SSS":return E.s(g.$ms,3,"0");case"Z":return $}return null}(G)||$.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(p,g,_){var y,$=this,k=E.p(g),j=L(p),q=(j.utcOffset()-this.utcOffset())*i,W=this-j,Q=function(){return E.m($,j)};switch(k){case m:y=Q()/12;break;case f:y=Q();break;case d:y=Q()/3;break;case h:y=(W-q)/6048e5;break;case o:y=(W-q)/864e5;break;case l:y=W/n;break;case u:y=W/i;break;case a:y=W/r;break;default:y=W}return _?y:E.a(y)},v.daysInMonth=function(){return this.endOf(f).$D},v.$locale=function(){return T[this.$L]},v.locale=function(p,g){if(!p)return this.$L;var _=this.clone(),y=he(p,g,!0);return y&&(_.$L=y),_},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},c}(),S=Ne.prototype;return L.prototype=S,[["$ms",s],["$s",a],["$m",u],["$H",l],["$W",o],["$M",f],["$y",m],["$D",w]].forEach(function(c){S[c[1]]=function(v){return this.$g(v,c[0],c[1])}}),L.extend=function(c,v){return c.$i||(c(v,Ne,L),c.$i=!0),L},L.locale=he,L.isDayjs=K,L.unix=function(c){return L(1e3*c)},L.en=T[z],L.Ls=T,L.p={},L})}(St)),St.exports}var Ni=Zr();const Pi=Vt(Ni);var Tt={exports:{}},Qr;function Ai(){if(Qr)return Tt.exports;Qr=1;function e(t,r=100,i={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(r<0)throw new RangeError("`wait` must not be negative.");const{immediate:n}=typeof i=="boolean"?{immediate:i}:i;let s,a,u,l,o;function h(){const m=s,w=a;return s=void 0,a=void 0,o=t.apply(m,w),o}function f(){const m=Date.now()-l;m<r&&m>=0?u=setTimeout(f,r-m):(u=void 0,n||(o=h()))}const d=function(...m){if(s&&this!==s&&Object.getPrototypeOf(this)===Object.getPrototypeOf(s))throw new Error("Debounced method called with different contexts of the same prototype.");s=this,a=m,l=Date.now();const w=n&&!u;return u||(u=setTimeout(f,r)),w&&(o=h()),o};return Object.defineProperty(d,"isPending",{get(){return u!==void 0}}),d.clear=()=>{u&&(clearTimeout(u),u=void 0)},d.flush=()=>{u&&d.trigger()},d.trigger=()=>{o=h(),d.clear()},d}return Tt.exports.debounce=e,Tt.exports=e,Tt.exports}var Ri=Ai();const en=Vt(Ri);var Mt={exports:{}},Ci=Mt.exports,tn;function Ii(){return tn||(tn=1,function(e,t){(function(r,i){e.exports=i(Zr())})(Ci,function(r){function i(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var n=i(r),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 n.default.locale(s,null,!0),s})}(Mt)),Mt.exports}Ii();function Li(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(s=>Object.keys(e).includes(s.name)))!=null&&n.length))for(const s of Object.keys(e))(t==null?void 0:t.filter(u=>u.name===s&&u.defaultValue!==e[s]))&&(r+=`${s}:${e[s]};`);return r}function ji(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}var Ge={},Ut,rn;function Yi(){if(rn)return Ut;rn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g,l=`
|
|
2
|
-
`,o="/",h="*",f="",d="comment",m="declaration";Ut=function(x,R){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];R=R||{};var X=1,I=1;function V(S){var c=S.match(t);c&&(X+=c.length);var v=S.lastIndexOf(l);I=~v?S.length-v:I+S.length}function b(){var S={line:X,column:I};return function(c){return c.position=new z(S),K(),c}}function z(S){this.start=S,this.end={line:X,column:I},this.source=R.source}z.prototype.content=x;function T(S){var c=new Error(R.source+":"+X+":"+I+": "+S);if(c.reason=S,c.filename=R.source,c.line=X,c.column=I,c.source=x,!R.silent)throw c}function C(S){var c=S.exec(x);if(c){var v=c[0];return V(v),x=x.slice(v.length),c}}function K(){C(r)}function he(S){var c;for(S=S||[];c=L();)c!==!1&&S.push(c);return S}function L(){var S=b();if(!(o!=x.charAt(0)||h!=x.charAt(1))){for(var c=2;f!=x.charAt(c)&&(h!=x.charAt(c)||o!=x.charAt(c+1));)++c;if(c+=2,f===x.charAt(c-1))return T("End of comment missing");var v=x.slice(2,c-2);return I+=2,V(v),x=x.slice(c),I+=2,S({type:d,comment:v})}}function E(){var S=b(),c=C(i);if(c){if(L(),!C(n))return T("property missing ':'");var v=C(s),p=S({type:m,property:w(c[0].replace(e,f)),value:v?w(v[0].replace(e,f)):f});return C(a),p}}function Ne(){var S=[];he(S);for(var c;c=E();)c!==!1&&(S.push(c),he(S));return S}return K(),Ne()};function w(x){return x?x.replace(u,f):f}return Ut}var nn;function qi(){if(nn)return Ge;nn=1;var e=Ge&&Ge.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.default=r;var t=e(Yi());function r(i,n){var s=null;if(!i||typeof i!="string")return s;var a=(0,t.default)(i),u=typeof n=="function";return a.forEach(function(l){if(l.type==="declaration"){var o=l.property,h=l.value;u?n(o,h,l):h&&(s=s||{},s[o]=h)}}),s}return Ge}var Hi=qi();const sn=Vt(Hi),Fi=sn.default||sn,Bt={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}]};var Vi=Vr('<div style="text-align:right;padding-right:60px" class="svelte-1ozupp5"><button class="btn btn-default svelte-1ozupp5"><i class="bi-printer-fill svelte-1ozupp5"></i></button> <button class="btn btn-default svelte-1ozupp5"><i class="bi-arrows-fullscreen svelte-1ozupp5"></i></button></div>'),Ui=Vr('<div id="page" class="container svelte-1ozupp5"><div class="row svelte-1ozupp5" style="margin-top:20px"><div class="col svelte-1ozupp5"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-1ozupp5"> <span style="margin:0px 40px 0px 40px" class="svelte-1ozupp5"> </span></div> <div class="col svelte-1ozupp5"><!></div></div> <div class="row svelte-1ozupp5" style="margin-top:60px"><div class="col svelte-1ozupp5"> </div> <div class="col svelte-1ozupp5"></div> <div class="col svelte-1ozupp5"> </div></div> <div class="row svelte-1ozupp5" style="margin-top:40px"><div class="col svelte-1ozupp5"><div class="svelte-1ozupp5"> </div> <div class="svelte-1ozupp5"> </div> <div class="svelte-1ozupp5"> </div></div> <div class="col svelte-1ozupp5"><div class="svelte-1ozupp5"> </div> <div class="svelte-1ozupp5"> </div></div> <div class="col svelte-1ozupp5"><div class="svelte-1ozupp5"> </div> <div class="svelte-1ozupp5"> </div> <div class="svelte-1ozupp5"> </div></div></div> <div class="row svelte-1ozupp5" style="margin-top:40px"><div class="col svelte-1ozupp5"><hb-table></hb-table></div></div> <div class="row svelte-1ozupp5" style="margin-top:40px"><div class="col svelte-1ozupp5"><div style="width:300px;float:right" class="svelte-1ozupp5"><div style="text-align:left;" class="svelte-1ozupp5"><div style="line-height:25px" class="svelte-1ozupp5"><span style="display:inline-block;min-width:200px;" class="svelte-1ozupp5">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-1ozupp5"><span style="display:inline-block;min-width:200px;" class="svelte-1ozupp5">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-1ozupp5"><span style="display:inline-block;min-width:200px;" class="svelte-1ozupp5">Totale:</span> </div></div></div></div></div></div>',2);const Bi={hash:"svelte-1ozupp5",code:`@charset "UTF-8";
|
|
1
|
+
(function(sn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Sr=1,jr=4,Mr=8,Tr=16,kr=1,Or=2,an="[",on="[!",ln="]",Ue={},U=Symbol(),Nr="http://www.w3.org/1999/xhtml",un=!1;var fn=Array.isArray,Dr=Array.prototype.indexOf,Ar=Array.from,at=Object.keys,We=Object.defineProperty,De=Object.getOwnPropertyDescriptor,Rr=Object.getOwnPropertyDescriptors,Pr=Object.prototype,Cr=Array.prototype,cn=Object.getPrototypeOf,vn=Object.isExtensible;function dn(e){for(var t=0;t<e.length;t++)e[t]()}function Ir(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const Q=2,St=4,hn=8,Be=16,_e=32,$e=64,_n=128,ne=256,ot=512,z=1024,re=2048,xe=4096,Ee=8192,Ae=16384,jt=32768,Mt=65536,pn=1<<17,Lr=1<<18,ze=1<<19,Yr=1<<20,Tt=1<<21,kt=1<<22,Re=1<<23,lt=Symbol("$state"),mn=Symbol("legacy props"),qr=Symbol(""),Ot=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Nt=3,ut=8;function Fr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Hr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ur(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Br(e){throw new Error("https://svelte.dev/e/effect_orphan")}function zr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Jr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Gr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Xr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Kr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ft(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let C=!1;function Se(e){C=e}let L;function pe(e){if(e===null)throw ft(),Ue;return L=e}function Dt(){return pe(Ye(L))}function k(e){if(C){if(Ye(L)!==null)throw ft(),Ue;L=e}}function Zr(){for(var e=0,t=L;;){if(t.nodeType===ut){var n=t.data;if(n===ln){if(e===0)return t;e-=1}else(n===an||n===on)&&(e+=1)}var r=Ye(t);t.remove(),t=r}}function Qr(e){if(!e||e.nodeType!==ut)throw ft(),Ue;return e.data}function gn(e){return e===this.v}function ei(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function bn(e){return!ei(e,this.v)}let ti=!1,oe=null;function ct(e){oe=e}function yn(e,t=!1,n){oe={p:oe,c:null,e:null,s:e,x:null,l:null}}function wn(e){var t=oe,n=t.e;if(n!==null){t.e=null;for(var r of n)In(r)}return e!==void 0&&(t.x=e),oe=t.p,e??{}}function $n(){return!0}const ni=new WeakMap;function ri(e){var t=S;if(t===null)return j.f|=Re,e;if((t.f&jt)===0){if((t.f&_n)===0)throw!t.parent&&e instanceof Error&&xn(e),e;t.b.error(e)}else At(e,t)}function At(e,t){for(;t!==null;){if((t.f&_n)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&xn(e),e}function xn(e){const t=ni.get(e);t&&(We(e,"message",{value:t.message}),We(e,"stack",{value:t.stack}))}let Rt=[],Pt=[];function ii(){var e=Rt;Rt=[],dn(e)}function si(){var e=Pt;Pt=[],dn(e)}function ai(){Rt.length>0&&ii(),Pt.length>0&&si()}function oi(){const e=S.b;return e===null&&Fr(),e}function vt(e){var t=Q|re,n=j!==null&&(j.f&Q)!==0?j:null;return S===null||n!==null&&(n.f&ne)!==0?t|=ne:S.f|=ze,{ctx:oe,deps:null,effects:null,equals:gn,f:t,fn:e,reactions:null,rv:0,v:U,wv:0,parent:n??S,ac:null}}function li(e,t){let n=S;n===null&&Hr();var r=n.b,s=void 0,i=Yt(U),a=null,o=!j;return Ei(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(d){l=Promise.reject(d)}var u=()=>l;s=a?.then(u,u)??Promise.resolve(l),a=s;var h=W,_=r.is_pending();o&&(r.update_pending_count(1),_||h.increment());const g=(d,m=void 0)=>{a=null,_||h.activate(),m?m!==Ot&&(i.f|=Re,qt(i,m)):((i.f&Re)!==0&&(i.f^=Re),qt(i,d)),o&&(r.update_pending_count(-1),_||h.decrement()),jn()};if(s.then(g,d=>g(null,d||"unknown")),h)return()=>{queueMicrotask(()=>h.neuter())}}),new Promise(l=>{function u(h){function _(){h===s?l(i):u(s)}h.then(_,_)}u(s)})}function Ve(e){const t=vt(e);return zn(t),t}function ui(e){const t=vt(e);return t.equals=bn,t}function En(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Te(t[n])}}function fi(e){for(var t=e.parent;t!==null;){if((t.f&Q)===0)return t;t=t.parent}return null}function Ct(e){var t,n=S;ve(fi(e));try{En(e),t=Kn(e)}finally{ve(n)}return t}function Sn(e){var t=Ct(e);if(e.equals(t)||(e.v=t,e.wv=Gn()),!qe){var n=(ke||(e.f&ne)!==0)&&e.deps!==null?xe:z;te(e,n)}}function ci(e,t,n){const r=vt;if(t.length===0){n(e.map(r));return}var s=W,i=S,a=vi(),o=oi();Promise.all(t.map(l=>li(l))).then(l=>{s?.activate(),a();try{n([...e.map(r),...l])}catch(u){(i.f&Ae)===0&&At(u,i)}s?.deactivate(),jn()}).catch(l=>{o.error(l)})}function vi(){var e=S,t=j,n=oe,r=W;return function(){ve(e),se(t),ct(n),r?.activate()}}function jn(){ve(null),se(null),ct(null)}const It=new Set;let W=null,Mn=new Set,dt=[];function Tn(){const e=dt.shift();dt.length>0&&queueMicrotask(Tn),e()}let Pe=[],ht=null,Lt=!1,_t=!1;class Ce{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#r=[];#o=[];#c=[];#v=[];skipped_effects=new Set;process(t){Pe=[];for(const s of t)this.#h(s);if(this.#i.length===0&&this.#n===0){this.#d();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#o=[],W=null,On(n),On(r),W===null?W=this:It.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#r),this.#l(this.#o);for(const s of this.#i)Ke(s);for(const s of this.#a)Ke(s);this.#i=[],this.#a=[]}#h(t){t.f^=z;for(var n=t.first;n!==null;){var r=n.f,s=(r&(_e|$e))!==0,i=s&&(r&z)!==0,a=i||(r&Ee)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(s)n.f^=z;else if((r&St)!==0)this.#r.push(n);else if((r&z)===0)if((r&kt)!==0){var o=n.b?.is_pending()?this.#a:this.#i;o.push(n)}else pt(n)&&((n.f&Be)!==0&&this.#o.push(n),Ke(n));var l=n.first;if(l!==null){n=l;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#l(t){for(const n of t)((n.f&re)!==0?this.#c:this.#v).push(n),te(n,z);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){W=this}deactivate(){W=null;for(const t of Mn)if(Mn.delete(t),t(),W!==null)break}neuter(){this.#f=!0}flush(){Pe.length>0?kn():this.#d(),W===this&&(this.#n===0&&It.delete(this),this.deactivate())}#d(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)te(t,re),Je(t);for(const t of this.#v)te(t,xe),Je(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Ir()).promise}static ensure(){if(W===null){const t=W=new Ce;It.add(W),_t||Ce.enqueue(()=>{W===t&&t.flush()})}return W}static enqueue(t){dt.length===0&&queueMicrotask(Tn),dt.unshift(t)}}function tt(e){var t=_t;_t=!0;try{for(var n;;){if(ai(),Pe.length===0&&(W?.flush(),Pe.length===0))return ht=null,n;kn()}}finally{_t=t}}function kn(){var e=Xe;Lt=!0;try{var t=0;for(Wn(!0);Pe.length>0;){var n=Ce.ensure();if(t++>1e3){var r,s;di()}n.process(Pe),je.clear()}}finally{Lt=!1,Wn(e),ht=null}}function di(){try{zr()}catch(e){At(e,ht)}}let Ie=null;function On(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Ae|Ee))===0&&pt(r)&&(Ie=[],Ke(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?qn(r):r.fn=null),Ie?.length>0)){je.clear();for(const s of Ie)Ke(s);Ie=[]}}Ie=null}}function Je(e){for(var t=ht=e;t.parent!==null;){t=t.parent;var n=t.f;if(Lt&&t===S&&(n&Be)!==0)return;if((n&($e|_e))!==0){if((n&z)===0)return;t.f^=z}}Pe.push(t)}const je=new Map;function Yt(e,t){var n={f:0,v:e,reactions:null,equals:gn,rv:0,wv:0};return n}function ie(e,t){const n=Yt(e);return zn(n),n}function hi(e,t=!1,n=!0){const r=Yt(e);return t||(r.equals=bn),r}function V(e,t,n=!1){j!==null&&(!ce||(j.f&pn)!==0)&&$n()&&(j.f&(Q|Be|kt|pn))!==0&&!ge?.includes(e)&&Kr();let r=n?Le(t):t;return qt(e,r)}function qt(e,t){if(!e.equals(t)){var n=e.v;qe?je.set(e,t):je.set(e,n),e.v=t;var r=Ce.ensure();r.capture(e,n),(e.f&Q)!==0&&((e.f&re)!==0&&Ct(e),te(e,(e.f&ne)===0?z:xe)),e.wv=Gn(),Nn(e,re),S!==null&&(S.f&z)!==0&&(S.f&(_e|$e))===0&&(ae===null?Ni([e]):ae.push(e))}return t}function Ft(e){V(e,e.v+1)}function Nn(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],a=i.f,o=(a&re)===0;o&&te(i,t),(a&Q)!==0?Nn(i,xe):o&&((a&Be)!==0&&Ie!==null&&Ie.push(i),Je(i))}}function Le(e){if(typeof e!="object"||e===null||lt in e)return e;const t=cn(e);if(t!==Pr&&t!==Cr)return e;var n=new Map,r=fn(e),s=ie(0),i=Fe,a=o=>{if(Fe===i)return o();var l=j,u=Fe;se(null),Jn(i);var h=o();return se(l),Jn(u),h};return r&&n.set("length",ie(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Gr();var h=n.get(l);return h===void 0?h=a(()=>{var _=ie(u.value);return n.set(l,_),_}):V(h,u.value,!0),!0},deleteProperty(o,l){var u=n.get(l);if(u===void 0){if(l in o){const h=a(()=>ie(U));n.set(l,h),Ft(s)}}else V(u,U),Ft(s);return!0},get(o,l,u){if(l===lt)return e;var h=n.get(l),_=l in o;if(h===void 0&&(!_||De(o,l)?.writable)&&(h=a(()=>{var d=Le(_?o[l]:U),m=ie(d);return m}),n.set(l,h)),h!==void 0){var g=D(h);return g===U?void 0:g}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var h=n.get(l);h&&(u.value=D(h))}else if(u===void 0){var _=n.get(l),g=_?.v;if(_!==void 0&&g!==U)return{enumerable:!0,configurable:!0,value:g,writable:!0}}return u},has(o,l){if(l===lt)return!0;var u=n.get(l),h=u!==void 0&&u.v!==U||Reflect.has(o,l);if(u!==void 0||S!==null&&(!h||De(o,l)?.writable)){u===void 0&&(u=a(()=>{var g=h?Le(o[l]):U,d=ie(g);return d}),n.set(l,u));var _=D(u);if(_===U)return!1}return h},set(o,l,u,h){var _=n.get(l),g=l in o;if(r&&l==="length")for(var d=u;d<_.v;d+=1){var m=n.get(d+"");m!==void 0?V(m,U):d in o&&(m=a(()=>ie(U)),n.set(d+"",m))}if(_===void 0)(!g||De(o,l)?.writable)&&(_=a(()=>ie(void 0)),V(_,Le(u)),n.set(l,_));else{g=_.v!==U;var x=a(()=>Le(u));V(_,x)}var R=Reflect.getOwnPropertyDescriptor(o,l);if(R?.set&&R.set.call(h,u),!g){if(r&&typeof l=="string"){var q=n.get("length"),E=Number(l);Number.isInteger(E)&&E>=q.v&&V(q,E+1)}Ft(s)}return!0},ownKeys(o){D(s);var l=Reflect.ownKeys(o).filter(_=>{var g=n.get(_);return g===void 0||g.v!==U});for(var[u,h]of n)h.v!==U&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Xr()}})}var Dn,An,Rn,Pn;function Ht(){if(Dn===void 0){Dn=window,An=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Rn=De(t,"firstChild").get,Pn=De(t,"nextSibling").get,vn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),vn(n)&&(n.__t=void 0)}}function Me(e=""){return document.createTextNode(e)}function Ge(e){return Rn.call(e)}function Ye(e){return Pn.call(e)}function O(e,t){if(!C)return Ge(e);var n=Ge(L);if(n===null)n=L.appendChild(Me());else if(t&&n.nodeType!==Nt){var r=Me();return n?.before(r),pe(r),r}return pe(n),n}function _i(e,t){if(!C){var n=Ge(e);return n instanceof Comment&&n.data===""?Ye(n):n}return L}function Y(e,t=1,n=!1){let r=C?L:e;for(var s;t--;)s=r,r=Ye(r);if(!C)return r;if(n&&r?.nodeType!==Nt){var i=Me();return r===null?s?.after(i):r.before(i),pe(i),i}return pe(r),r}function pi(e){e.textContent=""}function mi(){return!1}function Cn(e){var t=j,n=S;se(null),ve(null);try{return e()}finally{se(t),ve(n)}}function gi(e){S===null&&j===null&&Br(),j!==null&&(j.f&ne)!==0&&S===null&&Wr(),qe&&Ur()}function bi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function me(e,t,n,r=!0){var s=S;s!==null&&(s.f&Ee)!==0&&(e|=Ee);var i={ctx:oe,deps:null,nodes_start:null,nodes_end:null,f:e|re,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ke(i),i.f|=jt}catch(l){throw Te(i),l}else t!==null&&Je(i);if(r){var a=i;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&ze)===0&&(a=a.first),a!==null&&(a.parent=s,s!==null&&bi(a,s),j!==null&&(j.f&Q)!==0&&(e&$e)===0)){var o=j;(o.effects??=[]).push(a)}}return i}function yi(e){gi();var t=S.f,n=!j&&(t&_e)!==0&&(t&jt)===0;if(n){var r=oe;(r.e??=[]).push(e)}else return In(e)}function In(e){return me(St|Yr,e,!1)}function wi(e){Ce.ensure();const t=me($e|ze,e,!0);return()=>{Te(t)}}function $i(e){Ce.ensure();const t=me($e|ze,e,!0);return(n={})=>new Promise(r=>{n.outro?Fn(t,()=>{Te(t),r(void 0)}):(Te(t),r(void 0))})}function xi(e){return me(St,e,!1)}function Ei(e){return me(kt|ze,e,!0)}function Si(e,t=0){return me(hn|t,e,!0)}function Ut(e,t=[],n=[]){ci(t,n,r=>{me(hn,()=>e(...r.map(D)),!0)})}function ji(e,t=0){var n=me(Be|t,e,!0);return n}function Wt(e,t=!0){return me(_e|ze,e,!0,t)}function Ln(e){var t=e.teardown;if(t!==null){const n=qe,r=j;Bn(!0),se(null);try{t.call(null)}finally{Bn(n),se(r)}}}function Yn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Cn(()=>{s.abort(Ot)});var r=n.next;(n.f&$e)!==0?n.parent=null:Te(n,t),n=r}}function Mi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&_e)===0&&Te(t),t=n}}function Te(e,t=!0){var n=!1;(t||(e.f&Lr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Ti(e.nodes_start,e.nodes_end),n=!0),Yn(e,t&&!n),mt(e,0),te(e,Ae);var r=e.transitions;if(r!==null)for(const i of r)i.stop();Ln(e);var s=e.parent;s!==null&&s.first!==null&&qn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Ti(e,t){for(;e!==null;){var n=e===t?null:Ye(e);e.remove(),e=n}}function qn(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 Fn(e,t){var n=[];Hn(e,n,!0),ki(n,()=>{Te(e),t&&t()})}function ki(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function Hn(e,t,n){if((e.f&Ee)===0){if(e.f^=Ee,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&Mt)!==0||(r.f&_e)!==0;Hn(r,t,i?n:!1),r=s}}}function Oi(e){Un(e,!0)}function Un(e,t){if((e.f&Ee)!==0){e.f^=Ee,(e.f&z)===0&&(te(e,re),Je(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Mt)!==0||(n.f&_e)!==0;Un(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let Xe=!1;function Wn(e){Xe=e}let qe=!1;function Bn(e){qe=e}let j=null,ce=!1;function se(e){j=e}let S=null;function ve(e){S=e}let ge=null;function zn(e){j!==null&&(ge===null?ge=[e]:ge.push(e))}let J=null,ee=0,ae=null;function Ni(e){ae=e}let Vn=1,nt=0,Fe=nt;function Jn(e){Fe=e}let ke=!1;function Gn(){return++Vn}function pt(e){var t=e.f;if((t&re)!==0)return!0;if((t&xe)!==0){var n=e.deps,r=(t&ne)!==0;if(n!==null){var s,i,a=(t&ot)!==0,o=r&&S!==null&&!ke,l=n.length;if((a||o)&&(S===null||(S.f&Ae)===0)){var u=e,h=u.parent;for(s=0;s<l;s++)i=n[s],(a||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);a&&(u.f^=ot),o&&h!==null&&(h.f&ne)===0&&(u.f^=ne)}for(s=0;s<l;s++)if(i=n[s],pt(i)&&Sn(i),i.wv>e.wv)return!0}(!r||S!==null&&!ke)&&te(e,z)}return!1}function Xn(e,t,n=!0){var r=e.reactions;if(r!==null&&!ge?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&Q)!==0?Xn(i,t,!1):t===i&&(n?te(i,re):(i.f&z)!==0&&te(i,xe),Je(i))}}function Kn(e){var t=J,n=ee,r=ae,s=j,i=ke,a=ge,o=oe,l=ce,u=Fe,h=e.f;J=null,ee=0,ae=null,ke=(h&ne)!==0&&(ce||!Xe||j===null),j=(h&(_e|$e))===0?e:null,ge=null,ct(e.ctx),ce=!1,Fe=++nt,e.ac!==null&&(Cn(()=>{e.ac.abort(Ot)}),e.ac=null);try{e.f|=Tt;var _=e.fn,g=_(),d=e.deps;if(J!==null){var m;if(mt(e,ee),d!==null&&ee>0)for(d.length=ee+J.length,m=0;m<J.length;m++)d[ee+m]=J[m];else e.deps=d=J;if(!ke||(h&Q)!==0&&e.reactions!==null)for(m=ee;m<d.length;m++)(d[m].reactions??=[]).push(e)}else d!==null&&ee<d.length&&(mt(e,ee),d.length=ee);if($n()&&ae!==null&&!ce&&d!==null&&(e.f&(Q|xe|re))===0)for(m=0;m<ae.length;m++)Xn(ae[m],e);return s!==null&&s!==e&&(nt++,ae!==null&&(r===null?r=ae:r.push(...ae))),(e.f&Re)!==0&&(e.f^=Re),g}catch(x){return ri(x)}finally{e.f^=Tt,J=t,ee=n,ae=r,j=s,ke=i,ge=a,ct(o),ce=l,Fe=u}}function Di(e,t){let n=t.reactions;if(n!==null){var r=Dr.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&Q)!==0&&(J===null||!J.includes(t))&&(te(t,xe),(t.f&(ne|ot))===0&&(t.f^=ot),En(t),mt(t,0))}function mt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Di(e,n[r])}function Ke(e){var t=e.f;if((t&Ae)===0){te(e,z);var n=S,r=Xe;S=e,Xe=!0;try{(t&Be)!==0?Mi(e):Yn(e),Ln(e);var s=Kn(e);e.teardown=typeof s=="function"?s:null,e.wv=Vn;var i;un&&ti&&(e.f&re)!==0&&e.deps}finally{Xe=r,S=n}}}function D(e){var t=e.f,n=(t&Q)!==0;if(j!==null&&!ce){var r=S!==null&&(S.f&Ae)!==0;if(!r&&!ge?.includes(e)){var s=j.deps;if((j.f&Tt)!==0)e.rv<nt&&(e.rv=nt,J===null&&s!==null&&s[ee]===e?ee++:J===null?J=[e]:(!ke||!J.includes(e))&&J.push(e));else{(j.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[j]:i.includes(j)||i.push(j)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&ne)===0&&(a.f^=ne)}if(qe){if(je.has(e))return je.get(e);if(n){a=e;var l=a.v;return((a.f&z)===0&&a.reactions!==null||Zn(a))&&(l=Ct(a)),je.set(a,l),l}}else n&&(a=e,pt(a)&&Sn(a));if((e.f&Re)!==0)throw e.v;return e.v}function Zn(e){if(e.v===U)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(je.has(t)||(t.f&Q)!==0&&Zn(t))return!0;return!1}function Ai(e){var t=ce;try{return ce=!0,e()}finally{ce=t}}const Ri=-7169;function te(e,t){e.f=e.f&Ri|t}const Qn=new Set,Bt=new Set;function Pi(e){for(var t=0;t<e.length;t++)Qn.add(e[t]);for(var n of Bt)n(e)}let er=null;function gt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;er=e;var a=0,o=er===e&&e.__root;if(o){var l=s.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(i=s[a]||e.target,i!==t){We(e,"currentTarget",{configurable:!0,get(){return i||n}});var h=j,_=S;se(null),ve(null);try{for(var g,d=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var x=i["__"+r];if(x!=null&&(!i.disabled||e.target===i))if(fn(x)){var[R,...q]=x;R.apply(i,[e,...q])}else x.call(i,e)}catch(E){g?d.push(E):g=E}if(e.cancelBubble||m===t||m===null)break;i=m}if(g){for(let E of d)queueMicrotask(()=>{throw E});throw g}}finally{e.__root=t,delete e.currentTarget,se(h),ve(_)}}}function Ci(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Oe(e,t){var n=S;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function tr(e,t){var n=(t&kr)!==0,r=(t&Or)!==0,s,i=!e.startsWith("<!>");return()=>{if(C)return Oe(L,null),L;s===void 0&&(s=Ci(i?e:"<!>"+e),n||(s=Ge(s)));var a=r||An?document.importNode(s,!0):s.cloneNode(!0);if(n){var o=Ge(a),l=a.lastChild;Oe(o,l)}else Oe(a,a);return a}}function Ii(e=""){if(!C){var t=Me(e+"");return Oe(t,t),t}var n=L;return n.nodeType!==Nt&&(n.before(n=Me()),pe(n)),Oe(n,n),n}function Li(){if(C)return Oe(L,null),L;var e=document.createDocumentFragment(),t=document.createComment(""),n=Me();return e.append(t,n),Oe(t,n),e}function rt(e,t){if(C){S.nodes_end=L,Dt();return}e!==null&&e.before(t)}const Yi=["touchstart","touchmove"];function qi(e){return Yi.includes(e)}function X(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function nr(e,t){return rr(e,t)}function Fi(e,t){Ht(),t.intro=t.intro??!1;const n=t.target,r=C,s=L;try{for(var i=Ge(n);i&&(i.nodeType!==ut||i.data!==an);)i=Ye(i);if(!i)throw Ue;Se(!0),pe(i),Dt();const a=rr(e,{...t,anchor:i});if(L===null||L.nodeType!==ut||L.data!==ln)throw ft(),Ue;return Se(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Ue&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Vr(),Ht(),pi(n),Se(!1),nr(e,t)}finally{Se(r),pe(s)}}const Ze=new Map;function rr(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:a=!0}){Ht();var o=new Set,l=_=>{for(var g=0;g<_.length;g++){var d=_[g];if(!o.has(d)){o.add(d);var m=qi(d);t.addEventListener(d,gt,{passive:m});var x=Ze.get(d);x===void 0?(document.addEventListener(d,gt,{passive:m}),Ze.set(d,1)):Ze.set(d,x+1)}}};l(Ar(Qn)),Bt.add(l);var u=void 0,h=$i(()=>{var _=n??t.appendChild(Me());return Wt(()=>{if(i){yn({});var g=oe;g.c=i}s&&(r.$$events=s),C&&Oe(_,null),u=e(_,r)||{},C&&(S.nodes_end=L),i&&wn()}),()=>{for(var g of o){t.removeEventListener(g,gt);var d=Ze.get(g);--d===0?(document.removeEventListener(g,gt),Ze.delete(g)):Ze.set(g,d)}Bt.delete(l),_!==n&&_.parentNode?.removeChild(_)}});return zt.set(u,h),u}let zt=new WeakMap;function Hi(e,t){const n=zt.get(e);return n?(zt.delete(e),n(t)):Promise.resolve()}function ir(e,t,n=!1){C&&Dt();var r=e,s=null,i=null,a=U,o=n?Mt:0,l=!1;const u=(d,m=!0)=>{l=!0,g(m,d)};var h=null;function _(){h!==null&&(h.lastChild.remove(),r.before(h),h=null);var d=a?s:i,m=a?i:s;d&&Oi(d),m&&Fn(m,()=>{a?i=null:s=null})}const g=(d,m)=>{if(a===(a=d))return;let x=!1;if(C){const G=Qr(r)===on;!!a===G&&(r=Zr(),pe(r),Se(!1),x=!0)}var R=mi(),q=r;if(R&&(h=document.createDocumentFragment(),h.append(q=Me())),a?s??=m&&Wt(()=>m(q)):i??=m&&Wt(()=>m(q)),R){var E=W,b=a?s:i,I=a?i:s;b&&E.skipped_effects.delete(b),I&&E.skipped_effects.add(I),E.add_callback(_)}else _();x&&Se(!0)};ji(()=>{l=!1,t(u),l||g(null,null)},o),C&&(r=L)}function Ui(e,t){xi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function Wi(e,t,n){var r=""+e;return r}function Bi(e,t){return e==null?null:String(e)}function zi(e,t,n,r,s,i){var a=e.__className;if(C||a!==n||a===void 0){var o=Wi(n);(!C||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return i}function Vi(e,t,n,r){var s=e.__style;if(C||s!==t){var i=Bi(t);(!C||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const Ji=Symbol("is custom element"),Gi=Symbol("is html");function sr(e,t,n,r){var s=Xi(e);C&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[qr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ar(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Vt(e,t,n){var r=j,s=S;let i=C;C&&Se(!1),se(null),ve(null);try{t!=="style"&&(Jt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?ar(e).includes(t):n&&typeof n=="object")?e[t]=n:sr(e,t,n==null?n:String(n))}finally{se(r),ve(s),i&&Se(!0)}}function Xi(e){return e.__attributes??={[Ji]:e.nodeName.includes("-"),[Gi]:e.namespaceURI===Nr}}var Jt=new Map;function ar(e){var t=e.getAttribute("is")||e.nodeName,n=Jt.get(t);if(n)return n;Jt.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=Rr(s);for(var a in r)r[a].set&&n.push(a);s=cn(s)}return n}let bt=!1;function Ki(e){var t=bt;try{return bt=!1,[e(),bt]}finally{bt=t}}function yt(e,t,n,r){var s=(n&Mr)!==0,i=(n&Tr)!==0,a=r,o=!0,l=()=>(o&&(o=!1,a=i?Ai(r):r),a),u;if(s){var h=lt in e||mn in e;u=De(e,t)?.set??(h&&t in e?E=>e[t]=E:void 0)}var _,g=!1;s?[_,g]=Ki(()=>e[t]):_=e[t],_===void 0&&r!==void 0&&(_=l(),u&&(Jr(),u(_)));var d;if(d=()=>{var E=e[t];return E===void 0?l():(o=!0,E)},(n&jr)===0)return d;if(u){var m=e.$$legacy;return(function(E,b){return arguments.length>0?((!b||m||g)&&u(b?d():E),E):d()})}var x=!1,R=((n&Sr)!==0?vt:ui)(()=>(x=!1,d()));s&&D(R);var q=S;return(function(E,b){if(arguments.length>0){const I=b?D(R):s?Le(E):E;return V(R,I),x=!0,a!==void 0&&(a=I),E}return qe&&x||(q.f&Ae)!==0?R.v:D(R)})}function Zi(e){return new Qi(e)}class Qi{#t;#e;constructor(t){var n=new Map,r=(i,a)=>{var o=hi(a,!1,!1);return n.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return D(n.get(a)??r(a,Reflect.get(i,a)))},has(i,a){return a===mn?!0:(D(n.get(a)??r(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,o){return V(n.get(a)??r(a,o),o),Reflect.set(i,a,o)}});this.#e=(t.hydrate?Fi:nr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||We(this,i,{get(){return this.#e[i]},set(a){this.#e[i]=a},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Hi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let or;typeof HTMLElement=="function"&&(or=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 s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),rt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=es(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 s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=wt(s,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=Zi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=wi(()=>{Si(()=>{this.$$r=!0;for(const r of at(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=wt(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=wt(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 at(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function wt(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function es(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ts(e,t,n,r,s,i){let a=class extends or{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return at(t).map(o=>(t[o].attribute||o).toLowerCase())}};return at(t).forEach(o=>{We(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=wt(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var h=De(u,o)?.get;h?u[o]=l:u.$set({[o]:l})}}})}),r.forEach(o=>{We(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}function ns(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}/release/release.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/page-invoice/dist/release.js"),t.document.head.appendChild(n),setTimeout(()=>{t.print(),t.close()},2e3)}function rs(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}/release/release.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/page-invoice/dist/release.js"),t.document.head.appendChild(n)}const Gt={version:"0.60.0"};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $t={exports:{}},is=$t.exports,lr;function ur(){return lr||(lr=1,(function(e,t){(function(n,r){e.exports=r()})(is,(function(){var n=1e3,r=6e4,s=36e5,i="millisecond",a="second",o="minute",l="hour",u="day",h="week",_="month",g="quarter",d="year",m="date",x="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|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,E={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(f){var c=["th","st","nd","rd"],v=f%100;return"["+f+(c[(v-20)%10]||c[v]||c[0])+"]"}},b=function(f,c,v){var y=String(f);return!y||y.length>=c?f:""+Array(c+1-y.length).join(v)+f},I={s:b,z:function(f){var c=-f.utcOffset(),v=Math.abs(c),y=Math.floor(v/60),p=v%60;return(c<=0?"+":"-")+b(y,2,"0")+":"+b(p,2,"0")},m:function f(c,v){if(c.date()<v.date())return-f(v,c);var y=12*(v.year()-c.year())+(v.month()-c.month()),p=c.clone().add(y,_),w=v-p<0,$=c.clone().add(y+(w?-1:1),_);return+(-(y+(v-p)/(w?p-$:$-p))||0)},a:function(f){return f<0?Math.ceil(f)||0:Math.floor(f)},p:function(f){return{M:_,y:d,w:h,d:u,D:m,h:l,m:o,s:a,ms:i,Q:g}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(f){return f===void 0}},G="en",K={};K[G]=E;var le="$isDayjsObject",be=function(f){return f instanceof Ne||!(!f||!f[le])},ye=function f(c,v,y){var p;if(!c)return G;if(typeof c=="string"){var w=c.toLowerCase();K[w]&&(p=w),v&&(K[w]=v,p=w);var $=c.split("-");if(!p&&$.length>1)return f($[0])}else{var N=c.name;K[N]=c,p=N}return!y&&p&&(G=p),p||!y&&G},P=function(f,c){if(be(f))return f.clone();var v=typeof c=="object"?c:{};return v.date=f,v.args=arguments,new Ne(v)},T=I;T.l=ye,T.i=be,T.w=function(f,c){return P(f,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var Ne=(function(){function f(v){this.$L=ye(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[le]=!0}var c=f.prototype;return c.parse=function(v){this.$d=(function(y){var p=y.date,w=y.utc;if(p===null)return new Date(NaN);if(T.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var $=p.match(R);if($){var N=$[2]-1||0,A=($[7]||"0").substring(0,3);return w?new Date(Date.UTC($[1],N,$[3]||1,$[4]||0,$[5]||0,$[6]||0,A)):new Date($[1],N,$[3]||1,$[4]||0,$[5]||0,$[6]||0,A)}}return new Date(p)})(v),this.init()},c.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},c.$utils=function(){return T},c.isValid=function(){return this.$d.toString()!==x},c.isSame=function(v,y){var p=P(v);return this.startOf(y)<=p&&p<=this.endOf(y)},c.isAfter=function(v,y){return P(v)<this.startOf(y)},c.isBefore=function(v,y){return this.endOf(y)<P(v)},c.$g=function(v,y,p){return T.u(v)?this[y]:this.set(p,v)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(v,y){var p=this,w=!!T.u(y)||y,$=T.p(v),N=function(he,B){var fe=T.w(p.$u?Date.UTC(p.$y,B,he):new Date(p.$y,B,he),p);return w?fe:fe.endOf(u)},A=function(he,B){return T.w(p.toDate()[he].apply(p.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(B)),p)},F=this.$W,H=this.$M,Z=this.$D,de="set"+(this.$u?"UTC":"");switch($){case d:return w?N(1,0):N(31,11);case _:return w?N(1,H):N(0,H+1);case h:var ue=this.$locale().weekStart||0,He=(F<ue?F+7:F)-ue;return N(w?Z-He:Z+(6-He),H);case u:case m:return A(de+"Hours",0);case l:return A(de+"Minutes",1);case o:return A(de+"Seconds",2);case a:return A(de+"Milliseconds",3);default:return this.clone()}},c.endOf=function(v){return this.startOf(v,!1)},c.$set=function(v,y){var p,w=T.p(v),$="set"+(this.$u?"UTC":""),N=(p={},p[u]=$+"Date",p[m]=$+"Date",p[_]=$+"Month",p[d]=$+"FullYear",p[l]=$+"Hours",p[o]=$+"Minutes",p[a]=$+"Seconds",p[i]=$+"Milliseconds",p)[w],A=w===u?this.$D+(y-this.$W):y;if(w===_||w===d){var F=this.clone().set(m,1);F.$d[N](A),F.init(),this.$d=F.set(m,Math.min(this.$D,F.daysInMonth())).$d}else N&&this.$d[N](A);return this.init(),this},c.set=function(v,y){return this.clone().$set(v,y)},c.get=function(v){return this[T.p(v)]()},c.add=function(v,y){var p,w=this;v=Number(v);var $=T.p(y),N=function(H){var Z=P(w);return T.w(Z.date(Z.date()+Math.round(H*v)),w)};if($===_)return this.set(_,this.$M+v);if($===d)return this.set(d,this.$y+v);if($===u)return N(1);if($===h)return N(7);var A=(p={},p[o]=r,p[l]=s,p[a]=n,p)[$]||1,F=this.$d.getTime()+v*A;return T.w(F,this)},c.subtract=function(v,y){return this.add(-1*v,y)},c.format=function(v){var y=this,p=this.$locale();if(!this.isValid())return p.invalidDate||x;var w=v||"YYYY-MM-DDTHH:mm:ssZ",$=T.z(this),N=this.$H,A=this.$m,F=this.$M,H=p.weekdays,Z=p.months,de=p.meridiem,ue=function(B,fe,we,et){return B&&(B[fe]||B(y,w))||we[fe].slice(0,et)},He=function(B){return T.s(N%12||12,B,"0")},he=de||function(B,fe,we){var et=B<12?"AM":"PM";return we?et.toLowerCase():et};return w.replace(q,(function(B,fe){return fe||(function(we){switch(we){case"YY":return String(y.$y).slice(-2);case"YYYY":return T.s(y.$y,4,"0");case"M":return F+1;case"MM":return T.s(F+1,2,"0");case"MMM":return ue(p.monthsShort,F,Z,3);case"MMMM":return ue(Z,F);case"D":return y.$D;case"DD":return T.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ue(p.weekdaysMin,y.$W,H,2);case"ddd":return ue(p.weekdaysShort,y.$W,H,3);case"dddd":return H[y.$W];case"H":return String(N);case"HH":return T.s(N,2,"0");case"h":return He(1);case"hh":return He(2);case"a":return he(N,A,!0);case"A":return he(N,A,!1);case"m":return String(A);case"mm":return T.s(A,2,"0");case"s":return String(y.$s);case"ss":return T.s(y.$s,2,"0");case"SSS":return T.s(y.$ms,3,"0");case"Z":return $}return null})(B)||$.replace(":","")}))},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(v,y,p){var w,$=this,N=T.p(y),A=P(v),F=(A.utcOffset()-this.utcOffset())*r,H=this-A,Z=function(){return T.m($,A)};switch(N){case d:w=Z()/12;break;case _:w=Z();break;case g:w=Z()/3;break;case h:w=(H-F)/6048e5;break;case u:w=(H-F)/864e5;break;case l:w=H/s;break;case o:w=H/r;break;case a:w=H/n;break;default:w=H}return p?w:T.a(w)},c.daysInMonth=function(){return this.endOf(_).$D},c.$locale=function(){return K[this.$L]},c.locale=function(v,y){if(!v)return this.$L;var p=this.clone(),w=ye(v,y,!0);return w&&(p.$L=w),p},c.clone=function(){return T.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},f})(),M=Ne.prototype;return P.prototype=M,[["$ms",i],["$s",a],["$m",o],["$H",l],["$W",u],["$M",_],["$y",d],["$D",m]].forEach((function(f){M[f[1]]=function(c){return this.$g(c,f[0],f[1])}})),P.extend=function(f,c){return f.$i||(f(c,Ne,P),f.$i=!0),P},P.locale=ye,P.isDayjs=be,P.unix=function(f){return P(1e3*f)},P.en=K[G],P.Ls=K,P.p={},P}))})($t)),$t.exports}var ss=ur();const as=Xt(ss);var xt={exports:{}},fr;function os(){if(fr)return xt.exports;fr=1;function e(t,n=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:s}=typeof r=="boolean"?{immediate:r}:r;let i,a,o,l,u;function h(){const d=i,m=a;return i=void 0,a=void 0,u=t.apply(d,m),u}function _(){const d=Date.now()-l;d<n&&d>=0?o=setTimeout(_,n-d):(o=void 0,s||(u=h()))}const g=function(...d){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,a=d,l=Date.now();const m=s&&!o;return o||(o=setTimeout(_,n)),m&&(u=h()),u};return Object.defineProperty(g,"isPending",{get(){return o!==void 0}}),g.clear=()=>{o&&(clearTimeout(o),o=void 0)},g.flush=()=>{o&&g.trigger()},g.trigger=()=>{u=h(),g.clear()},g}return xt.exports.debounce=e,xt.exports=e,xt.exports}var ls=os();const cr=Xt(ls);var Et={exports:{}},us=Et.exports,vr;function fs(){return vr||(vr=1,(function(e,t){(function(n,r){e.exports=r(ur())})(us,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var s=r(n),i={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 s.default.locale(i,null,!0),i}))})(Et)),Et.exports}fs();function cs(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 s=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Qe={},Kt,dr;function vs(){if(dr)return Kt;dr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
3
|
+
`,u="/",h="*",_="",g="comment",d="declaration";Kt=function(x,R){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];R=R||{};var q=1,E=1;function b(M){var f=M.match(t);f&&(q+=f.length);var c=M.lastIndexOf(l);E=~c?M.length-c:E+M.length}function I(){var M={line:q,column:E};return function(f){return f.position=new G(M),be(),f}}function G(M){this.start=M,this.end={line:q,column:E},this.source=R.source}G.prototype.content=x;function K(M){var f=new Error(R.source+":"+q+":"+E+": "+M);if(f.reason=M,f.filename=R.source,f.line=q,f.column=E,f.source=x,!R.silent)throw f}function le(M){var f=M.exec(x);if(f){var c=f[0];return b(c),x=x.slice(c.length),f}}function be(){le(n)}function ye(M){var f;for(M=M||[];f=P();)f!==!1&&M.push(f);return M}function P(){var M=I();if(!(u!=x.charAt(0)||h!=x.charAt(1))){for(var f=2;_!=x.charAt(f)&&(h!=x.charAt(f)||u!=x.charAt(f+1));)++f;if(f+=2,_===x.charAt(f-1))return K("End of comment missing");var c=x.slice(2,f-2);return E+=2,b(c),x=x.slice(f),E+=2,M({type:g,comment:c})}}function T(){var M=I(),f=le(r);if(f){if(P(),!le(s))return K("property missing ':'");var c=le(i),v=M({type:d,property:m(f[0].replace(e,_)),value:c?m(c[0].replace(e,_)):_});return le(a),v}}function Ne(){var M=[];ye(M);for(var f;f=T();)f!==!1&&(M.push(f),ye(M));return M}return be(),Ne()};function m(x){return x?x.replace(o,_):_}return Kt}var hr;function ds(){if(hr)return Qe;hr=1;var e=Qe&&Qe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=n;var t=e(vs());function n(r,s){var i=null;if(!r||typeof r!="string")return i;var a=(0,t.default)(r),o=typeof s=="function";return a.forEach(function(l){if(l.type==="declaration"){var u=l.property,h=l.value;o?s(u,h,l):h&&(i=i||{},i[u]=h)}}),i}return Qe}var hs=ds();const _r=Xt(hs);_r.default;var _s=tr('<div style="text-align:right;padding-right:60px" class="svelte-voojvn"><button class="btn btn-default svelte-voojvn"><i class="bi-printer-fill svelte-voojvn"></i></button> <button class="btn btn-default svelte-voojvn"><i class="bi-arrows-fullscreen svelte-voojvn"></i></button></div>'),ps=tr('<div id="page" class="container svelte-voojvn"><div class="row svelte-voojvn" style="margin-top:20px"><div class="col svelte-voojvn"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-voojvn"/> <span style="margin:0px 40px 0px 40px" class="svelte-voojvn"> </span></div> <div class="col svelte-voojvn"><!></div></div> <div class="row svelte-voojvn" style="margin-top:60px"><div class="col svelte-voojvn"> </div> <div class="col svelte-voojvn"></div> <div class="col svelte-voojvn"> </div></div> <div class="row svelte-voojvn" style="margin-top:40px"><div class="col svelte-voojvn"><div class="svelte-voojvn"> </div> <div class="svelte-voojvn"> </div> <div class="svelte-voojvn"> </div></div> <div class="col svelte-voojvn"><div class="svelte-voojvn"> </div> <div class="svelte-voojvn"> </div></div> <div class="col svelte-voojvn"><div class="svelte-voojvn"> </div> <div class="svelte-voojvn"> </div> <div class="svelte-voojvn"> </div></div></div> <div class="row svelte-voojvn" style="margin-top:40px"><div class="col svelte-voojvn"><hb-table></hb-table></div></div> <div class="row svelte-voojvn" style="margin-top:40px"><div class="col svelte-voojvn"><div style="width:300px;float:right" class="svelte-voojvn"><div style="text-align:left;" class="svelte-voojvn"><div style="line-height:25px" class="svelte-voojvn"><span style="display:inline-block;min-width:200px;" class="svelte-voojvn">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-voojvn"><span style="display:inline-block;min-width:200px;" class="svelte-voojvn">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-voojvn"><span style="display:inline-block;min-width:200px;" class="svelte-voojvn">Totale:</span> </div></div></div></div></div></div>',2);const ms={hash:"svelte-voojvn",code:`@charset "UTF-8";
|
|
3
4
|
@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
5
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
5
6
|
/*!
|
|
@@ -7,9 +8,9 @@ var rs=Object.defineProperty;var pn=A=>{throw TypeError(A)};var ns=(A,Y,J)=>Y in
|
|
|
7
8
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
8
9
|
* Copyright 2011-2021 Twitter, Inc.
|
|
9
10
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
10
|
-
*/:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg-rgb: 255, 255, 255;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-bg: #fff;}.svelte-
|
|
11
|
-
.svelte-
|
|
12
|
-
.svelte-
|
|
11
|
+
*/:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg-rgb: 255, 255, 255;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-bg: #fff;}.svelte-voojvn,
|
|
12
|
+
.svelte-voojvn::before,
|
|
13
|
+
.svelte-voojvn::after {box-sizing:border-box;}
|
|
13
14
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
14
15
|
}
|
|
15
16
|
@media (min-width: 1200px) {
|
|
@@ -19,16 +20,16 @@ var rs=Object.defineProperty;var pn=A=>{throw TypeError(A)};var ns=(A,Y,J)=>Y in
|
|
|
19
20
|
@media (min-width: 1200px) {
|
|
20
21
|
}
|
|
21
22
|
@media (min-width: 1200px) {
|
|
22
|
-
}img.svelte-
|
|
23
|
-
button.svelte-
|
|
23
|
+
}img.svelte-voojvn {vertical-align:middle;}button.svelte-voojvn {border-radius:0;}button.svelte-voojvn:focus:not(:focus-visible) {outline:0;}
|
|
24
|
+
button.svelte-voojvn {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button.svelte-voojvn {text-transform:none;}button.svelte-voojvn {-webkit-appearance:button;}button.svelte-voojvn:not(:disabled) {cursor:pointer;}.svelte-voojvn::-moz-focus-inner {padding:0;border-style:none;}
|
|
24
25
|
@media (min-width: 1200px) {
|
|
25
|
-
}.svelte-
|
|
26
|
-
.svelte-
|
|
27
|
-
.svelte-
|
|
28
|
-
.svelte-
|
|
29
|
-
.svelte-
|
|
30
|
-
.svelte-
|
|
31
|
-
.svelte-
|
|
26
|
+
}.svelte-voojvn::-webkit-datetime-edit-fields-wrapper,
|
|
27
|
+
.svelte-voojvn::-webkit-datetime-edit-text,
|
|
28
|
+
.svelte-voojvn::-webkit-datetime-edit-minute,
|
|
29
|
+
.svelte-voojvn::-webkit-datetime-edit-hour-field,
|
|
30
|
+
.svelte-voojvn::-webkit-datetime-edit-day-field,
|
|
31
|
+
.svelte-voojvn::-webkit-datetime-edit-month-field,
|
|
32
|
+
.svelte-voojvn::-webkit-datetime-edit-year-field {padding:0;}.svelte-voojvn::-webkit-inner-spin-button {height:auto;}
|
|
32
33
|
/* rtl:raw:
|
|
33
34
|
[type="tel"],
|
|
34
35
|
[type="url"],
|
|
@@ -36,7 +37,7 @@ button.svelte-1ozupp5 {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
36
37
|
[type="number"] {
|
|
37
38
|
direction: ltr;
|
|
38
39
|
}
|
|
39
|
-
*/.svelte-
|
|
40
|
+
*/.svelte-voojvn::-webkit-search-decoration {-webkit-appearance:none;}.svelte-voojvn::-webkit-color-swatch-wrapper {padding:0;}.svelte-voojvn::file-selector-button {font:inherit;}.svelte-voojvn::-webkit-file-upload-button {font:inherit;-webkit-appearance:button;}
|
|
40
41
|
@media (min-width: 1200px) {
|
|
41
42
|
}
|
|
42
43
|
@media (min-width: 1200px) {
|
|
@@ -48,17 +49,17 @@ button.svelte-1ozupp5 {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
48
49
|
@media (min-width: 1200px) {
|
|
49
50
|
}
|
|
50
51
|
@media (min-width: 1200px) {
|
|
51
|
-
}.container.svelte-
|
|
52
|
-
@media (min-width: 576px) { .container.svelte-
|
|
52
|
+
}.container.svelte-voojvn {width:100%;padding-right:var(--bs-gutter-x, 0.75rem);padding-left:var(--bs-gutter-x, 0.75rem);margin-right:auto;margin-left:auto;}
|
|
53
|
+
@media (min-width: 576px) { .container.svelte-voojvn {max-width:540px;}
|
|
53
54
|
}
|
|
54
|
-
@media (min-width: 768px) { .container.svelte-
|
|
55
|
+
@media (min-width: 768px) { .container.svelte-voojvn {max-width:720px;}
|
|
55
56
|
}
|
|
56
|
-
@media (min-width: 992px) { .container.svelte-
|
|
57
|
+
@media (min-width: 992px) { .container.svelte-voojvn {max-width:960px;}
|
|
57
58
|
}
|
|
58
|
-
@media (min-width: 1200px) { .container.svelte-
|
|
59
|
+
@media (min-width: 1200px) { .container.svelte-voojvn {max-width:1140px;}
|
|
59
60
|
}
|
|
60
|
-
@media (min-width: 1400px) { .container.svelte-
|
|
61
|
-
}.row.svelte-
|
|
61
|
+
@media (min-width: 1400px) { .container.svelte-voojvn {max-width:1320px;}
|
|
62
|
+
}.row.svelte-voojvn {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x));}.row.svelte-voojvn > :where(.svelte-voojvn) {flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y);}.col.svelte-voojvn {flex:1 0 0%;}
|
|
62
63
|
@media (min-width: 576px) {
|
|
63
64
|
}
|
|
64
65
|
@media (min-width: 768px) {
|
|
@@ -68,9 +69,9 @@ button.svelte-1ozupp5 {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
68
69
|
@media (min-width: 1200px) {
|
|
69
70
|
}
|
|
70
71
|
@media (min-width: 1400px) {
|
|
71
|
-
}.btn.svelte-
|
|
72
|
-
@media (prefers-reduced-motion: reduce) {.btn.svelte-
|
|
73
|
-
}.btn.svelte-
|
|
72
|
+
}.btn.svelte-voojvn {display:inline-block;font-weight:400;line-height:1.5;color:#212529;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
|
|
73
|
+
@media (prefers-reduced-motion: reduce) {.btn.svelte-voojvn {transition:none;}
|
|
74
|
+
}.btn.svelte-voojvn:hover {color:#212529;} .btn.svelte-voojvn:focus {outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);}.btn.svelte-voojvn:disabled {pointer-events:none;opacity:0.65;}
|
|
74
75
|
/* rtl:begin:remove */
|
|
75
76
|
/* rtl:end:remove */
|
|
76
77
|
@media (min-width: 576px) {
|
|
@@ -86,4 +87,13 @@ button.svelte-1ozupp5 {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
86
87
|
@media (min-width: 1200px) {
|
|
87
88
|
}
|
|
88
89
|
@media print {
|
|
89
|
-
}:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;}`};function
|
|
90
|
+
}:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;}`};function pr(e,t){yn(t,!0),Ui(e,ms);/**
|
|
91
|
+
* Svelte Invoice WebComponent
|
|
92
|
+
* =====================
|
|
93
|
+
*
|
|
94
|
+
* @contributors: Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)
|
|
95
|
+
*
|
|
96
|
+
* @license: MIT License
|
|
97
|
+
*
|
|
98
|
+
*/let n=yt(t,"id",7,""),r=yt(t,"printer",7,"no"),s=yt(t,"items",23,()=>[]),i=yt(t,"headers",7),a=ie(""),o=ie("");const l=[{key:"desc",label:"descrizione",nosort:!0},{key:"price",label:"prezzo",nosort:!0},{key:"quantity",label:"quantità",nosort:!0},{key:"subtotal",label:"subtotal",nosort:!0},{key:"vat",label:"iva",nosort:!0},{key:"total",label:"totale",nosort:!0}];let u=Ve(()=>s()?.map(b=>b.unitaryPrice*(b.quantity||1)).reduce((b,I)=>b+I,0)),h=Ve(()=>Math.round(s().map(b=>b.unitaryPrice*(b.quantity||1)*b.taxPercentage*.01).reduce((b,I)=>b+I,0)*100)/100),_=Ve(()=>D(u)+D(h)),g=Ve(()=>s().map((b,I)=>({_id:I.toString(),price:b.unitaryPrice.toString()+D(o)+" / "+(b.unit?b.unit:"unità"),desc:b.desc,quantity:b.quantity?.toString?.()||"1",subtotal:(b.unitaryPrice*(b.quantity||1)).toString()+D(o),vat:`${(Math.round(b.taxPercentage*.01*b.unitaryPrice*(b.quantity||1)*100)/100).toString()} (${b.taxPercentage}%)`,total:(b.unitaryPrice*(b.quantity||1)+Math.round(b.taxPercentage*.01*b.unitaryPrice*(b.quantity||1)*100)/100).toString()+D(o)})));Le({});let d=ie("");yi(()=>{if(r()||r("no"),typeof s()=="string"&&s(JSON.parse(s())),typeof i()=="string")switch(i(JSON.parse(i())),i().date||(i().date=new Date),i().category||(i().category="items"),i().country||(i().country="it"),i().country){case"it":V(a,"euro"),V(o,"€");break;case"eu":V(a,"euro"),V(o,"€");break;case"us":V(a,"dollar"),V(o,"$");break}}),cs({repoName:"@htmlbricks/hb-table",version:Gt.version});var m={get id(){return n()},set id(b=""){n(b),tt()},get printer(){return r()},set printer(b="no"){r(b),tt()},get items(){return s()},set items(b=[]){s(b),tt()},get headers(){return i()},set headers(b){i(b),tt()}},x=Li(),R=_i(x);{var q=b=>{var I=ps(),G=O(I),K=O(G),le=O(K),be=Y(le,2),ye=O(be,!0);k(be),k(K);var P=Y(K,2),T=O(P);{var Ne=st=>{var nn=_s(),Er=O(nn),xs=Ve(()=>cr(()=>ns({headers:i(),items:s(),version:Gt.version}),200));Er.__click=function(...rn){D(xs)?.apply(this,rn)};var Es=Y(Er,2),Ss=Ve(()=>cr(()=>rs({headers:i(),items:s(),version:Gt.version}),200));Es.__click=function(...rn){D(Ss)?.apply(this,rn)},k(nn),rt(st,nn)};ir(T,st=>{r()!=="yes"&&st(Ne)})}k(P),k(G);var M=Y(G,2),f=O(M),c=O(f);k(f);var v=Y(f,4),y=O(v);k(v),k(M);var p=Y(M,2),w=O(p),$=O(w),N=O($,!0);k($);var A=Y($,2),F=O(A,!0);k(A);var H=Y(A,2),Z=O(H,!0);k(H),k(w);var de=Y(w,2),ue=O(de),He=O(ue,!0);k(ue);var he=Y(ue,2),B=O(he,!0);k(he),k(de);var fe=Y(de,2),we=O(fe),et=O(we,!0);k(we);var Zt=Y(we,2),gs=O(Zt,!0);k(Zt);var mr=Y(Zt,2),bs=O(mr,!0);k(mr),k(fe),k(p);var Qt=Y(p,2),gr=O(Qt),it=O(gr);Vi(it,D(d)),Vt(it,"disablepagination","yes"),Ut(()=>Vt(it,"rows",JSON.stringify(D(g)))),Ut(()=>Vt(it,"headers",JSON.stringify(l))),zi(it,1,"svelte-voojvn"),k(gr),k(Qt);var br=Y(Qt,2),yr=O(br),wr=O(yr),$r=O(wr),en=O($r),ys=Y(O(en));k(en);var tn=Y(en,2),ws=Y(O(tn));k(tn);var xr=Y(tn,2),$s=Y(O(xr));k(xr),k($r),k(wr),k(yr),k(br),k(I),Ut(st=>{sr(le,"src",i().from.logo),X(ye,i().from.shortName),X(c,`Data: ${st??""}`),X(y,`Fattura numero: ${i().serial??""}`),X(N,i().from.name),X(F,i().from.address),X(Z,i().from.piva),X(He,i().from.email),X(B,i().from.phone),X(et,i().to.name),X(gs,i().to.address),X(bs,i().to.piva),X(ys,` ${D(u)??""}${D(o)??""}`),X(ws,` ${D(h)??""}${D(o)??""}`),X($s,` ${D(_)??""}${D(o)??""}`)},[()=>as(i().date).format("DD/MM/YY")]),rt(b,I)},E=b=>{var I=Ii("error");rt(b,I)};ir(R,b=>{i()?.from&&i().to?b(q):b(E,!1)})}return rt(e,x),wn(m)}Pi(["click"]),customElements.define("hb-page-invoice",ts(pr,{id:{},printer:{},items:{},headers:{}},[],[],!0)),sn.Component=pr,Object.defineProperty(sn,Symbol.toStringTag,{value:"Module"})})(this["page-invoice"]=this["page-invoice"]||{});
|
|
99
|
+
//# sourceMappingURL=main.iife.js.map
|