crayon-design-system-ui 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/angular/index.js +1 -1
- package/dist/assets/{attributes-o88QCNuy.js → attributes-D-TnEoSs.js} +1 -1
- package/dist/assets/{custom-element-CN6vLcFC.js → custom-element-BNCemaCE.js} +1 -1
- package/dist/assets/{each-DkX3FjFL.js → each-C4IlkX_B.js} +1 -1
- package/dist/assets/{if-DdiIl-sg.js → if-BVwKToaK.js} +1 -1
- package/dist/assets/{index-client-CiUbrQq_.js → index-client-BDYmxQqF.js} +1 -1
- package/dist/assets/{lifecycle-BK5NY8qp.js → lifecycle-8krACzSO.js} +2 -2
- package/dist/assets/{props-DbUVX42-.js → props-CFmog5h1.js} +1 -1
- package/dist/assets/{slot-CRFQJtYY.js → slot-DvkFfIlK.js} +1 -1
- package/dist/assets/{this-DllEouAd.js → this-BafLbyG5.js} +1 -1
- package/dist/components/accordion/Accordion.js +2 -2
- package/dist/components/accordion-item/AccordionItem.js +1 -1
- package/dist/components/avatar/Avatar.js +2 -2
- package/dist/components/button/Button.js +9 -4
- package/dist/components/button/Button.svelte +53 -3
- package/dist/components/button/Button.svelte.d.ts +2 -0
- package/dist/components/card/Card.js +1 -1
- package/dist/components/checkbox/Checkbox.js +2 -2
- package/dist/components/form/Form.js +1 -1
- package/dist/components/form-select/FormSelect.js +1 -1
- package/dist/components/form-select/FormSelectOption.js +1 -1
- package/dist/components/input/Input.js +2 -2
- package/dist/components/label/Label.js +1 -1
- package/dist/components/radio/Radio.js +1 -1
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/tokens.css +4 -0
- package/dist-browser/assets/{Accordion-BdCoTKVi.js → Accordion-4FnaG9Y5.js} +2 -2
- package/dist-browser/assets/{AccordionItem-1t1Zhjrw.js → AccordionItem-MWAfy7EJ.js} +1 -1
- package/dist-browser/assets/{Avatar-DhSRGD6B.js → Avatar-Cr-67Tpk.js} +2 -2
- package/dist-browser/assets/Button-Ba9iLwpw.js +47 -0
- package/dist-browser/assets/{Card-BWTKqCMd.js → Card-CUlg_7ny.js} +1 -1
- package/dist-browser/assets/{Checkbox-DDlm5gjw.js → Checkbox-Bt7fzawE.js} +2 -2
- package/dist-browser/assets/{Form-BZFKnk3f.js → Form-CxYboW1j.js} +1 -1
- package/dist-browser/assets/{FormSelect-Baelf6Fj.js → FormSelect-savXS0S1.js} +1 -1
- package/dist-browser/assets/{FormSelectOption-DhOxPDjS.js → FormSelectOption-BEHQwEkg.js} +1 -1
- package/dist-browser/assets/{Input-D_X-2zGG.js → Input-DTmtSwFl.js} +2 -2
- package/dist-browser/assets/{Label-C_I7LolH.js → Label-Dk_VP__P.js} +1 -1
- package/dist-browser/assets/{Radio-B8Tzan31.js → Radio-B0hST10q.js} +1 -1
- package/dist-browser/assets/{Textarea-CLicCbYy.js → Textarea-DDTph5tQ.js} +1 -1
- package/dist-browser/assets/{attributes-BN21YWvK.js → attributes-BB78Zt3j.js} +1 -1
- package/dist-browser/assets/{custom-element-vZIc-tZM.js → custom-element-CXejdDHX.js} +1 -1
- package/dist-browser/assets/{each-CDVyljdy.js → each-DNRJ3yhh.js} +1 -1
- package/dist-browser/assets/{if-B3xMWYuB.js → if-B4dDWEPO.js} +1 -1
- package/dist-browser/assets/{index-client-BMTknfvN.js → index-client-D3Q8Zdf-.js} +1 -1
- package/dist-browser/assets/{lifecycle-BSCLFPkh.js → lifecycle-DybWhkay.js} +2 -2
- package/dist-browser/assets/{props-DClXGNhw.js → props-FXCOeMRa.js} +1 -1
- package/dist-browser/assets/{slot-Btw_EhJQ.js → slot-BMp_Pzk-.js} +1 -1
- package/dist-browser/assets/{this-CobEtPHm.js → this-CHrKM9Ea.js} +1 -1
- package/dist-browser/bundle.js +2 -2
- package/dist-browser/tokens.css +4 -0
- package/package.json +8 -5
- package/dist-browser/assets/Button-Z-no-wum.js +0 -42
package/dist/angular/index.js
CHANGED
|
@@ -156,7 +156,7 @@ function createWrapperComponent(selector, tag, inputNames = []) {
|
|
|
156
156
|
], Wrapper);
|
|
157
157
|
return Wrapper;
|
|
158
158
|
}
|
|
159
|
-
export const ButtonComponent = createWrapperComponent("crayon-button", "ui-button", ["variant", "size", "shape", "disabled", "loading", "type", "extraClass"]);
|
|
159
|
+
export const ButtonComponent = createWrapperComponent("crayon-button", "ui-button", ["variant", "size", "shape", "disabled", "loading", "type", "floating", "extraClass"]);
|
|
160
160
|
export const AccordionComponent = createWrapperComponent("crayon-accordion", "ui-accordion");
|
|
161
161
|
export const AccordionItemComponent = createWrapperComponent("crayon-accordion-item", "ui-accordion-item");
|
|
162
162
|
export const InputComponent = createWrapperComponent("crayon-input", "ui-input", ["value", "type", "placeholder", "name", "id", "size", "disabled", "readonly", "required", "variant", "validationState", "extraClass"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as o,ad as l,a7 as v,ae as h,af as g,ag as A,ah as S,ai as k,aj as d}from"./custom-element-
|
|
1
|
+
import{h as o,ad as l,a7 as v,ae as h,af as g,ag as A,ah as S,ai as k,aj as d}from"./custom-element-BNCemaCE.js";function b(e){o&&l(e)!==null&&v(e)}let _=!1;function p(){_||(_=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const r of e.target.elements)r.__on_r?.()})},{capture:!0}))}const E=Symbol("is custom element"),L=Symbol("is html"),N=d?"link":"LINK",T=d?"progress":"PROGRESS";function y(e){if(o){var r=!1,t=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var a=e.value;n(e,"value",null),e.value=a}if(e.hasAttribute("checked")){var s=e.checked;n(e,"checked",null),e.checked=s}}};e.__on_r=t,k(t),p()}}function I(e,r){var t=i(e);t.value===(t.value=r??void 0)||e.value===r&&(r!==0||e.nodeName!==T)||(e.value=r??"")}function R(e,r){var t=i(e);t.checked!==(t.checked=r??void 0)&&(e.checked=r)}function G(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function n(e,r,t,a){var s=i(e);o&&(s[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===N)||s[r]!==(s[r]=t)&&(r==="loading"&&(e[h]=t),t==null?e.removeAttribute(r):typeof t!="string"&&m(e).includes(r)?e[r]=t:e.setAttribute(r,t))}function i(e){return e.__attributes??={[E]:e.nodeName.includes("-"),[L]:e.namespaceURI===g}}var f=new Map;function m(e){var r=e.getAttribute("is")||e.nodeName,t=f.get(r);if(t)return t;f.set(r,t=[]);for(var a,s=e,u=Element.prototype;u!==s;){a=S(s);for(var c in a)a[c].set&&t.push(c);s=A(s)}return t}export{I as a,b,G as c,R as d,y as r,n as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let We=!1,mn=!1;function bn(){We=!0}bn();const Dr=1,Mr=2,Ir=16,Lr=2,Fr=8,En=1,Tn=2,At="[",xt="[!",Rt="]",$e={},T=Symbol(),Sn="http://www.w3.org/1999/xhtml",Qe=!1;var An=Array.isArray,xn=Array.prototype.indexOf,ye=Array.prototype.includes,Rn=Array.from,He=Object.keys,Re=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,Nn=Object.getOwnPropertyDescriptors,On=Object.prototype,kn=Array.prototype,Nt=Object.getPrototypeOf,$t=Object.isExtensible;const Ue=()=>{};function jr(e){return e()}function Cn(e){for(var t=0;t<e.length;t++)e[t]()}function Ot(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const S=2,Ne=4,Ce=8,kt=1<<24,J=16,W=32,se=64,Ct=128,k=512,m=1024,A=2048,P=4096,H=8192,ee=16384,be=32768,Oe=65536,yt=1<<17,Pt=1<<18,ve=1<<19,Dt=1<<20,Br=1<<25,he=65536,et=1<<21,ut=1<<22,te=1<<23,ue=Symbol("$state"),Pn=Symbol("legacy props"),qr=Symbol(""),fe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Hr=globalThis.document?.contentType.includes("xml")??!1,Pe=3,De=8;function Dn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ur(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Mn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function In(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ln(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Fn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Yr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Bn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Hn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Wr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Un(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function Le(e){w=e}let g;function B(e){if(e===null)throw ze(),$e;return g=e}function Mt(){return B(Z(g))}function zr(e){if(w){if(Z(g)!==null)throw ze(),$e;g=e}}function Yn(e=1){if(w){for(var t=e,n=g;t--;)n=Z(n);g=n}}function Wn(e=!0){for(var t=0,n=g;;){if(n.nodeType===De){var r=n.data;if(r===Rt){if(t===0)return n;t-=1}else(r===At||r===xt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Gr(e){if(!e||e.nodeType!==De)throw ze(),$e;return e.data}function It(e){return e===this.v}function zn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Lt(e){return!zn(e,this.v)}let b=null;function we(e){b=e}function Gn(e,t=!1,n){b={p:b,i:!1,c:null,e:null,s:e,x:null,l:We&&!t?{s:null,u:null,$:[]}:null}}function Kn(e){var t=b,n=t.e;if(n!==null){t.e=null;for(var r of n)nn(r)}return e!==void 0&&(t.x=e),t.i=!0,b=t.p,e??{}}function Me(){return!We||b!==null&&b.l===null}let le=[];function Ft(){var e=le;le=[],Cn(e)}function oe(e){if(le.length===0&&!Ae){var t=le;queueMicrotask(()=>{t===le&&Ft()})}le.push(e)}function Xn(){for(;le.length>0;)Ft()}function jt(e){var t=p;if(t===null)return _.f|=te,e;if((t.f&be)===0&&(t.f&Ne)===0)throw e;me(e,t)}function me(e,t){for(;t!==null;){if((t.f&Ct)!==0){if((t.f&be)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Jn=-7169;function $(e,t){e.f=e.f&Jn|t}function ot(e){(e.f&k)!==0||e.deps===null?$(e,m):$(e,P)}function Bt(e){if(e!==null)for(const t of e)(t.f&S)===0||(t.f&he)===0||(t.f^=he,Bt(t.deps))}function qt(e,t,n){(e.f&A)!==0?t.add(e):(e.f&P)!==0&&n.add(e),Bt(e.deps),$(e,m)}const Fe=new Set;let y=null,M=null,x=[],Ge=null,tt=!1,Ae=!1;class K{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#s=0;#a=0;#f=null;#i=new Set;#n=new Set;#r=new Map;is_fork=!1;#l=!1;is_deferred(){return this.is_fork||this.#a>0}skip_effect(t){this.#r.has(t)||this.#r.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#r.get(t);if(n){this.#r.delete(t);for(var r of n.d)$(r,A),I(r);for(r of n.m)$(r,P),I(r)}}process(t){x=[],this.apply();var n=[],r=[];for(const s of t)this.#u(s,n,r);if(this.is_deferred()){this.#c(r),this.#c(n);for(const[s,i]of this.#r)Yt(s,i)}else{for(const s of this.#e)s();this.#e.clear(),this.#s===0&&this.#o(),y=null,wt(r),wt(n),this.#f?.resolve()}M=null}#u(t,n,r){t.f^=m;for(var s=t.first,i=null;s!==null;){var f=s.f,l=(f&(W|se))!==0,a=l&&(f&m)!==0,u=a||(f&H)!==0||this.#r.has(s);if(!u&&s.fn!==null){l?s.f^=m:i!==null&&(f&(Ne|Ce|kt))!==0?i.b.defer_effect(s):(f&Ne)!==0?n.push(s):Ee(s)&&((f&J)!==0&&this.#n.add(s),_e(s));var c=s.first;if(c!==null){s=c;continue}}var h=s.parent;for(s=s.next;s===null&&h!==null;)h===i&&(i=null),s=h.next,h=h.parent}}#c(t){for(var n=0;n<t.length;n+=1)qt(t[n],this.#i,this.#n)}capture(t,n){n!==T&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&te)===0&&(this.current.set(t,t.v),M?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y===this&&(y=null,M=null)}flush(){if(this.activate(),x.length>0){if(Vt(),y!==null&&y!==this)return}else this.#s===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#o(){if(Fe.size>1){this.previous.clear();var t=M,n=!0;for(const s of Fe){if(s===this){n=!1;continue}const i=[];for(const[l,a]of this.current){if(s.current.has(l))if(n&&a!==s.current.get(l))s.current.set(l,a);else continue;i.push(l)}if(i.length===0)continue;const f=[...s.current.keys()].filter(l=>!this.current.has(l));if(f.length>0){var r=x;x=[];const l=new Set,a=new Map;for(const u of i)Ht(u,f,l,a);if(x.length>0){y=s,s.apply();for(const u of x)s.#u(u,[],[]);s.deactivate()}x=r}}y=null,M=t}this.committed=!0,Fe.delete(this)}increment(t){this.#s+=1,t&&(this.#a+=1)}decrement(t){this.#s-=1,t&&(this.#a-=1),!this.#l&&(this.#l=!0,oe(()=>{this.#l=!1,this.is_deferred()?x.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#n.delete(t),$(t,A),I(t);for(const t of this.#n)$(t,P),I(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#f??=Ot()).promise}static ensure(){if(y===null){const t=y=new K;Fe.add(y),Ae||oe(()=>{y===t&&t.flush()})}return y}apply(){}}function Zn(e){var t=Ae;Ae=!0;try{for(var n;;){if(Xn(),x.length===0&&(y?.flush(),x.length===0))return Ge=null,n;Vt()}}finally{Ae=t}}function Vt(){tt=!0;var e=null;try{for(var t=0;x.length>0;){var n=K.ensure();if(t++>1e3){var r,s;Qn()}n.process(x),ne.clear()}}finally{x=[],tt=!1,Ge=null}}function Qn(){try{Fn()}catch(e){me(e,Ge)}}let G=null;function wt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ee|H))===0&&Ee(r)&&(G=new Set,_e(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&sn(r),G?.size>0)){ne.clear();for(const s of G){if((s.f&(ee|H))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)G.has(f)&&(G.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const a=i[l];(a.f&(ee|H))===0&&_e(a)}}G.clear()}}G=null}}function Ht(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&S)!==0?Ht(s,t,n,r):(i&(ut|J))!==0&&(i&A)===0&&Ut(s,t,r)&&($(s,A),I(s))}}function Ut(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(ye.call(t,s))return!0;if((s.f&S)!==0&&Ut(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function I(e){for(var t=Ge=e;t.parent!==null;){t=t.parent;var n=t.f;if(tt&&t===p&&(n&J)!==0&&(n&Pt)===0)return;if((n&(se|W))!==0){if((n&m)===0)return;t.f^=m}}x.push(t)}function Yt(e,t){if(!((e.f&W)!==0&&(e.f&m)!==0)){(e.f&A)!==0?t.d.push(e):(e.f&P)!==0&&t.m.push(e),$(e,m);for(var n=e.first;n!==null;)Yt(n,t),n=n.next}}function er(e){let t=0,n=Ie(0),r;return()=>{_t()&&(F(n),Xe(()=>(t===0&&(r=Je(()=>e(()=>xe(n)))),t+=1,()=>{oe(()=>{t-=1,t===0&&(r?.(),r=void 0,xe(n))})})))}}var tr=Oe|ve|Ct;function nr(e,t,n){new rr(e,t,n)}class rr{parent;is_pending=!1;#e;#t=w?g:null;#s;#a;#f;#i=null;#n=null;#r=null;#l=null;#u=null;#c=0;#o=0;#_=!1;#d=!1;#v=new Set;#p=new Set;#h=null;#m=er(()=>(this.#h=Ie(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#s=n,this.#a=r,this.parent=p.b,this.is_pending=!!this.#s.pending,this.#f=gr(()=>{if(p.b=this,w){const i=this.#t;Mt(),i.nodeType===De&&i.data===xt?this.#E():(this.#b(),this.#o===0&&(this.is_pending=!1))}else{var s=this.#y();try{this.#i=ie(()=>r(s))}catch(i){this.error(i)}this.#o>0?this.#$():this.is_pending=!1}return()=>{this.#u?.remove()}},tr),w&&(this.#e=g)}#b(){try{this.#i=ie(()=>this.#a(this.#e))}catch(t){this.error(t)}}#E(){const t=this.#s.pending;t&&(this.#n=ie(()=>t(this.#e)),oe(()=>{var n=this.#y();this.#i=this.#g(()=>(K.ensure(),ie(()=>this.#a(n)))),this.#o>0?this.#$():(Be(this.#n,()=>{this.#n=null}),this.is_pending=!1)}))}#y(){var t=this.#e;return this.is_pending&&(this.#u=X(),this.#e.before(this.#u),t=this.#u),t}defer_effect(t){qt(t,this.#v,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#g(t){var n=p,r=_,s=b;Y(this.#f),D(this.#f),we(this.#f.ctx);try{return t()}catch(i){return jt(i),null}finally{Y(n),D(r),we(s)}}#$(){const t=this.#s.pending;this.#i!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),wr(this.#i,this.#l)),this.#n===null&&(this.#n=ie(()=>t(this.#e)))}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}if(this.#o+=t,this.#o===0){this.is_pending=!1;for(const n of this.#v)$(n,A),I(n);for(const n of this.#p)$(n,P),I(n);this.#v.clear(),this.#p.clear(),this.#n&&Be(this.#n,()=>{this.#n=null}),this.#l&&(this.#e.before(this.#l),this.#l=null)}}update_pending_count(t){this.#w(t),this.#c+=t,!(!this.#h||this.#_)&&(this.#_=!0,oe(()=>{this.#_=!1,this.#h&&Ye(this.#h,this.#c)}))}get_effect_pending(){return this.#m(),F(this.#h)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(this.#d||!n&&!r)throw t;this.#i&&(j(this.#i),this.#i=null),this.#n&&(j(this.#n),this.#n=null),this.#r&&(j(this.#r),this.#r=null),w&&(B(this.#t),Yn(),B(Wn()));var s=!1,i=!1;const f=()=>{if(s){Un();return}s=!0,i&&Hn(),K.ensure(),this.#c=0,this.#r!==null&&Be(this.#r,()=>{this.#r=null}),this.is_pending=this.has_pending_snippet(),this.#i=this.#g(()=>(this.#d=!1,ie(()=>this.#a(this.#e)))),this.#o>0?this.#$():this.is_pending=!1};oe(()=>{try{i=!0,n?.(t,f),i=!1}catch(l){me(l,this.#f&&this.#f.parent)}r&&(this.#r=this.#g(()=>{K.ensure(),this.#d=!0;try{return ie(()=>{r(this.#e,()=>t,()=>f)})}catch(l){return me(l,this.#f.parent),null}finally{this.#d=!1}}))})}}function sr(e,t,n,r){const s=Me()?ct:lr;var i=e.filter(o=>!o.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var f=y,l=p,a=ir(),u=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(o=>o.promise)):null;function c(o){a();try{r(o)}catch(d){(l.f&ee)===0&&me(d,l)}f?.deactivate(),nt()}if(n.length===0){u.then(()=>c(t.map(s)));return}function h(){a(),Promise.all(n.map(o=>fr(o))).then(o=>c([...t.map(s),...o])).catch(o=>me(o,l))}u?u.then(h):h()}function ir(){var e=p,t=_,n=b,r=y;return function(i=!0){Y(e),D(t),we(n),i&&r?.activate()}}function nt(){Y(null),D(null),we(null)}function ct(e){var t=S|A,n=_!==null&&(_.f&S)!==0?_:null;return p!==null&&(p.f|=ve),{ctx:b,deps:null,effects:null,equals:It,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??p,ac:null}}function fr(e,t,n){let r=p;r===null&&Dn();var s=r.b,i=void 0,f=Ie(T),l=!_,a=new Map;return pr(()=>{var u=Ot();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{c===y&&c.committed&&c.deactivate(),nt()})}catch(d){u.reject(d),nt()}var c=y;if(l){var h=s.is_rendered();s.update_pending_count(1),c.increment(h),a.get(c)?.reject(fe),a.delete(c),a.set(c,u)}const o=(d,v=void 0)=>{if(c.activate(),v)v!==fe&&(f.f|=te,Ye(f,v));else{(f.f&te)!==0&&(f.f^=te),Ye(f,d);for(const[E,z]of a){if(a.delete(E),E===c)break;z.reject(fe)}}l&&(s.update_pending_count(-1),c.decrement(h))};u.promise.then(o,d=>o(null,d||"unknown"))}),vt(()=>{for(const u of a.values())u.reject(fe)}),new Promise(u=>{function c(h){function o(){h===i?u(f):c(i)}h.then(o,o)}c(i)})}function Kr(e){const t=ct(e);return an(t),t}function lr(e){const t=ct(e);return t.equals=Lt,t}function ar(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function ur(e){for(var t=e.parent;t!==null;){if((t.f&S)===0)return(t.f&ee)===0?t:null;t=t.parent}return null}function ht(e){var t,n=p;Y(ur(e));try{e.f&=~he,ar(e),t=hn(e)}finally{Y(n)}return t}function Wt(e){var t=ht(e);if(!e.equals(t)&&(e.wv=on(),(!y?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){$(e,m);return}de||(M!==null?(_t()||y?.is_fork)&&M.set(e,t):ot(e))}function or(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(fe),t.teardown=Ue,t.ac=null,ke(t,0),pt(t))}function zt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&_e(t)}let rt=new Set;const ne=new Map;let Gt=!1;function Ie(e,t){var n={f:0,v:e,reactions:null,equals:It,rv:0,wv:0};return n}function Q(e,t){const n=Ie(e);return an(n),n}function Kt(e,t=!1,n=!0){const r=Ie(e);return t||(r.equals=Lt),We&&n&&b!==null&&b.l!==null&&(b.l.s??=[]).push(r),r}function Xr(e,t){return V(e,Je(()=>F(e))),t}function V(e,t,n=!1){_!==null&&(!L||(_.f&yt)!==0)&&Me()&&(_.f&(S|J|ut|yt))!==0&&(C===null||!ye.call(C,e))&&Vn();let r=n?Te(t):t;return Ye(e,r)}function Ye(e,t){if(!e.equals(t)){var n=e.v;de?ne.set(e,t):ne.set(e,n),e.v=t;var r=K.ensure();if(r.capture(e,n),(e.f&S)!==0){const s=e;(e.f&A)!==0&&ht(s),ot(s)}e.wv=on(),Xt(e,A),Me()&&p!==null&&(p.f&m)!==0&&(p.f&(W|se))===0&&(O===null?mr([e]):O.push(e)),!r.is_fork&&rt.size>0&&!Gt&&cr()}return t}function cr(){Gt=!1;for(const e of rt)(e.f&m)!==0&&$(e,P),Ee(e)&&_e(e);rt.clear()}function xe(e){V(e,e.v+1)}function Xt(e,t){var n=e.reactions;if(n!==null)for(var r=Me(),s=n.length,i=0;i<s;i++){var f=n[i],l=f.f;if(!(!r&&f===p)){var a=(l&A)===0;if(a&&$(f,t),(l&S)!==0){var u=f;M?.delete(u),(l&he)===0&&(l&k&&(f.f|=he),Xt(u,P))}else a&&((l&J)!==0&&G!==null&&G.add(f),I(f))}}}function Te(e){if(typeof e!="object"||e===null||ue in e)return e;const t=Nt(e);if(t!==On&&t!==kn)return e;var n=new Map,r=An(e),s=Q(0),i=ce,f=l=>{if(ce===i)return l();var a=_,u=ce;D(null),Tt(i);var c=l();return D(a),Tt(u),c};return r&&n.set("length",Q(e.length)),new Proxy(e,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Bn();var c=n.get(a);return c===void 0?f(()=>{var h=Q(u.value);return n.set(a,h),h}):V(c,u.value,!0),!0},deleteProperty(l,a){var u=n.get(a);if(u===void 0){if(a in l){const c=f(()=>Q(T));n.set(a,c),xe(s)}}else V(u,T),xe(s);return!0},get(l,a,u){if(a===ue)return e;var c=n.get(a),h=a in l;if(c===void 0&&(!h||ge(l,a)?.writable)&&(c=f(()=>{var d=Te(h?l[a]:T),v=Q(d);return v}),n.set(a,c)),c!==void 0){var o=F(c);return o===T?void 0:o}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var c=n.get(a);c&&(u.value=F(c))}else if(u===void 0){var h=n.get(a),o=h?.v;if(h!==void 0&&o!==T)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return u},has(l,a){if(a===ue)return!0;var u=n.get(a),c=u!==void 0&&u.v!==T||Reflect.has(l,a);if(u!==void 0||p!==null&&(!c||ge(l,a)?.writable)){u===void 0&&(u=f(()=>{var o=c?Te(l[a]):T,d=Q(o);return d}),n.set(a,u));var h=F(u);if(h===T)return!1}return c},set(l,a,u,c){var h=n.get(a),o=a in l;if(r&&a==="length")for(var d=u;d<h.v;d+=1){var v=n.get(d+"");v!==void 0?V(v,T):d in l&&(v=f(()=>Q(T)),n.set(d+"",v))}if(h===void 0)(!o||ge(l,a)?.writable)&&(h=f(()=>Q(void 0)),V(h,Te(u)),n.set(a,h));else{o=h.v!==T;var E=f(()=>Te(u));V(h,E)}var z=Reflect.getOwnPropertyDescriptor(l,a);if(z?.set&&z.set.call(c,u),!o){if(r&&typeof a=="string"){var gt=n.get("length"),Ze=Number(a);Number.isInteger(Ze)&&Ze>=gt.v&&V(gt,Ze+1)}xe(s)}return!0},ownKeys(l){F(s);var a=Reflect.ownKeys(l).filter(h=>{var o=n.get(h);return o===void 0||o.v!==T});for(var[u,c]of n)c.v!==T&&!(u in l)&&a.push(u);return a},setPrototypeOf(){qn()}})}function mt(e){try{if(e!==null&&typeof e=="object"&&ue in e)return e[ue]}catch{}return e}function Jr(e,t){return Object.is(mt(e),mt(t))}var bt,Jt,Zt,Qt;function st(){if(bt===void 0){bt=window,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Zt=ge(t,"firstChild").get,Qt=ge(t,"nextSibling").get,$t(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),$t(n)&&(n.__t=void 0)}}function X(e=""){return document.createTextNode(e)}function re(e){return Zt.call(e)}function Z(e){return Qt.call(e)}function Zr(e,t){if(!w)return re(e);var n=re(g);if(n===null)n=g.appendChild(X());else if(t&&n.nodeType!==Pe){var r=X();return n?.before(r),B(r),r}return t&&Ke(n),B(n),n}function Qr(e,t=!1){if(!w){var n=re(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(g?.nodeType!==Pe){var r=X();return g?.before(r),B(r),r}Ke(g)}return g}function es(e,t=1,n=!1){let r=w?g:e;for(var s;t--;)s=r,r=Z(r);if(!w)return r;if(n){if(r?.nodeType!==Pe){var i=X();return r===null?s?.after(i):r.before(i),B(i),i}Ke(r)}return B(r),r}function hr(e){e.textContent=""}function ts(){return!1}function en(e,t,n){return document.createElementNS(Sn,e,void 0)}function Ke(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Pe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function dt(e){var t=_,n=p;D(null),Y(null);try{return e()}finally{D(t),Y(n)}}function tn(e){p===null&&(_===null&&Ln(),In()),de&&Mn()}function dr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function q(e,t,n){var r=p;r!==null&&(r.f&H)!==0&&(e|=H);var s={ctx:b,deps:null,nodes:null,f:e|A|k,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{_e(s)}catch(l){throw j(s),l}else t!==null&&I(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ve)===0&&(i=i.first,(e&J)!==0&&(e&Oe)!==0&&i!==null&&(i.f|=Oe)),i!==null&&(i.parent=r,r!==null&&dr(i,r),_!==null&&(_.f&S)!==0&&(e&se)===0)){var f=_;(f.effects??=[]).push(i)}return s}function _t(){return _!==null&&!L}function vt(e){const t=q(Ce,null,!1);return $(t,m),t.teardown=e,t}function ns(e){tn();var t=p.f,n=!_&&(t&W)!==0&&(t&be)===0;if(n){var r=b;(r.e??=[]).push(e)}else return nn(e)}function nn(e){return q(Ne|Dt,e,!1)}function rs(e){return tn(),q(Ce|Dt,e,!0)}function _r(e){K.ensure();const t=q(se|ve,e,!0);return()=>{j(t)}}function vr(e){K.ensure();const t=q(se|ve,e,!0);return(n={})=>new Promise(r=>{n.outro?Be(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function ss(e){return q(Ne,e,!1)}function is(e,t){var n=b,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=Xe(()=>{e(),!r.ran&&(r.ran=!0,Je(t))})}function fs(){var e=b;Xe(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&m)!==0&&n.deps!==null&&$(n,P),Ee(n)&&_e(n),t.ran=!1}})}function pr(e){return q(ut|ve,e,!0)}function Xe(e,t=0){return q(Ce|t,e,!0)}function ls(e,t=[],n=[],r=[]){sr(r,t,n,s=>{q(Ce,()=>e(...s.map(F)),!0)})}function gr(e,t=0){var n=q(J|t,e,!0);return n}function ie(e){return q(W|ve,e,!0)}function rn(e){var t=e.teardown;if(t!==null){const n=de,r=_;Et(!0),D(null);try{t.call(null)}finally{Et(n),D(r)}}}function pt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&dt(()=>{s.abort(fe)});var r=n.next;(n.f&se)!==0?n.parent=null:j(n,t),n=r}}function $r(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&W)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&Pt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(yr(e.nodes.start,e.nodes.end),n=!0),pt(e,t&&!n),ke(e,0),$(e,ee);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();rn(e);var s=e.parent;s!==null&&s.first!==null&&sn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function yr(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function sn(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 Be(e,t,n=!0){var r=[];fn(e,r,!0);var s=()=>{n&&j(e),t&&t()},i=r.length;if(i>0){var f=()=>--i||s();for(var l of r)l.out(f)}else s()}function fn(e,t,n){if((e.f&H)===0){e.f^=H;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,f=(s.f&Oe)!==0||(s.f&W)!==0&&(e.f&J)!==0;fn(s,t,f?n:!1),s=i}}}function as(e){ln(e,!0)}function ln(e,t){if((e.f&H)!==0){e.f^=H,(e.f&m)===0&&($(e,A),I(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Oe)!==0||(n.f&W)!==0;ln(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const f of i)(f.is_global||t)&&f.in()}}function wr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:Z(n);t.append(n),n=s}}let qe=!1,de=!1;function Et(e){de=e}let _=null,L=!1;function D(e){_=e}let p=null;function Y(e){p=e}let C=null;function an(e){_!==null&&(C===null?C=[e]:C.push(e))}let R=null,N=0,O=null;function mr(e){O=e}let un=1,ae=0,ce=ae;function Tt(e){ce=e}function on(){return++un}function Ee(e){var t=e.f;if((t&A)!==0)return!0;if(t&S&&(e.f&=~he),(t&P)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Ee(i)&&Wt(i),i.wv>e.wv)return!0}(t&k)!==0&&M===null&&$(e,m)}return!1}function cn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(C!==null&&ye.call(C,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&S)!==0?cn(i,t,!1):t===i&&(n?$(i,A):(i.f&m)!==0&&$(i,P),I(i))}}function hn(e){var t=R,n=N,r=O,s=_,i=C,f=b,l=L,a=ce,u=e.f;R=null,N=0,O=null,_=(u&(W|se))===0?e:null,C=null,we(e.ctx),L=!1,ce=++ae,e.ac!==null&&(dt(()=>{e.ac.abort(fe)}),e.ac=null);try{e.f|=et;var c=e.fn,h=c();e.f|=be;var o=e.deps,d=y?.is_fork;if(R!==null){var v;if(d||ke(e,N),o!==null&&N>0)for(o.length=N+R.length,v=0;v<R.length;v++)o[N+v]=R[v];else e.deps=o=R;if(_t()&&(e.f&k)!==0)for(v=N;v<o.length;v++)(o[v].reactions??=[]).push(e)}else!d&&o!==null&&N<o.length&&(ke(e,N),o.length=N);if(Me()&&O!==null&&!L&&o!==null&&(e.f&(S|P|A))===0)for(v=0;v<O.length;v++)cn(O[v],e);if(s!==null&&s!==e){if(ae++,s.deps!==null)for(let E=0;E<n;E+=1)s.deps[E].rv=ae;if(t!==null)for(const E of t)E.rv=ae;O!==null&&(r===null?r=O:r.push(...O))}return(e.f&te)!==0&&(e.f^=te),h}catch(E){return jt(E)}finally{e.f^=et,R=t,N=n,O=r,_=s,C=i,we(f),L=l,ce=a}}function br(e,t){let n=t.reactions;if(n!==null){var r=xn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&S)!==0&&(R===null||!ye.call(R,t))){var i=t;(i.f&k)!==0&&(i.f^=k,i.f&=~he),ot(i),or(i),ke(i,0)}}function ke(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)br(e,n[r])}function _e(e){var t=e.f;if((t&ee)===0){$(e,m);var n=p,r=qe;p=e,qe=!0;try{(t&(J|kt))!==0?$r(e):pt(e),rn(e);var s=hn(e);e.teardown=typeof s=="function"?s:null,e.wv=un;var i;Qe&&mn&&(e.f&A)!==0&&e.deps}finally{qe=r,p=n}}}function F(e){var t=e.f,n=(t&S)!==0;if(_!==null&&!L){var r=p!==null&&(p.f&ee)!==0;if(!r&&(C===null||!ye.call(C,e))){var s=_.deps;if((_.f&et)!==0)e.rv<ae&&(e.rv=ae,R===null&&s!==null&&s[N]===e?N++:R===null?R=[e]:R.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:ye.call(i,_)||i.push(_)}}}if(de&&ne.has(e))return ne.get(e);if(n){var f=e;if(de){var l=f.v;return((f.f&m)===0&&f.reactions!==null||_n(f))&&(l=ht(f)),ne.set(f,l),l}var a=(f.f&k)===0&&!L&&_!==null&&(qe||(_.f&k)!==0),u=(f.f&be)===0;Ee(f)&&(a&&(f.f|=k),Wt(f)),a&&!u&&(zt(f),dn(f))}if(M?.has(e))return M.get(e);if((e.f&te)!==0)throw e.v;return e.v}function dn(e){if(e.f|=k,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&S)!==0&&(t.f&k)===0&&(zt(t),dn(t))}function _n(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ne.has(t)||(t.f&S)!==0&&_n(t))return!0;return!1}function Je(e){var t=L;try{return L=!0,e()}finally{L=t}}function us(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ue in e)it(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&ue in n&&it(n)}}}function it(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{it(e[r],t)}catch{}const n=Nt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Nn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}const vn=new Set,ft=new Set;function Er(e,t,n,r={}){function s(i){if(r.capture||Se.call(t,i),!i.cancelBubble)return dt(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?oe(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function os(e,t,n,r,s){var i={capture:r,passive:s},f=Er(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&vt(()=>{t.removeEventListener(e,f,i)})}function cs(e){for(var t=0;t<e.length;t++)vn.add(e[t]);for(var n of ft)n(e)}let St=null;function Se(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;St=e;var f=0,l=St===e&&e.__root;if(l){var a=s.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;a<=u&&(f=a)}if(i=s[f]||e.target,i!==t){Re(e,"currentTarget",{configurable:!0,get(){return i||n}});var c=_,h=p;D(null),Y(null);try{for(var o,d=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var E=i["__"+r];E!=null&&(!i.disabled||e.target===i)&&E.call(i,e)}catch(z){o?d.push(z):o=z}if(e.cancelBubble||v===t||v===null)break;i=v}if(o){for(let z of d)queueMicrotask(()=>{throw z});throw o}}finally{e.__root=t,delete e.currentTarget,D(c),Y(h)}}}function pn(e){var t=en("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function U(e,t){var n=p;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function hs(e,t){var n=(t&En)!==0,r=(t&Tn)!==0,s,i=!e.startsWith("<!>");return()=>{if(w)return U(g,null),g;s===void 0&&(s=pn(i?e:"<!>"+e),n||(s=re(s)));var f=r||Jt?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=re(f),a=f.lastChild;U(l,a)}else U(f,f);return f}}function Tr(e,t,n="svg"){var r=!e.startsWith("<!>"),s=`<${n}>${r?e:"<!>"+e}</${n}>`,i;return()=>{if(w)return U(g,null),g;if(!i){var f=pn(s),l=re(f);i=re(l)}var a=i.cloneNode(!0);return U(a,a),a}}function ds(e,t){return Tr(e,t,"svg")}function _s(e=""){if(!w){var t=X(e+"");return U(t,t),t}var n=g;return n.nodeType!==Pe?(n.before(n=X()),B(n)):Ke(n),U(n,n),n}function vs(){if(w)return U(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),n=X();return e.append(t,n),U(t,n),e}function Sr(e,t){if(w){var n=p;((n.f&be)===0||n.nodes.end===null)&&(n.nodes.end=g),Mt();return}e!==null&&e.before(t)}const Ar=["touchstart","touchmove"];function xr(e){return Ar.includes(e)}function ps(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function gn(e,t){return $n(e,t)}function Rr(e,t){st(),t.intro=t.intro??!1;const n=t.target,r=w,s=g;try{for(var i=re(n);i&&(i.nodeType!==De||i.data!==At);)i=Z(i);if(!i)throw $e;Le(!0),B(i);const f=$n(e,{...t,anchor:i});return Le(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==$e&&console.warn("Failed to hydrate: ",f),t.recover===!1&&jn(),st(),hr(n),Le(!1),gn(e,t)}finally{Le(r),B(s)}}const pe=new Map;function $n(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0}){st();var l=new Set,a=h=>{for(var o=0;o<h.length;o++){var d=h[o];if(!l.has(d)){l.add(d);var v=xr(d);t.addEventListener(d,Se,{passive:v});var E=pe.get(d);E===void 0?(document.addEventListener(d,Se,{passive:v}),pe.set(d,1)):pe.set(d,E+1)}}};a(Rn(vn)),ft.add(a);var u=void 0,c=vr(()=>{var h=n??t.appendChild(X());return nr(h,{pending:()=>{}},o=>{Gn({});var d=b;if(i&&(d.c=i),s&&(r.$$events=s),w&&U(o,null),u=e(o,r)||{},w&&(p.nodes.end=g,g===null||g.nodeType!==De||g.data!==Rt))throw ze(),$e;Kn()}),()=>{for(var o of l){t.removeEventListener(o,Se);var d=pe.get(o);--d===0?(document.removeEventListener(o,Se),pe.delete(o)):pe.set(o,d)}ft.delete(a),h!==n&&h.parentNode?.removeChild(h)}});return lt.set(u,c),u}let lt=new WeakMap;function Nr(e,t){const n=lt.get(e);return n?(lt.delete(e),n(t)):Promise.resolve()}function yn(e,t,n){if(e==null)return t(void 0),Ue;const r=Je(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}function Or(e){let t;return yn(e,n=>t=n)(),t}let je=!1,at=Symbol();function gs(e,t,n){const r=n[t]??={store:null,source:Kt(void 0),unsubscribe:Ue};if(r.store!==e&&!(at in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=Ue;else{var s=!0;r.unsubscribe=yn(e,i=>{s?r.source.v=i:V(r.source,i)}),s=!1}return e&&at in n?Or(e):F(r.source)}function $s(){const e={};function t(){vt(()=>{for(var n in e)e[n].unsubscribe();Re(e,at,{enumerable:!1,value:!0})})}return[e,t]}function ys(e){var t=je;try{return je=!1,[e(),je]}finally{je=t}}function kr(e){return new Cr(e)}class Cr{#e;#t;constructor(t){var n=new Map,r=(i,f)=>{var l=Kt(f,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,f){return F(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===Pn?!0:(F(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,l){return V(n.get(f)??r(f,l),l),Reflect.set(i,f,l)}});this.#t=(t.hydrate?Rr:gn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Zn(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||Re(this,i,{get(){return this.#t[i]},set(f){this.#t[i]=f},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{Nr(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...s)=>n.call(this,...s);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let wn;typeof HTMLElement=="function"&&(wn=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 s=>{const i=en("slot");r!=="default"&&(i.name=r),Sr(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Pr(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 s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Ve(s,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=kr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_r(()=>{Xe(()=>{this.$$r=!0;for(const r of He(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Ve(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ve(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 He(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ve(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Pr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ws(e,t,n,r,s,i){let f=class extends wn{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return He(t).map(l=>(t[l].attribute||l).toLowerCase())}};return He(t).forEach(l=>{Re(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Ve(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var c=ge(u,l)?.get;c?u[l]=a:u.$set({[l]:a})}}})}),r.forEach(l=>{Re(f.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=f,f}export{Dr as $,
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==$e&&console.warn("Failed to hydrate: ",f),t.recover===!1&&jn(),st(),hr(n),Le(!1),gn(e,t)}finally{Le(r),B(s)}}const pe=new Map;function $n(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0}){st();var l=new Set,a=h=>{for(var o=0;o<h.length;o++){var d=h[o];if(!l.has(d)){l.add(d);var v=xr(d);t.addEventListener(d,Se,{passive:v});var E=pe.get(d);E===void 0?(document.addEventListener(d,Se,{passive:v}),pe.set(d,1)):pe.set(d,E+1)}}};a(Rn(vn)),ft.add(a);var u=void 0,c=vr(()=>{var h=n??t.appendChild(X());return nr(h,{pending:()=>{}},o=>{Gn({});var d=b;if(i&&(d.c=i),s&&(r.$$events=s),w&&U(o,null),u=e(o,r)||{},w&&(p.nodes.end=g,g===null||g.nodeType!==De||g.data!==Rt))throw ze(),$e;Kn()}),()=>{for(var o of l){t.removeEventListener(o,Se);var d=pe.get(o);--d===0?(document.removeEventListener(o,Se),pe.delete(o)):pe.set(o,d)}ft.delete(a),h!==n&&h.parentNode?.removeChild(h)}});return lt.set(u,c),u}let lt=new WeakMap;function Nr(e,t){const n=lt.get(e);return n?(lt.delete(e),n(t)):Promise.resolve()}function yn(e,t,n){if(e==null)return t(void 0),Ue;const r=Je(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}function Or(e){let t;return yn(e,n=>t=n)(),t}let je=!1,at=Symbol();function gs(e,t,n){const r=n[t]??={store:null,source:Kt(void 0),unsubscribe:Ue};if(r.store!==e&&!(at in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=Ue;else{var s=!0;r.unsubscribe=yn(e,i=>{s?r.source.v=i:V(r.source,i)}),s=!1}return e&&at in n?Or(e):F(r.source)}function $s(){const e={};function t(){vt(()=>{for(var n in e)e[n].unsubscribe();Re(e,at,{enumerable:!1,value:!0})})}return[e,t]}function ys(e){var t=je;try{return je=!1,[e(),je]}finally{je=t}}function kr(e){return new Cr(e)}class Cr{#e;#t;constructor(t){var n=new Map,r=(i,f)=>{var l=Kt(f,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,f){return F(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===Pn?!0:(F(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,l){return V(n.get(f)??r(f,l),l),Reflect.set(i,f,l)}});this.#t=(t.hydrate?Rr:gn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Zn(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||Re(this,i,{get(){return this.#t[i]},set(f){this.#t[i]=f},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{Nr(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...s)=>n.call(this,...s);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let wn;typeof HTMLElement=="function"&&(wn=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 s=>{const i=en("slot");r!=="default"&&(i.name=r),Sr(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Pr(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 s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Ve(s,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=kr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_r(()=>{Xe(()=>{this.$$r=!0;for(const r of He(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Ve(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ve(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 He(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ve(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Pr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ws(e,t,n,r,s,i){let f=class extends wn{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return He(t).map(l=>(t[l].attribute||l).toLowerCase())}};return He(t).forEach(l=>{Re(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Ve(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var c=ge(u,l)?.get;c?u[l]=a:u.$set({[l]:a})}}})}),r.forEach(l=>{Re(f.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=f,f}export{Dr as $,ps as A,_s as B,vt as C,An as D,Wr as E,Jr as F,Xr as G,Kr as H,Mt as I,gr as J,Gr as K,xt as L,Wn as M,B as N,Le as O,g as P,De as Q,Rt as R,Ye as S,y as T,ie as U,Ur as V,ts as W,lr as X,Rn as Y,Mr as Z,Ie as _,fs as a,Ir as a0,X as a1,Br as a2,as as a3,Be as a4,H as a5,W as a6,hr as a7,j as a8,Z as a9,p as aA,ee as aB,Lr as aC,Fr as aD,Pn as aE,wr as aa,Oe as ab,At as ac,re as ad,qr as ae,Sn as af,Nt as ag,Nn as ah,oe as ai,Hr as aj,b as ak,We as al,ns as am,ss as an,Xe as ao,ue as ap,en as aq,rs as ar,Cn as as,jr as at,ct as au,ge as av,ys as aw,Yr as ax,Te as ay,de as az,Zr as b,ws as c,us as d,es as e,os as f,F as g,w as h,Sr as i,Kn as j,hs as k,is as l,Kt as m,Zn as n,ds as o,Gn as p,cs as q,zr as r,V as s,ls as t,gs as u,$s as v,vs as w,Qr as x,Yn as y,Je as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as R,I as P,J as Q,g as z,K as W,L as Z,M as y,N as L,O as k,P as b,Q as $,R as G,S as V,T as j,U as F,V as ee,W as re,X as ne,D as ae,Y as O,Z as fe,_ as Y,$ as le,a0 as ie,m as ue,a1 as B,a2 as T,a3 as X,a4 as q,a5 as D,a6 as se,a7 as oe,a8 as te,a9 as ve}from"./custom-element-
|
|
1
|
+
import{h as R,I as P,J as Q,g as z,K as W,L as Z,M as y,N as L,O as k,P as b,Q as $,R as G,S as V,T as j,U as F,V as ee,W as re,X as ne,D as ae,Y as O,Z as fe,_ as Y,$ as le,a0 as ie,m as ue,a1 as B,a2 as T,a3 as X,a4 as q,a5 as D,a6 as se,a7 as oe,a8 as te,a9 as ve}from"./custom-element-BNCemaCE.js";function ge(e,f){return f}function de(e,f,l){for(var c=[],g=f.length,t,u=f.length,n=0;n<g;n++){let o=f[n];q(o,()=>{if(t){if(t.pending.delete(o),t.done.add(o),t.pending.size===0){var _=e.outrogroups;H(O(t.done)),_.delete(t),_.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var a=c.length===0&&l!==null;if(a){var i=l,s=i.parentNode;oe(s),s.append(i),e.items.clear()}H(f,!a)}else t={pending:new Set(f),done:new Set},(e.outrogroups??=new Set).add(t)}function H(e,f=!0){for(var l=0;l<e.length;l++)te(e[l],f)}var U;function _e(e,f,l,c,g,t=null){var u=e,n=new Map;R&&P();var a=null,i=ne(()=>{var v=l();return ae(v)?v:v==null?[]:O(v)}),s,o=!0;function _(){r.fallback=a,ce(r,s,u,f,c),a!==null&&(s.length===0?(a.f&T)===0?X(a):(a.f^=T,x(a,null,u)):q(a,()=>{a=null}))}var M=Q(()=>{s=z(i);var v=s.length;let N=!1;if(R){var w=W(u)===Z;w!==(v===0)&&(u=y(),L(u),k(!1),N=!0)}for(var p=new Set,m=j,A=re(),h=0;h<v;h+=1){R&&b.nodeType===$&&b.data===G&&(u=b,N=!0,k(!1));var I=s[h],C=c(I,h),d=o?null:n.get(C);d?(d.v&&V(d.v,I),d.i&&V(d.i,h),A&&m.unskip_effect(d.e)):(d=pe(n,o?u:U??=B(),I,C,h,g,f,l),o||(d.e.f|=T),n.set(C,d)),p.add(C)}if(v===0&&t&&!a&&(o?a=F(()=>t(u)):(a=F(()=>t(U??=B())),a.f|=T)),v>p.size&&ee(),R&&v>0&&L(y()),!o)if(A){for(const[J,K]of n)p.has(J)||m.skip_effect(K.e);m.oncommit(_),m.ondiscard(()=>{})}else _();N&&k(!0),z(i)}),r={effect:M,items:n,outrogroups:null,fallback:a};o=!1,R&&(u=b)}function S(e){for(;e!==null&&(e.f&se)===0;)e=e.next;return e}function ce(e,f,l,c,g){var t=f.length,u=e.items,n=S(e.effect.first),a,i=null,s=[],o=[],_,M,r,v;for(v=0;v<t;v+=1){if(_=f[v],M=g(_,v),r=u.get(M).e,e.outrogroups!==null)for(const d of e.outrogroups)d.pending.delete(r),d.done.delete(r);if((r.f&T)!==0)if(r.f^=T,r===n)x(r,null,l);else{var N=i?i.next:n;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),E(e,i,r),E(e,r,N),x(r,N,l),i=r,s=[],o=[],n=S(i.next);continue}if((r.f&D)!==0&&X(r),r!==n){if(a!==void 0&&a.has(r)){if(s.length<o.length){var w=o[0],p;i=w.prev;var m=s[0],A=s[s.length-1];for(p=0;p<s.length;p+=1)x(s[p],w,l);for(p=0;p<o.length;p+=1)a.delete(o[p]);E(e,m.prev,A.next),E(e,i,m),E(e,A,w),n=w,i=A,v-=1,s=[],o=[]}else a.delete(r),x(r,n,l),E(e,r.prev,r.next),E(e,r,i===null?e.effect.first:i.next),E(e,i,r),i=r;continue}for(s=[],o=[];n!==null&&n!==r;)(a??=new Set).add(n),o.push(n),n=S(n.next);if(n===null)continue}(r.f&T)===0&&s.push(r),i=r,n=S(r.next)}if(e.outrogroups!==null){for(const d of e.outrogroups)d.pending.size===0&&(H(O(d.done)),e.outrogroups?.delete(d));e.outrogroups.size===0&&(e.outrogroups=null)}if(n!==null||a!==void 0){var h=[];if(a!==void 0)for(r of a)(r.f&D)===0&&h.push(r);for(;n!==null;)(n.f&D)===0&&n!==e.fallback&&h.push(n),n=S(n.next);var I=h.length;if(I>0){var C=null;de(e,h,C)}}}function pe(e,f,l,c,g,t,u,n){var a=(u&le)!==0?(u&ie)===0?ue(l,!1,!1):Y(l):null,i=(u&fe)!==0?Y(g):null;return{v:a,i,e:F(()=>(t(f,a??l,i??g,n),()=>{e.delete(c)}))}}function x(e,f,l){if(e.nodes)for(var c=e.nodes.start,g=e.nodes.end,t=f&&(f.f&T)===0?f.nodes.start:l;c!==null;){var u=ve(c);if(t.before(c),c===g)return;c=u}}function E(e,f,l){f===null?e.effect.first=l:f.next=l,l===null?e.effect.last=f:l.prev=f}export{_e as e,ge as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as u,a3 as b,a8 as l,a4 as m,a1 as _,U as p,aa as g,W as T,h as d,P as A,J as k,ab as R,I as w,K as E,ac as M,L as N,M as S,N as D,O as v}from"./custom-element-
|
|
1
|
+
import{T as u,a3 as b,a8 as l,a4 as m,a1 as _,U as p,aa as g,W as T,h as d,P as A,J as k,ab as R,I as w,K as E,ac as M,L as N,M as S,N as D,O as v}from"./custom-element-BNCemaCE.js";class F{anchor;#s=new Map;#t=new Map;#e=new Map;#a=new Set;#i=!0;constructor(s,a=!0){this.anchor=s,this.#i=a}#r=()=>{var s=u;if(this.#s.has(s)){var a=this.#s.get(s),e=this.#t.get(a);if(e)b(e),this.#a.delete(a);else{var n=this.#e.get(a);n&&(this.#t.set(a,n.effect),this.#e.delete(a),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),e=n.effect)}for(const[i,t]of this.#s){if(this.#s.delete(i),i===s)break;const r=this.#e.get(t);r&&(l(r.effect),this.#e.delete(t))}for(const[i,t]of this.#t){if(i===a||this.#a.has(i))continue;const r=()=>{if(Array.from(this.#s.values()).includes(i)){var c=document.createDocumentFragment();g(t,c),c.append(_()),this.#e.set(i,{effect:t,fragment:c})}else l(t);this.#a.delete(i),this.#t.delete(i)};this.#i||!e?(this.#a.add(i),m(t,r,!1)):r()}}};#f=s=>{this.#s.delete(s);const a=Array.from(this.#s.values());for(const[e,n]of this.#e)a.includes(e)||(l(n.effect),this.#e.delete(e))};ensure(s,a){var e=u,n=T();if(a&&!this.#t.has(s)&&!this.#e.has(s))if(n){var i=document.createDocumentFragment(),t=_();i.append(t),this.#e.set(s,{effect:p(()=>a(t)),fragment:i})}else this.#t.set(s,p(()=>a(this.anchor)));if(this.#s.set(e,s),n){for(const[r,f]of this.#t)r===s?e.unskip_effect(f):e.skip_effect(f);for(const[r,f]of this.#e)r===s?e.unskip_effect(f.effect):e.skip_effect(f.effect);e.oncommit(this.#r),e.ondiscard(this.#f)}else d&&(this.anchor=A),this.#r()}}function x(h,s,a=!1){d&&w();var e=new F(h),n=a?R:0;function i(t,r){if(d){const o=E(h);var f;if(o===M?f=0:o===N?f=!1:f=parseInt(o.substring(1)),t!==f){var c=S();D(c),e.anchor=c,v(!1),e.ensure(t,r),v(!0);return}}e.ensure(t,r)}k(()=>{var t=!1;s((r,f=0)=>{t=!0,i(f,r)}),t||i(!1,null)},n)}export{x as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ak as t,al as o,am as c,
|
|
1
|
+
import{ak as t,al as o,am as c,z as l}from"./custom-element-BNCemaCE.js";function a(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function r(e){t===null&&a(),o&&t.l!==null?u(t).m.push(e):c(()=>{const n=l(e);if(typeof n=="function")return n})}function u(e){var n=e.l;return n.u??={a:[],b:[],m:[]}}export{r as o};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{an as v,aq as
|
|
2
|
-
\r\f \v\uFEFF`];function C(n,e,r){var t=n==null?"":""+n;if(e&&(t=t?t+" "+e:e),r){for(var f in r)if(r[f])t=t?t+" "+f:f;else if(t.length)for(var s=f.length,i=0;(i=t.indexOf(f,i))>=0;){var o=i+s;(i===0||p.includes(t[i-1]))&&(o===t.length||p.includes(t[o]))?t=(i===0?"":t.substring(0,i))+t.substring(o+1):i=o}}return t===""?null:t}function
|
|
1
|
+
import{an as v,aq as b,h as u,ak as y,ar as _,am as c,as as g,z as A,at as N,g as d,d as w,au as j}from"./custom-element-BNCemaCE.js";function z(n,e){v(()=>{var r=n.getRootNode(),t=r.host?r:r.head??r.ownerDocument.head;if(!t.querySelector("#"+e.hash)){const f=b("style");f.id=e.hash,f.textContent=e.code,t.appendChild(f)}})}function m(n){var e,r,t="";if(typeof n=="string"||typeof n=="number")t+=n;else if(typeof n=="object")if(Array.isArray(n)){var f=n.length;for(e=0;e<f;e++)n[e]&&(r=m(n[e]))&&(t&&(t+=" "),t+=r)}else for(r in n)n[r]&&(t&&(t+=" "),t+=r);return t}function q(){for(var n,e,r=0,t="",f=arguments.length;r<f;r++)(n=arguments[r])&&(e=m(n))&&(t&&(t+=" "),t+=e);return t}function D(n){return typeof n=="object"?q(n):n??""}const p=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function C(n,e,r){var t=n==null?"":""+n;if(e&&(t=t?t+" "+e:e),r){for(var f in r)if(r[f])t=t?t+" "+f:f;else if(t.length)for(var s=f.length,i=0;(i=t.indexOf(f,i))>=0;){var o=i+s;(i===0||p.includes(t[i-1]))&&(o===t.length||p.includes(t[o]))?t=(i===0?"":t.substring(0,i))+t.substring(o+1):i=o}}return t===""?null:t}function L(n,e){return n==null?null:String(n)}function O(n,e,r,t,f,s){var i=n.__className;if(u||i!==r||i===void 0){var o=C(r,t,s);(!u||o!==n.getAttribute("class"))&&(o==null?n.removeAttribute("class"):n.className=o),n.__className=r}else if(s&&f!==s)for(var a in s){var l=!!s[a];(f==null||l!==!!f[a])&&n.classList.toggle(a,l)}return s}function R(n=!1){const e=y,r=e.l.u;if(!r)return;let t=()=>w(e.s);if(n){let f=0,s={};const i=j(()=>{let o=!1;const a=e.s;for(const l in a)a[l]!==s[l]&&(s[l]=a[l],o=!0);return o&&f++,f});t=()=>d(i)}r.b.length&&_(()=>{h(e,t),g(r.b)}),c(()=>{const f=A(()=>r.m.map(N));return()=>{for(const s of f)typeof s=="function"&&s()}}),r.a.length&&c(()=>{h(e,t),g(r.a)})}function h(n,e){if(n.l.s)for(const r of n.l.s)d(r);e()}export{z as a,D as c,R as i,O as s,L as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{av as m,aw as A,ax as B,g as c,ay as D,s as x,az as I,aA as L,aB as T,al as Y,aC as h,X as w,aD as C,ap as N,aE as $}from"./custom-element-
|
|
1
|
+
import{av as m,aw as A,ax as B,g as c,ay as D,s as x,az as I,aA as L,aB as T,al as Y,aC as h,X as w,aD as C,ap as N,aE as $}from"./custom-element-BNCemaCE.js";function y(a,r,g,_){var u=!Y||(g&h)!==0,P=(g&C)!==0,n=_,v=!0,S=()=>(v&&(v=!1,n=_),n),t;{var b=N in a||$ in a;t=m(a,r)?.set??(b&&r in a?e=>a[r]=e:void 0)}var s,o=!1;[s,o]=A(()=>a[r]),s===void 0&&_!==void 0&&(s=S(),t&&(u&&B(),t(s)));var i;if(u?i=()=>{var e=a[r];return e===void 0?S():(v=!0,e)}:i=()=>{var e=a[r];return e!==void 0&&(n=void 0),e===void 0?n:e},t){var O=a.$$legacy;return(function(e,d){return arguments.length>0?((!u||!d||O||o)&&t(d?i():e),e):i()})}var l=!1,f=w(()=>(l=!1,i()));c(f);var R=L;return(function(e,d){if(arguments.length>0){const E=d?c(f):u&&P?D(e):e;return x(f,E),l=!0,n!==void 0&&(n=E),e}return I&&l||(R.f&T)!==0?f.v:c(f)})}export{y as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as l,I as n}from"./custom-element-
|
|
1
|
+
import{h as l,I as n}from"./custom-element-BNCemaCE.js";function a(i,f,e,r,s){l&&n();var t=f.$$slots?.[e],d=!1;t===!0&&(t=f[e==="default"?"children":e],d=!0),t===void 0?s!==null&&s(i):t(i,d?()=>r:r)}export{a as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{an as t,ao as b,
|
|
1
|
+
import{an as t,ao as b,z as h,ai as k,ap as S}from"./custom-element-BNCemaCE.js";function u(r,a){return r===a||r?.[S]===a}function d(r={},a,f,T){return t(()=>{var i,s;return b(()=>{i=s,s=[],h(()=>{r!==f(...s)&&(a(r,...s),i&&u(f(...i),r)&&a(null,...i))})}),()=>{k(()=>{s&&u(f(...s),r)&&a(null,...s)})}}),r}export{d as b};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{q as te,c as oe,m as T,g as o,f as re,i as S,j as ae,u as E,s as B,k as J,v as se,p as ne,b as c,e as F,r as d,w as ie,x as le,y as ce,t as de,z as b,A as G}from"../../assets/custom-element-BNCemaCE.js";import{i as fe}from"../../assets/if-BVwKToaK.js";import{e as pe,i as ve}from"../../assets/each-C4IlkX_B.js";import{s as he}from"../../assets/slot-DvkFfIlK.js";import{a as ue,i as ge,s as H}from"../../assets/lifecycle-8krACzSO.js";import{s as f}from"../../assets/attributes-D-TnEoSs.js";import{b as me}from"../../assets/this-BafLbyG5.js";var be=J('<div role="button" tabindex="0"><span class="trigger svelte-19oeh9f"><span class="title svelte-19oeh9f"> </span> <span class="chevron svelte-19oeh9f" aria-hidden="true">▼</span></span> <div role="region"><div class="panel-inner svelte-19oeh9f"> </div></div></div>'),ye=J('<div class="accordion svelte-19oeh9f" role="region" aria-label="Accordion"><!> <!></div>');const _e={hash:"svelte-19oeh9f",code:`.accordion.svelte-19oeh9f {display:flex;flex-direction:column;gap:2px;width:100%;}.accordion.svelte-19oeh9f :where(.svelte-19oeh9f)::slotted(ui-accordion-item) {display:block;}\r
|
|
2
2
|
\r
|
|
3
|
-
/* Simple mode (items prop) styles */.item.svelte-19oeh9f {border-radius:var(--crayon-radius-md, 10px);background:var(--crayon-accordion-bg, #f5f5f5);border:1px solid var(--crayon-accordion-border, #e0e0e0);overflow:hidden;transition:background 0.2s ease, border-color 0.2s ease;}.item.svelte-19oeh9f:hover {background:var(--crayon-accordion-bg-hover, #eeeeee);}.item.open.svelte-19oeh9f {border-color:var(--crayon-primary, #474bff);background:var(--crayon-accordion-bg-open, #fafaff);}.trigger.svelte-19oeh9f {display:flex;align-items:center;justify-content:space-between;padding:14px 18px;cursor:pointer;user-select:none;font-weight:500;color:var(--crayon-accordion-title, #1a1a1a);transition:color 0.2s ease;}.item.open.svelte-19oeh9f .trigger:where(.svelte-19oeh9f) {color:var(--crayon-primary, #474bff);}.title.svelte-19oeh9f {flex:1;text-align:left;}.chevron.svelte-19oeh9f {font-size:0.7em;opacity:0.7;transition:transform 0.25s ease;flex-shrink:0;margin-left:8px;}.item.open.svelte-19oeh9f .chevron:where(.svelte-19oeh9f) {transform:rotate(180deg);}.panel.svelte-19oeh9f {display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.25s ease-out;}.panel.open.svelte-19oeh9f {grid-template-rows:1fr;}.panel-inner.svelte-19oeh9f {min-height:0;overflow:hidden;padding:0 18px 14px 18px;padding-top:0;color:var(--crayon-accordion-content, #444);font-size:14px;line-height:1.5;border-top:1px solid var(--crayon-accordion-border, #e0e0e0);}`};function xe(I,z){ne(z,!1),ue(I,_e);const K=()=>E(props,"$props",_),y=()=>E(state,"$state",_),N=()=>E(effect,"$effect",_),[_,L]=se();let{items:P=[],allowMultiple:j=!1}=K()(),u=T(),n,i=T(y()(!1)),x=y()(null),w=y()(new Set);function k(e){if(j){const t=new Set(w);t.has(e)?t.delete(e):t.add(e),w=t}else x=x===e?null:e;o(i)&&$()}function p(e){return j?w.has(e):x===e}function $(){if(!n)return;n.assignedElements().forEach((t,a)=>{t.setAttribute("data-accordion-index",String(a)),p(a)?t.setAttribute("open",""):t.removeAttribute("open")})}function q(e){const t=e?.target??n;t&&(n=t);const a=t?.assignedElements()??[];B(i,a.length>0),o(i)&&$()}function Q(e){const t=e.target?.closest?.("ui-accordion-item");if(!t)return;const a=t.getAttribute("data-accordion-index");if(a===null)return;const g=parseInt(a,10);Number.isNaN(g)||k(g)}N()(()=>{o(i)&&$()}),N()(()=>{o(u)&&(n=o(u).querySelector("slot"),n&&q())}),ge();var v=ye(),C=c(v);he(C,z,"default",{onslotchange:e=>q(e),get style(){return o(i)?"":"display: none"}},null);var U=F(C,2);{var V=e=>{var t=ie(),a=le(t);pe(a,1,()=>P,ve,(g,m,r)=>{var s=be();let D;f(s,"aria-controls",`accordion-panel-${r}`),f(s,"id",`accordion-trigger-${r}`),s.__keydown=h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),k(r))},s.__click=()=>k(r);var
|
|
3
|
+
/* Simple mode (items prop) styles */.item.svelte-19oeh9f {border-radius:var(--crayon-radius-md, 10px);background:var(--crayon-accordion-bg, #f5f5f5);border:1px solid var(--crayon-accordion-border, #e0e0e0);overflow:hidden;transition:background 0.2s ease, border-color 0.2s ease;}.item.svelte-19oeh9f:hover {background:var(--crayon-accordion-bg-hover, #eeeeee);}.item.open.svelte-19oeh9f {border-color:var(--crayon-primary, #474bff);background:var(--crayon-accordion-bg-open, #fafaff);}.trigger.svelte-19oeh9f {display:flex;align-items:center;justify-content:space-between;padding:14px 18px;cursor:pointer;user-select:none;font-weight:500;color:var(--crayon-accordion-title, #1a1a1a);transition:color 0.2s ease;}.item.open.svelte-19oeh9f .trigger:where(.svelte-19oeh9f) {color:var(--crayon-primary, #474bff);}.title.svelte-19oeh9f {flex:1;text-align:left;}.chevron.svelte-19oeh9f {font-size:0.7em;opacity:0.7;transition:transform 0.25s ease;flex-shrink:0;margin-left:8px;}.item.open.svelte-19oeh9f .chevron:where(.svelte-19oeh9f) {transform:rotate(180deg);}.panel.svelte-19oeh9f {display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.25s ease-out;}.panel.open.svelte-19oeh9f {grid-template-rows:1fr;}.panel-inner.svelte-19oeh9f {min-height:0;overflow:hidden;padding:0 18px 14px 18px;padding-top:0;color:var(--crayon-accordion-content, #444);font-size:14px;line-height:1.5;border-top:1px solid var(--crayon-accordion-border, #e0e0e0);}`};function xe(I,z){ne(z,!1),ue(I,_e);const K=()=>E(props,"$props",_),y=()=>E(state,"$state",_),N=()=>E(effect,"$effect",_),[_,L]=se();let{items:P=[],allowMultiple:j=!1}=K()(),u=T(),n,i=T(y()(!1)),x=y()(null),w=y()(new Set);function k(e){if(j){const t=new Set(w);t.has(e)?t.delete(e):t.add(e),w=t}else x=x===e?null:e;o(i)&&$()}function p(e){return j?w.has(e):x===e}function $(){if(!n)return;n.assignedElements().forEach((t,a)=>{t.setAttribute("data-accordion-index",String(a)),p(a)?t.setAttribute("open",""):t.removeAttribute("open")})}function q(e){const t=e?.target??n;t&&(n=t);const a=t?.assignedElements()??[];B(i,a.length>0),o(i)&&$()}function Q(e){const t=e.target?.closest?.("ui-accordion-item");if(!t)return;const a=t.getAttribute("data-accordion-index");if(a===null)return;const g=parseInt(a,10);Number.isNaN(g)||k(g)}N()(()=>{o(i)&&$()}),N()(()=>{o(u)&&(n=o(u).querySelector("slot"),n&&q())}),ge();var v=ye(),C=c(v);he(C,z,"default",{onslotchange:e=>q(e),get style(){return o(i)?"":"display: none"}},null);var U=F(C,2);{var V=e=>{var t=ie(),a=le(t);pe(a,1,()=>P,ve,(g,m,r)=>{var s=be();let D;f(s,"aria-controls",`accordion-panel-${r}`),f(s,"id",`accordion-trigger-${r}`),s.__keydown=h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),k(r))},s.__click=()=>k(r);var A=c(s),M=c(A),W=c(M,!0);d(M),ce(2),d(A);var l=F(A,2);let O;f(l,"id",`accordion-panel-${r}`),f(l,"aria-labelledby",`accordion-trigger-${r}`);var R=c(l),X=c(R,!0);d(R),d(l),d(s),de((h,Y,Z,ee)=>{D=H(s,1,"item svelte-19oeh9f",null,D,h),f(s,"aria-expanded",Y),G(W,(o(m),b(()=>o(m).title))),O=H(l,1,"panel svelte-19oeh9f",null,O,Z),f(l,"aria-hidden",ee),G(X,(o(m),b(()=>o(m).content)))},[()=>({open:p(r)}),()=>b(()=>p(r)),()=>({open:p(r)}),()=>b(()=>!p(r))]),S(g,s)}),S(e,t)};fe(U,e=>{o(i)||e(V)})}d(v),me(v,e=>B(u,e),()=>o(u)),re("accordion-toggle",v,Q),S(I,v),ae(),L()}te(["keydown","click"]);const __Default = (oe(xe,{},["default"],[],{mode:"open"}));
|
|
4
4
|
customElements.define("ui-accordion", __Default);
|
|
5
5
|
export default __Default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{q as G,c as J,p as K,m,t as C,i as v,j as L,u as H,k as N,b as c,v as P,g as r,B as j,A as Q,y as R,r as d,e as S,w as U,x as V,s as g}from"../../assets/custom-element-BNCemaCE.js";import{o as W}from"../../assets/index-client-BDYmxQqF.js";import{s as b}from"../../assets/slot-DvkFfIlK.js";import{a as X,i as Y,s as F}from"../../assets/lifecycle-8krACzSO.js";import{s as a}from"../../assets/attributes-D-TnEoSs.js";import{b as Z}from"../../assets/this-BafLbyG5.js";var ee=N('<div data-accordion-item=""><div class="trigger svelte-1f416ns" role="button" tabindex="0"><span class="trigger-inner svelte-1f416ns"><!> <span class="chevron svelte-1f416ns" aria-hidden="true">▼</span></span></div> <div role="region"><div class="panel-inner svelte-1f416ns"><!></div></div></div>');const te={hash:"svelte-1f416ns",code:".item.svelte-1f416ns {border-radius:var(--crayon-radius-md, 10px);background:var(--crayon-accordion-bg, #f5f5f5);border:1px solid var(--crayon-accordion-border, #e0e0e0);overflow:hidden;transition:background 0.2s ease, border-color 0.2s ease;}.item.svelte-1f416ns:hover {background:var(--crayon-accordion-bg-hover, #eeeeee);}.item.open.svelte-1f416ns {border-color:var(--crayon-primary, #474bff);background:var(--crayon-accordion-bg-open, #fafaff);}.trigger.svelte-1f416ns {cursor:pointer;user-select:none;}.trigger-inner.svelte-1f416ns {display:flex;align-items:center;justify-content:space-between;padding:14px 18px;font-weight:500;color:var(--crayon-accordion-title, #1a1a1a);transition:color 0.2s ease;}.item.open.svelte-1f416ns .trigger-inner:where(.svelte-1f416ns) {color:var(--crayon-primary, #474bff);}.trigger-inner.svelte-1f416ns :where(.svelte-1f416ns)::slotted(*) {flex:1;text-align:left;}.chevron.svelte-1f416ns {font-size:0.7em;opacity:0.7;transition:transform 0.25s ease;flex-shrink:0;margin-left:8px;}.item.open.svelte-1f416ns .chevron:where(.svelte-1f416ns) {transform:rotate(180deg);}.panel.svelte-1f416ns {display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.25s ease-out;}.panel.open.svelte-1f416ns {grid-template-rows:1fr;}.panel-inner.svelte-1f416ns {min-height:0;overflow:hidden;padding:0 18px 14px 18px;border-top:1px solid var(--crayon-accordion-border, #e0e0e0);}"};function re(h,f){K(f,!1),X(h,te);const M=()=>H(props,"$props",_),x=()=>H(state,"$state",_),[_,q]=P();let p=m(),{title:z="Header"}=M()(),o=m(x()(!1)),i=m(x()(null));function u(){return r(p)?.parentElement??null}function y(){const e=u();if(!e)return;g(o,e.hasAttribute("open"));const t=e.getAttribute("data-accordion-index");t!==null&&g(i,t)}function w(){const e=u();e&&e.dispatchEvent(new CustomEvent("accordion-toggle",{bubbles:!0,composed:!0}))}W(()=>{y();const e=u();if(!e)return;const t=new MutationObserver(()=>{y()});return t.observe(e,{attributes:!0,attributeFilter:["open","data-accordion-index"]}),()=>t.disconnect()}),Y();var l=ee();let k;var n=c(l);n.__keydown=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),w())},n.__click=w;var $=c(n),B=c($);b(B,f,"header",{},e=>{var t=j();C(()=>Q(t,z)),v(e,t)}),R(2),d($),d(n);var s=S(n,2);let E;var A=c(s),D=c(A);b(D,f,"content",{},e=>{var t=U(),I=V(t);b(I,f,"default",{},O=>{var T=j("Content");v(O,T)}),v(e,t)}),d(A),d(s),d(l),Z(l,e=>g(p,e),()=>r(p)),C(()=>{k=F(l,1,"item svelte-1f416ns",null,k,{open:r(o)}),a(n,"aria-expanded",r(o)),a(n,"aria-controls",`accordion-panel-${r(i)??""}`),a(n,"id",`accordion-trigger-${r(i)??""}`),E=F(s,1,"panel svelte-1f416ns",null,E,{open:r(o)}),a(s,"id",`accordion-panel-${r(i)??""}`),a(s,"aria-labelledby",`accordion-trigger-${r(i)??""}`),a(s,"aria-hidden",!r(o))}),v(h,l),L(),q()}G(["keydown","click"]);const __Default = (J(re,{},["header","content","default"],[],{mode:"open"}));
|
|
2
2
|
customElements.define("ui-accordion-item", __Default);
|
|
3
3
|
export default __Default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as P,p as Q,l as x,d as i,g as s,a as T,e as V,t as j,i as _,j as W,m as d,k as
|
|
2
|
-
sans-serif;font-weight:600;background-color:var(--crayon-avatar-bg, #e5e7eb);color:var(--crayon-avatar-color, #374151);}.avatar-root.shape-circle.svelte-1sygndv {border-radius:50%;}.avatar-root.shape-rounded.svelte-1sygndv {border-radius:var(--crayon-avatar-border-radius, 8px);}.avatar-root.size-sm.svelte-1sygndv {width:var(--crayon-avatar-size-sm, 32px);height:var(--crayon-avatar-size-sm, 32px);font-size:var(--crayon-avatar-font-size-sm, 12px);}.avatar-root.size-md.svelte-1sygndv {width:var(--crayon-avatar-size-md, 40px);height:var(--crayon-avatar-size-md, 40px);font-size:var(--crayon-avatar-font-size-md, 14px);}.avatar-root.size-lg.svelte-1sygndv {width:var(--crayon-avatar-size-lg, 56px);height:var(--crayon-avatar-size-lg, 56px);font-size:var(--crayon-avatar-font-size-lg, 18px);}.avatar-root.has-ring.svelte-1sygndv {box-shadow:0 0 0 2px var(--crayon-avatar-ring-color, #fff);outline:2px solid var(--crayon-avatar-ring-border, #e5e7eb);}.avatar-img.svelte-1sygndv {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}.avatar-fallback.svelte-1sygndv {display:flex;align-items:center;justify-content:center;width:100%;height:100%;}.avatar-initials.svelte-1sygndv {display:flex;align-items:center;justify-content:center;line-height:1;user-select:none;}`};function oa(
|
|
1
|
+
import{c as P,p as Q,l as x,d as i,g as s,a as T,e as V,t as j,i as _,j as W,m as d,k as b,b as R,n as o,s as n,r as I,f as B,A as X}from"../../assets/custom-element-BNCemaCE.js";import{i as M}from"../../assets/if-BVwKToaK.js";import{s as Y}from"../../assets/slot-DvkFfIlK.js";import{a as Z,i as $,s as aa,c as ea}from"../../assets/lifecycle-8krACzSO.js";import{s as S}from"../../assets/attributes-D-TnEoSs.js";import{p as l}from"../../assets/props-CFmog5h1.js";var ta=b('<img class="avatar-img svelte-1sygndv"/>'),sa=b('<span class="avatar-initials svelte-1sygndv"> </span>'),ra=b('<span class="avatar-fallback svelte-1sygndv" aria-hidden="true"><!></span>'),na=b('<span role="img"><!> <!></span>');const ia={hash:"svelte-1sygndv",code:`.avatar-root.svelte-1sygndv {position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",\r
|
|
2
|
+
sans-serif;font-weight:600;background-color:var(--crayon-avatar-bg, #e5e7eb);color:var(--crayon-avatar-color, #374151);}.avatar-root.shape-circle.svelte-1sygndv {border-radius:50%;}.avatar-root.shape-rounded.svelte-1sygndv {border-radius:var(--crayon-avatar-border-radius, 8px);}.avatar-root.size-sm.svelte-1sygndv {width:var(--crayon-avatar-size-sm, 32px);height:var(--crayon-avatar-size-sm, 32px);font-size:var(--crayon-avatar-font-size-sm, 12px);}.avatar-root.size-md.svelte-1sygndv {width:var(--crayon-avatar-size-md, 40px);height:var(--crayon-avatar-size-md, 40px);font-size:var(--crayon-avatar-font-size-md, 14px);}.avatar-root.size-lg.svelte-1sygndv {width:var(--crayon-avatar-size-lg, 56px);height:var(--crayon-avatar-size-lg, 56px);font-size:var(--crayon-avatar-font-size-lg, 18px);}.avatar-root.has-ring.svelte-1sygndv {box-shadow:0 0 0 2px var(--crayon-avatar-ring-color, #fff);outline:2px solid var(--crayon-avatar-ring-border, #e5e7eb);}.avatar-img.svelte-1sygndv {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}.avatar-fallback.svelte-1sygndv {display:flex;align-items:center;justify-content:center;width:100%;height:100%;}.avatar-initials.svelte-1sygndv {display:flex;align-items:center;justify-content:center;line-height:1;user-select:none;}`};function oa(A,r){Q(r,!1),Z(A,ia);const E=d(),U=d(),F=d();let t=l(r,"src",12,void 0),f=l(r,"alt",12,""),v=l(r,"name",12,void 0),m=l(r,"size",12,"md"),p=l(r,"shape",12,"circle"),h=l(r,"showRing",12,!1),u=l(r,"extraClass",12,""),c=d(!1),y=d(!1);function q(a){if(!a||!a.trim())return"?";const e=a.trim().split(/\s+/);if(e.length>=2){const w=e[0][0]??"",k=e[e.length-1][0]??"";return(w+k).toUpperCase()}return a.slice(0,2).toUpperCase()}let z=d(void 0);function D(){n(y,!0),n(c,!1)}function G(){n(c,!0)}x(()=>(i(t()),s(z)),()=>{t()!==s(z)&&(n(z,t()),n(y,!1),n(c,!1))}),x(()=>(i(t()),s(c),s(y)),()=>{n(E,!t()||s(c)||t()!=null&&!s(y))}),x(()=>i(v()),()=>{n(U,q(v()))}),x(()=>(i(m()),i(p()),i(h()),i(u())),()=>{n(F,`avatar-root size-${m()} shape-${p()} ${h()?"has-ring":""} ${u()}`.trim())}),T();var H={get src(){return t()},set src(a){t(a),o()},get alt(){return f()},set alt(a){f(a),o()},get name(){return v()},set name(a){v(a),o()},get size(){return m()},set size(a){m(a),o()},get shape(){return p()},set shape(a){p(a),o()},get showRing(){return h()},set showRing(a){h(a),o()},get extraClass(){return u()},set extraClass(a){u(a),o()}};$();var g=na(),L=R(g);{var J=a=>{var e=ta();j(()=>{S(e,"src",t()),S(e,"alt",f()||v()||"")}),B("load",e,D),B("error",e,G),_(a,e)};M(L,a=>{t()&&!s(c)&&a(J)})}var K=V(L,2);{var N=a=>{var e=ra(),w=R(e);Y(w,r,"default",{},k=>{var C=sa(),O=R(C,!0);I(C),j(()=>X(O,s(U))),_(k,C)}),I(e),_(a,e)};M(K,a=>{s(E)&&a(N)})}return I(g),j(()=>{aa(g,1,ea(s(F)),"svelte-1sygndv"),S(g,"aria-label",f()||v()||"Avatar")}),_(A,g),W(H)}const __Default = (P(oa,{src:{},alt:{},name:{},size:{},shape:{},showRing:{},extraClass:{}},["default"],[],{mode:"open"}));
|
|
3
3
|
customElements.define("ui-avatar", __Default);
|
|
4
4
|
export default __Default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as
|
|
1
|
+
import{h as F,c as Q,p as U,l as j,s as R,d as o,g as h,a as X,b as B,e as I,r as H,t as Y,f as $,i as W,j as ee,m as V,k as A,n as r,o as te}from"../../assets/custom-element-BNCemaCE.js";import{i as M}from"../../assets/if-BVwKToaK.js";import{s as T}from"../../assets/slot-DvkFfIlK.js";import{t as re,a as ne,i as oe,s as ae,c as le}from"../../assets/lifecycle-8krACzSO.js";import{s as se}from"../../assets/attributes-D-TnEoSs.js";import{p as n}from"../../assets/props-CFmog5h1.js";function ie(a,t,i,k){var m=a.__style;if(F||m!==t){var l=re(t);(!F||l!==a.getAttribute("style"))&&(l==null?a.removeAttribute("style"):a.style.cssText=l),a.__style=t}return k}var ce=A('<span class="spinner svelte-kv8yyl"></span>'),ve=te('<svg class="btn-icon-svg svelte-kv8yyl" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="12" fill="currentColor" opacity="0.12" class="svelte-kv8yyl"></circle><path d="M12 6.75c.414 0 .75.336.75.75v3.75H16.5a.75.75 0 1 1 0 1.5H12.75V16.5a.75.75 0 1 1-1.5 0v-3.75H7.5a.75.75 0 1 1 0-1.5h3.75V7.5c0-.414.336-.75.75-.75Z" fill="currentColor" class="svelte-kv8yyl"></path></svg>'),de=A('<span class="btn-icon svelte-kv8yyl"><!></span>'),ye=A('<button><!> <span class="btn-content svelte-kv8yyl"><!> <!></span></button>');const ge={hash:"svelte-kv8yyl",code:`:host {display:inline-block;}.btn-inner.svelte-kv8yyl {border:none;border-radius:var(--crayon-radius-md, 10px);cursor:pointer;font-weight:500;transition:all 0.2s ease;display:inline-flex;align-items:center;justify-content:center;}.btn-content.svelte-kv8yyl {display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;}.btn-icon.svelte-kv8yyl {display:inline-flex;align-items:center;justify-content:center;}.btn-icon-svg.svelte-kv8yyl {width:22px;margin-right:8px;}.svelte-kv8yyl::slotted(img) {width:22px;margin-right:8px;}\r
|
|
2
2
|
\r
|
|
3
3
|
/* Shape: pill (full rounded) for icon + text */.shape-pill.svelte-kv8yyl {border-radius:999px;}\r
|
|
4
4
|
\r
|
|
@@ -14,9 +14,14 @@ import{h as A,c as G,p as H,l as C,s as W,d as o,g as f,a as J,b as B,e as K,r a
|
|
|
14
14
|
.shape-pill.lg.svelte-kv8yyl {padding:14px 32px;font-size:16px;}.shape-rectangle.lg.svelte-kv8yyl .btn-content:where(.svelte-kv8yyl),\r
|
|
15
15
|
.shape-pill.lg.svelte-kv8yyl .btn-content:where(.svelte-kv8yyl) {gap:0.5rem;}\r
|
|
16
16
|
\r
|
|
17
|
-
/*
|
|
17
|
+
/* Floating: fixed bottom-right, pill border-radius; position overridable via --crayon-button-floating-* */.btn-inner.is-floating.svelte-kv8yyl {position:fixed;right:var(--crayon-button-floating-right, 40px);bottom:var(--crayon-button-floating-bottom, 20px);border-radius:var(--crayon-button-floating-radius, 999px);padding-left:22px;padding-right:26px;box-shadow:0px 6px 7px -6px #40474bff;box-shadow:var(\r
|
|
18
|
+
--crayon-button-floating-shadow,\r
|
|
19
|
+
0px 6px 7px -6px #40474bff\r
|
|
20
|
+
);}\r
|
|
21
|
+
\r
|
|
22
|
+
/* Variants — respect --crayon-button-custom-bg when set via backgroundColor prop */.primary.svelte-kv8yyl {background:var(--crayon-button-custom-bg, var(--crayon-primary, #474bff));color:var(--crayon-button-bg, #fefeff);}.primary.svelte-kv8yyl:hover {background:var(\r
|
|
18
23
|
--crayon-button-custom-bg-hover,\r
|
|
19
|
-
var(--crayon-primary-hover, #
|
|
24
|
+
var(--crayon-primary-hover, #2b2399)\r
|
|
20
25
|
);color:#fefeff;}.secondary.svelte-kv8yyl {background:var(\r
|
|
21
26
|
--crayon-button-custom-bg,\r
|
|
22
27
|
var(--crayon-secondary, #222121)\r
|
|
@@ -39,6 +44,6 @@ import{h as A,c as G,p as H,l as C,s as W,d as o,g as f,a as J,b as B,e as K,r a
|
|
|
39
44
|
to {\r
|
|
40
45
|
transform: rotate(360deg);\r
|
|
41
46
|
}\r
|
|
42
|
-
}`};function
|
|
47
|
+
}`};function ue(a,t){U(t,!1),ne(a,ge);const i=V(),k=V(),m=V();let l=n(t,"variant",12,"primary"),x=n(t,"size",12,"md"),w=n(t,"shape",12,"rectangle"),_=n(t,"disabled",12,!1),z=n(t,"loading",12,!1),c=n(t,"color",12,void 0),S=n(t,"type",12,"button"),v=n(t,"floating",12,!1),d=n(t,"backgroundColor",12,void 0),y=n(t,"fontSize",12,void 0),g=n(t,"borderRadius",12,void 0),u=n(t,"borderWidth",12,void 0),f=n(t,"fontWeight",12,void 0),b=n(t,"padding",12,void 0),C=n(t,"extraClass",12,"");function Z(e){(_()||z())&&(e.preventDefault(),e.stopImmediatePropagation())}j(()=>(o(c()),o(d()),o(y()),o(g()),o(u()),o(f()),o(b())),()=>{R(i,[c()!=null&&`--crayon-button-bg:${c()}`,d()!=null&&`--crayon-button-custom-bg:${d()}`,y()!=null&&`font-size:${y()}`,g()!=null&&`border-radius:${g()}`,u()!=null&&`border-width:${u()}`,f()!=null&&`font-weight:${f()}`,b()!=null&&`padding:${b()}`].filter(Boolean))}),j(()=>h(i),()=>{R(k,h(i).length>0?h(i).join("; "):void 0)}),j(()=>(o(l()),o(x()),o(w()),o(v()),o(C())),()=>{R(m,`btn-inner ${l()} ${x()} shape-${w()} ${v()?"is-floating":""} ${C()}`.trim())}),X();var q={get variant(){return l()},set variant(e){l(e),r()},get size(){return x()},set size(e){x(e),r()},get shape(){return w()},set shape(e){w(e),r()},get disabled(){return _()},set disabled(e){_(e),r()},get loading(){return z()},set loading(e){z(e),r()},get color(){return c()},set color(e){c(e),r()},get type(){return S()},set type(e){S(e),r()},get floating(){return v()},set floating(e){v(e),r()},get backgroundColor(){return d()},set backgroundColor(e){d(e),r()},get fontSize(){return y()},set fontSize(e){y(e),r()},get borderRadius(){return g()},set borderRadius(e){g(e),r()},get borderWidth(){return u()},set borderWidth(e){u(e),r()},get fontWeight(){return f()},set fontWeight(e){f(e),r()},get padding(){return b()},set padding(e){b(e),r()},get extraClass(){return C()},set extraClass(e){C(e),r()}};oe();var s=ye(),P=B(s);{var G=e=>{var p=ce();W(e,p)};M(P,e=>{z()&&e(G)})}var D=I(P,2),E=B(D);{var J=e=>{var p=de(),L=B(p);T(L,t,"icon",{},N=>{var O=ve();W(N,O)}),H(p),W(e,p)};M(E,e=>{v()&&e(J)})}var K=I(E,2);return T(K,t,"default",{},null),H(D),H(s),Y(()=>{se(s,"type",S()),ae(s,1,le(h(m)),"svelte-kv8yyl"),s.disabled=_(),ie(s,h(k))}),$("click",s,Z),W(a,s),ee(q)}const __Default = (Q(ue,{variant:{},size:{},shape:{},disabled:{},loading:{},color:{},type:{},floating:{},backgroundColor:{},fontSize:{},borderRadius:{},borderWidth:{},fontWeight:{},padding:{},extraClass:{}},["icon","default"],[],{mode:"open"}));
|
|
43
48
|
customElements.define("ui-button", __Default);
|
|
44
49
|
export default __Default;
|
|
@@ -8,6 +8,7 @@ export let disabled = false;
|
|
|
8
8
|
export let loading = false;
|
|
9
9
|
export let color = void 0;
|
|
10
10
|
export let type = "button";
|
|
11
|
+
export let floating = false;
|
|
11
12
|
export let backgroundColor = void 0;
|
|
12
13
|
export let fontSize = void 0;
|
|
13
14
|
export let borderRadius = void 0;
|
|
@@ -25,7 +26,7 @@ $: styleParts = [
|
|
|
25
26
|
padding != null && `padding:${padding}`
|
|
26
27
|
].filter(Boolean);
|
|
27
28
|
$: buttonStyle = styleParts.length > 0 ? styleParts.join("; ") : void 0;
|
|
28
|
-
$: buttonClass = `btn-inner ${variant} ${size} shape-${shape} ${extraClass}`.trim();
|
|
29
|
+
$: buttonClass = `btn-inner ${variant} ${size} shape-${shape} ${floating ? "is-floating" : ""} ${extraClass}`.trim();
|
|
29
30
|
function handleClick(event) {
|
|
30
31
|
if (disabled || loading) {
|
|
31
32
|
event.preventDefault();
|
|
@@ -45,6 +46,24 @@ function handleClick(event) {
|
|
|
45
46
|
<span class="spinner"></span>
|
|
46
47
|
{/if}
|
|
47
48
|
<span class="btn-content">
|
|
49
|
+
{#if floating}
|
|
50
|
+
<span class="btn-icon">
|
|
51
|
+
<slot name="icon">
|
|
52
|
+
<svg
|
|
53
|
+
class="btn-icon-svg"
|
|
54
|
+
viewBox="0 0 24 24"
|
|
55
|
+
aria-hidden="true"
|
|
56
|
+
focusable="false"
|
|
57
|
+
>
|
|
58
|
+
<circle cx="12" cy="12" r="12" fill="currentColor" opacity="0.12" />
|
|
59
|
+
<path
|
|
60
|
+
d="M12 6.75c.414 0 .75.336.75.75v3.75H16.5a.75.75 0 1 1 0 1.5H12.75V16.5a.75.75 0 1 1-1.5 0v-3.75H7.5a.75.75 0 1 1 0-1.5h3.75V7.5c0-.414.336-.75.75-.75Z"
|
|
61
|
+
fill="currentColor"
|
|
62
|
+
/>
|
|
63
|
+
</svg>
|
|
64
|
+
</slot>
|
|
65
|
+
</span>
|
|
66
|
+
{/if}
|
|
48
67
|
<slot />
|
|
49
68
|
</span>
|
|
50
69
|
</button>
|
|
@@ -72,6 +91,22 @@ function handleClick(event) {
|
|
|
72
91
|
gap: 0.5rem;
|
|
73
92
|
}
|
|
74
93
|
|
|
94
|
+
.btn-icon {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.btn-icon-svg {
|
|
101
|
+
width: 22px;
|
|
102
|
+
margin-right: 8px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
::slotted(img) {
|
|
106
|
+
width: 22px;
|
|
107
|
+
margin-right: 8px;
|
|
108
|
+
}
|
|
109
|
+
|
|
75
110
|
/* Shape: pill (full rounded) for icon + text */
|
|
76
111
|
.shape-pill {
|
|
77
112
|
border-radius: 999px;
|
|
@@ -141,16 +176,31 @@ function handleClick(event) {
|
|
|
141
176
|
gap: 0.5rem;
|
|
142
177
|
}
|
|
143
178
|
|
|
179
|
+
/* Floating: fixed bottom-right, pill border-radius; position overridable via --crayon-button-floating-* */
|
|
180
|
+
.btn-inner.is-floating {
|
|
181
|
+
position: fixed;
|
|
182
|
+
right: var(--crayon-button-floating-right, 40px);
|
|
183
|
+
bottom: var(--crayon-button-floating-bottom, 20px);
|
|
184
|
+
border-radius: var(--crayon-button-floating-radius, 999px);
|
|
185
|
+
padding-left: 22px;
|
|
186
|
+
padding-right: 26px;
|
|
187
|
+
box-shadow: 0px 6px 7px -6px #40474bff;
|
|
188
|
+
box-shadow: var(
|
|
189
|
+
--crayon-button-floating-shadow,
|
|
190
|
+
0px 6px 7px -6px #40474bff
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
144
194
|
/* Variants — respect --crayon-button-custom-bg when set via backgroundColor prop */
|
|
145
195
|
.primary {
|
|
146
|
-
background: var(--crayon-button-custom-bg, var(--crayon-primary, #
|
|
196
|
+
background: var(--crayon-button-custom-bg, var(--crayon-primary, #474bff));
|
|
147
197
|
color: var(--crayon-button-bg, #fefeff);
|
|
148
198
|
}
|
|
149
199
|
|
|
150
200
|
.primary:hover {
|
|
151
201
|
background: var(
|
|
152
202
|
--crayon-button-custom-bg-hover,
|
|
153
|
-
var(--crayon-primary-hover, #
|
|
203
|
+
var(--crayon-primary-hover, #2b2399)
|
|
154
204
|
);
|
|
155
205
|
color: #fefeff;
|
|
156
206
|
}
|
|
@@ -8,6 +8,7 @@ declare const __propDef: {
|
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
color?: string | undefined;
|
|
10
10
|
type?: "button" | "submit" | "reset";
|
|
11
|
+
/** When true, positions the button fixed at bottom-right (overridable via CSS). Applies pill border-radius. */ floating?: boolean;
|
|
11
12
|
/** Override background (and text contrast) for variant; e.g. "#10b981" */ backgroundColor?: string | undefined;
|
|
12
13
|
/** Override font size; e.g. "16px", "1rem" */ fontSize?: string | undefined;
|
|
13
14
|
/** Override border radius; e.g. "8px", "999px" */ borderRadius?: string | undefined;
|
|
@@ -20,6 +21,7 @@ declare const __propDef: {
|
|
|
20
21
|
[evt: string]: CustomEvent<any>;
|
|
21
22
|
};
|
|
22
23
|
slots: {
|
|
24
|
+
icon: {};
|
|
23
25
|
default: {};
|
|
24
26
|
};
|
|
25
27
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as G,p as J,g as e,l as K,d as x,a as P,e as m,t as Q,i as W,j as X,s as a,m as t,k as Y,b as d,n as _,r as c}from"../../assets/custom-element-
|
|
1
|
+
import{c as G,p as J,g as e,l as K,d as x,a as P,e as m,t as Q,i as W,j as X,s as a,m as t,k as Y,b as d,n as _,r as c}from"../../assets/custom-element-BNCemaCE.js";import{o as Z}from"../../assets/index-client-BDYmxQqF.js";import{s as i}from"../../assets/slot-DvkFfIlK.js";import{a as $,i as rr,s as l,c as or}from"../../assets/lifecycle-8krACzSO.js";import{b as er}from"../../assets/this-BafLbyG5.js";import{p as k}from"../../assets/props-CFmog5h1.js";var ar=Y('<div><div><!></div> <div><!></div> <div class="card-body svelte-18poi8p"><!></div> <div><!></div> <div><!></div></div>');const tr={hash:"svelte-18poi8p",code:`.card-root.svelte-18poi8p {position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;font-size:var(--crayon-card-font-size, 14px);line-height:1.5;color:var(--crayon-card-color, #212529);background-color:var(--crayon-card-bg, #fff);border:var(--crayon-card-border-width, 1px) solid\r
|
|
2
2
|
var(--crayon-card-border-color, rgba(0, 0, 0, 0.125));border-radius:var(--crayon-card-border-radius, 8px);box-shadow:var(--crayon-card-box-shadow, none);}\r
|
|
3
3
|
\r
|
|
4
4
|
/* Variants: default uses CSS vars above; others set bg + border + color */.card-root.variant-primary.svelte-18poi8p {background-color:var(--crayon-card-primary-bg, #0d6efd);border-color:var(--crayon-card-primary-border, #0d6efd);color:var(--crayon-card-primary-color, #fff);}.card-root.variant-secondary.svelte-18poi8p {background-color:var(--crayon-card-secondary-bg, #6c757d);border-color:var(--crayon-card-secondary-border, #6c757d);color:var(--crayon-card-secondary-color, #fff);}.card-root.variant-success.svelte-18poi8p {background-color:var(--crayon-card-success-bg, #198754);border-color:var(--crayon-card-success-border, #198754);color:var(--crayon-card-success-color, #fff);}.card-root.variant-danger.svelte-18poi8p {background-color:var(--crayon-card-danger-bg, #dc3545);border-color:var(--crayon-card-danger-border, #dc3545);color:var(--crayon-card-danger-color, #fff);}.card-root.variant-warning.svelte-18poi8p {background-color:var(--crayon-card-warning-bg, #ffc107);border-color:var(--crayon-card-warning-border, #ffc107);color:var(--crayon-card-warning-color, #000);}.card-root.variant-info.svelte-18poi8p {background-color:var(--crayon-card-info-bg, #0dcaf0);border-color:var(--crayon-card-info-border, #0dcaf0);color:var(--crayon-card-info-color, #000);}.card-root.variant-light.svelte-18poi8p {background-color:var(--crayon-card-light-bg, #f8f9fa);border-color:var(--crayon-card-light-border, #e9ecef);color:var(--crayon-card-light-color, #212529);}.card-root.variant-dark.svelte-18poi8p {background-color:var(--crayon-card-dark-bg, #212529);border-color:var(--crayon-card-dark-border, #212529);color:var(--crayon-card-dark-color, #fff);}\r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as q,p as G,l as f,d as C,a as N,e as O,t as P,f as U,i as A,j as J,g as r,G as K,k as Q,b as D,n as a,m as
|
|
1
|
+
import{c as q,p as G,l as f,d as C,a as N,e as O,t as P,f as U,i as A,j as J,g as r,G as K,k as Q,b as D,n as a,m as u,s as x,y as T,r as S}from"../../assets/custom-element-BNCemaCE.js";import{o as V}from"../../assets/index-client-BDYmxQqF.js";import{s as W}from"../../assets/slot-DvkFfIlK.js";import{a as X,i as Y,s as Z}from"../../assets/lifecycle-8krACzSO.js";import{r as $,s as m,a as ee,d as re}from"../../assets/attributes-D-TnEoSs.js";import{b as oe}from"../../assets/this-BafLbyG5.js";import{p as t}from"../../assets/props-CFmog5h1.js";var ce=Q('<label><span class="checkbox-control svelte-wckrr7"><input type="checkbox" class="svelte-wckrr7"/> <span class="checkbox-box svelte-wckrr7" aria-hidden="true"></span></span> <span class="checkbox-label svelte-wckrr7"><!></span></label>');const ae={hash:"svelte-wckrr7",code:`.checkbox-root.svelte-wckrr7 {display:inline-flex;align-items:center;gap:0.5rem;font-family:system-ui,\r
|
|
2
2
|
-apple-system,\r
|
|
3
3
|
BlinkMacSystemFont,\r
|
|
4
4
|
"Segoe UI",\r
|
|
@@ -18,6 +18,6 @@ import{c as q,p as G,l as f,d as C,a as N,e as O,t as P,f as U,i as A,j as J,g a
|
|
|
18
18
|
/* Hover + focus ring */.checkbox-root.svelte-wckrr7:not(.is-disabled)\r
|
|
19
19
|
.checkbox-control:where(.svelte-wckrr7)\r
|
|
20
20
|
input:where(.svelte-wckrr7):focus-visible\r
|
|
21
|
-
+ .checkbox-box:where(.svelte-wckrr7) {box-shadow:0 0 0 3px var(--crayon-checkbox-focus-ring, rgba(71, 75, 255, 0.45));}.checkbox-root.is-disabled.svelte-wckrr7 {cursor:not-allowed;color:var(--crayon-checkbox-label-disabled, #9ca3af);}.checkbox-root.is-disabled.svelte-wckrr7 .checkbox-box:where(.svelte-wckrr7) {border-color:var(--crayon-checkbox-border-disabled, #bdbdbc);background-color:var(--crayon-checkbox-bg-disabled, #e5e7eb);}.checkbox-label.svelte-wckrr7:empty {display:none;}`};function te(E,o){G(o,!1),X(E,ae);const d=
|
|
21
|
+
+ .checkbox-box:where(.svelte-wckrr7) {box-shadow:0 0 0 3px var(--crayon-checkbox-focus-ring, rgba(71, 75, 255, 0.45));}.checkbox-root.is-disabled.svelte-wckrr7 {cursor:not-allowed;color:var(--crayon-checkbox-label-disabled, #9ca3af);}.checkbox-root.is-disabled.svelte-wckrr7 .checkbox-box:where(.svelte-wckrr7) {border-color:var(--crayon-checkbox-border-disabled, #bdbdbc);background-color:var(--crayon-checkbox-bg-disabled, #e5e7eb);}.checkbox-label.svelte-wckrr7:empty {display:none;}`};function te(E,o){G(o,!1),X(E,ae);const d=u(),v=u(),s=u();let i=t(o,"checked",12,!1),h=t(o,"disabled",12,!1),l=t(o,"indeterminate",12,!1),p=t(o,"name",12,void 0),y=t(o,"value",12,void 0),g=t(o,"ariaLabel",12,void 0),w=t(o,"ariaDescribedby",12,void 0),_=t(o,"onchange",12,void 0);function z(e){return typeof e=="boolean"?e:e==null?!1:String(e).toLowerCase()==="true"}let b=u();function F(e){const n=e.getRootNode();return n instanceof ShadowRoot?n.host:null}function L(){r(b)&&K(b,r(b).indeterminate=r(s))}V(L);function H(e){const n=e.target;i(n.checked),r(s)&&(l(!1),L());const I={checked:n.checked,indeterminate:!1};_()?.(I),F(n)?.dispatchEvent(new CustomEvent("change",{detail:I,bubbles:!0}))}f(()=>C(i()),()=>{x(d,z(i()))}),f(()=>C(h()),()=>{x(v,z(h()))}),f(()=>C(l()),()=>{x(s,z(l()))}),f(()=>{},()=>{L()}),N();var M={get checked(){return i()},set checked(e){i(e),a()},get disabled(){return h()},set disabled(e){h(e),a()},get indeterminate(){return l()},set indeterminate(e){l(e),a()},get name(){return p()},set name(e){p(e),a()},get value(){return y()},set value(e){y(e),a()},get ariaLabel(){return g()},set ariaLabel(e){g(e),a()},get ariaDescribedby(){return w()},set ariaDescribedby(e){w(e),a()},get onchange(){return _()},set onchange(e){_(e),a()}};Y();var k=ce(),B=D(k),c=D(B);$(c),oe(c,e=>x(b,e),()=>r(b)),T(2),S(B);var j=O(B,2),R=D(j);return W(R,o,"default",{},null),S(j),S(k),P(()=>{Z(k,1,`checkbox-root ${r(d)?"is-checked":""} ${r(s)?"is-indeterminate":""} ${r(v)?"is-disabled":""}`,"svelte-wckrr7"),m(c,"name",p()),ee(c,y()),re(c,r(d)),c.disabled=r(v),m(c,"aria-label",g()),m(c,"aria-describedby",w()),m(c,"aria-checked",r(s)?"mixed":r(d)?"true":"false")}),U("change",c,H),A(E,k),J(M)}const __Default = (q(te,{checked:{},disabled:{},indeterminate:{},name:{},value:{},ariaLabel:{},ariaDescribedby:{},onchange:{}},["default"],[],{mode:"open"}));
|
|
22
22
|
customElements.define("ui-checkbox", __Default);
|
|
23
23
|
export default __Default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as S,p as D,t as E,f as k,i as F,j as R,k as j,b as B,n as o,r as H,g as m,s as I,m as M}from"../../assets/custom-element-
|
|
1
|
+
import{c as S,p as D,t as E,f as k,i as F,j as R,k as j,b as B,n as o,r as H,g as m,s as I,m as M}from"../../assets/custom-element-BNCemaCE.js";import{s as N}from"../../assets/slot-DvkFfIlK.js";import{a as U,i as q,s as z}from"../../assets/lifecycle-8krACzSO.js";import{s as r}from"../../assets/attributes-D-TnEoSs.js";import{b as A}from"../../assets/this-BafLbyG5.js";import{p as n}from"../../assets/props-CFmog5h1.js";var G=j("<form><!></form>");const J={hash:"svelte-1a6csuh",code:`.form-root.svelte-1a6csuh {display:block;font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
2
2
|
sans-serif;}`};function K(y,a){D(a,!1),U(y,J);let l=n(a,"action",12,void 0),i=n(a,"method",12,"get"),u=n(a,"enctype",12,"application/x-www-form-urlencoded"),c=n(a,"target",12,void 0),f=n(a,"name",12,void 0),d=n(a,"autocomplete",12,void 0),g=n(a,"noValidate",12,!1),h=n(a,"extraClass",12,""),p=n(a,"onsubmit",12,void 0),s=M();function x(t){const b=t.getRootNode();return b instanceof ShadowRoot?b.host:null}function w(t){if(!m(s))return;t.preventDefault();const v={formData:new FormData(m(s)),form:m(s)};p()?.(v);const _=x(m(s));_&&_.dispatchEvent(new CustomEvent("submit",{detail:v,bubbles:!0,cancelable:!0}))}var C={get action(){return l()},set action(t){l(t),o()},get method(){return i()},set method(t){i(t),o()},get enctype(){return u()},set enctype(t){u(t),o()},get target(){return c()},set target(t){c(t),o()},get name(){return f()},set name(t){f(t),o()},get autocomplete(){return d()},set autocomplete(t){d(t),o()},get noValidate(){return g()},set noValidate(t){g(t),o()},get extraClass(){return h()},set extraClass(t){h(t),o()},get onsubmit(){return p()},set onsubmit(t){p(t),o()}};q();var e=G(),V=B(e);return N(V,a,"default",{},null),H(e),A(e,t=>I(s,t),()=>m(s)),E(()=>{z(e,1,`form-root ${h()??""}`,"svelte-1a6csuh"),r(e,"action",l()),r(e,"method",i()),r(e,"enctype",u()),r(e,"target",c()),r(e,"name",f()),r(e,"autocomplete",d()),e.noValidate=g()}),k("submit",e,w),F(y,e),R(C)}const __Default = (S(K,{action:{},method:{},enctype:{},target:{},name:{},autocomplete:{},noValidate:{},extraClass:{},onsubmit:{}},["default"],[],{mode:"open"}));
|
|
3
3
|
customElements.define("ui-form", __Default);
|
|
4
4
|
export default __Default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as he,D as ye,E as xe,F as we,
|
|
1
|
+
import{C as he,D as ye,E as xe,F as we,q as Ee,c as Oe,p as ke,g as t,l as re,d as M,a as Se,e as q,t as h,z as f,i as b,j as Te,m as I,s as P,k as _,b as g,n as u,G as Ne,r as p,A as O,x as ae,H as Le}from"../../assets/custom-element-BNCemaCE.js";import{o as qe}from"../../assets/index-client-BDYmxQqF.js";import{i as D}from"../../assets/if-BVwKToaK.js";import{e as ne,i as oe}from"../../assets/each-C4IlkX_B.js";import{s as De}from"../../assets/slot-DvkFfIlK.js";import{a as Ae,i as Ce,s as Fe,c as Me}from"../../assets/lifecycle-8krACzSO.js";import{s as k,c as Ie}from"../../assets/attributes-D-TnEoSs.js";import{b as se}from"../../assets/this-BafLbyG5.js";import{p as v}from"../../assets/props-CFmog5h1.js";function ie(c,n,S=!1){if(c.multiple){if(n==null)return;if(!ye(n))return xe();for(var i of c.options)i.selected=n.includes(le(i));return}for(i of c.options){var T=le(i);if(we(T,n)){i.selected=!0;return}}(!S||n!==void 0)&&(c.selectedIndex=-1)}function Pe(c){var n=new MutationObserver(()=>{ie(c,c.__value)});n.observe(c,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),he(()=>{n.disconnect()})}function le(c){return"__value"in c?c.__value:c.value}var Re=_('<label class="form-select-label svelte-tlzzzs"> </label>'),Ge=_('<option disabled="" hidden=""> </option>'),je=_("<option> </option>"),He=_("<!> <!>",1),Ue=_('<option disabled="" hidden=""> </option>'),Be=_("<option> </option>"),We=_("<!> <!>",1),Je=_('<p class="form-select-hint svelte-tlzzzs"> </p>'),Ke=_('<div class="form-select-wrapper svelte-tlzzzs"><!> <select><!></select> <!> <div class="form-select-options-slot svelte-tlzzzs"><!></div></div>');const Qe={hash:"svelte-tlzzzs",code:`.form-select-wrapper.svelte-tlzzzs {display:block;}.form-select-label.svelte-tlzzzs {display:block;margin-bottom:0.375rem;font-size:var(--crayon-label-font-size, 0.875rem);font-weight:500;color:var(--crayon-label-color, #212529);}.form-select-hint.svelte-tlzzzs {margin:0.375rem 0 0;font-size:var(--crayon-hint-font-size, 0.8125rem);color:var(--crayon-hint-color, #6c757d);}.form-select-options-slot.svelte-tlzzzs {display:none;}select.svelte-tlzzzs {display:block;width:100%;padding:var(--crayon-select-padding-y, 0.375rem)\r
|
|
2
2
|
var(--crayon-select-indicator-padding, 2.25rem)\r
|
|
3
3
|
var(--crayon-select-padding-y, 0.375rem) var(--crayon-select-padding-x, 0.75rem);font-family:inherit;font-size:var(--crayon-select-font-size, 1rem);font-weight:400;line-height:1.5;color:var(--crayon-input-color, #212529);background-color:var(--crayon-input-bg, #fff);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 0.75rem center;background-size:16px 12px;border:var(--crayon-input-border-width, 1px) solid\r
|
|
4
4
|
var(--crayon-input-border-color, #dee2e6);border-radius:var(--crayon-input-border-radius, 0.375rem);box-shadow:var(\r
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as i,p as v,
|
|
1
|
+
import{c as i,p,w as v,x as b,i as m,j as x,n as a,B as _,t as g,A as h}from"../../assets/custom-element-BNCemaCE.js";import{s as S}from"../../assets/slot-DvkFfIlK.js";import{p as s}from"../../assets/props-CFmog5h1.js";function j(c,t){p(t,!1);let r=s(t,"value",12,""),n=s(t,"selected",12,!1),l=s(t,"label",12,void 0);var f={get value(){return r()},set value(e){r(e),a()},get selected(){return n()},set selected(e){n(e),a()},get label(){return l()},set label(e){l(e),a()}},o=v(),d=b(o);return S(d,t,"default",{},e=>{var u=_();g(()=>h(u,l())),m(e,u)}),m(c,o),x(f)}const __Default = (i(j,{value:{},selected:{},label:{}},["default"],[],{mode:"open"}));
|
|
2
2
|
customElements.define("ui-form-select-option", __Default);
|
|
3
3
|
export default __Default;
|