@wc-kit/core 0.0.2 → 0.0.3

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/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("lit"),s=require("lit/decorators.js"),Vr=require("lit/directives/unsafe-svg.js"),l=i.css`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("lit"),i=require("lit/decorators.js"),no=require("lit/directives/unsafe-svg.js"),d=n.css`
2
2
  *,
3
3
  *::before,
4
4
  *::after {
@@ -26,7 +26,76 @@
26
26
  :focus:not(:focus-visible) {
27
27
  outline: none;
28
28
  }
29
- `,Ur=i.css`
29
+ `,dt=new Map,pt=new Map,ot=new Map,st=new Set;function gr(a){return st.add(a),()=>st.delete(a)}function br(){for(const a of[...st])a()}function fr(a,e){dt.set(a,e),br()}function lo(a){return dt.get(a)}function xr(a,e){pt.set(a,e),br()}function co(a){return pt.get(a)}function o(a,e,t="0 0 24 24"){return{name:a,svg:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${t}" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${e}</svg>`}}xr("default",{resolver:a=>dt.get(a)??""});async function kr(a,e){const t=pt.get(a);if(!t)return"";const l=`${a}:${e}`;let r=ot.get(l);r||(r=Promise.resolve(t.resolver(e)).catch(c=>""),ot.set(l,r));const s=await r;if(!s)return ot.delete(l),"";if(t.mutator&&typeof DOMParser<"u"){const p=new DOMParser().parseFromString(s,"text/html").querySelector("svg");if(p)return t.mutator(p),p.outerHTML}return s}const po=n.css`
30
+ :host {
31
+ display: inline-flex;
32
+ /*
33
+ * 覆盖 baseStyles 的 :host { color: var(--wc-color-text) }——组件自身 :host
34
+ * 声明的优先级高于继承,不改为 inherit 的话,图标放进实色按钮等深色上下文
35
+ * 时会被强制成文字色而非跟随 currentColor(currentColor → stroke 继承链断裂)。
36
+ */
37
+ color: inherit;
38
+ /* 尺寸默认 1em,跟随 font-size 缩放;颜色继承 currentColor */
39
+ width: 1em;
40
+ height: 1em;
41
+ flex-shrink: 0;
42
+ line-height: 1;
43
+ }
44
+
45
+ [part='base'] {
46
+ display: flex;
47
+ width: 100%;
48
+ height: 100%;
49
+ align-items: center;
50
+ justify-content: center;
51
+ }
52
+
53
+ svg {
54
+ display: block;
55
+ width: 100%;
56
+ height: 100%;
57
+ /* 不设 fill:描边图标由 SVG 根的 fill="none" 决定(CSS 会覆盖 presentation attribute,
58
+ 设 fill: currentColor 会把闭合形状整体填充导致发糊);填充型图标由各自 SVG 声明。
59
+ 颜色统一走 color → stroke="currentColor" 继承。 */
60
+ color: currentColor;
61
+ pointer-events: none;
62
+ }
63
+
64
+ :host([spin]) svg,
65
+ :host([pulse]) svg {
66
+ transform-origin: center;
67
+ animation: wc-spin var(--wc-duration-slow, 1s) linear infinite;
68
+ }
69
+
70
+ /* pulse:旋转 + 缓动呼吸感,用于加载中区分度更高的场景 */
71
+ :host([pulse]) svg {
72
+ animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
73
+ }
74
+
75
+ @keyframes wc-spin {
76
+ from {
77
+ rotate: 0deg;
78
+ }
79
+ to {
80
+ rotate: 360deg;
81
+ }
82
+ }
83
+
84
+ @media (prefers-reduced-motion: reduce) {
85
+ :host([spin]) svg,
86
+ :host([pulse]) svg {
87
+ animation: none;
88
+ }
89
+ }
90
+ `;var ho=Object.defineProperty,pe=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&ho(e,t,r),r};const gt=class gt extends n.LitElement{constructor(){super(...arguments),this.name="",this.src="",this.library="default",this.label="",this.spin=!1,this.pulse=!1,this.svg="",this.requestId=0}willUpdate(e){(e.has("src")||e.has("name")||e.has("library"))&&this.loadIcon()}disconnectedCallback(){this.unwatchRegister?.()}async loadIcon(){this.unwatchRegister?.(),this.unwatchRegister=void 0;const e=++this.requestId,t=this.name&&!this.src?gr(()=>{this.loadIcon()}):null;let l="";if(this.src?l=await this.fetchSrc(this.src):this.name&&(l=await kr(this.library,this.name)),e!==this.requestId){t?.();return}l||!t?t?.():this.unwatchRegister=t,this.svg=l}async fetchSrc(e){if(typeof fetch!="function")return"";try{const t=await fetch(e);return t.ok?await t.text():""}catch{return""}}render(){return n.html`
91
+ <span
92
+ part="base"
93
+ role=${this.label?"img":"presentation"}
94
+ aria-label=${this.label||n.nothing}
95
+ aria-hidden=${this.label?n.nothing:"true"}
96
+ >${this.svg?no.unsafeSVG(this.svg):n.nothing}</span
97
+ >
98
+ `}};gt.styles=[d,po];let M=gt;pe([i.property()],M.prototype,"name");pe([i.property()],M.prototype,"src");pe([i.property()],M.prototype,"library");pe([i.property()],M.prototype,"label");pe([i.property({type:Boolean,reflect:!0})],M.prototype,"spin");pe([i.property({type:Boolean,reflect:!0})],M.prototype,"pulse");pe([i.state()],M.prototype,"svg");customElements.get("wc-icon")||customElements.define("wc-icon",M);const uo=n.css`
30
99
  :host {
31
100
  display: inline-block;
32
101
  /* component 层令牌:引用 semantic 层,允许按实例覆盖 */
@@ -54,6 +123,9 @@
54
123
  }
55
124
 
56
125
  .button {
126
+ /* 波纹 span 需按按钮定位且裁剪在圆角内;outline 聚焦环不受 overflow 影响 */
127
+ position: relative;
128
+ overflow: hidden;
57
129
  display: inline-flex;
58
130
  align-items: center;
59
131
  justify-content: center;
@@ -74,10 +146,34 @@
74
146
  color var(--wc-duration-fast) var(--wc-easing-standard);
75
147
  }
76
148
 
149
+ /* 聚焦环 offset 可被外层上下文覆写(如 button-group 内改为 -2px 内嵌,
150
+ 避免光环叠在相邻按钮上);同名规则晚于 baseStyles 生效 */
151
+ :focus-visible {
152
+ outline-offset: var(--wc-button-focus-ring-offset, 2px);
153
+ }
154
+
77
155
  .button:disabled {
78
156
  cursor: not-allowed;
79
157
  }
80
158
 
159
+ /*
160
+ * 图标容器必须显式 flex 居中:默认 inline 的 span 内部按行内盒基线摆放
161
+ * inline-flex 图标,基线取图标底边,行盒被字体 descent 撑高 → 图标偏移 1-2px。
162
+ * z-index: 1 保证内容在波纹之上。
163
+ */
164
+ .icon {
165
+ position: relative;
166
+ z-index: 1;
167
+ display: flex;
168
+ align-items: center;
169
+ justify-content: center;
170
+ }
171
+
172
+ .content {
173
+ position: relative;
174
+ z-index: 1;
175
+ }
176
+
81
177
  .icon[hidden] {
82
178
  display: none;
83
179
  }
@@ -111,78 +207,144 @@
111
207
  }
112
208
 
113
209
  /* ---- theme: default ---- */
114
- :host([variant='base']) .button {
210
+ :host([type='base']) .button {
115
211
  background-color: var(--wc-color-bg-container);
116
212
  border-color: var(--wc-color-border);
117
213
  color: var(--wc-color-text);
118
214
  }
119
- :host([theme='default'][variant='base']) .button:hover:not(:disabled) {
215
+ :host([theme='default'][type='base']) .button:hover:not(:disabled) {
120
216
  border-color: var(--wc-button-theme-color);
121
217
  color: var(--wc-button-theme-color);
122
218
  }
123
219
 
124
220
  /* ---- theme: primary / success / warning / danger 的 base 变体:实色底 ---- */
125
- :host([theme='primary'][variant='base']) .button,
126
- :host([theme='success'][variant='base']) .button,
127
- :host([theme='warning'][variant='base']) .button,
128
- :host([theme='danger'][variant='base']) .button {
221
+ :host([theme='primary'][type='base']) .button,
222
+ :host([theme='success'][type='base']) .button,
223
+ :host([theme='warning'][type='base']) .button,
224
+ :host([theme='danger'][type='base']) .button {
129
225
  background-color: var(--wc-button-theme-color);
130
226
  border-color: var(--wc-button-theme-color);
131
227
  color: var(--wc-color-text-anti);
132
228
  }
133
- :host([theme='primary'][variant='base']) .button:hover:not(:disabled),
134
- :host([theme='success'][variant='base']) .button:hover:not(:disabled),
135
- :host([theme='warning'][variant='base']) .button:hover:not(:disabled),
136
- :host([theme='danger'][variant='base']) .button:hover:not(:disabled) {
229
+ :host([theme='primary'][type='base']) .button:hover:not(:disabled),
230
+ :host([theme='success'][type='base']) .button:hover:not(:disabled),
231
+ :host([theme='warning'][type='base']) .button:hover:not(:disabled),
232
+ :host([theme='danger'][type='base']) .button:hover:not(:disabled) {
137
233
  background-color: var(--wc-button-theme-hover);
138
234
  border-color: var(--wc-button-theme-hover);
139
235
  color: var(--wc-color-text-anti);
140
236
  }
141
- :host([theme='primary'][variant='base']) .button:active:not(:disabled),
142
- :host([theme='success'][variant='base']) .button:active:not(:disabled),
143
- :host([theme='warning'][variant='base']) .button:active:not(:disabled),
144
- :host([theme='danger'][variant='base']) .button:active:not(:disabled) {
237
+ :host([theme='primary'][type='base']) .button:active:not(:disabled),
238
+ :host([theme='success'][type='base']) .button:active:not(:disabled),
239
+ :host([theme='warning'][type='base']) .button:active:not(:disabled),
240
+ :host([theme='danger'][type='base']) .button:active:not(:disabled) {
145
241
  background-color: var(--wc-button-theme-active);
146
242
  border-color: var(--wc-button-theme-active);
147
243
  color: var(--wc-color-text-anti);
148
244
  }
149
245
 
150
- /* ---- variant: outline / dashed(继承 theme 色) ---- */
151
- :host([variant='outline']) .button,
152
- :host([variant='dashed']) .button {
246
+ /* ---- type: outline / dashed(继承 theme 色) ---- */
247
+ :host([type='outline']) .button,
248
+ :host([type='dashed']) .button {
153
249
  background-color: transparent;
154
250
  border-color: var(--wc-button-theme-color);
155
251
  color: var(--wc-button-theme-color);
156
252
  }
157
- :host([variant='dashed']) .button {
253
+ :host([type='dashed']) .button {
158
254
  border-style: dashed;
159
255
  }
160
- :host([variant='outline']) .button:hover:not(:disabled),
161
- :host([variant='dashed']) .button:hover:not(:disabled) {
256
+ :host([type='outline']) .button:hover:not(:disabled),
257
+ :host([type='dashed']) .button:hover:not(:disabled) {
162
258
  background-color: var(--wc-button-theme-hover);
163
259
  border-color: var(--wc-button-theme-hover);
164
260
  color: var(--wc-color-text-anti);
165
261
  }
166
262
 
167
- /* ---- variant: text ---- */
168
- :host([variant='text']) .button {
263
+ /* ---- type: text ---- */
264
+ :host([type='text']) .button {
169
265
  background-color: transparent;
170
266
  border-color: transparent;
171
267
  color: var(--wc-button-theme-color);
172
268
  }
173
- :host([variant='text']) .button:hover:not(:disabled) {
269
+ :host([type='text']) .button:hover:not(:disabled) {
174
270
  background-color: var(--wc-color-bg);
175
271
  }
176
272
 
177
- /* ---- variant: link ---- */
178
- :host([variant='link']) .button {
273
+ /* ---- type: link ---- */
274
+ :host([type='link']) .button {
179
275
  background-color: transparent;
180
276
  border-color: transparent;
181
277
  color: var(--wc-button-theme-color);
182
278
  }
183
- :host([variant='link']) .button:hover:not(:disabled) {
279
+ :host([type='link']) .button:hover:not(:disabled) {
184
280
  color: var(--wc-button-theme-hover);
185
- text-decoration: underline;
281
+ }
282
+
283
+ /* ---- ghost 幽灵模式(透明底 + 主题色边框/文字,用于深色背景) ----
284
+ base 变体换透明底;outline/dashed 本就透明,仅把悬停实色填充换成半透明淡底;
285
+ :not 链保证禁用态不受影响 */
286
+ :host([ghost][type='base']:not([disabled]):not([loading])) .button {
287
+ background-color: transparent;
288
+ border-color: var(--wc-button-theme-color);
289
+ color: var(--wc-button-theme-color);
290
+ }
291
+ :host([ghost][type='base']:not([disabled]):not([loading])) .button:hover:not(:disabled),
292
+ :host([ghost][type='outline']:not([disabled]):not([loading])) .button:hover:not(:disabled),
293
+ :host([ghost][type='dashed']:not([disabled]):not([loading])) .button:hover:not(:disabled) {
294
+ background-color: var(
295
+ --wc-button-ghost-hover-bg,
296
+ color-mix(in srgb, var(--wc-button-theme-color) 12%, transparent)
297
+ );
298
+ border-color: var(--wc-button-theme-color);
299
+ color: var(--wc-button-theme-color);
300
+ }
301
+
302
+ /* ---- gradient 渐变底(仅 base 变体且非 default 主题) ----
303
+ 主题色与 hover 色明度相差太小(肉眼近似纯色),端点改用 color-mix 混白提亮
304
+ 拉开对比;background-image 不可 transition,与 antd 一致不做渐变过渡 */
305
+ :host([gradient][type='base']:not([theme='default']):not([disabled]):not([loading])) .button {
306
+ background-image: linear-gradient(
307
+ 135deg,
308
+ color-mix(in srgb, var(--wc-button-theme-color) 65%, #fff),
309
+ var(--wc-button-theme-color)
310
+ );
311
+ }
312
+ :host([gradient][type='base']:not([theme='default']):not([disabled]):not([loading]))
313
+ .button:hover:not(:disabled) {
314
+ background-image: linear-gradient(
315
+ 135deg,
316
+ color-mix(in srgb, var(--wc-button-theme-hover) 65%, #fff),
317
+ var(--wc-button-theme-hover)
318
+ );
319
+ }
320
+
321
+ /* ---- ripple 点击波纹(span.ripple 由 handleClick 动态插入) ---- */
322
+ .ripple {
323
+ position: absolute;
324
+ z-index: 0;
325
+ border-radius: 50%;
326
+ pointer-events: none;
327
+ background-color: var(
328
+ --wc-button-ripple-color,
329
+ color-mix(in srgb, currentColor 45%, transparent)
330
+ );
331
+ transform: scale(0);
332
+ opacity: 0.6;
333
+ animation: wc-ripple var(--wc-button-ripple-duration, 600ms) var(--wc-easing-standard) forwards;
334
+ }
335
+
336
+ @keyframes wc-ripple {
337
+ to {
338
+ transform: scale(1);
339
+ opacity: 0;
340
+ }
341
+ }
342
+
343
+ /* 减弱动态效果:不渲染波纹动画(span 停留在 scale(0) 不可见) */
344
+ @media (prefers-reduced-motion: reduce) {
345
+ .ripple {
346
+ animation: none;
347
+ }
186
348
  }
187
349
 
188
350
  /* ---- 禁用态 ---- */
@@ -196,14 +358,15 @@
196
358
  .button[aria-busy='true'] .content {
197
359
  opacity: 0.7;
198
360
  }
199
- `;var Yr=Object.defineProperty,oe=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Yr(e,t,r),r};const nt=class nt extends i.LitElement{constructor(){super(...arguments),this.theme="default",this.variant="base",this.size="medium",this.iconPosition="start",this.block=!1,this.disabled=!1,this.loading=!1,this._hasIcon=!1,this._hasText=!1}handleClick(e){this.loading&&(e.preventDefault(),e.stopImmediatePropagation())}render(){const e=i.html`<span class="icon" part="icon" ?hidden=${!this._hasIcon}>
200
- <slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
201
- </span>`,t=i.html`<span class="content" part="content"
361
+ `;var vo=Object.defineProperty,I=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&vo(e,t,r),r};const bt=class bt extends n.LitElement{constructor(){super(...arguments),this.theme="default",this.type="base",this.htmlType="button",this.size="medium",this.iconPosition="start",this.block=!1,this.disabled=!1,this.loading=!1,this.ghost=!1,this.gradient=!1,this.ripple=!1,this._hasIcon=!1,this._hasText=!1}handleClick(e){if(this.loading){e.preventDefault(),e.stopImmediatePropagation();return}this.ripple&&this._spawnRipple(e)}_spawnRipple(e){const t=this.shadowRoot.querySelector(".button");if(!t)return;const l=t.getBoundingClientRect(),r=Math.max(l.width,l.height)*2,s=e.clientX||l.left+l.width/2,c=e.clientY||l.top+l.height/2,p=document.createElement("span");p.className="ripple",p.style.width=`${r}px`,p.style.height=`${r}px`,p.style.left=`${s-l.left-r/2}px`,p.style.top=`${c-l.top-r/2}px`,p.addEventListener("animationend",()=>p.remove()),t.appendChild(p)}render(){const e=n.html`<span class="icon" part="icon" ?hidden=${!this._hasIcon&&!this.loading}>
362
+ ${this.loading?n.html`<wc-icon class="spinner" name="loader" spin></wc-icon>`:n.html`<slot name="icon" @slotchange=${this._onIconSlotChange}></slot>`}
363
+ </span>`,t=n.html`<span class="content" part="content"
202
364
  ><slot @slotchange=${this._onTextSlotChange}></slot
203
- ></span>`;return i.html`
365
+ ></span>`;return n.html`
204
366
  <button
205
367
  part="base"
206
368
  class="button"
369
+ type=${this.htmlType}
207
370
  ?disabled=${this.disabled||this.loading}
208
371
  aria-disabled=${this.disabled||this.loading}
209
372
  aria-busy=${this.loading}
@@ -211,7 +374,7 @@
211
374
  >
212
375
  ${this.iconPosition==="end"?[t,e]:[e,t]}
213
376
  </button>
214
- `}_onIconSlotChange(e){this._hasIcon=e.target.assignedElements({flatten:!0}).length>0,this._syncIconOnly(),this.requestUpdate()}_onTextSlotChange(e){const t=e.target.assignedNodes({flatten:!0});this._hasText=t.some(n=>(n.textContent??"").trim().length>0),this._syncIconOnly(),this.requestUpdate()}_syncIconOnly(){this.classList.toggle("wc-button--icon-only",this._hasIcon&&!this._hasText)}};nt.styles=[l,Ur];let k=nt;oe([s.property({reflect:!0})],k.prototype,"theme");oe([s.property({reflect:!0})],k.prototype,"variant");oe([s.property({reflect:!0})],k.prototype,"size");oe([s.property({reflect:!0,attribute:"icon-position"})],k.prototype,"iconPosition");oe([s.property({type:Boolean,reflect:!0})],k.prototype,"block");oe([s.property({type:Boolean,reflect:!0})],k.prototype,"disabled");oe([s.property({type:Boolean,reflect:!0})],k.prototype,"loading");customElements.get("wc-button")||customElements.define("wc-button",k);const Hr=i.css`
377
+ `}_onIconSlotChange(e){this._hasIcon=e.target.assignedElements({flatten:!0}).length>0,this._syncIconOnly(),this.requestUpdate()}_onTextSlotChange(e){const t=e.target.assignedNodes({flatten:!0});this._hasText=t.some(l=>(l.textContent??"").trim().length>0),this._syncIconOnly(),this.requestUpdate()}_syncIconOnly(){this.classList.toggle("wc-button--icon-only",this._hasIcon&&!this._hasText)}};bt.styles=[d,uo];let w=bt;I([i.property({reflect:!0})],w.prototype,"theme");I([i.property({reflect:!0})],w.prototype,"type");I([i.property({reflect:!0,attribute:"html-type"})],w.prototype,"htmlType");I([i.property({reflect:!0})],w.prototype,"size");I([i.property({reflect:!0,attribute:"icon-position"})],w.prototype,"iconPosition");I([i.property({type:Boolean,reflect:!0})],w.prototype,"block");I([i.property({type:Boolean,reflect:!0})],w.prototype,"disabled");I([i.property({type:Boolean,reflect:!0})],w.prototype,"loading");I([i.property({type:Boolean,reflect:!0})],w.prototype,"ghost");I([i.property({type:Boolean,reflect:!0})],w.prototype,"gradient");I([i.property({type:Boolean,reflect:!0})],w.prototype,"ripple");customElements.get("wc-button")||customElements.define("wc-button",w);const yo=n.css`
215
378
  :host {
216
379
  display: inline-block;
217
380
 
@@ -232,13 +395,12 @@
232
395
  */
233
396
  ::slotted(wc-button) {
234
397
  --wc-button-radius: 0;
398
+ /* 聚焦环内嵌:光环画在按钮边缘内侧,避免叠在相邻按钮上造成割裂感 */
399
+ --wc-button-focus-ring-offset: -2px;
235
400
  position: relative;
236
401
  }
237
402
 
238
- /* 相邻边框合并:后一个左移 1px 压在前一个边框上 */
239
- ::slotted(wc-button:not(:first-child)) {
240
- margin-left: -1px;
241
- }
403
+ /* 边距合并由组件用内联样式实现(见 _syncMargins),CSS 声明会被外层 reset 压过 */
242
404
 
243
405
  /* 悬停/聚焦的上层按钮边框完整可见 */
244
406
  ::slotted(wc-button:hover),
@@ -257,70 +419,9 @@
257
419
  ::slotted(wc-button:only-child) {
258
420
  --wc-button-radius: var(--wc-button-group-radius);
259
421
  }
260
- `,ct=class ct extends i.LitElement{render(){return i.html`<div class="group" part="base"><slot></slot></div>`}};ct.styles=[l,Hr];let Oe=ct;customElements.get("wc-button-group")||customElements.define("wc-button-group",Oe);const et=new Map,tt=new Map,Ke=new Map,Ge=new Set;function tr(o){return Ge.add(o),()=>Ge.delete(o)}function rr(){for(const o of[...Ge])o()}function or(o,e){et.set(o,e),rr()}function Kr(o){return et.get(o)}function ar(o,e){tt.set(o,e),rr()}function Wr(o){return tt.get(o)}function d(o,e,t="0 0 24 24"){return{name:o,svg:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${t}" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${e}</svg>`}}ar("default",{resolver:o=>et.get(o)??""});async function sr(o,e){const t=tt.get(o);if(!t)return"";const n=`${o}:${e}`;let r=Ke.get(n);r||(r=Promise.resolve(t.resolver(e)).catch(c=>""),Ke.set(n,r));const a=await r;if(!a)return Ke.delete(n),"";if(t.mutator&&typeof DOMParser<"u"){const u=new DOMParser().parseFromString(a,"text/html").querySelector("svg");if(u)return t.mutator(u),u.outerHTML}return a}const Xr=i.css`
261
- :host {
262
- display: inline-flex;
263
- /* 尺寸默认 1em,跟随 font-size 缩放;颜色继承 currentColor */
264
- width: 1em;
265
- height: 1em;
266
- flex-shrink: 0;
267
- line-height: 1;
268
- }
269
-
270
- [part='base'] {
271
- display: flex;
272
- width: 100%;
273
- height: 100%;
274
- align-items: center;
275
- justify-content: center;
276
- }
277
-
278
- svg {
279
- display: block;
280
- width: 100%;
281
- height: 100%;
282
- /* 不设 fill:描边图标由 SVG 根的 fill="none" 决定(CSS 会覆盖 presentation attribute,
283
- 设 fill: currentColor 会把闭合形状整体填充导致发糊);填充型图标由各自 SVG 声明。
284
- 颜色统一走 color → stroke="currentColor" 继承。 */
285
- color: currentColor;
286
- pointer-events: none;
287
- }
288
-
289
- :host([spin]) svg,
290
- :host([pulse]) svg {
291
- transform-origin: center;
292
- animation: wc-spin var(--wc-duration-slow, 1s) linear infinite;
293
- }
294
-
295
- /* pulse:旋转 + 缓动呼吸感,用于加载中区分度更高的场景 */
296
- :host([pulse]) svg {
297
- animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
298
- }
299
-
300
- @keyframes wc-spin {
301
- from {
302
- rotate: 0deg;
303
- }
304
- to {
305
- rotate: 360deg;
306
- }
307
- }
308
-
309
- @media (prefers-reduced-motion: reduce) {
310
- :host([spin]) svg,
311
- :host([pulse]) svg {
312
- animation: none;
313
- }
314
- }
315
- `;var Gr=Object.defineProperty,ae=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Gr(e,t,r),r};const lt=class lt extends i.LitElement{constructor(){super(...arguments),this.name="",this.src="",this.library="default",this.label="",this.spin=!1,this.pulse=!1,this.svg="",this.requestId=0}willUpdate(e){(e.has("src")||e.has("name")||e.has("library"))&&this.loadIcon()}disconnectedCallback(){this.unwatchRegister?.()}async loadIcon(){this.unwatchRegister?.(),this.unwatchRegister=void 0;const e=++this.requestId,t=this.name&&!this.src?tr(()=>{this.loadIcon()}):null;let n="";if(this.src?n=await this.fetchSrc(this.src):this.name&&(n=await sr(this.library,this.name)),e!==this.requestId){t?.();return}n||!t?t?.():this.unwatchRegister=t,this.svg=n}async fetchSrc(e){if(typeof fetch!="function")return"";try{const t=await fetch(e);return t.ok?await t.text():""}catch{return""}}render(){return i.html`
316
- <span
317
- part="base"
318
- role=${this.label?"img":"presentation"}
319
- aria-label=${this.label||i.nothing}
320
- aria-hidden=${this.label?i.nothing:"true"}
321
- >${this.svg?Vr.unsafeSVG(this.svg):i.nothing}</span
322
- >
323
- `}};lt.styles=[l,Xr];let $=lt;ae([s.property()],$.prototype,"name");ae([s.property()],$.prototype,"src");ae([s.property()],$.prototype,"library");ae([s.property()],$.prototype,"label");ae([s.property({type:Boolean,reflect:!0})],$.prototype,"spin");ae([s.property({type:Boolean,reflect:!0})],$.prototype,"pulse");ae([s.state()],$.prototype,"svg");customElements.get("wc-icon")||customElements.define("wc-icon",$);function M(o){const t=class t extends o{constructor(...r){super(...r),this.name="",this.disabled=!1,this.internals=this.attachInternals()}get value(){}set value(r){}formResetCallback(){this.value=this.defaultValue}get defaultValue(){}};t.formAssociated=!0,t.properties={name:{type:String},disabled:{type:Boolean,reflect:!0}};let e=t;return e}const Zr={"select.placeholder":"Select","select.empty":"No data","pagination.total":"{total} items in total","pagination.prev":"Previous page","pagination.next":"Next page","pagination.label":"Pagination","pagination.page":"Page {page}","pagination.jumpTo":"Go to","pagination.pageUnit":"Page","dialog.confirm":"Confirm","dialog.cancel":"Cancel","empty.noData":"No data","table.empty":"No data in table","input.clear":"Clear","inputNumber.increment":"Increment","inputNumber.decrement":"Decrement","datePicker.placeholder":"Select date","datePicker.today":"Today","datePicker.prevYear":"Previous year","datePicker.prevMonth":"Previous month","datePicker.nextMonth":"Next month","datePicker.nextYear":"Next year","form.required":"{name} is required","form.min":"{name} must be no less than {min}","form.max":"{name} must be no greater than {max}","form.minLength":"{name} must be at least {minLength} characters","form.maxLength":"{name} must be at most {maxLength} characters","form.pattern":"{name} format is invalid","form.invalid":"{name} is invalid","tag.close":"Remove","dialog.close":"Close","message.close":"Close","breadcrumb.label":"Breadcrumb","image.loadError":"Failed to load image","image.preview":"Preview","image.zoomIn":"Zoom in","image.zoomOut":"Zoom out","image.rotate":"Rotate","image.reset":"Reset","image.close":"Close","upload.upload":"Upload","upload.clickOrDrag":"Click or drag file here to upload","upload.failed":"Upload failed","upload.retry":"Retry","upload.remove":"Remove","upload.preview":"Preview"},Jr={"select.placeholder":"请选择","select.empty":"暂无数据","pagination.total":"共 {total} 条","pagination.prev":"上一页","pagination.next":"下一页","pagination.label":"分页导航","pagination.page":"第 {page} 页","pagination.jumpTo":"跳至","pagination.pageUnit":"页","dialog.confirm":"确认","dialog.cancel":"取消","empty.noData":"暂无数据","table.empty":"表格暂无数据","input.clear":"清空","inputNumber.increment":"增加","inputNumber.decrement":"减少","datePicker.placeholder":"请选择日期","datePicker.today":"今天","datePicker.prevYear":"上一年","datePicker.prevMonth":"上个月","datePicker.nextMonth":"下个月","datePicker.nextYear":"下一年","form.required":"{name}不能为空","form.min":"{name}不能小于{min}","form.max":"{name}不能大于{max}","form.minLength":"{name}至少{minLength}个字符","form.maxLength":"{name}最多{maxLength}个字符","form.pattern":"{name}格式不正确","form.invalid":"{name}校验不通过","tag.close":"删除","dialog.close":"关闭","message.close":"关闭","breadcrumb.label":"面包屑导航","image.loadError":"图片加载失败","image.preview":"预览","image.zoomIn":"放大","image.zoomOut":"缩小","image.rotate":"旋转","image.reset":"重置","image.close":"关闭","upload.upload":"上传文件","upload.clickOrDrag":"点击或拖拽文件到此处上传","upload.failed":"上传失败","upload.retry":"重新上传","upload.remove":"移除","upload.preview":"预览"},Pe="wc-language-change",ee=new Map([["zh-CN",{...Jr}],["en-US",{...Zr}]]);let xe="zh-CN";function Qr(o,e){const t=ee.get(o);ee.set(o,Object.assign({},t,e)),o===xe&&cr()}function eo(o){if(!/^[a-zA-Z]{2,3}(-[a-zA-Z0-9]+)*$/.test(o))throw new Error(`[wc] 无效的语言标识: "${o}",需符合 BCP 47 格式,如 zh-CN`);o!==xe&&(xe=o,cr())}function ir(){return xe}function rt(o){if(ee.has(o))return o;const e=o.split("-")[0]?.toLowerCase();for(const t of ee.keys())if(t.split("-")[0]?.toLowerCase()===e)return t;return"zh-CN"}function nr(o,e,t){const n=ee.get(rt(o)),r=ee.get("zh-CN");let a=n?.[e]??r?.[e]??e;return t&&(a=a.replace(/\{(\w+)\}/g,(c,u)=>u in t?String(t[u]):c)),a}function to(){return[...ee.keys()]}function cr(){document.dispatchEvent(new CustomEvent(Pe,{detail:{locale:xe},bubbles:!0,composed:!0}))}class v{constructor(e){this.handleLanguageChange=()=>{this.host.requestUpdate()},this.host=e,e.addController(this)}hostConnected(){document.addEventListener(Pe,this.handleLanguageChange)}hostDisconnected(){document.removeEventListener(Pe,this.handleLanguageChange)}term(e,t){return nr(this.resolvedLocale,e,t)}date(e,t){const{locale:n,...r}=t??{};return new Intl.DateTimeFormat(n??this.resolvedLocale,r).format(e)}number(e,t){const{locale:n,...r}=t??{};return new Intl.NumberFormat(n??this.resolvedLocale,r).format(e)}get resolvedLocale(){const e=this.host.getAttribute("lang");return e?rt(e):ir()}}const ro=i.css`
422
+ `,ft=class ft extends n.LitElement{render(){return n.html`<div class="group" part="base">
423
+ <slot @slotchange=${this._syncMargins}></slot>
424
+ </div>`}_syncMargins(e){const t=e.target.assignedElements({flatten:!0});for(let l=0;l<t.length;l++)t[l].style.marginLeft=l>0?"-1px":""}};ft.styles=[d,yo];let Ve=ft;customElements.get("wc-button-group")||customElements.define("wc-button-group",Ve);function V(a){const t=class t extends a{constructor(...r){super(...r),this.name="",this.disabled=!1,this.internals=this.attachInternals()}get value(){}set value(r){}formResetCallback(){this.value=this.defaultValue}get defaultValue(){}};t.formAssociated=!0,t.properties={name:{type:String},disabled:{type:Boolean,reflect:!0}};let e=t;return e}const wo={"select.placeholder":"Select","select.empty":"No data","pagination.total":"{total} items in total","pagination.prev":"Previous page","pagination.next":"Next page","pagination.label":"Pagination","pagination.page":"Page {page}","pagination.jumpTo":"Go to","pagination.pageUnit":"Page","dialog.confirm":"Confirm","dialog.cancel":"Cancel","empty.noData":"No data","table.empty":"No data in table","input.clear":"Clear","inputNumber.increment":"Increment","inputNumber.decrement":"Decrement","datePicker.placeholder":"Select date","datePicker.today":"Today","datePicker.prevYear":"Previous year","datePicker.prevMonth":"Previous month","datePicker.nextMonth":"Next month","datePicker.nextYear":"Next year","form.required":"{name} is required","form.min":"{name} must be no less than {min}","form.max":"{name} must be no greater than {max}","form.minLength":"{name} must be at least {minLength} characters","form.maxLength":"{name} must be at most {maxLength} characters","form.pattern":"{name} format is invalid","form.invalid":"{name} is invalid","tag.close":"Remove","dropdown.more":"More options","floatbutton.backtop":"Back to top","floatbutton.menu":"More actions","dialog.close":"Close","message.close":"Close","breadcrumb.label":"Breadcrumb","image.loadError":"Failed to load image","image.preview":"Preview","image.zoomIn":"Zoom in","image.zoomOut":"Zoom out","image.rotate":"Rotate","image.reset":"Reset","image.close":"Close","upload.upload":"Upload","upload.clickOrDrag":"Click or drag file here to upload","upload.failed":"Upload failed","upload.retry":"Retry","upload.remove":"Remove","upload.preview":"Preview"},mo={"select.placeholder":"请选择","select.empty":"暂无数据","pagination.total":"共 {total} 条","pagination.prev":"上一页","pagination.next":"下一页","pagination.label":"分页导航","pagination.page":"第 {page} 页","pagination.jumpTo":"跳至","pagination.pageUnit":"页","dialog.confirm":"确认","dialog.cancel":"取消","empty.noData":"暂无数据","table.empty":"表格暂无数据","input.clear":"清空","inputNumber.increment":"增加","inputNumber.decrement":"减少","datePicker.placeholder":"请选择日期","datePicker.today":"今天","datePicker.prevYear":"上一年","datePicker.prevMonth":"上个月","datePicker.nextMonth":"下个月","datePicker.nextYear":"下一年","form.required":"{name}不能为空","form.min":"{name}不能小于{min}","form.max":"{name}不能大于{max}","form.minLength":"{name}至少{minLength}个字符","form.maxLength":"{name}最多{maxLength}个字符","form.pattern":"{name}格式不正确","form.invalid":"{name}校验不通过","tag.close":"删除","dropdown.more":"更多选项","floatbutton.backtop":"回到顶部","floatbutton.menu":"更多操作","dialog.close":"关闭","message.close":"关闭","breadcrumb.label":"面包屑导航","image.loadError":"图片加载失败","image.preview":"预览","image.zoomIn":"放大","image.zoomOut":"缩小","image.rotate":"旋转","image.reset":"重置","image.close":"关闭","upload.upload":"上传文件","upload.clickOrDrag":"点击或拖拽文件到此处上传","upload.failed":"上传失败","upload.retry":"重新上传","upload.remove":"移除","upload.preview":"预览"},je="wc-language-change",ne=new Map([["zh-CN",{...mo}],["en-US",{...wo}]]);let Se="zh-CN";function go(a,e){const t=ne.get(a);ne.set(a,Object.assign({},t,e)),a===Se&&Cr()}function bo(a){if(!/^[a-zA-Z]{2,3}(-[a-zA-Z0-9]+)*$/.test(a))throw new Error(`[wc] 无效的语言标识: "${a}",需符合 BCP 47 格式,如 zh-CN`);a!==Se&&(Se=a,Cr())}function $r(){return Se}function ht(a){if(ne.has(a))return a;const e=a.split("-")[0]?.toLowerCase();for(const t of ne.keys())if(t.split("-")[0]?.toLowerCase()===e)return t;return"zh-CN"}function zr(a,e,t){const l=ne.get(ht(a)),r=ne.get("zh-CN");let s=l?.[e]??r?.[e]??e;return t&&(s=s.replace(/\{(\w+)\}/g,(c,p)=>p in t?String(t[p]):c)),s}function fo(){return[...ne.keys()]}function Cr(){document.dispatchEvent(new CustomEvent(je,{detail:{locale:Se},bubbles:!0,composed:!0}))}class v{constructor(e){this.handleLanguageChange=()=>{this.host.requestUpdate()},this.host=e,e.addController(this)}hostConnected(){document.addEventListener(je,this.handleLanguageChange)}hostDisconnected(){document.removeEventListener(je,this.handleLanguageChange)}term(e,t){return zr(this.resolvedLocale,e,t)}date(e,t){const{locale:l,...r}=t??{};return new Intl.DateTimeFormat(l??this.resolvedLocale,r).format(e)}number(e,t){const{locale:l,...r}=t??{};return new Intl.NumberFormat(l??this.resolvedLocale,r).format(e)}get resolvedLocale(){const e=this.host.getAttribute("lang");return e?ht(e):$r()}}const xo=n.css`
324
425
  :host {
325
426
  display: inline-block;
326
427
  width: 240px;
@@ -451,7 +552,7 @@
451
552
  :host([readonly]) .input {
452
553
  border-style: dashed;
453
554
  }
454
- `;var oo=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,N=(o,e,t,n)=>{for(var r=n>1?void 0:n?ao(e,t):e,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=(n?c(e,t,r):c(r))||r);return n&&r&&oo(e,t,r),r};const dt=class dt extends M(i.LitElement){constructor(){super(...arguments),this._value="",this.type="text",this.size="medium",this.placeholder="",this.label="",this.readonly=!1,this.clearable=!1,this.status="default",this.localize=new v(this),this._hasPrefix=!1,this._hasSuffix=!1}get value(){return this._value}set value(e){const t=this._value;this._value=e??"",this.requestUpdate("value",t)}get defaultValue(){return this.getAttribute("value")??""}updated(e){super.updated(e),e.has("value")&&this.internals.setFormValue(this.value||null)}formResetCallback(){super.formResetCallback(),this.internals.setFormValue(this.value||null)}handleInput(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("wc-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}handleChange(){this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0}))}handleClear(e){e.preventDefault(),this.value="",this.dispatchEvent(new CustomEvent("wc-clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:""},bubbles:!0,composed:!0})),this.requestUpdate(),this.shadowRoot.querySelector("input")?.focus()}render(){const e=this.clearable&&this.value&&!this.disabled&&!this.readonly;return i.html`
555
+ `;var ko=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,q=(a,e,t,l)=>{for(var r=l>1?void 0:l?$o(e,t):e,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=(l?c(e,t,r):c(r))||r);return l&&r&&ko(e,t,r),r};const xt=class xt extends V(n.LitElement){constructor(){super(...arguments),this._value="",this.type="text",this.size="medium",this.placeholder="",this.label="",this.readonly=!1,this.clearable=!1,this.status="default",this.localize=new v(this),this._hasPrefix=!1,this._hasSuffix=!1}get value(){return this._value}set value(e){const t=this._value;this._value=e??"",this.requestUpdate("value",t)}get defaultValue(){return this.getAttribute("value")??""}updated(e){super.updated(e),e.has("value")&&this.internals.setFormValue(this.value||null)}formResetCallback(){super.formResetCallback(),this.internals.setFormValue(this.value||null)}handleInput(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("wc-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}handleChange(){this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0}))}handleClear(e){e.preventDefault(),this.value="",this.dispatchEvent(new CustomEvent("wc-clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:""},bubbles:!0,composed:!0})),this.requestUpdate(),this.shadowRoot.querySelector("input")?.focus()}render(){const e=this.clearable&&this.value&&!this.disabled&&!this.readonly;return n.html`
455
556
  <div class="input" part="base">
456
557
  <span class="affix prefix" part="prefix" ?hidden=${!this._hasPrefix}>
457
558
  <slot name="prefix" @slotchange=${this._onPrefixSlotChange}></slot>
@@ -469,7 +570,7 @@
469
570
  @input=${this.handleInput}
470
571
  @change=${this.handleChange}
471
572
  />
472
- ${e?i.html`
573
+ ${e?n.html`
473
574
  <button
474
575
  type="button"
475
576
  class="affix clear"
@@ -485,7 +586,7 @@
485
586
  <slot name="suffix" @slotchange=${this._onSuffixSlotChange}></slot>
486
587
  </span>
487
588
  </div>
488
- `}_onPrefixSlotChange(e){this._hasPrefix=e.target.assignedElements({flatten:!0}).length>0,this.requestUpdate()}_onSuffixSlotChange(e){this._hasSuffix=e.target.assignedElements({flatten:!0}).length>0,this.requestUpdate()}};dt.styles=[l,ro];let b=dt;N([s.property()],b.prototype,"value",1);N([s.property()],b.prototype,"type",2);N([s.property({reflect:!0})],b.prototype,"size",2);N([s.property()],b.prototype,"placeholder",2);N([s.property()],b.prototype,"label",2);N([s.property({type:Number})],b.prototype,"maxlength",2);N([s.property({type:Boolean,reflect:!0})],b.prototype,"readonly",2);N([s.property({type:Boolean,reflect:!0})],b.prototype,"clearable",2);N([s.property({reflect:!0})],b.prototype,"status",2);customElements.get("wc-input")||customElements.define("wc-input",b);const so=i.css`
589
+ `}_onPrefixSlotChange(e){this._hasPrefix=e.target.assignedElements({flatten:!0}).length>0,this.requestUpdate()}_onSuffixSlotChange(e){this._hasSuffix=e.target.assignedElements({flatten:!0}).length>0,this.requestUpdate()}};xt.styles=[d,xo];let x=xt;q([i.property()],x.prototype,"value",1);q([i.property()],x.prototype,"type",2);q([i.property({reflect:!0})],x.prototype,"size",2);q([i.property()],x.prototype,"placeholder",2);q([i.property()],x.prototype,"label",2);q([i.property({type:Number})],x.prototype,"maxlength",2);q([i.property({type:Boolean,reflect:!0})],x.prototype,"readonly",2);q([i.property({type:Boolean,reflect:!0})],x.prototype,"clearable",2);q([i.property({reflect:!0})],x.prototype,"status",2);customElements.get("wc-input")||customElements.define("wc-input",x);const zo=n.css`
489
590
  :host {
490
591
  display: inline-block;
491
592
  width: 320px;
@@ -586,7 +687,7 @@
586
687
  :host([readonly]) .textarea {
587
688
  border-style: dashed;
588
689
  }
589
- `;var io=Object.defineProperty,no=Object.getOwnPropertyDescriptor,J=(o,e,t,n)=>{for(var r=n>1?void 0:n?no(e,t):e,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=(n?c(e,t,r):c(r))||r);return n&&r&&io(e,t,r),r};const ht=class ht extends M(i.LitElement){constructor(){super(...arguments),this._value="",this.placeholder="",this.label="",this.rows=3,this.autosize=!1,this.readonly=!1,this.status="default"}get value(){return this._value}set value(e){const t=this._value;this._value=e??"",this.requestUpdate("value",t)}get defaultValue(){return this.getAttribute("value")??""}updated(e){super.updated(e),e.has("value")&&this.internals.setFormValue(this.value||null),e.has("value")&&this.autosize&&this.autoResize()}formResetCallback(){super.formResetCallback(),this.internals.setFormValue(this.value||null)}handleInput(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("wc-input",{detail:{value:this.value},bubbles:!0,composed:!0})),this.autosize&&this.autoResize()}handleChange(){this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0}))}autoResize(){const e=this.shadowRoot.querySelector("textarea");e&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)}render(){return i.html`
690
+ `;var Co=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,ae=(a,e,t,l)=>{for(var r=l>1?void 0:l?Eo(e,t):e,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=(l?c(e,t,r):c(r))||r);return l&&r&&Co(e,t,r),r};const kt=class kt extends V(n.LitElement){constructor(){super(...arguments),this._value="",this.placeholder="",this.label="",this.rows=3,this.autosize=!1,this.readonly=!1,this.status="default"}get value(){return this._value}set value(e){const t=this._value;this._value=e??"",this.requestUpdate("value",t)}get defaultValue(){return this.getAttribute("value")??""}updated(e){super.updated(e),e.has("value")&&this.internals.setFormValue(this.value||null),e.has("value")&&this.autosize&&this.autoResize()}formResetCallback(){super.formResetCallback(),this.internals.setFormValue(this.value||null)}handleInput(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("wc-input",{detail:{value:this.value},bubbles:!0,composed:!0})),this.autosize&&this.autoResize()}handleChange(){this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0}))}autoResize(){const e=this.shadowRoot.querySelector("textarea");e&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)}render(){return n.html`
590
691
  <div class="textarea" part="base">
591
692
  <textarea
592
693
  part="textarea"
@@ -601,9 +702,9 @@
601
702
  @input=${this.handleInput}
602
703
  @change=${this.handleChange}
603
704
  ></textarea>
604
- ${this.maxlength?i.html`<span class="count" part="count">${this.value.length}/${this.maxlength}</span>`:""}
705
+ ${this.maxlength?n.html`<span class="count" part="count">${this.value.length}/${this.maxlength}</span>`:""}
605
706
  </div>
606
- `}};ht.styles=[l,so];let y=ht;J([s.property()],y.prototype,"value",1);J([s.property()],y.prototype,"placeholder",2);J([s.property()],y.prototype,"label",2);J([s.property({type:Number})],y.prototype,"maxlength",2);J([s.property({type:Number})],y.prototype,"rows",2);J([s.property({type:Boolean,reflect:!0})],y.prototype,"autosize",2);J([s.property({type:Boolean,reflect:!0})],y.prototype,"readonly",2);J([s.property({reflect:!0})],y.prototype,"status",2);customElements.get("wc-textarea")||customElements.define("wc-textarea",y);const co=i.css`
707
+ `}};kt.styles=[d,zo];let C=kt;ae([i.property()],C.prototype,"value",1);ae([i.property()],C.prototype,"placeholder",2);ae([i.property()],C.prototype,"label",2);ae([i.property({type:Number})],C.prototype,"maxlength",2);ae([i.property({type:Number})],C.prototype,"rows",2);ae([i.property({type:Boolean,reflect:!0})],C.prototype,"autosize",2);ae([i.property({type:Boolean,reflect:!0})],C.prototype,"readonly",2);ae([i.property({reflect:!0})],C.prototype,"status",2);customElements.get("wc-textarea")||customElements.define("wc-textarea",C);const Mo=n.css`
607
708
  :host {
608
709
  display: inline-block;
609
710
 
@@ -729,7 +830,7 @@
729
830
  .label {
730
831
  line-height: var(--wc-line-height-base);
731
832
  }
732
- `;var lo=Object.defineProperty,Te=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&lo(e,t,r),r};const pt=class pt extends M(i.LitElement){constructor(){super(),this.checked=!1,this.indeterminate=!1,this.value="on",this.label="",this.initialChecked=!1,this.initialChecked=this.hasAttribute("checked")}get defaultValue(){return this.initialChecked?this.value:null}updated(e){super.updated(e),(e.has("checked")||e.has("value"))&&this.internals.setFormValue(this.checked?this.value:null)}formResetCallback(){super.formResetCallback(),this.checked=this.initialChecked,this.internals.setFormValue(this.checked?this.value:null)}handleChange(e){const t=e.target;this.indeterminate=!1,this.checked=t.checked,this.dispatchEvent(new CustomEvent("wc-change",{detail:{checked:this.checked,value:this.value},bubbles:!0,composed:!0}))}render(){return i.html`
833
+ `;var So=Object.defineProperty,qe=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&So(e,t,r),r};const $t=class $t extends V(n.LitElement){constructor(){super(),this.checked=!1,this.indeterminate=!1,this.value="on",this.label="",this.initialChecked=!1,this.initialChecked=this.hasAttribute("checked")}get defaultValue(){return this.initialChecked?this.value:null}updated(e){super.updated(e),(e.has("checked")||e.has("value"))&&this.internals.setFormValue(this.checked?this.value:null)}formResetCallback(){super.formResetCallback(),this.checked=this.initialChecked,this.internals.setFormValue(this.checked?this.value:null)}handleChange(e){const t=e.target;this.indeterminate=!1,this.checked=t.checked,this.dispatchEvent(new CustomEvent("wc-change",{detail:{checked:this.checked,value:this.value},bubbles:!0,composed:!0}))}render(){return n.html`
733
834
  <label class="checkbox" part="base">
734
835
  <input
735
836
  type="checkbox"
@@ -754,7 +855,7 @@
754
855
  </span>
755
856
  <span class="label" part="label"><slot></slot></span>
756
857
  </label>
757
- `}};pt.styles=[l,co];let R=pt;Te([s.property({type:Boolean,reflect:!0})],R.prototype,"checked");Te([s.property({type:Boolean,reflect:!0})],R.prototype,"indeterminate");Te([s.property()],R.prototype,"value");Te([s.property()],R.prototype,"label");customElements.get("wc-checkbox")||customElements.define("wc-checkbox",R);const ho=i.css`
858
+ `}};$t.styles=[d,Mo];let K=$t;qe([i.property({type:Boolean,reflect:!0})],K.prototype,"checked");qe([i.property({type:Boolean,reflect:!0})],K.prototype,"indeterminate");qe([i.property()],K.prototype,"value");qe([i.property()],K.prototype,"label");customElements.get("wc-checkbox")||customElements.define("wc-checkbox",K);const _o=n.css`
758
859
  :host {
759
860
  display: inline-block;
760
861
 
@@ -846,7 +947,7 @@
846
947
  .label {
847
948
  line-height: var(--wc-line-height-base);
848
949
  }
849
- `;var po=Object.defineProperty,ot=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&po(e,t,r),r};const ut=class ut extends M(i.LitElement){constructor(){super(),this.checked=!1,this.value="",this.label="",this.initialChecked=!1,this.initialChecked=this.hasAttribute("checked")}get defaultValue(){return this.initialChecked?this.value:null}updated(e){super.updated(e),(e.has("checked")||e.has("value"))&&this.internals.setFormValue(this.checked?this.value:null)}formResetCallback(){super.formResetCallback(),this.checked=this.initialChecked,this.internals.setFormValue(this.checked?this.value:null)}handleChange(e){const t=e.target;this.checked=t.checked,this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return i.html`
950
+ `;var Lo=Object.defineProperty,ut=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Lo(e,t,r),r};const zt=class zt extends V(n.LitElement){constructor(){super(),this.checked=!1,this.value="",this.label="",this.initialChecked=!1,this.initialChecked=this.hasAttribute("checked")}get defaultValue(){return this.initialChecked?this.value:null}updated(e){super.updated(e),(e.has("checked")||e.has("value"))&&this.internals.setFormValue(this.checked?this.value:null)}formResetCallback(){super.formResetCallback(),this.checked=this.initialChecked,this.internals.setFormValue(this.checked?this.value:null)}handleChange(e){const t=e.target;this.checked=t.checked,this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return n.html`
850
951
  <label class="radio" part="base">
851
952
  <input
852
953
  type="radio"
@@ -859,7 +960,7 @@
859
960
  <span class="dot" part="dot" aria-hidden="true"><span class="inner"></span></span>
860
961
  <span class="label" part="label"><slot></slot></span>
861
962
  </label>
862
- `}};ut.styles=[l,ho];let te=ut;ot([s.property({type:Boolean,reflect:!0})],te.prototype,"checked");ot([s.property()],te.prototype,"value");ot([s.property()],te.prototype,"label");customElements.get("wc-radio")||customElements.define("wc-radio",te);const uo=i.css`
963
+ `}};zt.styles=[d,_o];let le=zt;ut([i.property({type:Boolean,reflect:!0})],le.prototype,"checked");ut([i.property()],le.prototype,"value");ut([i.property()],le.prototype,"label");customElements.get("wc-radio")||customElements.define("wc-radio",le);const Oo=n.css`
863
964
  :host {
864
965
  display: inline-block;
865
966
 
@@ -949,7 +1050,7 @@
949
1050
  .label {
950
1051
  line-height: var(--wc-line-height-base);
951
1052
  }
952
- `;var vo=Object.defineProperty,De=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&vo(e,t,r),r};const vt=class vt extends M(i.LitElement){constructor(){super(),this.checked=!1,this.checkedValue="on",this.uncheckedValue="",this.label="",this.initialChecked=!1,this.initialChecked=this.hasAttribute("checked")}get defaultValue(){return this.initialChecked?this.checkedValue:this.uncheckedValue||null}updated(e){super.updated(e),(e.has("checked")||e.has("checkedValue")||e.has("uncheckedValue"))&&this.internals.setFormValue(this.checked?this.checkedValue:this.uncheckedValue||null)}formResetCallback(){super.formResetCallback(),this.checked=this.initialChecked,this.internals.setFormValue(this.checked?this.checkedValue:this.uncheckedValue||null)}handleChange(e){const t=e.target;this.checked=t.checked,this.dispatchEvent(new CustomEvent("wc-change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}render(){return i.html`
1053
+ `;var Io=Object.defineProperty,Re=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Io(e,t,r),r};const Ct=class Ct extends V(n.LitElement){constructor(){super(),this.checked=!1,this.checkedValue="on",this.uncheckedValue="",this.label="",this.initialChecked=!1,this.initialChecked=this.hasAttribute("checked")}get defaultValue(){return this.initialChecked?this.checkedValue:this.uncheckedValue||null}updated(e){super.updated(e),(e.has("checked")||e.has("checkedValue")||e.has("uncheckedValue"))&&this.internals.setFormValue(this.checked?this.checkedValue:this.uncheckedValue||null)}formResetCallback(){super.formResetCallback(),this.checked=this.initialChecked,this.internals.setFormValue(this.checked?this.checkedValue:this.uncheckedValue||null)}handleChange(e){const t=e.target;this.checked=t.checked,this.dispatchEvent(new CustomEvent("wc-change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}render(){return n.html`
953
1054
  <label class="switch" part="base">
954
1055
  <input
955
1056
  type="checkbox"
@@ -965,7 +1066,7 @@
965
1066
  </span>
966
1067
  <span class="label" part="label"><slot></slot></span>
967
1068
  </label>
968
- `}};vt.styles=[l,uo];let F=vt;De([s.property({type:Boolean,reflect:!0})],F.prototype,"checked");De([s.property()],F.prototype,"checkedValue");De([s.property()],F.prototype,"uncheckedValue");De([s.property()],F.prototype,"label");customElements.get("wc-switch")||customElements.define("wc-switch",F);const wo=i.css`
1069
+ `}};Ct.styles=[d,Oo];let W=Ct;Re([i.property({type:Boolean,reflect:!0})],W.prototype,"checked");Re([i.property()],W.prototype,"checkedValue");Re([i.property()],W.prototype,"uncheckedValue");Re([i.property()],W.prototype,"label");customElements.get("wc-switch")||customElements.define("wc-switch",W);const Po=n.css`
969
1070
  :host {
970
1071
  display: block;
971
1072
  }
@@ -1018,7 +1119,7 @@
1018
1119
  color: var(--wc-color-text-disabled);
1019
1120
  cursor: not-allowed;
1020
1121
  }
1021
- `;var mo=Object.defineProperty,je=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&mo(e,t,r),r};const wt=class wt extends i.LitElement{constructor(){super(...arguments),this.value="",this.disabled=!1,this.selected=!1,this.active=!1}get label(){return(this.textContent??"").trim()}render(){return i.html`
1122
+ `;var Ao=Object.defineProperty,Fe=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Ao(e,t,r),r};const Et=class Et extends n.LitElement{constructor(){super(...arguments),this.value="",this.disabled=!1,this.selected=!1,this.active=!1}get label(){return(this.textContent??"").trim()}render(){return n.html`
1022
1123
  <div class="option" part="base" role="option" aria-selected=${this.selected}>
1023
1124
  <span class="text"><slot></slot></span>
1024
1125
  <svg class="check" viewBox="0 0 16 16" fill="none" aria-hidden="true">
@@ -1031,7 +1132,7 @@
1031
1132
  />
1032
1133
  </svg>
1033
1134
  </div>
1034
- `}};wt.styles=[wo];let V=wt;je([s.property({reflect:!0})],V.prototype,"value");je([s.property({type:Boolean,reflect:!0})],V.prototype,"disabled");je([s.property({type:Boolean,reflect:!0})],V.prototype,"selected");je([s.property({type:Boolean,reflect:!0})],V.prototype,"active");customElements.get("wc-option")||customElements.define("wc-option",V);const bo=i.css`
1135
+ `}};Et.styles=[Po];let X=Et;Fe([i.property({reflect:!0})],X.prototype,"value");Fe([i.property({type:Boolean,reflect:!0})],X.prototype,"disabled");Fe([i.property({type:Boolean,reflect:!0})],X.prototype,"selected");Fe([i.property({type:Boolean,reflect:!0})],X.prototype,"active");customElements.get("wc-option")||customElements.define("wc-option",X);const To=n.css`
1035
1136
  :host {
1036
1137
  display: inline-block;
1037
1138
  width: 240px;
@@ -1196,7 +1297,7 @@
1196
1297
  :host([disabled]) .value {
1197
1298
  color: var(--wc-color-text-disabled);
1198
1299
  }
1199
- `;var go=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,me=(o,e,t,n)=>{for(var r=n>1?void 0:n?fo(e,t):e,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=(n?c(e,t,r):c(r))||r);return n&&r&&go(e,t,r),r};const mt=class mt extends M(i.LitElement){constructor(){super(),this._value="",this.placeholder="",this.size="medium",this.status="default",this.clearable=!1,this.open=!1,this.activeIndex=-1,this.localize=new v(this),this.uid=`wc-select-${Math.random().toString(36).slice(2,8)}`,this.assignedOptions=[],this.onDocumentClick=e=>{e.composedPath().includes(this)||this.hide()},this.handleKeydown=e=>{if(!this.disabled)switch(e.key){case"Enter":case" ":if(e.preventDefault(),this.open&&this.activeIndex>=0){const t=this.enabledOptions[this.activeIndex];t&&this.selectOption(t)}else this.show();break;case"Escape":e.preventDefault(),this.hide();break;case"ArrowDown":e.preventDefault(),this.open?this.enabledOptions.length&&(this.activeIndex=(this.activeIndex+1)%this.enabledOptions.length,this.scrollToActive()):this.show();break;case"ArrowUp":if(e.preventDefault(),!this.open)this.show();else if(this.enabledOptions.length){const t=this.enabledOptions.length;this.activeIndex=(this.activeIndex-1+t)%t,this.scrollToActive()}break;case"Home":this.open&&this.enabledOptions.length&&(e.preventDefault(),this.activeIndex=0,this.scrollToActive());break;case"End":this.open&&this.enabledOptions.length&&(e.preventDefault(),this.activeIndex=this.enabledOptions.length-1,this.scrollToActive());break;case"Tab":this.hide();break}},this.addEventListener("keydown",this.handleKeydown)}get value(){return this._value}set value(e){const t=this._value;this._value=e??"",this.requestUpdate("value",t)}get defaultValue(){return this.getAttribute("value")??""}updated(e){super.updated(e),e.has("value")&&(this.syncOptions(),this.internals.setFormValue(this.value||null))}formResetCallback(){super.formResetCallback(),this.value=String(this.defaultValue??""),this.internals.setFormValue(this.value||null)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.onDocumentClick)}disconnectedCallback(){document.removeEventListener("click",this.onDocumentClick),super.disconnectedCallback()}get enabledOptions(){return this.assignedOptions.filter(e=>!e.disabled)}get selectedLabel(){return this.assignedOptions.find(e=>e.value===this.value)?.label??""}get displayText(){return this.value?this.selectedLabel:this.placeholder||this.localize.term("select.placeholder")}onSlotChange(e){this.assignedOptions=e.target.assignedElements().filter(t=>t.tagName==="WC-OPTION"),this.assignedOptions.forEach((t,n)=>t.setAttribute("id",`${this.uid}-opt-${n}`)),this.syncOptions(),this.requestUpdate()}syncOptions(){for(const e of this.assignedOptions)e.selected=!e.disabled&&e.value===this.value}show(){if(this.disabled||this.open)return;this.open=!0;const e=this.enabledOptions.findIndex(t=>t.value===this.value);this.activeIndex=e>=0?e:this.enabledOptions.length?0:-1,this.scrollToActive()}hide(){this.open&&(this.open=!1,this.activeIndex=-1)}toggle(){this.open?this.hide():this.show()}onTriggerClick(){this.toggle()}onPanelClick(e){const t=e.target.closest("wc-option");t&&!t.disabled&&this.selectOption(t)}selectOption(e){this.value=e.value,this.hide(),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value,label:e.label},bubbles:!0,composed:!0}))}handleClear(e){e.preventDefault(),e.stopPropagation(),this.value="",this.hide(),this.dispatchEvent(new CustomEvent("wc-clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:"",label:""},bubbles:!0,composed:!0}))}scrollToActive(){for(const t of this.assignedOptions)t.active=!1;const e=this.enabledOptions[this.activeIndex];e&&(e.active=!0),this.updateComplete.then(()=>{e&&typeof e.scrollIntoView=="function"&&e.scrollIntoView({block:"nearest"})})}render(){const e=this.activeIndex>=0?this.enabledOptions[this.activeIndex]:void 0,t=e?`${this.uid}-opt-${this.assignedOptions.indexOf(e)}`:"",n=this.clearable&&this.value&&!this.disabled;return i.html`
1300
+ `;var Do=Object.defineProperty,Vo=Object.getOwnPropertyDescriptor,$e=(a,e,t,l)=>{for(var r=l>1?void 0:l?Vo(e,t):e,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=(l?c(e,t,r):c(r))||r);return l&&r&&Do(e,t,r),r};const Mt=class Mt extends V(n.LitElement){constructor(){super(),this._value="",this.placeholder="",this.size="medium",this.status="default",this.clearable=!1,this.open=!1,this.activeIndex=-1,this.localize=new v(this),this.uid=`wc-select-${Math.random().toString(36).slice(2,8)}`,this.assignedOptions=[],this.onDocumentClick=e=>{e.composedPath().includes(this)||this.hide()},this.handleKeydown=e=>{if(!this.disabled)switch(e.key){case"Enter":case" ":if(e.preventDefault(),this.open&&this.activeIndex>=0){const t=this.enabledOptions[this.activeIndex];t&&this.selectOption(t)}else this.show();break;case"Escape":e.preventDefault(),this.hide();break;case"ArrowDown":e.preventDefault(),this.open?this.enabledOptions.length&&(this.activeIndex=(this.activeIndex+1)%this.enabledOptions.length,this.scrollToActive()):this.show();break;case"ArrowUp":if(e.preventDefault(),!this.open)this.show();else if(this.enabledOptions.length){const t=this.enabledOptions.length;this.activeIndex=(this.activeIndex-1+t)%t,this.scrollToActive()}break;case"Home":this.open&&this.enabledOptions.length&&(e.preventDefault(),this.activeIndex=0,this.scrollToActive());break;case"End":this.open&&this.enabledOptions.length&&(e.preventDefault(),this.activeIndex=this.enabledOptions.length-1,this.scrollToActive());break;case"Tab":this.hide();break}},this.addEventListener("keydown",this.handleKeydown)}get value(){return this._value}set value(e){const t=this._value;this._value=e??"",this.requestUpdate("value",t)}get defaultValue(){return this.getAttribute("value")??""}updated(e){super.updated(e),e.has("value")&&(this.syncOptions(),this.internals.setFormValue(this.value||null))}formResetCallback(){super.formResetCallback(),this.value=String(this.defaultValue??""),this.internals.setFormValue(this.value||null)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.onDocumentClick)}disconnectedCallback(){document.removeEventListener("click",this.onDocumentClick),super.disconnectedCallback()}get enabledOptions(){return this.assignedOptions.filter(e=>!e.disabled)}get selectedLabel(){return this.assignedOptions.find(e=>e.value===this.value)?.label??""}get displayText(){return this.value?this.selectedLabel:this.placeholder||this.localize.term("select.placeholder")}onSlotChange(e){this.assignedOptions=e.target.assignedElements().filter(t=>t.tagName==="WC-OPTION"),this.assignedOptions.forEach((t,l)=>t.setAttribute("id",`${this.uid}-opt-${l}`)),this.syncOptions(),this.requestUpdate()}syncOptions(){for(const e of this.assignedOptions)e.selected=!e.disabled&&e.value===this.value}show(){if(this.disabled||this.open)return;this.open=!0;const e=this.enabledOptions.findIndex(t=>t.value===this.value);this.activeIndex=e>=0?e:this.enabledOptions.length?0:-1,this.scrollToActive()}hide(){this.open&&(this.open=!1,this.activeIndex=-1)}toggle(){this.open?this.hide():this.show()}onTriggerClick(){this.toggle()}onPanelClick(e){const t=e.target.closest("wc-option");t&&!t.disabled&&this.selectOption(t)}selectOption(e){this.value=e.value,this.hide(),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value,label:e.label},bubbles:!0,composed:!0}))}handleClear(e){e.preventDefault(),e.stopPropagation(),this.value="",this.hide(),this.dispatchEvent(new CustomEvent("wc-clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:"",label:""},bubbles:!0,composed:!0}))}scrollToActive(){for(const t of this.assignedOptions)t.active=!1;const e=this.enabledOptions[this.activeIndex];e&&(e.active=!0),this.updateComplete.then(()=>{e&&typeof e.scrollIntoView=="function"&&e.scrollIntoView({block:"nearest"})})}render(){const e=this.activeIndex>=0?this.enabledOptions[this.activeIndex]:void 0,t=e?`${this.uid}-opt-${this.assignedOptions.indexOf(e)}`:"",l=this.clearable&&this.value&&!this.disabled;return n.html`
1200
1301
  <div class="select" part="base">
1201
1302
  <div
1202
1303
  class="trigger"
@@ -1213,7 +1314,7 @@
1213
1314
  <span class="value ${this.value?"":"placeholder"}" part="value"
1214
1315
  >${this.displayText}</span
1215
1316
  >
1216
- ${n?i.html`
1317
+ ${l?n.html`
1217
1318
  <span
1218
1319
  class="clear"
1219
1320
  part="clear-button"
@@ -1236,10 +1337,10 @@
1236
1337
  @click=${this.onPanelClick}
1237
1338
  >
1238
1339
  <slot @slotchange=${this.onSlotChange}></slot>
1239
- ${this.assignedOptions.length===0?i.html`<div class="empty">${this.localize.term("select.empty")}</div>`:""}
1340
+ ${this.assignedOptions.length===0?n.html`<div class="empty">${this.localize.term("select.empty")}</div>`:""}
1240
1341
  </div>
1241
1342
  </div>
1242
- `}};mt.styles=[l,bo];let O=mt;me([s.property()],O.prototype,"value",1);me([s.property()],O.prototype,"placeholder",2);me([s.property({reflect:!0})],O.prototype,"size",2);me([s.property({reflect:!0})],O.prototype,"status",2);me([s.property({type:Boolean,reflect:!0})],O.prototype,"clearable",2);me([s.property({type:Boolean,reflect:!0})],O.prototype,"open",2);customElements.get("wc-select")||customElements.define("wc-select",O);const yo=i.css`
1343
+ `}};Mt.styles=[d,To];let A=Mt;$e([i.property()],A.prototype,"value",1);$e([i.property()],A.prototype,"placeholder",2);$e([i.property({reflect:!0})],A.prototype,"size",2);$e([i.property({reflect:!0})],A.prototype,"status",2);$e([i.property({type:Boolean,reflect:!0})],A.prototype,"clearable",2);$e([i.property({type:Boolean,reflect:!0})],A.prototype,"open",2);customElements.get("wc-select")||customElements.define("wc-select",A);const jo=n.css`
1243
1344
  :host {
1244
1345
  display: inline-block;
1245
1346
  width: 240px;
@@ -1319,7 +1420,7 @@
1319
1420
  border-color: var(--wc-color-border);
1320
1421
  box-shadow: none;
1321
1422
  }
1322
- `;var xo=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,ze=(o,e,t,n)=>{for(var r=n>1?void 0:n?ko(e,t):e,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=(n?c(e,t,r):c(r))||r);return n&&r&&xo(e,t,r),r};const bt=class bt extends M(i.LitElement){constructor(){super(...arguments),this._value=0,this.min=0,this.max=100,this.step=1,this.label=""}get value(){return this._value}set value(e){const t=this._value;this._value=this.clamp(e),this.requestUpdate("value",t)}clamp(e){if(Number.isNaN(e))return this._value;const t=Math.round((e-this.min)/this.step)*this.step+this.min,n=Number(t.toFixed(10));return Math.min(this.max,Math.max(this.min,n))}get percent(){return this.max===this.min?0:(this.value-this.min)/(this.max-this.min)*100}get defaultValue(){const e=this.getAttribute("value");return e?Number(e):0}updated(e){super.updated(e),e.has("value")&&this.internals.setFormValue(String(this.value))}formResetCallback(){super.formResetCallback(),this.value=Number(this.defaultValue??0),this.internals.setFormValue(String(this.value))}handleInput(e){const t=e.target;this.value=Number(t.value),this.dispatchEvent(new CustomEvent("wc-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}handleChange(){this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return i.html`
1423
+ `;var Ho=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,Oe=(a,e,t,l)=>{for(var r=l>1?void 0:l?Bo(e,t):e,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=(l?c(e,t,r):c(r))||r);return l&&r&&Ho(e,t,r),r};const St=class St extends V(n.LitElement){constructor(){super(...arguments),this._value=0,this.min=0,this.max=100,this.step=1,this.label=""}get value(){return this._value}set value(e){const t=this._value;this._value=this.clamp(e),this.requestUpdate("value",t)}clamp(e){if(Number.isNaN(e))return this._value;const t=Math.round((e-this.min)/this.step)*this.step+this.min,l=Number(t.toFixed(10));return Math.min(this.max,Math.max(this.min,l))}get percent(){return this.max===this.min?0:(this.value-this.min)/(this.max-this.min)*100}get defaultValue(){const e=this.getAttribute("value");return e?Number(e):0}updated(e){super.updated(e),e.has("value")&&this.internals.setFormValue(String(this.value))}formResetCallback(){super.formResetCallback(),this.value=Number(this.defaultValue??0),this.internals.setFormValue(String(this.value))}handleInput(e){const t=e.target;this.value=Number(t.value),this.dispatchEvent(new CustomEvent("wc-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}handleChange(){this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return n.html`
1323
1424
  <div class="slider" part="base">
1324
1425
  <div class="track" part="track">
1325
1426
  <div class="fill" part="fill" style="width: ${this.percent}%"></div>
@@ -1338,7 +1439,7 @@
1338
1439
  @change=${this.handleChange}
1339
1440
  />
1340
1441
  </div>
1341
- `}};bt.styles=[l,yo];let D=bt;ze([s.property({type:Number})],D.prototype,"value",1);ze([s.property({type:Number})],D.prototype,"min",2);ze([s.property({type:Number})],D.prototype,"max",2);ze([s.property({type:Number})],D.prototype,"step",2);ze([s.property()],D.prototype,"label",2);customElements.get("wc-slider")||customElements.define("wc-slider",D);const $o=i.css`
1442
+ `}};St.styles=[d,jo];let H=St;Oe([i.property({type:Number})],H.prototype,"value",1);Oe([i.property({type:Number})],H.prototype,"min",2);Oe([i.property({type:Number})],H.prototype,"max",2);Oe([i.property({type:Number})],H.prototype,"step",2);Oe([i.property()],H.prototype,"label",2);customElements.get("wc-slider")||customElements.define("wc-slider",H);const No=n.css`
1342
1443
  :host {
1343
1444
  display: inline-block;
1344
1445
  width: 144px;
@@ -1505,7 +1606,7 @@
1505
1606
  :host([readonly]) .number {
1506
1607
  border-style: dashed;
1507
1608
  }
1508
- `;var zo=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,I=(o,e,t,n)=>{for(var r=n>1?void 0:n?Co(e,t):e,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=(n?c(e,t,r):c(r))||r);return n&&r&&zo(e,t,r),r};const gt=class gt extends M(i.LitElement){constructor(){super(...arguments),this._value=0,this.min=-1/0,this.max=1/0,this.step=1,this.theme="row",this.size="medium",this.placeholder="",this.label="",this.readonly=!1,this.status="default",this.localize=new v(this),this._editing=!1,this._text=""}get value(){return this._value}set value(e){const t=this._value;this._value=this.clamp(e),this.requestUpdate("value",t)}clamp(e){if(Number.isNaN(e))return this._value;const t=Number.isFinite(this.min)?Math.round((e-this.min)/this.step)*this.step+this.min:Math.round(e/this.step)*this.step,n=Number(t.toFixed(10));return Math.min(this.max,Math.max(this.min,n))}formatValue(){return String(this._value)}get defaultValue(){const e=this.getAttribute("value");return e?Number(e):0}updated(e){super.updated(e),e.has("value")&&this.internals.setFormValue(String(this.value))}formResetCallback(){super.formResetCallback(),this.value=Number(this.defaultValue??0),this.internals.setFormValue(String(this.value))}stepBy(e){if(this.disabled||this.readonly)return;const t=this.clamp(this.value+e*this.step);t!==this.value&&(this.value=t,this.internals.setFormValue(String(this.value)),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0})))}commit(){if(!this._editing)return;this._editing=!1,this._text="";const e=this.shadowRoot.querySelector(".inner").value.trim(),t=Number(e),n=e===""||Number.isNaN(t)?this._value:this.clamp(t);this.requestUpdate(),n!==this._value&&(this.value=n,this.internals.setFormValue(String(this.value)),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0})))}handleFocus(){this._editing=!0,this._text=this.formatValue(),this.requestUpdate()}handleBlur(){this.commit()}handleInput(e){const t=e.target;this._text=t.value,this.dispatchEvent(new CustomEvent("wc-input",{detail:{value:Number(t.value),text:t.value},bubbles:!0,composed:!0}))}handleKeydown(e){e.key==="ArrowUp"?(e.preventDefault(),this.stepBy(1)):e.key==="ArrowDown"?(e.preventDefault(),this.stepBy(-1)):e.key==="Enter"&&this.commit()}get canDecrement(){return!this.disabled&&!this.readonly&&this.value>this.min}get canIncrement(){return!this.disabled&&!this.readonly&&this.value<this.max}render(){const e=n=>{const r=n===1;return i.html`
1609
+ `;var qo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,j=(a,e,t,l)=>{for(var r=l>1?void 0:l?Ro(e,t):e,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=(l?c(e,t,r):c(r))||r);return l&&r&&qo(e,t,r),r};const _t=class _t extends V(n.LitElement){constructor(){super(...arguments),this._value=0,this.min=-1/0,this.max=1/0,this.step=1,this.theme="row",this.size="medium",this.placeholder="",this.label="",this.readonly=!1,this.status="default",this.localize=new v(this),this._editing=!1,this._text=""}get value(){return this._value}set value(e){const t=this._value;this._value=this.clamp(e),this.requestUpdate("value",t)}clamp(e){if(Number.isNaN(e))return this._value;const t=Number.isFinite(this.min)?Math.round((e-this.min)/this.step)*this.step+this.min:Math.round(e/this.step)*this.step,l=Number(t.toFixed(10));return Math.min(this.max,Math.max(this.min,l))}formatValue(){return String(this._value)}get defaultValue(){const e=this.getAttribute("value");return e?Number(e):0}updated(e){super.updated(e),e.has("value")&&this.internals.setFormValue(String(this.value))}formResetCallback(){super.formResetCallback(),this.value=Number(this.defaultValue??0),this.internals.setFormValue(String(this.value))}stepBy(e){if(this.disabled||this.readonly)return;const t=this.clamp(this.value+e*this.step);t!==this.value&&(this.value=t,this.internals.setFormValue(String(this.value)),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0})))}commit(){if(!this._editing)return;this._editing=!1,this._text="";const e=this.shadowRoot.querySelector(".inner").value.trim(),t=Number(e),l=e===""||Number.isNaN(t)?this._value:this.clamp(t);this.requestUpdate(),l!==this._value&&(this.value=l,this.internals.setFormValue(String(this.value)),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:this.value},bubbles:!0,composed:!0})))}handleFocus(){this._editing=!0,this._text=this.formatValue(),this.requestUpdate()}handleBlur(){this.commit()}handleInput(e){const t=e.target;this._text=t.value,this.dispatchEvent(new CustomEvent("wc-input",{detail:{value:Number(t.value),text:t.value},bubbles:!0,composed:!0}))}handleKeydown(e){e.key==="ArrowUp"?(e.preventDefault(),this.stepBy(1)):e.key==="ArrowDown"?(e.preventDefault(),this.stepBy(-1)):e.key==="Enter"&&this.commit()}get canDecrement(){return!this.disabled&&!this.readonly&&this.value>this.min}get canIncrement(){return!this.disabled&&!this.readonly&&this.value<this.max}render(){const e=l=>{const r=l===1;return n.html`
1509
1610
  <button
1510
1611
  type="button"
1511
1612
  class="step ${r?"plus":"minus"}"
@@ -1513,11 +1614,11 @@
1513
1614
  tabindex="-1"
1514
1615
  ?disabled=${r?!this.canIncrement:!this.canDecrement}
1515
1616
  aria-label=${this.localize.term(r?"inputNumber.increment":"inputNumber.decrement")}
1516
- @click=${()=>this.stepBy(n)}
1617
+ @click=${()=>this.stepBy(l)}
1517
1618
  >
1518
1619
  <wc-icon name=${r?"plus":"minus"}></wc-icon>
1519
1620
  </button>
1520
- `},t=i.html`
1621
+ `},t=n.html`
1521
1622
  <input
1522
1623
  part="input"
1523
1624
  class="inner"
@@ -1533,12 +1634,12 @@
1533
1634
  @input=${this.handleInput}
1534
1635
  @keydown=${this.handleKeydown}
1535
1636
  />
1536
- `;return this.theme==="normal"?i.html`<div class="number" part="base">${t}</div>`:this.theme==="column"?i.html`
1637
+ `;return this.theme==="normal"?n.html`<div class="number" part="base">${t}</div>`:this.theme==="column"?n.html`
1537
1638
  <div class="number" part="base">
1538
1639
  ${t}
1539
1640
  <span class="stepper" part="stepper"> ${e(1)}${e(-1)} </span>
1540
1641
  </div>
1541
- `:i.html` <div class="number" part="base">${e(-1)}${t}${e(1)}</div> `}};gt.styles=[l,$o];let m=gt;I([s.property({type:Number})],m.prototype,"value",1);I([s.property({type:Number})],m.prototype,"min",2);I([s.property({type:Number})],m.prototype,"max",2);I([s.property({type:Number})],m.prototype,"step",2);I([s.property({reflect:!0})],m.prototype,"theme",2);I([s.property({reflect:!0})],m.prototype,"size",2);I([s.property()],m.prototype,"placeholder",2);I([s.property()],m.prototype,"label",2);I([s.property({type:Boolean,reflect:!0})],m.prototype,"readonly",2);I([s.property({reflect:!0})],m.prototype,"status",2);customElements.get("wc-input-number")||customElements.define("wc-input-number",m);const Eo=i.css`
1642
+ `:n.html` <div class="number" part="base">${e(-1)}${t}${e(1)}</div> `}};_t.styles=[d,No];let b=_t;j([i.property({type:Number})],b.prototype,"value",1);j([i.property({type:Number})],b.prototype,"min",2);j([i.property({type:Number})],b.prototype,"max",2);j([i.property({type:Number})],b.prototype,"step",2);j([i.property({reflect:!0})],b.prototype,"theme",2);j([i.property({reflect:!0})],b.prototype,"size",2);j([i.property()],b.prototype,"placeholder",2);j([i.property()],b.prototype,"label",2);j([i.property({type:Boolean,reflect:!0})],b.prototype,"readonly",2);j([i.property({reflect:!0})],b.prototype,"status",2);customElements.get("wc-input-number")||customElements.define("wc-input-number",b);const Fo=n.css`
1542
1643
  :host {
1543
1644
  display: inline-block;
1544
1645
  width: 240px;
@@ -1822,7 +1923,7 @@
1822
1923
  :host([readonly]) .trigger {
1823
1924
  border-style: dashed;
1824
1925
  }
1825
- `;var So=Object.defineProperty,_o=Object.getOwnPropertyDescriptor,q=(o,e,t,n)=>{for(var r=n>1?void 0:n?_o(e,t):e,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=(n?c(e,t,r):c(r))||r);return n&&r&&So(e,t,r),r};function Gt(o){return String(o).padStart(2,"0")}function ye(o){return`${o.getFullYear()}-${Gt(o.getMonth()+1)}-${Gt(o.getDate())}`}function We(o){const e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(o);if(!e)return null;const t=new Date(Number(e[1]),Number(e[2])-1,Number(e[3]));return Number.isNaN(t.getTime())?null:t}function Zt(o,e){return new Date(o.getFullYear(),o.getMonth(),o.getDate()+e)}const ft=class ft extends M(i.LitElement){constructor(){super(),this._value="",this.placeholder="",this.label="",this.size="medium",this.status="default",this.clearable=!1,this.readonly=!1,this.firstDayOfWeek=0,this.open=!1,this.viewYear=new Date().getFullYear(),this.viewMonth=new Date().getMonth(),this.activeIso="",this.localize=new v(this),this.uid=`wc-date-picker-${Math.random().toString(36).slice(2,8)}`,this.onDocumentClick=e=>{e.composedPath().includes(this)||this.hide()},this.handleKeydown=e=>{if(!(this.disabled||this.readonly))switch(e.key){case"Enter":case" ":e.preventDefault(),this.open&&this.activeIso?this.selectDate(this.activeIso):this.show();break;case"Escape":e.preventDefault(),this.hide();break;case"ArrowLeft":e.preventDefault(),this.open?this.moveActive(-1):this.show();break;case"ArrowRight":e.preventDefault(),this.open?this.moveActive(1):this.show();break;case"ArrowUp":e.preventDefault(),this.open?this.moveActive(-7):this.show();break;case"ArrowDown":e.preventDefault(),this.open?this.moveActive(7):this.show();break;case"Home":this.open&&(e.preventDefault(),this.moveActive(-7));break;case"End":this.open&&(e.preventDefault(),this.moveActive(7));break;case"Tab":this.hide();break}},this.addEventListener("keydown",this.handleKeydown)}get value(){return this._value}set value(e){const t=this._value;this._value=e&&We(e)?e:"",this.requestUpdate("value",t)}get defaultValue(){return this.getAttribute("value")??""}updated(e){super.updated(e),e.has("value")&&this.internals.setFormValue(this.value||null)}formResetCallback(){super.formResetCallback(),this.value=String(this.defaultValue??""),this.internals.setFormValue(this.value||null)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.onDocumentClick)}disconnectedCallback(){document.removeEventListener("click",this.onDocumentClick),super.disconnectedCallback()}show(){if(this.disabled||this.readonly||this.open)return;this.open=!0;const e=We(this.value)??new Date;this.viewYear=e.getFullYear(),this.viewMonth=e.getMonth(),this.activeIso=ye(e)}hide(){this.open&&(this.open=!1,this.activeIso="")}toggle(){this.open?this.hide():this.show()}setView(e,t){this.viewYear=e,this.viewMonth=t,this.requestUpdate()}prevMonth(){const e=this.viewMonth===0?11:this.viewMonth-1,t=this.viewMonth===0?this.viewYear-1:this.viewYear;this.setView(t,e)}nextMonth(){const e=this.viewMonth===11?0:this.viewMonth+1,t=this.viewMonth===11?this.viewYear+1:this.viewYear;this.setView(t,e)}prevYear(){this.setView(this.viewYear-1,this.viewMonth)}nextYear(){this.setView(this.viewYear+1,this.viewMonth)}get calendarCells(){const t=(new Date(this.viewYear,this.viewMonth,1).getDay()-this.firstDayOfWeek+7)%7,n=new Date(this.viewYear,this.viewMonth,1-t),r=ye(new Date),a=[];for(let c=0;c<42;c++){const u=Zt(n,c),Ee=ye(u);a.push({iso:Ee,day:u.getDate(),inMonth:u.getMonth()===this.viewMonth,isToday:Ee===r})}return a}get weekdayLabels(){return Array.from({length:7},(e,t)=>this.localize.date(new Date(2023,0,1+(this.firstDayOfWeek+t)%7),{weekday:"narrow"}))}get monthLabel(){return this.localize.date(new Date(this.viewYear,this.viewMonth,1),{year:"numeric",month:"long"})}selectDate(e){this.value=e,this.hide(),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:e},bubbles:!0,composed:!0}))}handleClear(e){e.preventDefault(),e.stopPropagation(),this.value="",this.hide(),this.dispatchEvent(new CustomEvent("wc-clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:""},bubbles:!0,composed:!0}))}selectToday(){this.selectDate(ye(new Date))}onCellClick(e){const t=e.target.closest("[data-iso]");t?.dataset.iso&&this.selectDate(t.dataset.iso)}moveActive(e){if(!this.open)return;const t=We(this.activeIso)??new Date,n=Zt(t,e),r=ye(n);this.activeIso=r,n.getFullYear()!==this.viewYear||n.getMonth()!==this.viewMonth?this.setView(n.getFullYear(),n.getMonth()):this.requestUpdate()}render(){const e=this.clearable&&this.value&&!this.disabled&&!this.readonly,t=this.open?this.calendarCells:[],n=[];for(let r=0;r<t.length;r+=7)n.push(t.slice(r,r+7));return i.html`
1926
+ `;var Uo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,R=(a,e,t,l)=>{for(var r=l>1?void 0:l?Yo(e,t):e,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=(l?c(e,t,r):c(r))||r);return l&&r&&Uo(e,t,r),r};function hr(a){return String(a).padStart(2,"0")}function Me(a){return`${a.getFullYear()}-${hr(a.getMonth()+1)}-${hr(a.getDate())}`}function it(a){const e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(a);if(!e)return null;const t=new Date(Number(e[1]),Number(e[2])-1,Number(e[3]));return Number.isNaN(t.getTime())?null:t}function ur(a,e){return new Date(a.getFullYear(),a.getMonth(),a.getDate()+e)}const Lt=class Lt extends V(n.LitElement){constructor(){super(),this._value="",this.placeholder="",this.label="",this.size="medium",this.status="default",this.clearable=!1,this.readonly=!1,this.firstDayOfWeek=0,this.open=!1,this.viewYear=new Date().getFullYear(),this.viewMonth=new Date().getMonth(),this.activeIso="",this.localize=new v(this),this.uid=`wc-date-picker-${Math.random().toString(36).slice(2,8)}`,this.onDocumentClick=e=>{e.composedPath().includes(this)||this.hide()},this.handleKeydown=e=>{if(!(this.disabled||this.readonly))switch(e.key){case"Enter":case" ":e.preventDefault(),this.open&&this.activeIso?this.selectDate(this.activeIso):this.show();break;case"Escape":e.preventDefault(),this.hide();break;case"ArrowLeft":e.preventDefault(),this.open?this.moveActive(-1):this.show();break;case"ArrowRight":e.preventDefault(),this.open?this.moveActive(1):this.show();break;case"ArrowUp":e.preventDefault(),this.open?this.moveActive(-7):this.show();break;case"ArrowDown":e.preventDefault(),this.open?this.moveActive(7):this.show();break;case"Home":this.open&&(e.preventDefault(),this.moveActive(-7));break;case"End":this.open&&(e.preventDefault(),this.moveActive(7));break;case"Tab":this.hide();break}},this.addEventListener("keydown",this.handleKeydown)}get value(){return this._value}set value(e){const t=this._value;this._value=e&&it(e)?e:"",this.requestUpdate("value",t)}get defaultValue(){return this.getAttribute("value")??""}updated(e){super.updated(e),e.has("value")&&this.internals.setFormValue(this.value||null)}formResetCallback(){super.formResetCallback(),this.value=String(this.defaultValue??""),this.internals.setFormValue(this.value||null)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.onDocumentClick)}disconnectedCallback(){document.removeEventListener("click",this.onDocumentClick),super.disconnectedCallback()}show(){if(this.disabled||this.readonly||this.open)return;this.open=!0;const e=it(this.value)??new Date;this.viewYear=e.getFullYear(),this.viewMonth=e.getMonth(),this.activeIso=Me(e)}hide(){this.open&&(this.open=!1,this.activeIso="")}toggle(){this.open?this.hide():this.show()}setView(e,t){this.viewYear=e,this.viewMonth=t,this.requestUpdate()}prevMonth(){const e=this.viewMonth===0?11:this.viewMonth-1,t=this.viewMonth===0?this.viewYear-1:this.viewYear;this.setView(t,e)}nextMonth(){const e=this.viewMonth===11?0:this.viewMonth+1,t=this.viewMonth===11?this.viewYear+1:this.viewYear;this.setView(t,e)}prevYear(){this.setView(this.viewYear-1,this.viewMonth)}nextYear(){this.setView(this.viewYear+1,this.viewMonth)}get calendarCells(){const t=(new Date(this.viewYear,this.viewMonth,1).getDay()-this.firstDayOfWeek+7)%7,l=new Date(this.viewYear,this.viewMonth,1-t),r=Me(new Date),s=[];for(let c=0;c<42;c++){const p=ur(l,c),Ae=Me(p);s.push({iso:Ae,day:p.getDate(),inMonth:p.getMonth()===this.viewMonth,isToday:Ae===r})}return s}get weekdayLabels(){return Array.from({length:7},(e,t)=>this.localize.date(new Date(2023,0,1+(this.firstDayOfWeek+t)%7),{weekday:"narrow"}))}get monthLabel(){return this.localize.date(new Date(this.viewYear,this.viewMonth,1),{year:"numeric",month:"long"})}selectDate(e){this.value=e,this.hide(),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:e},bubbles:!0,composed:!0}))}handleClear(e){e.preventDefault(),e.stopPropagation(),this.value="",this.hide(),this.dispatchEvent(new CustomEvent("wc-clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:""},bubbles:!0,composed:!0}))}selectToday(){this.selectDate(Me(new Date))}onCellClick(e){const t=e.target.closest("[data-iso]");t?.dataset.iso&&this.selectDate(t.dataset.iso)}moveActive(e){if(!this.open)return;const t=it(this.activeIso)??new Date,l=ur(t,e),r=Me(l);this.activeIso=r,l.getFullYear()!==this.viewYear||l.getMonth()!==this.viewMonth?this.setView(l.getFullYear(),l.getMonth()):this.requestUpdate()}render(){const e=this.clearable&&this.value&&!this.disabled&&!this.readonly,t=this.open?this.calendarCells:[],l=[];for(let r=0;r<t.length;r+=7)l.push(t.slice(r,r+7));return n.html`
1826
1927
  <div class="picker" part="base">
1827
1928
  <div
1828
1929
  class="trigger"
@@ -1840,7 +1941,7 @@
1840
1941
  <span class="value ${this.value?"":"placeholder"}" part="value"
1841
1942
  >${this.value||this.placeholder||this.localize.term("datePicker.placeholder")}</span
1842
1943
  >
1843
- ${e?i.html`
1944
+ ${e?n.html`
1844
1945
  <span
1845
1946
  class="clear"
1846
1947
  part="clear-button"
@@ -1907,19 +2008,19 @@
1907
2008
  </div>
1908
2009
  <div class="grid" part="grid" role="grid">
1909
2010
  <div class="row weekdays" role="row">
1910
- ${this.weekdayLabels.map(r=>i.html`<span class="cell weekday" role="columnheader">${r}</span>`)}
2011
+ ${this.weekdayLabels.map(r=>n.html`<span class="cell weekday" role="columnheader">${r}</span>`)}
1911
2012
  </div>
1912
- ${n.map(r=>i.html`
2013
+ ${l.map(r=>n.html`
1913
2014
  <div class="row" role="row">
1914
- ${r.map(a=>i.html`
2015
+ ${r.map(s=>n.html`
1915
2016
  <span
1916
- class="cell day ${a.inMonth?"":"out"} ${a.iso===this.value?"selected":""} ${a.iso===this.activeIso?"active":""}"
2017
+ class="cell day ${s.inMonth?"":"out"} ${s.iso===this.value?"selected":""} ${s.iso===this.activeIso?"active":""}"
1917
2018
  role="gridcell"
1918
- data-iso=${a.iso}
1919
- id="${this.uid}-cell-${a.iso}"
1920
- aria-selected=${a.iso===this.value}
2019
+ data-iso=${s.iso}
2020
+ id="${this.uid}-cell-${s.iso}"
2021
+ aria-selected=${s.iso===this.value}
1921
2022
  @click=${this.onCellClick}
1922
- >${a.day}</span
2023
+ >${s.day}</span
1923
2024
  >
1924
2025
  `)}
1925
2026
  </div>
@@ -1938,7 +2039,7 @@
1938
2039
  </div>
1939
2040
  </div>
1940
2041
  </div>
1941
- `}};ft.styles=[l,Eo];let g=ft;q([s.property()],g.prototype,"value",1);q([s.property()],g.prototype,"placeholder",2);q([s.property()],g.prototype,"label",2);q([s.property({reflect:!0})],g.prototype,"size",2);q([s.property({reflect:!0})],g.prototype,"status",2);q([s.property({type:Boolean,reflect:!0})],g.prototype,"clearable",2);q([s.property({type:Boolean,reflect:!0})],g.prototype,"readonly",2);q([s.property({type:Number,attribute:"first-day-of-week"})],g.prototype,"firstDayOfWeek",2);q([s.property({type:Boolean,reflect:!0})],g.prototype,"open",2);customElements.get("wc-date-picker")||customElements.define("wc-date-picker",g);const lr=i.css`
2042
+ `}};Lt.styles=[d,Fo];let k=Lt;R([i.property()],k.prototype,"value",1);R([i.property()],k.prototype,"placeholder",2);R([i.property()],k.prototype,"label",2);R([i.property({reflect:!0})],k.prototype,"size",2);R([i.property({reflect:!0})],k.prototype,"status",2);R([i.property({type:Boolean,reflect:!0})],k.prototype,"clearable",2);R([i.property({type:Boolean,reflect:!0})],k.prototype,"readonly",2);R([i.property({type:Number,attribute:"first-day-of-week"})],k.prototype,"firstDayOfWeek",2);R([i.property({type:Boolean,reflect:!0})],k.prototype,"open",2);customElements.get("wc-date-picker")||customElements.define("wc-date-picker",k);const Er=n.css`
1942
2043
  :host {
1943
2044
  display: block;
1944
2045
  }
@@ -1991,11 +2092,11 @@
1991
2092
  :host([disabled]) .label {
1992
2093
  color: var(--wc-color-text-disabled);
1993
2094
  }
1994
- `,yt=class yt extends i.LitElement{constructor(){super(),this.onSubmit=e=>{e.preventDefault(),this.submit()},this.onHostClick=e=>{const t=e.composedPath().find(r=>r instanceof Element&&r.tagName==="WC-BUTTON");if(!t)return;const n=t.getAttribute("type");n==="submit"?(e.preventDefault(),this.submit()):n==="reset"&&(e.preventDefault(),this.reset())},this.addEventListener("click",this.onHostClick)}connectedCallback(){super.connectedCallback(),this.addEventListener("submit",this.onSubmit)}getItems(){return(this.shadowRoot.querySelector("slot")?.assignedElements()??[]).filter(t=>t.tagName==="WC-FORM-ITEM")}getItem(e){return this.getItems().find(t=>t.name===e)}async validate(){const e={};for(const n of this.getItems()){const r=await n.validate();r&&(e[n.name||`field-${Object.keys(e).length}`]=r)}const t=Object.values(e)[0]??"";return t&&this.focusFirstError(),{valid:Object.keys(e).length===0,errors:e,firstError:t}}reset(){for(const e of this.getItems())e.reset()}async submit(){const e=await this.validate();this.dispatchEvent(new CustomEvent("wc-submit",{detail:e,bubbles:!0,composed:!0}))}focusFirstError(){const e=this.getItems().find(t=>t.error)?.control;!e||typeof e.focus!="function"||(e.focus(),document.activeElement!==e&&e.shadowRoot?.querySelector("input, textarea, button, [tabindex]")?.focus())}render(){return i.html`
2095
+ `,Ot=class Ot extends n.LitElement{constructor(){super(),this.onSubmit=e=>{e.preventDefault(),this.submit()},this.onHostClick=e=>{const t=e.composedPath().find(r=>r instanceof Element&&r.tagName==="WC-BUTTON");if(!t)return;const l=t.getAttribute("html-type");l==="submit"?(e.preventDefault(),this.submit()):l==="reset"&&(e.preventDefault(),this.reset())},this.addEventListener("click",this.onHostClick)}connectedCallback(){super.connectedCallback(),this.addEventListener("submit",this.onSubmit)}getItems(){return(this.shadowRoot.querySelector("slot")?.assignedElements()??[]).filter(t=>t.tagName==="WC-FORM-ITEM")}getItem(e){return this.getItems().find(t=>t.name===e)}async validate(){const e={};for(const l of this.getItems()){const r=await l.validate();r&&(e[l.name||`field-${Object.keys(e).length}`]=r)}const t=Object.values(e)[0]??"";return t&&this.focusFirstError(),{valid:Object.keys(e).length===0,errors:e,firstError:t}}reset(){for(const e of this.getItems())e.reset()}async submit(){const e=await this.validate();this.dispatchEvent(new CustomEvent("wc-submit",{detail:e,bubbles:!0,composed:!0}))}focusFirstError(){const e=this.getItems().find(t=>t.error)?.control;!e||typeof e.focus!="function"||(e.focus(),document.activeElement!==e&&e.shadowRoot?.querySelector("input, textarea, button, [tabindex]")?.focus())}render(){return n.html`
1995
2096
  <form class="form" part="form" novalidate>
1996
2097
  <slot></slot>
1997
2098
  </form>
1998
- `}};yt.styles=[l,lr];let Le=yt;customElements.get("wc-form")||customElements.define("wc-form",Le);var Oo=Object.defineProperty,A=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Oo(e,t,r),r};const xt=class xt extends i.LitElement{constructor(){super(),this.name="",this.label="",this.required=!1,this.pattern="",this.rules=[],this._error="",this.localize=new v(this),this.onControlInteract=()=>{this.validate()},this.addEventListener("wc-change",this.onControlInteract),this.addEventListener("blur",this.onControlInteract,!0)}get error(){return this._error}get control(){return this.shadowRoot.querySelector("slot")?.assignedElements()[0]??null}get controlValue(){return this.control?.value??""}get effectiveRules(){const e=[];return this.required&&e.push({required:!0}),this.min!==void 0&&e.push({min:this.min}),this.max!==void 0&&e.push({max:this.max}),this.minLength!==void 0&&e.push({minLength:this.minLength}),this.maxLength!==void 0&&e.push({maxLength:this.maxLength}),this.pattern&&e.push({pattern:this.pattern}),[...e,...this.rules]}async validate(){const e=this.controlValue;for(const t of this.effectiveRules){const n=await this.checkRule(t,e);if(n)return this.setError(n),n}return this.clearError(),""}async checkRule(e,t){const n=this.label||this.name||"",r=(c,u)=>e.message??this.localize.term(c,{name:n,...u}),a=t===""||t==null||Array.isArray(t)&&t.length===0;if(e.required&&a)return r("form.required");if(a)return"";if(e.min!==void 0&&Number(t)<e.min)return r("form.min",{min:e.min});if(e.max!==void 0&&Number(t)>e.max)return r("form.max",{max:e.max});if(e.minLength!==void 0&&String(t).length<e.minLength)return r("form.minLength",{minLength:e.minLength});if(e.maxLength!==void 0&&String(t).length>e.maxLength)return r("form.maxLength",{maxLength:e.maxLength});if(e.pattern&&!(typeof e.pattern=="string"?new RegExp(e.pattern):e.pattern).test(String(t)))return r("form.pattern");if(e.validator){const c=await e.validator(t);if(c===!1)return r("form.invalid");if(typeof c=="string"&&c)return c}return""}setError(e){this._error=e,this.applyControlStatus(),this.requestUpdate()}clearError(){this._error&&(this._error="",this.applyControlStatus(),this.requestUpdate())}applyControlStatus(){const e=this.control;e&&"status"in e&&(e.status=this._error?"error":"default")}reset(){const e=this.control;e&&(typeof e.formResetCallback=="function"?e.formResetCallback():"value"in e&&(e.value=""),this.clearError())}render(){return i.html`
2099
+ `}};Ot.styles=[d,Er];let He=Ot;customElements.get("wc-form")||customElements.define("wc-form",He);var Ko=Object.defineProperty,F=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Ko(e,t,r),r};const It=class It extends n.LitElement{constructor(){super(),this.name="",this.label="",this.required=!1,this.pattern="",this.rules=[],this._error="",this.localize=new v(this),this.onControlInteract=()=>{this.validate()},this.addEventListener("wc-change",this.onControlInteract),this.addEventListener("blur",this.onControlInteract,!0)}get error(){return this._error}get control(){return this.shadowRoot.querySelector("slot")?.assignedElements()[0]??null}get controlValue(){return this.control?.value??""}get effectiveRules(){const e=[];return this.required&&e.push({required:!0}),this.min!==void 0&&e.push({min:this.min}),this.max!==void 0&&e.push({max:this.max}),this.minLength!==void 0&&e.push({minLength:this.minLength}),this.maxLength!==void 0&&e.push({maxLength:this.maxLength}),this.pattern&&e.push({pattern:this.pattern}),[...e,...this.rules]}async validate(){const e=this.controlValue;for(const t of this.effectiveRules){const l=await this.checkRule(t,e);if(l)return this.setError(l),l}return this.clearError(),""}async checkRule(e,t){const l=this.label||this.name||"",r=(c,p)=>e.message??this.localize.term(c,{name:l,...p}),s=t===""||t==null||Array.isArray(t)&&t.length===0;if(e.required&&s)return r("form.required");if(s)return"";if(e.min!==void 0&&Number(t)<e.min)return r("form.min",{min:e.min});if(e.max!==void 0&&Number(t)>e.max)return r("form.max",{max:e.max});if(e.minLength!==void 0&&String(t).length<e.minLength)return r("form.minLength",{minLength:e.minLength});if(e.maxLength!==void 0&&String(t).length>e.maxLength)return r("form.maxLength",{maxLength:e.maxLength});if(e.pattern&&!(typeof e.pattern=="string"?new RegExp(e.pattern):e.pattern).test(String(t)))return r("form.pattern");if(e.validator){const c=await e.validator(t);if(c===!1)return r("form.invalid");if(typeof c=="string"&&c)return c}return""}setError(e){this._error=e,this.applyControlStatus(),this.requestUpdate()}clearError(){this._error&&(this._error="",this.applyControlStatus(),this.requestUpdate())}applyControlStatus(){const e=this.control;e&&"status"in e&&(e.status=this._error?"error":"default")}reset(){const e=this.control;e&&(typeof e.formResetCallback=="function"?e.formResetCallback():"value"in e&&(e.value=""),this.clearError())}render(){return n.html`
1999
2100
  <div class="item" part="base">
2000
2101
  <label class="label" part="label">
2001
2102
  <span class="asterisk" ?hidden=${!this.required}>*</span>${this.label}
@@ -2005,7 +2106,7 @@
2005
2106
  <div class="error" part="error" role="alert" ?hidden=${!this._error}>${this._error}</div>
2006
2107
  </div>
2007
2108
  </div>
2008
- `}};xt.styles=[l,lr];let f=xt;A([s.property()],f.prototype,"name");A([s.property()],f.prototype,"label");A([s.property({type:Boolean,reflect:!0})],f.prototype,"required");A([s.property({type:Number})],f.prototype,"min");A([s.property({type:Number})],f.prototype,"max");A([s.property({type:Number,attribute:"min-length"})],f.prototype,"minLength");A([s.property({type:Number,attribute:"max-length"})],f.prototype,"maxLength");A([s.property()],f.prototype,"pattern");A([s.property({attribute:!1})],f.prototype,"rules");customElements.get("wc-form-item")||customElements.define("wc-form-item",f);const Po=i.css`
2109
+ `}};It.styles=[d,Er];let $=It;F([i.property()],$.prototype,"name");F([i.property()],$.prototype,"label");F([i.property({type:Boolean,reflect:!0})],$.prototype,"required");F([i.property({type:Number})],$.prototype,"min");F([i.property({type:Number})],$.prototype,"max");F([i.property({type:Number,attribute:"min-length"})],$.prototype,"minLength");F([i.property({type:Number,attribute:"max-length"})],$.prototype,"maxLength");F([i.property()],$.prototype,"pattern");F([i.property({attribute:!1})],$.prototype,"rules");customElements.get("wc-form-item")||customElements.define("wc-form-item",$);const Wo=n.css`
2009
2110
  :host {
2010
2111
  display: block;
2011
2112
 
@@ -2082,7 +2183,7 @@
2082
2183
  :host([vertical]) .divider {
2083
2184
  margin: 0;
2084
2185
  }
2085
- `;var Lo=Object.defineProperty,at=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Lo(e,t,r),r};const kt=class kt extends i.LitElement{constructor(){super(...arguments),this.dashed=!1,this.align="center",this.vertical=!1,this._hasContent=!1}onSlotChange(e){this._hasContent=e.target.assignedNodes({flatten:!0}).length>0,this.requestUpdate()}render(){return this.vertical?i.html`<span class="line vertical" part="line"></span>`:i.html`
2186
+ `;var Xo=Object.defineProperty,vt=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Xo(e,t,r),r};const Pt=class Pt extends n.LitElement{constructor(){super(...arguments),this.dashed=!1,this.align="center",this.vertical=!1,this._hasContent=!1}onSlotChange(e){this._hasContent=e.target.assignedNodes({flatten:!0}).length>0,this.requestUpdate()}render(){return this.vertical?n.html`<span class="line vertical" part="line"></span>`:n.html`
2086
2187
  <div class="divider ${`align-${this.align}`}" part="base">
2087
2188
  <span class="line start" part="line"></span>
2088
2189
  <span class="content" part="content" ?hidden=${!this._hasContent}>
@@ -2090,7 +2191,7 @@
2090
2191
  </span>
2091
2192
  <span class="line end" part="line"></span>
2092
2193
  </div>
2093
- `}};kt.styles=[l,Po];let re=kt;at([s.property({type:Boolean,reflect:!0})],re.prototype,"dashed");at([s.property({reflect:!0})],re.prototype,"align");at([s.property({type:Boolean,reflect:!0})],re.prototype,"vertical");customElements.get("wc-divider")||customElements.define("wc-divider",re);const Mo=i.css`
2194
+ `}};Pt.styles=[d,Wo];let ce=Pt;vt([i.property({type:Boolean,reflect:!0})],ce.prototype,"dashed");vt([i.property({reflect:!0})],ce.prototype,"align");vt([i.property({type:Boolean,reflect:!0})],ce.prototype,"vertical");customElements.get("wc-divider")||customElements.define("wc-divider",ce);const Go=n.css`
2094
2195
  :host {
2095
2196
  display: inline-block;
2096
2197
 
@@ -2171,7 +2272,7 @@
2171
2272
  border-color: var(--wc-color-border);
2172
2273
  }
2173
2274
 
2174
- /* ---- 语义色 × light 浅底(默认 variant) ---- */
2275
+ /* ---- 语义色 × light 浅底(默认 type) ---- */
2175
2276
  :host([theme='primary']) .tag {
2176
2277
  color: var(--wc-color-primary);
2177
2278
  background-color: var(--wc-color-primary-light);
@@ -2193,54 +2294,54 @@
2193
2294
  }
2194
2295
 
2195
2296
  /* ---- dark 实底 ---- */
2196
- :host([variant='dark'][theme='default']) .tag {
2297
+ :host([type='dark'][theme='default']) .tag {
2197
2298
  color: var(--wc-color-text-anti);
2198
2299
  background-color: var(--wc-color-text-secondary);
2199
2300
  border-color: transparent;
2200
2301
  }
2201
2302
 
2202
- :host([variant='dark'][theme='primary']) .tag {
2303
+ :host([type='dark'][theme='primary']) .tag {
2203
2304
  color: var(--wc-color-text-anti);
2204
2305
  background-color: var(--wc-color-primary);
2205
2306
  }
2206
2307
 
2207
- :host([variant='dark'][theme='success']) .tag {
2308
+ :host([type='dark'][theme='success']) .tag {
2208
2309
  color: var(--wc-color-text-anti);
2209
2310
  background-color: var(--wc-color-success);
2210
2311
  }
2211
2312
 
2212
- :host([variant='dark'][theme='warning']) .tag {
2313
+ :host([type='dark'][theme='warning']) .tag {
2213
2314
  color: var(--wc-color-text-anti);
2214
2315
  background-color: var(--wc-color-warning);
2215
2316
  }
2216
2317
 
2217
- :host([variant='dark'][theme='danger']) .tag {
2318
+ :host([type='dark'][theme='danger']) .tag {
2218
2319
  color: var(--wc-color-text-anti);
2219
2320
  background-color: var(--wc-color-error);
2220
2321
  }
2221
2322
 
2222
2323
  /* ---- outline 描边 ---- */
2223
- :host([variant='outline']) .tag {
2324
+ :host([type='outline']) .tag {
2224
2325
  background-color: transparent;
2225
2326
  }
2226
2327
 
2227
- :host([variant='outline'][theme='default']) .tag {
2328
+ :host([type='outline'][theme='default']) .tag {
2228
2329
  border-color: var(--wc-color-border);
2229
2330
  }
2230
2331
 
2231
- :host([variant='outline'][theme='primary']) .tag {
2332
+ :host([type='outline'][theme='primary']) .tag {
2232
2333
  border-color: var(--wc-color-primary);
2233
2334
  }
2234
2335
 
2235
- :host([variant='outline'][theme='success']) .tag {
2336
+ :host([type='outline'][theme='success']) .tag {
2236
2337
  border-color: var(--wc-color-success);
2237
2338
  }
2238
2339
 
2239
- :host([variant='outline'][theme='warning']) .tag {
2340
+ :host([type='outline'][theme='warning']) .tag {
2240
2341
  border-color: var(--wc-color-warning);
2241
2342
  }
2242
2343
 
2243
- :host([variant='outline'][theme='danger']) .tag {
2344
+ :host([type='outline'][theme='danger']) .tag {
2244
2345
  border-color: var(--wc-color-error);
2245
2346
  }
2246
2347
 
@@ -2253,11 +2354,11 @@
2253
2354
  :host([disabled]) .close {
2254
2355
  cursor: not-allowed;
2255
2356
  }
2256
- `;var Io=Object.defineProperty,Ce=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Io(e,t,r),r};const $t=class $t extends i.LitElement{constructor(){super(...arguments),this.theme="default",this.size="medium",this.variant="light",this.closable=!1,this.disabled=!1,this.localize=new v(this)}handleClose(e){e.stopPropagation(),!this.disabled&&this.dispatchEvent(new CustomEvent("wc-close",{bubbles:!0,composed:!0}))}render(){return i.html`
2357
+ `;var Zo=Object.defineProperty,Ie=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Zo(e,t,r),r};const At=class At extends n.LitElement{constructor(){super(...arguments),this.theme="default",this.size="medium",this.type="light",this.closable=!1,this.disabled=!1,this.localize=new v(this)}handleClose(e){e.stopPropagation(),!this.disabled&&this.dispatchEvent(new CustomEvent("wc-close",{bubbles:!0,composed:!0}))}render(){return n.html`
2257
2358
  <span class="tag" part="base">
2258
2359
  <slot name="icon" class="icon"><span class="icon-placeholder"></span></slot>
2259
2360
  <slot></slot>
2260
- ${this.closable?i.html`
2361
+ ${this.closable?n.html`
2261
2362
  <button
2262
2363
  type="button"
2263
2364
  class="close"
@@ -2271,7 +2372,7 @@
2271
2372
  </button>
2272
2373
  `:""}
2273
2374
  </span>
2274
- `}};$t.styles=[l,Mo];let j=$t;Ce([s.property({reflect:!0})],j.prototype,"theme");Ce([s.property({reflect:!0})],j.prototype,"size");Ce([s.property({reflect:!0})],j.prototype,"variant");Ce([s.property({type:Boolean,reflect:!0})],j.prototype,"closable");Ce([s.property({type:Boolean,reflect:!0})],j.prototype,"disabled");customElements.get("wc-tag")||customElements.define("wc-tag",j);const To=i.css`
2375
+ `}};At.styles=[d,Go];let B=At;Ie([i.property({reflect:!0})],B.prototype,"theme");Ie([i.property({reflect:!0})],B.prototype,"size");Ie([i.property({reflect:!0})],B.prototype,"type");Ie([i.property({type:Boolean,reflect:!0})],B.prototype,"closable");Ie([i.property({type:Boolean,reflect:!0})],B.prototype,"disabled");customElements.get("wc-tag")||customElements.define("wc-tag",B);const Jo=n.css`
2275
2376
  :host {
2276
2377
  display: inline-block;
2277
2378
 
@@ -2326,7 +2427,7 @@
2326
2427
  .avatar ::slotted(wc-icon) {
2327
2428
  color: var(--wc-color-text-placeholder);
2328
2429
  }
2329
- `;var Do=Object.defineProperty,dr=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Do(e,t,r),r};const jo=["small","medium","large"],zt=class zt extends i.LitElement{constructor(){super(...arguments),this.size="medium",this.shape="circle"}get isPreset(){return jo.includes(this.size)}get customStyle(){if(this.isPreset)return"";const e=this.size.trim(),t=/^\d+$/.test(e)?`${e}px`:e;return`--wc-avatar-size:${t};--wc-avatar-font-size:${t}`}render(){return i.html`
2430
+ `;var Qo=Object.defineProperty,Mr=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Qo(e,t,r),r};const ei=["small","medium","large"],Tt=class Tt extends n.LitElement{constructor(){super(...arguments),this.size="medium",this.shape="circle"}get isPreset(){return ei.includes(this.size)}get customStyle(){if(this.isPreset)return"";const e=this.size.trim(),t=/^\d+$/.test(e)?`${e}px`:e;return`--wc-avatar-size:${t};--wc-avatar-font-size:${t}`}render(){return n.html`
2330
2431
  <div
2331
2432
  class="avatar ${this.isPreset?this.size:"custom"} shape-${this.shape}"
2332
2433
  part="base"
@@ -2334,7 +2435,7 @@
2334
2435
  >
2335
2436
  <slot></slot>
2336
2437
  </div>
2337
- `}};zt.styles=[l,To];let ue=zt;dr([s.property()],ue.prototype,"size");dr([s.property({reflect:!0})],ue.prototype,"shape");customElements.get("wc-avatar")||customElements.define("wc-avatar",ue);const No=i.css`
2438
+ `}};Tt.styles=[d,Jo];let fe=Tt;Mr([i.property()],fe.prototype,"size");Mr([i.property({reflect:!0})],fe.prototype,"shape");customElements.get("wc-avatar")||customElements.define("wc-avatar",fe);const ti=n.css`
2338
2439
  :host {
2339
2440
  display: inline-block;
2340
2441
  }
@@ -2380,7 +2481,7 @@
2380
2481
  .align-stretch {
2381
2482
  align-items: stretch;
2382
2483
  }
2383
- `;var qo=Object.defineProperty,Ne=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&qo(e,t,r),r};const Ao={small:"var(--wc-space-2)",medium:"var(--wc-space-4)",large:"var(--wc-space-6)"},Ct=class Ct extends i.LitElement{constructor(){super(...arguments),this.size="medium",this.direction="horizontal",this.wrap=!1}get gapValue(){const e=Ao[this.size];if(e)return e;const t=this.size.trim();return/^\d+$/.test(t)?`${t}px`:t}render(){return i.html`
2484
+ `;var ri=Object.defineProperty,Ue=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&ri(e,t,r),r};const oi={small:"var(--wc-space-2)",medium:"var(--wc-space-4)",large:"var(--wc-space-6)"},Dt=class Dt extends n.LitElement{constructor(){super(...arguments),this.size="medium",this.direction="horizontal",this.wrap=!1}get gapValue(){const e=oi[this.size];if(e)return e;const t=this.size.trim();return/^\d+$/.test(t)?`${t}px`:t}render(){return n.html`
2384
2485
  <div
2385
2486
  class="space ${`align-${this.align??(this.direction==="vertical"?"stretch":"center")}`}"
2386
2487
  part="base"
@@ -2388,7 +2489,7 @@
2388
2489
  >
2389
2490
  <slot></slot>
2390
2491
  </div>
2391
- `}};Ct.styles=[l,No];let U=Ct;Ne([s.property()],U.prototype,"size");Ne([s.property({reflect:!0})],U.prototype,"direction");Ne([s.property({reflect:!0})],U.prototype,"align");Ne([s.property({type:Boolean,reflect:!0})],U.prototype,"wrap");customElements.get("wc-space")||customElements.define("wc-space",U);const hr=i.css`
2492
+ `}};Dt.styles=[d,ti];let G=Dt;Ue([i.property()],G.prototype,"size");Ue([i.property({reflect:!0})],G.prototype,"direction");Ue([i.property({reflect:!0})],G.prototype,"align");Ue([i.property({type:Boolean,reflect:!0})],G.prototype,"wrap");customElements.get("wc-space")||customElements.define("wc-space",G);const Sr=n.css`
2392
2493
  :host {
2393
2494
  display: block;
2394
2495
  }
@@ -2462,7 +2563,7 @@
2462
2563
  padding-right: calc(var(--wc-row-gutter, 0) / 2);
2463
2564
  padding-left: calc(var(--wc-row-gutter, 0) / 2);
2464
2565
  }
2465
- `;var Bo=Object.defineProperty,be=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Bo(e,t,r),r};const Et=class Et extends i.LitElement{constructor(){super(...arguments),this.gutter=0,this.justify="start",this.align="top",this.wrap=!1}render(){return i.html`
2566
+ `;var ii=Object.defineProperty,ze=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&ii(e,t,r),r};const Vt=class Vt extends n.LitElement{constructor(){super(...arguments),this.gutter=0,this.justify="start",this.align="top",this.wrap=!1}render(){return n.html`
2466
2567
  <div
2467
2568
  class="row ${`justify-${this.justify} align-${this.align}`}"
2468
2569
  part="base"
@@ -2470,7 +2571,7 @@
2470
2571
  >
2471
2572
  <slot></slot>
2472
2573
  </div>
2473
- `}};Et.styles=[l,hr];let Y=Et;be([s.property({type:Number})],Y.prototype,"gutter");be([s.property({reflect:!0})],Y.prototype,"justify");be([s.property({reflect:!0})],Y.prototype,"align");be([s.property({type:Boolean,reflect:!0})],Y.prototype,"wrap");const St=class St extends i.LitElement{constructor(){super(...arguments),this.span=24,this.offset=0}get widthPercent(){return`${(Math.min(24,Math.max(1,Math.round(this.span)||24))/24*100).toFixed(4)}%`}get offsetPercent(){return`${(Math.min(23,Math.max(0,Math.round(this.offset)||0))/24*100).toFixed(4)}%`}render(){return i.html`
2574
+ `}};Vt.styles=[d,Sr];let Z=Vt;ze([i.property({type:Number})],Z.prototype,"gutter");ze([i.property({reflect:!0})],Z.prototype,"justify");ze([i.property({reflect:!0})],Z.prototype,"align");ze([i.property({type:Boolean,reflect:!0})],Z.prototype,"wrap");const jt=class jt extends n.LitElement{constructor(){super(...arguments),this.span=24,this.offset=0}get widthPercent(){return`${(Math.min(24,Math.max(1,Math.round(this.span)||24))/24*100).toFixed(4)}%`}get offsetPercent(){return`${(Math.min(23,Math.max(0,Math.round(this.offset)||0))/24*100).toFixed(4)}%`}render(){return n.html`
2474
2575
  <div
2475
2576
  class="col"
2476
2577
  part="base"
@@ -2478,12 +2579,12 @@
2478
2579
  >
2479
2580
  <slot></slot>
2480
2581
  </div>
2481
- `}};St.styles=[l,hr];let ve=St;be([s.property({type:Number})],ve.prototype,"span");be([s.property({type:Number})],ve.prototype,"offset");customElements.get("wc-row")||customElements.define("wc-row",Y);customElements.get("wc-col")||customElements.define("wc-col",ve);const Ro=i.css`
2582
+ `}};jt.styles=[d,Sr];let xe=jt;ze([i.property({type:Number})],xe.prototype,"span");ze([i.property({type:Number})],xe.prototype,"offset");customElements.get("wc-row")||customElements.define("wc-row",Z);customElements.get("wc-col")||customElements.define("wc-col",xe);const ai=n.css`
2482
2583
  :host {
2483
2584
  display: inline;
2484
2585
  }
2485
2586
 
2486
- :host([variant='heading']) {
2587
+ :host([type='heading']) {
2487
2588
  display: block;
2488
2589
  }
2489
2590
 
@@ -2530,19 +2631,19 @@
2530
2631
  }
2531
2632
 
2532
2633
  /* ---- 语义色 ---- */
2533
- :host([type='secondary']) .text {
2634
+ :host([theme='secondary']) .text {
2534
2635
  color: var(--wc-color-text-secondary);
2535
2636
  }
2536
2637
 
2537
- :host([type='success']) .text {
2638
+ :host([theme='success']) .text {
2538
2639
  color: var(--wc-color-success);
2539
2640
  }
2540
2641
 
2541
- :host([type='warning']) .text {
2642
+ :host([theme='warning']) .text {
2542
2643
  color: var(--wc-color-warning);
2543
2644
  }
2544
2645
 
2545
- :host([type='danger']) .text {
2646
+ :host([theme='danger']) .text {
2546
2647
  color: var(--wc-color-error);
2547
2648
  }
2548
2649
 
@@ -2552,11 +2653,11 @@
2552
2653
  cursor: not-allowed;
2553
2654
  user-select: none;
2554
2655
  }
2555
- `;var Fo=Object.defineProperty,qe=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Fo(e,t,r),r};const _t=class _t extends i.LitElement{constructor(){super(...arguments),this.variant="text",this.level=3,this.type="default",this.disabled=!1}get headingLevel(){const e=Math.round(this.level);return Math.min(6,Math.max(1,Number.isNaN(e)?3:e))}render(){if(this.variant==="heading"){const e=this.headingLevel;return i.html`
2656
+ `;var si=Object.defineProperty,Ye=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&si(e,t,r),r};const Ht=class Ht extends n.LitElement{constructor(){super(...arguments),this.type="text",this.level=3,this.theme="default",this.disabled=!1}get headingLevel(){const e=Math.round(this.level);return Math.min(6,Math.max(1,Number.isNaN(e)?3:e))}render(){if(this.type==="heading"){const e=this.headingLevel;return n.html`
2556
2657
  <div class="text heading level-${e}" part="base" role="heading" aria-level=${e}>
2557
2658
  <slot></slot>
2558
2659
  </div>
2559
- `}return i.html`<span class="text" part="base"><slot></slot></span>`}};_t.styles=[l,Ro];let H=_t;qe([s.property({reflect:!0})],H.prototype,"variant");qe([s.property({type:Number})],H.prototype,"level");qe([s.property({reflect:!0})],H.prototype,"type");qe([s.property({type:Boolean,reflect:!0})],H.prototype,"disabled");customElements.get("wc-text")||customElements.define("wc-text",H);const Vo="wc-dialog, wc-drawer";class st{constructor(e,t){this.host=e,this.hooks=t,this.bound=!1,this.prevFocused=null,this.prevBodyOverflow="",this.onDocumentKeydown=n=>{n.key==="Escape"?(n.stopPropagation(),this.hooks.requestClose("escape")):n.key==="Tab"&&this.trapFocus(n)}}otherOpenOverlays(){let e=0;return document.querySelectorAll(Vo).forEach(t=>{t!==this.host&&t.open&&(e+=1)}),e}trapFocus(e){const t=[...Array.from(this.host.shadowRoot.querySelectorAll('button, [href], [tabindex]:not([tabindex="-1"])')),...Array.from(this.host.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))].filter(c=>!c.hasAttribute("disabled")&&c.offsetParent!==null);if(t.length===0)return;const n=t[0],r=t[t.length-1],a=this.host.shadowRoot.activeElement??document.activeElement;e.shiftKey&&(a===n||!this.host.contains(a))?(e.preventDefault(),r.focus()):!e.shiftKey&&a===r&&(e.preventDefault(),n.focus())}bind(){this.bound||(this.bound=!0,this.prevFocused=document.activeElement,document.addEventListener("keydown",this.onDocumentKeydown,!0),this.otherOpenOverlays()===0&&(this.prevBodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden"),queueMicrotask(()=>{(this.host.shadowRoot?.querySelector('[part="close-button"]')??this.host.shadowRoot?.querySelector('[role="dialog"]'))?.focus()}))}unbind(){this.bound&&(this.bound=!1,document.removeEventListener("keydown",this.onDocumentKeydown,!0),this.otherOpenOverlays()===0&&(document.body.style.overflow=this.prevBodyOverflow),this.prevFocused&&this.prevFocused.focus&&(this.prevFocused.focus(),this.prevFocused=null))}}const Uo=i.css`
2660
+ `}return n.html`<span class="text" part="base"><slot></slot></span>`}};Ht.styles=[d,ai];let J=Ht;Ye([i.property({reflect:!0})],J.prototype,"type");Ye([i.property({type:Number})],J.prototype,"level");Ye([i.property({reflect:!0})],J.prototype,"theme");Ye([i.property({type:Boolean,reflect:!0})],J.prototype,"disabled");customElements.get("wc-text")||customElements.define("wc-text",J);const ni="wc-dialog, wc-drawer";class yt{constructor(e,t){this.host=e,this.hooks=t,this.bound=!1,this.prevFocused=null,this.prevBodyOverflow="",this.onDocumentKeydown=l=>{l.key==="Escape"?(l.stopPropagation(),this.hooks.requestClose("escape")):l.key==="Tab"&&this.trapFocus(l)}}otherOpenOverlays(){let e=0;return document.querySelectorAll(ni).forEach(t=>{t!==this.host&&t.open&&(e+=1)}),e}trapFocus(e){const t=[...Array.from(this.host.shadowRoot.querySelectorAll('button, [href], [tabindex]:not([tabindex="-1"])')),...Array.from(this.host.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))].filter(c=>!c.hasAttribute("disabled")&&c.offsetParent!==null);if(t.length===0)return;const l=t[0],r=t[t.length-1],s=this.host.shadowRoot.activeElement??document.activeElement;e.shiftKey&&(s===l||!this.host.contains(s))?(e.preventDefault(),r.focus()):!e.shiftKey&&s===r&&(e.preventDefault(),l.focus())}bind(){this.bound||(this.bound=!0,this.prevFocused=document.activeElement,document.addEventListener("keydown",this.onDocumentKeydown,!0),this.otherOpenOverlays()===0&&(this.prevBodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden"),queueMicrotask(()=>{(this.host.shadowRoot?.querySelector('[part="close-button"]')??this.host.shadowRoot?.querySelector('[role="dialog"]'))?.focus()}))}unbind(){this.bound&&(this.bound=!1,document.removeEventListener("keydown",this.onDocumentKeydown,!0),this.otherOpenOverlays()===0&&(document.body.style.overflow=this.prevBodyOverflow),this.prevFocused&&this.prevFocused.focus&&(this.prevFocused.focus(),this.prevFocused=null))}}const li=n.css`
2560
2661
  :host {
2561
2662
  display: contents;
2562
2663
 
@@ -2683,7 +2784,7 @@
2683
2784
  animation: none;
2684
2785
  }
2685
2786
  }
2686
- `;var Yo=Object.defineProperty,ge=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Yo(e,t,r),r};const Ot=class Ot extends i.LitElement{constructor(){super(...arguments),this.open=!1,this.header="",this.footer=!0,this.closable=!0,this.closeOnOverlayClick=!1,this.width="",this.localize=new v(this),this.overlay=new st(this,{requestClose:e=>this.requestClose(e)})}connectedCallback(){super.connectedCallback(),this.open&&this.overlay.bind()}disconnectedCallback(){super.disconnectedCallback(),this.overlay.unbind()}show(){this.open||(this.open=!0)}requestClose(e="api"){this.dispatchEvent(new CustomEvent("wc-close",{detail:{reason:e},bubbles:!0,composed:!0,cancelable:!0}))&&(this.open=!1)}confirm(){this.dispatchEvent(new CustomEvent("wc-confirm",{bubbles:!0,composed:!0})),this.requestClose("confirm")}cancel(){this.dispatchEvent(new CustomEvent("wc-cancel",{bubbles:!0,composed:!0})),this.requestClose("cancel")}updated(e){super.updated(e),e.has("open")&&(this.open?(this.dispatchEvent(new CustomEvent("wc-open",{bubbles:!0,composed:!0})),this.overlay.bind()):this.overlay.unbind())}onOverlayClick(e){e.target===e.currentTarget&&this.closeOnOverlayClick&&this.requestClose("overlay")}widthStyle(){if(!this.width)return"";const e=this.width.trim();return`--wc-dialog-width:${/^\d+$/.test(e)?`${e}px`:e}`}render(){return i.html`
2787
+ `;var ci=Object.defineProperty,Ce=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&ci(e,t,r),r};const Bt=class Bt extends n.LitElement{constructor(){super(...arguments),this.open=!1,this.header="",this.footer=!0,this.closable=!0,this.closeOnOverlayClick=!1,this.width="",this.localize=new v(this),this.overlay=new yt(this,{requestClose:e=>this.requestClose(e)})}connectedCallback(){super.connectedCallback(),this.open&&this.overlay.bind()}disconnectedCallback(){super.disconnectedCallback(),this.overlay.unbind()}show(){this.open||(this.open=!0)}requestClose(e="api"){this.dispatchEvent(new CustomEvent("wc-close",{detail:{reason:e},bubbles:!0,composed:!0,cancelable:!0}))&&(this.open=!1)}confirm(){this.dispatchEvent(new CustomEvent("wc-confirm",{bubbles:!0,composed:!0})),this.requestClose("confirm")}cancel(){this.dispatchEvent(new CustomEvent("wc-cancel",{bubbles:!0,composed:!0})),this.requestClose("cancel")}updated(e){super.updated(e),e.has("open")&&(this.open?(this.dispatchEvent(new CustomEvent("wc-open",{bubbles:!0,composed:!0})),this.overlay.bind()):this.overlay.unbind())}onOverlayClick(e){e.target===e.currentTarget&&this.closeOnOverlayClick&&this.requestClose("overlay")}widthStyle(){if(!this.width)return"";const e=this.width.trim();return`--wc-dialog-width:${/^\d+$/.test(e)?`${e}px`:e}`}render(){return n.html`
2687
2788
  <div class="overlay" part="overlay" ?hidden=${!this.open} @click=${this.onOverlayClick}>
2688
2789
  <div
2689
2790
  class="dialog"
@@ -2694,10 +2795,10 @@
2694
2795
  tabindex="-1"
2695
2796
  style=${this.widthStyle()}
2696
2797
  >
2697
- ${this.header||this.closable?i.html`
2798
+ ${this.header||this.closable?n.html`
2698
2799
  <div class="header" part="header">
2699
2800
  <div class="title"><slot name="header">${this.header}</slot></div>
2700
- ${this.closable?i.html`
2801
+ ${this.closable?n.html`
2701
2802
  <button
2702
2803
  type="button"
2703
2804
  class="close"
@@ -2711,7 +2812,7 @@
2711
2812
  </div>
2712
2813
  `:""}
2713
2814
  <div class="body" part="body"><slot></slot></div>
2714
- ${this.footer?i.html`
2815
+ ${this.footer?n.html`
2715
2816
  <div class="footer" part="footer">
2716
2817
  <slot name="footer">
2717
2818
  <wc-button @click=${()=>this.cancel()}>
@@ -2725,7 +2826,7 @@
2725
2826
  `:""}
2726
2827
  </div>
2727
2828
  </div>
2728
- `}};Ot.styles=[l,Uo];let P=Ot;ge([s.property({type:Boolean,reflect:!0})],P.prototype,"open");ge([s.property()],P.prototype,"header");ge([s.property({type:Boolean})],P.prototype,"footer");ge([s.property({type:Boolean,reflect:!0})],P.prototype,"closable");ge([s.property({type:Boolean,attribute:"close-on-overlay-click"})],P.prototype,"closeOnOverlayClick");ge([s.property()],P.prototype,"width");customElements.get("wc-dialog")||customElements.define("wc-dialog",P);const Ho=i.css`
2829
+ `}};Bt.styles=[d,li];let T=Bt;Ce([i.property({type:Boolean,reflect:!0})],T.prototype,"open");Ce([i.property()],T.prototype,"header");Ce([i.property({type:Boolean})],T.prototype,"footer");Ce([i.property({type:Boolean,reflect:!0})],T.prototype,"closable");Ce([i.property({type:Boolean,attribute:"close-on-overlay-click"})],T.prototype,"closeOnOverlayClick");Ce([i.property()],T.prototype,"width");customElements.get("wc-dialog")||customElements.define("wc-dialog",T);const di=n.css`
2729
2830
  :host {
2730
2831
  display: contents;
2731
2832
 
@@ -2876,7 +2977,7 @@
2876
2977
  animation: none;
2877
2978
  }
2878
2979
  }
2879
- `;var Ko=Object.defineProperty,se=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Ko(e,t,r),r};const Wo={small:"300px",medium:"500px",large:"760px"},Pt=class Pt extends i.LitElement{constructor(){super(...arguments),this.open=!1,this.placement="right",this.size="medium",this.header="",this.footer=!0,this.closable=!0,this.closeOnOverlayClick=!0,this.localize=new v(this),this.overlay=new st(this,{requestClose:e=>this.requestClose(e)})}connectedCallback(){super.connectedCallback(),this.open&&this.overlay.bind()}disconnectedCallback(){super.disconnectedCallback(),this.overlay.unbind()}show(){this.open||(this.open=!0)}requestClose(e="api"){this.dispatchEvent(new CustomEvent("wc-close",{detail:{reason:e},bubbles:!0,composed:!0,cancelable:!0}))&&(this.open=!1)}confirm(){this.dispatchEvent(new CustomEvent("wc-confirm",{bubbles:!0,composed:!0})),this.requestClose("confirm")}cancel(){this.dispatchEvent(new CustomEvent("wc-cancel",{bubbles:!0,composed:!0})),this.requestClose("cancel")}updated(e){super.updated(e),e.has("open")&&(this.open?(this.dispatchEvent(new CustomEvent("wc-open",{bubbles:!0,composed:!0})),this.overlay.bind()):this.overlay.unbind())}onOverlayClick(e){e.target===e.currentTarget&&this.closeOnOverlayClick&&this.requestClose("overlay")}sizeStyle(){const t=Wo[this.size]??this.size.trim();return`--wc-drawer-size:${/^\d+$/.test(t)?`${t}px`:t}`}render(){return i.html`
2980
+ `;var pi=Object.defineProperty,he=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&pi(e,t,r),r};const hi={small:"300px",medium:"500px",large:"760px"},Nt=class Nt extends n.LitElement{constructor(){super(...arguments),this.open=!1,this.placement="right",this.size="medium",this.header="",this.footer=!0,this.closable=!0,this.closeOnOverlayClick=!0,this.localize=new v(this),this.overlay=new yt(this,{requestClose:e=>this.requestClose(e)})}connectedCallback(){super.connectedCallback(),this.open&&this.overlay.bind()}disconnectedCallback(){super.disconnectedCallback(),this.overlay.unbind()}show(){this.open||(this.open=!0)}requestClose(e="api"){this.dispatchEvent(new CustomEvent("wc-close",{detail:{reason:e},bubbles:!0,composed:!0,cancelable:!0}))&&(this.open=!1)}confirm(){this.dispatchEvent(new CustomEvent("wc-confirm",{bubbles:!0,composed:!0})),this.requestClose("confirm")}cancel(){this.dispatchEvent(new CustomEvent("wc-cancel",{bubbles:!0,composed:!0})),this.requestClose("cancel")}updated(e){super.updated(e),e.has("open")&&(this.open?(this.dispatchEvent(new CustomEvent("wc-open",{bubbles:!0,composed:!0})),this.overlay.bind()):this.overlay.unbind())}onOverlayClick(e){e.target===e.currentTarget&&this.closeOnOverlayClick&&this.requestClose("overlay")}sizeStyle(){const t=hi[this.size]??this.size.trim();return`--wc-drawer-size:${/^\d+$/.test(t)?`${t}px`:t}`}render(){return n.html`
2880
2981
  <div class="overlay" part="overlay" ?hidden=${!this.open} @click=${this.onOverlayClick}>
2881
2982
  <div
2882
2983
  class="drawer placement-${this.placement}"
@@ -2887,10 +2988,10 @@
2887
2988
  tabindex="-1"
2888
2989
  style=${this.sizeStyle()}
2889
2990
  >
2890
- ${this.header||this.closable?i.html`
2991
+ ${this.header||this.closable?n.html`
2891
2992
  <div class="header" part="header">
2892
2993
  <div class="title"><slot name="header">${this.header}</slot></div>
2893
- ${this.closable?i.html`
2994
+ ${this.closable?n.html`
2894
2995
  <button
2895
2996
  type="button"
2896
2997
  class="close"
@@ -2904,7 +3005,7 @@
2904
3005
  </div>
2905
3006
  `:""}
2906
3007
  <div class="body" part="body"><slot></slot></div>
2907
- ${this.footer?i.html`
3008
+ ${this.footer?n.html`
2908
3009
  <div class="footer" part="footer">
2909
3010
  <slot name="footer">
2910
3011
  <wc-button @click=${()=>this.cancel()}>
@@ -2918,7 +3019,7 @@
2918
3019
  `:""}
2919
3020
  </div>
2920
3021
  </div>
2921
- `}};Pt.styles=[l,Ho];let z=Pt;se([s.property({type:Boolean,reflect:!0})],z.prototype,"open");se([s.property({reflect:!0})],z.prototype,"placement");se([s.property()],z.prototype,"size");se([s.property()],z.prototype,"header");se([s.property({type:Boolean})],z.prototype,"footer");se([s.property({type:Boolean,reflect:!0})],z.prototype,"closable");se([s.property({type:Boolean,attribute:"close-on-overlay-click"})],z.prototype,"closeOnOverlayClick");customElements.get("wc-drawer")||customElements.define("wc-drawer",z);const Xo=i.css`
3022
+ `}};Nt.styles=[d,di];let S=Nt;he([i.property({type:Boolean,reflect:!0})],S.prototype,"open");he([i.property({reflect:!0})],S.prototype,"placement");he([i.property()],S.prototype,"size");he([i.property()],S.prototype,"header");he([i.property({type:Boolean})],S.prototype,"footer");he([i.property({type:Boolean,reflect:!0})],S.prototype,"closable");he([i.property({type:Boolean,attribute:"close-on-overlay-click"})],S.prototype,"closeOnOverlayClick");customElements.get("wc-drawer")||customElements.define("wc-drawer",S);const ui=n.css`
2922
3023
  :host {
2923
3024
  display: block;
2924
3025
  pointer-events: auto;
@@ -3007,7 +3108,7 @@
3007
3108
  animation: none;
3008
3109
  }
3009
3110
  }
3010
- `;var Go=Object.defineProperty,Ae=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Go(e,t,r),r};const Zo={info:"info",success:"check",warning:"warning",error:"error",loading:"loader"},Lt=class Lt extends i.LitElement{constructor(){super(...arguments),this.theme="info",this.content="",this.duration=3e3,this.closable=!1,this.localize=new v(this),this.autoCloseTimer=null}connectedCallback(){super.connectedCallback(),this.startAutoClose()}disconnectedCallback(){super.disconnectedCallback(),this.stopAutoClose()}startAutoClose(){this.duration<=0||this.autoCloseTimer!==null||(this.autoCloseTimer=setTimeout(()=>this.close(),this.duration))}stopAutoClose(){this.autoCloseTimer!==null&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null)}close(){this.stopAutoClose(),this.dispatchEvent(new CustomEvent("wc-close",{bubbles:!0,composed:!0})),this.remove()}render(){const e=Zo[this.theme]??"info";return i.html`
3111
+ `;var vi=Object.defineProperty,Ke=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&vi(e,t,r),r};const yi={info:"info",success:"check",warning:"warning",error:"error",loading:"loader"},qt=class qt extends n.LitElement{constructor(){super(...arguments),this.theme="info",this.content="",this.duration=3e3,this.closable=!1,this.localize=new v(this),this.autoCloseTimer=null}connectedCallback(){super.connectedCallback(),this.startAutoClose()}disconnectedCallback(){super.disconnectedCallback(),this.stopAutoClose()}startAutoClose(){this.duration<=0||this.autoCloseTimer!==null||(this.autoCloseTimer=setTimeout(()=>this.close(),this.duration))}stopAutoClose(){this.autoCloseTimer!==null&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null)}close(){this.stopAutoClose(),this.dispatchEvent(new CustomEvent("wc-close",{bubbles:!0,composed:!0})),this.remove()}render(){const e=yi[this.theme]??"info";return n.html`
3011
3112
  <div class="message" part="base" role="status" aria-live="polite">
3012
3113
  <wc-icon
3013
3114
  class="icon ${this.theme}"
@@ -3016,7 +3117,7 @@
3016
3117
  ?spin=${this.theme==="loading"}
3017
3118
  ></wc-icon>
3018
3119
  <div class="content" part="content"><slot>${this.content}</slot></div>
3019
- ${this.closable?i.html`
3120
+ ${this.closable?n.html`
3020
3121
  <button
3021
3122
  type="button"
3022
3123
  class="close"
@@ -3028,7 +3129,7 @@
3028
3129
  </button>
3029
3130
  `:""}
3030
3131
  </div>
3031
- `}};Lt.styles=[l,Xo];let K=Lt;Ae([s.property({reflect:!0})],K.prototype,"theme");Ae([s.property()],K.prototype,"content");Ae([s.property({type:Number})],K.prototype,"duration");Ae([s.property({type:Boolean,reflect:!0})],K.prototype,"closable");customElements.get("wc-message")||customElements.define("wc-message",K);let B=null;function Jo(){if(B&&B.isConnected)return B;B=document.createElement("div"),B.className="wc-message-container";const o=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--wc-z-index-message"));return B.style.cssText=["position:fixed","top:var(--wc-space-4, 16px)","left:0","right:0","display:flex","flex-direction:column","align-items:center","pointer-events:none",`z-index:${Number.isFinite(o)&&o>0?o:1500}`].join(";"),document.body.appendChild(B),B}function he(o,e={}){const t=document.createElement("wc-message");return t.theme=e.theme??"info",t.content=o,e.duration!==void 0&&(t.duration=e.duration),e.closable!==void 0&&(t.closable=e.closable),e.onClose&&t.addEventListener("wc-close",()=>e.onClose()),Jo().appendChild(t),t}const Qo={info:(o,e)=>he(o,{...e,theme:"info"}),success:(o,e)=>he(o,{...e,theme:"success"}),warning:(o,e)=>he(o,{...e,theme:"warning"}),error:(o,e)=>he(o,{...e,theme:"error"}),loading:(o,e)=>he(o,{duration:0,closable:!1,...e,theme:"loading"}),show:he},T=8,_e=12;function Be(o){const e=o.indexOf("-");return e===-1?{base:o}:{base:o.slice(0,e),align:o.slice(e+1)}}function Jt(o){switch(o){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}function Qt(o,e,t,n){switch(o){case"top":return e.y-t.height-T>=n.y;case"bottom":return e.y+e.height+t.height+T<=n.y+n.height;case"left":return e.x-t.width-T>=n.x;case"right":return e.x+e.width+t.width+T<=n.x+n.width}}function Xe(o,e,t){return Math.max(e,Math.min(o,t))}function it(o,e,t,n){const{base:r,align:a}=Be(n);let c=r;!Qt(r,o,e,t)&&Qt(Jt(r),o,e,t)&&(c=Jt(r));const u=a==="start",Ee=a==="end";let le,de;const Kt=(He,Wt,Xt)=>u?He:Ee?He+Wt-Xt:He+Wt/2-Xt/2;c==="top"||c==="bottom"?(le=Kt(o.x,o.width,e.width),de=c==="top"?o.y-e.height-T:o.y+o.height+T):(de=Kt(o.y,o.height,e.height),le=c==="left"?o.x-e.width-T:o.x+o.width+T),le=Xe(le,t.x,t.x+t.width-e.width),de=Xe(de,t.y,t.y+t.height-e.height);const Ar=c==="top"||c==="bottom"?o.x+o.width/2-le:o.y+o.height/2-de,Br=(c==="top"||c==="bottom"?e.width:e.height)-_e,Rr=Xe(Ar,_e,Math.max(_e,Br)),Fr=a?`${c}-${a}`:c;return{x:le,y:de,placement:Fr,arrowOffset:Rr}}const ea=i.css`
3132
+ `}};qt.styles=[d,ui];let Q=qt;Ke([i.property({reflect:!0})],Q.prototype,"theme");Ke([i.property()],Q.prototype,"content");Ke([i.property({type:Number})],Q.prototype,"duration");Ke([i.property({type:Boolean,reflect:!0})],Q.prototype,"closable");customElements.get("wc-message")||customElements.define("wc-message",Q);let Y=null;function wi(){if(Y&&Y.isConnected)return Y;Y=document.createElement("div"),Y.className="wc-message-container";const a=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--wc-z-index-message"));return Y.style.cssText=["position:fixed","top:var(--wc-space-4, 16px)","left:0","right:0","display:flex","flex-direction:column","align-items:center","pointer-events:none",`z-index:${Number.isFinite(a)&&a>0?a:1500}`].join(";"),document.body.appendChild(Y),Y}function ge(a,e={}){const t=document.createElement("wc-message");return t.theme=e.theme??"info",t.content=a,e.duration!==void 0&&(t.duration=e.duration),e.closable!==void 0&&(t.closable=e.closable),e.onClose&&t.addEventListener("wc-close",()=>e.onClose()),wi().appendChild(t),t}const mi={info:(a,e)=>ge(a,{...e,theme:"info"}),success:(a,e)=>ge(a,{...e,theme:"success"}),warning:(a,e)=>ge(a,{...e,theme:"warning"}),error:(a,e)=>ge(a,{...e,theme:"error"}),loading:(a,e)=>ge(a,{duration:0,closable:!1,...e,theme:"loading"}),show:ge},f=8,De=12;function We(a){const e=a.indexOf("-");return e===-1?{base:a}:{base:a.slice(0,e),align:a.slice(e+1)}}function vr(a){switch(a){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}function yr(a,e,t,l){switch(a){case"top":return e.y-t.height-f>=l.y;case"bottom":return e.y+e.height+t.height+f<=l.y+l.height;case"left":return e.x-t.width-f>=l.x;case"right":return e.x+e.width+t.width+f<=l.x+l.width}}function at(a,e,t){return Math.max(e,Math.min(a,t))}function Xe(a,e,t,l){const{base:r,align:s}=We(l);let c=r;!yr(r,a,e,t)&&yr(vr(r),a,e,t)&&(c=vr(r));const p=s==="start",Ae=s==="end";let we,me;const cr=(rt,dr,pr)=>p?rt:Ae?rt+dr-pr:rt+dr/2-pr/2;c==="top"||c==="bottom"?(we=cr(a.x,a.width,e.width),me=c==="top"?a.y-e.height-f:a.y+a.height+f):(me=cr(a.y,a.height,e.height),we=c==="left"?a.x-e.width-f:a.x+a.width+f),we=at(we,t.x,t.x+t.width-e.width),me=at(me,t.y,t.y+t.height-e.height);const oo=c==="top"||c==="bottom"?a.x+a.width/2-we:a.y+a.height/2-me,io=(c==="top"||c==="bottom"?e.width:e.height)-De,ao=at(oo,De,Math.max(De,io)),so=s?`${c}-${s}`:c;return{x:we,y:me,placement:so,arrowOffset:ao}}const gi=n.css`
3032
3133
  :host {
3033
3134
  display: inline-block;
3034
3135
 
@@ -3110,7 +3211,7 @@
3110
3211
  transition: none;
3111
3212
  }
3112
3213
  }
3113
- `;var ta=Object.defineProperty,Re=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&ta(e,t,r),r};const ra=100,oa=150;let aa=0;const Mt=class Mt extends i.LitElement{constructor(){super(...arguments),this.content="",this.placement="top",this.trigger="hover",this.open=!1,this.panelId=`wc-tooltip-panel-${++aa}`,this.showTimer=null,this.hideTimer=null,this.onDocumentClick=e=>{e.composedPath().includes(this)||this.hide()}}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimers(),document.removeEventListener("click",this.onDocumentClick,!0)}show(){this.clearTimers(),this.showTimer=setTimeout(()=>{this.open||(this.open=!0,this.dispatchEvent(new CustomEvent("wc-show",{bubbles:!0,composed:!0})))},ra)}hide(){this.clearTimers(),this.hideTimer=setTimeout(()=>{this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("wc-hide",{bubbles:!0,composed:!0})))},oa)}clearTimers(){this.showTimer!==null&&(clearTimeout(this.showTimer),this.showTimer=null),this.hideTimer!==null&&(clearTimeout(this.hideTimer),this.hideTimer=null)}onTriggerEnter(){this.trigger==="hover"&&this.show()}onTriggerLeave(){this.trigger==="hover"&&this.hide()}onTriggerClick(e){this.trigger==="click"&&(e.stopPropagation(),this.open?this.hide():this.show())}onTriggerKeydown(e){this.trigger==="click"&&e.key==="Escape"&&this.open&&this.hide()}updated(e){super.updated(e),e.has("open")&&(this.open&&this.trigger==="click"?document.addEventListener("click",this.onDocumentClick,!0):this.open||document.removeEventListener("click",this.onDocumentClick,!0),this.open&&this.position())}position(){const e=this.shadowRoot.querySelector(".panel");if(!e)return;const t=this.getBoundingClientRect(),n=e.getBoundingClientRect(),r={x:0,y:0,width:window.innerWidth,height:window.innerHeight},a=it(t,n,r,this.placement);e.style.left=`${a.x}px`,e.style.top=`${a.y}px`,e.dataset.placement=a.placement,e.style.setProperty("--wc-tooltip-arrow-offset",`${a.arrowOffset}px`)}render(){const{base:e}=Be(this.placement);return i.html`
3214
+ `;var bi=Object.defineProperty,Ge=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&bi(e,t,r),r};const fi=100,xi=150;let ki=0;const Rt=class Rt extends n.LitElement{constructor(){super(...arguments),this.content="",this.placement="top",this.trigger="hover",this.open=!1,this.panelId=`wc-tooltip-panel-${++ki}`,this.showTimer=null,this.hideTimer=null,this.onDocumentClick=e=>{e.composedPath().includes(this)||this.hide()}}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimers(),document.removeEventListener("click",this.onDocumentClick,!0)}show(){this.clearTimers(),this.showTimer=setTimeout(()=>{this.open||(this.open=!0,this.dispatchEvent(new CustomEvent("wc-show",{bubbles:!0,composed:!0})))},fi)}hide(){this.clearTimers(),this.hideTimer=setTimeout(()=>{this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("wc-hide",{bubbles:!0,composed:!0})))},xi)}clearTimers(){this.showTimer!==null&&(clearTimeout(this.showTimer),this.showTimer=null),this.hideTimer!==null&&(clearTimeout(this.hideTimer),this.hideTimer=null)}onTriggerEnter(){this.trigger==="hover"&&this.show()}onTriggerLeave(){this.trigger==="hover"&&this.hide()}onTriggerClick(e){this.trigger==="click"&&(e.stopPropagation(),this.open?this.hide():this.show())}onTriggerKeydown(e){this.trigger==="click"&&e.key==="Escape"&&this.open&&this.hide()}updated(e){super.updated(e),e.has("open")&&(this.open&&this.trigger==="click"?document.addEventListener("click",this.onDocumentClick,!0):this.open||document.removeEventListener("click",this.onDocumentClick,!0),this.open&&this.position())}position(){const e=this.shadowRoot.querySelector(".panel");if(!e)return;const t=this.getBoundingClientRect(),l=e.getBoundingClientRect(),r={x:0,y:0,width:window.innerWidth,height:window.innerHeight},s=Xe(t,l,r,this.placement);e.style.left=`${s.x}px`,e.style.top=`${s.y}px`,e.dataset.placement=s.placement,e.style.setProperty("--wc-tooltip-arrow-offset",`${s.arrowOffset}px`)}render(){const{base:e}=We(this.placement);return n.html`
3114
3215
  <span
3115
3216
  class="trigger"
3116
3217
  part="trigger"
@@ -3134,7 +3235,7 @@
3134
3235
  <div class="arrow" part="arrow"></div>
3135
3236
  <div class="body"><slot name="content">${this.content}</slot></div>
3136
3237
  </div>
3137
- `}};Mt.styles=[l,ea];let W=Mt;Re([s.property()],W.prototype,"content");Re([s.property()],W.prototype,"placement");Re([s.property({reflect:!0})],W.prototype,"trigger");Re([s.property({type:Boolean,reflect:!0})],W.prototype,"open");customElements.get("wc-tooltip")||customElements.define("wc-tooltip",W);const sa=i.css`
3238
+ `}};Rt.styles=[d,gi];let ee=Rt;Ge([i.property()],ee.prototype,"content");Ge([i.property()],ee.prototype,"placement");Ge([i.property({reflect:!0})],ee.prototype,"trigger");Ge([i.property({type:Boolean,reflect:!0})],ee.prototype,"open");customElements.get("wc-tooltip")||customElements.define("wc-tooltip",ee);const $i=n.css`
3138
3239
  :host {
3139
3240
  display: inline-block;
3140
3241
 
@@ -3238,7 +3339,7 @@
3238
3339
  transition: none;
3239
3340
  }
3240
3341
  }
3241
- `;var ia=Object.defineProperty,ie=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&ia(e,t,r),r};let na=0;const It=class It extends i.LitElement{constructor(){super(...arguments),this.content="",this.placement="top",this.confirmText="",this.cancelText="",this.theme="primary",this.icon="warning",this.open=!1,this.panelId=`wc-popconfirm-panel-${++na}`,this.localize=new v(this),this.onDocumentClick=e=>{e.composedPath().includes(this)||this.cancel("outside")},this.onDocumentKeydown=e=>{e.key==="Escape"&&(e.stopPropagation(),this.cancel("escape"))}}disconnectedCallback(){super.disconnectedCallback(),this.unbindSideEffects()}connectedCallback(){super.connectedCallback(),this.open&&this.bindSideEffects()}show(){this.open||(this.open=!0,this.bindSideEffects())}hide(){this.open&&(this.open=!1,this.unbindSideEffects())}confirm(){this.dispatchEvent(new CustomEvent("wc-confirm",{bubbles:!0,composed:!0})),this.hide()}cancel(e="button"){this.open&&(this.dispatchEvent(new CustomEvent("wc-cancel",{detail:{reason:e},bubbles:!0,composed:!0})),this.hide())}bindSideEffects(){document.addEventListener("click",this.onDocumentClick,!0),document.addEventListener("keydown",this.onDocumentKeydown,!0),queueMicrotask(()=>{this.shadowRoot.querySelector('[part="confirm-button"]')?.focus()})}unbindSideEffects(){document.removeEventListener("click",this.onDocumentClick,!0),document.removeEventListener("keydown",this.onDocumentKeydown,!0),this.shadowRoot.querySelector(".trigger")?.focus()}updated(e){super.updated(e),e.has("open")&&(this.open?(this.bindSideEffects(),this.position()):this.unbindSideEffects())}position(){const e=this.shadowRoot.querySelector(".panel");if(!e)return;const t=this.getBoundingClientRect(),n=e.getBoundingClientRect(),r={x:0,y:0,width:window.innerWidth,height:window.innerHeight},a=it(t,n,r,this.placement);e.style.left=`${a.x}px`,e.style.top=`${a.y}px`,e.dataset.placement=a.placement,e.style.setProperty("--wc-popconfirm-arrow-offset",`${a.arrowOffset}px`)}onTriggerClick(e){e.stopPropagation(),this.open?this.hide():this.show()}render(){const{base:e}=Be(this.placement);return i.html`
3342
+ `;var zi=Object.defineProperty,ue=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&zi(e,t,r),r};let Ci=0;const Ft=class Ft extends n.LitElement{constructor(){super(...arguments),this.content="",this.placement="top",this.confirmText="",this.cancelText="",this.theme="primary",this.icon="warning",this.open=!1,this.panelId=`wc-popconfirm-panel-${++Ci}`,this.localize=new v(this),this.onDocumentClick=e=>{e.composedPath().includes(this)||this.cancel("outside")},this.onDocumentKeydown=e=>{e.key==="Escape"&&(e.stopPropagation(),this.cancel("escape"))}}disconnectedCallback(){super.disconnectedCallback(),this.unbindSideEffects()}connectedCallback(){super.connectedCallback(),this.open&&this.bindSideEffects()}show(){this.open||(this.open=!0,this.bindSideEffects())}hide(){this.open&&(this.open=!1,this.unbindSideEffects())}confirm(){this.dispatchEvent(new CustomEvent("wc-confirm",{bubbles:!0,composed:!0})),this.hide()}cancel(e="button"){this.open&&(this.dispatchEvent(new CustomEvent("wc-cancel",{detail:{reason:e},bubbles:!0,composed:!0})),this.hide())}bindSideEffects(){document.addEventListener("click",this.onDocumentClick,!0),document.addEventListener("keydown",this.onDocumentKeydown,!0),queueMicrotask(()=>{this.shadowRoot.querySelector('[part="confirm-button"]')?.focus()})}unbindSideEffects(){document.removeEventListener("click",this.onDocumentClick,!0),document.removeEventListener("keydown",this.onDocumentKeydown,!0),this.shadowRoot.querySelector(".trigger")?.focus()}updated(e){super.updated(e),e.has("open")&&(this.open?(this.bindSideEffects(),this.position()):this.unbindSideEffects())}position(){const e=this.shadowRoot.querySelector(".panel");if(!e)return;const t=this.getBoundingClientRect(),l=e.getBoundingClientRect(),r={x:0,y:0,width:window.innerWidth,height:window.innerHeight},s=Xe(t,l,r,this.placement);e.style.left=`${s.x}px`,e.style.top=`${s.y}px`,e.dataset.placement=s.placement,e.style.setProperty("--wc-popconfirm-arrow-offset",`${s.arrowOffset}px`)}onTriggerClick(e){e.stopPropagation(),this.open?this.hide():this.show()}render(){const{base:e}=We(this.placement);return n.html`
3242
3343
  <span
3243
3344
  class="trigger"
3244
3345
  part="trigger"
@@ -3260,7 +3361,7 @@
3260
3361
  >
3261
3362
  <div class="arrow" part="arrow"></div>
3262
3363
  <div class="main">
3263
- ${this.icon?i.html`<wc-icon class="icon" part="icon" name=${this.icon}></wc-icon>`:""}
3364
+ ${this.icon?n.html`<wc-icon class="icon" part="icon" name=${this.icon}></wc-icon>`:""}
3264
3365
  <div class="content"><slot name="content">${this.content}</slot></div>
3265
3366
  </div>
3266
3367
  <div class="actions" part="actions">
@@ -3277,7 +3378,495 @@
3277
3378
  </wc-button>
3278
3379
  </div>
3279
3380
  </div>
3280
- `}};It.styles=[l,sa];let C=It;ie([s.property()],C.prototype,"content");ie([s.property()],C.prototype,"placement");ie([s.property({attribute:"confirm-text"})],C.prototype,"confirmText");ie([s.property({attribute:"cancel-text"})],C.prototype,"cancelText");ie([s.property()],C.prototype,"theme");ie([s.property()],C.prototype,"icon");ie([s.property({type:Boolean,reflect:!0})],C.prototype,"open");customElements.get("wc-popconfirm")||customElements.define("wc-popconfirm",C);const ca=i.css`
3381
+ `}};Ft.styles=[d,$i];let _=Ft;ue([i.property()],_.prototype,"content");ue([i.property()],_.prototype,"placement");ue([i.property({attribute:"confirm-text"})],_.prototype,"confirmText");ue([i.property({attribute:"cancel-text"})],_.prototype,"cancelText");ue([i.property()],_.prototype,"theme");ue([i.property()],_.prototype,"icon");ue([i.property({type:Boolean,reflect:!0})],_.prototype,"open");customElements.get("wc-popconfirm")||customElements.define("wc-popconfirm",_);const Ei=n.css`
3382
+ :host {
3383
+ display: block;
3384
+ }
3385
+
3386
+ .item {
3387
+ display: flex;
3388
+ align-items: center;
3389
+ gap: var(--wc-space-2);
3390
+ padding: 0 var(--wc-space-3);
3391
+ height: 32px;
3392
+ font-size: var(--wc-font-size-medium);
3393
+ color: var(--wc-color-text);
3394
+ cursor: pointer;
3395
+ user-select: none;
3396
+ transition: background-color var(--wc-duration-fast) var(--wc-easing-standard);
3397
+ }
3398
+
3399
+ .text {
3400
+ flex: 1;
3401
+ min-width: 0;
3402
+ overflow: hidden;
3403
+ text-overflow: ellipsis;
3404
+ white-space: nowrap;
3405
+ }
3406
+
3407
+ :host(:hover:not([disabled]):not([divider])) .item,
3408
+ :host([active]:not([disabled]):not([divider])) .item {
3409
+ background-color: var(--wc-color-bg-hover);
3410
+ }
3411
+
3412
+ :host([danger]:not([disabled])) .item {
3413
+ color: var(--wc-color-error);
3414
+ }
3415
+
3416
+ :host([disabled]) .item {
3417
+ color: var(--wc-color-text-disabled);
3418
+ cursor: not-allowed;
3419
+ }
3420
+
3421
+ /* 分隔线:不响应 hover / danger */
3422
+ :host([divider]) .item {
3423
+ display: block;
3424
+ height: 1px;
3425
+ min-height: 1px;
3426
+ padding: 0;
3427
+ margin: var(--wc-space-1) 0;
3428
+ overflow: hidden;
3429
+ background-color: var(--wc-color-border);
3430
+ cursor: default;
3431
+ }
3432
+ `;var Mi=Object.defineProperty,Pe=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Mi(e,t,r),r};const Ut=class Ut extends n.LitElement{constructor(){super(...arguments),this.value="",this.disabled=!1,this.danger=!1,this.divider=!1,this.active=!1}get label(){return(this.textContent??"").trim()}render(){return this.divider?n.html`<div class="item" part="base" role="separator"></div>`:n.html`
3433
+ <div
3434
+ class="item"
3435
+ part="base"
3436
+ role="menuitem"
3437
+ aria-disabled=${this.disabled}
3438
+ aria-label=${this.label}
3439
+ >
3440
+ <span class="text"><slot></slot></span>
3441
+ </div>
3442
+ `}};Ut.styles=[Ei];let N=Ut;Pe([i.property({reflect:!0})],N.prototype,"value");Pe([i.property({type:Boolean,reflect:!0})],N.prototype,"disabled");Pe([i.property({type:Boolean,reflect:!0})],N.prototype,"danger");Pe([i.property({type:Boolean,reflect:!0})],N.prototype,"divider");Pe([i.property({type:Boolean,reflect:!0})],N.prototype,"active");customElements.get("wc-dropdown-item")||customElements.define("wc-dropdown-item",N);const Si=n.css`
3443
+ :host {
3444
+ display: inline-block;
3445
+
3446
+ /* component 层令牌 */
3447
+ --wc-dropdown-min-width: 120px;
3448
+ --wc-dropdown-max-height: 280px;
3449
+ --wc-dropdown-radius: var(--wc-radius-medium);
3450
+ }
3451
+
3452
+ .trigger {
3453
+ display: inline-flex;
3454
+ }
3455
+
3456
+ .panel {
3457
+ position: fixed;
3458
+ z-index: var(--wc-z-index-dropdown);
3459
+ box-sizing: border-box;
3460
+ min-width: var(--wc-dropdown-min-width);
3461
+ max-height: var(--wc-dropdown-max-height);
3462
+ overflow-y: auto;
3463
+ padding: var(--wc-space-1) 0;
3464
+ font-size: var(--wc-font-size-medium);
3465
+ background-color: var(--wc-color-bg-container);
3466
+ border: 1px solid var(--wc-color-border);
3467
+ border-radius: var(--wc-dropdown-radius);
3468
+ box-shadow: var(--wc-shadow-2);
3469
+ opacity: 0;
3470
+ visibility: hidden;
3471
+ transform: scale(0.96);
3472
+ transform-origin: top;
3473
+ transition:
3474
+ opacity var(--wc-duration-fast) var(--wc-easing-standard),
3475
+ transform var(--wc-duration-fast) var(--wc-easing-standard),
3476
+ visibility var(--wc-duration-fast);
3477
+ }
3478
+
3479
+ /* visibility:hidden 而非 display:none:面板需保持可测量供定位引擎使用 */
3480
+ .panel[data-open] {
3481
+ opacity: 1;
3482
+ visibility: visible;
3483
+ transform: none;
3484
+ }
3485
+
3486
+ .empty {
3487
+ padding: var(--wc-space-4) var(--wc-space-3);
3488
+ color: var(--wc-color-text-placeholder);
3489
+ text-align: center;
3490
+ }
3491
+
3492
+ @media (prefers-reduced-motion: reduce) {
3493
+ .panel {
3494
+ transition: none;
3495
+ }
3496
+ }
3497
+ `;var _i=Object.defineProperty,wt=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&_i(e,t,r),r};let wr=0;const Yt=class Yt extends n.LitElement{constructor(){super(),this.placement="bottom-start",this.open=!1,this.disabled=!1,this.panelId=`wc-dropdown-panel-${++wr}`,this.itemUid=`wc-dropdown-item-${++wr}`,this.activeIndex=-1,this.assignedItems=[],this.onDocumentClick=e=>{if(e.composedPath().includes(this))return;const t=this.open;this.hide(),t&&this.emitClose("outside")},this.handleKeydown=e=>{if(!this.disabled)switch(e.key){case"Enter":case" ":if(e.preventDefault(),this.open&&this.activeIndex>=0){const t=this.enabledItems[this.activeIndex];t&&this.selectItem(t)}else this.show();break;case"Escape":this.open&&(e.preventDefault(),this.hide(),this.emitClose("escape"));break;case"ArrowDown":e.preventDefault(),this.open?this.enabledItems.length&&(this.activeIndex=(this.activeIndex+1)%this.enabledItems.length,this.syncActive()):this.show();break;case"ArrowUp":if(e.preventDefault(),!this.open)this.show();else if(this.enabledItems.length){const t=this.enabledItems.length;this.activeIndex=(this.activeIndex-1+t)%t,this.syncActive()}break;case"Home":this.open&&this.enabledItems.length&&(e.preventDefault(),this.activeIndex=0,this.syncActive());break;case"End":this.open&&this.enabledItems.length&&(e.preventDefault(),this.activeIndex=this.enabledItems.length-1,this.syncActive());break;case"Tab":{const t=this.open;this.hide(),t&&this.emitClose("escape");break}}},this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.unbindSideEffects()}connectedCallback(){super.connectedCallback(),this.open&&this.bindSideEffects()}get enabledItems(){return this.assignedItems.filter(e=>!e.disabled&&!e.divider)}show(){this.disabled||this.open||(this.open=!0,this.activeIndex=this.enabledItems.length?0:-1,this.syncActive(),this.bindSideEffects(),this.dispatchEvent(new CustomEvent("wc-open",{bubbles:!0,composed:!0})))}hide(){this.open&&(this.open=!1,this.activeIndex=-1,this.syncActive(),this.unbindSideEffects())}toggle(){this.open?(this.hide(),this.emitClose("toggle")):this.show()}emitClose(e){this.dispatchEvent(new CustomEvent("wc-close",{detail:{reason:e},bubbles:!0,composed:!0}))}bindSideEffects(){document.addEventListener("click",this.onDocumentClick,!0),this.updateComplete.then(()=>this.position())}unbindSideEffects(){document.removeEventListener("click",this.onDocumentClick,!0)}updated(e){super.updated(e),e.has("open")&&this.open&&this.position()}position(){const e=this.shadowRoot.querySelector(".panel");if(!e)return;const t=this.getBoundingClientRect(),l=e.getBoundingClientRect(),r={x:0,y:0,width:window.innerWidth,height:window.innerHeight},s=Xe(t,l,r,this.placement);e.style.left=`${s.x}px`,e.style.top=`${s.y}px`}onSlotChange(e){this.assignedItems=e.target.assignedElements({flatten:!0}).filter(t=>t.tagName==="WC-DROPDOWN-ITEM"),this.assignedItems.forEach((t,l)=>t.setAttribute("id",`${this.itemUid}-${l}`)),this.syncActive(),this.requestUpdate()}syncActive(){for(const t of this.assignedItems)t.active=!1;const e=this.enabledItems[this.activeIndex];e&&(e.active=!0),e&&typeof e.scrollIntoView=="function"&&e.scrollIntoView({block:"nearest"})}onPanelClick(e){const l=e.target.closest?.("wc-dropdown-item");l&&!l.disabled&&!l.divider&&this.selectItem(l)}selectItem(e){this.hide(),this.dispatchEvent(new CustomEvent("wc-select",{detail:{value:e.value,label:e.label},bubbles:!0,composed:!0})),this.emitClose("select")}onTriggerClick(e){e.stopPropagation(),!this.disabled&&this.toggle()}render(){const e=this.activeIndex>=0?this.enabledItems[this.activeIndex]:void 0,t=e?`${this.itemUid}-${this.assignedItems.indexOf(e)}`:"";return n.html`
3498
+ <span
3499
+ class="trigger"
3500
+ part="trigger"
3501
+ tabindex=${this.disabled?-1:0}
3502
+ role="button"
3503
+ aria-haspopup="menu"
3504
+ aria-expanded=${this.open}
3505
+ aria-disabled=${this.disabled}
3506
+ aria-controls=${this.open?this.panelId:void 0}
3507
+ aria-activedescendant=${this.open&&t?t:void 0}
3508
+ @click=${this.onTriggerClick}
3509
+ >
3510
+ <slot name="trigger"></slot>
3511
+ </span>
3512
+ <div
3513
+ class="panel"
3514
+ part="base"
3515
+ id=${this.panelId}
3516
+ role="menu"
3517
+ ?data-open=${this.open}
3518
+ @click=${this.onPanelClick}
3519
+ >
3520
+ <slot @slotchange=${this.onSlotChange}></slot>
3521
+ ${this.assignedItems.length===0?n.html`<div class="empty">暂无数据</div>`:""}
3522
+ </div>
3523
+ `}};Yt.styles=[d,Si];let de=Yt;wt([i.property()],de.prototype,"placement");wt([i.property({type:Boolean,reflect:!0})],de.prototype,"open");wt([i.property({type:Boolean,reflect:!0})],de.prototype,"disabled");customElements.get("wc-dropdown")||customElements.define("wc-dropdown",de);const Li=n.css`
3524
+ :host {
3525
+ display: inline-block;
3526
+
3527
+ /* component 层令牌:首尾圆角可覆写;聚焦环内嵌避免叠在相邻半边上 */
3528
+ --wc-split-button-radius: var(--wc-radius-medium);
3529
+ --wc-button-focus-ring-offset: -2px;
3530
+ }
3531
+
3532
+ .group {
3533
+ display: inline-flex;
3534
+ vertical-align: middle;
3535
+ }
3536
+
3537
+ /* 内部按钮去圆角、由两端各留单侧圆角(shadow 内部元素,普通选择器即可) */
3538
+ .main-btn {
3539
+ --wc-button-radius: var(--wc-split-button-radius) 0 0 var(--wc-split-button-radius);
3540
+ }
3541
+
3542
+ .arrow-btn {
3543
+ --wc-button-radius: 0 var(--wc-split-button-radius) var(--wc-split-button-radius) 0;
3544
+ margin-left: -1px;
3545
+ }
3546
+
3547
+ /* 悬停/聚焦的上层半边边框完整可见 */
3548
+ .main-btn:hover,
3549
+ .main-btn:focus-within {
3550
+ z-index: 1;
3551
+ }
3552
+ `;var Oi=Object.defineProperty,U=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Oi(e,t,r),r};const Kt=class Kt extends n.LitElement{constructor(){super(...arguments),this.theme="default",this.type="base",this.size="medium",this.placement="bottom-end",this.disabled=!1,this.loading=!1,this.ghost=!1,this.gradient=!1,this.ripple=!1,this.localize=new v(this),this.observer=null}get dropdown(){return this.shadowRoot.querySelector("wc-dropdown")}connectedCallback(){super.connectedCallback(),this.syncItemSlots(),this.observer=new MutationObserver(()=>this.syncItemSlots()),this.observer.observe(this,{childList:!0})}disconnectedCallback(){this.observer?.disconnect(),this.observer=null,super.disconnectedCallback()}syncItemSlots(){for(const e of this.children)e.tagName==="WC-DROPDOWN-ITEM"&&!e.slot&&(e.slot="menu")}onMainClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("wc-main-click",{bubbles:!0,composed:!0}))}onArrowClick(e){e.stopPropagation(),this.dropdown?.toggle(),this.dispatchEvent(new CustomEvent("wc-arrow-click",{bubbles:!0,composed:!0}))}render(){return n.html`
3553
+ <span class="group" part="base">
3554
+ <wc-button
3555
+ class="main-btn"
3556
+ theme=${this.theme}
3557
+ type=${this.type}
3558
+ size=${this.size}
3559
+ ?disabled=${this.disabled}
3560
+ ?loading=${this.loading}
3561
+ ?ghost=${this.ghost}
3562
+ ?gradient=${this.gradient}
3563
+ ?ripple=${this.ripple}
3564
+ @click=${this.onMainClick}
3565
+ ><slot></slot
3566
+ ></wc-button>
3567
+ <wc-dropdown .placement=${this.placement} ?disabled=${this.disabled}>
3568
+ <wc-button
3569
+ class="arrow-btn"
3570
+ theme=${this.theme}
3571
+ type=${this.type}
3572
+ size=${this.size}
3573
+ ?disabled=${this.disabled}
3574
+ ?loading=${this.loading}
3575
+ ?ghost=${this.ghost}
3576
+ ?gradient=${this.gradient}
3577
+ ?ripple=${this.ripple}
3578
+ aria-label=${this.localize.term("dropdown.more")}
3579
+ @click=${this.onArrowClick}
3580
+ >
3581
+ <wc-icon slot="icon" name="chevron-down"></wc-icon>
3582
+ </wc-button>
3583
+ <slot name="menu"></slot>
3584
+ </wc-dropdown>
3585
+ </span>
3586
+ `}};Kt.styles=[d,Li];let z=Kt;U([i.property({reflect:!0})],z.prototype,"theme");U([i.property({reflect:!0})],z.prototype,"type");U([i.property({reflect:!0})],z.prototype,"size");U([i.property({reflect:!0})],z.prototype,"placement");U([i.property({type:Boolean,reflect:!0})],z.prototype,"disabled");U([i.property({type:Boolean,reflect:!0})],z.prototype,"loading");U([i.property({type:Boolean,reflect:!0})],z.prototype,"ghost");U([i.property({type:Boolean,reflect:!0})],z.prototype,"gradient");U([i.property({type:Boolean,reflect:!0})],z.prototype,"ripple");customElements.get("wc-split-button")||customElements.define("wc-split-button",z);const Ii=n.css`
3587
+ :host {
3588
+ position: fixed;
3589
+ bottom: var(--wc-float-button-bottom, 24px);
3590
+ right: var(--wc-float-button-right, 24px);
3591
+ z-index: var(--wc-z-index-fab);
3592
+ display: inline-flex;
3593
+
3594
+ /* component 层令牌 */
3595
+ --wc-float-button-size: 40px;
3596
+ }
3597
+
3598
+ /* 回到顶部预设:未达滚动阈值时整体隐藏 */
3599
+ :host([backtop]:not([data-visible])) {
3600
+ display: none;
3601
+ }
3602
+
3603
+ .fab {
3604
+ position: relative;
3605
+ box-sizing: border-box;
3606
+ display: inline-flex;
3607
+ flex-direction: column;
3608
+ align-items: center;
3609
+ justify-content: center;
3610
+ gap: 2px;
3611
+ width: var(--wc-float-button-size);
3612
+ height: var(--wc-float-button-size);
3613
+ padding: 0;
3614
+ color: var(--wc-color-text);
3615
+ font-size: var(--wc-font-size-medium);
3616
+ text-decoration: none;
3617
+ background-color: var(--wc-color-bg-container);
3618
+ border: 1px solid var(--wc-color-border);
3619
+ border-radius: var(--wc-radius-round);
3620
+ box-shadow: var(--wc-shadow-2);
3621
+ cursor: pointer;
3622
+ transition:
3623
+ color var(--wc-duration-fast) var(--wc-easing-standard),
3624
+ border-color var(--wc-duration-fast) var(--wc-easing-standard),
3625
+ box-shadow var(--wc-duration-fast) var(--wc-easing-standard);
3626
+ }
3627
+
3628
+ .fab:hover {
3629
+ color: var(--wc-color-primary);
3630
+ border-color: var(--wc-color-primary);
3631
+ }
3632
+
3633
+ .fab:focus-visible {
3634
+ outline: var(--wc-color-focus-ring) solid 2px;
3635
+ outline-offset: 2px;
3636
+ }
3637
+
3638
+ .ico {
3639
+ /* flex 化:wc-icon 是 inline-flex 无文本基线(基线=底边),行内摆放会被
3640
+ 字体 descent 撑高行盒导致图标偏上(同 wc-button .icon 的教训) */
3641
+ display: flex;
3642
+ align-items: center;
3643
+ justify-content: center;
3644
+ font-size: var(--wc-font-size-h3);
3645
+ line-height: 1;
3646
+ }
3647
+
3648
+ .desc {
3649
+ max-width: calc(var(--wc-float-button-size) - 8px);
3650
+ overflow: hidden;
3651
+ font-size: var(--wc-font-size-xsmall);
3652
+ line-height: 1.2;
3653
+ text-align: center;
3654
+ white-space: nowrap;
3655
+ text-overflow: ellipsis;
3656
+ }
3657
+
3658
+ :host([shape='square']) .fab {
3659
+ border-radius: var(--wc-radius-medium);
3660
+ }
3661
+
3662
+ :host([type='primary']) .fab {
3663
+ color: var(--wc-color-text-anti);
3664
+ background-color: var(--wc-color-primary);
3665
+ border-color: var(--wc-color-primary);
3666
+ }
3667
+
3668
+ :host([type='primary']) .fab:hover {
3669
+ background-color: var(--wc-color-primary-hover);
3670
+ border-color: var(--wc-color-primary-hover);
3671
+ }
3672
+
3673
+ :host([disabled]) .fab {
3674
+ color: var(--wc-color-text-disabled);
3675
+ background-color: var(--wc-color-bg-disabled);
3676
+ border-color: var(--wc-color-border);
3677
+ box-shadow: none;
3678
+ cursor: not-allowed;
3679
+ pointer-events: none;
3680
+ }
3681
+
3682
+ .badge {
3683
+ position: absolute;
3684
+ top: 0;
3685
+ right: 0;
3686
+ z-index: 1;
3687
+ display: inline-flex;
3688
+ align-items: center;
3689
+ justify-content: center;
3690
+ min-width: 16px;
3691
+ height: 16px;
3692
+ padding: 0 4px;
3693
+ color: var(--wc-color-text-anti);
3694
+ font-size: var(--wc-font-size-xsmall);
3695
+ line-height: 1;
3696
+ white-space: nowrap;
3697
+ background-color: var(--wc-color-error);
3698
+ border-radius: var(--wc-radius-round);
3699
+ transform: translate(50%, -50%);
3700
+ }
3701
+
3702
+ :host([dot]) .badge {
3703
+ min-width: 6px;
3704
+ width: 6px;
3705
+ height: 6px;
3706
+ padding: 0;
3707
+ }
3708
+
3709
+ /* 内建 tooltip 气泡(轻量版:无箭头,fixed 定位于按钮左侧) */
3710
+ .tip {
3711
+ position: fixed;
3712
+ z-index: var(--wc-z-index-tooltip);
3713
+ max-width: 200px;
3714
+ padding: var(--wc-space-1) var(--wc-space-2);
3715
+ color: var(--wc-color-text-anti);
3716
+ font-size: var(--wc-font-size-xsmall);
3717
+ white-space: nowrap;
3718
+ background-color: var(--wc-color-gray-900);
3719
+ border-radius: var(--wc-radius-small);
3720
+ opacity: 0;
3721
+ visibility: hidden;
3722
+ transition:
3723
+ opacity var(--wc-duration-fast) var(--wc-easing-standard),
3724
+ visibility var(--wc-duration-fast);
3725
+ }
3726
+
3727
+ .tip[data-open] {
3728
+ opacity: 1;
3729
+ visibility: visible;
3730
+ }
3731
+
3732
+ @media (prefers-reduced-motion: reduce) {
3733
+ .fab,
3734
+ .tip {
3735
+ transition: none;
3736
+ }
3737
+ }
3738
+ `;var Pi=Object.defineProperty,g=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Pi(e,t,r),r};let Ai=0;const Ti=100,Di=150,Wt=class Wt extends n.LitElement{constructor(){super(...arguments),this.shape="circle",this.type="default",this.icon="",this.description="",this.tooltip="",this.href="",this.target="",this.disabled=!1,this.dot=!1,this.count=0,this.max=99,this.backtop=!1,this.visibilityHeight=400,this.localize=new v(this),this.tipId=`wc-float-button-tip-${++Ai}`,this._hasIcon=!1,this._hasText=!1,this.showTimer=null,this.hideTimer=null,this.onScroll=()=>{this.toggleAttribute("data-visible",window.scrollY>this.visibilityHeight)},this.onDocumentClick=e=>{e.composedPath().includes(this)||this.hideTip()},this.tooltipIsOpen=!1}onIconSlotChange(e){this._hasIcon=e.target.assignedNodes({flatten:!0}).length>0}onTextSlotChange(e){const t=e.target.assignedNodes({flatten:!0});this._hasText=t.some(l=>(l.textContent??"").trim()!=="")}connectedCallback(){super.connectedCallback(),this.backtop&&this.bindBacktop()}disconnectedCallback(){this.unbindBacktop(),this.unbindOutsideClose(),this.clearTimers(),super.disconnectedCallback()}updated(e){super.updated(e),e.has("backtop")&&(this.backtop?this.bindBacktop():(this.unbindBacktop(),this.removeAttribute("data-visible"))),e.has("tooltip")&&this.tooltipIsOpen&&this.updateComplete.then(()=>this.positionTip())}bindBacktop(){window.addEventListener("scroll",this.onScroll,{passive:!0}),this.onScroll()}unbindBacktop(){window.removeEventListener("scroll",this.onScroll)}get effectiveTooltip(){return this.backtop&&!this.tooltip?this.localize.term("floatbutton.backtop"):this.tooltip}showTip(){!this.effectiveTooltip||this.disabled||(this.clearTimers(),this.showTimer=setTimeout(()=>{this.tooltipIsOpen||(this.tooltipIsOpen=!0,this.bindOutsideClose(),this.updateComplete.then(()=>this.positionTip()),this.requestUpdate())},Ti))}hideTip(){this.clearTimers(),this.hideTimer=setTimeout(()=>{this.tooltipIsOpen&&(this.tooltipIsOpen=!1,this.unbindOutsideClose(),this.requestUpdate())},Di)}positionTip(){const e=this.shadowRoot.querySelector(".tip");if(!e)return;const t=this.getBoundingClientRect();e.style.visibility="hidden",e.style.left="0px",e.style.top="0px";const l=e.getBoundingClientRect(),r=t.left-l.width-f,s=t.top+t.height/2-l.height/2;e.style.left=`${Math.max(f,r)}px`,e.style.top=`${Math.min(Math.max(f,s),window.innerHeight-l.height-f)}px`,e.style.visibility=""}bindOutsideClose(){document.addEventListener("click",this.onDocumentClick,!0)}unbindOutsideClose(){document.removeEventListener("click",this.onDocumentClick,!0)}clearTimers(){this.showTimer!==null&&(clearTimeout(this.showTimer),this.showTimer=null),this.hideTimer!==null&&(clearTimeout(this.hideTimer),this.hideTimer=null)}onClick(e){this.disabled||this.backtop&&(e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}))}get displayCount(){return this.count>this.max?`${this.max}+`:String(Math.max(0,this.count))}render(){const e=this.dot||this.count>0,t=this.effectiveTooltip,l=this.icon||(this.backtop?"arrow-up":""),r=n.html`
3739
+ <span class="ico" part="icon" ?hidden=${!l&&!this._hasIcon}>
3740
+ ${l?n.html`<wc-icon name=${l}></wc-icon>`:n.html`<slot name="icon" @slotchange=${this.onIconSlotChange}></slot>`}
3741
+ </span>
3742
+ `,s=n.html`${r}<span
3743
+ class="desc"
3744
+ part="description"
3745
+ ?hidden=${!this.description&&!this._hasText}
3746
+ ><slot @slotchange=${this.onTextSlotChange}>${this.description}</slot></span
3747
+ >`,c=this.href&&!this.disabled?n.html`<a
3748
+ class="fab"
3749
+ part="base"
3750
+ href=${this.href}
3751
+ target=${this.target||n.nothing}
3752
+ rel=${this.target==="_blank"?"noopener noreferrer":n.nothing}
3753
+ aria-describedby=${this.tooltipIsOpen?this.tipId:n.nothing}
3754
+ @mouseenter=${this.showTip}
3755
+ @mouseleave=${this.hideTip}
3756
+ @focusin=${this.showTip}
3757
+ @focusout=${this.hideTip}
3758
+ @click=${this.onClick}
3759
+ >${s}</a
3760
+ >`:n.html`<button
3761
+ class="fab"
3762
+ part="base"
3763
+ type="button"
3764
+ ?disabled=${this.disabled}
3765
+ aria-describedby=${this.tooltipIsOpen?this.tipId:n.nothing}
3766
+ @mouseenter=${this.showTip}
3767
+ @mouseleave=${this.hideTip}
3768
+ @focusin=${this.showTip}
3769
+ @focusout=${this.hideTip}
3770
+ @click=${this.onClick}
3771
+ >
3772
+ ${s}
3773
+ </button>`;return n.html`${c}
3774
+ ${e?n.html`<sup class="badge" part="badge">${this.dot?n.nothing:this.displayCount}</sup>`:n.nothing}
3775
+ ${t?n.html`<div
3776
+ class="tip"
3777
+ part="tooltip"
3778
+ role="tooltip"
3779
+ id=${this.tipId}
3780
+ ?data-open=${this.tooltipIsOpen}
3781
+ >
3782
+ ${t}
3783
+ </div>`:n.nothing}`}};Wt.styles=[d,Ii];let u=Wt;g([i.property({reflect:!0})],u.prototype,"shape");g([i.property({reflect:!0})],u.prototype,"type");g([i.property()],u.prototype,"icon");g([i.property()],u.prototype,"description");g([i.property()],u.prototype,"tooltip");g([i.property()],u.prototype,"href");g([i.property()],u.prototype,"target");g([i.property({type:Boolean,reflect:!0})],u.prototype,"disabled");g([i.property({type:Boolean,reflect:!0})],u.prototype,"dot");g([i.property({type:Number})],u.prototype,"count");g([i.property({type:Number})],u.prototype,"max");g([i.property({type:Boolean,reflect:!0})],u.prototype,"backtop");g([i.property({type:Number,attribute:"visibility-height"})],u.prototype,"visibilityHeight");g([i.state()],u.prototype,"_hasIcon");g([i.state()],u.prototype,"_hasText");customElements.get("wc-float-button")||customElements.define("wc-float-button",u);const Vi=n.css`
3784
+ :host {
3785
+ position: fixed;
3786
+ bottom: var(--wc-float-button-bottom, 24px);
3787
+ right: var(--wc-float-button-right, 24px);
3788
+ z-index: var(--wc-z-index-fab);
3789
+ display: inline-flex;
3790
+ flex-direction: column;
3791
+ align-items: center;
3792
+ gap: var(--wc-float-button-gap, 8px);
3793
+
3794
+ /* component 层令牌 */
3795
+ --wc-float-button-gap: 8px;
3796
+ }
3797
+
3798
+ /*
3799
+ * 子按钮自身 :host 是 fixed 定位(standalone 用),进组后必须改随布局——
3800
+ * 外层 shadow 树的声明优先于内层 :host,这里再加内联样式双保险(slotchange 同步)
3801
+ */
3802
+ .trigger-btn {
3803
+ position: static;
3804
+ z-index: auto;
3805
+ }
3806
+
3807
+ ::slotted(wc-float-button) {
3808
+ position: static;
3809
+ z-index: auto;
3810
+ }
3811
+
3812
+ .trigger-ico {
3813
+ transition: transform var(--wc-duration-fast) var(--wc-easing-standard);
3814
+ }
3815
+
3816
+ /* 展开时 plus 旋转成 × */
3817
+ :host([open]) .trigger-ico {
3818
+ transform: rotate(45deg);
3819
+ }
3820
+
3821
+ .items {
3822
+ display: flex;
3823
+ flex-direction: column;
3824
+ align-items: center;
3825
+ gap: var(--wc-float-button-gap, 8px);
3826
+ }
3827
+
3828
+ /* trigger 模式:面板悬浮于触发按钮上方(absolute 脱离布局,收起不影响定位) */
3829
+ :host([trigger]) .items {
3830
+ position: absolute;
3831
+ right: 0;
3832
+ bottom: calc(100% + var(--wc-float-button-gap, 8px));
3833
+ opacity: 0;
3834
+ visibility: hidden;
3835
+ transform: translateY(6px) scale(0.9);
3836
+ transform-origin: bottom center;
3837
+ transition:
3838
+ opacity var(--wc-duration-fast) var(--wc-easing-standard),
3839
+ transform var(--wc-duration-fast) var(--wc-easing-standard),
3840
+ visibility var(--wc-duration-fast);
3841
+ }
3842
+
3843
+ :host([trigger]) .items[data-open] {
3844
+ opacity: 1;
3845
+ visibility: visible;
3846
+ transform: none;
3847
+ }
3848
+
3849
+ @media (prefers-reduced-motion: reduce) {
3850
+ .items,
3851
+ .trigger-ico {
3852
+ transition: none;
3853
+ }
3854
+ }
3855
+ `;var ji=Object.defineProperty,Ze=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&ji(e,t,r),r};const Xt=class Xt extends n.LitElement{constructor(){super(),this.shape="circle",this.trigger="",this.open=!1,this.icon="",this.localize=new v(this),this.onDocumentClick=e=>{if(e.composedPath().includes(this))return;const t=this.open;this.hide(),t&&this.emitClose("outside")},this.handleKeydown=e=>{e.key==="Escape"&&this.open&&(this.hide(),this.emitClose("escape"))},this.addEventListener("keydown",this.handleKeydown),this.addEventListener("mouseenter",this.onHostMouseenter),this.addEventListener("mouseleave",this.onHostMouseleave)}disconnectedCallback(){super.disconnectedCallback(),this.unbindOutsideClose()}connectedCallback(){super.connectedCallback(),this.open&&this.trigger==="click"&&this.bindOutsideClose()}show(){!this.trigger||this.open||(this.open=!0,this.trigger==="click"&&this.bindOutsideClose(),this.dispatchEvent(new CustomEvent("wc-open",{bubbles:!0,composed:!0})))}hide(){this.open&&(this.open=!1,this.unbindOutsideClose())}toggle(){this.open?(this.hide(),this.emitClose("toggle")):this.show()}emitClose(e){this.dispatchEvent(new CustomEvent("wc-close",{detail:{reason:e},bubbles:!0,composed:!0}))}bindOutsideClose(){document.addEventListener("click",this.onDocumentClick,!0)}unbindOutsideClose(){document.removeEventListener("click",this.onDocumentClick,!0)}onTriggerClick(){this.trigger==="click"&&this.toggle()}onHostMouseenter(){this.trigger==="hover"&&this.show()}onHostMouseleave(){if(this.trigger==="hover"){const e=this.open;this.hide(),e&&this.emitClose("toggle")}}onSlotChange(e){this.syncShapes(e.target.assignedElements())}syncShapes(e){for(const t of e)t.tagName==="WC-FLOAT-BUTTON"&&!t.hasAttribute("shape")&&t.setAttribute("shape",this.shape)}updated(e){if(super.updated(e),e.has("shape")){const t=this.shadowRoot.querySelector("slot");t&&this.syncShapes(t.assignedElements())}}render(){return n.html`
3856
+ ${this.trigger?n.html`<wc-float-button
3857
+ class="trigger-btn"
3858
+ part="trigger"
3859
+ shape=${this.shape}
3860
+ aria-expanded=${this.open}
3861
+ aria-label=${this.localize.term("floatbutton.menu")}
3862
+ @click=${this.onTriggerClick}
3863
+ >
3864
+ <wc-icon slot="icon" class="trigger-ico" name=${this.icon||"plus"}></wc-icon>
3865
+ </wc-float-button>`:n.nothing}
3866
+ <div class="items" part="items" ?data-open=${!this.trigger||this.open}>
3867
+ <slot @slotchange=${this.onSlotChange}></slot>
3868
+ </div>
3869
+ `}};Xt.styles=[d,Vi];let te=Xt;Ze([i.property({reflect:!0})],te.prototype,"shape");Ze([i.property({reflect:!0})],te.prototype,"trigger");Ze([i.property({type:Boolean,reflect:!0})],te.prototype,"open");Ze([i.property()],te.prototype,"icon");customElements.get("wc-float-button-group")||customElements.define("wc-float-button-group",te);const Hi=n.css`
3281
3870
  :host {
3282
3871
  display: block;
3283
3872
  }
@@ -3343,7 +3932,7 @@
3343
3932
  cursor: not-allowed;
3344
3933
  background-color: transparent;
3345
3934
  }
3346
- `,la=i.css`
3935
+ `,Bi=n.css`
3347
3936
  :host {
3348
3937
  display: block;
3349
3938
  padding-top: var(--wc-space-3);
@@ -3355,11 +3944,11 @@
3355
3944
  :host(:not([active])) {
3356
3945
  display: none;
3357
3946
  }
3358
- `;var da=Object.defineProperty,Fe=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&da(e,t,r),r};const Tt=class Tt extends i.LitElement{constructor(){super(...arguments),this.value="",this.label="",this.disabled=!1,this.active=!1}render(){return i.html`<div class="panel" part="panel" role="tabpanel" aria-label=${this.label}>
3947
+ `;var Ni=Object.defineProperty,Je=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Ni(e,t,r),r};const Gt=class Gt extends n.LitElement{constructor(){super(...arguments),this.value="",this.label="",this.disabled=!1,this.active=!1}render(){return n.html`<div class="panel" part="panel" role="tabpanel" aria-label=${this.label}>
3359
3948
  <slot></slot>
3360
- </div>`}};Tt.styles=[l,la];let X=Tt;Fe([s.property()],X.prototype,"value");Fe([s.property()],X.prototype,"label");Fe([s.property({type:Boolean,reflect:!0})],X.prototype,"disabled");Fe([s.property({type:Boolean,reflect:!0})],X.prototype,"active");customElements.get("wc-tab")||customElements.define("wc-tab",X);var ha=Object.defineProperty,pa=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&ha(e,t,r),r};const Dt=class Dt extends i.LitElement{constructor(){super(...arguments),this.value="",this.tabs=[],this.uid=`wc-tabs-${Math.random().toString(36).slice(2,8)}`,this.mutationObserver=new MutationObserver(()=>this.collectTabs())}connectedCallback(){super.connectedCallback(),this.mutationObserver.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["label","value","disabled"]})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect()}collectTabs(){const e=Array.from(this.querySelectorAll("wc-tab"));this.tabs=e.map((t,n)=>({value:t.value||String(n),label:t.label||t.textContent?.trim()||String(n+1),disabled:t.disabled,element:t})),this.requestUpdate(),this.syncActive()}syncActive(){!this.value&&this.tabs.length>0&&!this.tabs.some(e=>e.value===this.value)&&(this.value=this.tabs[0].value);for(const e of this.tabs)e.element.active=e.value===this.value}updated(e){super.updated(e),e.has("value")&&this.syncActive()}select(e){if(e===this.value)return;const t=this.tabs.find(n=>n.value===e);!t||t.disabled||(this.value=e,this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:e},bubbles:!0,composed:!0})))}onTablistKeydown(e){const t=this.tabs.filter(a=>!a.disabled);if(t.length===0)return;const n=Math.max(0,t.findIndex(a=>a.value===this.value));let r;switch(e.key){case"ArrowRight":case"ArrowDown":r=t[(n+1)%t.length];break;case"ArrowLeft":case"ArrowUp":r=t[(n-1+t.length)%t.length];break;case"Home":r=t[0];break;case"End":r=t[t.length-1];break;default:return}e.preventDefault(),r&&(this.select(r.value),this.focusTab(r.value))}focusTab(e){const t=e.replace(/["\\]/g,"\\$&");this.shadowRoot.querySelector(`[data-value="${t}"]`)?.focus()}render(){return i.html`
3949
+ </div>`}};Gt.styles=[d,Bi];let re=Gt;Je([i.property()],re.prototype,"value");Je([i.property()],re.prototype,"label");Je([i.property({type:Boolean,reflect:!0})],re.prototype,"disabled");Je([i.property({type:Boolean,reflect:!0})],re.prototype,"active");customElements.get("wc-tab")||customElements.define("wc-tab",re);var qi=Object.defineProperty,Ri=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&qi(e,t,r),r};const Zt=class Zt extends n.LitElement{constructor(){super(...arguments),this.value="",this.tabs=[],this.uid=`wc-tabs-${Math.random().toString(36).slice(2,8)}`,this.mutationObserver=new MutationObserver(()=>this.collectTabs())}connectedCallback(){super.connectedCallback(),this.mutationObserver.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["label","value","disabled"]})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect()}collectTabs(){const e=Array.from(this.querySelectorAll("wc-tab"));this.tabs=e.map((t,l)=>({value:t.value||String(l),label:t.label||t.textContent?.trim()||String(l+1),disabled:t.disabled,element:t})),this.requestUpdate(),this.syncActive()}syncActive(){!this.value&&this.tabs.length>0&&!this.tabs.some(e=>e.value===this.value)&&(this.value=this.tabs[0].value);for(const e of this.tabs)e.element.active=e.value===this.value}updated(e){super.updated(e),e.has("value")&&this.syncActive()}select(e){if(e===this.value)return;const t=this.tabs.find(l=>l.value===e);!t||t.disabled||(this.value=e,this.dispatchEvent(new CustomEvent("wc-change",{detail:{value:e},bubbles:!0,composed:!0})))}onTablistKeydown(e){const t=this.tabs.filter(s=>!s.disabled);if(t.length===0)return;const l=Math.max(0,t.findIndex(s=>s.value===this.value));let r;switch(e.key){case"ArrowRight":case"ArrowDown":r=t[(l+1)%t.length];break;case"ArrowLeft":case"ArrowUp":r=t[(l-1+t.length)%t.length];break;case"Home":r=t[0];break;case"End":r=t[t.length-1];break;default:return}e.preventDefault(),r&&(this.select(r.value),this.focusTab(r.value))}focusTab(e){const t=e.replace(/["\\]/g,"\\$&");this.shadowRoot.querySelector(`[data-value="${t}"]`)?.focus()}render(){return n.html`
3361
3950
  <div class="bar" part="bar" role="tablist" @keydown=${this.onTablistKeydown}>
3362
- ${this.tabs.map(e=>i.html`
3951
+ ${this.tabs.map(e=>n.html`
3363
3952
  <button
3364
3953
  type="button"
3365
3954
  class="tab"
@@ -3377,8 +3966,8 @@
3377
3966
  </button>
3378
3967
  `)}
3379
3968
  </div>
3380
- ${this.tabs.length>0?i.html`<slot @slotchange=${this.collectTabs}></slot>`:i.nothing}
3381
- `}};Dt.styles=[l,ca];let ke=Dt;pa([s.property({reflect:!0})],ke.prototype,"value");customElements.get("wc-tabs")||customElements.define("wc-tabs",ke);const ua=i.css`
3969
+ ${this.tabs.length>0?n.html`<slot @slotchange=${this.collectTabs}></slot>`:n.nothing}
3970
+ `}};Zt.styles=[d,Hi];let _e=Zt;Ri([i.property({reflect:!0})],_e.prototype,"value");customElements.get("wc-tabs")||customElements.define("wc-tabs",_e);const Fi=n.css`
3382
3971
  :host {
3383
3972
  display: block;
3384
3973
  }
@@ -3435,23 +4024,23 @@
3435
4024
  color: var(--wc-color-text);
3436
4025
  font-weight: var(--wc-font-weight-medium);
3437
4026
  }
3438
- `;var va=Object.defineProperty,wa=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&va(e,t,r),r};const jt=class jt extends i.LitElement{constructor(){super(...arguments),this.separator="/",this.items=[],this.localize=new v(this),this.mutationObserver=new MutationObserver(()=>this.collectItems())}connectedCallback(){super.connectedCallback(),this.mutationObserver.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["href","disabled"]})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect()}collectItems(){const e=Array.from(this.querySelectorAll("wc-breadcrumb-item"));this.items=e.map((t,n)=>({label:t.textContent?.trim()||String(n+1),href:t.getAttribute("href")||"",disabled:t.hasAttribute("disabled"),index:n})),this.requestUpdate()}onSelect(e){this.dispatchEvent(new CustomEvent("wc-select",{detail:{index:e.index,label:e.label,href:e.href},bubbles:!0,composed:!0}))}renderItem(e,t){return t?i.html`<span class="current" part="current" aria-current="page">${e.label}</span>`:e.disabled?i.html`<span class="link" data-disabled aria-disabled="true">${e.label}</span>`:e.href?i.html`<a class="link" part="link" href=${e.href} @click=${()=>this.onSelect(e)}
4027
+ `;var Ui=Object.defineProperty,Yi=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Ui(e,t,r),r};const Jt=class Jt extends n.LitElement{constructor(){super(...arguments),this.separator="/",this.items=[],this.localize=new v(this),this.mutationObserver=new MutationObserver(()=>this.collectItems())}connectedCallback(){super.connectedCallback(),this.mutationObserver.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["href","disabled"]})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect()}collectItems(){const e=Array.from(this.querySelectorAll("wc-breadcrumb-item"));this.items=e.map((t,l)=>({label:t.textContent?.trim()||String(l+1),href:t.getAttribute("href")||"",disabled:t.hasAttribute("disabled"),index:l})),this.requestUpdate()}onSelect(e){this.dispatchEvent(new CustomEvent("wc-select",{detail:{index:e.index,label:e.label,href:e.href},bubbles:!0,composed:!0}))}renderItem(e,t){return t?n.html`<span class="current" part="current" aria-current="page">${e.label}</span>`:e.disabled?n.html`<span class="link" data-disabled aria-disabled="true">${e.label}</span>`:e.href?n.html`<a class="link" part="link" href=${e.href} @click=${()=>this.onSelect(e)}
3439
4028
  >${e.label}</a
3440
- >`:i.html`<span class="link" part="link" @click=${()=>this.onSelect(e)}
4029
+ >`:n.html`<span class="link" part="link" @click=${()=>this.onSelect(e)}
3441
4030
  >${e.label}</span
3442
- >`}render(){const e=this.items.length-1;return i.html`
4031
+ >`}render(){const e=this.items.length-1;return n.html`
3443
4032
  <nav class="nav" part="nav" aria-label=${this.localize.term("breadcrumb.label")}>
3444
4033
  <ol class="list" part="list">
3445
- ${this.items.map((t,n)=>i.html`
3446
- <li class="item" part="item">${this.renderItem(t,n===e)}</li>
3447
- ${n<e?i.html`<li class="separator" part="separator" aria-hidden="true">
4034
+ ${this.items.map((t,l)=>n.html`
4035
+ <li class="item" part="item">${this.renderItem(t,l===e)}</li>
4036
+ ${l<e?n.html`<li class="separator" part="separator" aria-hidden="true">
3448
4037
  ${this.separator}
3449
- </li>`:i.nothing}
4038
+ </li>`:n.nothing}
3450
4039
  `)}
3451
4040
  </ol>
3452
4041
  <slot @slotchange=${this.collectItems}></slot>
3453
4042
  </nav>
3454
- `}};jt.styles=[l,ua];let $e=jt;wa([s.property()],$e.prototype,"separator");customElements.get("wc-breadcrumb")||customElements.define("wc-breadcrumb",$e);var ma=Object.defineProperty,pr=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&ma(e,t,r),r};class Ve extends i.LitElement{constructor(){super(...arguments),this.href="",this.disabled=!1}render(){return i.html``}}pr([s.property()],Ve.prototype,"href");pr([s.property({type:Boolean,reflect:!0})],Ve.prototype,"disabled");customElements.get("wc-breadcrumb-item")||customElements.define("wc-breadcrumb-item",Ve);const ba=i.css`
4043
+ `}};Jt.styles=[d,Fi];let Le=Jt;Yi([i.property()],Le.prototype,"separator");customElements.get("wc-breadcrumb")||customElements.define("wc-breadcrumb",Le);var Ki=Object.defineProperty,_r=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Ki(e,t,r),r};class Qe extends n.LitElement{constructor(){super(...arguments),this.href="",this.disabled=!1}render(){return n.html``}}_r([i.property()],Qe.prototype,"href");_r([i.property({type:Boolean,reflect:!0})],Qe.prototype,"disabled");customElements.get("wc-breadcrumb-item")||customElements.define("wc-breadcrumb-item",Qe);const Wi=n.css`
3455
4044
  :host {
3456
4045
  display: block;
3457
4046
  }
@@ -3542,11 +4131,11 @@
3542
4131
  background-color: var(--wc-color-bg-disabled, var(--wc-color-bg-hover));
3543
4132
  cursor: not-allowed;
3544
4133
  }
3545
- `;var ga=Object.defineProperty,ne=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&ga(e,t,r),r};const Nt=class Nt extends i.LitElement{constructor(){super(...arguments),this.total=0,this.pageSize=10,this.current=1,this.foldedPageCount=5,this.showTotal=!1,this.showJumper=!1,this.disabled=!1,this.localize=new v(this)}get pageCount(){return Math.max(1,Math.ceil(this.total/Math.max(1,this.pageSize)))}select(e){const t=Math.min(this.pageCount,Math.max(1,Math.floor(e)));if(this.disabled||t===this.current)return;const n=this.current;this.current=t,this.dispatchEvent(new CustomEvent("wc-change",{detail:{current:t,previous:n},bubbles:!0,composed:!0}))}updated(e){super.updated(e),(e.has("total")||e.has("pageSize"))&&this.current>this.pageCount&&(this.current=this.pageCount)}getPageItems(){const e=this.pageCount,t=Math.max(1,this.foldedPageCount);if(e<=t+2)return Array.from({length:e},(c,u)=>u+1);let n=Math.max(2,this.current-Math.floor(t/2));const r=Math.min(e-1,n+t-1);n=Math.max(2,r-t+1);const a=[1];n>2&&a.push("ellipsis-prev");for(let c=n;c<=r;c++)a.push(c);return r<e-1&&a.push("ellipsis-next"),a.push(e),a}onJumperKeydown(e){if(e.key!=="Enter")return;const t=e.target,n=Number.parseInt(t.value,10);Number.isNaN(n)||(this.select(n),t.value=String(this.current))}render(){const e=this.disabled||this.current<=1,t=this.disabled||this.current>=this.pageCount;return i.html`
4134
+ `;var Xi=Object.defineProperty,ve=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Xi(e,t,r),r};const Qt=class Qt extends n.LitElement{constructor(){super(...arguments),this.total=0,this.pageSize=10,this.current=1,this.foldedPageCount=5,this.showTotal=!1,this.showJumper=!1,this.disabled=!1,this.localize=new v(this)}get pageCount(){return Math.max(1,Math.ceil(this.total/Math.max(1,this.pageSize)))}select(e){const t=Math.min(this.pageCount,Math.max(1,Math.floor(e)));if(this.disabled||t===this.current)return;const l=this.current;this.current=t,this.dispatchEvent(new CustomEvent("wc-change",{detail:{current:t,previous:l},bubbles:!0,composed:!0}))}updated(e){super.updated(e),(e.has("total")||e.has("pageSize"))&&this.current>this.pageCount&&(this.current=this.pageCount)}getPageItems(){const e=this.pageCount,t=Math.max(1,this.foldedPageCount);if(e<=t+2)return Array.from({length:e},(c,p)=>p+1);let l=Math.max(2,this.current-Math.floor(t/2));const r=Math.min(e-1,l+t-1);l=Math.max(2,r-t+1);const s=[1];l>2&&s.push("ellipsis-prev");for(let c=l;c<=r;c++)s.push(c);return r<e-1&&s.push("ellipsis-next"),s.push(e),s}onJumperKeydown(e){if(e.key!=="Enter")return;const t=e.target,l=Number.parseInt(t.value,10);Number.isNaN(l)||(this.select(l),t.value=String(this.current))}render(){const e=this.disabled||this.current<=1,t=this.disabled||this.current>=this.pageCount;return n.html`
3546
4135
  <nav class="pagination" part="nav" aria-label=${this.localize.term("pagination.label")}>
3547
- ${this.showTotal?i.html`<span class="total" part="total">
4136
+ ${this.showTotal?n.html`<span class="total" part="total">
3548
4137
  ${this.localize.term("pagination.total",{total:this.total})}
3549
- </span>`:i.nothing}
4138
+ </span>`:n.nothing}
3550
4139
  <button
3551
4140
  type="button"
3552
4141
  class="page-button"
@@ -3557,16 +4146,16 @@
3557
4146
  >
3558
4147
  <wc-icon name="chevron-left"></wc-icon>
3559
4148
  </button>
3560
- ${this.getPageItems().map(n=>typeof n!="number"?i.html`<span class="ellipsis" part="ellipsis" aria-hidden="true">•••</span>`:i.html`<button
4149
+ ${this.getPageItems().map(l=>typeof l!="number"?n.html`<span class="ellipsis" part="ellipsis" aria-hidden="true">•••</span>`:n.html`<button
3561
4150
  type="button"
3562
4151
  class="page-button"
3563
4152
  part="page"
3564
4153
  ?disabled=${this.disabled}
3565
- aria-label=${this.localize.term("pagination.page",{page:n})}
3566
- aria-current=${n===this.current?"page":i.nothing}
3567
- @click=${()=>this.select(n)}
4154
+ aria-label=${this.localize.term("pagination.page",{page:l})}
4155
+ aria-current=${l===this.current?"page":n.nothing}
4156
+ @click=${()=>this.select(l)}
3568
4157
  >
3569
- ${n}
4158
+ ${l}
3570
4159
  </button>`)}
3571
4160
  <button
3572
4161
  type="button"
@@ -3578,7 +4167,7 @@
3578
4167
  >
3579
4168
  <wc-icon name="chevron-right"></wc-icon>
3580
4169
  </button>
3581
- ${this.showJumper?i.html`<span class="jumper" part="jumper">
4170
+ ${this.showJumper?n.html`<span class="jumper" part="jumper">
3582
4171
  ${this.localize.term("pagination.jumpTo")}
3583
4172
  <input
3584
4173
  type="text"
@@ -3589,9 +4178,9 @@
3589
4178
  @keydown=${this.onJumperKeydown}
3590
4179
  />
3591
4180
  ${this.localize.term("pagination.pageUnit")}
3592
- </span>`:i.nothing}
4181
+ </span>`:n.nothing}
3593
4182
  </nav>
3594
- `}};Nt.styles=[l,ba];let E=Nt;ne([s.property({type:Number})],E.prototype,"total");ne([s.property({type:Number,attribute:"page-size"})],E.prototype,"pageSize");ne([s.property({type:Number,reflect:!0})],E.prototype,"current");ne([s.property({type:Number,attribute:"folded-page-count"})],E.prototype,"foldedPageCount");ne([s.property({type:Boolean,attribute:"show-total"})],E.prototype,"showTotal");ne([s.property({type:Boolean,attribute:"show-jumper"})],E.prototype,"showJumper");ne([s.property({type:Boolean,reflect:!0})],E.prototype,"disabled");customElements.get("wc-pagination")||customElements.define("wc-pagination",E);const fa=i.css`
4183
+ `}};Qt.styles=[d,Wi];let L=Qt;ve([i.property({type:Number})],L.prototype,"total");ve([i.property({type:Number,attribute:"page-size"})],L.prototype,"pageSize");ve([i.property({type:Number,reflect:!0})],L.prototype,"current");ve([i.property({type:Number,attribute:"folded-page-count"})],L.prototype,"foldedPageCount");ve([i.property({type:Boolean,attribute:"show-total"})],L.prototype,"showTotal");ve([i.property({type:Boolean,attribute:"show-jumper"})],L.prototype,"showJumper");ve([i.property({type:Boolean,reflect:!0})],L.prototype,"disabled");customElements.get("wc-pagination")||customElements.define("wc-pagination",L);const Gi=n.css`
3595
4184
  :host {
3596
4185
  position: relative;
3597
4186
  display: inline-flex;
@@ -3639,10 +4228,10 @@
3639
4228
  :host([theme='danger']) .badge {
3640
4229
  background-color: var(--wc-color-error);
3641
4230
  }
3642
- `;var ya=Object.defineProperty,Ue=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&ya(e,t,r),r};const qt=class qt extends i.LitElement{constructor(){super(...arguments),this.count=0,this.max=99,this.dot=!1,this.theme="danger"}get displayCount(){return this.count>this.max?`${this.max}+`:String(Math.max(0,this.count))}render(){const e=this.dot||this.count>0;return i.html`
4231
+ `;var Zi=Object.defineProperty,et=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&Zi(e,t,r),r};const er=class er extends n.LitElement{constructor(){super(...arguments),this.count=0,this.max=99,this.dot=!1,this.theme="danger"}get displayCount(){return this.count>this.max?`${this.max}+`:String(Math.max(0,this.count))}render(){const e=this.dot||this.count>0;return n.html`
3643
4232
  <slot></slot>
3644
- ${e?i.html`<sup class="badge" part="badge">${this.dot?i.nothing:this.displayCount}</sup>`:i.nothing}
3645
- `}};qt.styles=[l,fa];let G=qt;Ue([s.property({type:Number})],G.prototype,"count");Ue([s.property({type:Number})],G.prototype,"max");Ue([s.property({type:Boolean,reflect:!0})],G.prototype,"dot");Ue([s.property({reflect:!0})],G.prototype,"theme");customElements.get("wc-badge")||customElements.define("wc-badge",G);const xa=i.css`
4233
+ ${e?n.html`<sup class="badge" part="badge">${this.dot?n.nothing:this.displayCount}</sup>`:n.nothing}
4234
+ `}};er.styles=[d,Gi];let oe=er;et([i.property({type:Number})],oe.prototype,"count");et([i.property({type:Number})],oe.prototype,"max");et([i.property({type:Boolean,reflect:!0})],oe.prototype,"dot");et([i.property({reflect:!0})],oe.prototype,"theme");customElements.get("wc-badge")||customElements.define("wc-badge",oe);const Ji=n.css`
3646
4235
  :host {
3647
4236
  display: block;
3648
4237
  }
@@ -3698,7 +4287,7 @@
3698
4287
  .action:empty {
3699
4288
  display: none;
3700
4289
  }
3701
- `,At=class At extends i.LitElement{constructor(){super(...arguments),this.localize=new v(this)}render(){return i.html`
4290
+ `,tr=class tr extends n.LitElement{constructor(){super(...arguments),this.localize=new v(this)}render(){return n.html`
3702
4291
  <div class="empty" part="base">
3703
4292
  <div class="icon" part="icon">
3704
4293
  <slot name="icon"><span class="placeholder"></span></slot>
@@ -3710,7 +4299,7 @@
3710
4299
  <slot name="action"></slot>
3711
4300
  </div>
3712
4301
  </div>
3713
- `}};At.styles=[l,xa];let Me=At;customElements.get("wc-empty")||customElements.define("wc-empty",Me);const ka=i.css`
4302
+ `}};tr.styles=[d,Ji];let Be=tr;customElements.get("wc-empty")||customElements.define("wc-empty",Be);const Qi=n.css`
3714
4303
  :host {
3715
4304
  display: block;
3716
4305
  }
@@ -3824,9 +4413,9 @@
3824
4413
  .circle-label .label {
3825
4414
  color: inherit;
3826
4415
  }
3827
- `;var $a=Object.defineProperty,fe=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&$a(e,t,r),r};const Ze=32,er=2*Math.PI*Ze,Bt=class Bt extends i.LitElement{constructor(){super(...arguments),this.value=0,this.theme="line",this.status="normal",this.showLabel=!0,this.strokeWidth=6,this.label=""}get percent(){return Math.min(100,Math.max(0,this.value))}get labelText(){return this.label||`${Math.round(this.percent)}%`}renderStatusLabel(){if(!this.showLabel)return i.nothing;const e=this.status==="success"?"check":this.status==="error"?"close":"";return i.html`<span class="label" part="label">
3828
- ${e?i.html`<wc-icon name=${e}></wc-icon>`:i.nothing}${this.labelText}
3829
- </span>`}renderLine(){return i.html`<div class="line" part="base">
4416
+ `;var ea=Object.defineProperty,Ee=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&ea(e,t,r),r};const nt=32,mr=2*Math.PI*nt,rr=class rr extends n.LitElement{constructor(){super(...arguments),this.value=0,this.theme="line",this.status="normal",this.showLabel=!0,this.strokeWidth=6,this.label=""}get percent(){return Math.min(100,Math.max(0,this.value))}get labelText(){return this.label||`${Math.round(this.percent)}%`}renderStatusLabel(){if(!this.showLabel)return n.nothing;const e=this.status==="success"?"check":this.status==="error"?"close":"";return n.html`<span class="label" part="label">
4417
+ ${e?n.html`<wc-icon name=${e}></wc-icon>`:n.nothing}${this.labelText}
4418
+ </span>`}renderLine(){return n.html`<div class="line" part="base">
3830
4419
  <div
3831
4420
  class="track"
3832
4421
  part="track"
@@ -3840,7 +4429,7 @@
3840
4429
  <div class="indicator" part="indicator" style="width: ${this.percent}%"></div>
3841
4430
  </div>
3842
4431
  ${this.renderStatusLabel()}
3843
- </div>`}renderCircle(){return i.html`<div class="circle-wrap" part="base">
4432
+ </div>`}renderCircle(){return n.html`<div class="circle-wrap" part="base">
3844
4433
  <svg
3845
4434
  class="circle"
3846
4435
  viewBox="0 0 72 72"
@@ -3850,22 +4439,23 @@
3850
4439
  aria-valuenow=${Math.round(this.percent)}
3851
4440
  aria-label=${this.labelText}
3852
4441
  >
3853
- <circle class="track" part="track" cx="36" cy="36" r="${Ze}"></circle>
4442
+ <circle class="track" part="track" cx="36" cy="36" r="${nt}"></circle>
3854
4443
  <circle
3855
4444
  class="indicator"
3856
4445
  part="indicator"
3857
4446
  cx="36"
3858
4447
  cy="36"
3859
- r="${Ze}"
3860
- stroke-dasharray="${er}"
3861
- stroke-dashoffset=${er*(1-this.percent/100)}
4448
+ r="${nt}"
4449
+ stroke-dasharray="${mr}"
4450
+ stroke-dashoffset=${mr*(1-this.percent/100)}
3862
4451
  transform="rotate(-90 36 36)"
3863
4452
  ></circle>
3864
4453
  </svg>
3865
4454
  <div class="circle-label">${this.renderStatusLabel()}</div>
3866
- </div>`}render(){return this.theme==="circle"?this.renderCircle():this.renderLine()}};Bt.styles=[l,ka];let L=Bt;fe([s.property({type:Number})],L.prototype,"value");fe([s.property({reflect:!0})],L.prototype,"theme");fe([s.property({reflect:!0})],L.prototype,"status");fe([s.property({type:Boolean,attribute:"show-label"})],L.prototype,"showLabel");fe([s.property({type:Number,attribute:"stroke-width"})],L.prototype,"strokeWidth");fe([s.property()],L.prototype,"label");customElements.get("wc-progress")||customElements.define("wc-progress",L);const za=i.css`
4455
+ </div>`}render(){return this.theme==="circle"?this.renderCircle():this.renderLine()}};rr.styles=[d,Qi];let D=rr;Ee([i.property({type:Number})],D.prototype,"value");Ee([i.property({reflect:!0})],D.prototype,"theme");Ee([i.property({reflect:!0})],D.prototype,"status");Ee([i.property({type:Boolean,attribute:"show-label"})],D.prototype,"showLabel");Ee([i.property({type:Number,attribute:"stroke-width"})],D.prototype,"strokeWidth");Ee([i.property()],D.prototype,"label");customElements.get("wc-progress")||customElements.define("wc-progress",D);const ta=n.css`
3867
4456
  :host {
3868
4457
  display: block;
4458
+ --wc-card-radius: var(--wc-radius-medium);
3869
4459
  }
3870
4460
 
3871
4461
  /* display:flex 类会覆盖 [hidden] 的 UA 样式,显式关闭 */
@@ -3875,7 +4465,7 @@
3875
4465
 
3876
4466
  .card {
3877
4467
  background-color: var(--wc-color-bg-container);
3878
- border-radius: var(--wc-radius-large);
4468
+ border-radius: var(--wc-card-radius);
3879
4469
  transition: box-shadow var(--wc-duration-base, 200ms) var(--wc-easing-standard);
3880
4470
  }
3881
4471
 
@@ -3926,27 +4516,28 @@
3926
4516
  padding: var(--wc-space-3) var(--wc-space-4);
3927
4517
  border-top: 1px solid var(--wc-color-border);
3928
4518
  }
3929
- `;var Ca=Object.defineProperty,ce=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Ca(e,t,r),r};const Rt=class Rt extends i.LitElement{constructor(){super(...arguments),this.title="",this.subtitle="",this.bordered=!0,this.hoverable=!1,this.hasHeaderSlot=!1,this.hasActions=!1,this.hasFooter=!1}onSlotChange(e){const t=e.target,n=t.assignedElements().length>0;t.name==="header"?this.hasHeaderSlot=n:t.name==="actions"?this.hasActions=n:t.name==="footer"&&(this.hasFooter=n)}connectedCallback(){super.connectedCallback(),this.hasHeaderSlot=this.querySelector('[slot="header"]')!==null,this.hasActions=this.querySelector('[slot="actions"]')!==null,this.hasFooter=this.querySelector('[slot="footer"]')!==null}renderHeader(){const e=!!(this.title||this.subtitle||this.hasHeaderSlot||this.hasActions);return i.html`<div class="header" part="header" ?hidden=${!e}>
4519
+ `;var ra=Object.defineProperty,ye=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&ra(e,t,r),r};const or=class or extends n.LitElement{constructor(){super(...arguments),this.title="",this.subtitle="",this.bordered=!0,this.hoverable=!1,this.hasHeaderSlot=!1,this.hasActions=!1,this.hasFooter=!1}onSlotChange(e){const t=e.target,l=t.assignedElements().length>0;t.name==="header"?this.hasHeaderSlot=l:t.name==="actions"?this.hasActions=l:t.name==="footer"&&(this.hasFooter=l)}connectedCallback(){super.connectedCallback(),this.hasHeaderSlot=this.querySelector('[slot="header"]')!==null,this.hasActions=this.querySelector('[slot="actions"]')!==null,this.hasFooter=this.querySelector('[slot="footer"]')!==null}renderHeader(){const e=!!(this.title||this.subtitle||this.hasHeaderSlot||this.hasActions);return n.html`<div class="header" part="header" ?hidden=${!e}>
3930
4520
  <div class="titles" ?hidden=${this.hasHeaderSlot}>
3931
- ${this.title?i.html`<div class="title" part="title">${this.title}</div>`:i.nothing}
3932
- ${this.subtitle?i.html`<div class="subtitle" part="subtitle">${this.subtitle}</div>`:i.nothing}
4521
+ ${this.title?n.html`<div class="title" part="title">${this.title}</div>`:n.nothing}
4522
+ ${this.subtitle?n.html`<div class="subtitle" part="subtitle">${this.subtitle}</div>`:n.nothing}
3933
4523
  </div>
3934
4524
  <slot name="header" @slotchange=${this.onSlotChange} ?hidden=${!this.hasHeaderSlot}></slot>
3935
4525
  <div class="actions" part="actions" ?hidden=${!this.hasActions}>
3936
4526
  <slot name="actions" @slotchange=${this.onSlotChange}></slot>
3937
4527
  </div>
3938
- </div>`}render(){return i.html`<div class="card" part="base">
4528
+ </div>`}render(){return n.html`<div class="card" part="base">
3939
4529
  ${this.renderHeader()}
3940
4530
  <div class="body" part="body"><slot></slot></div>
3941
4531
  <div class="footer" part="footer" ?hidden=${!this.hasFooter}>
3942
4532
  <slot name="footer" @slotchange=${this.onSlotChange}></slot>
3943
4533
  </div>
3944
- </div>`}};Rt.styles=[l,za];let S=Rt;ce([s.property()],S.prototype,"title");ce([s.property()],S.prototype,"subtitle");ce([s.property({type:Boolean,reflect:!0})],S.prototype,"bordered");ce([s.property({type:Boolean,reflect:!0})],S.prototype,"hoverable");ce([s.state()],S.prototype,"hasHeaderSlot");ce([s.state()],S.prototype,"hasActions");ce([s.state()],S.prototype,"hasFooter");customElements.get("wc-card")||customElements.define("wc-card",S);const Ea=i.css`
4534
+ </div>`}};or.styles=[d,ta];let O=or;ye([i.property()],O.prototype,"title");ye([i.property()],O.prototype,"subtitle");ye([i.property({type:Boolean,reflect:!0})],O.prototype,"bordered");ye([i.property({type:Boolean,reflect:!0})],O.prototype,"hoverable");ye([i.state()],O.prototype,"hasHeaderSlot");ye([i.state()],O.prototype,"hasActions");ye([i.state()],O.prototype,"hasFooter");customElements.get("wc-card")||customElements.define("wc-card",O);const oa=n.css`
3945
4535
  :host {
3946
4536
  display: block;
4537
+ --wc-list-radius: var(--wc-radius-medium);
3947
4538
  }
3948
4539
 
3949
- /* display:flex/grid 类会覆盖 [hidden] 的 UA 样式,显式关闭 */
4540
+ /* display:flex 类会覆盖 [hidden] 的 UA 样式,显式关闭 */
3950
4541
  [hidden] {
3951
4542
  display: none !important;
3952
4543
  }
@@ -3957,6 +4548,9 @@
3957
4548
  list-style: none;
3958
4549
  color: var(--wc-color-text);
3959
4550
  font-size: var(--wc-font-size-medium);
4551
+ border-radius: var(--wc-list-radius);
4552
+ /* 裁剪条目背景(striped/hover)避免溢出圆角 */
4553
+ overflow: hidden;
3960
4554
  }
3961
4555
 
3962
4556
  /* 通过 ::slotted 为 light-DOM 条目提供统一样式 */
@@ -3988,14 +4582,14 @@
3988
4582
  .empty {
3989
4583
  padding: var(--wc-space-2) 0;
3990
4584
  }
3991
- `;var Sa=Object.defineProperty,Ye=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Sa(e,t,r),r};const Ft=class Ft extends i.LitElement{constructor(){super(...arguments),this.size="medium",this.striped=!1,this.hoverable=!1,this.itemCount=0}onSlotChange(e){const t=e.target;t.name===""&&(this.itemCount=t.assignedElements().length)}connectedCallback(){super.connectedCallback(),this.itemCount=this.querySelectorAll("wc-list-item").length}render(){return i.html`
4585
+ `;var ia=Object.defineProperty,tt=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&ia(e,t,r),r};const ir=class ir extends n.LitElement{constructor(){super(...arguments),this.size="medium",this.striped=!1,this.hoverable=!1,this.itemCount=0}onSlotChange(e){const t=e.target;t.name===""&&(this.itemCount=t.assignedElements().length)}connectedCallback(){super.connectedCallback(),this.itemCount=this.querySelectorAll("wc-list-item").length}render(){return n.html`
3992
4586
  <ul class="list" part="base" role="list" ?hidden=${this.itemCount===0}>
3993
4587
  <slot @slotchange=${this.onSlotChange}></slot>
3994
4588
  </ul>
3995
4589
  <div class="empty" part="empty" ?hidden=${this.itemCount>0}>
3996
4590
  <slot name="empty" @slotchange=${this.onSlotChange}><wc-empty></wc-empty></slot>
3997
4591
  </div>
3998
- `}};Ft.styles=[l,Ea];let Z=Ft;Ye([s.property({reflect:!0})],Z.prototype,"size");Ye([s.property({type:Boolean,reflect:!0})],Z.prototype,"striped");Ye([s.property({type:Boolean,reflect:!0})],Z.prototype,"hoverable");Ye([s.state()],Z.prototype,"itemCount");customElements.get("wc-list")||customElements.define("wc-list",Z);const Vt=class Vt extends i.LitElement{render(){return i.html`<slot></slot>`}};Vt.styles=[l];let Ie=Vt;customElements.get("wc-list-item")||customElements.define("wc-list-item",Ie);const _a=i.css`
4592
+ `}};ir.styles=[d,oa];let ie=ir;tt([i.property({reflect:!0})],ie.prototype,"size");tt([i.property({type:Boolean,reflect:!0})],ie.prototype,"striped");tt([i.property({type:Boolean,reflect:!0})],ie.prototype,"hoverable");tt([i.state()],ie.prototype,"itemCount");customElements.get("wc-list")||customElements.define("wc-list",ie);const ar=class ar extends n.LitElement{render(){return n.html`<slot></slot>`}};ar.styles=[d];let Ne=ar;customElements.get("wc-list-item")||customElements.define("wc-list-item",Ne);const aa=n.css`
3999
4593
  :host {
4000
4594
  display: block;
4001
4595
  }
@@ -4131,19 +4725,19 @@
4131
4725
  /* 随容器底色自适应明暗主题 */
4132
4726
  background-color: color-mix(in srgb, var(--wc-color-bg-container) 70%, transparent);
4133
4727
  }
4134
- `;var Oa=Object.defineProperty,Q=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Oa(e,t,r),r};const Ut=class Ut extends i.LitElement{constructor(){super(...arguments),this.columns=[],this.data=[],this.striped=!1,this.bordered=!1,this.size="medium",this.loading=!1,this.sortKey="",this.sortOrder=null,this.onSlotChange=()=>this.requestUpdate()}get displayData(){if(!this.sortKey||!this.sortOrder)return this.data;const e=this.sortOrder==="asc"?1:-1;return[...this.data].sort((t,n)=>{const r=t[this.sortKey],a=n[this.sortKey];return r==null?1:a==null?-1:typeof r=="number"&&typeof a=="number"?(r-a)*e:String(r).localeCompare(String(a),"zh-CN")*e})}onHeaderClick(e){if(!e.sortable)return;const t={"":"asc",asc:"desc",desc:null};this.sortOrder=this.sortKey===e.key?t[this.sortOrder??""]??null:"asc",this.sortKey=this.sortOrder===null?"":e.key,this.dispatchEvent(new CustomEvent("wc-sort",{detail:{key:this.sortKey,order:this.sortOrder},bubbles:!0,composed:!0}))}cellContent(e,t,n){const r=e.render?.(t,n);if(r!=null&&r!=="")return typeof r=="object"?r:String(r);const a=t[e.key];return a==null?"":String(a)}renderHead(){return i.html`<thead part="head">
4728
+ `;var sa=Object.defineProperty,se=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&sa(e,t,r),r};const sr=class sr extends n.LitElement{constructor(){super(...arguments),this.columns=[],this.data=[],this.striped=!1,this.bordered=!1,this.size="medium",this.loading=!1,this.sortKey="",this.sortOrder=null,this.onSlotChange=()=>this.requestUpdate()}get displayData(){if(!this.sortKey||!this.sortOrder)return this.data;const e=this.sortOrder==="asc"?1:-1;return[...this.data].sort((t,l)=>{const r=t[this.sortKey],s=l[this.sortKey];return r==null?1:s==null?-1:typeof r=="number"&&typeof s=="number"?(r-s)*e:String(r).localeCompare(String(s),"zh-CN")*e})}onHeaderClick(e){if(!e.sortable)return;const t={"":"asc",asc:"desc",desc:null};this.sortOrder=this.sortKey===e.key?t[this.sortOrder??""]??null:"asc",this.sortKey=this.sortOrder===null?"":e.key,this.dispatchEvent(new CustomEvent("wc-sort",{detail:{key:this.sortKey,order:this.sortOrder},bubbles:!0,composed:!0}))}cellContent(e,t,l){const r=e.render?.(t,l);if(r!=null&&r!=="")return typeof r=="object"?r:String(r);const s=t[e.key];return s==null?"":String(s)}renderHead(){return n.html`<thead part="head">
4135
4729
  <tr>
4136
- ${this.columns.map(e=>{const t=this.sortKey===e.key&&this.sortOrder!==null;return i.html`<th
4730
+ ${this.columns.map(e=>{const t=this.sortKey===e.key&&this.sortOrder!==null;return n.html`<th
4137
4731
  part="th"
4138
4732
  scope="col"
4139
- style=${e.width!=null?`width: ${typeof e.width=="number"?`${e.width}px`:e.width}`:i.nothing}
4140
- class=${[e.align?`align-${e.align}`:"",e.sortable?"sortable":"",t?"sorted":""].join(" ")||i.nothing}
4141
- aria-sort=${t?this.sortOrder==="asc"?"ascending":"descending":i.nothing}
4733
+ style=${e.width!=null?`width: ${typeof e.width=="number"?`${e.width}px`:e.width}`:n.nothing}
4734
+ class=${[e.align?`align-${e.align}`:"",e.sortable?"sortable":"",t?"sorted":""].join(" ")||n.nothing}
4735
+ aria-sort=${t?this.sortOrder==="asc"?"ascending":"descending":n.nothing}
4142
4736
  @click=${()=>this.onHeaderClick(e)}
4143
4737
  >
4144
4738
  <div class="th-inner">
4145
4739
  ${e.title}
4146
- ${e.sortable?i.html`<span class="sort" part="sort">
4740
+ ${e.sortable?n.html`<span class="sort" part="sort">
4147
4741
  <wc-icon
4148
4742
  class=${this.sortKey===e.key&&this.sortOrder==="asc"?"active":""}
4149
4743
  name="chevron-up"
@@ -4152,25 +4746,25 @@
4152
4746
  class=${this.sortKey===e.key&&this.sortOrder==="desc"?"active":""}
4153
4747
  name="chevron-down"
4154
4748
  ></wc-icon>
4155
- </span>`:i.nothing}
4749
+ </span>`:n.nothing}
4156
4750
  </div>
4157
4751
  </th>`})}
4158
4752
  </tr>
4159
- </thead>`}render(){const e=this.data.length>0;return i.html`<div class="wrapper" part="wrapper">
4753
+ </thead>`}render(){const e=this.data.length>0;return n.html`<div class="wrapper" part="wrapper">
4160
4754
  <table part="table">
4161
4755
  ${this.renderHead()}
4162
4756
  <tbody part="body" ?hidden=${!e}>
4163
- ${this.displayData.map((t,n)=>i.html`<tr
4757
+ ${this.displayData.map((t,l)=>n.html`<tr
4164
4758
  part="row"
4165
- @click=${()=>this.dispatchEvent(new CustomEvent("wc-row-click",{detail:{row:t,index:n},bubbles:!0,composed:!0}))}
4759
+ @click=${()=>this.dispatchEvent(new CustomEvent("wc-row-click",{detail:{row:t,index:l},bubbles:!0,composed:!0}))}
4166
4760
  >
4167
- ${this.columns.map(r=>i.html`<td
4761
+ ${this.columns.map(r=>n.html`<td
4168
4762
  part="td"
4169
- class=${r.align?`align-${r.align}`:i.nothing}
4763
+ class=${r.align?`align-${r.align}`:n.nothing}
4170
4764
  ?ellipsis=${r.ellipsis===!0}
4171
- title=${r.ellipsis?String(t[r.key]??""):i.nothing}
4765
+ title=${r.ellipsis?String(t[r.key]??""):n.nothing}
4172
4766
  >
4173
- ${this.cellContent(r,t,n)}
4767
+ ${this.cellContent(r,t,l)}
4174
4768
  </td>`)}
4175
4769
  </tr>`)}
4176
4770
  </tbody>
@@ -4178,10 +4772,10 @@
4178
4772
  <div class="empty" part="empty" ?hidden=${e}>
4179
4773
  <slot name="empty" @slotchange=${this.onSlotChange}><wc-empty></wc-empty></slot>
4180
4774
  </div>
4181
- ${this.loading?i.html`<div class="loading" part="loading">
4775
+ ${this.loading?n.html`<div class="loading" part="loading">
4182
4776
  <wc-icon name="loader" spin label="加载中"></wc-icon>
4183
- </div>`:i.nothing}
4184
- </div>`}};Ut.styles=[l,_a];let x=Ut;Q([s.property({type:Array})],x.prototype,"columns");Q([s.property({type:Array})],x.prototype,"data");Q([s.property({type:Boolean,reflect:!0})],x.prototype,"striped");Q([s.property({type:Boolean,reflect:!0})],x.prototype,"bordered");Q([s.property({reflect:!0})],x.prototype,"size");Q([s.property({type:Boolean,reflect:!0})],x.prototype,"loading");Q([s.state()],x.prototype,"sortKey");Q([s.state()],x.prototype,"sortOrder");customElements.get("wc-table")||customElements.define("wc-table",x);const Pa=i.css`
4777
+ </div>`:n.nothing}
4778
+ </div>`}};sr.styles=[d,aa];let E=sr;se([i.property({type:Array})],E.prototype,"columns");se([i.property({type:Array})],E.prototype,"data");se([i.property({type:Boolean,reflect:!0})],E.prototype,"striped");se([i.property({type:Boolean,reflect:!0})],E.prototype,"bordered");se([i.property({reflect:!0})],E.prototype,"size");se([i.property({type:Boolean,reflect:!0})],E.prototype,"loading");se([i.state()],E.prototype,"sortKey");se([i.state()],E.prototype,"sortOrder");customElements.get("wc-table")||customElements.define("wc-table",E);const na=n.css`
4185
4779
  :host {
4186
4780
  --wc-image-bg: var(--wc-color-bg-container-secondary);
4187
4781
  --wc-image-radius: var(--wc-radius-medium);
@@ -4318,9 +4912,9 @@
4318
4912
  opacity: 1;
4319
4913
  }
4320
4914
  }
4321
- `;var La=Object.defineProperty,p=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&La(e,t,r),r};const Ma=.25,Ia=5,Se=.25,Yt=class Yt extends i.LitElement{constructor(){super(...arguments),this.src="",this.alt="",this.fit="fill",this.position="center",this.shape="square",this.lazy=!1,this.preview=!1,this.previewSrc="",this.fallback="",this.status="loading",this.shouldLoad=!1,this.fallbackFailed=!1,this.previewOpen=!1,this.scale=1,this.rotate=0,this.x=0,this.y=0,this.dragging=!1,this.localize=new v(this),this.overlay=new st(this,{requestClose:()=>this.requestClosePreview("escape")}),this.io=null,this.dragStartX=0,this.dragStartY=0}connectedCallback(){super.connectedCallback(),this.lazy&&typeof IntersectionObserver<"u"?(this.io=new IntersectionObserver(e=>{e.some(t=>t.isIntersecting)&&(this.startLoad(),this.io?.disconnect())}),this.io.observe(this)):this.startLoad(),this.previewOpen&&this.overlay.bind()}disconnectedCallback(){super.disconnectedCallback(),this.io?.disconnect(),this.overlay.unbind()}willUpdate(e){super.willUpdate(e),e.has("src")&&(this.status="loading",this.fallbackFailed=!1)}updated(e){super.updated(e),e.has("previewOpen")&&(this.previewOpen?(this.dispatchEvent(new CustomEvent("wc-preview-open",{bubbles:!0,composed:!0})),this.overlay.bind()):this.overlay.unbind())}startLoad(){this.shouldLoad||(this.shouldLoad=!0)}onImgLoad(){this.status="loaded",this.dispatchEvent(new CustomEvent("wc-load",{detail:{src:this.src},bubbles:!0,composed:!0}))}onImgError(){this.status="error",this.dispatchEvent(new CustomEvent("wc-error",{detail:{src:this.src},bubbles:!0,composed:!0}))}openPreview(){!this.preview||this.status!=="loaded"||(this.resetTransform(),this.previewOpen=!0)}requestClosePreview(e="api"){if(!this.previewOpen)return;this.dispatchEvent(new CustomEvent("wc-preview-close",{detail:{reason:e},bubbles:!0,composed:!0,cancelable:!0}))&&(this.previewOpen=!1)}zoomBy(e){const t=Math.round((this.scale+e)*100)/100;this.scale=Math.min(Ia,Math.max(Ma,t))}rotateBy(){this.rotate=(this.rotate+90)%360}resetTransform(){this.scale=1,this.rotate=0,this.x=0,this.y=0}onOverlayWheel(e){e.preventDefault(),this.zoomBy(e.deltaY<0?Se:-Se)}onStagePointerDown(e){e.button===0&&(this.dragging=!0,this.dragStartX=e.clientX-this.x,this.dragStartY=e.clientY-this.y,e.currentTarget.setPointerCapture(e.pointerId))}onStagePointerMove(e){this.dragging&&(this.x=e.clientX-this.dragStartX,this.y=e.clientY-this.dragStartY)}onStagePointerUp(){this.dragging=!1}onTriggerKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.openPreview())}imgStyle(){return`object-fit:${this.fit};object-position:${this.position}`}previewStyle(){return`transform:translate(${this.x}px, ${this.y}px) scale(${this.scale}) rotate(${this.rotate}deg)`}render(){const e=this.previewSrc||this.src;return i.html`
4915
+ `;var la=Object.defineProperty,y=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&la(e,t,r),r};const ca=.25,da=5,Te=.25,nr=class nr extends n.LitElement{constructor(){super(...arguments),this.src="",this.alt="",this.fit="fill",this.position="center",this.shape="square",this.lazy=!1,this.preview=!1,this.previewSrc="",this.fallback="",this.status="loading",this.shouldLoad=!1,this.fallbackFailed=!1,this.previewOpen=!1,this.scale=1,this.rotate=0,this.x=0,this.y=0,this.dragging=!1,this.localize=new v(this),this.overlay=new yt(this,{requestClose:()=>this.requestClosePreview("escape")}),this.io=null,this.dragStartX=0,this.dragStartY=0}connectedCallback(){super.connectedCallback(),this.lazy&&typeof IntersectionObserver<"u"?(this.io=new IntersectionObserver(e=>{e.some(t=>t.isIntersecting)&&(this.startLoad(),this.io?.disconnect())}),this.io.observe(this)):this.startLoad(),this.previewOpen&&this.overlay.bind()}disconnectedCallback(){super.disconnectedCallback(),this.io?.disconnect(),this.overlay.unbind()}willUpdate(e){super.willUpdate(e),e.has("src")&&(this.status="loading",this.fallbackFailed=!1)}updated(e){super.updated(e),e.has("previewOpen")&&(this.previewOpen?(this.dispatchEvent(new CustomEvent("wc-preview-open",{bubbles:!0,composed:!0})),this.overlay.bind()):this.overlay.unbind())}startLoad(){this.shouldLoad||(this.shouldLoad=!0)}onImgLoad(){this.status="loaded",this.dispatchEvent(new CustomEvent("wc-load",{detail:{src:this.src},bubbles:!0,composed:!0}))}onImgError(){this.status="error",this.dispatchEvent(new CustomEvent("wc-error",{detail:{src:this.src},bubbles:!0,composed:!0}))}openPreview(){!this.preview||this.status!=="loaded"||(this.resetTransform(),this.previewOpen=!0)}requestClosePreview(e="api"){if(!this.previewOpen)return;this.dispatchEvent(new CustomEvent("wc-preview-close",{detail:{reason:e},bubbles:!0,composed:!0,cancelable:!0}))&&(this.previewOpen=!1)}zoomBy(e){const t=Math.round((this.scale+e)*100)/100;this.scale=Math.min(da,Math.max(ca,t))}rotateBy(){this.rotate=(this.rotate+90)%360}resetTransform(){this.scale=1,this.rotate=0,this.x=0,this.y=0}onOverlayWheel(e){e.preventDefault(),this.zoomBy(e.deltaY<0?Te:-Te)}onStagePointerDown(e){e.button===0&&(this.dragging=!0,this.dragStartX=e.clientX-this.x,this.dragStartY=e.clientY-this.y,e.currentTarget.setPointerCapture(e.pointerId))}onStagePointerMove(e){this.dragging&&(this.x=e.clientX-this.dragStartX,this.y=e.clientY-this.dragStartY)}onStagePointerUp(){this.dragging=!1}onTriggerKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.openPreview())}imgStyle(){return`object-fit:${this.fit};object-position:${this.position}`}previewStyle(){return`transform:translate(${this.x}px, ${this.y}px) scale(${this.scale}) rotate(${this.rotate}deg)`}render(){const e=this.previewSrc||this.src;return n.html`
4322
4916
  <div class="frame" part="base">
4323
- ${this.shouldLoad&&this.status!=="error"?i.html`<img
4917
+ ${this.shouldLoad&&this.status!=="error"?n.html`<img
4324
4918
  part="image"
4325
4919
  src=${this.src}
4326
4920
  alt=${this.alt}
@@ -4328,21 +4922,21 @@
4328
4922
  @load=${this.onImgLoad}
4329
4923
  @error=${this.onImgError}
4330
4924
  />`:""}
4331
- ${this.status==="error"&&this.fallback&&!this.fallbackFailed?i.html`<img
4925
+ ${this.status==="error"&&this.fallback&&!this.fallbackFailed?n.html`<img
4332
4926
  part="image"
4333
4927
  src=${this.fallback}
4334
4928
  alt=${this.alt}
4335
4929
  style=${this.imgStyle()}
4336
4930
  @error=${()=>this.fallbackFailed=!0}
4337
4931
  />`:""}
4338
- ${this.status==="loading"?i.html`<div class="layer">
4932
+ ${this.status==="loading"?n.html`<div class="layer">
4339
4933
  <wc-icon name="loader" spin></wc-icon>
4340
4934
  </div>`:""}
4341
- ${this.status==="error"&&(!this.fallback||this.fallbackFailed)?i.html`<div class="layer">
4935
+ ${this.status==="error"&&(!this.fallback||this.fallbackFailed)?n.html`<div class="layer">
4342
4936
  <wc-icon name="image-off"></wc-icon>
4343
4937
  <span>${this.localize.term("image.loadError")}</span>
4344
4938
  </div>`:""}
4345
- ${this.preview&&this.status==="loaded"?i.html`<div
4939
+ ${this.preview&&this.status==="loaded"?n.html`<div
4346
4940
  class="trigger"
4347
4941
  role="button"
4348
4942
  tabindex="0"
@@ -4351,7 +4945,7 @@
4351
4945
  @keydown=${this.onTriggerKeydown}
4352
4946
  ></div>`:""}
4353
4947
  </div>
4354
- ${this.previewOpen?i.html`<div
4948
+ ${this.previewOpen?n.html`<div
4355
4949
  class="overlay"
4356
4950
  part="overlay"
4357
4951
  role="dialog"
@@ -4380,14 +4974,14 @@
4380
4974
  <button
4381
4975
  type="button"
4382
4976
  aria-label=${this.localize.term("image.zoomIn")}
4383
- @click=${()=>this.zoomBy(Se)}
4977
+ @click=${()=>this.zoomBy(Te)}
4384
4978
  >
4385
4979
  <wc-icon name="zoom-in"></wc-icon>
4386
4980
  </button>
4387
4981
  <button
4388
4982
  type="button"
4389
4983
  aria-label=${this.localize.term("image.zoomOut")}
4390
- @click=${()=>this.zoomBy(-Se)}
4984
+ @click=${()=>this.zoomBy(-Te)}
4391
4985
  >
4392
4986
  <wc-icon name="zoom-out"></wc-icon>
4393
4987
  </button>
@@ -4416,7 +5010,7 @@
4416
5010
  </button>
4417
5011
  </div>
4418
5012
  </div>`:""}
4419
- `}};Yt.styles=[l,Pa];let h=Yt;p([s.property()],h.prototype,"src");p([s.property()],h.prototype,"alt");p([s.property()],h.prototype,"fit");p([s.property()],h.prototype,"position");p([s.property({reflect:!0})],h.prototype,"shape");p([s.property({type:Boolean})],h.prototype,"lazy");p([s.property({type:Boolean,reflect:!0})],h.prototype,"preview");p([s.property({attribute:"preview-src"})],h.prototype,"previewSrc");p([s.property()],h.prototype,"fallback");p([s.state()],h.prototype,"status");p([s.state()],h.prototype,"shouldLoad");p([s.state()],h.prototype,"fallbackFailed");p([s.state()],h.prototype,"previewOpen");p([s.state()],h.prototype,"scale");p([s.state()],h.prototype,"rotate");p([s.state()],h.prototype,"x");p([s.state()],h.prototype,"y");p([s.state()],h.prototype,"dragging");customElements.get("wc-image")||customElements.define("wc-image",h);const Ta=i.css`
5013
+ `}};nr.styles=[d,na];let h=nr;y([i.property()],h.prototype,"src");y([i.property()],h.prototype,"alt");y([i.property()],h.prototype,"fit");y([i.property()],h.prototype,"position");y([i.property({reflect:!0})],h.prototype,"shape");y([i.property({type:Boolean})],h.prototype,"lazy");y([i.property({type:Boolean,reflect:!0})],h.prototype,"preview");y([i.property({attribute:"preview-src"})],h.prototype,"previewSrc");y([i.property()],h.prototype,"fallback");y([i.state()],h.prototype,"status");y([i.state()],h.prototype,"shouldLoad");y([i.state()],h.prototype,"fallbackFailed");y([i.state()],h.prototype,"previewOpen");y([i.state()],h.prototype,"scale");y([i.state()],h.prototype,"rotate");y([i.state()],h.prototype,"x");y([i.state()],h.prototype,"y");y([i.state()],h.prototype,"dragging");customElements.get("wc-image")||customElements.define("wc-image",h);const pa=n.css`
4420
5014
  :host {
4421
5015
  display: block;
4422
5016
 
@@ -4648,7 +5242,7 @@
4648
5242
  .bar {
4649
5243
  margin: var(--wc-space-1) 0 0 var(--wc-space-6);
4650
5244
  }
4651
- `;var Da=Object.defineProperty,_=(o,e,t,n)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(e,t,r)||r);return r&&Da(e,t,r),r};const Ht=class Ht extends i.LitElement{constructor(){super(...arguments),this.action="",this.name="file",this.accept="",this.multiple=!1,this.max=0,this.draggable=!1,this.autoUpload=!0,this.disabled=!1,this.requestMethod=null,this.files=[],this.dragOver=!1,this.localize=new v(this),this.xhrMap=new Map,this.uidCounter=0}disconnectedCallback(){super.disconnectedCallback();for(const e of this.xhrMap.values())e.abort();this.xhrMap.clear()}submit(){for(const e of this.files)e.status==="waiting"&&this.startUpload(e)}clearFiles(){for(const e of this.xhrMap.values())e.abort();this.xhrMap.clear(),this.files.length&&(this.files=[],this.emitChange())}nextUid(){return this.uidCounter+=1,`wc-upload-file-${this.uidCounter}`}pick(){if(this.disabled)return;this.shadowRoot?.querySelector('input[type="file"]')?.click()}onInputChange(e){const t=e.target;t.files?.length&&this.addFiles(t.files),t.value=""}onDragOver(e){e.preventDefault(),this.disabled||(this.dragOver=!0)}onDragLeave(){this.dragOver=!1}onDrop(e){e.preventDefault(),this.dragOver=!1,!this.disabled&&e.dataTransfer?.files?.length&&this.addFiles(e.dataTransfer.files)}onDraggerKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.pick())}addFiles(e){const t=Array.from(e);if(!t.length)return;let n=t;if(this.max>0){const a=this.max-this.files.length;if(a<t.length){const c=t.slice(Math.max(0,a));this.dispatchEvent(new CustomEvent("wc-exceed",{detail:{files:c,max:this.max},bubbles:!0,composed:!0})),n=t.slice(0,Math.max(0,a))}}if(!n.length)return;const r=n.map(a=>({uid:this.nextUid(),raw:a,name:a.name,size:a.size,percent:0,status:"waiting"}));if(this.files=[...this.files,...r],this.dispatchEvent(new CustomEvent("wc-select",{detail:{files:n},bubbles:!0,composed:!0})),this.emitChange(),this.autoUpload)for(const a of r)this.startUpload(a)}startUpload(e){if(!(this.disabled||e.status==="uploading")){if(!this.action&&!this.requestMethod){console.warn("[wc-upload] 未配置 action 或 requestMethod,文件保持待上传状态");return}this.updateFile(e,{status:"uploading",percent:0}),this.requestMethod?this.requestMethod(e,{onProgress:t=>this.handleProgress(e,t),onSuccess:t=>this.handleSuccess(e,t),onError:t=>this.handleError(e,t)}):this.uploadWithXhr(e)}}uploadWithXhr(e){const t=new XMLHttpRequest;this.xhrMap.set(e.uid,t);const n=new FormData;n.append(this.name,e.raw),t.open("POST",this.action),t.upload.onprogress=r=>{r.lengthComputable&&this.handleProgress(e,r.loaded/r.total*100)},t.onload=()=>{if(t.status>=200&&t.status<300){let r=t.responseText;try{r=JSON.parse(t.responseText)}catch{}this.handleSuccess(e,r)}else this.handleError(e,`HTTP ${t.status}`)},t.onerror=()=>this.handleError(e,"network error"),t.send(n)}handleProgress(e,t){const n=Math.min(100,Math.max(0,Math.round(t)));this.updateFile(e,{percent:n}),this.dispatchEvent(new CustomEvent("wc-progress",{detail:{file:this.snapshot(e),percent:n},bubbles:!0,composed:!0}))}handleSuccess(e,t){this.xhrMap.delete(e.uid);const n=typeof t?.url=="string"?t.url:void 0;this.updateFile(e,{status:"success",percent:100,response:t,url:n}),this.dispatchEvent(new CustomEvent("wc-success",{detail:{file:this.snapshot(e),response:t},bubbles:!0,composed:!0})),this.emitChange()}handleError(e,t){this.xhrMap.delete(e.uid),this.updateFile(e,{status:"error"}),this.dispatchEvent(new CustomEvent("wc-error",{detail:{file:this.snapshot(e),message:t},bubbles:!0,composed:!0})),this.emitChange()}removeFile(e){const t=this.files[e];!t||!this.dispatchEvent(new CustomEvent("wc-remove",{detail:{file:t,index:e},bubbles:!0,composed:!0,cancelable:!0}))||(this.xhrMap.get(t.uid)?.abort(),this.xhrMap.delete(t.uid),this.files=this.files.filter((r,a)=>a!==e),this.emitChange())}retry(e){e.status==="error"&&this.startUpload(e)}onNameClick(e){e.url&&this.dispatchEvent(new CustomEvent("wc-preview",{detail:{file:e},bubbles:!0,composed:!0}))}updateFile(e,t){this.files=this.files.map(n=>n.uid===e.uid?{...n,...t}:n)}snapshot(e){return this.files.find(t=>t.uid===e.uid)??e}emitChange(){this.dispatchEvent(new CustomEvent("wc-change",{detail:{files:[...this.files]},bubbles:!0,composed:!0}))}formatSize(e){return e==null?"":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}render(){return i.html`
5245
+ `;var ha=Object.defineProperty,P=(a,e,t,l)=>{for(var r=void 0,s=a.length-1,c;s>=0;s--)(c=a[s])&&(r=c(e,t,r)||r);return r&&ha(e,t,r),r};const lr=class lr extends n.LitElement{constructor(){super(...arguments),this.action="",this.name="file",this.accept="",this.multiple=!1,this.max=0,this.draggable=!1,this.autoUpload=!0,this.disabled=!1,this.requestMethod=null,this.files=[],this.dragOver=!1,this.localize=new v(this),this.xhrMap=new Map,this.uidCounter=0}disconnectedCallback(){super.disconnectedCallback();for(const e of this.xhrMap.values())e.abort();this.xhrMap.clear()}submit(){for(const e of this.files)e.status==="waiting"&&this.startUpload(e)}clearFiles(){for(const e of this.xhrMap.values())e.abort();this.xhrMap.clear(),this.files.length&&(this.files=[],this.emitChange())}nextUid(){return this.uidCounter+=1,`wc-upload-file-${this.uidCounter}`}pick(){if(this.disabled)return;this.shadowRoot?.querySelector('input[type="file"]')?.click()}onInputChange(e){const t=e.target;t.files?.length&&this.addFiles(t.files),t.value=""}onDragOver(e){e.preventDefault(),this.disabled||(this.dragOver=!0)}onDragLeave(){this.dragOver=!1}onDrop(e){e.preventDefault(),this.dragOver=!1,!this.disabled&&e.dataTransfer?.files?.length&&this.addFiles(e.dataTransfer.files)}onDraggerKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.pick())}addFiles(e){const t=Array.from(e);if(!t.length)return;let l=t;if(this.max>0){const s=this.max-this.files.length;if(s<t.length){const c=t.slice(Math.max(0,s));this.dispatchEvent(new CustomEvent("wc-exceed",{detail:{files:c,max:this.max},bubbles:!0,composed:!0})),l=t.slice(0,Math.max(0,s))}}if(!l.length)return;const r=l.map(s=>({uid:this.nextUid(),raw:s,name:s.name,size:s.size,percent:0,status:"waiting"}));if(this.files=[...this.files,...r],this.dispatchEvent(new CustomEvent("wc-select",{detail:{files:l},bubbles:!0,composed:!0})),this.emitChange(),this.autoUpload)for(const s of r)this.startUpload(s)}startUpload(e){if(!(this.disabled||e.status==="uploading")){if(!this.action&&!this.requestMethod){console.warn("[wc-upload] 未配置 action 或 requestMethod,文件保持待上传状态");return}this.updateFile(e,{status:"uploading",percent:0}),this.requestMethod?this.requestMethod(e,{onProgress:t=>this.handleProgress(e,t),onSuccess:t=>this.handleSuccess(e,t),onError:t=>this.handleError(e,t)}):this.uploadWithXhr(e)}}uploadWithXhr(e){const t=new XMLHttpRequest;this.xhrMap.set(e.uid,t);const l=new FormData;l.append(this.name,e.raw),t.open("POST",this.action),t.upload.onprogress=r=>{r.lengthComputable&&this.handleProgress(e,r.loaded/r.total*100)},t.onload=()=>{if(t.status>=200&&t.status<300){let r=t.responseText;try{r=JSON.parse(t.responseText)}catch{}this.handleSuccess(e,r)}else this.handleError(e,`HTTP ${t.status}`)},t.onerror=()=>this.handleError(e,"network error"),t.send(l)}handleProgress(e,t){const l=Math.min(100,Math.max(0,Math.round(t)));this.updateFile(e,{percent:l}),this.dispatchEvent(new CustomEvent("wc-progress",{detail:{file:this.snapshot(e),percent:l},bubbles:!0,composed:!0}))}handleSuccess(e,t){this.xhrMap.delete(e.uid);const l=typeof t?.url=="string"?t.url:void 0;this.updateFile(e,{status:"success",percent:100,response:t,url:l}),this.dispatchEvent(new CustomEvent("wc-success",{detail:{file:this.snapshot(e),response:t},bubbles:!0,composed:!0})),this.emitChange()}handleError(e,t){this.xhrMap.delete(e.uid),this.updateFile(e,{status:"error"}),this.dispatchEvent(new CustomEvent("wc-error",{detail:{file:this.snapshot(e),message:t},bubbles:!0,composed:!0})),this.emitChange()}removeFile(e){const t=this.files[e];!t||!this.dispatchEvent(new CustomEvent("wc-remove",{detail:{file:t,index:e},bubbles:!0,composed:!0,cancelable:!0}))||(this.xhrMap.get(t.uid)?.abort(),this.xhrMap.delete(t.uid),this.files=this.files.filter((r,s)=>s!==e),this.emitChange())}retry(e){e.status==="error"&&this.startUpload(e)}onNameClick(e){e.url&&this.dispatchEvent(new CustomEvent("wc-preview",{detail:{file:e},bubbles:!0,composed:!0}))}updateFile(e,t){this.files=this.files.map(l=>l.uid===e.uid?{...l,...t}:l)}snapshot(e){return this.files.find(t=>t.uid===e.uid)??e}emitChange(){this.dispatchEvent(new CustomEvent("wc-change",{detail:{files:[...this.files]},bubbles:!0,composed:!0}))}formatSize(e){return e==null?"":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}render(){return n.html`
4652
5246
  <div class="upload" part="base">
4653
5247
  <input
4654
5248
  class="hidden-input"
@@ -4658,7 +5252,7 @@
4658
5252
  ?disabled=${this.disabled}
4659
5253
  @change=${this.onInputChange}
4660
5254
  />
4661
- ${this.draggable?i.html`<div
5255
+ ${this.draggable?n.html`<div
4662
5256
  class="dragger ${this.dragOver?"drag-over":""}"
4663
5257
  part="dragger"
4664
5258
  role="button"
@@ -4673,7 +5267,7 @@
4673
5267
  <wc-icon name="upload" class="dragger-icon"></wc-icon>
4674
5268
  <span class="dragger-text">${this.localize.term("upload.clickOrDrag")}</span>
4675
5269
  <span class="tip"><slot name="tip"></slot></span>
4676
- </div>`:i.html`<div class="trigger-wrap">
5270
+ </div>`:n.html`<div class="trigger-wrap">
4677
5271
  <button
4678
5272
  type="button"
4679
5273
  class="trigger"
@@ -4686,8 +5280,8 @@
4686
5280
  </button>
4687
5281
  <span class="tip"><slot name="tip"></slot></span>
4688
5282
  </div>`}
4689
- ${this.files.length?i.html`<ul class="list" part="list">
4690
- ${this.files.map((e,t)=>i.html`
5283
+ ${this.files.length?n.html`<ul class="list" part="list">
5284
+ ${this.files.map((e,t)=>n.html`
4691
5285
  <li class="item ${e.status}" part="item">
4692
5286
  <div class="row">
4693
5287
  <wc-icon name="file" class="type-icon"></wc-icon>
@@ -4697,13 +5291,13 @@
4697
5291
  role=${e.url?"button":void 0}
4698
5292
  tabindex=${e.url?0:void 0}
4699
5293
  @click=${()=>this.onNameClick(e)}
4700
- @keydown=${n=>{e.url&&(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),this.onNameClick(e))}}
5294
+ @keydown=${l=>{e.url&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),this.onNameClick(e))}}
4701
5295
  >${e.name}</span
4702
5296
  >
4703
- ${e.status==="uploading"?i.html`<span class="percent">${Math.round(e.percent??0)}%</span>`:e.status==="error"?i.html`<span class="fail-text"
5297
+ ${e.status==="uploading"?n.html`<span class="percent">${Math.round(e.percent??0)}%</span>`:e.status==="error"?n.html`<span class="fail-text"
4704
5298
  >${this.localize.term("upload.failed")}</span
4705
- >`:i.html`<span class="size">${this.formatSize(e.size)}</span>`}
4706
- ${e.status==="success"?i.html`<wc-icon name="check" class="status-icon success"></wc-icon>`:e.status==="error"?i.html`<button
5299
+ >`:n.html`<span class="size">${this.formatSize(e.size)}</span>`}
5300
+ ${e.status==="success"?n.html`<wc-icon name="check" class="status-icon success"></wc-icon>`:e.status==="error"?n.html`<button
4707
5301
  type="button"
4708
5302
  class="icon-btn"
4709
5303
  title=${this.localize.term("upload.retry")}
@@ -4711,7 +5305,7 @@
4711
5305
  @click=${()=>this.retry(e)}
4712
5306
  >
4713
5307
  <wc-icon name="error" class="status-icon error"></wc-icon>
4714
- </button>`:e.status==="waiting"?i.html`<wc-icon
5308
+ </button>`:e.status==="waiting"?n.html`<wc-icon
4715
5309
  name="loader"
4716
5310
  spin
4717
5311
  class="status-icon waiting"
@@ -4726,7 +5320,7 @@
4726
5320
  <wc-icon name="close"></wc-icon>
4727
5321
  </button>
4728
5322
  </div>
4729
- ${e.status==="uploading"?i.html`<wc-progress
5323
+ ${e.status==="uploading"?n.html`<wc-progress
4730
5324
  class="bar"
4731
5325
  value=${e.percent??0}
4732
5326
  stroke-width="4"
@@ -4736,5 +5330,5 @@
4736
5330
  `)}
4737
5331
  </ul>`:""}
4738
5332
  </div>
4739
- `}};Ht.styles=[l,Ta];let w=Ht;_([s.property()],w.prototype,"action");_([s.property()],w.prototype,"name");_([s.property()],w.prototype,"accept");_([s.property({type:Boolean})],w.prototype,"multiple");_([s.property({type:Number})],w.prototype,"max");_([s.property({type:Boolean,reflect:!0})],w.prototype,"draggable");_([s.property({type:Boolean,reflect:!0,attribute:"auto-upload",converter:o=>o==null?!0:o!=="false"})],w.prototype,"autoUpload");_([s.property({type:Boolean,reflect:!0})],w.prototype,"disabled");_([s.property({attribute:!1})],w.prototype,"requestMethod");_([s.state()],w.prototype,"files");_([s.state()],w.prototype,"dragOver");customElements.get("wc-upload")||customElements.define("wc-upload",w);const ur=d("arrow-left",'<path d="M19 12H5"/><path d="m12 19-7-7 7-7"/>'),vr=d("arrow-right",'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>'),wr=d("calendar",'<rect x="3" y="4" width="18" height="18" rx="2"/><path d="M16 2v4"/><path d="M8 2v4"/><path d="M3 10h18"/>'),mr=d("check",'<polyline points="20 6 9 17 4 12"/>'),br=d("chevron-down",'<path d="m6 9 6 6 6-6"/>'),gr=d("chevron-left",'<path d="m15 18-6-6 6-6"/>'),fr=d("chevron-right",'<path d="m9 18 6-6-6-6"/>'),yr=d("chevron-up",'<path d="m18 15-6-6-6 6"/>'),xr=d("close",'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>'),kr=d("error",'<circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/>'),$r=d("file",'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/>'),zr=d("image-off",'<path d="m2 2 20 20"/><path d="M10.41 10.17a2 2 0 0 1-2.24 2.24"/><path d="M21 15V5a2 2 0 0 0-2-2H7"/><path d="M3.59 3.59A2 2 0 0 0 3 5v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.41-.59"/><path d="m21 15-5-5L5 21"/>'),Cr=d("info",'<circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/>'),Er=d("loader",'<path d="M21 12a9 9 0 1 1-6.219-8.56"/>'),Sr=d("minus",'<path d="M5 12h14"/>'),_r=d("plus",'<path d="M5 12h14"/><path d="M12 5v14"/>'),Or=d("rotate-cw",'<path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/>'),Pr=d("search",'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>'),Lr=d("upload",'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" x2="12" y1="3" y2="15"/>'),Mr=d("warning",'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/>'),Ir=d("zoom-in",'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/><path d="M11 8v6"/><path d="M8 11h6"/>'),Tr=d("zoom-out",'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/><path d="M8 11h6"/>'),Dr=[ur,vr,wr,mr,br,gr,fr,yr,xr,kr,$r,zr,Cr,Er,Sr,_r,Or,Pr,Lr,Mr,Ir,Tr];function ja(){for(const o of Dr)or(o.name,o.svg)}const jr="wc-theme-change",Je="wc-theme";let we="light",pe=null;function Na(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Nr(){return we==="auto"?Na():we}function qa(){return we}function qr(o,e){if(o!=="light"&&o!=="dark"&&o!=="auto")throw new Error(`[wc] 无效主题: "${String(o)}",可选 light | dark | auto`);we=o,typeof localStorage<"u"&&(e?.persist?localStorage.setItem(Je,o):localStorage.removeItem(Je)),Ba(),Qe()}function Aa(){let o=null;typeof localStorage<"u"&&(o=localStorage.getItem(Je)),qr(o==="light"||o==="dark"||o==="auto"?o:"auto")}function Ba(){const o=we==="auto"&&typeof window.matchMedia=="function";o&&!pe?(pe=window.matchMedia("(prefers-color-scheme: dark)"),pe.addEventListener("change",Qe)):!o&&pe&&(pe.removeEventListener("change",Qe),pe=null)}function Qe(){const o=Nr();typeof document<"u"&&(document.documentElement.dataset.theme=o),document.dispatchEvent(new CustomEvent(jr,{detail:{theme:we,effective:o},bubbles:!0,composed:!0}))}const Ra=':root{--wc-color-brand-50: #f2f7ff;--wc-color-brand-100: #d9e8ff;--wc-color-brand-200: #b5d0ff;--wc-color-brand-300: #8cb8ff;--wc-color-brand-400: #5f96f7;--wc-color-brand-500: #0052d9;--wc-color-brand-600: #0045c2;--wc-color-brand-700: #00359e;--wc-color-brand-800: #002a7d;--wc-color-success-light: #e3f9e9;--wc-color-success: #2ba471;--wc-color-success-dark: #1f895c;--wc-color-warning-light: #fdf3e6;--wc-color-warning: #e37318;--wc-color-warning-dark: #c25c0a;--wc-color-error-light: #fdecee;--wc-color-error: #d54941;--wc-color-error-dark: #b5362f;--wc-color-info-light: #f2f7ff;--wc-color-info: #0052d9;--wc-color-info-dark: #0045c2;--wc-color-gray-50: #f5f7fa;--wc-color-gray-100: #e7eaee;--wc-color-gray-200: #d5dbe3;--wc-color-gray-300: #c2c9d4;--wc-color-gray-400: #a6b0bf;--wc-color-gray-500: #8a94a6;--wc-color-gray-600: #6b7687;--wc-color-gray-700: #4b5563;--wc-color-gray-800: #2f3540;--wc-color-gray-900: #1b1f27;--wc-font-family: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, "PingFang SC", "Microsoft YaHei", sans-serif;--wc-font-family-mono: ui-monospace, sfmono-regular, "SF Mono", menlo, consolas, "Liberation Mono", monospace;--wc-font-size-xsmall: 12px;--wc-font-size-small: 13px;--wc-font-size-medium: 14px;--wc-font-size-large: 16px;--wc-font-size-xlarge: 20px;--wc-font-size-h1: 24px;--wc-font-size-h2: 20px;--wc-font-size-h3: 18px;--wc-font-weight-normal: 400;--wc-font-weight-medium: 500;--wc-font-weight-semibold: 600;--wc-font-weight-bold: 700;--wc-line-height-base: 1.5;--wc-line-height-compact: 1.25;--wc-space-1: 4px;--wc-space-2: 8px;--wc-space-3: 12px;--wc-space-4: 16px;--wc-space-5: 20px;--wc-space-6: 24px;--wc-space-8: 32px;--wc-space-10: 40px;--wc-space-12: 48px;--wc-radius-none: 0;--wc-radius-small: 3px;--wc-radius-medium: 4px;--wc-radius-large: 8px;--wc-radius-xlarge: 10px;--wc-radius-round: 999px;--wc-radius-circle: 50%;--wc-shadow-1: 0 1px 2px rgb(15 23 42 / 6%), 0 1px 3px rgb(15 23 42 / 10%);--wc-shadow-2: 0 1px 2px rgb(15 23 42 / 6%), 0 4px 12px -2px rgb(15 23 42 / 12%);--wc-shadow-3: 0 4px 8px -2px rgb(15 23 42 / 8%), 0 12px 32px -4px rgb(15 23 42 / 18%);--wc-duration-fast: .15s;--wc-duration-medium: .3s;--wc-duration-slow: 1s;--wc-easing-standard: cubic-bezier(.4, 0, .2, 1);--wc-easing-emphasized: cubic-bezier(.2, 0, 0, 1);--wc-z-index-dropdown: 1000;--wc-z-index-sticky: 1100;--wc-z-index-modal: 1200;--wc-z-index-drawer: 1300;--wc-z-index-message: 1500;--wc-z-index-tooltip: 1600;--wc-color-primary: var(--wc-color-brand-500);--wc-color-primary-hover: var(--wc-color-brand-600);--wc-color-primary-active: var(--wc-color-brand-700);--wc-color-primary-light: var(--wc-color-brand-50);--wc-color-text-anti: #ffffff;--wc-color-success-bg: var(--wc-color-success-light);--wc-color-warning-bg: var(--wc-color-warning-light);--wc-color-error-bg: var(--wc-color-error-light);--wc-color-info-bg: var(--wc-color-info-light);--wc-color-text: var(--wc-color-gray-900);--wc-color-text-secondary: var(--wc-color-gray-600);--wc-color-text-placeholder: var(--wc-color-gray-400);--wc-color-text-disabled: var(--wc-color-gray-500);--wc-color-border: var(--wc-color-gray-200);--wc-color-border-strong: var(--wc-color-gray-500);--wc-color-bg: var(--wc-color-gray-50);--wc-color-bg-container: #ffffff;--wc-color-bg-container-secondary: var(--wc-color-gray-50);--wc-color-bg-hover: var(--wc-color-gray-100);--wc-color-bg-disabled: var(--wc-color-gray-100);--wc-color-mask: rgb(0 0 0 / 60%);--wc-color-overlay-hover: rgb(0 0 0 / 8%);--wc-color-focus-ring: var(--wc-color-brand-300)}[data-theme=dark]{color-scheme:dark;--wc-color-primary: var(--wc-color-brand-300);--wc-color-primary-hover: var(--wc-color-brand-200);--wc-color-primary-active: var(--wc-color-brand-100);--wc-color-primary-light: var(--wc-color-brand-800);--wc-color-text-anti: #1b1f27;--wc-color-success: #4fce8e;--wc-color-success-bg: #103524;--wc-color-warning: #f5a962;--wc-color-warning-bg: #3c2a15;--wc-color-error: #e76f68;--wc-color-error-bg: #442423;--wc-color-info: var(--wc-color-brand-300);--wc-color-info-bg: var(--wc-color-brand-800);--wc-color-text: var(--wc-color-gray-50);--wc-color-text-secondary: var(--wc-color-gray-400);--wc-color-text-placeholder: var(--wc-color-gray-600);--wc-color-text-disabled: var(--wc-color-gray-500);--wc-color-border: var(--wc-color-gray-700);--wc-color-border-strong: var(--wc-color-gray-500);--wc-color-bg: var(--wc-color-gray-900);--wc-color-bg-container: #242832;--wc-color-bg-container-secondary: #2f3540;--wc-color-bg-hover: var(--wc-color-gray-800);--wc-color-bg-disabled: var(--wc-color-gray-700);--wc-color-mask: rgb(0 0 0 / 70%);--wc-color-overlay-hover: rgb(255 255 255 / 12%);--wc-color-focus-ring: var(--wc-color-brand-200);--wc-shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 1px 3px rgb(0 0 0 / 30%);--wc-shadow-2: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 12px -2px rgb(0 0 0 / 45%);--wc-shadow-3: 0 4px 8px -2px rgb(0 0 0 / 40%), 0 12px 32px -4px rgb(0 0 0 / 50%)}',Fa="*,*:before,*:after{box-sizing:border-box}*{margin:0}html{-webkit-text-size-adjust:100%;text-size-adjust:100%;tab-size:4}body{font-family:var(--wc-font-family);font-size:var(--wc-font-size-medium);line-height:var(--wc-line-height-base);color:var(--wc-color-text);background-color:var(--wc-color-bg-container);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility}h1,h2,h3,h4,h5,h6{font-weight:var(--wc-font-weight-semibold);line-height:var(--wc-line-height-compact)}h1{font-size:var(--wc-font-size-h1)}h2{font-size:var(--wc-font-size-h2)}h3{font-size:var(--wc-font-size-h3)}h4{font-size:var(--wc-font-size-large)}h5,h6{font-size:var(--wc-font-size-medium)}ul,ol{padding:0;list-style:none}a{color:var(--wc-color-primary);text-decoration:none;transition:color var(--wc-duration-fast) var(--wc-easing-standard)}a:hover{color:var(--wc-color-primary-hover)}a:active{color:var(--wc-color-primary-active)}a[disabled]{color:var(--wc-color-text-disabled);cursor:not-allowed}img,svg,video,canvas,audio,iframe,embed,object{display:block;max-width:100%}img{border-style:none}button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}button{background:none;border:none;padding:0;cursor:pointer}button:disabled{cursor:not-allowed}input,select,textarea{background-color:transparent;border:none}input::placeholder,textarea::placeholder{color:var(--wc-color-text-placeholder)}textarea{resize:vertical}code,kbd,samp,pre{font-family:var(--wc-font-family-mono);font-size:var(--wc-font-size-small)}table{border-collapse:collapse;border-spacing:0}th{font-weight:var(--wc-font-weight-medium);text-align:inherit}fieldset{border:none;padding:0}hr{border:none;border-top:1px solid var(--wc-color-border)}blockquote,figure,dd,dl{margin:0}:focus-visible{outline:2px solid var(--wc-color-focus-ring);outline-offset:2px}:focus:not(:focus-visible){outline:none}::selection{background:var(--wc-color-primary-light);color:var(--wc-color-text)}";exports.ARROW_INSET=_e;exports.FormAssociatedMixin=M;exports.LANGUAGE_CHANGE_EVENT=Pe;exports.LocalizeController=v;exports.POSITION_GAP=T;exports.THEME_CHANGE_EVENT=jr;exports.WcIcon=$;exports.arrowLeft=ur;exports.arrowRight=vr;exports.baseStyles=l;exports.builtinIcons=Dr;exports.calendar=wr;exports.check=mr;exports.chevronDown=br;exports.chevronLeft=gr;exports.chevronRight=fr;exports.chevronUp=yr;exports.close=xr;exports.computePosition=it;exports.createIcon=d;exports.error=kr;exports.file=$r;exports.getEffectiveTheme=Nr;exports.getIcon=Kr;exports.getIconLibrary=Wr;exports.getLocale=ir;exports.getRegisteredLocales=to;exports.getTerm=nr;exports.getTheme=qa;exports.imageOff=zr;exports.info=Cr;exports.initTheme=Aa;exports.loader=Er;exports.message=Qo;exports.minus=Sr;exports.onIconRegister=tr;exports.plus=_r;exports.registerBuiltinIcons=ja;exports.registerIcon=or;exports.registerIconLibrary=ar;exports.registerLocale=Qr;exports.resetCss=Fa;exports.resolveIcon=sr;exports.resolveLocale=rt;exports.rotateCw=Or;exports.search=Pr;exports.setLocale=eo;exports.setTheme=qr;exports.splitPlacement=Be;exports.tokensCss=Ra;exports.upload=Lr;exports.warning=Mr;exports.wcAvatar=ue;exports.wcBadge=G;exports.wcBreadcrumb=$e;exports.wcBreadcrumbItem=Ve;exports.wcButton=k;exports.wcButtonGroup=Oe;exports.wcCard=S;exports.wcCheckbox=R;exports.wcCol=ve;exports.wcDatePicker=g;exports.wcDialog=P;exports.wcDivider=re;exports.wcDrawer=z;exports.wcEmpty=Me;exports.wcForm=Le;exports.wcFormItem=f;exports.wcImage=h;exports.wcInput=b;exports.wcInputNumber=m;exports.wcList=Z;exports.wcListItem=Ie;exports.wcMessage=K;exports.wcOption=V;exports.wcPagination=E;exports.wcPopconfirm=C;exports.wcProgress=L;exports.wcRadio=te;exports.wcRow=Y;exports.wcSelect=O;exports.wcSlider=D;exports.wcSpace=U;exports.wcSwitch=F;exports.wcTab=X;exports.wcTable=x;exports.wcTabs=ke;exports.wcTag=j;exports.wcText=H;exports.wcTextarea=y;exports.wcTooltip=W;exports.wcUpload=w;exports.zoomIn=Ir;exports.zoomOut=Tr;
5333
+ `}};lr.styles=[d,pa];let m=lr;P([i.property()],m.prototype,"action");P([i.property()],m.prototype,"name");P([i.property()],m.prototype,"accept");P([i.property({type:Boolean})],m.prototype,"multiple");P([i.property({type:Number})],m.prototype,"max");P([i.property({type:Boolean,reflect:!0})],m.prototype,"draggable");P([i.property({type:Boolean,reflect:!0,attribute:"auto-upload",converter:a=>a==null?!0:a!=="false"})],m.prototype,"autoUpload");P([i.property({type:Boolean,reflect:!0})],m.prototype,"disabled");P([i.property({attribute:!1})],m.prototype,"requestMethod");P([i.state()],m.prototype,"files");P([i.state()],m.prototype,"dragOver");customElements.get("wc-upload")||customElements.define("wc-upload",m);const ua=[o("activity",'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>'),o("airplay",'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>'),o("alert-circle",'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>'),o("alert-octagon",'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>'),o("alert-triangle",'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>'),o("align-center",'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>'),o("align-justify",'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>'),o("align-left",'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>'),o("align-right",'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>'),o("anchor",'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>'),o("aperture",'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>'),o("archive",'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>'),o("arrow-down-circle",'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>'),o("arrow-down-left",'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>'),o("arrow-down-right",'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>'),o("arrow-down",'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>'),o("arrow-left-circle",'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>'),o("arrow-right-circle",'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>'),o("arrow-up-circle",'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>'),o("arrow-up-left",'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>'),o("arrow-up-right",'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>'),o("at-sign",'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>'),o("award",'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>'),o("bar-chart-2",'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>'),o("bar-chart",'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>'),o("battery-charging",'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>'),o("battery",'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>'),o("bell-off",'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>'),o("bell",'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>'),o("bluetooth",'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>'),o("bold",'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>'),o("book-open",'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>'),o("book",'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>'),o("bookmark",'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>'),o("box",'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>'),o("briefcase",'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>'),o("camera-off",'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>'),o("camera",'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>'),o("cast",'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line>'),o("check-circle",'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>'),o("check-square",'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>'),o("chevrons-down",'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>'),o("chevrons-left",'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>'),o("chevrons-right",'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>'),o("chevrons-up",'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>'),o("chrome",'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>'),o("circle",'<circle cx="12" cy="12" r="10"></circle>'),o("clipboard",'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>'),o("clock",'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>'),o("cloud-drizzle",'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>'),o("cloud-lightning",'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>'),o("cloud-off",'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>'),o("cloud-rain",'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>'),o("cloud-snow",'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>'),o("cloud",'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>'),o("code",'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>'),o("codepen",'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>'),o("codesandbox",'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>'),o("coffee",'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>'),o("columns",'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>'),o("command",'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>'),o("compass",'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>'),o("copy",'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>'),o("corner-down-left",'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>'),o("corner-down-right",'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>'),o("corner-left-down",'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>'),o("corner-left-up",'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>'),o("corner-right-down",'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>'),o("corner-right-up",'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>'),o("corner-up-left",'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>'),o("corner-up-right",'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>'),o("cpu",'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>'),o("credit-card",'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>'),o("crop",'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>'),o("crosshair",'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>'),o("database",'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>'),o("delete",'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>'),o("disc",'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>'),o("divide-circle",'<line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle>'),o("divide-square",'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line>'),o("divide",'<circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle>'),o("dollar-sign",'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>'),o("download-cloud",'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>'),o("download",'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>'),o("dribbble",'<circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path>'),o("droplet",'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>'),o("edit-2",'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>'),o("edit-3",'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>'),o("edit",'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>'),o("external-link",'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>'),o("eye-off",'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>'),o("eye",'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>'),o("facebook",'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>'),o("fast-forward",'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>'),o("feather",'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>'),o("figma",'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>'),o("file-minus",'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>'),o("file-plus",'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>'),o("file-text",'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>'),o("film",'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>'),o("filter",'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>'),o("flag",'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>'),o("folder-minus",'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>'),o("folder-plus",'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>'),o("folder",'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>'),o("framer",'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>'),o("frown",'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>'),o("gift",'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>'),o("git-branch",'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>'),o("git-commit",'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>'),o("git-merge",'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>'),o("git-pull-request",'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>'),o("github",'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>'),o("gitlab",'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>'),o("globe",'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>'),o("grid",'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>'),o("hard-drive",'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line>'),o("hash",'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>'),o("headphones",'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>'),o("heart",'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>'),o("help-circle",'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>'),o("hexagon",'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>'),o("home",'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>'),o("image",'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>'),o("inbox",'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>'),o("instagram",'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>'),o("italic",'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>'),o("key",'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>'),o("layers",'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>'),o("layout",'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>'),o("life-buoy",'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>'),o("link-2",'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>'),o("link",'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>'),o("linkedin",'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>'),o("list",'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>'),o("lock",'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>'),o("log-in",'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>'),o("log-out",'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>'),o("mail",'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>'),o("map-pin",'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>'),o("map",'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>'),o("maximize-2",'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>'),o("maximize",'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>'),o("meh",'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>'),o("menu",'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>'),o("message-circle",'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>'),o("message-square",'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>'),o("mic-off",'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>'),o("mic",'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>'),o("minimize-2",'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>'),o("minimize",'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>'),o("minus-circle",'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>'),o("minus-square",'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>'),o("monitor",'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>'),o("moon",'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>'),o("more-horizontal",'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>'),o("more-vertical",'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>'),o("mouse-pointer",'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>'),o("move",'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>'),o("music",'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>'),o("navigation-2",'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>'),o("navigation",'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>'),o("octagon",'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>'),o("package",'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>'),o("paperclip",'<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>'),o("pause-circle",'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>'),o("pause",'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>'),o("pen-tool",'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>'),o("percent",'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>'),o("phone-call",'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>'),o("phone-forwarded",'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>'),o("phone-incoming",'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>'),o("phone-missed",'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>'),o("phone-off",'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>'),o("phone-outgoing",'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>'),o("phone",'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>'),o("pie-chart",'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>'),o("play-circle",'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>'),o("play",'<polygon points="5 3 19 12 5 21 5 3"></polygon>'),o("plus-circle",'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>'),o("plus-square",'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>'),o("pocket",'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>'),o("power",'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>'),o("printer",'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>'),o("radio",'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>'),o("refresh-ccw",'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>'),o("refresh-cw",'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>'),o("repeat",'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>'),o("rewind",'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>'),o("rotate-ccw",'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>'),o("rss",'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>'),o("save",'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>'),o("scissors",'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>'),o("send",'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>'),o("server",'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>'),o("settings",'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>'),o("share-2",'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>'),o("share",'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>'),o("shield-off",'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>'),o("shield",'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>'),o("shopping-bag",'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>'),o("shopping-cart",'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>'),o("shuffle",'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>'),o("sidebar",'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>'),o("skip-back",'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>'),o("skip-forward",'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>'),o("slack",'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>'),o("slash",'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>'),o("sliders",'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>'),o("smartphone",'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>'),o("smile",'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>'),o("speaker",'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line>'),o("square",'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>'),o("star",'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>'),o("stop-circle",'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>'),o("sun",'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>'),o("sunrise",'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>'),o("sunset",'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>'),o("table",'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path>'),o("tablet",'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>'),o("tag",'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>'),o("target",'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>'),o("terminal",'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>'),o("thermometer",'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>'),o("thumbs-down",'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>'),o("thumbs-up",'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>'),o("toggle-left",'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>'),o("toggle-right",'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>'),o("tool",'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>'),o("trash-2",'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>'),o("trash",'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>'),o("trello",'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>'),o("trending-down",'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>'),o("trending-up",'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>'),o("triangle",'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>'),o("truck",'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>'),o("tv",'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>'),o("twitch",'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path>'),o("twitter",'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>'),o("type",'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>'),o("umbrella",'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>'),o("underline",'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>'),o("unlock",'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>'),o("upload-cloud",'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>'),o("user-check",'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>'),o("user-minus",'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>'),o("user-plus",'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>'),o("user-x",'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>'),o("user",'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>'),o("users",'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>'),o("video-off",'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>'),o("video",'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>'),o("voicemail",'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>'),o("volume-1",'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>'),o("volume-2",'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>'),o("volume-x",'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>'),o("volume",'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>'),o("watch",'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>'),o("wifi-off",'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>'),o("wifi",'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>'),o("wind",'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>'),o("x-circle",'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>'),o("x-octagon",'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>'),o("x-square",'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>'),o("x",'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>'),o("youtube",'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>'),o("zap-off",'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>'),o("zap",'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>')],Lr=o("arrow-left",'<path d="M19 12H5"/><path d="m12 19-7-7 7-7"/>'),Or=o("arrow-right",'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>'),Ir=o("arrow-up",'<path d="M12 19V5"/><path d="m5 12 7-7 7 7"/><path d="M5 4h14"/>'),Pr=o("calendar",'<rect x="3" y="4" width="18" height="18" rx="2"/><path d="M16 2v4"/><path d="M8 2v4"/><path d="M3 10h18"/>'),Ar=o("check",'<polyline points="20 6 9 17 4 12"/>'),Tr=o("chevron-down",'<path d="m6 9 6 6 6-6"/>'),Dr=o("chevron-left",'<path d="m15 18-6-6 6-6"/>'),Vr=o("chevron-right",'<path d="m9 18 6-6-6-6"/>'),jr=o("chevron-up",'<path d="m18 15-6-6-6 6"/>'),Hr=o("close",'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>'),Br=o("error",'<circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/>'),Nr=o("file",'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/>'),qr=o("image-off",'<path d="m2 2 20 20"/><path d="M10.41 10.17a2 2 0 0 1-2.24 2.24"/><path d="M21 15V5a2 2 0 0 0-2-2H7"/><path d="M3.59 3.59A2 2 0 0 0 3 5v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.41-.59"/><path d="m21 15-5-5L5 21"/>'),Rr=o("info",'<circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/>'),Fr=o("loader",'<path d="M21 12a9 9 0 1 1-6.219-8.56"/>'),Ur=o("minus",'<path d="M5 12h14"/>'),Yr=o("plus",'<path d="M5 12h14"/><path d="M12 5v14"/>'),Kr=o("rotate-cw",'<path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/>'),Wr=o("search",'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>'),Xr=o("upload",'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" x2="12" y1="3" y2="15"/>'),Gr=o("warning",'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/>'),Zr=o("zoom-in",'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/><path d="M11 8v6"/><path d="M8 11h6"/>'),Jr=o("zoom-out",'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/><path d="M8 11h6"/>'),mt=[Lr,Or,Ir,Pr,Ar,Tr,Dr,Vr,jr,Hr,Br,Nr,qr,Rr,Fr,Ur,Yr,Kr,Wr,Xr,Gr,Zr,Jr],va=new Set(mt.map(a=>a.name)),Qr=[...mt,...ua.filter(a=>!va.has(a.name))];function ya(){for(const a of Qr)fr(a.name,a.svg)}const eo="wc-theme-change",lt="wc-theme";let ke="light",be=null;function wa(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function to(){return ke==="auto"?wa():ke}function ma(){return ke}function ro(a,e){if(a!=="light"&&a!=="dark"&&a!=="auto")throw new Error(`[wc] 无效主题: "${String(a)}",可选 light | dark | auto`);ke=a,typeof localStorage<"u"&&(e?.persist?localStorage.setItem(lt,a):localStorage.removeItem(lt)),ba(),ct()}function ga(){let a=null;typeof localStorage<"u"&&(a=localStorage.getItem(lt)),ro(a==="light"||a==="dark"||a==="auto"?a:"auto")}function ba(){const a=ke==="auto"&&typeof window.matchMedia=="function";a&&!be?(be=window.matchMedia("(prefers-color-scheme: dark)"),be.addEventListener("change",ct)):!a&&be&&(be.removeEventListener("change",ct),be=null)}function ct(){const a=to();typeof document<"u"&&(document.documentElement.dataset.theme=a),document.dispatchEvent(new CustomEvent(eo,{detail:{theme:ke,effective:a},bubbles:!0,composed:!0}))}const fa=':root{--wc-color-brand-50: #f2f7ff;--wc-color-brand-100: #d9e8ff;--wc-color-brand-200: #b5d0ff;--wc-color-brand-300: #8cb8ff;--wc-color-brand-400: #5f96f7;--wc-color-brand-500: #0052d9;--wc-color-brand-600: #0045c2;--wc-color-brand-700: #00359e;--wc-color-brand-800: #002a7d;--wc-color-success-light: #e3f9e9;--wc-color-success: #2ba471;--wc-color-success-dark: #1f895c;--wc-color-warning-light: #fdf3e6;--wc-color-warning: #e37318;--wc-color-warning-dark: #c25c0a;--wc-color-error-light: #fdecee;--wc-color-error: #d54941;--wc-color-error-dark: #b5362f;--wc-color-info-light: #f2f7ff;--wc-color-info: #0052d9;--wc-color-info-dark: #0045c2;--wc-color-gray-50: #f5f7fa;--wc-color-gray-100: #e7eaee;--wc-color-gray-200: #d5dbe3;--wc-color-gray-300: #c2c9d4;--wc-color-gray-400: #a6b0bf;--wc-color-gray-500: #8a94a6;--wc-color-gray-600: #6b7687;--wc-color-gray-700: #4b5563;--wc-color-gray-800: #2f3540;--wc-color-gray-900: #1b1f27;--wc-font-family: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, "PingFang SC", "Microsoft YaHei", sans-serif;--wc-font-family-mono: ui-monospace, sfmono-regular, "SF Mono", menlo, consolas, "Liberation Mono", monospace;--wc-font-size-xsmall: 12px;--wc-font-size-small: 13px;--wc-font-size-medium: 14px;--wc-font-size-large: 16px;--wc-font-size-xlarge: 20px;--wc-font-size-h1: 24px;--wc-font-size-h2: 20px;--wc-font-size-h3: 18px;--wc-font-weight-normal: 400;--wc-font-weight-medium: 500;--wc-font-weight-semibold: 600;--wc-font-weight-bold: 700;--wc-line-height-base: 1.5;--wc-line-height-compact: 1.25;--wc-space-1: 4px;--wc-space-2: 8px;--wc-space-3: 12px;--wc-space-4: 16px;--wc-space-5: 20px;--wc-space-6: 24px;--wc-space-8: 32px;--wc-space-10: 40px;--wc-space-12: 48px;--wc-radius-none: 0;--wc-radius-small: 3px;--wc-radius-medium: 4px;--wc-radius-large: 8px;--wc-radius-xlarge: 10px;--wc-radius-round: 999px;--wc-radius-circle: 50%;--wc-shadow-1: 0 1px 2px rgb(15 23 42 / 6%), 0 1px 3px rgb(15 23 42 / 10%);--wc-shadow-2: 0 1px 2px rgb(15 23 42 / 6%), 0 4px 12px -2px rgb(15 23 42 / 12%);--wc-shadow-3: 0 4px 8px -2px rgb(15 23 42 / 8%), 0 12px 32px -4px rgb(15 23 42 / 18%);--wc-duration-fast: .15s;--wc-duration-medium: .3s;--wc-duration-slow: 1s;--wc-easing-standard: cubic-bezier(.4, 0, .2, 1);--wc-easing-emphasized: cubic-bezier(.2, 0, 0, 1);--wc-z-index-dropdown: 1000;--wc-z-index-fab: 1050;--wc-z-index-sticky: 1100;--wc-z-index-modal: 1200;--wc-z-index-drawer: 1300;--wc-z-index-message: 1500;--wc-z-index-tooltip: 1600;--wc-color-primary: var(--wc-color-brand-500);--wc-color-primary-hover: var(--wc-color-brand-600);--wc-color-primary-active: var(--wc-color-brand-700);--wc-color-primary-light: var(--wc-color-brand-50);--wc-color-text-anti: #ffffff;--wc-color-success-bg: var(--wc-color-success-light);--wc-color-warning-bg: var(--wc-color-warning-light);--wc-color-error-bg: var(--wc-color-error-light);--wc-color-info-bg: var(--wc-color-info-light);--wc-color-text: var(--wc-color-gray-900);--wc-color-text-secondary: var(--wc-color-gray-600);--wc-color-text-placeholder: var(--wc-color-gray-400);--wc-color-text-disabled: var(--wc-color-gray-500);--wc-color-border: var(--wc-color-gray-200);--wc-color-border-strong: var(--wc-color-gray-500);--wc-color-bg: var(--wc-color-gray-50);--wc-color-bg-container: #ffffff;--wc-color-bg-container-secondary: var(--wc-color-gray-50);--wc-color-bg-hover: var(--wc-color-gray-100);--wc-color-bg-disabled: var(--wc-color-gray-100);--wc-color-mask: rgb(0 0 0 / 60%);--wc-color-overlay-hover: rgb(0 0 0 / 8%);--wc-color-focus-ring: var(--wc-color-brand-300)}[data-theme=dark]{color-scheme:dark;--wc-color-primary: var(--wc-color-brand-300);--wc-color-primary-hover: var(--wc-color-brand-200);--wc-color-primary-active: var(--wc-color-brand-100);--wc-color-primary-light: var(--wc-color-brand-800);--wc-color-text-anti: #1b1f27;--wc-color-success: #4fce8e;--wc-color-success-bg: #103524;--wc-color-warning: #f5a962;--wc-color-warning-bg: #3c2a15;--wc-color-error: #e76f68;--wc-color-error-bg: #442423;--wc-color-info: var(--wc-color-brand-300);--wc-color-info-bg: var(--wc-color-brand-800);--wc-color-text: var(--wc-color-gray-50);--wc-color-text-secondary: var(--wc-color-gray-400);--wc-color-text-placeholder: var(--wc-color-gray-600);--wc-color-text-disabled: var(--wc-color-gray-500);--wc-color-border: var(--wc-color-gray-700);--wc-color-border-strong: var(--wc-color-gray-500);--wc-color-bg: var(--wc-color-gray-900);--wc-color-bg-container: #242832;--wc-color-bg-container-secondary: #2f3540;--wc-color-bg-hover: var(--wc-color-gray-800);--wc-color-bg-disabled: var(--wc-color-gray-700);--wc-color-mask: rgb(0 0 0 / 70%);--wc-color-overlay-hover: rgb(255 255 255 / 12%);--wc-color-focus-ring: var(--wc-color-brand-200);--wc-shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 1px 3px rgb(0 0 0 / 30%);--wc-shadow-2: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 12px -2px rgb(0 0 0 / 45%);--wc-shadow-3: 0 4px 8px -2px rgb(0 0 0 / 40%), 0 12px 32px -4px rgb(0 0 0 / 50%)}',xa="*,*:before,*:after{box-sizing:border-box}*{margin:0}html{-webkit-text-size-adjust:100%;text-size-adjust:100%;tab-size:4}body{font-family:var(--wc-font-family);font-size:var(--wc-font-size-medium);line-height:var(--wc-line-height-base);color:var(--wc-color-text);background-color:var(--wc-color-bg-container);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility}h1,h2,h3,h4,h5,h6{font-weight:var(--wc-font-weight-semibold);line-height:var(--wc-line-height-compact)}h1{font-size:var(--wc-font-size-h1)}h2{font-size:var(--wc-font-size-h2)}h3{font-size:var(--wc-font-size-h3)}h4{font-size:var(--wc-font-size-large)}h5,h6{font-size:var(--wc-font-size-medium)}ul,ol{padding:0;list-style:none}a{color:var(--wc-color-primary);text-decoration:none;transition:color var(--wc-duration-fast) var(--wc-easing-standard)}a:hover{color:var(--wc-color-primary-hover)}a:active{color:var(--wc-color-primary-active)}a[disabled]{color:var(--wc-color-text-disabled);cursor:not-allowed}img,svg,video,canvas,audio,iframe,embed,object{display:block;max-width:100%}img{border-style:none}button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}button{background:none;border:none;padding:0;cursor:pointer}button:disabled{cursor:not-allowed}input,select,textarea{background-color:transparent;border:none}input::placeholder,textarea::placeholder{color:var(--wc-color-text-placeholder)}textarea{resize:vertical}code,kbd,samp,pre{font-family:var(--wc-font-family-mono);font-size:var(--wc-font-size-small)}table{border-collapse:collapse;border-spacing:0}th{font-weight:var(--wc-font-weight-medium);text-align:inherit}fieldset{border:none;padding:0}hr{border:none;border-top:1px solid var(--wc-color-border)}blockquote,figure,dd,dl{margin:0}:focus-visible{outline:2px solid var(--wc-color-focus-ring);outline-offset:2px}:focus:not(:focus-visible){outline:none}::selection{background:var(--wc-color-primary-light);color:var(--wc-color-text)}";exports.ARROW_INSET=De;exports.FormAssociatedMixin=V;exports.LANGUAGE_CHANGE_EVENT=je;exports.LocalizeController=v;exports.POSITION_GAP=f;exports.THEME_CHANGE_EVENT=eo;exports.WcIcon=M;exports.arrowLeft=Lr;exports.arrowRight=Or;exports.arrowUp=Ir;exports.baseStyles=d;exports.builtinIcons=mt;exports.builtinIconsWithFeather=Qr;exports.calendar=Pr;exports.check=Ar;exports.chevronDown=Tr;exports.chevronLeft=Dr;exports.chevronRight=Vr;exports.chevronUp=jr;exports.close=Hr;exports.computePosition=Xe;exports.createIcon=o;exports.error=Br;exports.file=Nr;exports.getEffectiveTheme=to;exports.getIcon=lo;exports.getIconLibrary=co;exports.getLocale=$r;exports.getRegisteredLocales=fo;exports.getTerm=zr;exports.getTheme=ma;exports.imageOff=qr;exports.info=Rr;exports.initTheme=ga;exports.loader=Fr;exports.message=mi;exports.minus=Ur;exports.onIconRegister=gr;exports.plus=Yr;exports.registerBuiltinIcons=ya;exports.registerIcon=fr;exports.registerIconLibrary=xr;exports.registerLocale=go;exports.resetCss=xa;exports.resolveIcon=kr;exports.resolveLocale=ht;exports.rotateCw=Kr;exports.search=Wr;exports.setLocale=bo;exports.setTheme=ro;exports.splitPlacement=We;exports.tokensCss=fa;exports.upload=Xr;exports.warning=Gr;exports.wcAvatar=fe;exports.wcBadge=oe;exports.wcBreadcrumb=Le;exports.wcBreadcrumbItem=Qe;exports.wcButton=w;exports.wcButtonGroup=Ve;exports.wcCard=O;exports.wcCheckbox=K;exports.wcCol=xe;exports.wcDatePicker=k;exports.wcDialog=T;exports.wcDivider=ce;exports.wcDrawer=S;exports.wcDropdown=de;exports.wcDropdownItem=N;exports.wcEmpty=Be;exports.wcFloatButton=u;exports.wcFloatButtonGroup=te;exports.wcForm=He;exports.wcFormItem=$;exports.wcImage=h;exports.wcInput=x;exports.wcInputNumber=b;exports.wcList=ie;exports.wcListItem=Ne;exports.wcMessage=Q;exports.wcOption=X;exports.wcPagination=L;exports.wcPopconfirm=_;exports.wcProgress=D;exports.wcRadio=le;exports.wcRow=Z;exports.wcSelect=A;exports.wcSlider=H;exports.wcSpace=G;exports.wcSplitButton=z;exports.wcSwitch=W;exports.wcTab=re;exports.wcTable=E;exports.wcTabs=_e;exports.wcTag=B;exports.wcText=J;exports.wcTextarea=C;exports.wcTooltip=ee;exports.wcUpload=m;exports.zoomIn=Zr;exports.zoomOut=Jr;
4740
5334
  //# sourceMappingURL=index.cjs.js.map