@htmlbricks/hb-page-invoice 0.66.11 → 0.66.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e));typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var u={},d=Symbol(),f=`http://www.w3.org/1999/xhtml`,p=Array.isArray,m=Array.prototype.indexOf,h=Array.prototype.includes,g=Array.from,_=Object.keys,v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyDescriptors,ee=Object.prototype,te=Array.prototype,ne=Object.getPrototypeOf,x=Object.isExtensible,S=()=>{};function re(e){for(var t=0;t<e.length;t++)e[t]()}function ie(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var C=1024,w=2048,ae=4096,oe=8192,se=16384,ce=32768,le=1<<25,ue=65536,de=1<<19,fe=1<<20,pe=65536,me=1<<21,he=1<<22,ge=1<<23,_e=Symbol(`$state`),ve=Symbol(`legacy props`),ye=Symbol(``),T=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},be=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function xe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Se(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ce(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function we(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Te(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ee(){throw Error(`https://svelte.dev/e/hydration_failed`)}function De(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Oe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function ke(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ae(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function je(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Me(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ne(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function Pe(e){E=e}var D;function O(e){if(e===null)throw Me(),u;return D=e}function Fe(){return O(rn(D))}function k(e){if(E){if(rn(D)!==null)throw Me(),u;D=e}}function Ie(e=1){if(E){for(var t=e,n=D;t--;)n=rn(n);D=n}}function Le(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=rn(n);e&&n.remove(),n=i}}function Re(e){if(!e||e.nodeType!==8)throw Me(),u;return e.data}function ze(e){return e===this.v}function Be(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ve(e){return!Be(e,this.v)}var He=!1,Ue=!1,A=null;function We(e){A=e}function Ge(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,r:K,l:Ue&&!t?{s:null,u:null,$:[]}:null}}function Ke(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var r of n)gn(r)}return e!==void 0&&(t.x=e),t.i=!0,A=t.p,e??{}}function qe(){return!Ue||A!==null&&A.l===null}var Je=[];function Ye(){var e=Je;Je=[],re(e)}function Xe(e){if(Je.length===0&&!ct){var t=Je;queueMicrotask(()=>{t===Je&&Ye()})}Je.push(e)}function Ze(){for(;Je.length>0;)Ye()}function Qe(e){var t=K;if(t===null)return U.f|=ge,e;if(!(t.f&32768)&&!(t.f&4))throw e;$e(e,t)}function $e(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var et=~(w|ae|C);function j(e,t){e.f=e.f&et|t}function tt(e){e.f&512||e.deps===null?j(e,C):j(e,ae)}function nt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=pe,nt(t.deps))}function rt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),nt(e.deps),j(e,C)}var it=!1,at=!1;function ot(e){var t=at;try{return at=!1,[e(),at]}finally{at=t}}var M=new Set,N=null,P=null,st=null,ct=!1,lt=!1,ut=null,dt=null,ft=0,pt=1,mt=class e{id=pt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)j(n,w),this.schedule(n);for(n of t.m)j(n,ae),this.schedule(n)}}#p(){if(ft++>1e3&&(M.delete(this),gt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),j(e,w),this.schedule(e);for(let e of this.#s)j(e,ae),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=ut=[],r=[],i=dt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw St(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(ut=null,dt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)xt(e,t)}else{this.#n.size===0&&M.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),_t(r),_t(n),this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(M.add(o),o.#p()),M.has(this)||this.#g()}#m(e,t,n){e.f^=C;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=C:i&4?t.push(r):He&&i&16777224?n.push(r):Kn(r)&&(i&16&&this.#s.add(r),Zn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)rt(e[t],this.#o,this.#s)}capture(e,t,n=!1){t!==d&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,n]),P?.set(e,e.v))}activate(){N=this}deactivate(){N=null,P=null}flush(){try{lt=!0,N=this,this.#p()}finally{ft=0,st=null,ut=null,dt=null,lt=!1,N=null,P=null,Ht.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),M.delete(this)}#g(){for(let c of M){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)vt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of M)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Xe(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=ie()).promise}static ensure(){if(N===null){let t=N=new e;lt||(M.add(N),ct||Xe(()=>{N===t&&t.flush()}))}return N}apply(){if(!He||!this.is_fork&&M.size===1){P=null;return}P=new Map;for(let[e,[t]]of this.current)P.set(e,t);for(let n of M)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)P.has(e)||P.set(e,t)}}schedule(e){if(st=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(ut!==null&&t===K&&(He||(U===null||!(U.f&2))&&!it))return;if(n&96){if(!(n&1024))return;t.f^=C}}this.#a.push(t)}};function ht(e){var t=ct;ct=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(Ze(),N===null)return n;N.flush()}}finally{ct=t}}function gt(){try{Te()}catch(e){$e(e,st)}}var F=null;function _t(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Kn(r)&&(F=new Set,Zn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&kn(r),F?.size>0)){Ht.clear();for(let e of F){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)F.has(n)&&(F.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Zn(n)}}F.clear()}}F=null}}function vt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?vt(i,t,n,r):e&4194320&&!(e&2048)&&yt(i,t,r)&&(j(i,w),bt(i))}}function yt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(h.call(t,r))return!0;if(r.f&2&&yt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function bt(e){N.schedule(e)}function xt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,C);for(var n=e.first;n!==null;)xt(n,t),n=n.next}}function St(e){j(e,C);for(var t=e.first;t!==null;)St(t),t=t.next}function Ct(e){let t=0,n=Wt(0),r;return()=>{pn()&&(Q(n),xn(()=>(t===0&&(r=er(()=>e(()=>Jt(n)))),t+=1,()=>{Xe(()=>{--t,t===0&&(r?.(),r=void 0,Jt(n))})})))}}var wt=ue|de;function Tt(e,t,n,r){new Et(e,t,n,r)}var Et=class{parent;is_pending=!1;transform_error;#e;#t=E?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Ct(()=>(this.#m=Wt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Cn(()=>{if(E){let e=this.#t;Fe();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},wt),E&&(this.#e=D)}#g(){try{this.#a=wn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=wn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=wn(()=>e(this.#e)),Xe(()=>{var e=this.#c=document.createDocumentFragment(),t=R();e.append(t),this.#a=this.#x(()=>wn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,An(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=wn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Pn(this.#a,e);let t=this.#n.pending;this.#o=wn(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){rt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=A;q(this.#i),G(this.#i),We(this.#i.ctx);try{return mt.ensure(),e()}catch(e){return Qe(e),null}finally{q(t),G(n),We(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&An(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Xe(()=>{this.#d=!1,this.#m&&Kt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),E&&(O(this.#t),Ie(),O(Le()));var r=!1,i=!1;let a=()=>{if(r){Ne();return}r=!0,i&&je(),this.#s!==null&&An(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){$e(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return wn(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return $e(e,this.#i.parent),null}}))};Xe(()=>{var t;try{t=this.transform_error(e)}catch(e){$e(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>$e(e,this.#i&&this.#i.parent)):o(t)})}};function Dt(e,t,n,r){let i=qe()?jt:Pt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=Ot(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||$e(e,o)}kt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=At();function d(){Promise.all(n.map(e=>Mt(e))).then(e=>l([...t.map(i),...e])).catch(e=>$e(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),kt()}):d()}function Ot(){var e=K,t=U,n=A,r=N;return function(i=!0){q(e),G(t),We(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function kt(e=!0){q(null),G(null),We(null),e&&N?.deactivate()}function At(){var e=K,t=e.b,n=N,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function jt(e){var t=2|w,n=U!==null&&U.f&2?U:null;return K!==null&&(K.f|=de),{ctx:A,deps:null,effects:null,equals:ze,f:t,fn:e,reactions:null,rv:0,v:d,wv:0,parent:n??K,ac:null}}function Mt(e,t,n){let r=K;r===null&&xe();var i=void 0,a=Wt(d),o=!U,s=new Map;return bn(()=>{var t=K,n=ie();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(kt)}catch(e){n.reject(e),kt()}var c=N;if(o){if(t.f&32768)var l=At();if(r.b.is_rendered())s.get(c)?.reject(T),s.delete(c);else{for(let e of s.values())e.reject(T);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===T),!(n===T||t.f&16384)){if(c.activate(),n)a.f|=ge,Kt(a,n);else{a.f&8388608&&(a.f^=ge),Kt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(T)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),mn(()=>{for(let e of s.values())e.reject(T)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Nt(e){let t=jt(e);return He||zn(t),t}function Pt(e){let t=jt(e);return t.equals=Ve,t}function Ft(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function It(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Lt(e){var t,n=K;q(It(e));try{e.f&=~pe,Ft(e),t=Jn(e)}finally{q(n)}return t}function Rt(e){var t=e.v,n=Lt(e);if(!e.equals(n)&&(e.wv=Gn(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t,!0),e.deps===null))){j(e,C);return}Ln||(P===null?tt(e):(pn()||N?.is_fork)&&P.set(e,n))}function zt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(T),t.teardown=S,t.ac=null,Xn(t,0),En(t))}function Bt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Zn(t)}var Vt=new Set,Ht=new Map,Ut=!1;function Wt(e,t){return{f:0,v:e,reactions:null,equals:ze,rv:0,wv:0}}function I(e,t){let n=Wt(e,t);return zn(n),n}function Gt(e,t=!1,n=!0){let r=Wt(e);return t||(r.equals=Ve),Ue&&n&&A!==null&&A.l!==null&&(A.l.s??=[]).push(r),r}function L(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&qe()&&U.f&4325394&&(J===null||!h.call(J,e))&&Ae(),Kt(e,n?Xt(t):t,dt)}function Kt(e,t,n=null){if(!e.equals(t)){var r=e.v;Ln?Ht.set(e,t):Ht.set(e,r),e.v=t;var i=mt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Lt(t),P===null&&tt(t)}e.wv=Gn(),Yt(e,w,n),qe()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?Bn([e]):Z.push(e)),!i.is_fork&&Vt.size>0&&!Ut&&qt()}return t}function qt(){Ut=!1;for(let e of Vt)e.f&1024&&j(e,ae),Kn(e)&&Zn(e);Vt.clear()}function Jt(e){L(e,e.v+1)}function Yt(e,t,n){var r=e.reactions;if(r!==null)for(var i=qe(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&w)===0;if(l&&j(s,t),c&2){var u=s;P?.delete(u),c&65536||(c&512&&(s.f|=pe),Yt(u,ae,n))}else if(l){var d=s;c&16&&F!==null&&F.add(d),n===null?bt(d):n.push(d)}}}}function Xt(e){if(typeof e!=`object`||!e||_e in e)return e;let t=ne(e);if(t!==ee&&t!==te)return e;var n=new Map,r=p(e),i=I(0),a=null,o=Un,s=e=>{if(Un===o)return e();var t=U,n=Un;G(null),Wn(o);var r=e();return G(t),Wn(n),r};return r&&n.set(`length`,I(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Oe();var i=n.get(t);return i===void 0?s(()=>{var e=I(r.value,a);return n.set(t,e),e}):L(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>I(d,a));n.set(t,e),Jt(i)}}else L(r,d),Jt(i);return!0},get(t,r,i){if(r===_e)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||y(t,r)?.writable)&&(o=s(()=>I(Xt(c?t[r]:d),a)),n.set(r,o)),o!==void 0){var l=Q(o);return l===d?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Q(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==d)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===_e)return!0;var r=n.get(t),i=r!==void 0&&r.v!==d||Reflect.has(e,t);return(r!==void 0||K!==null&&(!i||y(e,t)?.writable))&&(r===void 0&&(r=s(()=>I(i?Xt(e[t]):d,a)),n.set(t,r)),Q(r)===d)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var f=o;f<l.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=s(()=>I(d,a)),n.set(f+``,p)):L(p,d)}if(l===void 0)(!u||y(e,t)?.writable)&&(l=s(()=>I(void 0,a)),L(l,Xt(o)),n.set(t,l));else{u=l.v!==d;var m=s(()=>Xt(o));L(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&L(g,_+1)}Jt(i)}return!0},ownKeys(e){Q(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==d});for(var[r,a]of n)a.v!==d&&!(r in e)&&t.push(r);return t},setPrototypeOf(){ke()}})}var Zt,Qt,$t,en;function tn(){if(Zt===void 0){Zt=window,Qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;$t=y(t,`firstChild`).get,en=y(t,`nextSibling`).get,x(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),x(n)&&(n.__t=void 0)}}function R(e=``){return document.createTextNode(e)}function nn(e){return $t.call(e)}function rn(e){return en.call(e)}function z(e,t){if(!E)return nn(e);var n=nn(D);if(n===null)n=D.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),O(r),r}return t&&ln(n),O(n),n}function an(e,t=!1){if(!E){var n=nn(e);return n instanceof Comment&&n.data===``?rn(n):n}if(t){if(D?.nodeType!==3){var r=R();return D?.before(r),O(r),r}ln(D)}return D}function B(e,t=1,n=!1){let r=E?D:e;for(var i;t--;)i=r,r=rn(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=R();return r===null?i?.after(a):r.before(a),O(a),a}ln(r)}return O(r),r}function on(e){e.textContent=``}function sn(){return!He||F!==null?!1:(K.f&ce)!==0}function cn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function ln(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function un(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function dn(e){K===null&&(U===null&&we(e),Ce()),Ln&&Se(e)}function fn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=K;n!==null&&n.f&8192&&(e|=oe);var r={ctx:A,deps:null,nodes:null,f:e|w|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)ut===null?mt.ensure().schedule(r):ut.push(r);else if(t!==null){try{Zn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ue))}if(i!==null&&(i.parent=n,n!==null&&fn(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function pn(){return U!==null&&!W}function mn(e){let t=V(8,null);return j(t,C),t.teardown=e,t}function hn(e){dn(`$effect`);var t=K.f;if(!U&&t&32&&!(t&32768)){var n=A;(n.e??=[]).push(e)}else return gn(e)}function gn(e){return V(4|fe,e)}function _n(e){mt.ensure();let t=V(64|de,e);return()=>{H(t)}}function vn(e){mt.ensure();let t=V(64|de,e);return(e={})=>new Promise(n=>{e.outro?An(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function yn(e){return V(4,e)}function bn(e){return V(he|de,e)}function xn(e,t=0){return V(8|t,e)}function Sn(e,t=[],n=[],r=[]){Dt(r,t,n,t=>{V(8,()=>e(...t.map(Q)))})}function Cn(e,t=0){return V(16|t,e)}function wn(e){return V(32|de,e)}function Tn(e){var t=e.teardown;if(t!==null){let e=Ln,n=U;Rn(!0),G(null);try{t.call(null)}finally{Rn(e),G(n)}}}function En(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&un(()=>{e.abort(T)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function Dn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(On(e.nodes.start,e.nodes.end),n=!0),j(e,le),En(e,t&&!n),Xn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Tn(e),e.f^=le,e.f|=se;var i=e.parent;i!==null&&i.first!==null&&kn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function On(e,t){for(;e!==null;){var n=e===t?null:rn(e);e.remove(),e=n}}function kn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function An(e,t,n=!0){var r=[];jn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function jn(e,t,n){if(!(e.f&8192)){e.f^=oe;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;jn(i,t,o?n:!1),i=a}}}function Mn(e){Nn(e,!0)}function Nn(e,t){if(e.f&8192){e.f^=oe,e.f&1024||(j(e,w),mt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Nn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Pn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:rn(n);t.append(n),n=i}}var Fn=null,In=!1,Ln=!1;function Rn(e){Ln=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function zn(e){U!==null&&(!He||U.f&2)&&(J===null?J=[e]:J.push(e))}var Y=null,X=0,Z=null;function Bn(e){Z=e}var Vn=1,Hn=0,Un=Hn;function Wn(e){Un=e}function Gn(){return++Vn}function Kn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~pe),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Kn(a)&&Rt(a),a.wv>e.wv)return!0}t&512&&P===null&&j(e,C)}return!1}function qn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!He&&J!==null&&h.call(J,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?qn(a,t,!1):t===a&&(n?j(a,w):a.f&1024&&j(a,ae),bt(a))}}function Jn(e){var t=Y,n=X,r=Z,i=U,a=J,o=A,s=W,c=Un,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,We(e.ctx),W=!1,Un=++Hn,e.ac!==null&&(un(()=>{e.ac.abort(T)}),e.ac=null);try{e.f|=me;var u=e.fn,d=u();e.f|=ce;var f=e.deps,p=N?.is_fork;if(Y!==null){var m;if(p||Xn(e,X),f!==null&&X>0)for(f.length=X+Y.length,m=0;m<Y.length;m++)f[X+m]=Y[m];else e.deps=f=Y;if(pn()&&e.f&512)for(m=X;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&X<f.length&&(Xn(e,X),f.length=X);if(qe()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<Z.length;m++)qn(Z[m],e);if(i!==null&&i!==e){if(Hn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Hn;if(t!==null)for(let e of t)e.rv=Hn;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=ge),d}catch(e){return Qe(e)}finally{e.f^=me,Y=t,X=n,Z=r,U=i,J=a,We(o),W=s,Un=c}}function Yn(e,t){let n=t.reactions;if(n!==null){var r=m.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Y===null||!h.call(Y,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~pe),tt(a),zt(a),Xn(a,0)}}function Xn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Yn(e,n[r])}function Zn(e){var t=e.f;if(!(t&16384)){j(e,C);var n=K,r=In;K=e,In=!0;try{t&16777232?Dn(e):En(e),Tn(e);var i=Jn(e);e.teardown=typeof i==`function`?i:null,e.wv=Vn}finally{In=r,K=n}}}function Q(e){var t=(e.f&2)!=0;if(Fn?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!h.call(J,e))){var n=U.deps;if(U.f&2097152)e.rv<Hn&&(e.rv=Hn,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:h.call(r,U)||r.push(U)}}if(Ln&&Ht.has(e))return Ht.get(e);if(t){var i=e;if(Ln){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||$n(i))&&(a=Lt(i)),Ht.set(i,a),a}var o=(i.f&512)==0&&!W&&U!==null&&(In||(U.f&512)!=0),s=(i.f&ce)===0;Kn(i)&&(o&&(i.f|=512),Rt(i)),o&&!s&&(Bt(i),Qn(i))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function Qn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Bt(t),Qn(t))}function $n(e){if(e.v===d)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Ht.has(t)||t.f&2&&$n(t))return!0;return!1}function er(e){var t=W;try{return W=!0,e()}finally{W=t}}var tr=Symbol(`events`),nr=new Set,rr=new Set;function ir(e,t,n){(t[tr]??={})[e]=n}function ar(e){for(var t=0;t<e.length;t++)nr.add(e[t]);for(var n of rr)n(e)}var or=null;function sr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;or=e;var o=0,s=or===e&&e[tr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[tr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){v(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=U,d=K;G(null),q(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[tr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[tr]=t,delete e.currentTarget,G(u),q(d)}}}var cr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function lr(e){return cr?.createHTML(e)??e}function ur(e){var t=cn(`template`);return t.innerHTML=lr(e.replaceAll(`<!>`,`<!---->`)),t.content}function dr(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function fr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(E)return dr(D,null),D;i===void 0&&(i=ur(a?e:`<!>`+e),n||(i=nn(i)));var t=r||Qt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=nn(t),s=t.lastChild;dr(o,s)}else dr(t,t);return t}}function pr(e=``){if(!E){var t=R(e+``);return dr(t,t),t}var n=D;return n.nodeType===3?ln(n):(n.before(n=R()),O(n)),dr(n,n),n}function mr(){if(E)return dr(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=R();return e.append(t,n),dr(t,n),e}function hr(e,t){if(E){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),Fe();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var gr=[`touchstart`,`touchmove`];function _r(e){return gr.includes(e)}function $(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function vr(e,t){return xr(e,t)}function yr(e,t){tn(),t.intro=t.intro??!1;let n=t.target,r=E,i=D;try{for(var a=nn(n);a&&(a.nodeType!==8||a.data!==`[`);)a=rn(a);if(!a)throw u;Pe(!0),O(a);let r=xr(e,{...t,anchor:a});return Pe(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
2
  `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==u&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Ee(),tn(),on(n),Pe(!1),vr(e,t)}finally{Pe(r),O(i)}}var br=new Map;function xr(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){tn();var c=void 0,l=vn(()=>{var o=n??t.appendChild(R());Tt(o,{pending:()=>{}},t=>{Ge({});var n=A;if(a&&(n.c=a),i&&(r.$$events=i),E&&dr(t,null),c=e(t,r)||{},E&&(K.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Me(),u;Ke()},s);var l=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=_r(r);for(let e of[t,document]){var a=br.get(e);a===void 0&&(a=new Map,br.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,sr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(g(nr)),rr.add(d),()=>{for(var e of l)for(let n of[t,document]){var r=br.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,sr),r.delete(e),r.size===0&&br.delete(n)):r.set(e,i)}rr.delete(d),o!==n&&o.parentNode?.removeChild(o)}});return Sr.set(c,l),c}var Sr=new WeakMap;function Cr(e,t){let n=Sr.get(e);return n?(Sr.delete(e),n(t)):Promise.resolve()}var wr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Mn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Pn(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),An(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=sn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:wn(()=>t(a)),fragment:i})}else this.#t.set(e,wn(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=D),this.#a(n)}};function Tr(e,t,n=!1){var r;E&&(r=D,Fe());var i=new wr(e),a=n?ue:0;function o(e,t){if(E){var n=Re(r);if(e!==parseInt(n.substring(1))){var a=Le();O(a),i.anchor=a,Pe(!1),i.ensure(e,t),Pe(!0);return}}i.ensure(e,t)}Cn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Er(e,t){yn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=cn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Dr=[...`
3
- \r\f\xA0\v`];function Or(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Dr.includes(r[o-1]))&&(s===r.length||Dr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function kr(e,t,n,r,i,a){var o=e.__className;if(E||o!==n||o===void 0){var s=Or(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Ar=Symbol(`is custom element`),jr=Symbol(`is html`),Mr=be?`link`:`LINK`;function Nr(e,t,n,r){var i=Fr(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Mr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ye]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Lr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Pr(e,t,n){var r=U,i=K;let a=E;E&&Pe(!1),G(null),q(null);try{t!==`style`&&(Ir.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Lr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Nr(e,t,n==null?n:String(n))}finally{G(r),q(i),a&&Pe(!0)}}function Fr(e){return e.__attributes??={[Ar]:e.nodeName.includes(`-`),[jr]:e.namespaceURI===f}}var Ir=new Map;function Lr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ir.get(t);if(n)return n;Ir.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=b(i),r)r[o].set&&n.push(o);i=ne(i)}return n}function Rr(e,t,n,r){var i=!Ue||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?er(r):r),s);let u;if(a){var d=_e in e||ve in e;u=y(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=ot(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&De(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?jt:Pt)(()=>(g=!1,m()));a&&Q(_);var v=K;return(function(e,t){if(arguments.length>0){let n=t?Q(_):i&&a?Xt(e):e;return L(_,n),g=!0,s!==void 0&&(s=n),e}return Ln&&g||v.f&16384?_.v:Q(_)})}function zr(e){return new Br(e)}var Br=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Gt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ve?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?yr:vr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!He&&(!e?.props?.$$host||e.sync===!1)&&ht(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||v(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Cr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Vr;typeof HTMLElement==`function`&&(Vr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=cn(`slot`);e!==`default`&&(n.name=e),hr(t,n)}}let t={},n=Ur(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Hr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=zr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_n(()=>{xn(()=>{this.$$r=!0;for(let e of _(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Hr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Hr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return _(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Hr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Ur(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Wr(e,t,n,r,i,a){let o=class extends Vr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return _(t).map(e=>(t[e].attribute||e).toLowerCase())}};return _(t).forEach(e=>{v(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Hr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(y(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{v(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function Gr(e){let 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>`);let n=document.createElement(`script`);n.id=`hb-page-invoice-script`,n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes(`localhost`)&&(n.src=`http://localhost:6006/webcomponents/page-invoice/main.iife.js`),t.document.head.appendChild(n),setTimeout(()=>{t.print(),t.close()},2e3)}function Kr(e){let 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>`);let n=document.createElement(`script`);n.id=`hb-page-invoice-script`,n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes(`localhost`)&&(n.src=`http://localhost:6006/webcomponents/page-invoice/main.iife.js`),t.document.head.appendChild(n)}var qr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.11`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}},Jr=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var ee=`$isDayjsObject`,te=function(e){return e instanceof re||!(!e||!e[ee])},ne=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},x=function(e,t){if(te(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new re(n)},S=v;S.l=ne,S.i=te,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var re=function(){function g(e){this.$L=ne(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[ee]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return x(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<x(e)},_.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!S.u(t)||t,u=S.p(e),p=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return S.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=S.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[S.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=S.p(u),h=function(e){var t=x(p);return S.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return S.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=S.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return S.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return S.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return S.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return S.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return S.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return S.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return S.s(t.$s,2,`0`);case`SSS`:return S.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=S.p(f),_=x(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return S.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:S.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=ne(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return S.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ie=re.prototype;return x.prototype=ie,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ie[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||=(e(t,re,x),!0),x},x.locale=ne,x.isDayjs=te,x.unix=function(e){return x(1e3*e)},x.en=b[y],x.Ls=b,x.p={},x}))})),Yr=l(Jr());function Xr(e,t=100,n={}){if(typeof e!=`function`)throw TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");if(typeof n==`boolean`)throw TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");let{immediate:r}=n,i,a,o,s,c;function l(){let t=i,n=a;return i=void 0,a=void 0,c=e.apply(t,n),c}function u(){let e=Date.now()-s;e<t&&e>=0?o=setTimeout(u,t-e):(o=void 0,r||(c=l()))}let d=function(...e){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw Error(`Debounced method called with different contexts of the same prototype.`);i=this,a=e,s=Date.now();let n=r&&!o;if(o||=setTimeout(u,t),n)return c=l(),c};return Object.defineProperty(d,`isPending`,{get(){return o!==void 0}}),d.clear=()=>{o&&(clearTimeout(o),o=void 0,i=void 0,a=void 0)},d.flush=()=>{o&&d.trigger()},d.trigger=()=>{c=l(),d.clear()},d}s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(Jr()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={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(e){return e+`º`}};return n.default.locale(r,null,!0),r}))}))();function Zr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Qr=fr(`<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>`),$r=fr(`<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),ei={hash:`svelte-1694i3h`,code:`@charset "UTF-8";
3
+ \r\f\xA0\v`];function Or(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Dr.includes(r[o-1]))&&(s===r.length||Dr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function kr(e,t,n,r,i,a){var o=e.__className;if(E||o!==n||o===void 0){var s=Or(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Ar=Symbol(`is custom element`),jr=Symbol(`is html`),Mr=be?`link`:`LINK`;function Nr(e,t,n,r){var i=Fr(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Mr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ye]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Lr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Pr(e,t,n){var r=U,i=K;let a=E;E&&Pe(!1),G(null),q(null);try{t!==`style`&&(Ir.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Lr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Nr(e,t,n==null?n:String(n))}finally{G(r),q(i),a&&Pe(!0)}}function Fr(e){return e.__attributes??={[Ar]:e.nodeName.includes(`-`),[jr]:e.namespaceURI===f}}var Ir=new Map;function Lr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ir.get(t);if(n)return n;Ir.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=b(i),r)r[o].set&&n.push(o);i=ne(i)}return n}function Rr(e,t,n,r){var i=!Ue||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?er(r):r),s);let u;if(a){var d=_e in e||ve in e;u=y(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=ot(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&De(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?jt:Pt)(()=>(g=!1,m()));a&&Q(_);var v=K;return(function(e,t){if(arguments.length>0){let n=t?Q(_):i&&a?Xt(e):e;return L(_,n),g=!0,s!==void 0&&(s=n),e}return Ln&&g||v.f&16384?_.v:Q(_)})}function zr(e){return new Br(e)}var Br=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Gt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ve?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?yr:vr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!He&&(!e?.props?.$$host||e.sync===!1)&&ht(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||v(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Cr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Vr;typeof HTMLElement==`function`&&(Vr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=cn(`slot`);e!==`default`&&(n.name=e),hr(t,n)}}let t={},n=Ur(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Hr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=zr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_n(()=>{xn(()=>{this.$$r=!0;for(let e of _(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Hr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Hr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return _(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Hr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Ur(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Wr(e,t,n,r,i,a){let o=class extends Vr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return _(t).map(e=>(t[e].attribute||e).toLowerCase())}};return _(t).forEach(e=>{v(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Hr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(y(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{v(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function Gr(e){let 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>`);let n=document.createElement(`script`);n.id=`hb-page-invoice-script`,n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes(`localhost`)&&(n.src=`http://localhost:6006/webcomponents/page-invoice/main.iife.js`),t.document.head.appendChild(n),setTimeout(()=>{t.print(),t.close()},2e3)}function Kr(e){let 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>`);let n=document.createElement(`script`);n.id=`hb-page-invoice-script`,n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes(`localhost`)&&(n.src=`http://localhost:6006/webcomponents/page-invoice/main.iife.js`),t.document.head.appendChild(n)}var qr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.13`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}},Jr=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var ee=`$isDayjsObject`,te=function(e){return e instanceof re||!(!e||!e[ee])},ne=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},x=function(e,t){if(te(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new re(n)},S=v;S.l=ne,S.i=te,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var re=function(){function g(e){this.$L=ne(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[ee]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return x(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<x(e)},_.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!S.u(t)||t,u=S.p(e),p=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return S.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=S.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[S.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=S.p(u),h=function(e){var t=x(p);return S.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return S.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=S.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return S.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return S.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return S.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return S.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return S.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return S.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return S.s(t.$s,2,`0`);case`SSS`:return S.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=S.p(f),_=x(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return S.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:S.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=ne(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return S.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ie=re.prototype;return x.prototype=ie,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ie[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||=(e(t,re,x),!0),x},x.locale=ne,x.isDayjs=te,x.unix=function(e){return x(1e3*e)},x.en=b[y],x.Ls=b,x.p={},x}))})),Yr=l(Jr());function Xr(e,t=100,n={}){if(typeof e!=`function`)throw TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");if(typeof n==`boolean`)throw TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");let{immediate:r}=n,i,a,o,s,c;function l(){let t=i,n=a;return i=void 0,a=void 0,c=e.apply(t,n),c}function u(){let e=Date.now()-s;e<t&&e>=0?o=setTimeout(u,t-e):(o=void 0,r||(c=l()))}let d=function(...e){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw Error(`Debounced method called with different contexts of the same prototype.`);i=this,a=e,s=Date.now();let n=r&&!o;if(o||=setTimeout(u,t),n)return c=l(),c};return Object.defineProperty(d,`isPending`,{get(){return o!==void 0}}),d.clear=()=>{o&&(clearTimeout(o),o=void 0,i=void 0,a=void 0)},d.flush=()=>{o&&d.trigger()},d.trigger=()=>{c=l(),d.clear()},d}s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(Jr()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={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(e){return e+`º`}};return n.default.locale(r,null,!0),r}))}))();function Zr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Qr=fr(`<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>`),$r=fr(`<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),ei={hash:`svelte-1694i3h`,code:`@charset "UTF-8";
4
4
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
5
5
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
6
6
  /*!