@htmlbricks/hb-dialogform 0.66.5 → 0.66.7
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 +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(Pt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Zn=1,Qn=4,er=8,tr=16,nr=1,rr=2,Mt="[",It="[!",Dt="[?",Lt="]",Oe={},x=Symbol(),Ft="http://www.w3.org/1999/xhtml",ir=!1;var sr=Array.isArray,lr=Array.prototype.indexOf,Ce=Array.prototype.includes,or=Array.from,Ke=Object.keys,We=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,fr=Object.getOwnPropertyDescriptors,ar=Object.prototype,ur=Array.prototype,jt=Object.getPrototypeOf,Bt=Object.isExtensible;const cr=()=>{};function hr(e){for(var t=0;t<e.length;t++)e[t]()}function Ht(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const A=2,Pe=4,Je=8,Yt=1<<24,ae=16,X=32,ue=64,ct=128,F=512,k=1024,R=2048,Z=4096,Q=8192,V=16384,ce=32768,qt=1<<25,Me=65536,Vt=1<<17,dr=1<<18,$e=1<<19,_r=1<<20,Ee=65536,ht=1<<21,dt=1<<22,he=1<<23,Xe=Symbol("$state"),Ut=Symbol("legacy props"),vr=Symbol(""),ne=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},pr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),zt=3,Ze=8;function mr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function gr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function br(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function wr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function yr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $r(){throw new Error("https://svelte.dev/e/hydration_failed")}function Er(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Tr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Sr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function kr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ar(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Nr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function de(e){$=e}let E;function re(e){if(e===null)throw Qe(),Oe;return E=e}function et(){return re(me(E))}function U(e){if($){if(me(E)!==null)throw Qe(),Oe;E=e}}function xr(e=1){if($){for(var t=e,n=E;t--;)n=me(n);E=n}}function Gt(e=!0){for(var t=0,n=E;;){if(n.nodeType===Ze){var r=n.data;if(r===Lt){if(t===0)return n;t-=1}else(r===Mt||r===It||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=me(n);e&&n.remove(),n=i}}function Rr(e){if(!e||e.nodeType!==Ze)throw Qe(),Oe;return e.data}function Kt(e){return e===this.v}function Or(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Wt(e){return!Or(e,this.v)}let Cr=!1,j=null;function Ie(e){j=e}function Jt(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function Xt(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)wn(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Zt(){return!0}let Te=[];function Qt(){var e=Te;Te=[],hr(e)}function Se(e){if(Te.length===0&&!He){var t=Te;queueMicrotask(()=>{t===Te&&Qt()})}Te.push(e)}function Pr(){for(;Te.length>0;)Qt()}function en(e){var t=g;if(t===null)return m.f|=he,e;if((t.f&ce)===0&&(t.f&Pe)===0)throw e;_e(e,t)}function _e(e,t){for(;t!==null;){if((t.f&ct)!==0){if((t.f&ce)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Mr=-7169;function T(e,t){e.f=e.f&Mr|t}function _t(e){(e.f&F)!==0||e.deps===null?T(e,k):T(e,Z)}function tn(e){if(e!==null)for(const t of e)(t.f&A)===0||(t.f&Ee)===0||(t.f^=Ee,tn(t.deps))}function nn(e,t,n){(e.f&R)!==0?t.add(e):(e.f&Z)!==0&&n.add(e),tn(e.deps),T(e,k)}let tt=!1;function Ir(e){var t=tt;try{return tt=!1,[e(),tt]}finally{tt=t}}const ve=new Set;let w=null,z=null,vt=null,He=!1,pt=!1,De=null,nt=null;var rn=0;let Dr=1;class ie{id=Dr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#f=new Map;is_fork=!1;#c=!1;#a=new Set;#h(){return this.is_fork||this.#i.size>0}#_(){for(const r of this.#a)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#f.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#f.get(t);if(n){this.#f.delete(t);for(var r of n.d)T(r,R),this.schedule(r);for(r of n.m)T(r,Z),this.schedule(r)}}#d(){if(rn++>1e3&&(ve.delete(this),Lr()),!this.#h()){for(const o of this.#l)this.#o.delete(o),T(o,R),this.schedule(o);for(const o of this.#o)T(o,Z),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=De=[],r=[],i=nt=[];for(const o of t)try{this.#u(o,n,r)}catch(f){throw an(o),f}if(w=null,i.length>0){var s=ie.ensure();for(const o of i)s.schedule(o)}if(De=null,nt=null,this.#h()||this.#_()){this.#v(r),this.#v(n);for(const[o,f]of this.#f)fn(o,f)}else{this.#t.size===0&&ve.delete(this),this.#l.clear(),this.#o.clear();for(const o of this.#e)o(this);this.#e.clear(),sn(r),sn(n),this.#s?.resolve()}var l=w;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(f=>!o.#r.includes(f)))}l!==null&&(ve.add(l),l.#d()),ve.has(this)||this.#p()}#u(t,n,r){t.f^=k;for(var i=t.first;i!==null;){var s=i.f,l=(s&(X|ue))!==0,o=l&&(s&k)!==0,f=o||(s&Q)!==0||this.#f.has(i);if(!f&&i.fn!==null){l?i.f^=k:(s&Pe)!==0?n.push(i):ze(i)&&((s&ae)!==0&&this.#o.add(i),je(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#v(t){for(var n=0;n<t.length;n+=1)nn(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==x&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&he)===0&&(this.current.set(t,[t.v,r]),z?.set(t,t.v))}activate(){w=this}deactivate(){w=null,z=null}flush(){try{pt=!0,w=this,this.#d()}finally{rn=0,vt=null,De=null,nt=null,pt=!1,w=null,z=null,pe.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ve.delete(this)}#p(){for(const a of ve){var t=a.id<this.id,n=[];for(const[u,[v,h]]of this.current){if(a.current.has(u)){var r=a.current.get(u)[0];if(t&&v!==r)a.current.set(u,[v,h]);else continue}n.push(u)}var i=[...a.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&a.discard();else if(n.length>0){a.activate();var s=new Set,l=new Map;for(var o of n)ln(o,i,s,l);if(a.#r.length>0){a.apply();for(var f of a.#r)a.#u(f,[],[]);a.#r=[]}a.deactivate()}}for(const a of ve)a.#a.has(this)&&(a.#a.delete(this),a.#a.size===0&&!a.#h()&&(a.activate(),a.#d()))}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,Se(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Ht()).promise}static ensure(){if(w===null){const t=w=new ie;pt||(ve.add(w),He||Se(()=>{w===t&&t.flush()}))}return w}apply(){{z=null;return}}schedule(t){if(vt=t,t.b?.is_pending&&(t.f&(Pe|Je|Yt))!==0&&(t.f&ce)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(De!==null&&n===g&&(m===null||(m.f&A)===0))return;if((r&(ue|X))!==0){if((r&k)===0)return;n.f^=k}}this.#r.push(n)}}function M(e){var t=He;He=!0;try{for(var n;;){if(Pr(),w===null)return n;w.flush()}}finally{He=t}}function Lr(){try{yr()}catch(e){_e(e,vt)}}let se=null;function sn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|Q))===0&&ze(r)&&(se=new Set,je(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Tn(r),se?.size>0)){pe.clear();for(const i of se){if((i.f&(V|Q))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)se.has(l)&&(se.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const f=s[o];(f.f&(V|Q))===0&&je(f)}}se.clear()}}se=null}}function ln(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&A)!==0?ln(i,t,n,r):(s&(dt|ae))!==0&&(s&R)===0&&on(i,t,r)&&(T(i,R),mt(i))}}function on(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(Ce.call(t,i))return!0;if((i.f&A)!==0&&on(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function mt(e){w.schedule(e)}function fn(e,t){if(!((e.f&X)!==0&&(e.f&k)!==0)){(e.f&R)!==0?t.d.push(e):(e.f&Z)!==0&&t.m.push(e),T(e,k);for(var n=e.first;n!==null;)fn(n,t),n=n.next}}function an(e){T(e,k);for(var t=e.first;t!==null;)an(t),t=t.next}function Fr(e){let t=0,n=Ye(0),r;return()=>{Tt()&&(D(n),yn(()=>(t===0&&(r=Dn(()=>e(()=>qe(n)))),t+=1,()=>{Se(()=>{t-=1,t===0&&(r?.(),r=void 0,qe(n))})})))}}var jr=Me|$e;function Br(e,t,n,r){new Hr(e,t,n,r)}class Hr{parent;is_pending=!1;transform_error;#e;#n=$?E:null;#t;#i;#s;#r=null;#l=null;#o=null;#f=null;#c=0;#a=0;#h=!1;#_=new Set;#d=new Set;#u=null;#v=Fr(()=>(this.#u=Ye(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=g;l.b=this,l.f|=ct,r(s)},this.parent=g.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=$n(()=>{if($){const s=this.#n;et();const l=s.data===It;if(s.data.startsWith(Dt)){const f=JSON.parse(s.data.slice(Dt.length));this.#y(f)}else l?this.#$():this.#p()}else this.#b()},jr),$&&(this.#e=E)}#p(){try{this.#r=oe(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#o=oe(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=oe(()=>t(this.#e)),Se(()=>{var n=this.#f=document.createDocumentFragment(),r=Fe();n.append(r),this.#r=this.#g(()=>oe(()=>this.#i(r))),this.#a===0&&(this.#e.before(n),this.#f=null,Ue(this.#l,()=>{this.#l=null}),this.#m(w))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#a=0,this.#c=0,this.#r=oe(()=>{this.#i(this.#e)}),this.#a>0){var t=this.#f=document.createDocumentFragment();An(this.#r,t);const n=this.#t.pending;this.#l=oe(()=>n(this.#e))}else this.#m(w)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#_,this.#d)}defer_effect(t){nn(t,this.#_,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#g(t){var n=g,r=m,i=j;B(this.#s),C(this.#s),Ie(this.#s.ctx);try{return ie.ensure(),t()}catch(s){return en(s),null}finally{B(n),C(r),Ie(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#a+=t,this.#a===0&&(this.#m(n),this.#l&&Ue(this.#l,()=>{this.#l=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,Se(()=>{this.#h=!1,this.#u&&it(this.#u,this.#c)}))}get_effect_pending(){return this.#v(),D(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(O(this.#r),this.#r=null),this.#l&&(O(this.#l),this.#l=null),this.#o&&(O(this.#o),this.#o=null),$&&(re(this.#n),xr(),re(Gt()));var i=!1,s=!1;const l=()=>{if(i){Nr();return}i=!0,s&&Ar(),this.#o!==null&&Ue(this.#o,()=>{this.#o=null}),this.#g(()=>{this.#b()})},o=f=>{try{s=!0,n?.(f,l),s=!1}catch(a){_e(a,this.#s&&this.#s.parent)}r&&(this.#o=this.#g(()=>{try{return oe(()=>{var a=g;a.b=this,a.f|=ct,r(this.#e,()=>f,()=>l)})}catch(a){return _e(a,this.#s.parent),null}}))};Se(()=>{var f;try{f=this.transform_error(t)}catch(a){_e(a,this.#s&&this.#s.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(o,a=>_e(a,this.#s&&this.#s.parent)):o(f)})}}function Yr(e,t,n,r){const i=gt;var s=e.filter(h=>!h.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=g,o=qr(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function a(h){o();try{r(h)}catch(d){(l.f&V)===0&&_e(d,l)}rt()}if(n.length===0){f.then(()=>a(t.map(i)));return}var u=un();function v(){Promise.all(n.map(h=>Vr(h))).then(h=>a([...t.map(i),...h])).catch(h=>_e(h,l)).finally(()=>u())}f?f.then(()=>{o(),v(),rt()}):v()}function qr(){var e=g,t=m,n=j,r=w;return function(s=!0){B(e),C(t),Ie(n),s&&(e.f&V)===0&&(r?.activate(),r?.apply())}}function rt(e=!0){B(null),C(null),Ie(null),e&&w?.deactivate()}function un(){var e=g,t=e.b,n=w,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 gt(e){var t=A|R,n=m!==null&&(m.f&A)!==0?m:null;return g!==null&&(g.f|=$e),{ctx:j,deps:null,effects:null,equals:Kt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:n??g,ac:null}}function Vr(e,t,n){let r=g;r===null&&mr();var i=void 0,s=Ye(x),l=!m,o=new Map;return li(()=>{var f=g,a=Ht();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally(rt)}catch(d){a.reject(d),rt()}var u=w;if(l){if((f.f&ce)!==0)var v=un();if(r.b.is_rendered())o.get(u)?.reject(ne),o.delete(u);else{for(const d of o.values())d.reject(ne);o.clear()}o.set(u,a)}const h=(d,_=void 0)=>{if(v){var p=_===ne;v(p)}if(!(_===ne||(f.f&V)!==0)){if(u.activate(),_)s.f|=he,it(s,_);else{(s.f&he)!==0&&(s.f^=he),it(s,d);for(const[b,N]of o){if(o.delete(b),b===u)break;N.reject(ne)}}u.deactivate()}};a.promise.then(h,d=>h(null,d||"unknown"))}),bn(()=>{for(const f of o.values())f.reject(ne)}),new Promise(f=>{function a(u){function v(){u===i?f(s):a(i)}u.then(v,v)}a(i)})}function Ur(e){const t=gt(e);return t.equals=Wt,t}function zr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)O(t[n])}}function Gr(e){for(var t=e.parent;t!==null;){if((t.f&A)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function bt(e){var t,n=g;B(Gr(e));try{e.f&=~Ee,zr(e),t=Pn(e)}finally{B(n)}return t}function cn(e){var t=e.v,n=bt(e);if(!e.equals(n)&&(e.wv=On(),(!w?.is_fork||e.deps===null)&&(e.v=n,w?.capture(e,t,!0),e.deps===null))){T(e,k);return}be||(z!==null?(Tt()||w?.is_fork)&&z.set(e,n):_t(e))}function Kr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ne),t.teardown=cr,t.ac=null,Ge(t,0),St(t))}function hn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&je(t)}let wt=new Set;const pe=new Map;let dn=!1;function Ye(e,t){var n={f:0,v:e,reactions:null,equals:Kt,rv:0,wv:0};return n}function le(e,t){const n=Ye(e);return ui(n),n}function Wr(e,t=!1,n=!0){const r=Ye(e);return t||(r.equals=Wt),r}function G(e,t,n=!1){m!==null&&(!W||(m.f&Vt)!==0)&&Zt()&&(m.f&(A|ae|dt|Vt))!==0&&(H===null||!Ce.call(H,e))&&kr();let r=n?Le(t):t;return it(e,r,nt)}function it(e,t,n=null){if(!e.equals(t)){var r=e.v;be?pe.set(e,t):pe.set(e,r),e.v=t;var i=ie.ensure();if(i.capture(e,r),(e.f&A)!==0){const s=e;(e.f&R)!==0&&bt(s),z===null&&_t(s)}e.wv=On(),_n(e,R,n),g!==null&&(g.f&k)!==0&&(g.f&(X|ue))===0&&(Y===null?ci([e]):Y.push(e)),!i.is_fork&&wt.size>0&&!dn&&Jr()}return t}function Jr(){dn=!1;for(const e of wt)(e.f&k)!==0&&T(e,Z),ze(e)&&je(e);wt.clear()}function qe(e){G(e,e.v+1)}function _n(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,f=(o&R)===0;if(f&&T(l,t),(o&A)!==0){var a=l;z?.delete(a),(o&Ee)===0&&(o&F&&(l.f|=Ee),_n(a,Z,n))}else if(f){var u=l;(o&ae)!==0&&se!==null&&se.add(u),n!==null?n.push(u):mt(u)}}}function Le(e){if(typeof e!="object"||e===null||Xe in e)return e;const t=jt(e);if(t!==ar&&t!==ur)return e;var n=new Map,r=sr(e),i=le(0),s=Ne,l=o=>{if(Ne===s)return o();var f=m,a=Ne;C(null),Rn(s);var u=o();return C(f),Rn(a),u};return r&&n.set("length",le(e.length)),new Proxy(e,{defineProperty(o,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Tr();var u=n.get(f);return u===void 0?l(()=>{var v=le(a.value);return n.set(f,v),v}):G(u,a.value,!0),!0},deleteProperty(o,f){var a=n.get(f);if(a===void 0){if(f in o){const u=l(()=>le(x));n.set(f,u),qe(i)}}else G(a,x),qe(i);return!0},get(o,f,a){if(f===Xe)return e;var u=n.get(f),v=f in o;if(u===void 0&&(!v||ye(o,f)?.writable)&&(u=l(()=>{var d=Le(v?o[f]:x),_=le(d);return _}),n.set(f,u)),u!==void 0){var h=D(u);return h===x?void 0:h}return Reflect.get(o,f,a)},getOwnPropertyDescriptor(o,f){var a=Reflect.getOwnPropertyDescriptor(o,f);if(a&&"value"in a){var u=n.get(f);u&&(a.value=D(u))}else if(a===void 0){var v=n.get(f),h=v?.v;if(v!==void 0&&h!==x)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return a},has(o,f){if(f===Xe)return!0;var a=n.get(f),u=a!==void 0&&a.v!==x||Reflect.has(o,f);if(a!==void 0||g!==null&&(!u||ye(o,f)?.writable)){a===void 0&&(a=l(()=>{var h=u?Le(o[f]):x,d=le(h);return d}),n.set(f,a));var v=D(a);if(v===x)return!1}return u},set(o,f,a,u){var v=n.get(f),h=f in o;if(r&&f==="length")for(var d=a;d<v.v;d+=1){var _=n.get(d+"");_!==void 0?G(_,x):d in o&&(_=l(()=>le(x)),n.set(d+"",_))}if(v===void 0)(!h||ye(o,f)?.writable)&&(v=l(()=>le(void 0)),G(v,Le(a)),n.set(f,v));else{h=v.v!==x;var p=l(()=>Le(a));G(v,p)}var b=Reflect.getOwnPropertyDescriptor(o,f);if(b?.set&&b.set.call(u,a),!h){if(r&&typeof f=="string"){var N=n.get("length"),S=Number(f);Number.isInteger(S)&&S>=N.v&&G(N,S+1)}qe(i)}return!0},ownKeys(o){D(i);var f=Reflect.ownKeys(o).filter(v=>{var h=n.get(v);return h===void 0||h.v!==x});for(var[a,u]of n)u.v!==x&&!(a in o)&&f.push(a);return f},setPrototypeOf(){Sr()}})}var vn,pn,mn,gn;function yt(){if(vn===void 0){vn=window,pn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;mn=ye(t,"firstChild").get,gn=ye(t,"nextSibling").get,Bt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Bt(n)&&(n.__t=void 0)}}function Fe(e=""){return document.createTextNode(e)}function Ve(e){return mn.call(e)}function me(e){return gn.call(e)}function K(e,t){if(!$)return Ve(e);var n=Ve(E);return n===null&&(n=E.appendChild(Fe())),re(n),n}function ke(e,t=1,n=!1){let r=$?E:e;for(var i;t--;)i=r,r=me(r);if(!$)return r;if(n){if(r?.nodeType!==zt){var s=Fe();return r===null?i?.after(s):r.before(s),re(s),s}Qr(r)}return re(r),r}function Xr(e){e.textContent=""}function Zr(){return!1}function $t(e,t,n){return document.createElementNS(Ft,e,void 0)}function Qr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===zt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Et(e){var t=m,n=g;C(null),B(null);try{return e()}finally{C(t),B(n)}}function ei(e){g===null&&(m===null&&wr(),br()),be&&gr()}function ti(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ee(e,t){var n=g;n!==null&&(n.f&Q)!==0&&(e|=Q);var r={ctx:j,deps:null,nodes:null,f:e|R|F,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&Pe)!==0)De!==null?De.push(r):ie.ensure().schedule(r);else if(t!==null){try{je(r)}catch(l){throw O(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&$e)===0&&(i=i.first,(e&ae)!==0&&(e&Me)!==0&&i!==null&&(i.f|=Me))}if(i!==null&&(i.parent=n,n!==null&&ti(i,n),m!==null&&(m.f&A)!==0&&(e&ue)===0)){var s=m;(s.effects??=[]).push(i)}return r}function Tt(){return m!==null&&!W}function bn(e){const t=ee(Je,null);return T(t,k),t.teardown=e,t}function ni(e){ei();var t=g.f,n=!m&&(t&X)!==0&&(t&ce)===0;if(n){var r=j;(r.e??=[]).push(e)}else return wn(e)}function wn(e){return ee(Pe|_r,e)}function ri(e){ie.ensure();const t=ee(ue|$e,e);return()=>{O(t)}}function ii(e){ie.ensure();const t=ee(ue|$e,e);return(n={})=>new Promise(r=>{n.outro?Ue(t,()=>{O(t),r(void 0)}):(O(t),r(void 0))})}function si(e){return ee(Pe,e)}function li(e){return ee(dt|$e,e)}function yn(e,t=0){return ee(Je|t,e)}function ge(e,t=[],n=[],r=[]){Yr(r,t,n,i=>{ee(Je,()=>e(...i.map(D)))})}function $n(e,t=0){var n=ee(ae|t,e);return n}function oe(e){return ee(X|$e,e)}function En(e){var t=e.teardown;if(t!==null){const n=be,r=m;Nn(!0),C(null);try{t.call(null)}finally{Nn(n),C(r)}}}function St(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Et(()=>{i.abort(ne)});var r=n.next;(n.f&ue)!==0?n.parent=null:O(n,t),n=r}}function oi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&X)===0&&O(t),t=n}}function O(e,t=!0){var n=!1;(t||(e.f&dr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(fi(e.nodes.start,e.nodes.end),n=!0),T(e,qt),St(e,t&&!n),Ge(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();En(e),e.f^=qt,e.f|=V;var i=e.parent;i!==null&&i.first!==null&&Tn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function fi(e,t){for(;e!==null;){var n=e===t?null:me(e);e.remove(),e=n}}function Tn(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 Ue(e,t,n=!0){var r=[];Sn(e,r,!0);var i=()=>{n&&O(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function Sn(e,t,n){if((e.f&Q)===0){e.f^=Q;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,l=(i.f&Me)!==0||(i.f&X)!==0&&(e.f&ae)!==0;Sn(i,t,l?n:!1),i=s}}}function ai(e){kn(e,!0)}function kn(e,t){if((e.f&Q)!==0){e.f^=Q,(e.f&k)===0&&(T(e,R),ie.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Me)!==0||(n.f&X)!==0;kn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function An(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:me(n);t.append(n),n=i}}let st=!1,be=!1;function Nn(e){be=e}let m=null,W=!1;function C(e){m=e}let g=null;function B(e){g=e}let H=null;function ui(e){m!==null&&(H===null?H=[e]:H.push(e))}let P=null,I=0,Y=null;function ci(e){Y=e}let xn=1,Ae=0,Ne=Ae;function Rn(e){Ne=e}function On(){return++xn}function ze(e){var t=e.f;if((t&R)!==0)return!0;if(t&A&&(e.f&=~Ee),(t&Z)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(ze(s)&&cn(s),s.wv>e.wv)return!0}(t&F)!==0&&z===null&&T(e,k)}return!1}function Cn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(H!==null&&Ce.call(H,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&A)!==0?Cn(s,t,!1):t===s&&(n?T(s,R):(s.f&k)!==0&&T(s,Z),mt(s))}}function Pn(e){var t=P,n=I,r=Y,i=m,s=H,l=j,o=W,f=Ne,a=e.f;P=null,I=0,Y=null,m=(a&(X|ue))===0?e:null,H=null,Ie(e.ctx),W=!1,Ne=++Ae,e.ac!==null&&(Et(()=>{e.ac.abort(ne)}),e.ac=null);try{e.f|=ht;var u=e.fn,v=u();e.f|=ce;var h=e.deps,d=w?.is_fork;if(P!==null){var _;if(d||Ge(e,I),h!==null&&I>0)for(h.length=I+P.length,_=0;_<P.length;_++)h[I+_]=P[_];else e.deps=h=P;if(Tt()&&(e.f&F)!==0)for(_=I;_<h.length;_++)(h[_].reactions??=[]).push(e)}else!d&&h!==null&&I<h.length&&(Ge(e,I),h.length=I);if(Zt()&&Y!==null&&!W&&h!==null&&(e.f&(A|Z|R))===0)for(_=0;_<Y.length;_++)Cn(Y[_],e);if(i!==null&&i!==e){if(Ae++,i.deps!==null)for(let p=0;p<n;p+=1)i.deps[p].rv=Ae;if(t!==null)for(const p of t)p.rv=Ae;Y!==null&&(r===null?r=Y:r.push(...Y))}return(e.f&he)!==0&&(e.f^=he),v}catch(p){return en(p)}finally{e.f^=ht,P=t,I=n,Y=r,m=i,H=s,Ie(l),W=o,Ne=f}}function hi(e,t){let n=t.reactions;if(n!==null){var r=lr.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&A)!==0&&(P===null||!Ce.call(P,t))){var s=t;(s.f&F)!==0&&(s.f^=F,s.f&=~Ee),_t(s),Kr(s),Ge(s,0)}}function Ge(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)hi(e,n[r])}function je(e){var t=e.f;if((t&V)===0){T(e,k);var n=g,r=st;g=e,st=!0;try{(t&(ae|Yt))!==0?oi(e):St(e),En(e);var i=Pn(e);e.teardown=typeof i=="function"?i:null,e.wv=xn;var s;ir&&Cr&&(e.f&R)!==0&&e.deps}finally{st=r,g=n}}}function D(e){var t=e.f,n=(t&A)!==0;if(m!==null&&!W){var r=g!==null&&(g.f&V)!==0;if(!r&&(H===null||!Ce.call(H,e))){var i=m.deps;if((m.f&ht)!==0)e.rv<Ae&&(e.rv=Ae,P===null&&i!==null&&i[I]===e?I++:P===null?P=[e]:P.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:Ce.call(s,m)||s.push(m)}}}if(be&&pe.has(e))return pe.get(e);if(n){var l=e;if(be){var o=l.v;return((l.f&k)===0&&l.reactions!==null||In(l))&&(o=bt(l)),pe.set(l,o),o}var f=(l.f&F)===0&&!W&&m!==null&&(st||(m.f&F)!==0),a=(l.f&ce)===0;ze(l)&&(f&&(l.f|=F),cn(l)),f&&!a&&(hn(l),Mn(l))}if(z?.has(e))return z.get(e);if((e.f&he)!==0)throw e.v;return e.v}function Mn(e){if(e.f|=F,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&A)!==0&&(t.f&F)===0&&(hn(t),Mn(t))}function In(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(pe.has(t)||(t.f&A)!==0&&In(t))return!0;return!1}function Dn(e){var t=W;try{return W=!0,e()}finally{W=t}}const lt=Symbol("events"),di=new Set,Ln=new Set;function _i(e,t,n,r={}){function i(s){if(r.capture||At.call(t,s),!s.cancelBubble)return Et(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Se(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function kt(e,t,n,r,i){var s={capture:r,passive:i},l=_i(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&bn(()=>{t.removeEventListener(e,l,s)})}let Fn=null;function At(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Fn=e;var l=0,o=Fn===e&&e[lt];if(o){var f=i.indexOf(o);if(f!==-1&&(t===document||t===window)){e[lt]=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(l=f)}if(s=i[l]||e.target,s!==t){We(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=m,v=g;C(null),B(null);try{for(var h,d=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var p=s[lt]?.[r];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(b){h?d.push(b):h=b}if(e.cancelBubble||_===t||_===null)break;s=_}if(h){for(let b of d)queueMicrotask(()=>{throw b});throw h}}finally{e[lt]=t,delete e.currentTarget,C(u),B(v)}}}const vi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function pi(e){return vi?.createHTML(e)??e}function mi(e){var t=$t("template");return t.innerHTML=pi(e.replaceAll("<!>","<!---->")),t.content}function ot(e,t){var n=g;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function xe(e,t){var n=(t&nr)!==0,r=(t&rr)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return ot(E,null),E;i===void 0&&(i=mi(s?e:"<!>"+e),n||(i=Ve(i)));var l=r||pn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Ve(l),f=l.lastChild;ot(o,f)}else ot(l,l);return l}}function we(e,t){if($){var n=g;((n.f&ce)===0||n.nodes.end===null)&&(n.nodes.end=E),et();return}e!==null&&e.before(t)}const gi=["touchstart","touchmove"];function bi(e){return gi.includes(e)}function jn(e,t){return Bn(e,t)}function wi(e,t){yt(),t.intro=t.intro??!1;const n=t.target,r=$,i=E;try{for(var s=Ve(n);s&&(s.nodeType!==Ze||s.data!==Mt);)s=me(s);if(!s)throw Oe;de(!0),re(s);const l=Bn(e,{...t,anchor:s});return de(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Oe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&$r(),yt(),Xr(n),de(!1),jn(e,t)}finally{de(r),re(i)}}const ft=new Map;function Bn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){yt();var f=void 0,a=ii(()=>{var u=n??t.appendChild(Fe());Br(u,{pending:()=>{}},d=>{Jt({});var _=j;if(s&&(_.c=s),i&&(r.$$events=i),$&&ot(d,null),f=e(d,r)||{},$&&(g.nodes.end=E,E===null||E.nodeType!==Ze||E.data!==Lt))throw Qe(),Oe;Xt()},o);var v=new Set,h=d=>{for(var _=0;_<d.length;_++){var p=d[_];if(!v.has(p)){v.add(p);var b=bi(p);for(const te of[t,document]){var N=ft.get(te);N===void 0&&(N=new Map,ft.set(te,N));var S=N.get(p);S===void 0?(te.addEventListener(p,At,{passive:b}),N.set(p,1)):N.set(p,S+1)}}}};return h(or(di)),Ln.add(h),()=>{for(var d of v)for(const b of[t,document]){var _=ft.get(b),p=_.get(d);--p==0?(b.removeEventListener(d,At),_.delete(d),_.size===0&&ft.delete(b)):_.set(d,p)}Ln.delete(h),u!==n&&u.parentNode?.removeChild(u)}});return Nt.set(f,a),f}let Nt=new WeakMap;function yi(e,t){const n=Nt.get(e);return n?(Nt.delete(e),n(t)):Promise.resolve()}class $i{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)ai(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,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(O(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var a=document.createDocumentFragment();An(l,a),a.append(Fe()),this.#t.set(s,{effect:l,fragment:a})}else O(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Ue(l,o,!1)):o()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(O(i.effect),this.#t.delete(r))};ensure(t,n){var r=w,i=Zr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=Fe();s.append(l),this.#t.set(t,{effect:oe(()=>n(l)),fragment:s})}else this.#n.set(t,oe(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,f]of this.#n)o===t?r.unskip_effect(f):r.skip_effect(f);for(const[o,f]of this.#t)o===t?r.unskip_effect(f.effect):r.skip_effect(f.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else $&&(this.anchor=E),this.#r(r)}}function Be(e,t,n=!1){var r;$&&(r=E,et());var i=new $i(e),s=n?Me:0;function l(o,f){if($){var a=Rr(r);if(o!==parseInt(a.substring(1))){var u=Gt();re(u),i.anchor=u,de(!1),i.ensure(o,f),de(!0);return}}i.ensure(o,f)}$n(()=>{var o=!1;t((f,a=0)=>{o=!0,l(a,f)}),o||l(-1,null)},s)}function Re(e,t,n,r,i){$&&et();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n==="default"?"children":n],l=!0),s===void 0||s(e,l?()=>r:r)}function Ei(e){const t={};e.children&&(t.default=!0);for(const n in e.$$slots)t[n]=!0;return t}function Ti(e,t){si(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=$t("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Si=Symbol("is custom element"),ki=Symbol("is html"),Ai=pr?"link":"LINK";function Ni(e,t,n,r){var i=xi(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Ai)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[vr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Hn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function fe(e,t,n){var r=m,i=g;let s=$;$&&de(!1),C(null),B(null);try{t!=="style"&&(xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Hn(e).includes(t):n&&typeof n=="object")?e[t]=n:Ni(e,t,n==null?n:String(n))}finally{C(r),B(i),s&&de(!0)}}function xi(e){return e.__attributes??={[Si]:e.nodeName.includes("-"),[ki]:e.namespaceURI===Ft}}var xt=new Map;function Hn(e){var t=e.getAttribute("is")||e.nodeName,n=xt.get(t);if(n)return n;xt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=fr(i);for(var l in r)r[l].set&&n.push(l);i=jt(i)}return n}function q(e,t,n,r){var i=(n&er)!==0,s=(n&tr)!==0,l=r,o=!0,f=()=>(o&&(o=!1,l=s?Dn(r):r),l);let a;if(i){var u=Xe in e||Ut in e;a=ye(e,t)?.set??(u&&t in e?S=>e[t]=S:void 0)}var v,h=!1;i?[v,h]=Ir(()=>e[t]):v=e[t],v===void 0&&r!==void 0&&(v=f(),a&&(Er(),a(v)));var d;if(d=()=>{var S=e[t];return S===void 0?f():(o=!0,S)},(n&Qn)===0)return d;if(a){var _=e.$$legacy;return(function(S,te){return arguments.length>0?((!te||_||h)&&a(te?d():S),S):d()})}var p=!1,b=((n&Zn)!==0?gt:Ur)(()=>(p=!1,d()));i&&D(b);var N=g;return(function(S,te){if(arguments.length>0){const ut=te?D(b):i?Le(S):S;return G(b,ut),p=!0,l!==void 0&&(l=ut),S}return be&&p||(N.f&V)!==0?b.v:D(b)})}function Ri(e){return new Oi(e)}class Oi{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=Wr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return D(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Ut?!0:(D(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return G(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?wi:jn)(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)&&M(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||We(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{yi(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 Yn;typeof HTMLElement=="function"&&(Yn=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=$t("slot");r!=="default"&&(s.name=r),we(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ci(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]=at(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=Ri({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ri(()=>{yn(()=>{this.$$r=!0;for(const r of Ke(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=at(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]=at(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 Ke(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function at(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 Ci(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Pi(e,t,n,r,i,s){let l=class extends Yn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ke(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ke(t).forEach(o=>{We(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=at(o,f,t),this.$$d[o]=f;var a=this.$$c;if(a){var u=ye(a,o)?.get;u?a[o]=f:a.$set({[o]:f})}}})}),r.forEach(o=>{We(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}function qn(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)}}const Vn={version:"0.66.5"};var Mi=xe("<div><hb-form></hb-form></div>",2),Ii=xe('<div slot="header"><!></div>'),Di=xe('<div slot="modal-footer"><!></div>'),Li=xe('<div slot="footer"><!></div>'),Fi=xe('<div slot="close-button-label"><!></div>'),ji=xe('<div slot="confirm-button-label"><!></div>'),Bi=xe('<span><hb-dialog><div slot="body-content"><div><!></div> <!> <div><!></div></div> <!> <!> <!> <!> <!></hb-dialog></span>',2);const Hi={hash:"svelte-i58ii0",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");:host {font-family:"Roboto", sans-serif;}'};function Un(e,t){const n=Ei(t);Jt(t,!0),Ti(e,Hi);function r(c,y){t.$$host.dispatchEvent(new CustomEvent(c,{detail:y}))}let i=q(t,"id",7,""),s=q(t,"schema",23,()=>[]),l=q(t,"describedby",7,""),o=q(t,"labelledby",7,""),f=q(t,"content",7,""),a=q(t,"closelabel",7,""),u=q(t,"confirmlabel",7,""),v=q(t,"dialogclasses",7,""),h=q(t,"title",7,""),d=q(t,"backdrop",7,!0),_=q(t,"keyboard",7,!0),p=q(t,"show",7,"no"),b=le(!1);ni(()=>{p()==="yes"||p()===""?p("yes"):p("no"),typeof d()=="string"?d(d()==="true"||d()==="yes"):d()===void 0&&d(!0),typeof _()=="string"?_(_()==="true"||_()==="yes"):_()===void 0&&_(!0)}),qn({repoName:"@htmlbricks/hb-dialog",version:Vn.version}),qn({repoName:"@htmlbricks/hb-form",version:Vn.version});let N;function S(c){p(c.show?"yes":"no"),r("modalShow",c)}function te(c){r("updateForm",c),c._valid?G(b,!0):G(b,!1),c._id=void 0,N=Object.assign({},c,{_id:i()})}function ut(c){c.confirm&&N&&N._valid?r("modalFormConfirm",N):c.confirm?(r("modalFormCancel",{id:i(),error:"invalid form"}),console.error("form submit invalid")):(r("modalFormCancel",{id:i()}),console.warn("form submit cancelled"))}var Yi={get id(){return i()},set id(c=""){i(c),M()},get schema(){return s()},set schema(c=[]){s(c),M()},get describedby(){return l()},set describedby(c=""){l(c),M()},get labelledby(){return o()},set labelledby(c=""){o(c),M()},get content(){return f()},set content(c=""){f(c),M()},get closelabel(){return a()},set closelabel(c=""){a(c),M()},get confirmlabel(){return u()},set confirmlabel(c=""){u(c),M()},get dialogclasses(){return v()},set dialogclasses(c=""){v(c),M()},get title(){return h()},set title(c=""){h(c),M()},get backdrop(){return d()},set backdrop(c=!0){d(c),M()},get keyboard(){return _()},set keyboard(c=!0){_(c),M()},get show(){return p()},set show(c="no"){p(c),M()}},Rt=Bi(),J=K(Rt);ge(()=>fe(J,"disable_confirm",D(b)?"no":"yes")),ge(()=>fe(J,"id",i()?i()+"_modalform":"modalform"+Date.now())),ge(()=>fe(J,"show",p())),ge(()=>fe(J,"title",h())),ge(()=>fe(J,"confirmlabel",u())),ge(()=>fe(J,"content",f())),ge(()=>fe(J,"closelabel",a()));var Ot=K(J),Ct=K(Ot),qi=K(Ct);Re(qi,t,"form-header",{}),U(Ct);var zn=ke(Ct,2);{var Vi=c=>{var y=Mi(),L=K(y);ge(()=>fe(L,"schema",s())),fe(L,"hide_submit","yes"),U(y),kt("update",L,Zi=>te(Zi.detail)),we(c,y)};Be(zn,c=>{s()?.length&&c(Vi)})}var Gn=ke(zn,2),Ui=K(Gn);Re(Ui,t,"form-footer",{}),U(Gn),U(Ot);var Kn=ke(Ot,2);{var zi=c=>{var y=Ii(),L=K(y);Re(L,t,"header",{}),U(y),we(c,y)};Be(Kn,c=>{n.header&&c(zi)})}var Wn=ke(Kn,2);{var Gi=c=>{var y=Di(),L=K(y);Re(L,t,"modal-footer",{}),U(y),we(c,y)};Be(Wn,c=>{n["modal-footer"]&&c(Gi)})}var Jn=ke(Wn,2);{var Ki=c=>{var y=Li(),L=K(y);Re(L,t,"footer",{}),U(y),we(c,y)};Be(Jn,c=>{n.footer&&c(Ki)})}var Xn=ke(Jn,2);{var Wi=c=>{var y=Fi(),L=K(y);Re(L,t,"close-button-label",{}),U(y),we(c,y)};Be(Xn,c=>{n["close-button-label"]&&c(Wi)})}var Ji=ke(Xn,2);{var Xi=c=>{var y=ji(),L=K(y);Re(L,t,"confirm-button-label",{}),U(y),we(c,y)};Be(Ji,c=>{n["confirm-button-label"]&&c(Xi)})}return U(J),U(Rt),kt("modalConfirm",J,c=>{ut(c.detail)}),kt("modalShow",J,c=>{S(c.detail)}),we(e,Rt),Xt(Yi)}customElements.define("hb-dialogform",Pi(Un,{id:{},schema:{},describedby:{},labelledby:{},content:{},closelabel:{},confirmlabel:{},dialogclasses:{},title:{},backdrop:{},keyboard:{},show:{}},["form-header","form-footer","header","modal-footer","footer","close-button-label","confirm-button-label"],[],{mode:"open"})),Pt.Component=Un,Object.defineProperty(Pt,Symbol.toStringTag,{value:"Module"})})(this.dialogform=this.dialogform||{});
|
|
3
|
-
//# sourceMappingURL=main.iife.js.map
|
|
1
|
+
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,ee=4096,te=8192,x=16384,ne=32768,re=1<<25,ie=65536,ae=1<<19,oe=1<<20,se=65536,ce=1<<21,le=1<<22,ue=1<<23,de=Symbol(`$state`),fe=Symbol(`legacy props`),pe=Symbol(``),S=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},me=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function he(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ge(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function _e(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ve(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ye(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function be(){throw Error(`https://svelte.dev/e/hydration_failed`)}function xe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Se(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Te(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ee(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function De(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var C=!1;function Oe(e){C=e}var w;function T(e){if(e===null)throw Ee(),t;return w=e}function ke(){return T(L(w))}function E(e){if(C){if(L(w)!==null)throw Ee(),t;w=e}}function Ae(e=1){if(C){for(var t=e,n=w;t--;)n=L(n);w=n}}function je(e=!0){for(var t=0,n=w;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=L(n);e&&n.remove(),n=i}}function Me(e){if(!e||e.nodeType!==8)throw Ee(),t;return e.data}function Ne(e){return e===this.v}function Pe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Fe(e){return!Pe(e,this.v)}var Ie=!1,Le=!1,D=null;function Re(e){D=e}function ze(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,r:G,l:Le&&!t?{s:null,u:null,$:[]}:null}}function Be(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)sn(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function Ve(){return!Le||D!==null&&D.l===null}var He=[];function Ue(){var e=He;He=[],_(e)}function We(e){if(He.length===0&&!nt){var t=He;queueMicrotask(()=>{t===He&&Ue()})}He.push(e)}function Ge(){for(;He.length>0;)Ue()}function Ke(e){var t=G;if(t===null)return H.f|=ue,e;if(!(t.f&32768)&&!(t.f&4))throw e;qe(e,t)}function qe(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Je=~(b|ee|y);function O(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?O(e,y):O(e,ee)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=se,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),O(e,y)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var k=new Set,A=null,j=null,tt=null,nt=!1,rt=!1,it=null,at=null,ot=0,st=1,ct=class e{id=st++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)O(n,b),this.schedule(n);for(n of t.m)O(n,ee),this.schedule(n)}}#p(){if(ot++>1e3&&(k.delete(this),lt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),O(e,b),this.schedule(e);for(let e of this.#s)O(e,ee),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=it=[],r=[],i=at=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw ht(e),t}if(A=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(it=null,at=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)mt(e,t)}else{this.#n.size===0&&k.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),ut(r),ut(n),this.#i?.resolve()}var o=A;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(k.add(o),o.#p()),k.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Ie&&i&16777224?n.push(r):In(r)&&(i&16&&this.#s.add(r),Vn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Ze(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),j?.set(e,e.v))}activate(){A=this}deactivate(){A=null,j=null}flush(){try{rt=!0,A=this,this.#p()}finally{ot=0,tt=null,it=null,at=null,rt=!1,A=null,j=null,P.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),k.delete(this)}#g(){for(let c of k){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)dt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of k)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,We(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(A===null){let t=A=new e;rt||(k.add(A),nt||We(()=>{A===t&&t.flush()}))}return A}apply(){if(!Ie||!this.is_fork&&k.size===1){j=null;return}j=new Map;for(let[e,[t]]of this.current)j.set(e,t);for(let n of k)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)j.has(e)||j.set(e,t)}}schedule(e){if(tt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(it!==null&&t===G&&(Ie||(H===null||!(H.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function M(e){var t=nt;nt=!0;try{var n;for(e&&(A!==null&&!A.is_fork&&A.flush(),n=e());;){if(Ge(),A===null)return n;A.flush()}}finally{nt=t}}function lt(){try{ye()}catch(e){qe(e,tt)}}var N=null;function ut(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&In(r)&&(N=new Set,Vn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&yn(r),N?.size>0)){P.clear();for(let e of N){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)N.has(n)&&(N.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Vn(n)}}N.clear()}}N=null}}function dt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?dt(i,t,n,r):e&4194320&&!(e&2048)&&ft(i,t,r)&&(O(i,b),pt(i))}}function ft(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&ft(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function pt(e){A.schedule(e)}function mt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),O(e,y);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function ht(e){O(e,y);for(var t=e.first;t!==null;)ht(t),t=t.next}function gt(e){let t=0,n=Ft(0),r;return()=>{rn()&&(Z(n),fn(()=>(t===0&&(r=Wn(()=>e(()=>zt(n)))),t+=1,()=>{We(()=>{--t,t===0&&(r?.(),r=void 0,zt(n))})})))}}var _t=ie|ae;function vt(e,t,n,r){new yt(e,t,n,r)}var yt=class{parent;is_pending=!1;transform_error;#e;#t=C?w:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=gt(()=>(this.#m=Ft(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=G;t.b=this,t.f|=128,n(e)},this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=mn(()=>{if(C){let e=this.#t;ke();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},_t),C&&(this.#e=w)}#g(){try{this.#a=B(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=B(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=B(()=>e(this.#e)),We(()=>{var e=this.#c=document.createDocumentFragment(),t=qt();e.append(t),this.#a=this.#x(()=>B(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,bn(this.#o,()=>{this.#o=null}),this.#b(A))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=B(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();wn(this.#a,e);let t=this.#n.pending;this.#o=B(()=>t(this.#e))}else this.#b(A)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=G,n=H,r=D;K(this.#i),W(this.#i),Re(this.#i.ctx);try{return ct.ensure(),e()}catch(e){return Ke(e),null}finally{K(t),W(n),Re(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&bn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,We(()=>{this.#d=!1,this.#m&&Lt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),C&&(T(this.#t),Ae(),T(je()));var r=!1,i=!1;let a=()=>{if(r){De();return}r=!0,i&&Te(),this.#s!==null&&bn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){qe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return B(()=>{var t=G;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return qe(e,this.#i.parent),null}}))};We(()=>{var t;try{t=this.transform_error(e)}catch(e){qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>qe(e,this.#i&&this.#i.parent)):o(t)})}};function bt(e,t,n,r){let i=Ve()?wt:Et;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=G,s=xt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||qe(e,o)}St()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ct();function d(){Promise.all(n.map(e=>Tt(e))).then(e=>l([...t.map(i),...e])).catch(e=>qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),St()}):d()}function xt(){var e=G,t=H,n=D,r=A;return function(i=!0){K(e),W(t),Re(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function St(e=!0){K(null),W(null),Re(null),e&&A?.deactivate()}function Ct(){var e=G,t=e.b,n=A,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function wt(e){var t=2|b,r=H!==null&&H.f&2?H:null;return G!==null&&(G.f|=ae),{ctx:D,deps:null,effects:null,equals:Ne,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??G,ac:null}}function Tt(e,t,r){let i=G;i===null&&he();var a=void 0,o=Ft(n),s=!H,c=new Map;return dn(()=>{var t=G,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(St)}catch(e){n.reject(e),St()}var r=A;if(s){if(t.f&32768)var l=Ct();if(i.b.is_rendered())c.get(r)?.reject(S),c.delete(r);else{for(let e of c.values())e.reject(S);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===S),!(n===S||t.f&16384)){if(r.activate(),n)o.f|=ue,Lt(o,n);else{o.f&8388608&&(o.f^=ue),Lt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(S)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),an(()=>{for(let e of c.values())e.reject(S)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Et(e){let t=wt(e);return t.equals=Fe,t}function Dt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function Ot(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function kt(e){var t,n=G;K(Ot(e));try{e.f&=~se,Dt(e),t=Rn(e)}finally{K(n)}return t}function At(e){var t=e.v,n=kt(e);if(!e.equals(n)&&(e.wv=Fn(),(!A?.is_fork||e.deps===null)&&(e.v=n,A?.capture(e,t,!0),e.deps===null))){O(e,y);return}Dn||(j===null?Ye(e):(rn()||A?.is_fork)&&j.set(e,n))}function jt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(S),t.teardown=g,t.ac=null,Bn(t,0),gn(t))}function Mt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Vn(t)}var Nt=new Set,P=new Map,Pt=!1;function Ft(e,t){return{f:0,v:e,reactions:null,equals:Ne,rv:0,wv:0}}function F(e,t){let n=Ft(e,t);return kn(n),n}function It(e,t=!1,n=!0){let r=Ft(e);return t||(r.equals=Fe),Le&&n&&D!==null&&D.l!==null&&(D.l.s??=[]).push(r),r}function I(e,t,n=!1){return H!==null&&(!U||H.f&131072)&&Ve()&&H.f&4325394&&(q===null||!o.call(q,e))&&we(),Lt(e,n?Vt(t):t,at)}function Lt(e,t,n=null){if(!e.equals(t)){var r=e.v;Dn?P.set(e,t):P.set(e,r),e.v=t;var i=ct.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&kt(t),j===null&&Ye(t)}e.wv=Fn(),Bt(e,b,n),Ve()&&G!==null&&G.f&1024&&!(G.f&96)&&(X===null?An([e]):X.push(e)),!i.is_fork&&Nt.size>0&&!Pt&&Rt()}return t}function Rt(){Pt=!1;for(let e of Nt)e.f&1024&&O(e,ee),In(e)&&Vn(e);Nt.clear()}function zt(e){I(e,e.v+1)}function Bt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ve(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===G)){var l=(c&b)===0;if(l&&O(s,t),c&2){var u=s;j?.delete(u),c&65536||(c&512&&(s.f|=se),Bt(u,ee,n))}else if(l){var d=s;c&16&&N!==null&&N.add(d),n===null?pt(d):n.push(d)}}}}function Vt(e){if(typeof e!=`object`||!e||de in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=F(0),s=null,c=Nn,l=e=>{if(Nn===c)return e();var t=H,n=Nn;W(null),Pn(c);var r=e();return W(t),Pn(n),r};return a&&r.set(`length`,F(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Se();var i=r.get(t);return i===void 0?l(()=>{var e=F(n.value,s);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>F(n,s));r.set(t,e),zt(o)}}else I(i,n),zt(o);return!0},get(t,i,a){if(i===de)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>F(Vt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=Z(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=Z(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===de)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||G!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>F(a?Vt(e[t]):n,s)),r.set(t,i)),Z(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>F(n,s)),r.set(p+``,m)):I(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>F(void 0,s)),I(d,Vt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Vt(i));I(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&I(_,v+1)}zt(o)}return!0},ownKeys(e){Z(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Ce()}})}var Ht,Ut,Wt,Gt;function Kt(){if(Ht===void 0){Ht=window,Ut=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=u(t,`firstChild`).get,Gt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function qt(e=``){return document.createTextNode(e)}function Jt(e){return Wt.call(e)}function L(e){return Gt.call(e)}function R(e,t){if(!C)return Jt(e);var n=Jt(w);if(n===null)n=w.appendChild(qt());else if(t&&n.nodeType!==3){var r=qt();return n?.before(r),T(r),r}return t&&$t(n),T(n),n}function Yt(e,t=1,n=!1){let r=C?w:e;for(var i;t--;)i=r,r=L(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=qt();return r===null?i?.after(a):r.before(a),T(a),a}$t(r)}return T(r),r}function Xt(e){e.textContent=``}function Zt(){return!Ie||N!==null?!1:(G.f&ne)!==0}function Qt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function $t(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function en(e){var t=H,n=G;W(null),K(null);try{return e()}finally{W(t),K(n)}}function tn(e){G===null&&(H===null&&ve(e),_e()),Dn&&ge(e)}function nn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t){var n=G;n!==null&&n.f&8192&&(e|=te);var r={ctx:D,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)it===null?ct.ensure().schedule(r):it.push(r);else if(t!==null){try{Vn(r)}catch(e){throw V(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ie))}if(i!==null&&(i.parent=n,n!==null&&nn(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function rn(){return H!==null&&!U}function an(e){let t=z(8,null);return O(t,y),t.teardown=e,t}function on(e){tn(`$effect`);var t=G.f;if(!H&&t&32&&!(t&32768)){var n=D;(n.e??=[]).push(e)}else return sn(e)}function sn(e){return z(4|oe,e)}function cn(e){ct.ensure();let t=z(64|ae,e);return()=>{V(t)}}function ln(e){ct.ensure();let t=z(64|ae,e);return(e={})=>new Promise(n=>{e.outro?bn(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function un(e){return z(4,e)}function dn(e){return z(le|ae,e)}function fn(e,t=0){return z(8|t,e)}function pn(e,t=[],n=[],r=[]){bt(r,t,n,t=>{z(8,()=>e(...t.map(Z)))})}function mn(e,t=0){return z(16|t,e)}function B(e){return z(32|ae,e)}function hn(e){var t=e.teardown;if(t!==null){let e=Dn,n=H;On(!0),W(null);try{t.call(null)}finally{On(e),W(n)}}}function gn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&en(()=>{e.abort(S)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function _n(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(vn(e.nodes.start,e.nodes.end),n=!0),O(e,re),gn(e,t&&!n),Bn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();hn(e),e.f^=re,e.f|=x;var i=e.parent;i!==null&&i.first!==null&&yn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function vn(e,t){for(;e!==null;){var n=e===t?null:L(e);e.remove(),e=n}}function yn(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 bn(e,t,n=!0){var r=[];xn(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function xn(e,t,n){if(!(e.f&8192)){e.f^=te;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;xn(i,t,o?n:!1),i=a}}}function Sn(e){Cn(e,!0)}function Cn(e,t){if(e.f&8192){e.f^=te,e.f&1024||(O(e,b),ct.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Cn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function wn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:L(n);t.append(n),n=i}}var Tn=null,En=!1,Dn=!1;function On(e){Dn=e}var H=null,U=!1;function W(e){H=e}var G=null;function K(e){G=e}var q=null;function kn(e){H!==null&&(!Ie||H.f&2)&&(q===null?q=[e]:q.push(e))}var J=null,Y=0,X=null;function An(e){X=e}var jn=1,Mn=0,Nn=Mn;function Pn(e){Nn=e}function Fn(){return++jn}function In(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~se),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(In(a)&&At(a),a.wv>e.wv)return!0}t&512&&j===null&&O(e,y)}return!1}function Ln(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ie&&q!==null&&o.call(q,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Ln(a,t,!1):t===a&&(n?O(a,b):a.f&1024&&O(a,ee),pt(a))}}function Rn(e){var t=J,n=Y,r=X,i=H,a=q,o=D,s=U,c=Nn,l=e.f;J=null,Y=0,X=null,H=l&96?null:e,q=null,Re(e.ctx),U=!1,Nn=++Mn,e.ac!==null&&(en(()=>{e.ac.abort(S)}),e.ac=null);try{e.f|=ce;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=A?.is_fork;if(J!==null){var m;if(p||Bn(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(rn()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Y<f.length&&(Bn(e,Y),f.length=Y);if(Ve()&&X!==null&&!U&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)Ln(X[m],e);if(i!==null&&i!==e){if(Mn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Mn;if(t!==null)for(let e of t)e.rv=Mn;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=ue),d}catch(e){return Ke(e)}finally{e.f^=ce,J=t,Y=n,X=r,H=i,q=a,Re(o),U=s,Nn=c}}function zn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(J===null||!o.call(J,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~se),Ye(s),jt(s),Bn(s,0)}}function Bn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zn(e,n[r])}function Vn(e){var t=e.f;if(!(t&16384)){O(e,y);var n=G,r=En;G=e,En=!0;try{t&16777232?_n(e):gn(e),hn(e);var i=Rn(e);e.teardown=typeof i==`function`?i:null,e.wv=jn}finally{En=r,G=n}}}function Z(e){var t=(e.f&2)!=0;if(Tn?.add(e),H!==null&&!U&&!(G!==null&&G.f&16384)&&(q===null||!o.call(q,e))){var n=H.deps;if(H.f&2097152)e.rv<Mn&&(e.rv=Mn,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{(H.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[H]:o.call(r,H)||r.push(H)}}if(Dn&&P.has(e))return P.get(e);if(t){var i=e;if(Dn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Un(i))&&(a=kt(i)),P.set(i,a),a}var s=(i.f&512)==0&&!U&&H!==null&&(En||(H.f&512)!=0),c=(i.f&ne)===0;In(i)&&(s&&(i.f|=512),At(i)),s&&!c&&(Mt(i),Hn(i))}if(j?.has(e))return j.get(e);if(e.f&8388608)throw e.v;return e.v}function Hn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Mt(t),Hn(t))}function Un(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(P.has(t)||t.f&2&&Un(t))return!0;return!1}function Wn(e){var t=U;try{return U=!0,e()}finally{U=t}}var Gn=Symbol(`events`),Kn=new Set,qn=new Set;function Jn(e,t,n,r={}){function i(e){if(r.capture||Zn.call(t,e),!e.cancelBubble)return en(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?We(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Yn(e,t,n,r,i){var a={capture:r,passive:i},o=Jn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&an(()=>{t.removeEventListener(e,o,a)})}var Xn=null;function Zn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Xn=e;var o=0,s=Xn===e&&e[Gn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Gn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=H,f=G;W(null),K(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Gn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Gn]=t,delete e.currentTarget,W(d),K(f)}}}var Qn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function $n(e){return Qn?.createHTML(e)??e}function er(e){var t=Qt(`template`);return t.innerHTML=$n(e.replaceAll(`<!>`,`<!---->`)),t.content}function tr(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function nr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return tr(w,null),w;i===void 0&&(i=er(a?e:`<!>`+e),n||(i=Jt(i)));var t=r||Ut?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Jt(t),s=t.lastChild;tr(o,s)}else tr(t,t);return t}}function rr(e,t){if(C){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=w),ke();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var ir=[`touchstart`,`touchmove`];function ar(e){return ir.includes(e)}function or(e,t){return lr(e,t)}function sr(e,n){Kt(),n.intro=n.intro??!1;let r=n.target,i=C,a=w;try{for(var o=Jt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=L(o);if(!o)throw t;Oe(!0),T(o);let i=lr(e,{...n,anchor:o});return Oe(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&be(),Kt(),Xt(r),Oe(!1),or(e,n)}finally{Oe(i),T(a)}}var cr=new Map;function lr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Kt();var u=void 0,d=ln(()=>{var c=r??n.appendChild(qt());vt(c,{pending:()=>{}},n=>{ze({});var r=D;if(o&&(r.c=o),a&&(i.$$events=a),C&&tr(n,null),u=e(n,i)||{},C&&(G.nodes.end=w,w===null||w.nodeType!==8||w.data!==`]`))throw Ee(),t;Be()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=ar(r);for(let e of[n,document]){var a=cr.get(e);a===void 0&&(a=new Map,cr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Zn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Kn)),qn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=cr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,Zn),t.delete(e),t.size===0&&cr.delete(r)):t.set(e,i)}qn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return ur.set(u,d),u}var ur=new WeakMap;function dr(e,t){let n=ur.get(e);return n?(ur.delete(e),n(t)):Promise.resolve()}var fr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Sn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(V(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();wn(r,t),t.append(qt()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),bn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=A,r=Zt();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=qt();i.append(a),this.#n.set(e,{effect:B(()=>t(a)),fragment:i})}else this.#t.set(e,B(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=w),this.#a(n)}};function pr(e,t,n=!1){var r;C&&(r=w,ke());var i=new fr(e),a=n?ie:0;function o(e,t){if(C){var n=Me(r);if(e!==parseInt(n.substring(1))){var a=je();T(a),i.anchor=a,Oe(!1),i.ensure(e,t),Oe(!0);return}}i.ensure(e,t)}mn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function mr(e,t,n,r,i){C&&ke();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function hr(e){let t={};e.children&&(t.default=!0);for(let n in e.$$slots)t[n]=!0;return t}function gr(e,t){un(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Qt(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var _r=Symbol(`is custom element`),vr=Symbol(`is html`),yr=me?`link`:`LINK`;function br(e,t,n,r){var i=xr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===yr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Cr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Q(e,t,n){var r=H,i=G;let a=C;C&&Oe(!1),W(null),K(null);try{t!==`style`&&(Sr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Cr(e).includes(t):n&&typeof n==`object`)?e[t]=n:br(e,t,n==null?n:String(n))}finally{W(r),K(i),a&&Oe(!0)}}function xr(e){return e.__attributes??={[_r]:e.nodeName.includes(`-`),[vr]:e.namespaceURI===r}}var Sr=new Map;function Cr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Sr.get(t);if(n)return n;Sr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function $(e,t,n,r){var i=!Le||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Wn(r):r),s);let d;if(a){var f=de in e||fe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&xe(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?wt:Et)(()=>(_=!1,h()));a&&Z(v);var y=G;return(function(e,t){if(arguments.length>0){let n=t?Z(v):i&&a?Vt(e):e;return I(v,n),_=!0,s!==void 0&&(s=n),e}return Dn&&_||y.f&16384?v.v:Z(v)})}function wr(e){return new Tr(e)}var Tr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=It(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===fe?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?sr:or)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Ie&&(!e?.props?.$$host||e.sync===!1)&&M(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{dr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Er;typeof HTMLElement==`function`&&(Er=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Qt(`slot`);e!==`default`&&(n.name=e),rr(t,n)}}let t={},n=Or(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Dr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=wr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=cn(()=>{fn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Dr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Dr(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 c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Dr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Or(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function kr(e,t,n,r,i,a){let o=class extends Er{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Dr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function Ar(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var jr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.7`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}},Mr=nr(`<div><hb-form></hb-form></div>`,2),Nr=nr(`<div slot="header"><!></div>`),Pr=nr(`<div slot="modal-footer"><!></div>`),Fr=nr(`<div slot="footer"><!></div>`),Ir=nr(`<div slot="close-button-label"><!></div>`),Lr=nr(`<div slot="confirm-button-label"><!></div>`),Rr=nr(`<span><hb-dialog><div slot="body-content"><div><!></div> <!> <div><!></div></div> <!> <!> <!> <!> <!></hb-dialog></span>`,2),zr={hash:`svelte-i58ii0`,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");:host {font-family:"Roboto", sans-serif;}`};function Br(e,t){let n=hr(t);ze(t,!0),gr(e,zr);function r(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let i=$(t,`id`,7,``),a=$(t,`schema`,23,()=>[]),o=$(t,`describedby`,7,``),s=$(t,`labelledby`,7,``),c=$(t,`content`,7,``),l=$(t,`closelabel`,7,``),u=$(t,`confirmlabel`,7,``),d=$(t,`dialogclasses`,7,``),f=$(t,`title`,7,``),p=$(t,`backdrop`,7,!0),m=$(t,`keyboard`,7,!0),h=$(t,`show`,7,`no`),g=F(!1);on(()=>{h()===`yes`||h()===``?h(`yes`):h(`no`),typeof p()==`string`?p(p()===`true`||p()===`yes`):p()===void 0&&p(!0),typeof m()==`string`?m(m()===`true`||m()===`yes`):m()===void 0&&m(!0)}),Ar({repoName:`@htmlbricks/hb-dialog`,version:jr.version}),Ar({repoName:`@htmlbricks/hb-form`,version:jr.version});let _;function v(e){h(e.show?`yes`:`no`),r(`modalShow`,e)}function y(e){r(`updateForm`,e),e._valid?I(g,!0):I(g,!1),e._id=void 0,_=Object.assign({},e,{_id:i()})}function b(e){e.confirm&&_&&_._valid?r(`modalFormConfirm`,_):e.confirm?(r(`modalFormCancel`,{id:i(),error:`invalid form`}),console.error(`form submit invalid`)):(r(`modalFormCancel`,{id:i()}),console.warn(`form submit cancelled`))}var ee={get id(){return i()},set id(e=``){i(e),M()},get schema(){return a()},set schema(e=[]){a(e),M()},get describedby(){return o()},set describedby(e=``){o(e),M()},get labelledby(){return s()},set labelledby(e=``){s(e),M()},get content(){return c()},set content(e=``){c(e),M()},get closelabel(){return l()},set closelabel(e=``){l(e),M()},get confirmlabel(){return u()},set confirmlabel(e=``){u(e),M()},get dialogclasses(){return d()},set dialogclasses(e=``){d(e),M()},get title(){return f()},set title(e=``){f(e),M()},get backdrop(){return p()},set backdrop(e=!0){p(e),M()},get keyboard(){return m()},set keyboard(e=!0){m(e),M()},get show(){return h()},set show(e=`no`){h(e),M()}},te=Rr(),x=R(te);pn(()=>Q(x,`disable_confirm`,Z(g)?`no`:`yes`)),pn(()=>Q(x,`id`,i()?i()+`_modalform`:`modalform`+Date.now())),pn(()=>Q(x,`show`,h())),pn(()=>Q(x,`title`,f())),pn(()=>Q(x,`confirmlabel`,u())),pn(()=>Q(x,`content`,c())),pn(()=>Q(x,`closelabel`,l()));var ne=R(x),re=R(ne);mr(R(re),t,`form-header`,{},null),E(re);var ie=Yt(re,2),ae=e=>{var t=Mr(),n=R(t);pn(()=>Q(n,`schema`,a())),Q(n,`hide_submit`,`yes`),E(t),Yn(`update`,n,e=>y(e.detail)),rr(e,t)};pr(ie,e=>{a()?.length&&e(ae)});var oe=Yt(ie,2);mr(R(oe),t,`form-footer`,{},null),E(oe),E(ne);var se=Yt(ne,2),ce=e=>{var n=Nr();mr(R(n),t,`header`,{},null),E(n),rr(e,n)};pr(se,e=>{n.header&&e(ce)});var le=Yt(se,2),ue=e=>{var n=Pr();mr(R(n),t,`modal-footer`,{},null),E(n),rr(e,n)};pr(le,e=>{n[`modal-footer`]&&e(ue)});var de=Yt(le,2),fe=e=>{var n=Fr();mr(R(n),t,`footer`,{},null),E(n),rr(e,n)};pr(de,e=>{n.footer&&e(fe)});var pe=Yt(de,2),S=e=>{var n=Ir();mr(R(n),t,`close-button-label`,{},null),E(n),rr(e,n)};pr(pe,e=>{n[`close-button-label`]&&e(S)});var me=Yt(pe,2),he=e=>{var n=Lr();mr(R(n),t,`confirm-button-label`,{},null),E(n),rr(e,n)};return pr(me,e=>{n[`confirm-button-label`]&&e(he)}),E(x),E(te),Yn(`modalConfirm`,x,e=>{b(e.detail)}),Yn(`modalShow`,x,e=>{v(e.detail)}),rr(e,te),Be(ee)}customElements.define(`hb-dialogform`,kr(Br,{id:{},schema:{},describedby:{},labelledby:{},content:{},closelabel:{},confirmlabel:{},dialogclasses:{},title:{},backdrop:{},keyboard:{},show:{}},[`form-header`,`form-footer`,`header`,`modal-footer`,`footer`,`close-button-label`,`confirm-button-label`],[],{mode:`open`})),e.Component=Br})(this.dialogform=this.dialogform||{});
|
|
3
|
+
//# sourceMappingURL=main.iife.js.map
|