@htmlbricks/hb-layout 0.66.4 → 0.66.5

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,3 +1,3 @@
1
1
  (function(cn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Er=1,$r=2,kr=16,Tr=1,Sr=2,dn="[",Pt="[!",hn="[?",Ft="]",Ge={},I=Symbol(),vn="http://www.w3.org/1999/xhtml",Ar=!1;var _n=Array.isArray,Cr=Array.prototype.indexOf,Ke=Array.prototype.includes,mt=Array.from,wt=Object.keys,yt=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,xr=Object.getOwnPropertyDescriptors,Nr=Object.prototype,Rr=Array.prototype,pn=Object.getPrototypeOf,gn=Object.isExtensible;const Or=()=>{};function Mr(e){for(var t=0;t<e.length;t++)e[t]()}function mn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const D=2,at=4,bt=8,wn=1<<24,Te=16,ce=32,Se=64,jt=128,Z=512,O=1024,L=2048,de=4096,q=8192,Q=16384,Pe=32768,yn=1<<25,Xe=65536,bn=1<<17,En=1<<18,Ae=1<<19,Dr=1<<20,ge=1<<25,Fe=65536,Ht=1<<21,zt=1<<22,Ce=1<<23,Bt=Symbol("$state"),Ir=Symbol("legacy props"),Lr=Symbol(""),me=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Pr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Et=3,Ze=8;function Fr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Hr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Br(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Vr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function $t(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ur(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let k=!1;function V(e){k=e}let y;function F(e){if(e===null)throw $t(),Ge;return y=e}function ot(){return F(ee(y))}function he(e){if(k){if(ee(y)!==null)throw $t(),Ge;y=e}}function Wr(e=1){if(k){for(var t=e,n=y;t--;)n=ee(n);y=n}}function kt(e=!0){for(var t=0,n=y;;){if(n.nodeType===Ze){var r=n.data;if(r===Ft){if(t===0)return n;t-=1}else(r===dn||r===Pt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ee(n);e&&n.remove(),n=i}}function $n(e){if(!e||e.nodeType!==Ze)throw $t(),Ge;return e.data}function kn(e){return e===this.v}function Gr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Tn(e){return!Gr(e,this.v)}let Kr=!1,se=null;function Qe(e){se=e}function Sn(e,t=!1,n){se={p:se,i:!1,c:null,e:null,s:e,x:null,r:E,l:null}}function An(e){var t=se,n=t.e;if(n!==null){t.e=null;for(var r of n)vi(r)}return e!==void 0&&(t.x=e),t.i=!0,se=t.p,e??{}}function Cn(){return!0}let je=[];function xn(){var e=je;je=[],Mr(e)}function He(e){if(je.length===0&&!ft){var t=je;queueMicrotask(()=>{t===je&&xn()})}je.push(e)}function Jr(){for(;je.length>0;)xn()}function Nn(e){var t=E;if(t===null)return w.f|=Ce,e;if((t.f&Pe)===0&&(t.f&at)===0)throw e;xe(e,t)}function xe(e,t){for(;t!==null;){if((t.f&jt)!==0){if((t.f&Pe)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Xr=-7169;function x(e,t){e.f=e.f&Xr|t}function Yt(e){(e.f&Z)!==0||e.deps===null?x(e,O):x(e,de)}function Rn(e){if(e!==null)for(const t of e)(t.f&D)===0||(t.f&Fe)===0||(t.f^=Fe,Rn(t.deps))}function On(e,t,n){(e.f&L)!==0?t.add(e):(e.f&de)!==0&&n.add(e),Rn(e.deps),x(e,O)}const Ne=new Set;let S=null,le=null,qt=null,ft=!1,Vt=!1,et=null,Tt=null;var Mn=0;let Zr=1;class we{id=Zr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#a=new Set;#o=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#f)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#o.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#o.has(t)||this.#o.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#o.get(t);if(n){this.#o.delete(t);for(var r of n.d)x(r,L),this.schedule(r);for(r of n.m)x(r,de),this.schedule(r)}}#h(){if(Mn++>1e3&&(Ne.delete(this),Qr()),!this.#d()){for(const l of this.#l)this.#a.delete(l),x(l,L),this.schedule(l);for(const l of this.#a)x(l,de),this.schedule(l)}const t=this.#r;this.#r=[],this.apply();var n=et=[],r=[],i=Tt=[];for(const l of t)try{this.#u(l,n,r)}catch(o){throw Fn(l),o}if(S=null,i.length>0){var s=we.ensure();for(const l of i)s.schedule(l)}if(et=null,Tt=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[l,o]of this.#o)Pn(l,o)}else{this.#t.size===0&&Ne.delete(this),this.#l.clear(),this.#a.clear();for(const l of this.#e)l(this);this.#e.clear(),Dn(r),Dn(n),this.#s?.resolve()}var a=S;if(this.#r.length>0){const l=a??=this;l.#r.push(...this.#r.filter(o=>!l.#r.includes(o)))}a!==null&&(Ne.add(a),a.#h()),Ne.has(this)||this.#p()}#u(t,n,r){t.f^=O;for(var i=t.first;i!==null;){var s=i.f,a=(s&(ce|Se))!==0,l=a&&(s&O)!==0,o=l||(s&q)!==0||this.#o.has(i);if(!o&&i.fn!==null){a?i.f^=O:(s&at)!==0?n.push(i):dt(i)&&((s&Te)!==0&&this.#a.add(i),rt(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)On(t[n],this.#l,this.#a)}capture(t,n,r=!1){n!==I&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Ce)===0&&(this.current.set(t,[t.v,r]),le?.set(t,t.v))}activate(){S=this}deactivate(){S=null,le=null}flush(){try{Vt=!0,S=this,this.#h()}finally{Mn=0,qt=null,et=null,Tt=null,Vt=!1,S=null,le=null,Re.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Ne.delete(this)}#p(){for(const f of Ne){var t=f.id<this.id,n=[];for(const[u,[h,d]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&h!==r)f.current.set(u,[h,d]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,a=new Map;for(var l of n)In(l,i,s,a);if(f.#r.length>0){f.apply();for(var o of f.#r)f.#u(o,[],[]);f.#r=[]}f.deactivate()}}for(const f of Ne)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,He(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#a.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=mn()).promise}static ensure(){if(S===null){const t=S=new we;Vt||(Ne.add(S),ft||He(()=>{S===t&&t.flush()}))}return S}apply(){{le=null;return}}schedule(t){if(qt=t,t.b?.is_pending&&(t.f&(at|bt|wn))!==0&&(t.f&Pe)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(et!==null&&n===E&&(w===null||(w.f&D)===0))return;if((r&(Se|ce))!==0){if((r&O)===0)return;n.f^=O}}this.#r.push(n)}}function N(e){var t=ft;ft=!0;try{for(var n;;){if(Jr(),S===null)return n;S.flush()}}finally{ft=t}}function Qr(){try{Hr()}catch(e){xe(e,qt)}}let ye=null;function Dn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Q|q))===0&&dt(r)&&(ye=new Set,rt(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&er(r),ye?.size>0)){Re.clear();for(const i of ye){if((i.f&(Q|q))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)ye.has(a)&&(ye.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];(o.f&(Q|q))===0&&rt(o)}}ye.clear()}}ye=null}}function In(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&D)!==0?In(i,t,n,r):(s&(zt|Te))!==0&&(s&L)===0&&Ln(i,t,r)&&(x(i,L),Ut(i))}}function Ln(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(Ke.call(t,i))return!0;if((i.f&D)!==0&&Ln(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Ut(e){S.schedule(e)}function Pn(e,t){if(!((e.f&ce)!==0&&(e.f&O)!==0)){(e.f&L)!==0?t.d.push(e):(e.f&de)!==0&&t.m.push(e),x(e,O);for(var n=e.first;n!==null;)Pn(n,t),n=n.next}}function Fn(e){x(e,O);for(var t=e.first;t!==null;)Fn(t),t=t.next}function ei(e){let t=0,n=ze(0),r;return()=>{Zt()&&(R(n),Zn(()=>(t===0&&(r=$i(()=>e(()=>ut(n)))),t+=1,()=>{He(()=>{t-=1,t===0&&(r?.(),r=void 0,ut(n))})})))}}var ti=Xe|Ae;function ni(e,t,n,r){new ri(e,t,n,r)}class ri{parent;is_pending=!1;transform_error;#e;#n=k?y:null;#t;#i;#s;#r=null;#l=null;#a=null;#o=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#_=ei(()=>(this.#u=ze(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var a=E;a.b=this,a.f|=jt,r(s)},this.parent=E.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=xt(()=>{if(k){const s=this.#n;ot();const a=s.data===Pt;if(s.data.startsWith(hn)){const o=JSON.parse(s.data.slice(hn.length));this.#b(o)}else a?this.#E():this.#p()}else this.#w()},ti),k&&(this.#e=y)}#p(){try{this.#r=te(()=>this.#i(this.#e))}catch(t){this.error(t)}}#b(t){const n=this.#t.failed;n&&(this.#a=te(()=>{n(this.#e,()=>t,()=>()=>{})}))}#E(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=te(()=>t(this.#e)),He(()=>{var n=this.#o=document.createDocumentFragment(),r=U();n.append(r),this.#r=this.#m(()=>te(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#o=null,Ye(this.#l,()=>{this.#l=null}),this.#g(S))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=te(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#o=document.createDocumentFragment();nn(this.#r,t);const n=this.#t.pending;this.#l=te(()=>n(this.#e))}else this.#g(S)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){On(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=E,r=w,i=se;ne(this.#s),z(this.#s),Qe(this.#s.ctx);try{return we.ensure(),t()}catch(s){return Nn(s),null}finally{ne(n),z(r),Qe(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#f+=t,this.#f===0&&(this.#g(n),this.#l&&Ye(this.#l,()=>{this.#l=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,He(()=>{this.#d=!1,this.#u&&tt(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),R(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(j(this.#r),this.#r=null),this.#l&&(j(this.#l),this.#l=null),this.#a&&(j(this.#a),this.#a=null),k&&(F(this.#n),Wr(),F(kt()));var i=!1,s=!1;const a=()=>{if(i){Ur();return}i=!0,s&&Vr(),this.#a!==null&&Ye(this.#a,()=>{this.#a=null}),this.#m(()=>{this.#w()})},l=o=>{try{s=!0,n?.(o,a),s=!1}catch(f){xe(f,this.#s&&this.#s.parent)}r&&(this.#a=this.#m(()=>{try{return te(()=>{var f=E;f.b=this,f.f|=jt,r(this.#e,()=>o,()=>a)})}catch(f){return xe(f,this.#s.parent),null}}))};He(()=>{var o;try{o=this.transform_error(t)}catch(f){xe(f,this.#s&&this.#s.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(l,f=>xe(f,this.#s&&this.#s.parent)):l(o)})}}function ii(e,t,n,r){const i=Wt;var s=e.filter(d=>!d.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var a=E,l=si(),o=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function f(d){l();try{r(d)}catch(p){(a.f&Q)===0&&xe(p,a)}St()}if(n.length===0){o.then(()=>f(t.map(i)));return}var u=jn();function h(){Promise.all(n.map(d=>li(d))).then(d=>f([...t.map(i),...d])).catch(d=>xe(d,a)).finally(()=>u())}o?o.then(()=>{l(),h(),St()}):h()}function si(){var e=E,t=w,n=se,r=S;return function(s=!0){ne(e),z(t),Qe(n),s&&(e.f&Q)===0&&(r?.activate(),r?.apply())}}function St(e=!0){ne(null),z(null),Qe(null),e&&S?.deactivate()}function jn(){var e=E,t=e.b,n=S,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 Wt(e){var t=D|L,n=w!==null&&(w.f&D)!==0?w:null;return E!==null&&(E.f|=Ae),{ctx:se,deps:null,effects:null,equals:kn,f:t,fn:e,reactions:null,rv:0,v:I,wv:0,parent:n??E,ac:null}}function li(e,t,n){let r=E;r===null&&Fr();var i=void 0,s=ze(I),a=!w,l=new Map;return gi(()=>{var o=E,f=mn();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(St)}catch(p){f.reject(p),St()}var u=S;if(a){if((o.f&Pe)!==0)var h=jn();if(r.b.is_rendered())l.get(u)?.reject(me),l.delete(u);else{for(const p of l.values())p.reject(me);l.clear()}l.set(u,f)}const d=(p,c=void 0)=>{if(h){var g=c===me;h(g)}if(!(c===me||(o.f&Q)!==0)){if(u.activate(),c)s.f|=Ce,tt(s,c);else{(s.f&Ce)!==0&&(s.f^=Ce),tt(s,p);for(const[T,m]of l){if(l.delete(T),T===u)break;m.reject(me)}}u.deactivate()}};f.promise.then(d,p=>d(null,p||"unknown"))}),Qt(()=>{for(const o of l.values())o.reject(me)}),new Promise(o=>{function f(u){function h(){u===i?o(s):f(i)}u.then(h,h)}f(i)})}function ai(e){const t=Wt(e);return t.equals=Tn,t}function oi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function fi(e){for(var t=e.parent;t!==null;){if((t.f&D)===0)return(t.f&Q)===0?t:null;t=t.parent}return null}function Gt(e){var t,n=E;ne(fi(e));try{e.f&=~Fe,oi(e),t=or(e)}finally{ne(n)}return t}function Hn(e){var t=e.v,n=Gt(e);if(!e.equals(n)&&(e.wv=lr(),(!S?.is_fork||e.deps===null)&&(e.v=n,S?.capture(e,t,!0),e.deps===null))){x(e,O);return}qe||(le!==null?(Zt()||S?.is_fork)&&le.set(e,n):Yt(e))}function ui(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(me),t.teardown=Or,t.ac=null,ht(t,0),en(t))}function zn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&rt(t)}let Kt=new Set;const Re=new Map;let Bn=!1;function ze(e,t){var n={f:0,v:e,reactions:null,equals:kn,rv:0,wv:0};return n}function be(e,t){const n=ze(e);return yi(n),n}function Yn(e,t=!1,n=!0){const r=ze(e);return t||(r.equals=Tn),r}function ve(e,t,n=!1){w!==null&&(!ae||(w.f&bn)!==0)&&Cn()&&(w.f&(D|Te|zt|bn))!==0&&(re===null||!Ke.call(re,e))&&qr();let r=n?ct(t):t;return tt(e,r,Tt)}function tt(e,t,n=null){if(!e.equals(t)){var r=e.v;qe?Re.set(e,t):Re.set(e,r),e.v=t;var i=we.ensure();if(i.capture(e,r),(e.f&D)!==0){const s=e;(e.f&L)!==0&&Gt(s),le===null&&Yt(s)}e.wv=lr(),qn(e,L,n),E!==null&&(E.f&O)!==0&&(E.f&(ce|Se))===0&&(ie===null?bi([e]):ie.push(e)),!i.is_fork&&Kt.size>0&&!Bn&&ci()}return t}function ci(){Bn=!1;for(const e of Kt)(e.f&O)!==0&&x(e,de),dt(e)&&rt(e);Kt.clear()}function ut(e){ve(e,e.v+1)}function qn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var a=r[s],l=a.f,o=(l&L)===0;if(o&&x(a,t),(l&D)!==0){var f=a;le?.delete(f),(l&Fe)===0&&(l&Z&&(a.f|=Fe),qn(f,de,n))}else if(o){var u=a;(l&Te)!==0&&ye!==null&&ye.add(u),n!==null?n.push(u):Ut(u)}}}function ct(e){if(typeof e!="object"||e===null||Bt in e)return e;const t=pn(e);if(t!==Nr&&t!==Rr)return e;var n=new Map,r=_n(e),i=be(0),s=Ue,a=l=>{if(Ue===s)return l();var o=w,f=Ue;z(null),sr(s);var u=l();return z(o),sr(f),u};return r&&n.set("length",be(e.length)),new Proxy(e,{defineProperty(l,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Br();var u=n.get(o);return u===void 0?a(()=>{var h=be(f.value);return n.set(o,h),h}):ve(u,f.value,!0),!0},deleteProperty(l,o){var f=n.get(o);if(f===void 0){if(o in l){const u=a(()=>be(I));n.set(o,u),ut(i)}}else ve(f,I),ut(i);return!0},get(l,o,f){if(o===Bt)return e;var u=n.get(o),h=o in l;if(u===void 0&&(!h||Je(l,o)?.writable)&&(u=a(()=>{var p=ct(h?l[o]:I),c=be(p);return c}),n.set(o,u)),u!==void 0){var d=R(u);return d===I?void 0:d}return Reflect.get(l,o,f)},getOwnPropertyDescriptor(l,o){var f=Reflect.getOwnPropertyDescriptor(l,o);if(f&&"value"in f){var u=n.get(o);u&&(f.value=R(u))}else if(f===void 0){var h=n.get(o),d=h?.v;if(h!==void 0&&d!==I)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,o){if(o===Bt)return!0;var f=n.get(o),u=f!==void 0&&f.v!==I||Reflect.has(l,o);if(f!==void 0||E!==null&&(!u||Je(l,o)?.writable)){f===void 0&&(f=a(()=>{var d=u?ct(l[o]):I,p=be(d);return p}),n.set(o,f));var h=R(f);if(h===I)return!1}return u},set(l,o,f,u){var h=n.get(o),d=o in l;if(r&&o==="length")for(var p=f;p<h.v;p+=1){var c=n.get(p+"");c!==void 0?ve(c,I):p in l&&(c=a(()=>be(I)),n.set(p+"",c))}if(h===void 0)(!d||Je(l,o)?.writable)&&(h=a(()=>be(void 0)),ve(h,ct(f)),n.set(o,h));else{d=h.v!==I;var g=a(()=>ct(f));ve(h,g)}var T=Reflect.getOwnPropertyDescriptor(l,o);if(T?.set&&T.set.call(u,f),!d){if(r&&typeof o=="string"){var m=n.get("length"),C=Number(o);Number.isInteger(C)&&C>=m.v&&ve(m,C+1)}ut(i)}return!0},ownKeys(l){R(i);var o=Reflect.ownKeys(l).filter(h=>{var d=n.get(h);return d===void 0||d.v!==I});for(var[f,u]of n)u.v!==I&&!(f in l)&&o.push(f);return o},setPrototypeOf(){Yr()}})}var Vn,Un,Wn,Gn;function Jt(){if(Vn===void 0){Vn=window,Un=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wn=Je(t,"firstChild").get,Gn=Je(t,"nextSibling").get,gn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),gn(n)&&(n.__t=void 0)}}function U(e=""){return document.createTextNode(e)}function Be(e){return Wn.call(e)}function ee(e){return Gn.call(e)}function _e(e,t){if(!k)return Be(e);var n=Be(y);return n===null&&(n=y.appendChild(U())),F(n),n}function At(e,t=!1){if(!k){var n=Be(e);return n instanceof Comment&&n.data===""?ee(n):n}if(t){if(y?.nodeType!==Et){var r=U();return y?.before(r),F(r),r}Xt(y)}return y}function nt(e,t=1,n=!1){let r=k?y:e;for(var i;t--;)i=r,r=ee(r);if(!k)return r;if(n){if(r?.nodeType!==Et){var s=U();return r===null?i?.after(s):r.before(s),F(s),s}Xt(r)}return F(r),r}function Kn(e){e.textContent=""}function Jn(){return!1}function Xn(e,t,n){return document.createElementNS(vn,e,void 0)}function Xt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Et;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function di(e,t,n,r=!0){r&&n();for(var i of t)e.addEventListener(i,n);Qt(()=>{for(var s of t)e.removeEventListener(s,n)})}function Ct(e){var t=w,n=E;z(null),ne(null);try{return e()}finally{z(t),ne(n)}}function hi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Ee(e,t){var n=E;n!==null&&(n.f&q)!==0&&(e|=q);var r={ctx:se,deps:null,nodes:null,f:e|L|Z,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&at)!==0)et!==null?et.push(r):we.ensure().schedule(r);else if(t!==null){try{rt(r)}catch(a){throw j(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Ae)===0&&(i=i.first,(e&Te)!==0&&(e&Xe)!==0&&i!==null&&(i.f|=Xe))}if(i!==null&&(i.parent=n,n!==null&&hi(i,n),w!==null&&(w.f&D)!==0&&(e&Se)===0)){var s=w;(s.effects??=[]).push(i)}return r}function Zt(){return w!==null&&!ae}function Qt(e){const t=Ee(bt,null);return x(t,O),t.teardown=e,t}function vi(e){return Ee(at|Dr,e)}function _i(e){we.ensure();const t=Ee(Se|Ae,e);return()=>{j(t)}}function pi(e){we.ensure();const t=Ee(Se|Ae,e);return(n={})=>new Promise(r=>{n.outro?Ye(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function gi(e){return Ee(zt|Ae,e)}function Zn(e,t=0){return Ee(bt|t,e)}function b(e,t=[],n=[],r=[]){ii(r,t,n,i=>{Ee(bt,()=>e(...i.map(R)))})}function xt(e,t=0){var n=Ee(Te|t,e);return n}function te(e){return Ee(ce|Ae,e)}function Qn(e){var t=e.teardown;if(t!==null){const n=qe,r=w;rr(!0),z(null);try{t.call(null)}finally{rr(n),z(r)}}}function en(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Ct(()=>{i.abort(me)});var r=n.next;(n.f&Se)!==0?n.parent=null:j(n,t),n=r}}function mi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ce)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&En)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(wi(e.nodes.start,e.nodes.end),n=!0),x(e,yn),en(e,t&&!n),ht(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Qn(e),e.f^=yn,e.f|=Q;var i=e.parent;i!==null&&i.first!==null&&er(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function wi(e,t){for(;e!==null;){var n=e===t?null:ee(e);e.remove(),e=n}}function er(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ye(e,t,n=!0){var r=[];tr(e,r,!0);var i=()=>{n&&j(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var l of r)l.out(a)}else i()}function tr(e,t,n){if((e.f&q)===0){e.f^=q;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&Xe)!==0||(i.f&ce)!==0&&(e.f&Te)!==0;tr(i,t,a?n:!1),i=s}}}function tn(e){nr(e,!0)}function nr(e,t){if((e.f&q)!==0){e.f^=q,(e.f&O)===0&&(x(e,L),we.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Xe)!==0||(n.f&ce)!==0;nr(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function nn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ee(n);t.append(n),n=i}}let Nt=!1,qe=!1;function rr(e){qe=e}let w=null,ae=!1;function z(e){w=e}let E=null;function ne(e){E=e}let re=null;function yi(e){w!==null&&(re===null?re=[e]:re.push(e))}let B=null,W=0,ie=null;function bi(e){ie=e}let ir=1,Ve=0,Ue=Ve;function sr(e){Ue=e}function lr(){return++ir}function dt(e){var t=e.f;if((t&L)!==0)return!0;if(t&D&&(e.f&=~Fe),(t&de)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(dt(s)&&Hn(s),s.wv>e.wv)return!0}(t&Z)!==0&&le===null&&x(e,O)}return!1}function ar(e,t,n=!0){var r=e.reactions;if(r!==null&&!(re!==null&&Ke.call(re,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&D)!==0?ar(s,t,!1):t===s&&(n?x(s,L):(s.f&O)!==0&&x(s,de),Ut(s))}}function or(e){var t=B,n=W,r=ie,i=w,s=re,a=se,l=ae,o=Ue,f=e.f;B=null,W=0,ie=null,w=(f&(ce|Se))===0?e:null,re=null,Qe(e.ctx),ae=!1,Ue=++Ve,e.ac!==null&&(Ct(()=>{e.ac.abort(me)}),e.ac=null);try{e.f|=Ht;var u=e.fn,h=u();e.f|=Pe;var d=e.deps,p=S?.is_fork;if(B!==null){var c;if(p||ht(e,W),d!==null&&W>0)for(d.length=W+B.length,c=0;c<B.length;c++)d[W+c]=B[c];else e.deps=d=B;if(Zt()&&(e.f&Z)!==0)for(c=W;c<d.length;c++)(d[c].reactions??=[]).push(e)}else!p&&d!==null&&W<d.length&&(ht(e,W),d.length=W);if(Cn()&&ie!==null&&!ae&&d!==null&&(e.f&(D|de|L))===0)for(c=0;c<ie.length;c++)ar(ie[c],e);if(i!==null&&i!==e){if(Ve++,i.deps!==null)for(let g=0;g<n;g+=1)i.deps[g].rv=Ve;if(t!==null)for(const g of t)g.rv=Ve;ie!==null&&(r===null?r=ie:r.push(...ie))}return(e.f&Ce)!==0&&(e.f^=Ce),h}catch(g){return Nn(g)}finally{e.f^=Ht,B=t,W=n,ie=r,w=i,re=s,Qe(a),ae=l,Ue=o}}function Ei(e,t){let n=t.reactions;if(n!==null){var r=Cr.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&D)!==0&&(B===null||!Ke.call(B,t))){var s=t;(s.f&Z)!==0&&(s.f^=Z,s.f&=~Fe),Yt(s),ui(s),ht(s,0)}}function ht(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ei(e,n[r])}function rt(e){var t=e.f;if((t&Q)===0){x(e,O);var n=E,r=Nt;E=e,Nt=!0;try{(t&(Te|wn))!==0?mi(e):en(e),Qn(e);var i=or(e);e.teardown=typeof i=="function"?i:null,e.wv=ir;var s;Ar&&Kr&&(e.f&L)!==0&&e.deps}finally{Nt=r,E=n}}}function R(e){var t=e.f,n=(t&D)!==0;if(w!==null&&!ae){var r=E!==null&&(E.f&Q)!==0;if(!r&&(re===null||!Ke.call(re,e))){var i=w.deps;if((w.f&Ht)!==0)e.rv<Ve&&(e.rv=Ve,B===null&&i!==null&&i[W]===e?W++:B===null?B=[e]:B.push(e));else{(w.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[w]:Ke.call(s,w)||s.push(w)}}}if(qe&&Re.has(e))return Re.get(e);if(n){var a=e;if(qe){var l=a.v;return((a.f&O)===0&&a.reactions!==null||ur(a))&&(l=Gt(a)),Re.set(a,l),l}var o=(a.f&Z)===0&&!ae&&w!==null&&(Nt||(w.f&Z)!==0),f=(a.f&Pe)===0;dt(a)&&(o&&(a.f|=Z),Hn(a)),o&&!f&&(zn(a),fr(a))}if(le?.has(e))return le.get(e);if((e.f&Ce)!==0)throw e.v;return e.v}function fr(e){if(e.f|=Z,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&D)!==0&&(t.f&Z)===0&&(zn(t),fr(t))}function ur(e){if(e.v===I)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Re.has(t)||(t.f&D)!==0&&ur(t))return!0;return!1}function $i(e){var t=ae;try{return ae=!0,e()}finally{ae=t}}const Rt=Symbol("events"),ki=new Set,cr=new Set;function Ti(e,t,n,r={}){function i(s){if(r.capture||rn.call(t,s),!s.cancelBubble)return Ct(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?He(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function G(e,t,n,r,i){var s={capture:r,passive:i},a=Ti(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qt(()=>{t.removeEventListener(e,a,s)})}let dr=null;function rn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;dr=e;var a=0,l=dr===e&&e[Rt];if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e[Rt]=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(a=o)}if(s=i[a]||e.target,s!==t){yt(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=w,h=E;z(null),ne(null);try{for(var d,p=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var g=s[Rt]?.[r];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(T){d?p.push(T):d=T}if(e.cancelBubble||c===t||c===null)break;s=c}if(d){for(let T of p)queueMicrotask(()=>{throw T});throw d}}finally{e[Rt]=t,delete e.currentTarget,z(u),ne(h)}}}const Si=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Ai(e){return Si?.createHTML(e)??e}function Ci(e){var t=Xn("template");return t.innerHTML=Ai(e.replaceAll("<!>","<!---->")),t.content}function Oe(e,t){var n=E;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ot(e,t){var n=(t&Tr)!==0,r=(t&Sr)!==0,i,s=!e.startsWith("<!>");return()=>{if(k)return Oe(y,null),y;i===void 0&&(i=Ci(s?e:"<!>"+e),n||(i=Be(i)));var a=r||Un?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Be(a),o=a.lastChild;Oe(l,o)}else Oe(a,a);return a}}function hr(e=""){if(!k){var t=U(e+"");return Oe(t,t),t}var n=y;return n.nodeType!==Et?(n.before(n=U()),F(n)):Xt(n),Oe(n,n),n}function Mt(){if(k)return Oe(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),n=U();return e.append(t,n),Oe(t,n),e}function oe(e,t){if(k){var n=E;((n.f&Pe)===0||n.nodes.end===null)&&(n.nodes.end=y),ot();return}e!==null&&e.before(t)}const xi=["touchstart","touchmove"];function Ni(e){return xi.includes(e)}function vr(e,t){return _r(e,t)}function Ri(e,t){Jt(),t.intro=t.intro??!1;const n=t.target,r=k,i=y;try{for(var s=Be(n);s&&(s.nodeType!==Ze||s.data!==dn);)s=ee(s);if(!s)throw Ge;V(!0),F(s);const a=_r(e,{...t,anchor:s});return V(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ge&&console.warn("Failed to hydrate: ",a),t.recover===!1&&zr(),Jt(),Kn(n),V(!1),vr(e,t)}finally{V(r),F(i)}}const Dt=new Map;function _r(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:l}){Jt();var o=void 0,f=pi(()=>{var u=n??t.appendChild(U());ni(u,{pending:()=>{}},p=>{Sn({});var c=se;if(s&&(c.c=s),i&&(r.$$events=i),k&&Oe(p,null),o=e(p,r)||{},k&&(E.nodes.end=y,y===null||y.nodeType!==Ze||y.data!==Ft))throw $t(),Ge;An()},l);var h=new Set,d=p=>{for(var c=0;c<p.length;c++){var g=p[c];if(!h.has(g)){h.add(g);var T=Ni(g);for(const K of[t,document]){var m=Dt.get(K);m===void 0&&(m=new Map,Dt.set(K,m));var C=m.get(g);C===void 0?(K.addEventListener(g,rn,{passive:T}),m.set(g,1)):m.set(g,C+1)}}}};return d(mt(ki)),cr.add(d),()=>{for(var p of h)for(const T of[t,document]){var c=Dt.get(T),g=c.get(p);--g==0?(T.removeEventListener(p,rn),c.delete(p),c.size===0&&Dt.delete(T)):c.set(p,g)}cr.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return sn.set(o,f),o}let sn=new WeakMap;function Oi(e,t){const n=sn.get(e);return n?(sn.delete(e),n(t)):Promise.resolve()}class Mi{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)tn(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(a);l&&(j(l.effect),this.#t.delete(a))}for(const[s,a]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();nn(a,f),f.append(U()),this.#t.set(s,{effect:a,fragment:f})}else j(a);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Ye(a,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(j(i.effect),this.#t.delete(r))};ensure(t,n){var r=S,i=Jn();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),a=U();s.append(a),this.#t.set(t,{effect:te(()=>n(a)),fragment:s})}else this.#n.set(t,te(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,o]of this.#n)l===t?r.unskip_effect(o):r.skip_effect(o);for(const[l,o]of this.#t)l===t?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else k&&(this.anchor=y),this.#r(r)}}function ln(e,t,n=!1){var r;k&&(r=y,ot());var i=new Mi(e),s=n?Xe:0;function a(l,o){if(k){var f=$n(r);if(l!==parseInt(f.substring(1))){var u=kt();F(u),i.anchor=u,V(!1),i.ensure(l,o),V(!0);return}}i.ensure(l,o)}xt(()=>{var l=!1;t((o,f=0)=>{l=!0,a(f,o)}),l||a(-1,null)},s)}function Di(e,t,n){for(var r=[],i=t.length,s,a=t.length,l=0;l<i;l++){let h=t[l];Ye(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var d=e.outrogroups;an(e,mt(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var o=r.length===0&&n!==null;if(o){var f=n,u=f.parentNode;Kn(u),u.append(f),e.items.clear()}an(e,t,!o)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function an(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const a of e.pending.values())for(const l of a)r.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ge;const a=document.createDocumentFragment();nn(s,a)}else j(t[i],n)}}var pr;function Ii(e,t,n,r,i,s=null){var a=e,l=new Map;k&&ot();var o=null,f=ai(()=>{var m=n();return _n(m)?m:m==null?[]:mt(m)}),u,h=new Map,d=!0;function p(m){(T.effect.f&Q)===0&&(T.pending.delete(m),T.fallback=o,Li(T,u,a,t,r),o!==null&&(u.length===0?(o.f&ge)===0?tn(o):(o.f^=ge,_t(o,null,a)):Ye(o,()=>{o=null})))}function c(m){T.pending.delete(m)}var g=xt(()=>{u=R(f);var m=u.length;let C=!1;if(k){var K=$n(a)===Pt;K!==(m===0)&&(a=kt(),F(a),V(!1),C=!0)}for(var J=new Set,Y=S,P=Jn(),pe=0;pe<m;pe+=1){k&&y.nodeType===Ze&&y.data===Ft&&(a=y,C=!0,V(!1));var X=u[pe],it=r(X,pe),fe=d?null:l.get(it);fe?(fe.v&&tt(fe.v,X),fe.i&&tt(fe.i,pe),P&&Y.unskip_effect(fe.e)):(fe=Pi(l,d?a:pr??=U(),X,it,pe,i,t,n),d||(fe.e.f|=ge),l.set(it,fe)),J.add(it)}if(m===0&&s&&!o&&(d?o=te(()=>s(a)):(o=te(()=>s(pr??=U())),o.f|=ge)),m>J.size&&jr(),k&&m>0&&F(kt()),!d)if(h.set(Y,J),P){for(const[fn,_]of l)J.has(fn)||Y.skip_effect(_.e);Y.oncommit(p),Y.ondiscard(c)}else p(Y);C&&V(!0),R(f)}),T={effect:g,items:l,pending:h,outrogroups:null,fallback:o};d=!1,k&&(a=y)}function vt(e){for(;e!==null&&(e.f&ce)===0;)e=e.next;return e}function Li(e,t,n,r,i){var s=t.length,a=e.items,l=vt(e.effect.first),o,f=null,u=[],h=[],d,p,c,g;for(g=0;g<s;g+=1){if(d=t[g],p=i(d,g),c=a.get(p).e,e.outrogroups!==null)for(const X of e.outrogroups)X.pending.delete(c),X.done.delete(c);if((c.f&q)!==0&&tn(c),(c.f&ge)!==0)if(c.f^=ge,c===l)_t(c,null,n);else{var T=f?f.next:l;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),Me(e,f,c),Me(e,c,T),_t(c,T,n),f=c,u=[],h=[],l=vt(f.next);continue}if(c!==l){if(o!==void 0&&o.has(c)){if(u.length<h.length){var m=h[0],C;f=m.prev;var K=u[0],J=u[u.length-1];for(C=0;C<u.length;C+=1)_t(u[C],m,n);for(C=0;C<h.length;C+=1)o.delete(h[C]);Me(e,K.prev,J.next),Me(e,f,K),Me(e,J,m),l=m,f=J,g-=1,u=[],h=[]}else o.delete(c),_t(c,l,n),Me(e,c.prev,c.next),Me(e,c,f===null?e.effect.first:f.next),Me(e,f,c),f=c;continue}for(u=[],h=[];l!==null&&l!==c;)(o??=new Set).add(l),h.push(l),l=vt(l.next);if(l===null)continue}(c.f&ge)===0&&u.push(c),f=c,l=vt(c.next)}if(e.outrogroups!==null){for(const X of e.outrogroups)X.pending.size===0&&(an(e,mt(X.done)),e.outrogroups?.delete(X));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||o!==void 0){var Y=[];if(o!==void 0)for(c of o)(c.f&q)===0&&Y.push(c);for(;l!==null;)(l.f&q)===0&&l!==e.fallback&&Y.push(l),l=vt(l.next);var P=Y.length;if(P>0){var pe=null;Di(e,Y,pe)}}}function Pi(e,t,n,r,i,s,a,l){var o=(a&Er)!==0?(a&kr)===0?Yn(n,!1,!1):ze(n):null,f=(a&$r)!==0?ze(i):null;return{v:o,i:f,e:te(()=>(s(t,o??n,f??i,l),()=>{e.delete(r)}))}}function _t(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ge)===0?t.nodes.start:n;r!==null;){var a=ee(r);if(s.before(r),r===i)return;r=a}}function Me(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function De(e,t,n,r,i){k&&ot();var s=t.$$slots?.[n],a=!1;s===!0&&(s=t[n==="default"?"children":n],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>r:r)}function Fi(e,t){let n=null,r=k;var i;if(k){n=y;for(var s=Be(document.head);s!==null&&(s.nodeType!==Ze||s.data!==e);)s=ee(s);if(s===null)V(!1);else{var a=ee(s);s.remove(),F(a)}}k||(i=document.head.appendChild(U()));try{xt(()=>t(i),En|Ae)}finally{r&&(V(!0),F(n))}}const ji=Symbol("is custom element"),Hi=Symbol("is html"),zi=Pr?"link":"LINK";function pt(e,t,n,r){var i=Bi(e);k&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===zi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Lr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&gr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $(e,t,n){var r=w,i=E;let s=k;k&&V(!1),z(null),ne(null);try{t!=="style"&&(on.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?gr(e).includes(t):n&&typeof n=="object")?e[t]=n:pt(e,t,n==null?n:String(n))}finally{z(r),ne(i),s&&V(!0)}}function Bi(e){return e.__attributes??={[ji]:e.nodeName.includes("-"),[Hi]:e.namespaceURI===vn}}var on=new Map;function gr(e){var t=e.getAttribute("is")||e.nodeName,n=on.get(t);if(n)return n;on.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=xr(i);for(var a in r)r[a].set&&n.push(a);i=pn(i)}return n}function Yi(e,t){di(window,["resize"],()=>Ct(()=>t(window[e])))}function M(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=a());var o;o=()=>{var d=e[t];return d===void 0?a():(s=!0,d)};var f=!1,u=Wt(()=>(f=!1,o())),h=E;return(function(d,p){if(arguments.length>0){const c=p?R(u):d;return ve(u,c),f=!0,i!==void 0&&(i=c),d}return qe&&f||(h.f&Q)!==0?u.v:R(u)})}function qi(e){return new Vi(e)}class Vi{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var l=Yn(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return R(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===Ir?!0:(R(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return ve(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#n=(t.hydrate?Ri:vr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&N(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||yt(this,s,{get(){return this.#n[s]},set(a){this.#n[s]=a},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Oi(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let mr;typeof HTMLElement=="function"&&(mr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=Xn("slot");r!=="default"&&(s.name=r),oe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ui(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=It(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=qi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_i(()=>{Zn(()=>{this.$$r=!0;for(const r of wt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=It(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=It(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return wt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function It(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ui(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Wi(e,t,n,r,i,s){let a=class extends mr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return wt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return wt(t).forEach(l=>{yt(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=It(l,o,t),this.$$d[l]=o;var f=this.$$c;if(f){var u=Je(f,l)?.get;u?f[l]=o:f.$set({[l]:o})}}})}),r.forEach(l=>{yt(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const wr={version:"0.66.4"};function yr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Gi=Ot("<meta/>"),Ki=Ot("<meta/>"),Ji=Ot('<hb-layout-mobile><div slot="page"><!></div> <span slot="nav-header-slot"><!></span> <span slot="nav-left-slot"><!></span> <span slot="nav-center-slot"><!></span> <span slot="nav-right-slot"><!></span></hb-layout-mobile>',2),Xi=Ot('<hb-layout-desktop><div slot="page"><!></div> <div slot="nav-center-slot"><!></div> <div slot="nav-right-slot"><!></div></hb-layout-desktop>',2);function br(e,t){Sn(t,!0);let n=M(t,"id",7,""),r=M(t,"heders",7,void 0),i=M(t,"footer",7,void 0),s=M(t,"cookielawuri4more",7,""),a=M(t,"cookielawallowdecline",7,!1),l=M(t,"cookielawlanguage",7,""),o=M(t,"pagename",7,void 0),f=M(t,"cookielaw",7,void 0),u=M(t,"onescreen",7,void 0),h=M(t,"sidebar",7,void 0),d=M(t,"socials",7,void 0),p=M(t,"navlinks",7,void 0),c=M(t,"contacts",7,void 0),g=M(t,"columns",7,void 0),T=M(t,"usermenu",7,void 0),m=M(t,"i18nlang",7,void 0),C=M(t,"page_title",7,void 0),K=M(t,"policies",7,void 0),J=M(t,"company",7,void 0),Y=be(0);function P(_,v){t.$$host.dispatchEvent(new CustomEvent(_,{detail:v}))}yr({repoName:"@htmlbricks/hb-layout-desktop",version:wr.version}),yr({repoName:"@htmlbricks/hb-layout-mobile",version:wr.version});var pe={get id(){return n()},set id(_=""){n(_),N()},get heders(){return r()},set heders(_=void 0){r(_),N()},get footer(){return i()},set footer(_=void 0){i(_),N()},get cookielawuri4more(){return s()},set cookielawuri4more(_=""){s(_),N()},get cookielawallowdecline(){return a()},set cookielawallowdecline(_=!1){a(_),N()},get cookielawlanguage(){return l()},set cookielawlanguage(_=""){l(_),N()},get pagename(){return o()},set pagename(_=void 0){o(_),N()},get cookielaw(){return f()},set cookielaw(_=void 0){f(_),N()},get onescreen(){return u()},set onescreen(_=void 0){u(_),N()},get sidebar(){return h()},set sidebar(_=void 0){h(_),N()},get socials(){return d()},set socials(_=void 0){d(_),N()},get navlinks(){return p()},set navlinks(_=void 0){p(_),N()},get contacts(){return c()},set contacts(_=void 0){c(_),N()},get columns(){return g()},set columns(_=void 0){g(_),N()},get usermenu(){return T()},set usermenu(_=void 0){T(_),N()},get i18nlang(){return m()},set i18nlang(_=void 0){m(_),N()},get page_title(){return C()},set page_title(_=void 0){C(_),N()},get policies(){return K()},set policies(_=void 0){K(_),N()},get company(){return J()},set company(_=void 0){J(_),N()}},X=Mt();Fi("1xkklu8",_=>{var v=Mt(),$e=At(v);{var gt=ue=>{var st=Mt(),Ie=At(st);Ii(Ie,17,r,ke=>ke.content+""+ke.property+ke.name,(ke,A)=>{var lt=Mt(),Lt=At(lt);{var un=Le=>{var We=Gi();b(()=>{pt(We,"name",R(A).name),pt(We,"content",R(A).content)}),oe(Le,We)},H=Le=>{var We=Ki();b(()=>{pt(We,"property",R(A).property),pt(We,"content",R(A).content)}),oe(Le,We)};ln(Lt,Le=>{R(A).name?Le(un):R(A).property&&Le(H,1)})}oe(ke,lt)}),oe(ue,st)};ln($e,ue=>{r()&&ue(gt)})}oe(_,v)});var it=At(X);{var fe=_=>{var v=Ji();$(v,"id","layout_mobile"),b(()=>$(v,"page_title",C())),b(()=>$(v,"company",J())),b(()=>$(v,"sidebar",h())),b(()=>$(v,"pagename",o())),b(()=>$(v,"socials",d())),b(()=>$(v,"navlinks",p())),b(()=>$(v,"contacts",c())),b(()=>$(v,"i18nlang",m())),b(()=>$(v,"columns",g())),b(()=>$(v,"usermenu",T())),b(()=>$(v,"cookielawlanguage",l())),b(()=>$(v,"cookielawallowdecline",a())),b(()=>$(v,"cookielawuri4more",s())),b(()=>$(v,"cookielaw",f())),b(()=>$(v,"footer",i())),b(()=>$(v,"policies",K()));var $e=_e(v),gt=_e($e);De(gt,t,"page",{},H=>{var Le=hr("page");oe(H,Le)}),he($e);var ue=nt($e,2),st=_e(ue);De(st,t,"nav-header-slot",{},null),he(ue);var Ie=nt(ue,2),ke=_e(Ie);De(ke,t,"nav-left-slot",{},null),he(Ie);var A=nt(Ie,2),lt=_e(A);De(lt,t,"nav-center-slot",{},null),he(A);var Lt=nt(A,2),un=_e(Lt);De(un,t,"nav-right-slot",{},null),he(Lt),he(v),G("escreen",v,function(...H){u()?.apply(this,H)}),G("footerClick",v,H=>P("footerClick",H.detail)),G("pageChange",v,H=>P("pageChange",H.detail)),G("offcanvasswitch",v,H=>P("offcanvasswitch",H.detail)),G("layoutStatus",v,H=>P("layoutStatus",H.detail)),G("navbarSlotClick",v,H=>P("navbarSlotClick",H.detail)),oe(_,v)},fn=_=>{var v=Xi();$(v,"id","layout_desktop"),b(()=>$(v,"page_title",C())),b(()=>$(v,"company",J())),b(()=>$(v,"sidebar",h())),b(()=>$(v,"pagename",o())),b(()=>$(v,"socials",d())),b(()=>$(v,"navlinks",p())),b(()=>$(v,"contacts",c())),b(()=>$(v,"i18nlang",m())),b(()=>$(v,"columns",g())),b(()=>$(v,"usermenu",T())),b(()=>$(v,"cookielawlanguage",l())),b(()=>$(v,"cookielawallowdecline",a())),b(()=>$(v,"cookielawuri4more",s())),b(()=>$(v,"cookielaw",f())),b(()=>$(v,"footer",i())),b(()=>$(v,"policies",K()));var $e=_e(v),gt=_e($e);De(gt,t,"page",{},A=>{var lt=hr("page");oe(A,lt)}),he($e);var ue=nt($e,2),st=_e(ue);De(st,t,"nav-center-slot",{},null),he(ue);var Ie=nt(ue,2),ke=_e(Ie);De(ke,t,"nav-right-slot",{},null),he(Ie),he(v),G("escreen",v,function(...A){u()?.apply(this,A)}),G("navbarDropDownClick",v,A=>P("navbarDropDownClick",A.detail)),G("footerClick",v,A=>P("footerClick",A.detail)),G("pageChange",v,A=>P("pageChange",A.detail)),G("offcanvasswitch",v,A=>P("offcanvasswitch",A.detail)),G("layoutStatus",v,A=>P("layoutStatus",A.detail)),G("navbarSlotClick",v,A=>P("navbarSlotClick",A.detail)),oe(_,v)};ln(it,_=>{R(Y)<800?_(fe):_(fn,-1)})}return Yi("innerWidth",_=>ve(Y,_,!0)),oe(e,X),An(pe)}customElements.define("hb-layout",Wi(br,{id:{},heders:{},footer:{},cookielawuri4more:{},cookielawallowdecline:{},cookielawlanguage:{},pagename:{},cookielaw:{},onescreen:{},sidebar:{},socials:{},navlinks:{},contacts:{},columns:{},usermenu:{},i18nlang:{},page_title:{},policies:{},company:{}},["page","nav-header-slot","nav-left-slot","nav-center-slot","nav-right-slot"],[],{mode:"open"})),cn.Component=br,Object.defineProperty(cn,Symbol.toStringTag,{value:"Module"})})(this.layout=this.layout||{});
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ge&&console.warn("Failed to hydrate: ",a),t.recover===!1&&zr(),Jt(),Kn(n),V(!1),vr(e,t)}finally{V(r),F(i)}}const Dt=new Map;function _r(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:l}){Jt();var o=void 0,f=pi(()=>{var u=n??t.appendChild(U());ni(u,{pending:()=>{}},p=>{Sn({});var c=se;if(s&&(c.c=s),i&&(r.$$events=i),k&&Oe(p,null),o=e(p,r)||{},k&&(E.nodes.end=y,y===null||y.nodeType!==Ze||y.data!==Ft))throw $t(),Ge;An()},l);var h=new Set,d=p=>{for(var c=0;c<p.length;c++){var g=p[c];if(!h.has(g)){h.add(g);var T=Ni(g);for(const K of[t,document]){var m=Dt.get(K);m===void 0&&(m=new Map,Dt.set(K,m));var C=m.get(g);C===void 0?(K.addEventListener(g,rn,{passive:T}),m.set(g,1)):m.set(g,C+1)}}}};return d(mt(ki)),cr.add(d),()=>{for(var p of h)for(const T of[t,document]){var c=Dt.get(T),g=c.get(p);--g==0?(T.removeEventListener(p,rn),c.delete(p),c.size===0&&Dt.delete(T)):c.set(p,g)}cr.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return sn.set(o,f),o}let sn=new WeakMap;function Oi(e,t){const n=sn.get(e);return n?(sn.delete(e),n(t)):Promise.resolve()}class Mi{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)tn(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(a);l&&(j(l.effect),this.#t.delete(a))}for(const[s,a]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();nn(a,f),f.append(U()),this.#t.set(s,{effect:a,fragment:f})}else j(a);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Ye(a,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(j(i.effect),this.#t.delete(r))};ensure(t,n){var r=S,i=Jn();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),a=U();s.append(a),this.#t.set(t,{effect:te(()=>n(a)),fragment:s})}else this.#n.set(t,te(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,o]of this.#n)l===t?r.unskip_effect(o):r.skip_effect(o);for(const[l,o]of this.#t)l===t?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else k&&(this.anchor=y),this.#r(r)}}function ln(e,t,n=!1){var r;k&&(r=y,ot());var i=new Mi(e),s=n?Xe:0;function a(l,o){if(k){var f=$n(r);if(l!==parseInt(f.substring(1))){var u=kt();F(u),i.anchor=u,V(!1),i.ensure(l,o),V(!0);return}}i.ensure(l,o)}xt(()=>{var l=!1;t((o,f=0)=>{l=!0,a(f,o)}),l||a(-1,null)},s)}function Di(e,t,n){for(var r=[],i=t.length,s,a=t.length,l=0;l<i;l++){let h=t[l];Ye(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var d=e.outrogroups;an(e,mt(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var o=r.length===0&&n!==null;if(o){var f=n,u=f.parentNode;Kn(u),u.append(f),e.items.clear()}an(e,t,!o)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function an(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const a of e.pending.values())for(const l of a)r.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ge;const a=document.createDocumentFragment();nn(s,a)}else j(t[i],n)}}var pr;function Ii(e,t,n,r,i,s=null){var a=e,l=new Map;k&&ot();var o=null,f=ai(()=>{var m=n();return _n(m)?m:m==null?[]:mt(m)}),u,h=new Map,d=!0;function p(m){(T.effect.f&Q)===0&&(T.pending.delete(m),T.fallback=o,Li(T,u,a,t,r),o!==null&&(u.length===0?(o.f&ge)===0?tn(o):(o.f^=ge,_t(o,null,a)):Ye(o,()=>{o=null})))}function c(m){T.pending.delete(m)}var g=xt(()=>{u=R(f);var m=u.length;let C=!1;if(k){var K=$n(a)===Pt;K!==(m===0)&&(a=kt(),F(a),V(!1),C=!0)}for(var J=new Set,Y=S,P=Jn(),pe=0;pe<m;pe+=1){k&&y.nodeType===Ze&&y.data===Ft&&(a=y,C=!0,V(!1));var X=u[pe],it=r(X,pe),fe=d?null:l.get(it);fe?(fe.v&&tt(fe.v,X),fe.i&&tt(fe.i,pe),P&&Y.unskip_effect(fe.e)):(fe=Pi(l,d?a:pr??=U(),X,it,pe,i,t,n),d||(fe.e.f|=ge),l.set(it,fe)),J.add(it)}if(m===0&&s&&!o&&(d?o=te(()=>s(a)):(o=te(()=>s(pr??=U())),o.f|=ge)),m>J.size&&jr(),k&&m>0&&F(kt()),!d)if(h.set(Y,J),P){for(const[fn,_]of l)J.has(fn)||Y.skip_effect(_.e);Y.oncommit(p),Y.ondiscard(c)}else p(Y);C&&V(!0),R(f)}),T={effect:g,items:l,pending:h,outrogroups:null,fallback:o};d=!1,k&&(a=y)}function vt(e){for(;e!==null&&(e.f&ce)===0;)e=e.next;return e}function Li(e,t,n,r,i){var s=t.length,a=e.items,l=vt(e.effect.first),o,f=null,u=[],h=[],d,p,c,g;for(g=0;g<s;g+=1){if(d=t[g],p=i(d,g),c=a.get(p).e,e.outrogroups!==null)for(const X of e.outrogroups)X.pending.delete(c),X.done.delete(c);if((c.f&q)!==0&&tn(c),(c.f&ge)!==0)if(c.f^=ge,c===l)_t(c,null,n);else{var T=f?f.next:l;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),Me(e,f,c),Me(e,c,T),_t(c,T,n),f=c,u=[],h=[],l=vt(f.next);continue}if(c!==l){if(o!==void 0&&o.has(c)){if(u.length<h.length){var m=h[0],C;f=m.prev;var K=u[0],J=u[u.length-1];for(C=0;C<u.length;C+=1)_t(u[C],m,n);for(C=0;C<h.length;C+=1)o.delete(h[C]);Me(e,K.prev,J.next),Me(e,f,K),Me(e,J,m),l=m,f=J,g-=1,u=[],h=[]}else o.delete(c),_t(c,l,n),Me(e,c.prev,c.next),Me(e,c,f===null?e.effect.first:f.next),Me(e,f,c),f=c;continue}for(u=[],h=[];l!==null&&l!==c;)(o??=new Set).add(l),h.push(l),l=vt(l.next);if(l===null)continue}(c.f&ge)===0&&u.push(c),f=c,l=vt(c.next)}if(e.outrogroups!==null){for(const X of e.outrogroups)X.pending.size===0&&(an(e,mt(X.done)),e.outrogroups?.delete(X));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||o!==void 0){var Y=[];if(o!==void 0)for(c of o)(c.f&q)===0&&Y.push(c);for(;l!==null;)(l.f&q)===0&&l!==e.fallback&&Y.push(l),l=vt(l.next);var P=Y.length;if(P>0){var pe=null;Di(e,Y,pe)}}}function Pi(e,t,n,r,i,s,a,l){var o=(a&Er)!==0?(a&kr)===0?Yn(n,!1,!1):ze(n):null,f=(a&$r)!==0?ze(i):null;return{v:o,i:f,e:te(()=>(s(t,o??n,f??i,l),()=>{e.delete(r)}))}}function _t(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ge)===0?t.nodes.start:n;r!==null;){var a=ee(r);if(s.before(r),r===i)return;r=a}}function Me(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function De(e,t,n,r,i){k&&ot();var s=t.$$slots?.[n],a=!1;s===!0&&(s=t[n==="default"?"children":n],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>r:r)}function Fi(e,t){let n=null,r=k;var i;if(k){n=y;for(var s=Be(document.head);s!==null&&(s.nodeType!==Ze||s.data!==e);)s=ee(s);if(s===null)V(!1);else{var a=ee(s);s.remove(),F(a)}}k||(i=document.head.appendChild(U()));try{xt(()=>t(i),En|Ae)}finally{r&&(V(!0),F(n))}}const ji=Symbol("is custom element"),Hi=Symbol("is html"),zi=Pr?"link":"LINK";function pt(e,t,n,r){var i=Bi(e);k&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===zi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Lr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&gr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $(e,t,n){var r=w,i=E;let s=k;k&&V(!1),z(null),ne(null);try{t!=="style"&&(on.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?gr(e).includes(t):n&&typeof n=="object")?e[t]=n:pt(e,t,n==null?n:String(n))}finally{z(r),ne(i),s&&V(!0)}}function Bi(e){return e.__attributes??={[ji]:e.nodeName.includes("-"),[Hi]:e.namespaceURI===vn}}var on=new Map;function gr(e){var t=e.getAttribute("is")||e.nodeName,n=on.get(t);if(n)return n;on.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=xr(i);for(var a in r)r[a].set&&n.push(a);i=pn(i)}return n}function Yi(e,t){di(window,["resize"],()=>Ct(()=>t(window[e])))}function M(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=a());var o;o=()=>{var d=e[t];return d===void 0?a():(s=!0,d)};var f=!1,u=Wt(()=>(f=!1,o())),h=E;return(function(d,p){if(arguments.length>0){const c=p?R(u):d;return ve(u,c),f=!0,i!==void 0&&(i=c),d}return qe&&f||(h.f&Q)!==0?u.v:R(u)})}function qi(e){return new Vi(e)}class Vi{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var l=Yn(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return R(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===Ir?!0:(R(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return ve(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#n=(t.hydrate?Ri:vr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&N(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||yt(this,s,{get(){return this.#n[s]},set(a){this.#n[s]=a},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Oi(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let mr;typeof HTMLElement=="function"&&(mr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=Xn("slot");r!=="default"&&(s.name=r),oe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ui(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=It(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=qi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_i(()=>{Zn(()=>{this.$$r=!0;for(const r of wt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=It(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=It(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return wt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function It(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ui(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Wi(e,t,n,r,i,s){let a=class extends mr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return wt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return wt(t).forEach(l=>{yt(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=It(l,o,t),this.$$d[l]=o;var f=this.$$c;if(f){var u=Je(f,l)?.get;u?f[l]=o:f.$set({[l]:o})}}})}),r.forEach(l=>{yt(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const wr={version:"0.66.5"};function yr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Gi=Ot("<meta/>"),Ki=Ot("<meta/>"),Ji=Ot('<hb-layout-mobile><div slot="page"><!></div> <span slot="nav-header-slot"><!></span> <span slot="nav-left-slot"><!></span> <span slot="nav-center-slot"><!></span> <span slot="nav-right-slot"><!></span></hb-layout-mobile>',2),Xi=Ot('<hb-layout-desktop><div slot="page"><!></div> <div slot="nav-center-slot"><!></div> <div slot="nav-right-slot"><!></div></hb-layout-desktop>',2);function br(e,t){Sn(t,!0);let n=M(t,"id",7,""),r=M(t,"heders",7,void 0),i=M(t,"footer",7,void 0),s=M(t,"cookielawuri4more",7,""),a=M(t,"cookielawallowdecline",7,!1),l=M(t,"cookielawlanguage",7,""),o=M(t,"pagename",7,void 0),f=M(t,"cookielaw",7,void 0),u=M(t,"onescreen",7,void 0),h=M(t,"sidebar",7,void 0),d=M(t,"socials",7,void 0),p=M(t,"navlinks",7,void 0),c=M(t,"contacts",7,void 0),g=M(t,"columns",7,void 0),T=M(t,"usermenu",7,void 0),m=M(t,"i18nlang",7,void 0),C=M(t,"page_title",7,void 0),K=M(t,"policies",7,void 0),J=M(t,"company",7,void 0),Y=be(0);function P(_,v){t.$$host.dispatchEvent(new CustomEvent(_,{detail:v}))}yr({repoName:"@htmlbricks/hb-layout-desktop",version:wr.version}),yr({repoName:"@htmlbricks/hb-layout-mobile",version:wr.version});var pe={get id(){return n()},set id(_=""){n(_),N()},get heders(){return r()},set heders(_=void 0){r(_),N()},get footer(){return i()},set footer(_=void 0){i(_),N()},get cookielawuri4more(){return s()},set cookielawuri4more(_=""){s(_),N()},get cookielawallowdecline(){return a()},set cookielawallowdecline(_=!1){a(_),N()},get cookielawlanguage(){return l()},set cookielawlanguage(_=""){l(_),N()},get pagename(){return o()},set pagename(_=void 0){o(_),N()},get cookielaw(){return f()},set cookielaw(_=void 0){f(_),N()},get onescreen(){return u()},set onescreen(_=void 0){u(_),N()},get sidebar(){return h()},set sidebar(_=void 0){h(_),N()},get socials(){return d()},set socials(_=void 0){d(_),N()},get navlinks(){return p()},set navlinks(_=void 0){p(_),N()},get contacts(){return c()},set contacts(_=void 0){c(_),N()},get columns(){return g()},set columns(_=void 0){g(_),N()},get usermenu(){return T()},set usermenu(_=void 0){T(_),N()},get i18nlang(){return m()},set i18nlang(_=void 0){m(_),N()},get page_title(){return C()},set page_title(_=void 0){C(_),N()},get policies(){return K()},set policies(_=void 0){K(_),N()},get company(){return J()},set company(_=void 0){J(_),N()}},X=Mt();Fi("1xkklu8",_=>{var v=Mt(),$e=At(v);{var gt=ue=>{var st=Mt(),Ie=At(st);Ii(Ie,17,r,ke=>ke.content+""+ke.property+ke.name,(ke,A)=>{var lt=Mt(),Lt=At(lt);{var un=Le=>{var We=Gi();b(()=>{pt(We,"name",R(A).name),pt(We,"content",R(A).content)}),oe(Le,We)},H=Le=>{var We=Ki();b(()=>{pt(We,"property",R(A).property),pt(We,"content",R(A).content)}),oe(Le,We)};ln(Lt,Le=>{R(A).name?Le(un):R(A).property&&Le(H,1)})}oe(ke,lt)}),oe(ue,st)};ln($e,ue=>{r()&&ue(gt)})}oe(_,v)});var it=At(X);{var fe=_=>{var v=Ji();$(v,"id","layout_mobile"),b(()=>$(v,"page_title",C())),b(()=>$(v,"company",J())),b(()=>$(v,"sidebar",h())),b(()=>$(v,"pagename",o())),b(()=>$(v,"socials",d())),b(()=>$(v,"navlinks",p())),b(()=>$(v,"contacts",c())),b(()=>$(v,"i18nlang",m())),b(()=>$(v,"columns",g())),b(()=>$(v,"usermenu",T())),b(()=>$(v,"cookielawlanguage",l())),b(()=>$(v,"cookielawallowdecline",a())),b(()=>$(v,"cookielawuri4more",s())),b(()=>$(v,"cookielaw",f())),b(()=>$(v,"footer",i())),b(()=>$(v,"policies",K()));var $e=_e(v),gt=_e($e);De(gt,t,"page",{},H=>{var Le=hr("page");oe(H,Le)}),he($e);var ue=nt($e,2),st=_e(ue);De(st,t,"nav-header-slot",{},null),he(ue);var Ie=nt(ue,2),ke=_e(Ie);De(ke,t,"nav-left-slot",{},null),he(Ie);var A=nt(Ie,2),lt=_e(A);De(lt,t,"nav-center-slot",{},null),he(A);var Lt=nt(A,2),un=_e(Lt);De(un,t,"nav-right-slot",{},null),he(Lt),he(v),G("escreen",v,function(...H){u()?.apply(this,H)}),G("footerClick",v,H=>P("footerClick",H.detail)),G("pageChange",v,H=>P("pageChange",H.detail)),G("offcanvasswitch",v,H=>P("offcanvasswitch",H.detail)),G("layoutStatus",v,H=>P("layoutStatus",H.detail)),G("navbarSlotClick",v,H=>P("navbarSlotClick",H.detail)),oe(_,v)},fn=_=>{var v=Xi();$(v,"id","layout_desktop"),b(()=>$(v,"page_title",C())),b(()=>$(v,"company",J())),b(()=>$(v,"sidebar",h())),b(()=>$(v,"pagename",o())),b(()=>$(v,"socials",d())),b(()=>$(v,"navlinks",p())),b(()=>$(v,"contacts",c())),b(()=>$(v,"i18nlang",m())),b(()=>$(v,"columns",g())),b(()=>$(v,"usermenu",T())),b(()=>$(v,"cookielawlanguage",l())),b(()=>$(v,"cookielawallowdecline",a())),b(()=>$(v,"cookielawuri4more",s())),b(()=>$(v,"cookielaw",f())),b(()=>$(v,"footer",i())),b(()=>$(v,"policies",K()));var $e=_e(v),gt=_e($e);De(gt,t,"page",{},A=>{var lt=hr("page");oe(A,lt)}),he($e);var ue=nt($e,2),st=_e(ue);De(st,t,"nav-center-slot",{},null),he(ue);var Ie=nt(ue,2),ke=_e(Ie);De(ke,t,"nav-right-slot",{},null),he(Ie),he(v),G("escreen",v,function(...A){u()?.apply(this,A)}),G("navbarDropDownClick",v,A=>P("navbarDropDownClick",A.detail)),G("footerClick",v,A=>P("footerClick",A.detail)),G("pageChange",v,A=>P("pageChange",A.detail)),G("offcanvasswitch",v,A=>P("offcanvasswitch",A.detail)),G("layoutStatus",v,A=>P("layoutStatus",A.detail)),G("navbarSlotClick",v,A=>P("navbarSlotClick",A.detail)),oe(_,v)};ln(it,_=>{R(Y)<800?_(fe):_(fn,-1)})}return Yi("innerWidth",_=>ve(Y,_,!0)),oe(e,X),An(pe)}customElements.define("hb-layout",Wi(br,{id:{},heders:{},footer:{},cookielawuri4more:{},cookielawallowdecline:{},cookielawlanguage:{},pagename:{},cookielaw:{},onescreen:{},sidebar:{},socials:{},navlinks:{},contacts:{},columns:{},usermenu:{},i18nlang:{},page_title:{},policies:{},company:{}},["page","nav-header-slot","nav-left-slot","nav-center-slot","nav-right-slot"],[],{mode:"open"})),cn.Component=br,Object.defineProperty(cn,Symbol.toStringTag,{value:"Module"})})(this.layout=this.layout||{});
3
3
  //# sourceMappingURL=main.iife.js.map
package/manifest.json CHANGED
@@ -823,8 +823,7 @@
823
823
  }
824
824
  }
825
825
  ],
826
- "iifeIntegrity": "sha384-TIJz8w7xzEMnw2M39UAEn5vTC4oXnNYHmmFwKD98kfx5sxNZNbqqe3ewTX1ZXuAk",
827
- "iifeIntegrityType": "sha384",
826
+ "iifeIntegrity": "sha384-xujJHn+09gop4zWGM0YXEJrf8H4OnatwAqtqEKZ0hIHOhcV3TXvN4ZwDExUGpO6A",
828
827
  "screenshots": [],
829
828
  "licenses": [
830
829
  {
@@ -846,5 +845,5 @@
846
845
  },
847
846
  "iifePath": "main.iife.js",
848
847
  "repoName": "@htmlbricks/hb-layout",
849
- "version": "0.66.4"
848
+ "version": "0.66.5"
850
849
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-layout",
3
- "version": "0.66.4",
3
+ "version": "0.66.5",
4
4
  "contributors": [],
5
5
  "description": "Responsive application shell: below 800px viewport width it mounts the mobile layout; otherwise the desktop layout. Forwards navigation slots, page content, cookie-law options, and layout events from the active child.",
6
6
  "licenses": [