@yoyaflow/yoya-ui 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +407 -124
- package/README.zh-CN.md +375 -131
- package/dist/yoya.core.chunk.js +4275 -0
- package/dist/yoya.core.chunk.min.js +9 -0
- package/dist/yoya.core.js +3 -1779
- package/dist/yoya.core.min.js +1 -0
- package/dist/yoya.devtools.js +3 -0
- package/dist/yoya.devtools.min.js +1 -0
- package/dist/yoya.echart.js +182 -592
- package/dist/yoya.echart.min.js +1 -0
- package/dist/yoya.router.full.js +5271 -0
- package/dist/yoya.router.full.min.js +43 -0
- package/dist/yoya.router.js +1330 -0
- package/dist/yoya.router.min.js +35 -0
- package/dist/yoya.three.js +360 -0
- package/dist/yoya.three.min.js +1 -0
- package/dist/yoya.ui-router.full.js +21843 -0
- package/dist/yoya.ui-router.full.min.js +43 -0
- package/dist/yoya.ui-router.umd.js +43 -0
- package/dist/yoya.ui-router.umd.min.js +43 -0
- package/dist/yoya.ui.css +80 -0
- package/dist/yoya.ui.full.js +20169 -0
- package/dist/yoya.ui.full.min.js +1 -0
- package/dist/yoya.ui.js +12227 -9083
- package/dist/yoya.ui.min.js +1 -0
- package/package.json +27 -11
- package/types/core.d.ts +122 -1
- package/types/data-display.d.ts +44 -2
- package/types/devtools.d.ts +156 -0
- package/types/feedback.d.ts +13 -0
- package/types/form.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/types/ssr.d.ts +27 -7
- package/types/three.d.ts +77 -0
- package/types/yoya.devtools.d.ts +5 -0
- package/types/yoya.router.d.ts +7 -0
- package/types/yoya.three.d.ts +4 -0
- package/types/yoya.ui-router.d.ts +19 -0
- package/types/yoya.ui.d.ts +2 -7
- package/dist/yoya-ui.umd.js +0 -35
- package/dist/yoya.ssr.js +0 -2856
- package/types/yoya.ssr.d.ts +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=null,r=null;function i(e){if(!e)return null;if(typeof e==`object`&&e.code)return{code:e.code,level:e.level===`write`?`write`:`read`};let t=String(e).trim();return t?t.startsWith(`w.`)?{code:t.slice(2),level:`write`}:t.startsWith(`r.`)?{code:t.slice(2),level:`read`}:{code:t,level:`write`}:null}function a(e){let t=i(e);return t?t.code:String(e??``)}function o({permissions:e=[],roles:t=[],superAdmins:n=[`super_admin`]}={}){let r={permissions:[...e||[]],roles:[...t||[]],superAdmins:[...n||[]]},i=new Set(r.permissions),o=new Set,s=()=>r.superAdmins.some(e=>r.roles.includes(e));function c(e,t){return s()?!0:t===`write`?i.has(`w.${e}`)||i.has(e):i.has(`r.${e}`)||i.has(`w.${e}`)||i.has(e)}function l(e,t){return c(a(e),t)}let u={roles(){return r.roles.slice()},permissions(){return r.permissions.slice()},isSuper:s,has(e){let t=a(e);return s()||i.has(`r.${t}`)||i.has(`w.${t}`)||i.has(t)},canRead(e){return l(e,`read`)},canWrite(e){return l(e,`write`)},setPermissions(e){return r.permissions=[...e||[]],i.clear(),(e||[]).forEach(e=>i.add(e)),o.forEach(e=>e()),u},subscribe(e){return o.add(e),()=>o.delete(e)}};return u}function s(e,t){let r=n;n=e||r;try{return t()}finally{n=r}}function c(e){return r=e||null,r}function l(){return n||r}const u=Symbol.for(`yoya.devtools.bridge`);function d(){return typeof globalThis>`u`?null:globalThis[u]||null}function f(){let e=d();return e?e.enabled():!1}function ee(e){let t=d();t&&t.emit(e)}function te(e){let t=d();t&&t.unregister(e)}function ne(e){let t=d();t&&t.captureScope(e)}function p(e){let t=d();return t?t.ensureId(e):void 0}function m(e,t,n){let r=d();r&&r.notify(e,t,n)}function re(e){let t=d();t&&t.commit(e)}const ie=new Set([`checked`,`disabled`,`readonly`,`selected`]),ae=new Set([`input`,`select`,`textarea`,`button`,`fieldset`,`option`,`optgroup`,`keygen`]),oe=new Set([`input`,`textarea`]),h=[];function g(){return h.length>0?h[h.length-1]:null}function _(e,t){h.push(e);try{return t()}finally{h.pop()}}let v=null;function se(e,t){let n=v;v=e;try{return t()}finally{v=n}}function y(e,t,n,r){if(!v)throw TypeError(`vStateNode binding scope required for function value (${e}${t?` "${t}"`:``})`);let i=v;i.bindings.push({commit:r,committed:!1,evaluate:()=>n(i.getState()),key:t,kind:e,last:void 0})}const ce=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function b(e){return typeof e==`string`?document.querySelector(e):e}function x(e){return String(e).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function le(e){return ie.has(e)}function ue(e,t,n){if(n==null||n===!1){if(e.removeAttribute(t),t in e)try{e[t]=!1}catch{}return}if(n===!0||le(t)){if(e.setAttribute(t,t),t in e)try{e[t]=!0}catch{}return}if(e.setAttribute(t,String(n)),t in e)try{e[t]=n}catch{}}function de(e){return Object.entries(e).filter(([,e])=>e!=null&&e!==``).map(([e,t])=>`${fe(e)}:${x(t)}`).join(`; `)}function fe(e){return String(e).replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function pe(e,t){return e===t?!0:!e||!t||typeof e!=`object`||typeof t!=`object`?!1:!!e.capture==!!t.capture&&!!e.once==!!t.once&&!!e.passive==!!t.passive}var S=class e{constructor(e=null){this._children=[],this._childKeys=new Map,this._events=new Map,this._domAdapters=new Map,this._cleanup=[],this._states={},this._stateTypes={},this._stateHandlers=new Map,this._pendingRemovals=new Set,this._childrenDirty=!1,this._deleted=!1,this._access=null,this._accessContext=l(),f()&&ne(this),e!==null&&this.setup(e)}setup(t){return typeof t==`function`?t(this):t instanceof e?this.child(t):typeof t==`string`||typeof t==`number`?this.text(t):t&&typeof t==`object`&&this._setupObject(t),this}access(e){let t=i(e);return this._access=t?{code:t.code,level:`write`}:null,this}_permissionState(){let e=this._access??g();if(!e)return`active`;let t=this._accessContext||l();return t?t.canRead(e.code)?e.level===`write`&&!t.canWrite(e.code)?`readonly`:`active`:`hidden`:`active`}_applyAccessState(e){}_setupObject(e){e.children&&this.child(e.children)}children(){return[...this._children]}clearChildren(){let e=this._el&&f()&&!this._devtoolsRendering?this._children.map(e=>p(e)):[];return this._dropChildKeys(this._children),this._children.forEach(e=>{this._pendingRemovals.add(e)}),this._children=[],this._childrenDirty=!0,e.length>0&&!this._devtoolsRendering&&m(this,`child`,{removed:e}),this}addChild(e,t){let n=String(e);if(this._childKeys.has(n))throw TypeError(`duplicate key "${n}"`);let r=ge(this,t);if(this._childKeys.set(n,r),typeof r.attr==`function`&&r.attr(`data-row-key`,n),this._pendingRemovals.delete(r),this._children.push(r),this._childrenDirty=!0,this._el){let e=_(this._access??g(),()=>r.renderDom());e&&e.parentNode!==this._el&&this._el.appendChild(e),f()&&!this._devtoolsRendering&&m(this,`child`,{added:[p(r)]})}return this}getChild(e){return this._childKeys.get(String(e))||null}removeChild(e){let t=String(e),n=this._childKeys.get(t);if(!n)return this;this._childKeys.delete(t);let r=this._children.indexOf(n);r!==-1&&this._children.splice(r,1),this._childrenDirty=!0;let i=this._el&&f()&&!this._devtoolsRendering?p(n):null;return n.destroy(),i!==null&&m(this,`child`,{removed:[i]}),this}_dropChildKeys(e){let t=new Set(e);this._childKeys.forEach((e,n)=>{t.has(e)&&this._childKeys.delete(n)})}child(...e){return e.flat(1/0).forEach(e=>{if(e==null)return;let t=ge(this,e);this._pendingRemovals.delete(t),this._children.push(t),this._childrenDirty=!0}),this}text(e){return this.child(new C(e))}on(e,t,n){if(typeof t!=`function`)throw TypeError(`ViewNode event handler must be a function`);let r=this._events.get(e);return this._events.set(e,{handler:t,options:n}),this._el&&this._bindDomAdapter(e,r?.options,n),this}off(e){this._events.delete(e);let t=this._domAdapters.get(e);return t&&(t.cleanup(),this._removeCleanup(t.cleanup),this._domAdapters.delete(e)),this}_bindDomAdapter(e,t,n){let r=this._domAdapters.get(e);if(r){if(pe(t,n))return;r.cleanup(),this._removeCleanup(r.cleanup),this._domAdapters.delete(e)}let i=t=>{let n=this._events.get(e);!n||typeof n.handler!=`function`||(n.handler.call(this,t),n.options?.once&&this.off(e))},a=()=>{this._el&&this._el.removeEventListener(e,i,n)};this._el.addEventListener(e,i,n),this._domAdapters.set(e,{cleanup:a}),this._cleanup.push(a)}_removeCleanup(e){let t=this._cleanup.indexOf(e);t!==-1&&this._cleanup.splice(t,1)}registerStateAttrs(...e){return e.forEach(e=>{if(typeof e==`string`){this._stateTypes[e]=`boolean`;return}e&&typeof e==`object`&&Object.entries(e).forEach(([e,t])=>{this._stateTypes[e]=t||`boolean`})}),this}registerStateHandler(e,t){return this._stateHandlers.has(e)||this._stateHandlers.set(e,[]),this._stateHandlers.get(e).push(t),this}setState(e,t=!0){let n=this._states[e];return this._states[e]=t,(this._stateHandlers.get(e)||[]).forEach(e=>e(t,this,n)),this}getState(e){return this._states[e]}getBooleanState(e){return!!this.getState(e)}getStringState(e){let t=this.getState(e);return t==null?``:String(t)}getNumberState(e){return Number(this.getState(e)||0)}renderDom(){return null}commit(){return this.renderDom()}_commitChildren(){this._pendingRemovals.forEach(e=>e.destroy()),this._pendingRemovals.clear(),this._childrenDirty=!1}bindTo(e){let t=b(e),n=this.renderDom();return t&&n&&t.appendChild(n),this}destroy(){return f()&&(ee({type:`destroy`,node:this}),te(this)),this._deleted=!0,this._cleanup.forEach(e=>e()),this._cleanup=[],this._children.forEach(e=>e.destroy()),this._pendingRemovals.forEach(e=>e.destroy()),this._pendingRemovals.clear(),this._children=[],this._childKeys.clear(),this._el?.parentNode&&this._el.parentNode.removeChild(this._el),this}toHTML(){return``}hydrateSnapshot(){return this}},C=class extends S{constructor(e=``){if(super(null),this._content=``,this._textNode=null,typeof e==`function`){y(`text`,null,e,e=>this.textContent(e));return}this._content=String(e)}textContent(e){if(e===void 0)return this._content;if(typeof e==`function`)return y(`text`,null,e,e=>this.textContent(e)),this;let t=this._content;return this._content=String(e),this._textNode&&(this._textNode.textContent=this._content),this._textNode&&f()&&!Object.is(t,this._content)&&m(this,`text`,{from:t,to:this._content}),this}renderDom(){return this._deleted||this._permissionState()===`hidden`?null:(this._textNode||(this._textNode=document.createTextNode(this._content),this._el=this._textNode),this._textNode)}toHTML(){return this._deleted||this._permissionState()===`hidden`?``:x(this._content)}},w=class extends S{constructor(e){super(null),this._component=e,this._resolved=null,this._resolvedList=null,this._roots=null,this._fragmentDom=null}_resolve(){if(this._resolvedList)return this._resolved;let e=s(this._accessContext||l(),()=>typeof this._component==`function`?this._component():this._component.render()),t=Array.isArray(e)?e.slice():[e],n=he(this._component),r=this._owner?` It was added as a child of ${T(this._owner)}.`:``;return t.forEach(e=>{if(!(e instanceof S))throw TypeError(`Component render must return a ViewNode or an array of ViewNodes. render() of ${n} returned ${T(e)}.${r} If render() returns a component object (for example vPagination({ ... })), attach it with parent.child(...) instead of returning it directly.`)}),this._resolvedList=t,this._resolved=t[0]||null,this._roots=Array.isArray(e)?t:null,this._component&&typeof this._component==`object`&&typeof this._component._attachHost==`function`&&this._component._attachHost(this),this._resolved}_resolveList(){return this._resolve(),this._resolvedList||[]}_replaceResolved(e){let t=this._resolvedList||[],n=Array.isArray(e)?e.slice():[e];if(n.forEach(e=>{if(!(e instanceof S))throw TypeError(`Component render must return a ViewNode or an array of ViewNodes`)}),t.length===n.length&&t.every((e,t)=>e===n[t]))return;let r=[];if(this._fragmentDom&&this._fragmentDom.length>0)r.push(...this._fragmentDom);else if(t.length>0){let e=t[0]._el;e&&e.parentNode&&r.push(e)}if(this._resolvedList=n,this._resolved=n[0]||null,this._roots=Array.isArray(e)?n:null,this._fragmentDom=null,r.length===0){t.forEach(e=>e.destroy());return}let i=g(),a=r[0].parentNode,o=[];n.forEach(e=>{let t=_(this._access??i,()=>e.renderDom());t&&o.push(t)}),o.length>0&&a&&o.forEach(e=>a.insertBefore(e,r[0])),r.forEach(e=>{e.parentNode===a&&a.removeChild(e)}),this._roots?this._fragmentDom=o:this._el=o[0]||null,t.forEach(e=>e.destroy())}children(){return this._resolvedList?this._roots?this._resolvedList.flatMap(e=>e.children()):this._resolvedList[0]?this._resolvedList[0].children():[]:[]}textContent(){return this._resolveList().map(e=>typeof e.textContent==`function`?e.textContent():``).join(``)}renderDom(){if(this._deleted||this._permissionState()===`hidden`)return null;let e=g(),t=this._resolveList();if(this._roots){if(this._fragmentDom)return null;let n=[];t.forEach(t=>{let r=_(this._access??e,()=>t.renderDom());r&&n.push(r)}),this._fragmentDom=n;let r=document.createDocumentFragment();return n.forEach(e=>r.appendChild(e)),r}let n=t[0];return _(this._access??e,()=>{let e=n.renderDom();return this._el=e,e})}toHTML(){if(this._deleted||this._permissionState()===`hidden`)return``;let e=g(),t=this._resolveList();return _(this._access??e,()=>t.map(e=>e.toHTML()).join(``))}destroy(){return this._component&&typeof this._component==`object`&&typeof this._component.destroy==`function`&&this._component.destroy(),(this._resolvedList||[]).forEach(e=>e.destroy()),this._fragmentDom=null,super.destroy()}};function me(e=``){return new C(e)}function T(e){if(e==null||typeof e==`boolean`)return String(e);if(typeof e==`string`||typeof e==`number`)return`${typeof e} ${JSON.stringify(e)}`;if(typeof e==`function`)return`function ${e.name||`(anonymous)`}`;if(e instanceof S){let t=typeof e._tagName==`string`?` <${e._tagName}>`:``;return`${e.constructor.name}${t}`}return e&&typeof e.render==`function`?`component object${e.constructor&&e.constructor!==Object?` ${e.constructor.name}`:``} with render()`:`${e&&e.constructor&&e.constructor!==Object?e.constructor.name:`Object`} instance`}function he(e){return typeof e==`function`?`function ${e.name||`(anonymous)`}`:e&&typeof e==`object`?`component object${typeof e.render==`function`&&e.render.name?` (render ${e.render.name})`:``}`:String(e)}function ge(e,t){try{let n=_e(t);return n._owner===void 0&&(n._owner=e),n}catch(n){throw n instanceof TypeError&&String(n.message).startsWith(`ViewNode child must`)?TypeError(`Invalid child for ${T(e)}: ${n.message} (received ${T(t)}). child() accepts a ViewNode, a component object with render(), a function, a string, or a number.`,{cause:n}):n}}function _e(e){if(e instanceof S)return e;if(typeof e==`function`||e&&typeof e==`object`&&typeof e.render==`function`)return new w(e);if(typeof e==`string`||typeof e==`number`)return new C(e);throw TypeError(`ViewNode child must be a ViewNode, component, string, or number`)}function ve(e=null,t=null,n=null){return typeof t==`function`&&n==null?{first:e,options:null,callback:t}:{first:e,options:t,callback:n}}function E(e,t){return!t||typeof t!=`object`||Array.isArray(t)?e:(t.attrs&&typeof e.attr==`function`&&e.attr(t.attrs),t.style&&typeof e.styles==`function`&&e.styles(t.style),e)}var D=class extends S{constructor(e,t=null){super(null),this._tagName=e,this._attrs={},this._styles={},this._classes=new Set,this._el=null,t!==null&&this.setup(t)}_setupObject(e){Object.entries(e).forEach(([e,t])=>{if(e===`class`||e===`className`){this.className(t);return}if(e===`attrs`){this.attr(t);return}if(e===`style`){this.styles(t);return}if(e===`children`){this.child(t);return}if(e.startsWith(`on`)&&typeof t==`function`){this.on(e.slice(2).toLowerCase(),t);return}if(typeof this[e]==`function`){this[e](t);return}typeof t!=`function`&&this.attr(e,t)})}tagName(){return this._tagName}textContent(){return this._children.map(e=>typeof e.textContent==`function`?e.textContent():``).join(``)}attr(e,t){if(t===void 0&&typeof e==`string`)return this._attrs[e];if(e&&typeof e==`object`)return Object.entries(e).forEach(([e,t])=>this.attr(e,t)),this;if(typeof t==`function`)return y(`attr`,e,t,t=>this.attr(e,t)),this;let n=this._attrs[e];return t==null||t===!1?delete this._attrs[e]:this._attrs[e]=t,this._el&&ue(this._el,e,t),this._el&&f()&&!this._devtoolsRendering&&!Object.is(n,t)&&m(this,`attr`,{name:e,previous:n,next:t}),this}id(e){return e===void 0?this.attr(`id`):this.attr(`id`,e)}name(e){return e===void 0?this.attr(`name`):this.attr(`name`,e)}className(...e){return e.length===0?[...this._classes].join(` `):(e.flat(1/0).forEach(e=>{e&&String(e).split(/\s+/).filter(Boolean).forEach(e=>this._classes.add(e))}),this._syncClassName(),this)}class(...e){return this.className(...e)}replaceClassName(e,t,n=!1){return!e||!t||e===t?this:this._classes.has(e)?(this._classes.delete(e),this.className(t)):n?this.className(t):this}style(e,t){if(t===void 0&&typeof e==`string`)return this._styles[e];if(e&&typeof e==`object`)return this.styles(e);if(typeof t==`function`)return y(`style`,e,t,t=>this.style(e,t)),this;let n=this._styles[e];return t==null||t===``?delete this._styles[e]:this._styles[e]=t,this._el&&(this._el.style[e]=t||``),this._el&&f()&&!this._devtoolsRendering&&!Object.is(n,t)&&m(this,`style`,{name:e,previous:n,next:t}),this}styles(e){return Object.entries(e||{}).forEach(([e,t])=>this.style(e,t)),this}child(...e){let t=this._el&&f()&&!this._devtoolsRendering?[]:null;return e.flat(1/0).forEach(e=>{if(e==null)return;let n=ge(this,e);if(this._pendingRemovals.delete(n),this._children.push(n),this._childrenDirty=!0,this._el){let e=_(this._access??g(),()=>n.renderDom());e&&e.parentNode!==this._el&&this._el.appendChild(e),t&&t.push(p(n))}}),t&&t.length>0&&m(this,`child`,{added:t}),this}_applyAccessState(e){if(e===`readonly`){this._accessAttrsApplied=!0;let e=this._tagName;ae.has(e)&&this.attr(`disabled`,!0),oe.has(e)&&this.attr(`readonly`,!0),this.attr(`aria-disabled`,`true`);return}this._accessAttrsApplied&&(this._accessAttrsApplied=!1,this.attr(`disabled`,null),this.attr(`readonly`,null),this.attr(`aria-disabled`,null))}renderDom(){if(this._deleted)return null;let e=this._permissionState();if(e===`hidden`)return null;let t=this._access??g();f()&&(this._devtoolsRendering=!0);try{return this._el||(this._el=document.createElement(this._tagName),_(t,()=>this._applySnapshotToElement())),this._applyAccessState(e),this._commitChildren(),this._children.forEach(e=>{_(t,()=>{let t=e.renderDom();t&&t.parentNode!==this._el?this._el.appendChild(t):!t&&e._el&&e._el.parentNode===this._el&&this._el.removeChild(e._el)})}),f()&&re(this),this._el}finally{this._devtoolsRendering=!1}}toHTML(){if(this._deleted)return``;let e=this._permissionState();return e===`hidden`?``:(this._applyAccessState(e),_(this._access??g(),()=>{let e=this._serializeAttributes(),t=e?`<${this._tagName} ${e}>`:`<${this._tagName}>`;return ce.has(this._tagName)?t:`${t}${this._children.map(e=>e.toHTML()).join(``)}</${this._tagName}>`}))}_applyBindingsToElement(){Object.entries(this._attrs).forEach(([e,t])=>ue(this._el,e,t)),this._syncClassName(),Object.entries(this._styles).forEach(([e,t])=>{this._el.style[e]=t}),this._events.forEach((e,t)=>{this._bindDomAdapter(t,void 0,e.options)})}_applySnapshotToElement(){this._applyBindingsToElement(),this._children.forEach(e=>{let t=e.renderDom();t&&this._el.appendChild(t)})}_syncClassName(){let e=this._attrs.class,t=[...this._classes].join(` `);t?this._attrs.class=t:delete this._attrs.class,this._el&&(t?this._el.className=t:this._el.removeAttribute(`class`),f()&&!this._devtoolsRendering&&!Object.is(e,t)&&m(this,`attr`,{name:`class`,previous:e,next:t||void 0}))}_serializeAttributes(){let e={...this._attrs},t=this._serializeStyles();return t&&(e.style=e.style?`${e.style}; ${t}`:t),Object.entries(e).filter(([,e])=>e!=null&&e!==!1).map(([e,t])=>t===!0||le(e)?`${e}="${e}"`:`${e}="${x(t)}"`).join(` `)}_serializeStyles(){return de(this._styles)}};function ye(e,t=D){return function(n=null,r=null,i=null){let a=ve(n,r,i),o=new t(e,a.first);return E(o,a.options),typeof a.callback==`function`&&a.callback(o),o}}function O(e,t,n={}){let{override:r=!1}=n;Object.entries(t).forEach(([t,n])=>{!r&&e.prototype[t]||(e.prototype[t]=function(...e){return this.child(n(...e))})})}var be=class extends S{constructor(e){super(null),this._loader=e,this._resolved=null}_resolve(){return this._resolved||=Se(this._loader),this._resolved}toHTML(){return this._deleted?``:`<div class="yoya-client-only" data-client-only="true"></div>`}renderDom(){if(this._deleted)return null;let e=this._resolve().renderDom();return this._el&&this._el!==e&&this._el.parentNode&&this._el.parentNode.replaceChild(e,this._el),this._el=e,e}children(){return this._resolved?this._resolved.children():[]}textContent(){return this._resolved&&typeof this._resolved.textContent==`function`?this._resolved.textContent():``}destroy(){return this._resolved&&this._resolved.destroy(),super.destroy()}};function xe(e){return new be(e)}function Se(e){if(e instanceof S)return e;if(typeof e==`function`)return Se(e());if(e&&typeof e.render==`function`)return Se(e.render());throw TypeError(`vClientOnly loader must return a ViewNode or a component object`)}function Ce(e,t,n=void 0){return typeof document>`u`?()=>{}:(document.addEventListener(e,t,n),()=>{document.removeEventListener(e,t,n)})}function we(e,t,n=void 0){typeof document>`u`||document.removeEventListener(e,t,n)}function Te(e,t,n=void 0){return typeof window>`u`?()=>{}:(window.addEventListener(e,t,n),()=>{window.removeEventListener(e,t,n)})}function Ee(e,t=null){if(typeof document>`u`)return null;if(t){let e=document.querySelector(`[${t}]`);if(e)return e}let n=document.createElement(`style`);return t&&n.setAttribute(t,``),n.textContent=e,document.head?.appendChild(n),n}const De=`yoya-ui:i18n`,k=new Map;var Oe=class{constructor(e={}){let t=e.language||`zh-CN`;this._key=e.key||null,this._storage=tt(e.storage),this._storageKey=e.storageKey||null,this._sharedStorageKey=this._key?De:null,this._fallbackLanguage=e.fallbackLanguage||t,this._language=this._readStoredLanguage(t),this._messages={},this._listeners=new Set,this.registerMessages(e.messages||{}),this._key&&Pe(this)}key(){return this._key}getLanguage(){return this._language}setLanguage(e){return!e||e===this._language?this:(this._language=e,this._persistLanguage(),this._notify(),this)}getFallbackLanguage(){return this._fallbackLanguage}setFallbackLanguage(e){return e?(this._fallbackLanguage=e,this._notify(),this):this}clearPersistedLanguage(){if(!this._storageKey){if(!this._sharedStorageKey)return this;let e=N(this._storage,this._sharedStorageKey);return delete e[this._key],ze(this._storage,this._sharedStorageKey,e),this}try{this._storage.removeItem(this._storageKey)}catch{}return this}registerLocale(e,t){if(!e||typeof t!=`function`)return Promise.reject(TypeError(`registerLocale requires a language name and a loader`));let n;try{n=t()}catch(e){return Promise.reject(e)}return Promise.resolve(n).then(t=>(this.register(e,t||{}),this))}register(e,t={}){return e?(et(t).forEach(t=>{this._messages[e]=Ze(this._messages[e]||{},t)}),this._notify(),this):this}registerMessages(e={}){return $e(e).forEach(e=>{if(e.language){this.register(e.language,e.messages||{});return}Object.entries(e).forEach(([e,t])=>{this.register(e,t)})}),this}t(e,t={},n=void 0){let r=Be(this._messages[this._language],e)??Be(this._messages[this._fallbackLanguage],e)??n??e;return Ve(typeof r==`function`?r(t,this):r,t,this)}text(e,t={},n=void 0){return new ke(this,e,t,n)}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_readStoredLanguage(e){if(this._storageKey)try{return this._storage.getItem(this._storageKey)||e}catch{return e}return this._sharedStorageKey&&N(this._storage,this._sharedStorageKey)[this._key]||e}_persistLanguage(){if(this._storageKey){try{this._storage.setItem(this._storageKey,this._language)}catch{}return}if(this._sharedStorageKey){let e=N(this._storage,this._sharedStorageKey);e[this._key]=this._language,ze(this._storage,this._sharedStorageKey,e)}}_notify(){this._listeners.forEach(e=>e(this))}},ke=class extends C{constructor(e,t,n={},r=void 0){super(e.t(t,n,r)),this._i18n=e,this._key=t,this._params=n||{},this._defaultValue=r,this._unsubscribe=e.subscribe(()=>this.refresh())}key(e){return e===void 0?this._key:(this._key=e,this.refresh())}params(e){return e===void 0?{...this._params}:(this._params=e||{},this.refresh())}defaultValue(e){return e===void 0?this._defaultValue:(this._defaultValue=e,this.refresh())}refresh(){return this.textContent(this._i18n.t(this._key,this._params,this._defaultValue)),this}destroy(){return this._unsubscribe&&=(this._unsubscribe(),null),super.destroy()}};function A(e={}){return new Oe(e)}const j=A();function Ae(e,t={}){return j.text(e,t)}let M=j;function je(e=j){return M=e,String.prototype._yoyaUiStringShortcutInstalled?e:(Object.defineProperty(String.prototype,"_yoyaUiStringShortcutInstalled",{configurable:!0,enumerable:!1,value:!0}),Object.defineProperty(String.prototype,"s",{configurable:!0,enumerable:!1,value:function(e,t,n){let r=String(this),i={},a=M;return Ne(t)?a=t:typeof t==`string`?a=Ie(t)||M:(i=t||{},Ne(n)?a=n:typeof n==`string`&&(a=Ie(n)||M)),a.text(e||r,i,r)}}),e)}function Me(e,t){let n=M;M=e||n;try{return t()}finally{M=n}}function Ne(e){return!!(e&&typeof e.text==`function`)}function Pe(e){let t=e?.key?.();return t?(k.set(t,e),()=>{k.get(t)===e&&k.delete(t)}):()=>{}}function Fe(e){let t=typeof e==`string`?e:e?.key?.();return t&&k.delete(t),t}function Ie(e){return e&&k.get(e)||null}function Le(){return new Map(k)}function Re(e){return N(e||tt(),De)}function N(e,t){if(!e)return{};try{let n=e.getItem(t);if(!n)return{};let r=JSON.parse(n);return r&&typeof r==`object`?r:{}}catch{return{}}}function ze(e,t,n){if(e)try{e.setItem(t,JSON.stringify(n))}catch{}}je(j);function Be(e,t){if(!(!e||!t))return Object.prototype.hasOwnProperty.call(e,t)?e[t]:String(t).split(`.`).reduce((e,t)=>{if(e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,t))return e[t]},e)}function Ve(e,t,n){let r=String(e),i=[],a=0;for(;a<r.length;){let e=r.charAt(a);if(e===`{`){let e=He(r,a),o=r.slice(a+1,e).trim();i.push(Ue(o,t,n,r.slice(a,e+1))),a=e+1}else i.push(e),a+=1}return i.join(``)}function He(e,t){let n=0;for(let r=t;r<e.length;r+=1){let t=e.charAt(r);if(t===`{`)n+=1;else if(t===`}`&&(--n,n===0))return r}return e.length-1}function Ue(e,t,n,r){let i=We(e);if(i.length===1)return Ge(t,i[0],r);let[a,o,...s]=i,c=Ge(t,a,void 0);if(c==null)return r;let l=n?.getLanguage?.()||`zh-CN`;if(/^number$/i.test(o||``))return Je(c,l);if(/^date$/i.test(o||``))return Xe(c,l,s[0]);if(/^plural$/i.test(o||``)){let e=qe(c,l),a=Ke(i.slice(2).join(`,`));return Ve(a[`=${c}`]??a[e]??a.other??r,t,n)}return r}function We(e){let t=[],n=0,r=``;for(let i of String(e))i===`{`?n+=1:i===`}`&&--n,i===`,`&&n===0?(t.push(r.trim()),r=``):r+=i;return r&&t.push(r.trim()),t}function Ge(e,t,n){let r=e?.[t];return r===void 0?n:r}function Ke(e){let t={},n=/([^\s{}]+)\s*\{([^{}]*(?:\{[^{}]*\}[^{}]*)*)\}/g,r;for(;r=n.exec(e);)t[r[1].trim()]=r[2].trim();return t}function qe(e,t){let n=Number(e);if(typeof Intl>`u`||typeof Intl.PluralRules!=`function`)return n===1?`one`:`other`;try{return new Intl.PluralRules(t).select(n)}catch{return n===1?`one`:`other`}}function Je(e,t){if(typeof Intl>`u`||typeof Intl.NumberFormat!=`function`)return String(e);try{return new Intl.NumberFormat(t).format(e)}catch{return String(e)}}const Ye=new Set([`full`,`long`,`medium`,`short`]);function Xe(e,t,n=`medium`){if(typeof Intl>`u`||typeof Intl.DateTimeFormat!=`function`)return String(e);try{return new Intl.DateTimeFormat(t,{dateStyle:Ye.has(n)?n:`medium`}).format(new Date(e))}catch{return String(e)}}function Ze(e,t){let n={...e};return Object.entries(t||{}).forEach(([e,t])=>{Qe(t)&&Qe(n[e])?n[e]=Ze(n[e],t):n[e]=t}),n}function Qe(e){return Object.prototype.toString.call(e)===`[object Object]`}function $e(e){return Array.isArray(e)?e.flatMap(e=>$e(e)):[e||{}]}function et(e){return Array.isArray(e)?e.flatMap(e=>et(e)):[e||{}]}function tt(e){if(e)return e;try{if(typeof globalThis<`u`&&globalThis.localStorage)return globalThis.localStorage}catch{}return nt()}const P=new Map;function nt(){return{getItem(e){return P.has(e)?P.get(e):null},setItem(e,t){P.set(e,String(t))},removeItem(e){P.delete(e)}}}const F=[];let I=null;function rt(e,t){if(!e||typeof e!=`object`)return t();F.push(e);try{return t()}finally{F.pop()}}function it(e){return I=e&&typeof e==`object`?e:null,I}function at(){return I=null,null}function ot(e,t=void 0){for(let t=F.length-1;t>=0;--t){let n=F[t];if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e]}return I&&Object.prototype.hasOwnProperty.call(I,e)?I[e]:t}function st(){let e={...I||{}};return F.forEach(t=>Object.assign(e,t)),e}let L=!1;const ct=new Set,lt=new WeakMap,R=new Map;let ut=1,dt=1;const z=new WeakMap;function ft(){return L=!0,!0}function pt(){return L=!1,!1}function mt(){return L}function B(e){if(!L)return;let t={seq:dt,...e};dt+=1,t.node&&typeof t.node==`object`&&t.nodeId===void 0&&(t.nodeId=V(t.node)),t.node&&typeof t.node==`object`&&t.nodeLabel===void 0&&(t.nodeLabel=Ct(t.node)),ct.forEach(e=>{try{e(t)}catch{}})}function ht(e){return ct.add(e),()=>ct.delete(e)}function V(e){let t=lt.get(e);return t===void 0&&(t=ut,ut+=1,lt.set(e,t)),R.set(t,e),t}function gt(e){let t=lt.get(e);t!==void 0&&R.delete(t)}function _t(e){let t=st();e._devtoolsContext=Object.keys(t).length>0?t:null}function vt(e){let t=R.get(e);if(!t||t._deleted)return null;let n=t._access,r={id:e,access:n?{code:n.code,level:n.level}:null,context:t._devtoolsContext||null,i18n:null};return typeof t._permissionState==`function`&&(r.permissionState=t._permissionState()),t._i18n&&typeof t._i18n.getLanguage==`function`&&(r.i18n={key:t._key??void 0,language:t._i18n.getLanguage()}),r}function yt(e){let t=R.get(e);return!t||t._deleted||!(`_el`in t)||!t._el?null:t._el}function bt(e){return V(e)}function xt(e){return typeof e._tagName==`string`&&e._attrs?`element`:typeof e._content==`string`&&`_textNode`in e?`text`:`_component`in e&&`_resolvedList`in e?`component`:`view`}function St(e,t){return t===`component`?Array.isArray(e._resolvedList)?e._resolvedList:[]:Array.isArray(e._children)?e._children:[]}function Ct(e){let t=xt(e);if(t===`element`){let t=(e._classes?[...e._classes].slice(0,2):[]).map(e=>String(e).replace(/\s+/g,``)).filter(Boolean).map(e=>`.${e}`).join(``);return`${e._tagName||`element`}${t}`}if(t===`text`){let t=typeof e._content==`string`?e._content:``;return`文本 "${t.length>24?`${t.slice(0,24)}…`:t}"`}return t===`component`?`组件`:`节点`}function wt(e){let t=xt(e),n={kind:t,id:V(e)};return t===`element`?{...n,tagName:e._tagName,attrs:{...e._attrs},children:St(e,t).map(e=>wt(e))}:t===`text`?{...n,text:e._content,children:[]}:{...n,children:St(e,t).map(e=>wt(e))}}function Tt(e){let t=xt(e),n=V(e);return t===`element`?{kind:t,id:n,attrs:{...e._attrs},styles:{...e._styles},childIds:(e._children||[]).map(e=>V(e))}:t===`text`?{kind:t,id:n,text:e._content}:t===`component`?{kind:t,id:n,childIds:(e._resolvedList||[]).map(e=>V(e))}:{kind:t,id:n,childIds:(e._children||[]).map(e=>V(e))}}function Et(e,t){let n={};return new Set([...Object.keys(e),...Object.keys(t)]).forEach(r=>{Object.is(e[r],t[r])||(n[r]={previous:e[r],next:t[r]})}),Object.keys(n).length>0?n:null}function Dt(e,t){let n={};if(e.kind===`element`&&t.kind===`element`){let r=Et(e.attrs,t.attrs);r&&(n.attrs=r);let i=Et(e.styles,t.styles);i&&(n.styles=i)}e.kind===`text`&&t.kind===`text`&&!Object.is(e.text,t.text)&&(n.text={from:e.text,to:t.text});let r=e.childIds||[],i=t.childIds||[],a=new Set(r),o=new Set(i),s=i.filter(e=>!a.has(e)),c=r.filter(e=>!o.has(e)),l=c.length===0&&s.length===0&&i.length>1&&i.some((e,t)=>r[t]!==e);return(s.length>0||c.length>0||l)&&(n.children={added:s,removed:c,reordered:l}),n}function Ot(e){e&&z.set(e,Tt(e))}function kt(e,t,n){!L||!e||(B({type:t,node:e,...n}),Ot(e))}function At(e){if(!L||!e||e._deleted)return;let t=Tt(e),n=z.get(e);if(!n){B({type:`commit`,kind:`mount`,node:e}),z.set(e,t);return}let r=Dt(n,t);Object.entries(r.attrs||{}).forEach(([t,n])=>{B({type:`attr`,node:e,name:t,...n})}),Object.entries(r.styles||{}).forEach(([t,n])=>{B({type:`style`,node:e,name:t,...n})}),r.children&&B({type:`child`,node:e,...r.children}),r.text&&B({type:`text`,node:e,...r.text}),z.set(e,t)}function jt(e){return e?wt(e):{kind:`root`,children:[]}}const Mt=Symbol.for(`yoya.devtools.bridge`);function Nt(){typeof globalThis>`u`||(globalThis[Mt]={captureScope:_t,commit:At,emit:B,enabled:()=>L,ensureId:bt,notify:kt,unregister:gt})}Nt();const Pt=new Set([`state`,`render`,`update`]),Ft=new Set([`_attachHost`,`destroy`,`getState`,`setState`,`subscribe`]);function It(e={}){if(typeof e.render!=`function`)throw TypeError(`vStateNode requires a render function`);let t=typeof e.state==`function`?e.state():{...e.state||{}},n=new Set,r=!1,i=null,a=null,o=[],s={_attachHost(e){return a=e,s},destroy(){if(r)return s;if(r=!0,o=[],n.clear(),a=null,i){let e=i;i=null,e.forEach(e=>e.destroy())}return s},getState(){return s.state()},render(){return r||i||c(),l()},setState(e){if(r||e==null)return s;let o=typeof e==`function`?e({...t}):e;if(!o||typeof o!=`object`)return s;let c=new Set,l=mt()?{}:null;Object.entries(o).forEach(([e,n])=>{t[e]!==n&&(l&&(l[e]={from:t[e],to:n}),t[e]=n,c.add(e))});let u=`none`;return c.size>0&&(i&&(u=d(c)),n.forEach(e=>e(t,s)),mt()&&l&&B({type:`state`,node:a||void 0,changed:l,state:{...t},handling:u})),s},state(){return{...t}},subscribe(e){if(typeof e!=`function`)throw TypeError(`vStateNode subscriber must be a function`);return n.add(e),()=>n.delete(e)}};for(let t of Object.keys(e))if(!(Pt.has(t)||typeof e[t]!=`function`)){if(Ft.has(t))throw TypeError(`vStateNode config key "${t}" conflicts with the built-in API`);s[t]=e[t]}return s;function c(){let n=i||[];o=[];let r=se({bindings:o,getState:()=>t},()=>e.render.call(s,t,s)),c=Array.isArray(r)?r.slice():[r];if(c.forEach(e=>{if(!(e instanceof S))throw TypeError(`vStateNode render must return a ViewNode or an array of ViewNodes`)}),i=c,u(),a){a._replaceResolved(l());return}if(n.length>0){let e=n.length===1?n[0]:null;if(e&&e._el&&e._el.parentNode&&c.length===1){let t=c[0].renderDom();t&&e._el.parentNode.replaceChild(t,e._el)}n.forEach(e=>e.destroy())}}function l(){return i?i.length===1?i[0]:i:null}function u(){o.forEach(e=>{let t=e.evaluate();(!e.committed||!Object.is(t,e.last))&&(e.committed=!0,e.last=t,e.commit(t))})}function d(n){return typeof e.update==`function`?e.update.call(s,t,s,n)===!0?(c(),`rebuild`):o.length>0?(u(),`bindings`):`update`:o.length>0?(u(),`bindings`):(c(),`rebuild`)}}O(D,{vStateNode:It});const Lt=[`a[href]`,`button:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `),Rt=`data-yoya-live`;function zt(e){return!e||typeof e.querySelectorAll!=`function`?[]:Array.from(e.querySelectorAll(Lt)).filter(e=>e.getAttribute&&e.getAttribute(`tabindex`)!==`-1`)}function Bt(e,t={}){let{onEscape:n=null,restoreFocus:r=!0}=t;if(typeof document>`u`||!e)return{activate(){},destroy(){}};let i=!1,a=null,o=null,s=t=>{if(!i)return;if(t.key===`Escape`){n&&n(t);return}if(t.key!==`Tab`)return;let r=zt(e);if(r.length===0){t.preventDefault();return}let a=document.activeElement,o=r.indexOf(a),s;s=t.shiftKey?o<=0?r.length-1:o-1:o===-1||o===r.length-1?0:o+1,t.preventDefault(),r[s].focus()};return{activate:()=>{if(i)return;i=!0,a=document.activeElement,o=Ce(`keydown`,s);let t=zt(e)[0];t&&t.focus()},destroy:()=>{i&&(i=!1,o&&=(o(),null),r&&a&&typeof a.isConnected==`boolean`&&a.isConnected&&typeof a.focus==`function`&&a.focus())}}}function Vt(e,t={}){if(typeof document>`u`)return null;let{politeness:n=`polite`,dedupeKey:r=`yoya-announce`}=t,i=document.querySelector(`[${Rt}="${r}"]`);return i||(i=document.createElement(`div`),i.setAttribute(Rt,r),i.setAttribute(`aria-live`,n),i.setAttribute(`aria-atomic`,`true`),i.className=`yoya-a11y-live`,i.style.cssText=`position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;margin:-1px;`,document.body.appendChild(i)),i.textContent=``,queueMicrotask(()=>{i.textContent=String(e)}),i}function Ht({key:e,items:t,currentIndex:n=-1,shiftKey:r=!1}){let i=t?.length||0;if(i===0)return-1;let a=i-1,o=n>=0&&n<i?n:-1;return e===`Home`?0:e===`End`?a:e===`ArrowDown`?r?-1:o===a?0:o+1:e===`ArrowUp`?r||o<=0?a:o-1:o}const Ut=[`light`,`dark`,`system`],Wt=`yoya-theme-mode`,Gt=`yoya-theme-name`;function H(){return typeof document>`u`?null:document.documentElement}function U(){try{return typeof localStorage<`u`&&localStorage!==null}catch{return!1}}function Kt(e=`light`,t={}){let n=Ut.includes(e)?e:`light`,r=H();if(r&&(r.dataset.yoyaMode=n),t.persist&&U())try{localStorage.setItem(Wt,n)}catch{}return n}function qt(){let e=H(),t=e&&e.dataset.yoyaMode;return Ut.includes(t)?t:`light`}function Jt(){let e=qt();return e===`system`?typeof window>`u`||typeof window.matchMedia!=`function`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:e}function Yt(e=``,t={}){let n=H();if(!e){if(n&&delete n.dataset.yoyaTheme,t.persist&&U())try{localStorage.removeItem(Gt)}catch{}return``}if(n&&(n.dataset.yoyaTheme=e),t.persist&&U())try{localStorage.setItem(Gt,e)}catch{}return e}function Xt(){let e=H();return e&&e.dataset.yoyaTheme||``}function Zt(e={}){let t=e.mode,n=e.theme;if(t===void 0&&U()){let e=localStorage.getItem(Wt);Ut.includes(e)&&(t=e)}return n===void 0&&U()&&(n=localStorage.getItem(Gt)||``),t!==void 0&&Kt(t,{persist:e.persist}),n!==void 0&&Yt(n,{persist:e.persist}),{mode:qt(),theme:Xt()}}let W=null;function Qt({submit:e}={}){return W=typeof e==`function`?e:null,W}var $t=class{method(){return`GET`}headers(){return{}}cookies(){return null}body(){return null}params(){return{}}address(){return``}submit(){if(typeof W!=`function`)throw Error(`RequestBase: 未注册请求传输,请先 configureRequest({ submit })`);return W(this)}},en=class e{constructor({ok:e=!0,code:t=`0`,msg:n=null,showType:r=0,data:i=null,kind:a=`detail`,pageNum:o=null,pageSize:s=null,total:c=null}={}){this.ok=e,this.code=t,this.msg=n,this.showType=r,this.data=i,this.kind=a,this.pageNum=o,this.pageSize=s,this.total=c}get isSuccess(){return!!this.ok}get pages(){return this.pageSize>0?Math.ceil((this.total??0)/this.pageSize):0}static from(t,n={}){if(!t||t.ok===!1){let e=Error(t?.msg||`请求失败`);throw e.code=t?.code,e.showType=t?.showType,e}let r=t.data,i=Array.isArray(r)&&t.pageNum!=null,a=Array.isArray(r);return new e({ok:t.ok,code:t.code,msg:t.msg,showType:t.showType,kind:i?`page`:a?`list`:`detail`,data:i||a?(r??[]).map(e=>n.toItem?n.toItem(e):e):n.toDetail?n.toDetail(r):r,pageNum:t.pageNum,pageSize:t.pageSize,total:t.total})}},G=class extends D{};const tn=[`a`,`abbr`,`address`,`area`,`article`,`aside`,`audio`,`b`,`base`,`bdi`,`bdo`,`blockquote`,`body`,`br`,`button`,`canvas`,`caption`,`cite`,`code`,`col`,`colgroup`,`data`,`datalist`,`dd`,`del`,`details`,`dfn`,`dialog`,`div`,`dl`,`dt`,`em`,`embed`,`fieldset`,`figcaption`,`figure`,`footer`,`form`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`head`,`header`,`hgroup`,`hr`,`html`,`i`,`iframe`,`img`,`input`,`ins`,`kbd`,`label`,`legend`,`li`,`link`,`main`,`map`,`mark`,`menu`,`meta`,`meter`,`nav`,`noscript`,`object`,`ol`,`optgroup`,`option`,`output`,`p`,`picture`,`pre`,`progress`,`q`,`rp`,`rt`,`ruby`,`s`,`samp`,`script`,`search`,`section`,`select`,`selectedcontent`,`slot`,`small`,`source`,`span`,`strong`,{name:`style`,tagName:`style`,aliases:[`styleTag`]},`sub`,`summary`,`sup`,`table`,`tbody`,`td`,`template`,`textarea`,`tfoot`,`th`,`thead`,`time`,`title`,`tr`,`track`,`u`,`ul`,{name:`varTag`,tagName:`var`},`video`,`wbr`];function nn(){return tn.reduce((e,t)=>{let{aliases:n=[],name:r,tagName:i}=di(t),a=ye(i,G);return e[r]=a,n.forEach(t=>{e[t]=a}),e},{})}const rn=nn();O(G,rn);const{a:an,abbr:on,address:sn,area:cn,article:ln,aside:un,audio:dn,b:fn,base:pn,bdi:mn,bdo:hn,blockquote:gn,body:_n,br:vn,button:yn,canvas:bn,caption:xn,cite:Sn,code:Cn,col:wn,colgroup:Tn,data:En,datalist:Dn,dd:On,del:kn,details:An,dfn:jn,dialog:Mn,div:Nn,dl:Pn,dt:Fn,em:In,embed:Ln,fieldset:Rn,figcaption:zn,figure:Bn,footer:Vn,form:Hn,h1:Un,h2:Wn,h3:Gn,h4:Kn,h5:qn,h6:Jn,head:Yn,header:Xn,hgroup:Zn,hr:Qn,html:$n,i:er,iframe:tr,img:nr,input:rr,ins:ir,kbd:ar,label:or,legend:sr,li:cr,link:lr,main:ur,map:dr,mark:fr,menu:pr,meta:mr,meter:hr,nav:gr,noscript:_r,object:vr,ol:yr,optgroup:br,option:xr,output:Sr,p:Cr,picture:wr,pre:Tr,progress:Er,q:Dr,rp:Or,rt:kr,ruby:Ar,s:jr,samp:Mr,script:Nr,search:Pr,section:Fr,select:Ir,selectedcontent:Lr,slot:Rr,small:zr,source:Br,span:Vr,strong:Hr,style:Ur,styleTag:Wr,sub:Gr,summary:Kr,sup:qr,table:Jr,tbody:Yr,td:Xr,template:Zr,textarea:Qr,tfoot:$r,th:ei,thead:ti,time:ni,title:ri,tr:ii,track:ai,u:oi,ul:si,varTag:ci,video:li,wbr:ui}=rn;function di(e){return typeof e==`string`?{name:e,tagName:e}:e}var fi=t({ArrowDownOutlined:()=>pi,ArrowLeftOutlined:()=>mi,ArrowRightOutlined:()=>hi,ArrowUpOutlined:()=>gi,BellOutlined:()=>_i,CalendarOutlined:()=>vi,CheckOutlined:()=>yi,ChevronDownOutlined:()=>bi,ChevronLeftOutlined:()=>xi,ChevronRightOutlined:()=>Si,ChevronUpOutlined:()=>Ci,CloseOutlined:()=>wi,CodeOutlined:()=>Ti,CopyOutlined:()=>Ei,DownloadOutlined:()=>Di,EditOutlined:()=>Oi,ExternalOutlined:()=>ki,EyeOutlined:()=>Ai,FileOutlined:()=>ji,FolderOpenOutlined:()=>Pi,FolderOutlined:()=>Ni,HeartOutlined:()=>Fi,HomeOutlined:()=>Ii,ImageOutlined:()=>Mi,InfoOutlined:()=>Li,LockOutlined:()=>Ri,LogoutOutlined:()=>zi,MailOutlined:()=>Bi,MenuOutlined:()=>Vi,MinusOutlined:()=>Hi,MonitorOutlined:()=>ta,MoonOutlined:()=>ea,MoreHorizontalOutlined:()=>Ui,PlusOutlined:()=>Wi,RefreshOutlined:()=>Gi,SearchOutlined:()=>Ki,SettingsOutlined:()=>qi,StarOutlined:()=>Ji,SunOutlined:()=>$i,TrashOutlined:()=>Yi,UploadOutlined:()=>Xi,UserOutlined:()=>Zi,WarningOutlined:()=>Qi});function pi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M12 5v14`}),e.path({d:`m19 12-7 7-7-7`})})}function mi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M19 12H5`}),e.path({d:`m12 19-7-7 7-7`})})}function hi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M5 12h14`}),e.path({d:`m12 5 7 7-7 7`})})}function gi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M12 19V5`}),e.path({d:`m5 12 7-7 7 7`})})}function _i(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9`}),e.path({d:`M10.3 21a1.94 1.94 0 0 0 3.4 0`})})}function vi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.rect({height:`18`,rx:`2`,width:`18`,x:`3`,y:`4`}),e.path({d:`M16 2v4`}),e.path({d:`M8 2v4`}),e.path({d:`M3 10h18`})})}function yi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M20 6 9 17l-5-5`})})}function bi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`m6 9 6 6 6-6`})})}function xi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`m15 18-6-6 6-6`})})}function Si(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`m9 18 6-6-6-6`})})}function Ci(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`m18 15-6-6-6 6`})})}function wi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M18 6 6 18`}),e.path({d:`m6 6 12 12`})})}function Ti(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`m16 18 6-6-6-6`}),e.path({d:`m8 6-6 6 6 6`})})}function Ei(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.rect({height:`14`,rx:`2`,width:`14`,x:`8`,y:`8`}),e.path({d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})})}function Di(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),e.path({d:`m7 10 5 5 5-5`}),e.path({d:`M12 15V3`})})}function Oi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z`})})}function ki(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),e.path({d:`m15 3 6 6`}),e.path({d:`m21 3-9 9`})})}function Ai(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z`}),e.circle({cx:`12`,cy:`12`,r:`3`})})}function ji(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`}),e.path({d:`M14 2v4a2 2 0 0 0 2 2h4`})})}function Mi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.rect({height:`18`,rx:`2`,width:`18`,x:`3`,y:`3`}),e.circle({cx:`9`,cy:`9`,r:`2`}),e.path({d:`m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21`})})}function Ni(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`})})}function Pi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2`})})}function Fi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z`})})}function Ii(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`m3 9.5 9-6.5 9 6.5`}),e.path({d:`M5 10v10h5v-6h4v6h5V10`})})}function Li(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.circle({cx:`12`,cy:`12`,r:`10`}),e.path({d:`M12 16v-4`}),e.path({d:`M12 8h.01`})})}function Ri(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.rect({height:`11`,rx:`2`,width:`18`,x:`3`,y:`11`}),e.path({d:`M7 11V7a5 5 0 0 1 10 0v4`})})}function zi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}),e.path({d:`m16 17 5-5-5-5`}),e.path({d:`M21 12H9`})})}function Bi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.rect({height:`16`,rx:`2`,width:`20`,x:`2`,y:`4`}),e.path({d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`})})}function Vi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M4 6h16`}),e.path({d:`M4 12h16`}),e.path({d:`M4 18h16`})})}function Hi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M5 12h14`})})}function Ui(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.circle({cx:`5`,cy:`12`,r:`1`,fill:`currentColor`}),e.circle({cx:`12`,cy:`12`,r:`1`,fill:`currentColor`}),e.circle({cx:`19`,cy:`12`,r:`1`,fill:`currentColor`})})}function Wi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M5 12h14`}),e.path({d:`M12 5v14`})})}function Gi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M3 12a9 9 0 0 1 15-6.7L21 8`}),e.path({d:`M21 3v5h-5`}),e.path({d:`M21 12a9 9 0 0 1-15 6.7L3 16`}),e.path({d:`M3 21v-5h5`})})}function Ki(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.circle({cx:`11`,cy:`11`,r:`7`}),e.path({d:`m20 20-4-4`})})}function qi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.circle({cx:`12`,cy:`12`,r:`3`}),e.path({d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2Z`})})}function Ji(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z`,fill:`currentColor`,stroke:`none`})})}function Yi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M3 6h18`}),e.path({d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}),e.path({d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}),e.path({d:`M10 10v6`}),e.path({d:`M14 10v6`})})}function Xi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),e.path({d:`m17 8-5-5-5 5`}),e.path({d:`M12 3v12`})})}function Zi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`}),e.circle({cx:`12`,cy:`7`,r:`4`})})}function Qi(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M21.73 18 13.34 3.7a2 2 0 0 0-3.44 0L2.27 18A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z`}),e.path({d:`M12 9v4`}),e.path({d:`M12 17h.01`})})}function $i(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.circle({cx:`12`,cy:`12`,r:`4`}),e.path({d:`M12 2v2`}),e.path({d:`M12 20v2`}),e.path({d:`m4.93 4.93 1.41 1.41`}),e.path({d:`m17.66 17.66 1.41 1.41`}),e.path({d:`M2 12h2`}),e.path({d:`M20 12h2`}),e.path({d:`m6.34 17.66-1.41 1.41`}),e.path({d:`m19.07 4.93-1.41 1.41`})})}function ea(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.path({d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`})})}function ta(){return K(e=>{e.className(`yoya-icon`).attr({"aria-hidden":`true`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,viewBox:`0 0 24 24`}).styles({height:`24px`,width:`24px`}),e.rect({height:`14`,rx:`2`,width:`20`,x:`2`,y:`3`}),e.path({d:`M8 21h8`}),e.path({d:`M12 17v4`})})}const na=`http://www.w3.org/2000/svg`,ra=new Set([`desc`,`metadata`,`text`,`textPath`,`title`,`tspan`]);var ia=class e extends D{setup(e){return typeof e==`string`||typeof e==`number`?this.child(e):super.setup(e)}text(...e){if(ra.has(this._tagName)){let[t,n]=e;return e.length>0&&this.child(t),n!=null&&this.setup(n),this}return this._svgChild(`text`,...e)}style(...e){let[t,n]=e;return this._tagName===`style`&&e.length<=1?(e.length===1&&this.child(t),this):e.length<=1&&aa(t)?this._svgChild(`style`,t):super.style(t,n)}renderDom(){return this._deleted?null:(this._el||(this._el=document.createElementNS(na,this._tagName),this._applySnapshotToElement()),this._el)}_syncClassName(){let e=[...this._classes].join(` `);e?this._attrs.class=e:delete this._attrs.class,this._el&&(e?this._el.setAttribute(`class`,e):this._el.removeAttribute(`class`))}_svgChild(t,...n){let r=new e(t);return n.forEach(e=>{e!=null&&r.setup(e)}),this.child(r)}};function aa(e){return e==null||typeof e==`function`||typeof e==`string`||typeof e==`number`||Array.isArray(e)}const oa=`animate.animateMotion.animateTransform.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.metadata.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.a.script.style.switch.text.title.symbol.textPath.tspan.use.view`.split(`.`);function sa(e){return function(...t){let n=new ia(e);return e===`svg`&&n.style(`display`,`block`),t.forEach(e=>{e!=null&&n.setup(e)}),n}}function ca(){return oa.reduce((e,t)=>{let{aliases:n=[],name:r,tagName:i}=ua(t),a=sa(i);return e[r]=a,n.forEach(t=>{e[t]=a}),e},{})}const K=sa(`svg`),la=ca();O(G,{svg:K}),O(ia,{svg:K,...la});function ua(e){return typeof e==`string`?{name:e,tagName:e}:e}const da=`yoya-component`;function q(e,t){return`var(--yoya-${e}, ${t})`}function fa(e,t,n=`1px`){return`${n} solid ${q(e,t)}`}function pa(e=null,t=null,n=null){return ve(e,t,n)}function ma(e,t){return typeof e.attr==`function`||typeof e.styles==`function`?E(e,t):(typeof e.render==`function`&&E(e.render(),t),e)}function ha(e,t=null,n=null){return ma(e,t),typeof n==`function`&&n(e),e}function ga(e,t=null,n=null,r=null){let{first:i,options:a,callback:o}=pa(t,n,r);return ha(i instanceof e?i:new e(i),a,o)}function _a(e,t){return t==null?e:typeof t==`function`?(t(e),e):t instanceof S||Array.isArray(t)||typeof t==`string`||typeof t==`number`?(e.child(t),e):(Oa(t)&&e.setup(t),e)}function va(e){return e==null?[]:Array.isArray(e)?e:[e]}function ya(e,t){return e.children().forEach(e=>e.destroy()),e._children=[],e._el&&e._el.replaceChildren(),t.length>0&&e.child(t),e}function ba(e,t){return e._children=e.children().filter(e=>e!==t),e}function xa(e,t){return t==null?e:typeof t==`function`?(t(e),e):Oa(t)?(e._setupButton(t),e):(e.label(t),e)}function Sa(e,t){return ya(e,[]),t==null?e:typeof t==`function`?(t(e),e):(_a(e,t),e)}function Ca(e){let t={bottom:null,left:null,right:null,top:null},n={"bottom-end":{right:`0`,top:`calc(100% + 6px)`},"bottom-start":{left:`0`,top:`calc(100% + 6px)`},"top-end":{bottom:`calc(100% + 6px)`,right:`0`},"top-start":{bottom:`calc(100% + 6px)`,left:`0`}};return{...t,...n[e]||n[`bottom-start`]}}function wa(e,t){return e&&typeof e==`object`?{x:Number(e.clientX??e.x??0),y:Number(e.clientY??e.y??0)}:{x:Number(e||0),y:Number(t||0)}}function Ta(e){let t={error:{background:q(`color-danger-subtle`,`#fef2f2`),borderColor:q(`color-danger-border`,`#fecaca`),color:q(`color-danger-text`,`#991b1b`)},info:{background:q(`color-info-subtle`,`#eff6ff`),borderColor:q(`color-info-border`,`#bfdbfe`),color:q(`color-info-text`,`#1e3a8a`)},success:{background:q(`color-success-subtle`,`#ecfdf5`),borderColor:q(`color-success-border`,`#bbf7d0`),color:q(`color-success-text`,`#166534`)},warning:{background:q(`color-warning-subtle`,`#fffbeb`),borderColor:q(`color-warning-border`,`#fde68a`),color:q(`color-warning-text`,`#92400e`)}};return t[e]||t.info}function Ea(e){let t={bottom:null,left:null,right:null,top:null,transform:null},n={"bottom-left":{bottom:`16px`,left:`16px`},"bottom-right":{bottom:`16px`,right:`16px`},bottom:{bottom:`16px`,left:`50%`,transform:`translateX(-50%)`},"top-left":{left:`16px`,top:`16px`},"top-right":{right:`16px`,top:`16px`},top:{left:`50%`,top:`16px`,transform:`translateX(-50%)`}};return{...t,...n[e]||n[`top-right`]}}function Da(e={}){return typeof e==`number`?{duration:e}:e||{}}function Oa(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function ka(e){return e==null?``:Array.isArray(e)?e.map(e=>ka(e)).join(``):typeof e==`string`||typeof e==`number`||typeof e==`boolean`?String(e):typeof e.textContent==`function`?e.textContent():String(e)}let J=null,Aa=0;function Y(){let e=0;return{next(){return e+=1,e}}}function ja(){return J?J.next():(Aa+=1,Aa)}function Ma(e){return`${e}-${ja()}`}function X(e,t){let n=J;J=e;try{return t()}finally{J=n}}function Na(e={},t={}){let{cookie:n=``,url:r=``,acceptLanguage:i=``}=e||{},{cookieKey:a=`yoya-lang`,queryKey:o=`locale`,defaultLanguage:s=`zh-CN`}=t;return Pa(n,a)||Fa(r,o)||Ia(i)||s}function Pa(e,t){if(!e||!t)return null;for(let n of String(e).split(`;`)){let e=n.indexOf(`=`);if(e===-1||n.slice(0,e).trim()!==t)continue;let r=n.slice(e+1).trim();if(!r)return null;try{return decodeURIComponent(r)}catch{return r}}return null}function Fa(e,t){if(!e||!t)return null;let n=String(e).indexOf(`?`);return n===-1?null:new URLSearchParams(String(e).slice(n+1)).get(t)||null}function Ia(e){if(!e)return null;let t=String(e).split(`,`)[0];return t&&t.split(`;`)[0].trim()||null}function La(e,t){return e?s(typeof e==`function`?e():e,t):t()}function Z(e,t,n,r,i){return La(e,()=>Ra(t,r,()=>za(n,r,i)))}function Ra(e,t,n){return e?rt(typeof e==`function`?e(t):e,n):n()}function za(e,t,n){return e?Me(typeof e==`function`?e(t):e,n):n()}function Q(e,t=null){if(e instanceof S)return e;if(typeof e==`function`)return Q(e(t),t);if(e&&typeof e.render==`function`)return Q(e.render(),t);throw TypeError(`renderToString/mount requires a ViewNode, a component object with render(), or a factory function`)}function Ba(e){let t=1;return typeof e.children==`function`&&e.children().forEach(e=>{(e instanceof w?e._resolveList():[e]).forEach(e=>{t+=Ba(e)})}),t}function Va(e,t={}){let{access:n=null,context:r=null,maxNodes:i=1/0,state:a=null,i18n:o=null}=t||{},s=Ga(a);return X(Y(),()=>Z(n,r,o,a,()=>{let t=typeof e==`function`,n=Q(e,a),r;try{r=Ba(n)>i?{exceeded:!0,html:``,state:s}:{exceeded:!1,html:n.toHTML(),state:s}}finally{t&&n.destroy()}return r}))}var Ha=class extends G{constructor(){super(`html`,null),this._headCallback=null,this._bodyCallback=null}head(e){return this._headCallback=typeof e==`function`?e:null,this}body(e){return this._bodyCallback=typeof e==`function`?e:null,this}vBody(...e){return this.body(t=>t.vBody(...e))}};function $(e){return String(e??``).replace(/&/g,`&`).replace(/"/g,`"`)}function Ua(e,t={},n={}){let{client:r=`/client.js`,containerId:i=`app`,access:a=null,context:o=null,i18n:s=null,maxNodes:c=1/0,messages:l,stateId:u=`__YOYA_DATA__`}=n||{},d=t||{};if(!e||typeof e.page!=`function`)throw TypeError(`renderPage requires { page: (page, state) => {} }`);let f=s||(l?()=>A({language:d.lang||`zh-CN`,messages:l}):null),ee=Ga(d);return X(Y(),()=>Z(a,o,f,d,()=>{let t=new Ha;e.page(t,d);let n=new G(`head`);t._headCallback&&t._headCallback(n,d);let a=new G(`body`);t._bodyCallback&&t._bodyCallback(a,d);let o=Ba(a)>c,s=n.toHTML(),l=`<div id="${$(i)}">`,f=o?`${l}</div>`:`${l}${a.toHTML()}</div>`,te=`<script type="application/json" id="${$(u)}">${ee}<\/script>`,ne=`<script type="module" src="${$(r)}"><\/script>`;return n.destroy(),a.destroy(),`<!doctype html>
|
|
2
|
+
<html lang="${$(d.lang||`zh-CN`)}">
|
|
3
|
+
${s}
|
|
4
|
+
<body>
|
|
5
|
+
${f}
|
|
6
|
+
${te}
|
|
7
|
+
${ne}
|
|
8
|
+
</body>
|
|
9
|
+
</html>`}))}function Wa(e,t={}){if(typeof document>`u`)return null;let{messages:n,i18n:r=null,stateId:i=`__YOYA_DATA__`,target:a=`#app`}=t||{},o=document.getElementById(i),s=Ka(o?o.textContent:``),c=r||(n?()=>A({language:s?.lang||`zh-CN`,messages:n}):null),l=b(a);return l&&l.firstElementChild?Ja(e,a,s,{access:t.access,context:t.context,i18n:c}):qa(e,a,s,{access:t.access,context:t.context,i18n:c})}function Ga(e){return e==null?null:JSON.stringify(e).replace(/</g,`\\u003c`)}function Ka(e){return e==null||e===``?null:JSON.parse(e)}function qa(e,t,n=null,r={}){return X(Y(),()=>Z(r.access,r.context,r.i18n,n,()=>{let r=Q(e,n),i=b(t);return i&&(i.replaceChildren(),i.appendChild(r.renderDom())),r}))}function Ja(e,t,n=null,r={}){return X(Y(),()=>Z(r.access,r.context,r.i18n,n,()=>{let r=Q(e,n),i=b(t);if(i){let e=i.firstElementChild;e?(Ya(r,e),Za(r),Xa(r),r.renderDom()):i.appendChild(r.renderDom())}return r}))}function Ya(e,t){if(e instanceof w){let n=e._resolveList();if(n.length===1){Ya(n[0],t);return}let r=t?Array.from(t.childNodes):[];n.forEach((e,t)=>Ya(e,r[t]));return}if(e instanceof C){t&&t.nodeType===3?(e._textNode=t,e._el=t,t.textContent!==e._content&&(t.textContent=e._content)):Qa(t,e.renderDom());return}if(t&&t.nodeType===1&&t.tagName.toLowerCase()===e._tagName){e._el=t,e._hydrated=!0;let n=Array.from(t.childNodes),r=0;e.children().forEach(e=>{(e instanceof w?e._resolveList():[e]).forEach(e=>{Ya(e,n[r]),r+=1})});return}Qa(t,e.renderDom())}function Xa(e){if(e instanceof w){e._resolveList().forEach(e=>Xa(e));return}e instanceof C||(e._el&&e._hydrated&&e._applyBindingsToElement(),e.children().forEach(Xa))}function Za(e){if(e instanceof w){e._resolveList().forEach(e=>Za(e));return}e instanceof C||(e.children().forEach(Za),typeof e.hydrateSnapshot==`function`&&e.hydrateSnapshot())}function Qa(e,t){e&&e.parentNode&&e.parentNode.replaceChild(t,e)}export{ji as $,jr as $n,ht as $r,jn as $t,fa as A,_e as Ai,cr as An,ci as Ar,ln as At,vi as B,s as Bi,vr as Bn,Kt as Br,yn as Bt,wa as C,w as Ci,tr as Cn,ti as Cr,Qi as Ct,ka as D,E as Di,ar as Dn,ai as Dr,on as Dt,ya as E,S as Ei,ir as En,ii as Er,an as Et,pi as F,o as Fi,pr as Fn,Qt as Fr,mn as Ft,Ci as G,Cr as Gn,Ht as Gr,wn as Gt,bi as H,br as Hn,Vt as Hr,xn as Ht,mi as I,l as Ii,mr as In,qt as Ir,hn as It,Ei as J,Er as Jn,ft as Jr,En as Jt,wi as K,wr as Kn,It as Kr,Tn as Kt,hi as L,c as Li,hr as Ln,Xt as Lr,gn as Lt,na as M,O as Mi,ur as Mn,ui as Mr,dn as Mt,ia as N,b as Ni,dr as Nn,en as Nr,fn as Nt,xa as O,ye as Oi,or as On,oi as Or,sn as Ot,K as P,me as Pi,fr as Pn,$t as Pr,pn as Pt,Ai as Q,Ar as Qn,mt as Qr,An as Qt,gi as R,i as Ri,gr as Rn,Zt as Rr,_n as Rt,Da as S,xe as Si,er as Sn,ei as Sr,Zi as St,ba as T,C as Ti,rr as Tn,ri as Tr,G as Tt,xi as U,xr as Un,Bt as Ur,Sn as Ut,yi as V,yr as Vn,Yt as Vr,bn as Vt,Si as W,Sr as Wn,zt as Wr,Cn as Wt,Oi as X,Or as Xn,vt as Xr,On as Xt,Di as Y,Dr as Yn,yt as Yr,Dn as Yt,ki as Z,kr as Zn,jt as Zr,kn as Zt,Ca as _,Ce as _i,Yn as _n,Yr as _r,qi as _t,Ka as a,Oe as ai,Ln as an,Lr as ar,Li as at,va as b,we as bi,Qn as bn,Qr as br,Yi as bt,Na as c,Ie as ci,Bn as cn,Br as cr,Bi as ct,ja as d,Ae as di,Un as dn,Ur as dr,ta as dt,at as ei,Mn as en,Mr as er,Pi as et,ha as f,je as fi,Wn as fn,Wr as fr,ea as ft,ga as g,Me as gi,Jn as gn,Jr as gr,Ki as gt,da as h,Fe as hi,qn as hn,qr as hr,Gi as ht,qa as i,rt as ii,In as in,Ir as ir,Mi as it,q as j,ve as ji,lr as jn,li as jr,un as jt,Sa as k,x as ki,sr as kn,si as kr,cn as kt,Ga as l,Re as li,Vn as ln,Vr as lr,Vi as lt,ma as m,Pe as mi,Kn as mn,Kr as mr,Wi as mt,Ja as n,it as ni,Pn as nn,Pr as nr,Fi as nt,Ua as o,ke as oi,Rn as on,Rr as or,Ri as ot,_a as p,Le as pi,Gn as pn,Gr as pr,Ui as pt,Ti as q,Tr as qn,pt as qr,nn as qt,Wa as r,st as ri,Fn as rn,Fr as rr,Ii as rt,Va as s,A as si,zn as sn,zr as sr,zi as st,Ha as t,ot as ti,Nn as tn,Nr as tr,Ni as tt,Ma as u,j as ui,Hn as un,Hr as ur,Hi as ut,Oa as v,Te as vi,Xn as vn,Xr as vr,Ji as vt,Ea as w,D as wi,nr as wn,ni as wr,fi as wt,pa as x,be as xi,$n as xn,$r as xr,Xi as xt,Ta as y,Ee as yi,Zn as yn,Zr as yr,$i as yt,_i as z,a as zi,_r as zn,Jt as zr,vn as zt};
|