@htmlbricks/hb-input-array-objects 0.65.22 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +5 -42
- package/package.json +2 -2
package/main.iife.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Dr=1,Mr=2,St="[",ft="[!",Tt="]",ye={},k=Symbol(),Pr="http://www.w3.org/1999/xhtml",ut=!1;var Ir=Array.isArray,Fr=Array.prototype.indexOf,Jr=Array.from,Ve=Object.keys,Ye=Object.defineProperty,we=Object.getOwnPropertyDescriptor,qr=Object.getOwnPropertyDescriptors,Br=Object.prototype,Hr=Array.prototype,Nt=Object.getPrototypeOf,Ot=Object.isExtensible;function Ur(e){for(var t=0;t<e.length;t++)e[t]()}function At(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const x=2,ct=4,dt=8,K=16,X=32,ie=64,ze=128,B=512,S=1024,C=2048,Z=4096,V=8192,Q=16384,We=32768,$e=65536,Ct=1<<17,Rt=1<<18,ce=1<<19,Vr=1<<20,de=32768,ht=1<<21,bt=1<<22,oe=1<<23,vt=Symbol("$state"),Yr=Symbol("legacy props"),zr=Symbol(""),Ee=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ge=3,Ae=8;function Wr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Gr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Kr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Zr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Qr(){throw new Error("https://svelte.dev/e/hydration_failed")}function en(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function tn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function nn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function sn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let p=!1;function ae(e){p=e}let y;function D(e){if(e===null)throw Ke(),ye;return y=e}function Xe(){return D(te(y))}function Ce(e){if(p){if(te(y)!==null)throw Ke(),ye;y=e}}function on(e=1){if(p){for(var t=e,r=y;t--;)r=te(r);y=r}}function Lt(e=!0){for(var t=0,r=y;;){if(r.nodeType===Ae){var n=r.data;if(n===Tt){if(t===0)return r;t-=1}else(n===St||n===ft)&&(t+=1)}var s=te(r);e&&r.remove(),r=s}}function an(e){if(!e||e.nodeType!==Ae)throw Ke(),ye;return e.data}function jt(e){return e===this.v}function ln(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function fn(e){return!ln(e,this.v)}let un=!1,M=null;function xe(e){M=e}function Dt(e,t=!1,r){M={p:M,i:!1,c:null,e:null,s:e,x:null,l:null}}function Mt(e){var t=M,r=t.e;if(r!==null){t.e=null;for(var n of r)tr(n)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function Pt(){return!0}let he=[];function It(){var e=he;he=[],Ur(e)}function Ze(e){if(he.length===0&&!Re){var t=he;queueMicrotask(()=>{t===he&&It()})}he.push(e)}function cn(){for(;he.length>0;)It()}function Ft(e){var t=_;if(t===null)return v.f|=oe,e;if((t.f&We)===0){if((t.f&ze)===0)throw e;t.b.error(e)}else ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&ze)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Qe=new Set;let $=null,P=null,I=[],et=null,_t=!1,Re=!1;class H{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#i=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){I=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#o(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):($=null,qt(r.render_effects),qt(r.effects),this.#l?.resolve()),P=null}#o(t,r){t.f^=S;for(var n=t.first;n!==null;){var s=n.f,i=(s&(X|ie))!==0,o=i&&(s&S)!==0,a=o||(s&V)!==0||this.skipped_effects.has(n);if((n.f&ze)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){i?n.f^=S:(s&ct)!==0?r.effects.push(n):Ie(n)&&((n.f&K)!==0&&r.block_effects.push(n),Fe(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#a(t){for(const r of t)((r.f&C)!==0?this.#i:this.#s).push(r),this.#f(r.deps),N(r,S)}#f(t){if(t!==null)for(const r of t)(r.f&x)===0||(r.f&de)===0||(r.f^=de,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&oe)===0&&(this.current.set(t,t.v),P?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,P=null)}flush(){if(this.activate(),I.length>0){if(Jt(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Qe.size>1){this.previous.clear();var t=P,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Qe){if(i===this){r=!1;continue}const o=[];for(const[l,f]of this.current){if(i.current.has(l))if(r&&f!==i.current.get(l))i.current.set(l,f);else continue;o.push(l)}if(o.length===0)continue;const a=[...i.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var s=I;I=[];const l=new Set,f=new Map;for(const u of o)Bt(u,a,l,f);if(I.length>0){$=i,i.apply();for(const u of I)i.#o(u,n);i.deactivate()}I=s}}$=null,P=t}this.committed=!0,Qe.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#i)N(t,C),be(t);for(const t of this.#s)N(t,Z),be(t);this.#i=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=At()).promise}static ensure(){if($===null){const t=$=new H;Qe.add($),Re||H.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){Ze(t)}apply(){}}function tt(e){var t=Re;Re=!0;try{for(var r;;){if(cn(),I.length===0&&($?.flush(),I.length===0))return et=null,r;Jt()}}finally{Re=t}}function Jt(){var e=fe;_t=!0;var t=null;try{var r=0;for(it(!0);I.length>0;){var n=H.ensure();if(r++>1e3){var s,i;dn()}n.process(I),le.clear()}}finally{_t=!1,it(e),et=null}}function dn(){try{Zr()}catch(e){ke(e,et)}}let ee=null;function qt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Q|V))===0&&Ie(n)&&(ee=new Set,Fe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?or(n):n.fn=null),ee?.size>0)){le.clear();for(const s of ee){if((s.f&(Q|V))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)ee.has(o)&&(ee.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const l=i[a];(l.f&(Q|V))===0&&Fe(l)}}ee.clear()}}ee=null}}function Bt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&x)!==0?Bt(s,t,r,n):(i&(bt|K))!==0&&(i&C)===0&&Ht(s,t,n)&&(N(s,C),be(s))}}function Ht(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&x)!==0&&Ht(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function be(e){for(var t=et=e;t.parent!==null;){t=t.parent;var r=t.f;if(_t&&t===_&&(r&K)!==0&&(r&Rt)===0)return;if((r&(ie|X))!==0){if((r&S)===0)return;t.f^=S}}I.push(t)}function hn(e){let t=0,r=Le(0),n;return()=>{st()&&(b(r),rr(()=>(t===0&&(n=Fn(()=>e(()=>je(r)))),t+=1,()=>{Ze(()=>{t-=1,t===0&&(n?.(),n=void 0,je(r))})})))}}var bn=$e|ce|ze;function vn(e,t,r){new _n(e,t,r)}class _n{parent;#t=!1;#e;#r=p?y:null;#n;#l;#i;#s=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#b=!1;#h=null;#m=hn(()=>(this.#h=Le(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=_.b,this.#t=!!this.#n.pending,this.#i=nr(()=>{if(_.b=this,p){const i=this.#r;Xe(),i.nodeType===Ae&&i.data===ft?this.#w():this.#y()}else{var s=this.#g();try{this.#s=re(()=>n(s))}catch(i){this.error(i)}this.#d>0?this.#_():this.#t=!1}return()=>{this.#u?.remove()}},bn),p&&(this.#e=y)}#y(){try{this.#s=re(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#o=re(()=>t(this.#e)),H.enqueue(()=>{var r=this.#g();this.#s=this.#v(()=>(H.ensure(),re(()=>this.#l(r)))),this.#d>0?this.#_():(Me(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=z(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#v(t){var r=_,n=v,s=M;F(this.#i),T(this.#i),xe(this.#i.ctx);try{return t()}catch(i){return Ft(i),null}finally{F(r),T(n),xe(s)}}#_(){const t=this.#n.pending;this.#s!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),fr(this.#s,this.#f)),this.#o===null&&(this.#o=re(()=>t(this.#e)))}#p(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#p(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&Me(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#p(t),this.#c+=t,this.#h&&nt(this.#h,this.#c)}get_effect_pending(){return this.#m(),b(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#b||!r&&!n)throw t;this.#s&&(L(this.#s),this.#s=null),this.#o&&(L(this.#o),this.#o=null),this.#a&&(L(this.#a),this.#a=null),p&&(D(this.#r),on(),D(Lt()));var s=!1,i=!1;const o=()=>{if(s){sn();return}s=!0,i&&nn(),H.ensure(),this.#c=0,this.#a!==null&&Me(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#s=this.#v(()=>(this.#b=!1,re(()=>this.#l(this.#e)))),this.#d>0?this.#_():this.#t=!1};var a=v;try{T(null),i=!0,r?.(t,o),i=!1}catch(l){ke(l,this.#i&&this.#i.parent)}finally{T(a)}n&&Ze(()=>{this.#a=this.#v(()=>{H.ensure(),this.#b=!0;try{return re(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return ke(l,this.#i.parent),null}finally{this.#b=!1}})})}}function gn(e,t,r,n){const s=gt;if(r.length===0&&e.length===0){n(t.map(s));return}var i=$,o=_,a=pn();function l(){Promise.all(r.map(f=>mn(f))).then(f=>{a();try{n([...t.map(s),...f])}catch(u){(o.f&Q)===0&&ke(u,o)}i?.deactivate(),rt()}).catch(f=>{ke(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{i?.deactivate(),rt()}}):l()}function pn(){var e=_,t=v,r=M,n=$;return function(i=!0){F(e),T(t),xe(r),i&&n?.activate()}}function rt(){F(null),T(null),xe(null)}function gt(e){var t=x|C,r=v!==null&&(v.f&x)!==0?v:null;return _!==null&&(_.f|=ce),{ctx:M,deps:null,effects:null,equals:jt,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:r??_,ac:null}}function mn(e,t){let r=_;r===null&&Wr();var n=r.b,s=void 0,i=Le(k),o=!v,a=new Map;return Rn(()=>{var l=At();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===$&&f.committed&&f.deactivate(),rt()})}catch(c){l.reject(c),rt()}var f=$;if(o){var u=!n.is_pending();n.update_pending_count(1),f.increment(u),a.get(f)?.reject(Ee),a.delete(f),a.set(f,l)}const h=(c,d=void 0)=>{if(f.activate(),d)d!==Ee&&(i.f|=oe,nt(i,d));else{(i.f&oe)!==0&&(i.f^=oe),nt(i,c);for(const[m,U]of a){if(a.delete(m),m===f)break;U.reject(Ee)}}o&&(n.update_pending_count(-1),f.decrement(u))};l.promise.then(h,c=>h(null,c||"unknown"))}),Qt(()=>{for(const l of a.values())l.reject(Ee)}),new Promise(l=>{function f(u){function h(){u===s?l(i):f(s)}u.then(h,h)}f(s)})}function yn(e){const t=gt(e);return cr(t),t}function Ut(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)L(t[r])}}function wn(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&Q)===0?t:null;t=t.parent}return null}function pt(e){var t,r=_;F(wn(e));try{e.f&=~de,Ut(e),t=_r(e)}finally{F(r)}return t}function Vt(e){var t=pt(e);if(e.equals(t)||($?.is_fork||(e.v=t),e.wv=br()),!ve)if(P!==null)st()&&P.set(e,t);else{var r=(e.f&B)===0?Z:S;N(e,r)}}let mt=new Set;const le=new Map;let Yt=!1;function Le(e,t){var r={f:0,v:e,reactions:null,equals:jt,rv:0,wv:0};return r}function R(e,t){const r=Le(e);return cr(r),r}function $n(e,t=!1,r=!0){const n=Le(e);return t||(n.equals=fn),n}function E(e,t,r=!1){v!==null&&(!G||(v.f&Ct)!==0)&&Pt()&&(v.f&(x|K|bt|Ct))!==0&&!ne?.includes(e)&&rn();let n=r?Y(t):t;return nt(e,n)}function nt(e,t){if(!e.equals(t)){var r=e.v;ve?le.set(e,t):le.set(e,r),e.v=t;var n=H.ensure();n.capture(e,r),(e.f&x)!==0&&((e.f&C)!==0&&pt(e),N(e,(e.f&B)!==0?S:Z)),e.wv=br(),zt(e,C),_!==null&&(_.f&S)!==0&&(_.f&(X|ie))===0&&(J===null?Pn([e]):J.push(e)),!n.is_fork&&mt.size>0&&!Yt&&En()}return t}function En(){Yt=!1;var e=fe;it(!0);const t=Array.from(mt);try{for(const r of t)(r.f&S)!==0&&N(r,Z),Ie(r)&&Fe(r)}finally{it(e)}mt.clear()}function je(e){E(e,e.v+1)}function zt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,a=(o&C)===0;if(a&&N(i,t),(o&x)!==0){var l=i;P?.delete(l),(o&de)===0&&(o&B&&(i.f|=de),zt(l,Z))}else a&&((o&K)!==0&&ee!==null&&ee.add(i),be(i))}}function Y(e){if(typeof e!="object"||e===null||vt in e)return e;const t=Nt(e);if(t!==Br&&t!==Hr)return e;var r=new Map,n=Ir(e),s=R(0),i=_e,o=a=>{if(_e===i)return a();var l=v,f=_e;T(null),hr(i);var u=a();return T(l),hr(f),u};return n&&r.set("length",R(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&en();var u=r.get(l);return u===void 0?u=o(()=>{var h=R(f.value);return r.set(l,h),h}):E(u,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const u=o(()=>R(k));r.set(l,u),je(s)}}else E(f,k),je(s);return!0},get(a,l,f){if(l===vt)return e;var u=r.get(l),h=l in a;if(u===void 0&&(!h||we(a,l)?.writable)&&(u=o(()=>{var d=Y(h?a[l]:k),m=R(d);return m}),r.set(l,u)),u!==void 0){var c=b(u);return c===k?void 0:c}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var u=r.get(l);u&&(f.value=b(u))}else if(f===void 0){var h=r.get(l),c=h?.v;if(h!==void 0&&c!==k)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(a,l){if(l===vt)return!0;var f=r.get(l),u=f!==void 0&&f.v!==k||Reflect.has(a,l);if(f!==void 0||_!==null&&(!u||we(a,l)?.writable)){f===void 0&&(f=o(()=>{var c=u?Y(a[l]):k,d=R(c);return d}),r.set(l,f));var h=b(f);if(h===k)return!1}return u},set(a,l,f,u){var h=r.get(l),c=l in a;if(n&&l==="length")for(var d=f;d<h.v;d+=1){var m=r.get(d+"");m!==void 0?E(m,k):d in a&&(m=o(()=>R(k)),r.set(d+"",m))}if(h===void 0)(!c||we(a,l)?.writable)&&(h=o(()=>R(void 0)),E(h,Y(f)),r.set(l,h));else{c=h.v!==k;var U=o(()=>Y(f));E(h,U)}var se=Reflect.getOwnPropertyDescriptor(a,l);if(se?.set&&se.set.call(u,f),!c){if(n&&typeof l=="string"){var Be=r.get("length"),pe=Number(l);Number.isInteger(pe)&&pe>=Be.v&&E(Be,pe+1)}je(s)}return!0},ownKeys(a){b(s);var l=Reflect.ownKeys(a).filter(h=>{var c=r.get(h);return c===void 0||c.v!==k});for(var[f,u]of r)u.v!==k&&!(f in a)&&l.push(f);return l},setPrototypeOf(){tn()}})}var Wt,Gt,Kt,Xt;function yt(){if(Wt===void 0){Wt=window,Gt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Kt=we(t,"firstChild").get,Xt=we(t,"nextSibling").get,Ot(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ot(r)&&(r.__t=void 0)}}function z(e=""){return document.createTextNode(e)}function Se(e){return Kt.call(e)}function te(e){return Xt.call(e)}function De(e,t){if(!p)return Se(e);var r=Se(y);if(r===null)r=y.appendChild(z());else if(t&&r.nodeType!==Ge){var n=z();return r?.before(n),D(n),n}return D(r),r}function xn(e,t=!1){if(!p){var r=Se(e);return r instanceof Comment&&r.data===""?te(r):r}if(t&&y?.nodeType!==Ge){var n=z();return y?.before(n),D(n),n}return y}function Zt(e,t=1,r=!1){let n=p?y:e;for(var s;t--;)s=n,n=te(n);if(!p)return n;if(r&&n?.nodeType!==Ge){var i=z();return n===null?s?.after(i):n.before(i),D(i),i}return D(n),n}function kn(e){e.textContent=""}function Sn(){return!1}function wt(e){var t=v,r=_;T(null),F(null);try{return e()}finally{T(t),F(r)}}function Tn(e){_===null&&(v===null&&Xr(),Kr()),ve&&Gr()}function Nn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function W(e,t,r){var n=_;n!==null&&(n.f&V)!==0&&(e|=V);var s={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|C|B,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Fe(s),s.f|=We}catch(a){throw L(s),a}else t!==null&&be(s);var i=s;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&ce)===0&&(i=i.first,(e&K)!==0&&(e&$e)!==0&&i!==null&&(i.f|=$e)),i!==null&&(i.parent=n,n!==null&&Nn(i,n),v!==null&&(v.f&x)!==0&&(e&ie)===0)){var o=v;(o.effects??=[]).push(i)}return s}function st(){return v!==null&&!G}function Qt(e){const t=W(dt,null,!1);return N(t,S),t.teardown=e,t}function er(e){Tn();var t=_.f,r=!v&&(t&X)!==0&&(t&We)===0;if(r){var n=M;(n.e??=[]).push(e)}else return tr(e)}function tr(e){return W(ct|Vr,e,!1)}function On(e){H.ensure();const t=W(ie|ce,e,!0);return()=>{L(t)}}function An(e){H.ensure();const t=W(ie|ce,e,!0);return(r={})=>new Promise(n=>{r.outro?Me(t,()=>{L(t),n(void 0)}):(L(t),n(void 0))})}function Cn(e){return W(ct,e,!1)}function Rn(e){return W(bt|ce,e,!0)}function rr(e,t=0){return W(dt|t,e,!0)}function Te(e,t=[],r=[],n=[]){gn(n,t,r,s=>{W(dt,()=>e(...s.map(b)),!0)})}function nr(e,t=0){var r=W(K|t,e,!0);return r}function re(e){return W(X|ce,e,!0)}function sr(e){var t=e.teardown;if(t!==null){const r=ve,n=v;ur(!0),T(null);try{t.call(null)}finally{ur(r),T(n)}}}function ir(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&wt(()=>{s.abort(Ee)});var n=r.next;(r.f&ie)!==0?r.parent=null:L(r,t),r=n}}function Ln(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&X)===0&&L(t),t=r}}function L(e,t=!0){var r=!1;(t||(e.f&Rt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(jn(e.nodes_start,e.nodes_end),r=!0),ir(e,t&&!r),ot(e,0),N(e,Q);var n=e.transitions;if(n!==null)for(const i of n)i.stop();sr(e);var s=e.parent;s!==null&&s.first!==null&&or(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function jn(e,t){for(;e!==null;){var r=e===t?null:te(e);e.remove(),e=r}}function or(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Me(e,t,r=!0){var n=[];ar(e,n,!0),Dn(n,()=>{r&&L(e),t&&t()})}function Dn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function ar(e,t,r){if((e.f&V)===0){if(e.f^=V,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&$e)!==0||(n.f&X)!==0&&(e.f&K)!==0;ar(n,t,i?r:!1),n=s}}}function Mn(e){lr(e,!0)}function lr(e,t){if((e.f&V)!==0){e.f^=V,(e.f&S)===0&&(N(e,C),be(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&$e)!==0||(r.f&X)!==0;lr(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function fr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:te(r);t.append(r),r=s}}let fe=!1;function it(e){fe=e}let ve=!1;function ur(e){ve=e}let v=null,G=!1;function T(e){v=e}let _=null;function F(e){_=e}let ne=null;function cr(e){v!==null&&(ne===null?ne=[e]:ne.push(e))}let O=null,j=0,J=null;function Pn(e){J=e}let dr=1,Pe=0,_e=Pe;function hr(e){_e=e}function br(){return++dr}function Ie(e){var t=e.f;if((t&C)!==0)return!0;if(t&x&&(e.f&=~de),(t&Z)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(Ie(i)&&Vt(i),i.wv>e.wv)return!0}(t&B)!==0&&P===null&&N(e,S)}return!1}function vr(e,t,r=!0){var n=e.reactions;if(n!==null&&!ne?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&x)!==0?vr(i,t,!1):t===i&&(r?N(i,C):(i.f&S)!==0&&N(i,Z),be(i))}}function _r(e){var t=O,r=j,n=J,s=v,i=ne,o=M,a=G,l=_e,f=e.f;O=null,j=0,J=null,v=(f&(X|ie))===0?e:null,ne=null,xe(e.ctx),G=!1,_e=++Pe,e.ac!==null&&(wt(()=>{e.ac.abort(Ee)}),e.ac=null);try{e.f|=ht;var u=e.fn,h=u(),c=e.deps;if(O!==null){var d;if(ot(e,j),c!==null&&j>0)for(c.length=j+O.length,d=0;d<O.length;d++)c[j+d]=O[d];else e.deps=c=O;if(fe&&st()&&(e.f&B)!==0)for(d=j;d<c.length;d++)(c[d].reactions??=[]).push(e)}else c!==null&&j<c.length&&(ot(e,j),c.length=j);if(Pt()&&J!==null&&!G&&c!==null&&(e.f&(x|Z|C))===0)for(d=0;d<J.length;d++)vr(J[d],e);return s!==null&&s!==e&&(Pe++,J!==null&&(n===null?n=J:n.push(...J))),(e.f&oe)!==0&&(e.f^=oe),h}catch(m){return Ft(m)}finally{e.f^=ht,O=t,j=r,J=n,v=s,ne=i,xe(o),G=a,_e=l}}function In(e,t){let r=t.reactions;if(r!==null){var n=Fr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&x)!==0&&(O===null||!O.includes(t))&&(N(t,Z),(t.f&B)!==0&&(t.f^=B,t.f&=~de),Ut(t),ot(t,0))}function ot(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)In(e,r[n])}function Fe(e){var t=e.f;if((t&Q)===0){N(e,S);var r=_,n=fe;_=e,fe=!0;try{(t&K)!==0?Ln(e):ir(e),sr(e);var s=_r(e);e.teardown=typeof s=="function"?s:null,e.wv=dr;var i;ut&&un&&(e.f&C)!==0&&e.deps}finally{fe=n,_=r}}}function b(e){var t=e.f,r=(t&x)!==0;if(v!==null&&!G){var n=_!==null&&(_.f&Q)!==0;if(!n&&!ne?.includes(e)){var s=v.deps;if((v.f&ht)!==0)e.rv<Pe&&(e.rv=Pe,O===null&&s!==null&&s[j]===e?j++:O===null?O=[e]:O.includes(e)||O.push(e));else{(v.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[v]:i.includes(v)||i.push(v)}}}if(ve){if(le.has(e))return le.get(e);if(r){var o=e,a=o.v;return((o.f&S)===0&&o.reactions!==null||pr(o))&&(a=pt(o)),le.set(o,a),a}}else r&&!P?.has(e)&&(o=e,Ie(o)&&Vt(o),fe&&st()&&(o.f&B)===0&&gr(o));if(P?.has(e))return P.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function gr(e){if(e.deps!==null){e.f^=B;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&B)===0&&gr(t)}}function pr(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(le.has(t)||(t.f&x)!==0&&pr(t))return!0;return!1}function Fn(e){var t=G;try{return G=!0,e()}finally{G=t}}const Jn=-7169;function N(e,t){e.f=e.f&Jn|t}const qn=new Set,mr=new Set;function Bn(e,t,r,n={}){function s(i){if(n.capture||Je.call(t,i),!i.cancelBubble)return wt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ze(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function yr(e,t,r,n,s){var i={capture:n,passive:s},o=Bn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qt(()=>{t.removeEventListener(e,o,i)})}let wr=null;function Je(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;wr=e;var o=0,a=wr===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(i=s[o]||e.target,i!==t){Ye(e,"currentTarget",{configurable:!0,get(){return i||r}});var u=v,h=_;T(null),F(null);try{for(var c,d=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var U=i["__"+n];U!=null&&(!i.disabled||e.target===i)&&U.call(i,e)}catch(se){c?d.push(se):c=se}if(e.cancelBubble||m===t||m===null)break;i=m}if(c){for(let se of d)queueMicrotask(()=>{throw se});throw c}}finally{e.__root=t,delete e.currentTarget,T(u),F(h)}}}function Hn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ne(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function $r(e,t){var r=(t&Dr)!==0,n=(t&Mr)!==0,s,i=!e.startsWith("<!>");return()=>{if(p)return Ne(y,null),y;s===void 0&&(s=Hn(i?e:"<!>"+e),r||(s=Se(s)));var o=n||Gt?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=Se(o),l=o.lastChild;Ne(a,l)}else Ne(o,o);return o}}function Un(e=""){if(!p){var t=z(e+"");return Ne(t,t),t}var r=y;return r.nodeType!==Ge&&(r.before(r=z()),D(r)),Ne(r,r),r}function at(e,t){if(p){var r=_;((r.f&We)===0||r.nodes_end===null)&&(r.nodes_end=y),Xe();return}e!==null&&e.before(t)}const Vn=["touchstart","touchmove"];function Yn(e){return Vn.includes(e)}function Er(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xr(e,t){return kr(e,t)}function zn(e,t){yt(),t.intro=t.intro??!1;const r=t.target,n=p,s=y;try{for(var i=Se(r);i&&(i.nodeType!==Ae||i.data!==St);)i=te(i);if(!i)throw ye;ae(!0),D(i);const o=kr(e,{...t,anchor:i});return ae(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==ye&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Qr(),yt(),kn(r),ae(!1),xr(e,t)}finally{ae(n),D(s)}}const Oe=new Map;function kr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){yt();var a=new Set,l=h=>{for(var c=0;c<h.length;c++){var d=h[c];if(!a.has(d)){a.add(d);var m=Yn(d);t.addEventListener(d,Je,{passive:m});var U=Oe.get(d);U===void 0?(document.addEventListener(d,Je,{passive:m}),Oe.set(d,1)):Oe.set(d,U+1)}}};l(Jr(qn)),mr.add(l);var f=void 0,u=An(()=>{var h=r??t.appendChild(z());return vn(h,{pending:()=>{}},c=>{if(i){Dt({});var d=M;d.c=i}if(s&&(n.$$events=s),p&&Ne(c,null),f=e(c,n)||{},p&&(_.nodes_end=y,y===null||y.nodeType!==Ae||y.data!==Tt))throw Ke(),ye;i&&Mt()}),()=>{for(var c of a){t.removeEventListener(c,Je);var d=Oe.get(c);--d===0?(document.removeEventListener(c,Je),Oe.delete(c)):Oe.set(c,d)}mr.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return $t.set(f,u),f}let $t=new WeakMap;function Wn(e,t){const r=$t.get(e);return r?($t.delete(e),r(t)):Promise.resolve()}class Gn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#i=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Mn(n),this.#n.delete(r);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#r.get(o);a&&(L(a.effect),this.#r.delete(o))}for(const[i,o]of this.#e){if(i===r||this.#n.has(i))continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var f=document.createDocumentFragment();fr(o,f),f.append(z()),this.#r.set(i,{effect:o,fragment:f})}else L(o);this.#n.delete(i),this.#e.delete(i)};this.#l||!n?(this.#n.add(i),Me(o,a,!1)):a()}}};#s=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(L(s.effect),this.#r.delete(n))};ensure(t,r){var n=$,s=Sn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),o=z();i.append(o),this.#r.set(t,{effect:re(()=>r(o)),fragment:i})}else this.#e.set(t,re(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#i),n.ondiscard(this.#s)}else p&&(this.anchor=y),this.#i()}}function Kn(e,t,r=!1){p&&Xe();var n=new Gn(e),s=r?$e:0;function i(o,a){if(p){const f=an(e)===ft;if(o===f){var l=Lt();D(l),n.anchor=l,ae(!1),n.ensure(o,a),ae(!0);return}}n.ensure(o,a)}nr(()=>{var o=!1;t((a,l=!0)=>{o=!0,i(l,a)}),o||i(!1,null)},s)}function Xn(e,t,r,n,s){p&&Xe();var i=t.$$slots?.[r],o=!1;i===!0&&(i=t[r],o=!0),i===void 0?s!==null&&s(e):i(e,o?()=>n:n)}function Zn(e,t){Cn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function Qn(e,t,r){var n=""+e;return n}function Sr(e,t,r,n,s,i){var o=e.__className;if(p||o!==r||o===void 0){var a=Qn(r);(!p||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return i}const es=Symbol("is custom element"),ts=Symbol("is html");function rs(e,t,r,n){var s=ns(e);p&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[zr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Tr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function qe(e,t,r){var n=v,s=_;let i=p;p&&ae(!1),T(null),F(null);try{t!=="style"&&(Et.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Tr(e).includes(t):r&&typeof r=="object")?e[t]=r:rs(e,t,r==null?r:String(r))}finally{T(n),F(s),i&&ae(!0)}}function ns(e){return e.__attributes??={[es]:e.nodeName.includes("-"),[ts]:e.namespaceURI===Pr}}var Et=new Map;function Tr(e){var t=e.getAttribute("is")||e.nodeName,r=Et.get(t);if(r)return r;Et.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=qr(s);for(var o in n)n[o].set&&r.push(o);s=Nt(s)}return r}function xt(e,t,r,n){var s=n,i=!0,o=()=>(i&&(i=!1,s=n),s),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var c=e[t];return c===void 0?o():(i=!0,c)};var f=!1,u=gt(()=>(f=!1,l())),h=_;return(function(c,d){if(arguments.length>0){const m=d?b(u):c;return E(u,m),f=!0,s!==void 0&&(s=m),c}return ve&&f||(h.f&Q)!==0?u.v:b(u)})}function ss(e){return new is(e)}class is{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var a=$n(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return b(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Yr?!0:(b(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return E(r.get(o)??n(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?zn:xr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ye(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Wn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Nr;typeof HTMLElement=="function"&&(Nr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),at(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=os(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=lt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ss({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=On(()=>{rr(()=>{this.$$r=!0;for(const n of Ve(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=lt(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=lt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function lt(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function os(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function as(e,t,r,n,s,i){let o=class extends Nr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ve(t).forEach(a=>{Ye(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=lt(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var u=we(f,a)?.get;u?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ye(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const Or={version:"0.65.22"};var ge={},Ar;function ls(){if(Ar)return ge;Ar=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.LanguageTranslator=void 0,ge.getChildStyleToPass=e,ge.addComponent=t;function e(n,s){var i,o,a="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((o=s?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||o===void 0)&&o.length))for(var l=function(c){var d=s?.filter(function(m){return m.name===c&&m.defaultValue!==n[c]});d&&(a+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var h=u[f];l(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return a}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var a=document.createElement("script");if(a.id=i+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=i.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(i.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(f){console.warn(f)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,o){return n.formatDate(s,i,o||this.lang)},n.getDefaultLang=function(){var s,i,o,a="en";return navigator?.languages&&(!((o=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(s,i,o){var a;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(o&&(!((a=i[o])===null||a===void 0)&&a[s]))return i[o][s];var l="",f=n.getDefaultLang();if(!o||f!==o){var u=i?.[f];u?.[s]&&(l=u[s])}return l},n.formatDate=function(s,i,o){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||n.getDefaultLang(),i);return a.format(s)},n})();return ge.LanguageTranslator=r,ge}var Cr=ls(),fs=$r('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1if0grr"> </div>'),us=$r('<div part="properties-container" class="properties-container svelte-1if0grr"><hb-table></hb-table> <hb-form><span class="slotted-submit svelte-1if0grr" slot="submit_button"><button type="button" class="btn btn-info svelte-1if0grr"><!></button></span></hb-form></div> <!>',3);const cs={hash:"svelte-1if0grr",code:`@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");
|
|
1
|
+
(function(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Pr=1,jr=2,Tt="[",ft="[!",Nt="]",we={},k=Symbol(),Mr="http://www.w3.org/1999/xhtml",ut=!1;var Ir=Array.isArray,Fr=Array.prototype.indexOf,Jr=Array.from,Ye=Object.keys,Ue=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,qr=Object.getOwnPropertyDescriptors,Br=Object.prototype,Hr=Array.prototype,St=Object.getPrototypeOf,Ot=Object.isExtensible;function Vr(e){for(var t=0;t<e.length;t++)e[t]()}function At(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const x=2,ct=4,dt=8,G=16,K=32,se=64,ze=128,B=512,T=1024,R=2048,X=4096,Y=8192,Z=16384,We=32768,$e=65536,Rt=1<<17,Ct=1<<18,ce=1<<19,Yr=1<<20,de=32768,ht=1<<21,vt=1<<22,oe=1<<23,_t=Symbol("$state"),Ur=Symbol("legacy props"),zr=Symbol(""),Ee=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ge=3,Ae=8;function Wr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Gr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Kr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Zr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Qr(){throw new Error("https://svelte.dev/e/hydration_failed")}function en(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function tn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function nn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function sn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function ae(e){g=e}let w;function P(e){if(e===null)throw Ke(),we;return w=e}function Xe(){return P(te(w))}function Re(e){if(g){if(te(w)!==null)throw Ke(),we;w=e}}function on(e=1){if(g){for(var t=e,r=w;t--;)r=te(r);w=r}}function Lt(e=!0){for(var t=0,r=w;;){if(r.nodeType===Ae){var n=r.data;if(n===Nt){if(t===0)return r;t-=1}else(n===Tt||n===ft)&&(t+=1)}var i=te(r);e&&r.remove(),r=i}}function an(e){if(!e||e.nodeType!==Ae)throw Ke(),we;return e.data}function Dt(e){return e===this.v}function ln(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function fn(e){return!ln(e,this.v)}let un=!1,j=null;function xe(e){j=e}function Pt(e,t=!1,r){j={p:j,i:!1,c:null,e:null,s:e,x:null,l:null}}function jt(e){var t=j,r=t.e;if(r!==null){t.e=null;for(var n of r)tr(n)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Mt(){return!0}let he=[];function It(){var e=he;he=[],Vr(e)}function Ze(e){if(he.length===0&&!Ce){var t=he;queueMicrotask(()=>{t===he&&It()})}he.push(e)}function cn(){for(;he.length>0;)It()}function Ft(e){var t=b;if(t===null)return _.f|=oe,e;if((t.f&We)===0){if((t.f&ze)===0)throw e;t.b.error(e)}else ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&ze)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Qe=new Set;let $=null,M=null,I=[],et=null,bt=!1,Ce=!1;class H{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){I=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#o(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):($=null,qt(r.render_effects),qt(r.effects),this.#l?.resolve()),M=null}#o(t,r){t.f^=T;for(var n=t.first;n!==null;){var i=n.f,s=(i&(K|se))!==0,o=s&&(i&T)!==0,a=o||(i&Y)!==0||this.skipped_effects.has(n);if((n.f&ze)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){s?n.f^=T:(i&ct)!==0?r.effects.push(n):Ie(n)&&((n.f&G)!==0&&r.block_effects.push(n),Fe(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#a(t){for(const r of t)((r.f&R)!==0?this.#s:this.#i).push(r),this.#f(r.deps),S(r,T)}#f(t){if(t!==null)for(const r of t)(r.f&x)===0||(r.f&de)===0||(r.f^=de,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&oe)===0&&(this.current.set(t,t.v),M?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,M=null)}flush(){if(this.activate(),I.length>0){if(Jt(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Qe.size>1){this.previous.clear();var t=M,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Qe){if(s===this){r=!1;continue}const o=[];for(const[l,f]of this.current){if(s.current.has(l))if(r&&f!==s.current.get(l))s.current.set(l,f);else continue;o.push(l)}if(o.length===0)continue;const a=[...s.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var i=I;I=[];const l=new Set,f=new Map;for(const u of o)Bt(u,a,l,f);if(I.length>0){$=s,s.apply();for(const u of I)s.#o(u,n);s.deactivate()}I=i}}$=null,M=t}this.committed=!0,Qe.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)S(t,R),ve(t);for(const t of this.#i)S(t,X),ve(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=At()).promise}static ensure(){if($===null){const t=$=new H;Qe.add($),Ce||H.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){Ze(t)}apply(){}}function tt(e){var t=Ce;Ce=!0;try{for(var r;;){if(cn(),I.length===0&&($?.flush(),I.length===0))return et=null,r;Jt()}}finally{Ce=t}}function Jt(){var e=fe;bt=!0;var t=null;try{var r=0;for(st(!0);I.length>0;){var n=H.ensure();if(r++>1e3){var i,s;dn()}n.process(I),le.clear()}}finally{bt=!1,st(e),et=null}}function dn(){try{Zr()}catch(e){ke(e,et)}}let Q=null;function qt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Z|Y))===0&&Ie(n)&&(Q=new Set,Fe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?or(n):n.fn=null),Q?.size>0)){le.clear();for(const i of Q){if((i.f&(Z|Y))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)Q.has(o)&&(Q.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(Z|Y))===0&&Fe(l)}}Q.clear()}}Q=null}}function Bt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&x)!==0?Bt(i,t,r,n):(s&(vt|G))!==0&&(s&R)===0&&Ht(i,t,n)&&(S(i,R),ve(i))}}function Ht(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&x)!==0&&Ht(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function ve(e){for(var t=et=e;t.parent!==null;){t=t.parent;var r=t.f;if(bt&&t===b&&(r&G)!==0&&(r&Ct)===0)return;if((r&(se|K))!==0){if((r&T)===0)return;t.f^=T}}I.push(t)}function hn(e){let t=0,r=Le(0),n;return()=>{it()&&(v(r),rr(()=>(t===0&&(n=Fn(()=>e(()=>De(r)))),t+=1,()=>{Ze(()=>{t-=1,t===0&&(n?.(),n=void 0,De(r))})})))}}var vn=$e|ce|ze;function _n(e,t,r){new bn(e,t,r)}class bn{parent;#t=!1;#e;#r=g?w:null;#n;#l;#s;#i=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#m=hn(()=>(this.#h=Le(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=b.b,this.#t=!!this.#n.pending,this.#s=nr(()=>{if(b.b=this,g){const s=this.#r;Xe(),s.nodeType===Ae&&s.data===ft?this.#y():this.#w()}else{var i=this.#p();try{this.#i=re(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},vn),g&&(this.#e=w)}#w(){try{this.#i=re(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#o=re(()=>t(this.#e)),H.enqueue(()=>{var r=this.#p();this.#i=this.#_(()=>(H.ensure(),re(()=>this.#l(r)))),this.#d>0?this.#b():(je(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=U(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=b,n=_,i=j;F(this.#s),N(this.#s),xe(this.#s.ctx);try{return t()}catch(s){return Ft(s),null}finally{F(r),N(n),xe(i)}}#b(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),fr(this.#i,this.#f)),this.#o===null&&(this.#o=re(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&je(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&nt(this.#h,this.#c)}get_effect_pending(){return this.#m(),v(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#i&&(C(this.#i),this.#i=null),this.#o&&(C(this.#o),this.#o=null),this.#a&&(C(this.#a),this.#a=null),g&&(P(this.#r),on(),P(Lt()));var i=!1,s=!1;const o=()=>{if(i){sn();return}i=!0,s&&nn(),H.ensure(),this.#c=0,this.#a!==null&&je(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,re(()=>this.#l(this.#e)))),this.#d>0?this.#b():this.#t=!1};var a=_;try{N(null),s=!0,r?.(t,o),s=!1}catch(l){ke(l,this.#s&&this.#s.parent)}finally{N(a)}n&&Ze(()=>{this.#a=this.#_(()=>{H.ensure(),this.#v=!0;try{return re(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return ke(l,this.#s.parent),null}finally{this.#v=!1}})})}}function pn(e,t,r,n){const i=pt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=$,o=b,a=gn();function l(){Promise.all(r.map(f=>mn(f))).then(f=>{a();try{n([...t.map(i),...f])}catch(u){(o.f&Z)===0&&ke(u,o)}s?.deactivate(),rt()}).catch(f=>{ke(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{s?.deactivate(),rt()}}):l()}function gn(){var e=b,t=_,r=j,n=$;return function(s=!0){F(e),N(t),xe(r),s&&n?.activate()}}function rt(){F(null),N(null),xe(null)}function pt(e){var t=x|R,r=_!==null&&(_.f&x)!==0?_:null;return b!==null&&(b.f|=ce),{ctx:j,deps:null,effects:null,equals:Dt,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:r??b,ac:null}}function mn(e,t){let r=b;r===null&&Wr();var n=r.b,i=void 0,s=Le(k),o=!_,a=new Map;return Cn(()=>{var l=At();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===$&&f.committed&&f.deactivate(),rt()})}catch(c){l.reject(c),rt()}var f=$;if(o){var u=!n.is_pending();n.update_pending_count(1),f.increment(u),a.get(f)?.reject(Ee),a.delete(f),a.set(f,l)}const h=(c,d=void 0)=>{if(f.activate(),d)d!==Ee&&(s.f|=oe,nt(s,d));else{(s.f&oe)!==0&&(s.f^=oe),nt(s,c);for(const[m,V]of a){if(a.delete(m),m===f)break;V.reject(Ee)}}o&&(n.update_pending_count(-1),f.decrement(u))};l.promise.then(h,c=>h(null,c||"unknown"))}),Qt(()=>{for(const l of a.values())l.reject(Ee)}),new Promise(l=>{function f(u){function h(){u===i?l(s):f(i)}u.then(h,h)}f(i)})}function wn(e){const t=pt(e);return cr(t),t}function Vt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)C(t[r])}}function yn(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&Z)===0?t:null;t=t.parent}return null}function gt(e){var t,r=b;F(yn(e));try{e.f&=~de,Vt(e),t=br(e)}finally{F(r)}return t}function Yt(e){var t=gt(e);if(e.equals(t)||($?.is_fork||(e.v=t),e.wv=vr()),!_e)if(M!==null)it()&&M.set(e,t);else{var r=(e.f&B)===0?X:T;S(e,r)}}let mt=new Set;const le=new Map;let Ut=!1;function Le(e,t){var r={f:0,v:e,reactions:null,equals:Dt,rv:0,wv:0};return r}function L(e,t){const r=Le(e);return cr(r),r}function $n(e,t=!1,r=!0){const n=Le(e);return t||(n.equals=fn),n}function E(e,t,r=!1){_!==null&&(!W||(_.f&Rt)!==0)&&Mt()&&(_.f&(x|G|vt|Rt))!==0&&!ne?.includes(e)&&rn();let n=r?ee(t):t;return nt(e,n)}function nt(e,t){if(!e.equals(t)){var r=e.v;_e?le.set(e,t):le.set(e,r),e.v=t;var n=H.ensure();n.capture(e,r),(e.f&x)!==0&&((e.f&R)!==0&>(e),S(e,(e.f&B)!==0?T:X)),e.wv=vr(),zt(e,R),b!==null&&(b.f&T)!==0&&(b.f&(K|se))===0&&(J===null?Mn([e]):J.push(e)),!n.is_fork&&mt.size>0&&!Ut&&En()}return t}function En(){Ut=!1;var e=fe;st(!0);const t=Array.from(mt);try{for(const r of t)(r.f&T)!==0&&S(r,X),Ie(r)&&Fe(r)}finally{st(e)}mt.clear()}function De(e){E(e,e.v+1)}function zt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,a=(o&R)===0;if(a&&S(s,t),(o&x)!==0){var l=s;M?.delete(l),(o&de)===0&&(o&B&&(s.f|=de),zt(l,X))}else a&&((o&G)!==0&&Q!==null&&Q.add(s),ve(s))}}function ee(e){if(typeof e!="object"||e===null||_t in e)return e;const t=St(e);if(t!==Br&&t!==Hr)return e;var r=new Map,n=Ir(e),i=L(0),s=be,o=a=>{if(be===s)return a();var l=_,f=be;N(null),hr(s);var u=a();return N(l),hr(f),u};return n&&r.set("length",L(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&en();var u=r.get(l);return u===void 0?u=o(()=>{var h=L(f.value);return r.set(l,h),h}):E(u,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const u=o(()=>L(k));r.set(l,u),De(i)}}else E(f,k),De(i);return!0},get(a,l,f){if(l===_t)return e;var u=r.get(l),h=l in a;if(u===void 0&&(!h||ye(a,l)?.writable)&&(u=o(()=>{var d=ee(h?a[l]:k),m=L(d);return m}),r.set(l,u)),u!==void 0){var c=v(u);return c===k?void 0:c}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var u=r.get(l);u&&(f.value=v(u))}else if(f===void 0){var h=r.get(l),c=h?.v;if(h!==void 0&&c!==k)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(a,l){if(l===_t)return!0;var f=r.get(l),u=f!==void 0&&f.v!==k||Reflect.has(a,l);if(f!==void 0||b!==null&&(!u||ye(a,l)?.writable)){f===void 0&&(f=o(()=>{var c=u?ee(a[l]):k,d=L(c);return d}),r.set(l,f));var h=v(f);if(h===k)return!1}return u},set(a,l,f,u){var h=r.get(l),c=l in a;if(n&&l==="length")for(var d=f;d<h.v;d+=1){var m=r.get(d+"");m!==void 0?E(m,k):d in a&&(m=o(()=>L(k)),r.set(d+"",m))}if(h===void 0)(!c||ye(a,l)?.writable)&&(h=o(()=>L(void 0)),E(h,ee(f)),r.set(l,h));else{c=h.v!==k;var V=o(()=>ee(f));E(h,V)}var ie=Reflect.getOwnPropertyDescriptor(a,l);if(ie?.set&&ie.set.call(u,f),!c){if(n&&typeof l=="string"){var Be=r.get("length"),ge=Number(l);Number.isInteger(ge)&&ge>=Be.v&&E(Be,ge+1)}De(i)}return!0},ownKeys(a){v(i);var l=Reflect.ownKeys(a).filter(h=>{var c=r.get(h);return c===void 0||c.v!==k});for(var[f,u]of r)u.v!==k&&!(f in a)&&l.push(f);return l},setPrototypeOf(){tn()}})}var Wt,Gt,Kt,Xt;function wt(){if(Wt===void 0){Wt=window,Gt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Kt=ye(t,"firstChild").get,Xt=ye(t,"nextSibling").get,Ot(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ot(r)&&(r.__t=void 0)}}function U(e=""){return document.createTextNode(e)}function Te(e){return Kt.call(e)}function te(e){return Xt.call(e)}function Pe(e,t){if(!g)return Te(e);var r=Te(w);if(r===null)r=w.appendChild(U());else if(t&&r.nodeType!==Ge){var n=U();return r?.before(n),P(n),n}return P(r),r}function xn(e,t=!1){if(!g){var r=Te(e);return r instanceof Comment&&r.data===""?te(r):r}if(t&&w?.nodeType!==Ge){var n=U();return w?.before(n),P(n),n}return w}function Zt(e,t=1,r=!1){let n=g?w:e;for(var i;t--;)i=n,n=te(n);if(!g)return n;if(r&&n?.nodeType!==Ge){var s=U();return n===null?i?.after(s):n.before(s),P(s),s}return P(n),n}function kn(e){e.textContent=""}function Tn(){return!1}function yt(e){var t=_,r=b;N(null),F(null);try{return e()}finally{N(t),F(r)}}function Nn(e){b===null&&(_===null&&Xr(),Kr()),_e&&Gr()}function Sn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function z(e,t,r){var n=b;n!==null&&(n.f&Y)!==0&&(e|=Y);var i={ctx:j,deps:null,nodes_start:null,nodes_end:null,f:e|R|B,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Fe(i),i.f|=We}catch(a){throw C(i),a}else t!==null&&ve(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&ce)===0&&(s=s.first,(e&G)!==0&&(e&$e)!==0&&s!==null&&(s.f|=$e)),s!==null&&(s.parent=n,n!==null&&Sn(s,n),_!==null&&(_.f&x)!==0&&(e&se)===0)){var o=_;(o.effects??=[]).push(s)}return i}function it(){return _!==null&&!W}function Qt(e){const t=z(dt,null,!1);return S(t,T),t.teardown=e,t}function er(e){Nn();var t=b.f,r=!_&&(t&K)!==0&&(t&We)===0;if(r){var n=j;(n.e??=[]).push(e)}else return tr(e)}function tr(e){return z(ct|Yr,e,!1)}function On(e){H.ensure();const t=z(se|ce,e,!0);return()=>{C(t)}}function An(e){H.ensure();const t=z(se|ce,e,!0);return(r={})=>new Promise(n=>{r.outro?je(t,()=>{C(t),n(void 0)}):(C(t),n(void 0))})}function Rn(e){return z(ct,e,!1)}function Cn(e){return z(vt|ce,e,!0)}function rr(e,t=0){return z(dt|t,e,!0)}function Ne(e,t=[],r=[],n=[]){pn(n,t,r,i=>{z(dt,()=>e(...i.map(v)),!0)})}function nr(e,t=0){var r=z(G|t,e,!0);return r}function re(e){return z(K|ce,e,!0)}function ir(e){var t=e.teardown;if(t!==null){const r=_e,n=_;ur(!0),N(null);try{t.call(null)}finally{ur(r),N(n)}}}function sr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&yt(()=>{i.abort(Ee)});var n=r.next;(r.f&se)!==0?r.parent=null:C(r,t),r=n}}function Ln(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&K)===0&&C(t),t=r}}function C(e,t=!0){var r=!1;(t||(e.f&Ct)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Dn(e.nodes_start,e.nodes_end),r=!0),sr(e,t&&!r),ot(e,0),S(e,Z);var n=e.transitions;if(n!==null)for(const s of n)s.stop();ir(e);var i=e.parent;i!==null&&i.first!==null&&or(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Dn(e,t){for(;e!==null;){var r=e===t?null:te(e);e.remove(),e=r}}function or(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function je(e,t,r=!0){var n=[];ar(e,n,!0),Pn(n,()=>{r&&C(e),t&&t()})}function Pn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ar(e,t,r){if((e.f&Y)===0){if(e.f^=Y,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&$e)!==0||(n.f&K)!==0&&(e.f&G)!==0;ar(n,t,s?r:!1),n=i}}}function jn(e){lr(e,!0)}function lr(e,t){if((e.f&Y)!==0){e.f^=Y,(e.f&T)===0&&(S(e,R),ve(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&$e)!==0||(r.f&K)!==0;lr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function fr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:te(r);t.append(r),r=i}}let fe=!1;function st(e){fe=e}let _e=!1;function ur(e){_e=e}let _=null,W=!1;function N(e){_=e}let b=null;function F(e){b=e}let ne=null;function cr(e){_!==null&&(ne===null?ne=[e]:ne.push(e))}let O=null,D=0,J=null;function Mn(e){J=e}let dr=1,Me=0,be=Me;function hr(e){be=e}function vr(){return++dr}function Ie(e){var t=e.f;if((t&R)!==0)return!0;if(t&x&&(e.f&=~de),(t&X)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(Ie(s)&&Yt(s),s.wv>e.wv)return!0}(t&B)!==0&&M===null&&S(e,T)}return!1}function _r(e,t,r=!0){var n=e.reactions;if(n!==null&&!ne?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&x)!==0?_r(s,t,!1):t===s&&(r?S(s,R):(s.f&T)!==0&&S(s,X),ve(s))}}function br(e){var t=O,r=D,n=J,i=_,s=ne,o=j,a=W,l=be,f=e.f;O=null,D=0,J=null,_=(f&(K|se))===0?e:null,ne=null,xe(e.ctx),W=!1,be=++Me,e.ac!==null&&(yt(()=>{e.ac.abort(Ee)}),e.ac=null);try{e.f|=ht;var u=e.fn,h=u(),c=e.deps;if(O!==null){var d;if(ot(e,D),c!==null&&D>0)for(c.length=D+O.length,d=0;d<O.length;d++)c[D+d]=O[d];else e.deps=c=O;if(fe&&it()&&(e.f&B)!==0)for(d=D;d<c.length;d++)(c[d].reactions??=[]).push(e)}else c!==null&&D<c.length&&(ot(e,D),c.length=D);if(Mt()&&J!==null&&!W&&c!==null&&(e.f&(x|X|R))===0)for(d=0;d<J.length;d++)_r(J[d],e);return i!==null&&i!==e&&(Me++,J!==null&&(n===null?n=J:n.push(...J))),(e.f&oe)!==0&&(e.f^=oe),h}catch(m){return Ft(m)}finally{e.f^=ht,O=t,D=r,J=n,_=i,ne=s,xe(o),W=a,be=l}}function In(e,t){let r=t.reactions;if(r!==null){var n=Fr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&x)!==0&&(O===null||!O.includes(t))&&(S(t,X),(t.f&B)!==0&&(t.f^=B,t.f&=~de),Vt(t),ot(t,0))}function ot(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)In(e,r[n])}function Fe(e){var t=e.f;if((t&Z)===0){S(e,T);var r=b,n=fe;b=e,fe=!0;try{(t&G)!==0?Ln(e):sr(e),ir(e);var i=br(e);e.teardown=typeof i=="function"?i:null,e.wv=dr;var s;ut&&un&&(e.f&R)!==0&&e.deps}finally{fe=n,b=r}}}function v(e){var t=e.f,r=(t&x)!==0;if(_!==null&&!W){var n=b!==null&&(b.f&Z)!==0;if(!n&&!ne?.includes(e)){var i=_.deps;if((_.f&ht)!==0)e.rv<Me&&(e.rv=Me,O===null&&i!==null&&i[D]===e?D++:O===null?O=[e]:O.includes(e)||O.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(_e){if(le.has(e))return le.get(e);if(r){var o=e,a=o.v;return((o.f&T)===0&&o.reactions!==null||gr(o))&&(a=gt(o)),le.set(o,a),a}}else r&&!M?.has(e)&&(o=e,Ie(o)&&Yt(o),fe&&it()&&(o.f&B)===0&&pr(o));if(M?.has(e))return M.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function pr(e){if(e.deps!==null){e.f^=B;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&B)===0&&pr(t)}}function gr(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(le.has(t)||(t.f&x)!==0&&gr(t))return!0;return!1}function Fn(e){var t=W;try{return W=!0,e()}finally{W=t}}const Jn=-7169;function S(e,t){e.f=e.f&Jn|t}const qn=new Set,mr=new Set;function Bn(e,t,r,n={}){function i(s){if(n.capture||Je.call(t,s),!s.cancelBubble)return yt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ze(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function wr(e,t,r,n,i){var s={capture:n,passive:i},o=Bn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qt(()=>{t.removeEventListener(e,o,s)})}let yr=null;function Je(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;yr=e;var o=0,a=yr===e&&e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(s=i[o]||e.target,s!==t){Ue(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=_,h=b;N(null),F(null);try{for(var c,d=[];s!==null;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var V=s["__"+n];V!=null&&(!s.disabled||e.target===s)&&V.call(s,e)}catch(ie){c?d.push(ie):c=ie}if(e.cancelBubble||m===t||m===null)break;s=m}if(c){for(let ie of d)queueMicrotask(()=>{throw ie});throw c}}finally{e.__root=t,delete e.currentTarget,N(u),F(h)}}}function Hn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Se(e,t){var r=b;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function $r(e,t){var r=(t&Pr)!==0,n=(t&jr)!==0,i,s=!e.startsWith("<!>");return()=>{if(g)return Se(w,null),w;i===void 0&&(i=Hn(s?e:"<!>"+e),r||(i=Te(i)));var o=n||Gt?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Te(o),l=o.lastChild;Se(a,l)}else Se(o,o);return o}}function Vn(e=""){if(!g){var t=U(e+"");return Se(t,t),t}var r=w;return r.nodeType!==Ge&&(r.before(r=U()),P(r)),Se(r,r),r}function at(e,t){if(g){var r=b;((r.f&We)===0||r.nodes_end===null)&&(r.nodes_end=w),Xe();return}e!==null&&e.before(t)}const Yn=["touchstart","touchmove"];function Un(e){return Yn.includes(e)}function Er(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xr(e,t){return kr(e,t)}function zn(e,t){wt(),t.intro=t.intro??!1;const r=t.target,n=g,i=w;try{for(var s=Te(r);s&&(s.nodeType!==Ae||s.data!==Tt);)s=te(s);if(!s)throw we;ae(!0),P(s);const o=kr(e,{...t,anchor:s});return ae(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==we&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Qr(),wt(),kn(r),ae(!1),xr(e,t)}finally{ae(n),P(i)}}const Oe=new Map;function kr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){wt();var a=new Set,l=h=>{for(var c=0;c<h.length;c++){var d=h[c];if(!a.has(d)){a.add(d);var m=Un(d);t.addEventListener(d,Je,{passive:m});var V=Oe.get(d);V===void 0?(document.addEventListener(d,Je,{passive:m}),Oe.set(d,1)):Oe.set(d,V+1)}}};l(Jr(qn)),mr.add(l);var f=void 0,u=An(()=>{var h=r??t.appendChild(U());return _n(h,{pending:()=>{}},c=>{if(s){Pt({});var d=j;d.c=s}if(i&&(n.$$events=i),g&&Se(c,null),f=e(c,n)||{},g&&(b.nodes_end=w,w===null||w.nodeType!==Ae||w.data!==Nt))throw Ke(),we;s&&jt()}),()=>{for(var c of a){t.removeEventListener(c,Je);var d=Oe.get(c);--d===0?(document.removeEventListener(c,Je),Oe.delete(c)):Oe.set(c,d)}mr.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return $t.set(f,u),f}let $t=new WeakMap;function Wn(e,t){const r=$t.get(e);return r?($t.delete(e),r(t)):Promise.resolve()}class Gn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)jn(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#r.get(o);a&&(C(a.effect),this.#r.delete(o))}for(const[s,o]of this.#e){if(s===r||this.#n.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();fr(o,f),f.append(U()),this.#r.set(s,{effect:o,fragment:f})}else C(o);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),je(o,a,!1)):a()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(C(i.effect),this.#r.delete(n))};ensure(t,r){var n=$,i=Tn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),o=U();s.append(o),this.#r.set(t,{effect:re(()=>r(o)),fragment:s})}else this.#e.set(t,re(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else g&&(this.anchor=w),this.#s()}}function Kn(e,t,r=!1){g&&Xe();var n=new Gn(e),i=r?$e:0;function s(o,a){if(g){const f=an(e)===ft;if(o===f){var l=Lt();P(l),n.anchor=l,ae(!1),n.ensure(o,a),ae(!0);return}}n.ensure(o,a)}nr(()=>{var o=!1;t((a,l=!0)=>{o=!0,s(l,a)}),o||s(!1,null)},i)}function Xn(e,t,r,n,i){g&&Xe();var s=t.$$slots?.[r],o=!1;s===!0&&(s=t[r],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>n:n)}function Zn(e,t){Rn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Qn(e,t,r){var n=""+e;return n}function Tr(e,t,r,n,i,s){var o=e.__className;if(g||o!==r||o===void 0){var a=Qn(r);(!g||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}const ei=Symbol("is custom element"),ti=Symbol("is html");function ri(e,t,r,n){var i=ni(e);g&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[zr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Nr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function qe(e,t,r){var n=_,i=b;let s=g;g&&ae(!1),N(null),F(null);try{t!=="style"&&(Et.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Nr(e).includes(t):r&&typeof r=="object")?e[t]=r:ri(e,t,r==null?r:String(r))}finally{N(n),F(i),s&&ae(!0)}}function ni(e){return e.__attributes??={[ei]:e.nodeName.includes("-"),[ti]:e.namespaceURI===Mr}}var Et=new Map;function Nr(e){var t=e.getAttribute("is")||e.nodeName,r=Et.get(t);if(r)return r;Et.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=qr(i);for(var o in n)n[o].set&&r.push(o);i=St(i)}return r}function xt(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var f=!1,u=pt(()=>(f=!1,l())),h=b;return(function(c,d){if(arguments.length>0){const m=d?v(u):c;return E(u,m),f=!0,i!==void 0&&(i=m),c}return _e&&f||(h.f&Z)!==0?u.v:v(u)})}function ii(e){return new si(e)}class si{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var a=$n(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return v(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Ur?!0:(v(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return E(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?zn:xr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ue(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Wn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let Sr;typeof HTMLElement=="function"&&(Sr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),at(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=oi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=lt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ii({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=On(()=>{rr(()=>{this.$$r=!0;for(const n of Ye(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=lt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=lt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ye(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function lt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function oi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ai(e,t,r,n,i,s){let o=class extends Sr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ye(t).forEach(a=>{Ue(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=lt(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var u=ye(f,a)?.get;u?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ue(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const Or={version:"0.66.0"};var pe={},Ar;function li(){if(Ar)return pe;Ar=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.LanguageTranslator=void 0,pe.getChildStyleToPass=e,pe.addComponent=t;function e(n,i){var s,o,a="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||o===void 0)&&o.length))for(var l=function(c){var d=i?.filter(function(m){return m.name===c&&m.defaultValue!==n[c]});d&&(a+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var h=u[f];l(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return a}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(f){console.warn(f)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,o){return n.formatDate(i,s,o||this.lang)},n.getDefaultLang=function(){var i,s,o,a="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(i,s,o){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((a=s[o])===null||a===void 0)&&a[i]))return s[o][i];var l="",f=n.getDefaultLang();if(!o||f!==o){var u=s?.[f];u?.[i]&&(l=u[i])}return l},n.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||n.getDefaultLang(),s);return a.format(i)},n})();return pe.LanguageTranslator=r,pe}var Rr=li(),fi=$r('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1if0grr"> </div>'),ui=$r('<div part="properties-container" class="properties-container svelte-1if0grr"><hb-table></hb-table> <hb-form><span class="slotted-submit svelte-1if0grr" slot="submit_button"><button type="button" class="btn btn-info svelte-1if0grr"><!></button></span></hb-form></div> <!>',3);const ci={hash:"svelte-1if0grr",code:`@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");
|
|
3
3
|
/*!
|
|
4
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
6
6
|
* Copyright 2011-2021 Twitter, Inc.
|
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
8
|
-
|
|
8
|
+
*/.svelte-1if0grr,
|
|
9
9
|
.svelte-1if0grr::before,
|
|
10
10
|
.svelte-1if0grr::after {box-sizing:border-box;}
|
|
11
11
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -74,5 +74,5 @@ button.svelte-1if0grr {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
74
74
|
@media (min-width: 1200px) {
|
|
75
75
|
}
|
|
76
76
|
@media (min-width: 1400px) {
|
|
77
|
-
}:host {font-family:"Roboto", sans-serif;}.properties-container.svelte-1if0grr {padding:15px 10px 50px 10px;display:block;border:1px solid #e0e0e0;}hb-form.svelte-1if0grr::part(button_container) {float:right;}`};function
|
|
77
|
+
}:host {font-family:"Roboto", sans-serif;}.properties-container.svelte-1if0grr {padding:15px 10px 50px 10px;display:block;border:1px solid #e0e0e0;}hb-form.svelte-1if0grr::part(button_container) {float:right;}`};function Cr(e,t){Pt(t,!0),Zn(e,ci);let r=xt(t,"schemaentry",7,void 0),n=xt(t,"show_validation",7,"no"),i=xt(t,"id",7,void 0);function s(p,y){t.$$host.dispatchEvent(new CustomEvent(p,{detail:y}))}let o=L(ee([])),a=L(ee([])),l=L(ee([]));const f=[{name:"delete",type:"icon",iconOrText:"x-octagon-fill"}];let u=L(ee([])),h=wn(()=>r()?r()?.required?!!(v(o)?.length&&typeof v(o)=="object"):!0:!1);function c(){if(E(o,v(o)&&Array.isArray(v(o))&&v(o).length?v(o):r()?.value?r().value:[],!0),r()?.id&&i(r().id),!v(u).length&&r().params?.schema?.length){const q={schema:r().params.schema,id:Date.now().toString()};E(u,[q],!0)}const p=[];if(v(o)&&Array.isArray(v(o))&&v(o).length)for(const A of v(o)){const q={_id:A._objId||Date.now().toString()};if(r()&&typeof r()=="object"&&r().params?.schema?.length)for(const ue of r().params.schema)if(ue.type==="row"&&ue.params?.columns?.length)for(const Ve of ue.params.columns)q[Ve.id]=A[Ve.id];else q[ue.id]=A[ue.id];p.push(q)}E(l,p,!0);const y=[];if(r()&&typeof r()=="object"&&r().params?.schema?.length)for(const A of r().params.schema)if(A.type==="row"&&A.params?.columns?.length)for(const q of A.params.columns)y.push({key:q.id,label:q.label||q.id});else y.push({key:A.id,label:A.label||A.id});E(a,y,!0)}let d=L(null);er(()=>{if(typeof r()=="string")try{r()!==v(d)&&(r(JSON.parse(r())),E(d,JSON.stringify(r()),!0),c())}catch(p){console.error("error parsing JSON for schemaentry hb-input-array-objects",p)}console.log(v(h),v(o),"validinput4arrayobjects")}),er(()=>{s("setVal",{value:v(o),valid:v(h),id:i()})});function m(p){const y=Date.now().toString(),A={schema:r()?.params?.schema,id:y};E(u,[...v(u),A],!0);const q=JSON.parse(JSON.stringify(v(l))),ue={_id:y};for(const Ve of Object.keys(p))ue[Ve]=p[Ve];p._objId=y,E(o,[...JSON.parse(JSON.stringify(v(o))),p],!0),q.push(ue),E(l,q,!0),console.log("addSchema",v(o),JSON.stringify(v(l)))}function V(p){E(u,JSON.parse(JSON.stringify(v(u).filter(y=>y.id!==p.itemId))),!0),E(l,JSON.parse(JSON.stringify(v(l).filter(y=>y._id!==p.itemId))),!0),E(o,JSON.parse(JSON.stringify(v(o).filter(y=>y._objId!==p.itemId))),!0)}Rr.addComponent({repoName:"@htmlbricks/hb-form",version:Or.version}),Rr.addComponent({repoName:"@htmlbricks/hb-table",version:Or.version});var ie={get schemaentry(){return r()},set schemaentry(p=void 0){r(p),tt()},get show_validation(){return n()},set show_validation(p="no"){n(p),tt()},get id(){return i()},set id(p=void 0){i(p),tt()}},Be=ui(),ge=xn(Be),me=Pe(ge);qe(me,"disablepagination","yes"),Ne(()=>qe(me,"actions",JSON.stringify(f))),Ne(()=>qe(me,"headers",JSON.stringify(v(a)))),Ne(()=>qe(me,"rows",JSON.stringify(v(l)))),Tr(me,1,"svelte-1if0grr");var He=Zt(me,2);Ne(()=>qe(He,"schema",JSON.stringify(v(u)?.length?v(u)[v(u).length-1].schema:[]))),Tr(He,1,"svelte-1if0grr");var Lr=Pe(He),Dr=Pe(Lr),di=Pe(Dr);Xn(di,t,"add-object-label",{},p=>{var y=Vn();Ne(()=>Er(y,r()?.params?.addPropertyLabel?r().params.addPropertyLabel:"add Property")),at(p,y)}),Re(Dr),Re(Lr),Re(He),Re(ge);var hi=Zt(ge,2);{var vi=p=>{var y=fi(),A=Pe(y,!0);Re(y),Ne(()=>Er(A,r().validationTip)),at(p,y)};Kn(hi,p=>{r()?.validationTip&&n()==="yes"&&p(vi)})}return wr("tableaction",me,p=>{V(p.detail)}),wr("submit",He,p=>{m(p.detail)}),at(e,Be),jt(ie)}customElements.define("hb-input-array-objects",ai(Cr,{schemaentry:{},show_validation:{},id:{}},["add-object-label"],[],!0)),kt.Component=Cr,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})})(this["input-array-objects"]=this["input-array-objects"]||{});
|
|
78
78
|
//# sourceMappingURL=main.iife.js.map
|