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