@htmlbricks/hb-form 0.66.4 → 0.66.6
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 +1 -1
- package/manifest.json +2 -3
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(Pn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ti=1,ni=2,Jn=4,ri=8,ii=16,si=1,oi=2,Bn="[",Xt="[!",Hn="[?",Zt="]",at={},W=Symbol(),zn="http://www.w3.org/1999/xhtml",ai=!1;var Yn=Array.isArray,li=Array.prototype.indexOf,lt=Array.prototype.includes,Rt=Array.from,Mt=Object.keys,It=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,ui=Object.getOwnPropertyDescriptors,fi=Object.prototype,ci=Array.prototype,Un=Object.getPrototypeOf,Gn=Object.isExtensible;const di=()=>{};function hi(e){for(var t=0;t<e.length;t++)e[t]()}function Kn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const U=2,ft=4,Vt=8,Wn=1<<24,Re=16,ge=32,Me=64,Qt=128,ce=512,Y=1024,Z=2048,xe=4096,oe=8192,de=16384,Ie=32768,Xn=1<<25,ct=65536,Zn=1<<17,vi=1<<18,We=1<<19,pi=1<<20,ke=1<<25,Xe=65536,en=1<<21,tn=1<<22,Ve=1<<23,nn=Symbol("$state"),_i=Symbol("legacy props"),bi=Symbol(""),$e=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},mi=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Dt=3,jt=8;function gi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wi(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function yi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ji(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ei(e){throw new Error("https://svelte.dev/e/effect_orphan")}function xi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ki(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ni(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Si(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $i(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ti(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Lt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function qi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let R=!1;function we(e){R=e}let I;function re(e){if(e===null)throw Lt(),at;return I=e}function Et(){return re(Ne(I))}function Te(e){if(R){if(Ne(I)!==null)throw Lt(),at;I=e}}function Oi(e=1){if(R){for(var t=e,n=I;t--;)n=Ne(n);I=n}}function Ft(e=!0){for(var t=0,n=I;;){if(n.nodeType===jt){var r=n.data;if(r===Zt){if(t===0)return n;t-=1}else(r===Bn||r===Xt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Ne(n);e&&n.remove(),n=i}}function Qn(e){if(!e||e.nodeType!==jt)throw Lt(),at;return e.data}function er(e){return e===this.v}function Ai(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function tr(e){return!Ai(e,this.v)}let Ci=!1,he=null;function dt(e){he=e}function nr(e,t=!1,n){he={p:he,i:!1,c:null,e:null,s:e,x:null,r:A,l:null}}function rr(e){var t=he,n=t.e;if(n!==null){t.e=null;for(var r of n)$r(r)}return e!==void 0&&(t.x=e),t.i=!0,he=t.p,e??{}}function ir(){return!0}let Ze=[];function sr(){var e=Ze;Ze=[],hi(e)}function De(e){if(Ze.length===0&&!xt){var t=Ze;queueMicrotask(()=>{t===Ze&&sr()})}Ze.push(e)}function Ri(){for(;Ze.length>0;)sr()}function or(e){var t=A;if(t===null)return O.f|=Ve,e;if((t.f&Ie)===0&&(t.f&ft)===0)throw e;Le(e,t)}function Le(e,t){for(;t!==null;){if((t.f&Qt)!==0){if((t.f&Ie)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Mi=-7169;function H(e,t){e.f=e.f&Mi|t}function rn(e){(e.f&ce)!==0||e.deps===null?H(e,Y):H(e,xe)}function ar(e){if(e!==null)for(const t of e)(t.f&U)===0||(t.f&Xe)===0||(t.f^=Xe,ar(t.deps))}function lr(e,t,n){(e.f&Z)!==0?t.add(e):(e.f&xe)!==0&&n.add(e),ar(e.deps),H(e,Y)}const Fe=new Set;let F=null,ye=null,sn=null,xt=!1,on=!1,ht=null,Pt=null;var ur=0;let Ii=1;class qe{id=Ii++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#o=new Set;#a=new Set;#l=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#u)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#l.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#l.get(t);if(n){this.#l.delete(t);for(var r of n.d)H(r,Z),this.schedule(r);for(r of n.m)H(r,xe),this.schedule(r)}}#h(){if(ur++>1e3&&(Fe.delete(this),Vi()),!this.#d()){for(const o of this.#o)this.#a.delete(o),H(o,Z),this.schedule(o);for(const o of this.#a)H(o,xe),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=ht=[],r=[],i=Pt=[];for(const o of t)try{this.#f(o,n,r)}catch(l){throw vr(o),l}if(F=null,i.length>0){var s=qe.ensure();for(const o of i)s.schedule(o)}if(ht=null,Pt=null,this.#d()||this.#v()){this.#p(r),this.#p(n);for(const[o,l]of this.#l)hr(o,l)}else{this.#t.size===0&&Fe.delete(this),this.#o.clear(),this.#a.clear();for(const o of this.#e)o(this);this.#e.clear(),fr(r),fr(n),this.#s?.resolve()}var a=F;if(this.#r.length>0){const o=a??=this;o.#r.push(...this.#r.filter(l=>!o.#r.includes(l)))}a!==null&&(Fe.add(a),a.#h()),Fe.has(this)||this.#_()}#f(t,n,r){t.f^=Y;for(var i=t.first;i!==null;){var s=i.f,a=(s&(ge|Me))!==0,o=a&&(s&Y)!==0,l=o||(s&oe)!==0||this.#l.has(i);if(!l&&i.fn!==null){a?i.f^=Y:(s&ft)!==0?n.push(i):St(i)&&((s&Re)!==0&&this.#a.add(i),pt(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#p(t){for(var n=0;n<t.length;n+=1)lr(t[n],this.#o,this.#a)}capture(t,n,r=!1){n!==W&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Ve)===0&&(this.current.set(t,[t.v,r]),ye?.set(t,t.v))}activate(){F=this}deactivate(){F=null,ye=null}flush(){try{on=!0,F=this,this.#h()}finally{ur=0,sn=null,ht=null,Pt=null,on=!1,F=null,ye=null,Je.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Fe.delete(this)}#_(){for(const u of Fe){var t=u.id<this.id,n=[];for(const[c,[_,v]]of this.current){if(u.current.has(c)){var r=u.current.get(c)[0];if(t&&_!==r)u.current.set(c,[_,v]);else continue}n.push(c)}var i=[...u.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)t&&u.discard();else if(n.length>0){u.activate();var s=new Set,a=new Map;for(var o of n)cr(o,i,s,a);if(u.#r.length>0){u.apply();for(var l of u.#r)u.#f(l,[],[]);u.#r=[]}u.deactivate()}}for(const u of Fe)u.#u.has(this)&&(u.#u.delete(this),u.#u.size===0&&!u.#d()&&(u.activate(),u.#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,De(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#o.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??=Kn()).promise}static ensure(){if(F===null){const t=F=new qe;on||(Fe.add(F),xt||De(()=>{F===t&&t.flush()}))}return F}apply(){{ye=null;return}}schedule(t){if(sn=t,t.b?.is_pending&&(t.f&(ft|Vt|Wn))!==0&&(t.f&Ie)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(ht!==null&&n===A&&(O===null||(O.f&U)===0))return;if((r&(Me|ge))!==0){if((r&Y)===0)return;n.f^=Y}}this.#r.push(n)}}function Pe(e){var t=xt;xt=!0;try{for(var n;;){if(Ri(),F===null)return n;F.flush()}}finally{xt=t}}function Vi(){try{xi()}catch(e){Le(e,sn)}}let Oe=null;function fr(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(de|oe))===0&&St(r)&&(Oe=new Set,pt(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Or(r),Oe?.size>0)){Je.clear();for(const i of Oe){if((i.f&(de|oe))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)Oe.has(a)&&(Oe.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const l=s[o];(l.f&(de|oe))===0&&pt(l)}}Oe.clear()}}Oe=null}}function cr(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&U)!==0?cr(i,t,n,r):(s&(tn|Re))!==0&&(s&Z)===0&&dr(i,t,r)&&(H(i,Z),an(i))}}function dr(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(lt.call(t,i))return!0;if((i.f&U)!==0&&dr(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function an(e){F.schedule(e)}function hr(e,t){if(!((e.f&ge)!==0&&(e.f&Y)!==0)){(e.f&Z)!==0?t.d.push(e):(e.f&xe)!==0&&t.m.push(e),H(e,Y);for(var n=e.first;n!==null;)hr(n,t),n=n.next}}function vr(e){H(e,Y);for(var t=e.first;t!==null;)vr(t),t=t.next}function Di(e){let t=0,n=Qe(0),r;return()=>{pn()&&(h(n),Tr(()=>(t===0&&(r=as(()=>e(()=>Nt(n)))),t+=1,()=>{De(()=>{t-=1,t===0&&(r?.(),r=void 0,Nt(n))})})))}}var Li=ct|We;function Fi(e,t,n,r){new Pi(e,t,n,r)}class Pi{parent;is_pending=!1;transform_error;#e;#n=R?I:null;#t;#i;#s;#r=null;#o=null;#a=null;#l=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#p=Di(()=>(this.#f=Qe(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var a=A;a.b=this,a.f|=Qt,r(s)},this.parent=A.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=_n(()=>{if(R){const s=this.#n;Et();const a=s.data===Xt;if(s.data.startsWith(Hn)){const l=JSON.parse(s.data.slice(Hn.length));this.#y(l)}else a?this.#j():this.#_()}else this.#g()},Li),R&&(this.#e=I)}#_(){try{this.#r=pe(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#a=pe(()=>{n(this.#e,()=>t,()=>()=>{})}))}#j(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=pe(()=>t(this.#e)),De(()=>{var n=this.#l=document.createDocumentFragment(),r=le();n.append(r),this.#r=this.#m(()=>pe(()=>this.#i(r))),this.#u===0&&(this.#e.before(n),this.#l=null,tt(this.#o,()=>{this.#o=null}),this.#b(F))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#r=pe(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();gn(this.#r,t);const n=this.#t.pending;this.#o=pe(()=>n(this.#e))}else this.#b(F)}catch(n){this.error(n)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){lr(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=A,r=O,i=he;_e(this.#s),ie(this.#s),dt(this.#s.ctx);try{return qe.ensure(),t()}catch(s){return or(s),null}finally{_e(n),ie(r),dt(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#u+=t,this.#u===0&&(this.#b(n),this.#o&&tt(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,De(()=>{this.#d=!1,this.#f&&vt(this.#f,this.#c)}))}get_effect_pending(){return this.#p(),h(this.#f)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(Q(this.#r),this.#r=null),this.#o&&(Q(this.#o),this.#o=null),this.#a&&(Q(this.#a),this.#a=null),R&&(re(this.#n),Oi(),re(Ft()));var i=!1,s=!1;const a=()=>{if(i){qi();return}i=!0,s&&Ti(),this.#a!==null&&tt(this.#a,()=>{this.#a=null}),this.#m(()=>{this.#g()})},o=l=>{try{s=!0,n?.(l,a),s=!1}catch(u){Le(u,this.#s&&this.#s.parent)}r&&(this.#a=this.#m(()=>{try{return pe(()=>{var u=A;u.b=this,u.f|=Qt,r(this.#e,()=>l,()=>a)})}catch(u){return Le(u,this.#s.parent),null}}))};De(()=>{var l;try{l=this.transform_error(t)}catch(u){Le(u,this.#s&&this.#s.parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(o,u=>Le(u,this.#s&&this.#s.parent)):o(l)})}}function Ji(e,t,n,r){const i=Bt;var s=e.filter(v=>!v.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var a=A,o=Bi(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(v=>v.promise)):null;function u(v){o();try{r(v)}catch(p){(a.f&de)===0&&Le(p,a)}Jt()}if(n.length===0){l.then(()=>u(t.map(i)));return}var c=pr();function _(){Promise.all(n.map(v=>Hi(v))).then(v=>u([...t.map(i),...v])).catch(v=>Le(v,a)).finally(()=>c())}l?l.then(()=>{o(),_(),Jt()}):_()}function Bi(){var e=A,t=O,n=he,r=F;return function(s=!0){_e(e),ie(t),dt(n),s&&(e.f&de)===0&&(r?.activate(),r?.apply())}}function Jt(e=!0){_e(null),ie(null),dt(null),e&&F?.deactivate()}function pr(){var e=A,t=e.b,n=F,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 Bt(e){var t=U|Z,n=O!==null&&(O.f&U)!==0?O:null;return A!==null&&(A.f|=We),{ctx:he,deps:null,effects:null,equals:er,f:t,fn:e,reactions:null,rv:0,v:W,wv:0,parent:n??A,ac:null}}function Hi(e,t,n){let r=A;r===null&&gi();var i=void 0,s=Qe(W),a=!O,o=new Map;return ns(()=>{var l=A,u=Kn();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(Jt)}catch(p){u.reject(p),Jt()}var c=F;if(a){if((l.f&Ie)!==0)var _=pr();if(r.b.is_rendered())o.get(c)?.reject($e),o.delete(c);else{for(const p of o.values())p.reject($e);o.clear()}o.set(c,u)}const v=(p,y=void 0)=>{if(_){var C=y===$e;_(C)}if(!(y===$e||(l.f&de)!==0)){if(c.activate(),y)s.f|=Ve,vt(s,y);else{(s.f&Ve)!==0&&(s.f^=Ve),vt(s,p);for(const[m,M]of o){if(o.delete(m),m===c)break;M.reject($e)}}c.deactivate()}};u.promise.then(v,p=>v(null,p||"unknown"))}),Sr(()=>{for(const l of o.values())l.reject($e)}),new Promise(l=>{function u(c){function _(){c===i?l(s):u(i)}c.then(_,_)}u(i)})}function kt(e){const t=Bt(e);return Mr(t),t}function zi(e){const t=Bt(e);return t.equals=tr,t}function Yi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Q(t[n])}}function Ui(e){for(var t=e.parent;t!==null;){if((t.f&U)===0)return(t.f&de)===0?t:null;t=t.parent}return null}function ln(e){var t,n=A;_e(Ui(e));try{e.f&=~Xe,Yi(e),t=Fr(e)}finally{_e(n)}return t}function _r(e){var t=e.v,n=ln(e);if(!e.equals(n)&&(e.wv=Dr(),(!F?.is_fork||e.deps===null)&&(e.v=n,F?.capture(e,t,!0),e.deps===null))){H(e,Y);return}ze||(ye!==null?(pn()||F?.is_fork)&&ye.set(e,n):rn(e))}function Gi(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort($e),t.teardown=di,t.ac=null,$t(t,0),bn(t))}function br(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&pt(t)}let un=new Set;const Je=new Map;let mr=!1;function Qe(e,t){var n={f:0,v:e,reactions:null,equals:er,rv:0,wv:0};return n}function ve(e,t){const n=Qe(e);return Mr(n),n}function gr(e,t=!1,n=!0){const r=Qe(e);return t||(r.equals=tr),r}function ae(e,t,n=!1){O!==null&&(!je||(O.f&Zn)!==0)&&ir()&&(O.f&(U|Re|tn|Zn))!==0&&(be===null||!lt.call(be,e))&&$i();let r=n?Be(t):t;return vt(e,r,Pt)}function vt(e,t,n=null){if(!e.equals(t)){var r=e.v;ze?Je.set(e,t):Je.set(e,r),e.v=t;var i=qe.ensure();if(i.capture(e,r),(e.f&U)!==0){const s=e;(e.f&Z)!==0&&ln(s),ye===null&&rn(s)}e.wv=Dr(),wr(e,Z,n),A!==null&&(A.f&Y)!==0&&(A.f&(ge|Me))===0&&(me===null?ss([e]):me.push(e)),!i.is_fork&&un.size>0&&!mr&&Ki()}return t}function Ki(){mr=!1;for(const e of un)(e.f&Y)!==0&&H(e,xe),St(e)&&pt(e);un.clear()}function Nt(e){ae(e,e.v+1)}function wr(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var a=r[s],o=a.f,l=(o&Z)===0;if(l&&H(a,t),(o&U)!==0){var u=a;ye?.delete(u),(o&Xe)===0&&(o&ce&&(a.f|=Xe),wr(u,xe,n))}else if(l){var c=a;(o&Re)!==0&&Oe!==null&&Oe.add(c),n!==null?n.push(c):an(c)}}}function Be(e){if(typeof e!="object"||e===null||nn in e)return e;const t=Un(e);if(t!==fi&&t!==ci)return e;var n=new Map,r=Yn(e),i=ve(0),s=rt,a=o=>{if(rt===s)return o();var l=O,u=rt;ie(null),Vr(s);var c=o();return ie(l),Vr(u),c};return r&&n.set("length",ve(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Ni();var c=n.get(l);return c===void 0?a(()=>{var _=ve(u.value);return n.set(l,_),_}):ae(c,u.value,!0),!0},deleteProperty(o,l){var u=n.get(l);if(u===void 0){if(l in o){const c=a(()=>ve(W));n.set(l,c),Nt(i)}}else ae(u,W),Nt(i);return!0},get(o,l,u){if(l===nn)return e;var c=n.get(l),_=l in o;if(c===void 0&&(!_||ut(o,l)?.writable)&&(c=a(()=>{var p=Be(_?o[l]:W),y=ve(p);return y}),n.set(l,c)),c!==void 0){var v=h(c);return v===W?void 0:v}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var c=n.get(l);c&&(u.value=h(c))}else if(u===void 0){var _=n.get(l),v=_?.v;if(_!==void 0&&v!==W)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(o,l){if(l===nn)return!0;var u=n.get(l),c=u!==void 0&&u.v!==W||Reflect.has(o,l);if(u!==void 0||A!==null&&(!c||ut(o,l)?.writable)){u===void 0&&(u=a(()=>{var v=c?Be(o[l]):W,p=ve(v);return p}),n.set(l,u));var _=h(u);if(_===W)return!1}return c},set(o,l,u,c){var _=n.get(l),v=l in o;if(r&&l==="length")for(var p=u;p<_.v;p+=1){var y=n.get(p+"");y!==void 0?ae(y,W):p in o&&(y=a(()=>ve(W)),n.set(p+"",y))}if(_===void 0)(!v||ut(o,l)?.writable)&&(_=a(()=>ve(void 0)),ae(_,Be(u)),n.set(l,_));else{v=_.v!==W;var C=a(()=>Be(u));ae(_,C)}var m=Reflect.getOwnPropertyDescriptor(o,l);if(m?.set&&m.set.call(c,u),!v){if(r&&typeof l=="string"){var M=n.get("length"),B=Number(l);Number.isInteger(B)&&B>=M.v&&ae(M,B+1)}Nt(i)}return!0},ownKeys(o){h(i);var l=Reflect.ownKeys(o).filter(_=>{var v=n.get(_);return v===void 0||v.v!==W});for(var[u,c]of n)c.v!==W&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Si()}})}var yr,jr,Er,xr;function fn(){if(yr===void 0){yr=window,jr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Er=ut(t,"firstChild").get,xr=ut(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 le(e=""){return document.createTextNode(e)}function et(e){return Er.call(e)}function Ne(e){return xr.call(e)}function He(e,t){if(!R)return et(e);var n=et(I);return n===null&&(n=I.appendChild(le())),re(n),n}function cn(e,t=!1){if(!R){var n=et(e);return n instanceof Comment&&n.data===""?Ne(n):n}if(t){if(I?.nodeType!==Dt){var r=le();return I?.before(r),re(r),r}hn(I)}return I}function Ht(e,t=1,n=!1){let r=R?I:e;for(var i;t--;)i=r,r=Ne(r);if(!R)return r;if(n){if(r?.nodeType!==Dt){var s=le();return r===null?i?.after(s):r.before(s),re(s),s}hn(r)}return re(r),r}function kr(e){e.textContent=""}function Nr(){return!1}function dn(e,t,n){return document.createElementNS(zn,e,void 0)}function hn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Dt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function vn(e){var t=O,n=A;ie(null),_e(null);try{return e()}finally{ie(t),_e(n)}}function Wi(e){A===null&&(O===null&&Ei(),ji()),ze&&yi()}function Xi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Se(e,t){var n=A;n!==null&&(n.f&oe)!==0&&(e|=oe);var r={ctx:he,deps:null,nodes:null,f:e|Z|ce,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&ft)!==0)ht!==null?ht.push(r):qe.ensure().schedule(r);else if(t!==null){try{pt(r)}catch(a){throw Q(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&We)===0&&(i=i.first,(e&Re)!==0&&(e&ct)!==0&&i!==null&&(i.f|=ct))}if(i!==null&&(i.parent=n,n!==null&&Xi(i,n),O!==null&&(O.f&U)!==0&&(e&Me)===0)){var s=O;(s.effects??=[]).push(i)}return r}function pn(){return O!==null&&!je}function Sr(e){const t=Se(Vt,null);return H(t,Y),t.teardown=e,t}function Zi(e){Wi();var t=A.f,n=!O&&(t&ge)!==0&&(t&Ie)===0;if(n){var r=he;(r.e??=[]).push(e)}else return $r(e)}function $r(e){return Se(ft|pi,e)}function Qi(e){qe.ensure();const t=Se(Me|We,e);return()=>{Q(t)}}function es(e){qe.ensure();const t=Se(Me|We,e);return(n={})=>new Promise(r=>{n.outro?tt(t,()=>{Q(t),r(void 0)}):(Q(t),r(void 0))})}function ts(e){return Se(ft,e)}function ns(e){return Se(tn|We,e)}function Tr(e,t=0){return Se(Vt|t,e)}function g(e,t=[],n=[],r=[]){Ji(r,t,n,i=>{Se(Vt,()=>e(...i.map(h)))})}function _n(e,t=0){var n=Se(Re|t,e);return n}function pe(e){return Se(ge|We,e)}function qr(e){var t=e.teardown;if(t!==null){const n=ze,r=O;Rr(!0),ie(null);try{t.call(null)}finally{Rr(n),ie(r)}}}function bn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&vn(()=>{i.abort($e)});var r=n.next;(n.f&Me)!==0?n.parent=null:Q(n,t),n=r}}function rs(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ge)===0&&Q(t),t=n}}function Q(e,t=!0){var n=!1;(t||(e.f&vi)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(is(e.nodes.start,e.nodes.end),n=!0),H(e,Xn),bn(e,t&&!n),$t(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();qr(e),e.f^=Xn,e.f|=de;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=e.ac=e.b=null}function is(e,t){for(;e!==null;){var n=e===t?null:Ne(e);e.remove(),e=n}}function Or(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 tt(e,t,n=!0){var r=[];Ar(e,r,!0);var i=()=>{n&&Q(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var o of r)o.out(a)}else i()}function Ar(e,t,n){if((e.f&oe)===0){e.f^=oe;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&ct)!==0||(i.f&ge)!==0&&(e.f&Re)!==0;Ar(i,t,a?n:!1),i=s}}}function mn(e){Cr(e,!0)}function Cr(e,t){if((e.f&oe)!==0){e.f^=oe,(e.f&Y)===0&&(H(e,Z),qe.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ct)!==0||(n.f&ge)!==0;Cr(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 gn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Ne(n);t.append(n),n=i}}let zt=!1,ze=!1;function Rr(e){ze=e}let O=null,je=!1;function ie(e){O=e}let A=null;function _e(e){A=e}let be=null;function Mr(e){O!==null&&(be===null?be=[e]:be.push(e))}let se=null,ue=0,me=null;function ss(e){me=e}let Ir=1,nt=0,rt=nt;function Vr(e){rt=e}function Dr(){return++Ir}function St(e){var t=e.f;if((t&Z)!==0)return!0;if(t&U&&(e.f&=~Xe),(t&xe)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(St(s)&&_r(s),s.wv>e.wv)return!0}(t&ce)!==0&&ye===null&&H(e,Y)}return!1}function Lr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(be!==null&<.call(be,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&U)!==0?Lr(s,t,!1):t===s&&(n?H(s,Z):(s.f&Y)!==0&&H(s,xe),an(s))}}function Fr(e){var t=se,n=ue,r=me,i=O,s=be,a=he,o=je,l=rt,u=e.f;se=null,ue=0,me=null,O=(u&(ge|Me))===0?e:null,be=null,dt(e.ctx),je=!1,rt=++nt,e.ac!==null&&(vn(()=>{e.ac.abort($e)}),e.ac=null);try{e.f|=en;var c=e.fn,_=c();e.f|=Ie;var v=e.deps,p=F?.is_fork;if(se!==null){var y;if(p||$t(e,ue),v!==null&&ue>0)for(v.length=ue+se.length,y=0;y<se.length;y++)v[ue+y]=se[y];else e.deps=v=se;if(pn()&&(e.f&ce)!==0)for(y=ue;y<v.length;y++)(v[y].reactions??=[]).push(e)}else!p&&v!==null&&ue<v.length&&($t(e,ue),v.length=ue);if(ir()&&me!==null&&!je&&v!==null&&(e.f&(U|xe|Z))===0)for(y=0;y<me.length;y++)Lr(me[y],e);if(i!==null&&i!==e){if(nt++,i.deps!==null)for(let C=0;C<n;C+=1)i.deps[C].rv=nt;if(t!==null)for(const C of t)C.rv=nt;me!==null&&(r===null?r=me:r.push(...me))}return(e.f&Ve)!==0&&(e.f^=Ve),_}catch(C){return or(C)}finally{e.f^=en,se=t,ue=n,me=r,O=i,be=s,dt(a),je=o,rt=l}}function os(e,t){let n=t.reactions;if(n!==null){var r=li.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&U)!==0&&(se===null||!lt.call(se,t))){var s=t;(s.f&ce)!==0&&(s.f^=ce,s.f&=~Xe),rn(s),Gi(s),$t(s,0)}}function $t(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)os(e,n[r])}function pt(e){var t=e.f;if((t&de)===0){H(e,Y);var n=A,r=zt;A=e,zt=!0;try{(t&(Re|Wn))!==0?rs(e):bn(e),qr(e);var i=Fr(e);e.teardown=typeof i=="function"?i:null,e.wv=Ir;var s;ai&&Ci&&(e.f&Z)!==0&&e.deps}finally{zt=r,A=n}}}function h(e){var t=e.f,n=(t&U)!==0;if(O!==null&&!je){var r=A!==null&&(A.f&de)!==0;if(!r&&(be===null||!lt.call(be,e))){var i=O.deps;if((O.f&en)!==0)e.rv<nt&&(e.rv=nt,se===null&&i!==null&&i[ue]===e?ue++:se===null?se=[e]:se.push(e));else{(O.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[O]:lt.call(s,O)||s.push(O)}}}if(ze&&Je.has(e))return Je.get(e);if(n){var a=e;if(ze){var o=a.v;return((a.f&Y)===0&&a.reactions!==null||Jr(a))&&(o=ln(a)),Je.set(a,o),o}var l=(a.f&ce)===0&&!je&&O!==null&&(zt||(O.f&ce)!==0),u=(a.f&Ie)===0;St(a)&&(l&&(a.f|=ce),_r(a)),l&&!u&&(br(a),Pr(a))}if(ye?.has(e))return ye.get(e);if((e.f&Ve)!==0)throw e.v;return e.v}function Pr(e){if(e.f|=ce,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&U)!==0&&(t.f&ce)===0&&(br(t),Pr(t))}function Jr(e){if(e.v===W)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Je.has(t)||(t.f&U)!==0&&Jr(t))return!0;return!1}function as(e){var t=je;try{return je=!0,e()}finally{je=t}}const Tt=Symbol("events"),Br=new Set,wn=new Set;function ls(e,t,n,r={}){function i(s){if(r.capture||yn.call(t,s),!s.cancelBubble)return vn(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?De(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function $(e,t,n,r,i){var s={capture:r,passive:i},a=ls(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Sr(()=>{t.removeEventListener(e,a,s)})}function us(e,t,n){(t[Tt]??={})[e]=n}function fs(e){for(var t=0;t<e.length;t++)Br.add(e[t]);for(var n of wn)n(e)}let Hr=null;function yn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Hr=e;var a=0,o=Hr===e&&e[Tt];if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e[Tt]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){It(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=O,_=A;ie(null),_e(null);try{for(var v,p=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var C=s[Tt]?.[r];C!=null&&(!s.disabled||e.target===s)&&C.call(s,e)}catch(m){v?p.push(m):v=m}if(e.cancelBubble||y===t||y===null)break;s=y}if(v){for(let m of p)queueMicrotask(()=>{throw m});throw v}}finally{e[Tt]=t,delete e.currentTarget,ie(c),_e(_)}}}const cs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ds(e){return cs?.createHTML(e)??e}function hs(e){var t=dn("template");return t.innerHTML=ds(e.replaceAll("<!>","<!---->")),t.content}function Ye(e,t){var n=A;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function q(e,t){var n=(t&si)!==0,r=(t&oi)!==0,i,s=!e.startsWith("<!>");return()=>{if(R)return Ye(I,null),I;i===void 0&&(i=hs(s?e:"<!>"+e),n||(i=et(i)));var a=r||jr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=et(a),l=a.lastChild;Ye(o,l)}else Ye(a,a);return a}}function vs(e=""){if(!R){var t=le(e+"");return Ye(t,t),t}var n=I;return n.nodeType!==Dt?(n.before(n=le()),re(n)):hn(n),Ye(n,n),n}function zr(){if(R)return Ye(I,null),I;var e=document.createDocumentFragment(),t=document.createComment(""),n=le();return e.append(t,n),Ye(t,n),e}function S(e,t){if(R){var n=A;((n.f&Ie)===0||n.nodes.end===null)&&(n.nodes.end=I),Et();return}e!==null&&e.before(t)}const ps=["touchstart","touchmove"];function _s(e){return ps.includes(e)}function Yr(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Ur(e,t){return Gr(e,t)}function bs(e,t){fn(),t.intro=t.intro??!1;const n=t.target,r=R,i=I;try{for(var s=et(n);s&&(s.nodeType!==jt||s.data!==Bn);)s=Ne(s);if(!s)throw at;we(!0),re(s);const a=Gr(e,{...t,anchor:s});return we(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==at&&console.warn("Failed to hydrate: ",a),t.recover===!1&&ki(),fn(),kr(n),we(!1),Ur(e,t)}finally{we(r),re(i)}}const Yt=new Map;function Gr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:o}){fn();var l=void 0,u=es(()=>{var c=n??t.appendChild(le());Fi(c,{pending:()=>{}},p=>{nr({});var y=he;if(s&&(y.c=s),i&&(r.$$events=i),R&&Ye(p,null),l=e(p,r)||{},R&&(A.nodes.end=I,I===null||I.nodeType!==jt||I.data!==Zt))throw Lt(),at;rr()},o);var _=new Set,v=p=>{for(var y=0;y<p.length;y++){var C=p[y];if(!_.has(C)){_.add(C);var m=_s(C);for(const P of[t,document]){var M=Yt.get(P);M===void 0&&(M=new Map,Yt.set(P,M));var B=M.get(C);B===void 0?(P.addEventListener(C,yn,{passive:m}),M.set(C,1)):M.set(C,B+1)}}}};return v(Rt(Br)),wn.add(v),()=>{for(var p of _)for(const m of[t,document]){var y=Yt.get(m),C=y.get(p);--C==0?(m.removeEventListener(p,yn),y.delete(p),y.size===0&&Yt.delete(m)):y.set(p,C)}wn.delete(v),c!==n&&c.parentNode?.removeChild(c)}});return jn.set(l,u),l}let jn=new WeakMap;function ms(e,t){const n=jn.get(e);return n?(jn.delete(e),n(t)):Promise.resolve()}class gs{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)mn(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 o=this.#t.get(a);o&&(Q(o.effect),this.#t.delete(a))}for(const[s,a]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var u=document.createDocumentFragment();gn(a,u),u.append(le()),this.#t.set(s,{effect:a,fragment:u})}else Q(a);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),tt(a,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(Q(i.effect),this.#t.delete(r))};ensure(t,n){var r=F,i=Nr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),a=le();s.append(a),this.#t.set(t,{effect:pe(()=>n(a)),fragment:s})}else this.#n.set(t,pe(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,l]of this.#n)o===t?r.unskip_effect(l):r.skip_effect(l);for(const[o,l]of this.#t)o===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else R&&(this.anchor=I),this.#r(r)}}function Ue(e,t,n=!1){var r;R&&(r=I,Et());var i=new gs(e),s=n?ct:0;function a(o,l){if(R){var u=Qn(r);if(o!==parseInt(u.substring(1))){var c=Ft();re(c),i.anchor=c,we(!1),i.ensure(o,l),we(!0);return}}i.ensure(o,l)}_n(()=>{var o=!1;t((l,u=0)=>{o=!0,a(u,l)}),o||a(-1,null)},s)}function ws(e,t,n){for(var r=[],i=t.length,s,a=t.length,o=0;o<i;o++){let _=t[o];tt(_,()=>{if(s){if(s.pending.delete(_),s.done.add(_),s.pending.size===0){var v=e.outrogroups;En(e,Rt(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var l=r.length===0&&n!==null;if(l){var u=n,c=u.parentNode;kr(c),c.append(u),e.items.clear()}En(e,t,!l)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function En(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const a of e.pending.values())for(const o of a)r.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ke;const a=document.createDocumentFragment();gn(s,a)}else Q(t[i],n)}}var Kr;function Wr(e,t,n,r,i,s=null){var a=e,o=new Map,l=(t&Jn)!==0;if(l){var u=e;a=R?re(et(u)):u.appendChild(le())}R&&Et();var c=null,_=zi(()=>{var P=n();return Yn(P)?P:P==null?[]:Rt(P)}),v,p=new Map,y=!0;function C(P){(B.effect.f&de)===0&&(B.pending.delete(P),B.fallback=c,ys(B,v,a,t,r),c!==null&&(v.length===0?(c.f&ke)===0?mn(c):(c.f^=ke,Ot(c,null,a)):tt(c,()=>{c=null})))}function m(P){B.pending.delete(P)}var M=_n(()=>{v=h(_);var P=v.length;let ne=!1;if(R){var _t=Qn(a)===Xt;_t!==(P===0)&&(a=Ft(),re(a),we(!1),ne=!0)}for(var Ee=new Set,X=F,Ae=Nr(),J=0;J<P;J+=1){R&&I.nodeType===jt&&I.data===Zt&&(a=I,ne=!0,we(!1));var T=v[J],bt=r(T,J),fe=y?null:o.get(bt);fe?(fe.v&&vt(fe.v,T),fe.i&&vt(fe.i,J),Ae&&X.unskip_effect(fe.e)):(fe=js(o,y?a:Kr??=le(),T,bt,J,i,t,n),y||(fe.e.f|=ke),o.set(bt,fe)),Ee.add(bt)}if(P===0&&s&&!c&&(y?c=pe(()=>s(a)):(c=pe(()=>s(Kr??=le())),c.f|=ke)),P>Ee.size&&wi(),R&&P>0&&re(Ft()),!y)if(p.set(X,Ee),Ae){for(const[Sn,$n]of o)Ee.has(Sn)||X.skip_effect($n.e);X.oncommit(C),X.ondiscard(m)}else C(X);ne&&we(!0),h(_)}),B={effect:M,items:o,pending:p,outrogroups:null,fallback:c};y=!1,R&&(a=I)}function qt(e){for(;e!==null&&(e.f&ge)===0;)e=e.next;return e}function ys(e,t,n,r,i){var s=(r&ri)!==0,a=t.length,o=e.items,l=qt(e.effect.first),u,c=null,_,v=[],p=[],y,C,m,M;if(s)for(M=0;M<a;M+=1)y=t[M],C=i(y,M),m=o.get(C).e,(m.f&ke)===0&&(m.nodes?.a?.measure(),(_??=new Set).add(m));for(M=0;M<a;M+=1){if(y=t[M],C=i(y,M),m=o.get(C).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(m),T.done.delete(m);if((m.f&oe)!==0&&(mn(m),s&&(m.nodes?.a?.unfix(),(_??=new Set).delete(m))),(m.f&ke)!==0)if(m.f^=ke,m===l)Ot(m,null,n);else{var B=c?c.next:l;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Ge(e,c,m),Ge(e,m,B),Ot(m,B,n),c=m,v=[],p=[],l=qt(c.next);continue}if(m!==l){if(u!==void 0&&u.has(m)){if(v.length<p.length){var P=p[0],ne;c=P.prev;var _t=v[0],Ee=v[v.length-1];for(ne=0;ne<v.length;ne+=1)Ot(v[ne],P,n);for(ne=0;ne<p.length;ne+=1)u.delete(p[ne]);Ge(e,_t.prev,Ee.next),Ge(e,c,_t),Ge(e,Ee,P),l=P,c=Ee,M-=1,v=[],p=[]}else u.delete(m),Ot(m,l,n),Ge(e,m.prev,m.next),Ge(e,m,c===null?e.effect.first:c.next),Ge(e,c,m),c=m;continue}for(v=[],p=[];l!==null&&l!==m;)(u??=new Set).add(l),p.push(l),l=qt(l.next);if(l===null)continue}(m.f&ke)===0&&v.push(m),c=m,l=qt(m.next)}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(En(e,Rt(T.done)),e.outrogroups?.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var X=[];if(u!==void 0)for(m of u)(m.f&oe)===0&&X.push(m);for(;l!==null;)(l.f&oe)===0&&l!==e.fallback&&X.push(l),l=qt(l.next);var Ae=X.length;if(Ae>0){var J=(r&Jn)!==0&&a===0?n:null;if(s){for(M=0;M<Ae;M+=1)X[M].nodes?.a?.measure();for(M=0;M<Ae;M+=1)X[M].nodes?.a?.fix()}ws(e,X,J)}}s&&De(()=>{if(_!==void 0)for(m of _)m.nodes?.a?.apply()})}function js(e,t,n,r,i,s,a,o){var l=(a&ti)!==0?(a&ii)===0?gr(n,!1,!1):Qe(n):null,u=(a&ni)!==0?Qe(i):null;return{v:l,i:u,e:pe(()=>(s(t,l??n,u??i,o),()=>{e.delete(r)}))}}function Ot(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ke)===0?t.nodes.start:n;r!==null;){var a=Ne(r);if(s.before(r),r===i)return;r=a}}function Ge(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function xn(e,t,n,r,i){R&&Et();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 Es(e,t){ts(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=dn("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function xs(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function ks(e,t){return e==null?null:String(e)}function L(e,t,n,r,i,s){var a=e.__className;if(R||a!==n||a===void 0){var o=xs(n);(!R||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}function Ns(e,t,n,r){var i=e.__style;if(R||i!==t){var s=ks(t);(!R||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Ss=Symbol("is custom element"),$s=Symbol("is html"),Ts=mi?"link":"LINK";function kn(e,t,n,r){var i=qs(e);R&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Ts)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[bi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Xr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function w(e,t,n){var r=O,i=A;let s=R;R&&we(!1),ie(null),_e(null);try{t!=="style"&&(Nn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Xr(e).includes(t):n&&typeof n=="object")?e[t]=n:kn(e,t,n==null?n:String(n))}finally{ie(r),_e(i),s&&we(!0)}}function qs(e){return e.__attributes??={[Ss]:e.nodeName.includes("-"),[$s]:e.namespaceURI===zn}}var Nn=new Map;function Xr(e){var t=e.getAttribute("is")||e.nodeName,n=Nn.get(t);if(n)return n;Nn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ui(i);for(var a in r)r[a].set&&n.push(a);i=Un(i)}return n}function it(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=a());var l;l=()=>{var v=e[t];return v===void 0?a():(s=!0,v)};var u=!1,c=Bt(()=>(u=!1,l())),_=A;return(function(v,p){if(arguments.length>0){const y=p?h(c):v;return ae(c,y),u=!0,i!==void 0&&(i=y),v}return ze&&u||(_.f&de)!==0?c.v:h(c)})}function Os(e){return new As(e)}class As{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var o=gr(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return h(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===_i?!0:(h(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return ae(n.get(a)??r(a,o),o),Reflect.set(s,a,o)}});this.#n=(t.hydrate?bs:Ur)(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)&&Pe(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||It(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=()=>{ms(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 Zr;typeof HTMLElement=="function"&&(Zr=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=dn("slot");r!=="default"&&(s.name=r),S(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Cs(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]=Ut(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=Os({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Qi(()=>{Tr(()=>{this.$$r=!0;for(const r of Mt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ut(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]=Ut(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 Mt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ut(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 Cs(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Rs(e,t,n,r,i,s){let a=class extends Zr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Mt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Mt(t).forEach(o=>{It(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Ut(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var c=ut(u,o)?.get;c?u[o]=l:u.$set({[o]:l})}}})}),r.forEach(o=>{It(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const ee={version:"0.66.4"},Ms=(e,t)=>e.reduce((n,r)=>{for(const i of t(r))(n[i]=n[i]||[]).push(r);return n},{});function te(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 Is=q('<label class="svelte-yjqjiw"> </label>'),Vs=q("<hb-input-array-objects></hb-input-array-objects>",2),Ds=q("<hb-input-array-tags></hb-input-array-tags>",2),Ls=q("<hb-input-text></hb-input-text>",2),Fs=q("<hb-input-color></hb-input-color>",2),Ps=q("<hb-input-range></hb-input-range>",2),Js=q("<hb-input-file></hb-input-file>",2),Bs=q("<hb-input-email></hb-input-email>",2),Hs=q("<hb-input-date></hb-input-date>",2),zs=q("<hb-input-datetime></hb-input-datetime>",2),Ys=q("<hb-input-checkbox></hb-input-checkbox>",2),Us=q("<hb-input-number></hb-input-number>",2),Gs=q("<hb-input-area></hb-input-area>",2),Ks=q("<hb-input-radio></hb-input-radio>",2),Ws=q("<hb-input-select></hb-input-select>",2),Xs=q("<hb-input-coords></hb-input-coords>",2),Zs=q('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),Qs=q('<div class="row svelte-yjqjiw"></div>'),eo=q('<label class="svelte-yjqjiw"> </label>'),to=q("<hb-input-text></hb-input-text>",2),no=q("<hb-input-array-objects></hb-input-array-objects>",2),ro=q("<hb-input-array-tags></hb-input-array-tags>",2),io=q("<hb-input-color></hb-input-color>",2),so=q("<hb-input-range></hb-input-range>",2),oo=q("<hb-input-file></hb-input-file>",2),ao=q("<hb-input-email></hb-input-email>",2),lo=q("<hb-input-date></hb-input-date>",2),uo=q("<hb-input-datetime></hb-input-datetime>",2),fo=q("<hb-input-checkbox></hb-input-checkbox>",2),co=q("<hb-input-number></hb-input-number>",2),ho=q("<hb-input-area></hb-input-area>",2),vo=q("<hb-input-radio></hb-input-radio>",2),po=q("<hb-input-select></hb-input-select>",2),_o=q("<hb-input-coords></hb-input-coords>",2),bo=q('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),mo=q('<button part="main_button" type="button" class="btn btn-primary svelte-yjqjiw"><!></button>'),go=q('<div id="button_container" part="button_container" class="svelte-yjqjiw"><span class="svelte-yjqjiw"><!></span> <!></div>'),wo=q("<!> <!>",1),yo=q('<div class="container-fluid svelte-yjqjiw"><!></div>');const jo={hash:"svelte-yjqjiw",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");
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==at&&console.warn("Failed to hydrate: ",a),t.recover===!1&&ki(),fn(),kr(n),we(!1),Ur(e,t)}finally{we(r),re(i)}}const Yt=new Map;function Gr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:o}){fn();var l=void 0,u=es(()=>{var c=n??t.appendChild(le());Fi(c,{pending:()=>{}},p=>{nr({});var y=he;if(s&&(y.c=s),i&&(r.$$events=i),R&&Ye(p,null),l=e(p,r)||{},R&&(A.nodes.end=I,I===null||I.nodeType!==jt||I.data!==Zt))throw Lt(),at;rr()},o);var _=new Set,v=p=>{for(var y=0;y<p.length;y++){var C=p[y];if(!_.has(C)){_.add(C);var m=_s(C);for(const P of[t,document]){var M=Yt.get(P);M===void 0&&(M=new Map,Yt.set(P,M));var B=M.get(C);B===void 0?(P.addEventListener(C,yn,{passive:m}),M.set(C,1)):M.set(C,B+1)}}}};return v(Rt(Br)),wn.add(v),()=>{for(var p of _)for(const m of[t,document]){var y=Yt.get(m),C=y.get(p);--C==0?(m.removeEventListener(p,yn),y.delete(p),y.size===0&&Yt.delete(m)):y.set(p,C)}wn.delete(v),c!==n&&c.parentNode?.removeChild(c)}});return jn.set(l,u),l}let jn=new WeakMap;function ms(e,t){const n=jn.get(e);return n?(jn.delete(e),n(t)):Promise.resolve()}class gs{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)mn(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 o=this.#t.get(a);o&&(Q(o.effect),this.#t.delete(a))}for(const[s,a]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var u=document.createDocumentFragment();gn(a,u),u.append(le()),this.#t.set(s,{effect:a,fragment:u})}else Q(a);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),tt(a,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(Q(i.effect),this.#t.delete(r))};ensure(t,n){var r=F,i=Nr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),a=le();s.append(a),this.#t.set(t,{effect:pe(()=>n(a)),fragment:s})}else this.#n.set(t,pe(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,l]of this.#n)o===t?r.unskip_effect(l):r.skip_effect(l);for(const[o,l]of this.#t)o===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else R&&(this.anchor=I),this.#r(r)}}function Ue(e,t,n=!1){var r;R&&(r=I,Et());var i=new gs(e),s=n?ct:0;function a(o,l){if(R){var u=Qn(r);if(o!==parseInt(u.substring(1))){var c=Ft();re(c),i.anchor=c,we(!1),i.ensure(o,l),we(!0);return}}i.ensure(o,l)}_n(()=>{var o=!1;t((l,u=0)=>{o=!0,a(u,l)}),o||a(-1,null)},s)}function ws(e,t,n){for(var r=[],i=t.length,s,a=t.length,o=0;o<i;o++){let _=t[o];tt(_,()=>{if(s){if(s.pending.delete(_),s.done.add(_),s.pending.size===0){var v=e.outrogroups;En(e,Rt(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var l=r.length===0&&n!==null;if(l){var u=n,c=u.parentNode;kr(c),c.append(u),e.items.clear()}En(e,t,!l)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function En(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const a of e.pending.values())for(const o of a)r.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ke;const a=document.createDocumentFragment();gn(s,a)}else Q(t[i],n)}}var Kr;function Wr(e,t,n,r,i,s=null){var a=e,o=new Map,l=(t&Jn)!==0;if(l){var u=e;a=R?re(et(u)):u.appendChild(le())}R&&Et();var c=null,_=zi(()=>{var P=n();return Yn(P)?P:P==null?[]:Rt(P)}),v,p=new Map,y=!0;function C(P){(B.effect.f&de)===0&&(B.pending.delete(P),B.fallback=c,ys(B,v,a,t,r),c!==null&&(v.length===0?(c.f&ke)===0?mn(c):(c.f^=ke,Ot(c,null,a)):tt(c,()=>{c=null})))}function m(P){B.pending.delete(P)}var M=_n(()=>{v=h(_);var P=v.length;let ne=!1;if(R){var _t=Qn(a)===Xt;_t!==(P===0)&&(a=Ft(),re(a),we(!1),ne=!0)}for(var Ee=new Set,X=F,Ae=Nr(),J=0;J<P;J+=1){R&&I.nodeType===jt&&I.data===Zt&&(a=I,ne=!0,we(!1));var T=v[J],bt=r(T,J),fe=y?null:o.get(bt);fe?(fe.v&&vt(fe.v,T),fe.i&&vt(fe.i,J),Ae&&X.unskip_effect(fe.e)):(fe=js(o,y?a:Kr??=le(),T,bt,J,i,t,n),y||(fe.e.f|=ke),o.set(bt,fe)),Ee.add(bt)}if(P===0&&s&&!c&&(y?c=pe(()=>s(a)):(c=pe(()=>s(Kr??=le())),c.f|=ke)),P>Ee.size&&wi(),R&&P>0&&re(Ft()),!y)if(p.set(X,Ee),Ae){for(const[Sn,$n]of o)Ee.has(Sn)||X.skip_effect($n.e);X.oncommit(C),X.ondiscard(m)}else C(X);ne&&we(!0),h(_)}),B={effect:M,items:o,pending:p,outrogroups:null,fallback:c};y=!1,R&&(a=I)}function qt(e){for(;e!==null&&(e.f&ge)===0;)e=e.next;return e}function ys(e,t,n,r,i){var s=(r&ri)!==0,a=t.length,o=e.items,l=qt(e.effect.first),u,c=null,_,v=[],p=[],y,C,m,M;if(s)for(M=0;M<a;M+=1)y=t[M],C=i(y,M),m=o.get(C).e,(m.f&ke)===0&&(m.nodes?.a?.measure(),(_??=new Set).add(m));for(M=0;M<a;M+=1){if(y=t[M],C=i(y,M),m=o.get(C).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(m),T.done.delete(m);if((m.f&oe)!==0&&(mn(m),s&&(m.nodes?.a?.unfix(),(_??=new Set).delete(m))),(m.f&ke)!==0)if(m.f^=ke,m===l)Ot(m,null,n);else{var B=c?c.next:l;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Ge(e,c,m),Ge(e,m,B),Ot(m,B,n),c=m,v=[],p=[],l=qt(c.next);continue}if(m!==l){if(u!==void 0&&u.has(m)){if(v.length<p.length){var P=p[0],ne;c=P.prev;var _t=v[0],Ee=v[v.length-1];for(ne=0;ne<v.length;ne+=1)Ot(v[ne],P,n);for(ne=0;ne<p.length;ne+=1)u.delete(p[ne]);Ge(e,_t.prev,Ee.next),Ge(e,c,_t),Ge(e,Ee,P),l=P,c=Ee,M-=1,v=[],p=[]}else u.delete(m),Ot(m,l,n),Ge(e,m.prev,m.next),Ge(e,m,c===null?e.effect.first:c.next),Ge(e,c,m),c=m;continue}for(v=[],p=[];l!==null&&l!==m;)(u??=new Set).add(l),p.push(l),l=qt(l.next);if(l===null)continue}(m.f&ke)===0&&v.push(m),c=m,l=qt(m.next)}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(En(e,Rt(T.done)),e.outrogroups?.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var X=[];if(u!==void 0)for(m of u)(m.f&oe)===0&&X.push(m);for(;l!==null;)(l.f&oe)===0&&l!==e.fallback&&X.push(l),l=qt(l.next);var Ae=X.length;if(Ae>0){var J=(r&Jn)!==0&&a===0?n:null;if(s){for(M=0;M<Ae;M+=1)X[M].nodes?.a?.measure();for(M=0;M<Ae;M+=1)X[M].nodes?.a?.fix()}ws(e,X,J)}}s&&De(()=>{if(_!==void 0)for(m of _)m.nodes?.a?.apply()})}function js(e,t,n,r,i,s,a,o){var l=(a&ti)!==0?(a&ii)===0?gr(n,!1,!1):Qe(n):null,u=(a&ni)!==0?Qe(i):null;return{v:l,i:u,e:pe(()=>(s(t,l??n,u??i,o),()=>{e.delete(r)}))}}function Ot(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ke)===0?t.nodes.start:n;r!==null;){var a=Ne(r);if(s.before(r),r===i)return;r=a}}function Ge(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function xn(e,t,n,r,i){R&&Et();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 Es(e,t){ts(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=dn("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function xs(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function ks(e,t){return e==null?null:String(e)}function L(e,t,n,r,i,s){var a=e.__className;if(R||a!==n||a===void 0){var o=xs(n);(!R||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}function Ns(e,t,n,r){var i=e.__style;if(R||i!==t){var s=ks(t);(!R||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Ss=Symbol("is custom element"),$s=Symbol("is html"),Ts=mi?"link":"LINK";function kn(e,t,n,r){var i=qs(e);R&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Ts)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[bi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Xr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function w(e,t,n){var r=O,i=A;let s=R;R&&we(!1),ie(null),_e(null);try{t!=="style"&&(Nn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Xr(e).includes(t):n&&typeof n=="object")?e[t]=n:kn(e,t,n==null?n:String(n))}finally{ie(r),_e(i),s&&we(!0)}}function qs(e){return e.__attributes??={[Ss]:e.nodeName.includes("-"),[$s]:e.namespaceURI===zn}}var Nn=new Map;function Xr(e){var t=e.getAttribute("is")||e.nodeName,n=Nn.get(t);if(n)return n;Nn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ui(i);for(var a in r)r[a].set&&n.push(a);i=Un(i)}return n}function it(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=a());var l;l=()=>{var v=e[t];return v===void 0?a():(s=!0,v)};var u=!1,c=Bt(()=>(u=!1,l())),_=A;return(function(v,p){if(arguments.length>0){const y=p?h(c):v;return ae(c,y),u=!0,i!==void 0&&(i=y),v}return ze&&u||(_.f&de)!==0?c.v:h(c)})}function Os(e){return new As(e)}class As{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var o=gr(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return h(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===_i?!0:(h(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return ae(n.get(a)??r(a,o),o),Reflect.set(s,a,o)}});this.#n=(t.hydrate?bs:Ur)(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)&&Pe(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||It(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=()=>{ms(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 Zr;typeof HTMLElement=="function"&&(Zr=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=dn("slot");r!=="default"&&(s.name=r),S(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Cs(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]=Ut(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=Os({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Qi(()=>{Tr(()=>{this.$$r=!0;for(const r of Mt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ut(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]=Ut(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 Mt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ut(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 Cs(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Rs(e,t,n,r,i,s){let a=class extends Zr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Mt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Mt(t).forEach(o=>{It(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Ut(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var c=ut(u,o)?.get;c?u[o]=l:u.$set({[o]:l})}}})}),r.forEach(o=>{It(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const ee={version:"0.66.6"},Ms=(e,t)=>e.reduce((n,r)=>{for(const i of t(r))(n[i]=n[i]||[]).push(r);return n},{});function te(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 Is=q('<label class="svelte-yjqjiw"> </label>'),Vs=q("<hb-input-array-objects></hb-input-array-objects>",2),Ds=q("<hb-input-array-tags></hb-input-array-tags>",2),Ls=q("<hb-input-text></hb-input-text>",2),Fs=q("<hb-input-color></hb-input-color>",2),Ps=q("<hb-input-range></hb-input-range>",2),Js=q("<hb-input-file></hb-input-file>",2),Bs=q("<hb-input-email></hb-input-email>",2),Hs=q("<hb-input-date></hb-input-date>",2),zs=q("<hb-input-datetime></hb-input-datetime>",2),Ys=q("<hb-input-checkbox></hb-input-checkbox>",2),Us=q("<hb-input-number></hb-input-number>",2),Gs=q("<hb-input-area></hb-input-area>",2),Ks=q("<hb-input-radio></hb-input-radio>",2),Ws=q("<hb-input-select></hb-input-select>",2),Xs=q("<hb-input-coords></hb-input-coords>",2),Zs=q('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),Qs=q('<div class="row svelte-yjqjiw"></div>'),eo=q('<label class="svelte-yjqjiw"> </label>'),to=q("<hb-input-text></hb-input-text>",2),no=q("<hb-input-array-objects></hb-input-array-objects>",2),ro=q("<hb-input-array-tags></hb-input-array-tags>",2),io=q("<hb-input-color></hb-input-color>",2),so=q("<hb-input-range></hb-input-range>",2),oo=q("<hb-input-file></hb-input-file>",2),ao=q("<hb-input-email></hb-input-email>",2),lo=q("<hb-input-date></hb-input-date>",2),uo=q("<hb-input-datetime></hb-input-datetime>",2),fo=q("<hb-input-checkbox></hb-input-checkbox>",2),co=q("<hb-input-number></hb-input-number>",2),ho=q("<hb-input-area></hb-input-area>",2),vo=q("<hb-input-radio></hb-input-radio>",2),po=q("<hb-input-select></hb-input-select>",2),_o=q("<hb-input-coords></hb-input-coords>",2),bo=q('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),mo=q('<button part="main_button" type="button" class="btn btn-primary svelte-yjqjiw"><!></button>'),go=q('<div id="button_container" part="button_container" class="svelte-yjqjiw"><span class="svelte-yjqjiw"><!></span> <!></div>'),wo=q("<!> <!>",1),yo=q('<div class="container-fluid svelte-yjqjiw"><!></div>');const jo={hash:"svelte-yjqjiw",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
|
package/manifest.json
CHANGED
|
@@ -756,8 +756,7 @@
|
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
],
|
|
759
|
-
"iifeIntegrity": "sha384-
|
|
760
|
-
"iifeIntegrityType": "sha384",
|
|
759
|
+
"iifeIntegrity": "sha384-qXBhY1M9t637sC2GzogfbOb/c89I3Oe9CjHKn52/wzx3f6VMqkWcVwyGz+Ht1Jbg",
|
|
761
760
|
"screenshots": [],
|
|
762
761
|
"licenses": [
|
|
763
762
|
{
|
|
@@ -776,5 +775,5 @@
|
|
|
776
775
|
"size": {},
|
|
777
776
|
"iifePath": "main.iife.js",
|
|
778
777
|
"repoName": "@htmlbricks/hb-form",
|
|
779
|
-
"version": "0.66.
|
|
778
|
+
"version": "0.66.6"
|
|
780
779
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-form",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.6",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "JSON `schema`-driven form engine: each entry’s `type` maps to an `hb-input-*` web component (text, select, date, file, arrays, coords, etc.) or layout `row`. Handles grouping, conditional visibility, validation messages, disabled state, and dispatches rich `update` payloads (field values + `_valid`) plus submit lifecycle events for programmatic backends.",
|
|
6
6
|
"licenses": [
|