yuyeon 0.0.47-rc.13 → 0.0.47-rc.14

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/yuyeon.js CHANGED
@@ -2832,6 +2832,7 @@ const qi = {
2832
2832
  return W(() => {
2833
2833
  const h = i.isLink.value ? "a" : "button";
2834
2834
  return bt(d(h, {
2835
+ type: h === "a" ? void 0 : "button",
2835
2836
  class: [`${be}`, r == null ? void 0 : r.selectedClass.value, {
2836
2837
  ...s.value
2837
2838
  }],
@@ -2,7 +2,7 @@
2
2
  `),o]);else{const i=[`[Vue warn]: ${e}`,...t];o.length&&i.push(`
3
3
  `,...jl(o)),console.warn(...i)}Ua()}function Ll(){let e=Re[Re.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function jl(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
4
4
  `],...Hl(n))}),t}function Hl({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${Ir(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...Wl(e.props),i]:[o+i]}function Wl(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...ur(r,e[r]))}),n.length>3&&t.push(" ..."),t}function ur(e,t,n){return de(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:te(t)?(t=ur(e,H(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ee(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=H(t),n?t:[`${e}=`,t])}const dr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Fe(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){fr(i,t,n)}return o}function Nn(e,t,n,r){if(ee(e)){const i=Fe(e,t,n,r);return i&&Wi(i)&&i.catch(l=>{fr(l,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(Nn(e[i],t,n,r));return o}function fr(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const l=t.proxy,c=process.env.NODE_ENV!=="production"?dr[n]:n;for(;i;){const u=i.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}i=i.parent}const s=t.appContext.config.errorHandler;if(s){Fe(s,null,10,[e,l,c]);return}}Kl(e,n,o,r)}function Kl(e,t,n,r=!0){if(process.env.NODE_ENV!=="production"){const o=dr[t];if(n&&Rl(n),Q(`Unhandled error${o?` during execution of ${o}`:""}`),n&&Fl(),r)throw e;console.error(e)}else console.error(e)}let Ft=!1,Cn=!1;const fe=[];let Te=0;const Xe=[];let ge=null,De=0;const hr=Promise.resolve();let Vn=null;const zl=100;function Ul(e){const t=Vn||hr;return e?t.then(this?e.bind(this):e):t}function Gl(e){let t=Te+1,n=fe.length;for(;t<n;){const r=t+n>>>1;ut(fe[r])<e?t=r+1:n=r}return t}function En(e){(!fe.length||!fe.includes(e,Ft&&e.allowRecurse?Te+1:Te))&&(e.id==null?fe.push(e):fe.splice(Gl(e.id),0,e),mr())}function mr(){!Ft&&!Cn&&(Cn=!0,Vn=hr.then(yr))}function gr(e){K(e)?Xe.push(...e):(!ge||!ge.includes(e,e.allowRecurse?De+1:De))&&Xe.push(e),mr()}function ql(e){if(Xe.length){const t=[...new Set(Xe)];if(Xe.length=0,ge){ge.push(...t);return}for(ge=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),ge.sort((n,r)=>ut(n)-ut(r)),De=0;De<ge.length;De++)process.env.NODE_ENV!=="production"&&pr(e,ge[De])||ge[De]();ge=null,De=0}}const ut=e=>e.id==null?1/0:e.id,Xl=(e,t)=>{const n=ut(e)-ut(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function yr(e){Cn=!1,Ft=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),fe.sort(Xl);const t=process.env.NODE_ENV!=="production"?n=>pr(e,n):$a;try{for(Te=0;Te<fe.length;Te++){const n=fe[Te];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&t(n))continue;Fe(n,null,14)}}}finally{Te=0,fe.length=0,ql(e),Ft=!1,Vn=null,(fe.length||Xe.length)&&yr(e)}}function pr(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>zl){const r=t.ownerInstance,o=r&&Ar(r.type);return Q(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,n+1)}}const dt=new Set;process.env.NODE_ENV!=="production"&&(fn().__VUE_HMR_RUNTIME__={createRecord:On(Zl),rerender:On(Jl),reload:On(Ql)});const Lt=new Map;function Zl(e,t){return Lt.has(e)?!1:(Lt.set(e,{initialDef:ft(t),instances:new Set}),!0)}function ft(e){return Mr(e)?e.__vccOpts:e}function Jl(e,t){const n=Lt.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,ft(r.type).render=t),r.renderCache=[],r.update()}))}function Ql(e,t){const n=Lt.get(e);if(!n)return;t=ft(t),br(n.initialDef,t);const r=[...n.instances];for(const o of r){const i=ft(o.type);dt.has(i)||(i!==n.initialDef&&br(i,t),dt.add(i)),o.appContext.propsCache.delete(o.type),o.appContext.emitsCache.delete(o.type),o.appContext.optionsCache.delete(o.type),o.ceReload?(dt.add(i),o.ceReload(t.styles),dt.delete(i)):o.parent?En(o.parent.update):o.appContext.reload?o.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}gr(()=>{for(const o of r)dt.delete(ft(o.type))})}function br(e,t){ue(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function On(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let be=null,ec=null;function Md(){}const tc=e=>e.__isSuspense;function nc(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):gr(e)}const jt={};function ac(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=Ne){var c;process.env.NODE_ENV!=="production"&&!t&&(n!==void 0&&Q('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&Q('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const s=f=>{Q("Invalid watch source: ",f,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=Qi()===((c=Le)==null?void 0:c.scope)?Le:null;let d,y=!1,h=!1;if(te(e)?(d=()=>e.value,y=Bt(e)):Ge(e)?(d=()=>e,r=!0):K(e)?(h=!0,y=e.some(f=>Ge(f)||Bt(f)),d=()=>e.map(f=>{if(te(f))return f.value;if(Ge(f))return Ze(f);if(ee(f))return Fe(f,u,2);process.env.NODE_ENV!=="production"&&s(f)})):ee(e)?t?d=()=>Fe(e,u,2):d=()=>{if(!(u&&u.isUnmounted))return b&&b(),Nn(e,u,3,[_])}:(d=$a,process.env.NODE_ENV!=="production"&&s(e)),t&&r){const f=d;d=()=>Ze(f())}let b,_=f=>{b=w.onStop=()=>{Fe(f,u,4)}},N=h?new Array(e.length).fill(jt):jt;const g=()=>{if(w.active)if(t){const f=w.run();(r||y||(h?f.some((S,p)=>it(S,N[p])):it(f,N)))&&(b&&b(),Nn(t,u,3,[f,N===jt?void 0:h&&N[0]===jt?[]:N,_]),N=f)}else w.run()};g.allowRecurse=!!t;let m;o==="sync"?m=g:o==="post"?m=()=>Nr(g,u&&u.suspense):(g.pre=!0,u&&(g.id=u.uid),m=()=>En(g));const w=new nl(d,m);return process.env.NODE_ENV!=="production"&&(w.onTrack=i,w.onTrigger=l),t?n?g():N=w.run():o==="post"?Nr(w.run.bind(w),u&&u.suspense):w.run(),()=>{w.stop(),u&&u.scope&&Li(u.scope.effects,w)}}function rc(e,t,n){const r=this.proxy,o=de(e)?e.includes(".")?oc(r,e):()=>r[e]:e.bind(r,r);let i;ee(t)?i=t:(i=t.handler,n=t);const l=Le;kr(this);const c=ac(o,i.bind(r),n);return l?kr(l):Nc(),c}function oc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Ze(e,t){if(!le(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),te(e))Ze(e.value,t);else if(K(e))for(let n=0;n<e.length;n++)Ze(e[n],t);else if(Hi(e)||ze(e))e.forEach(n=>{Ze(n,t)});else if(zi(e))for(const n in e)Ze(e[n],t);return e}const ic=Symbol.for("v-ndc"),Tn=e=>e?Cc(e)?Vc(e)||e.proxy:Tn(e.parent):null,ht=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Yt(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Yt(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Yt(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Yt(e.refs):e.refs,$parent:e=>Tn(e.parent),$root:e=>Tn(e.root),$emit:e=>e.emit,$options:e=>sc(e),$forceUpdate:e=>e.f||(e.f=()=>En(e.update)),$nextTick:e=>e.n||(e.n=Ul.bind(e.proxy)),$watch:e=>rc.bind(e)}),lc=e=>e==="_"||e==="$",Dn=(e,t)=>e!==Ne&&!e.__isScriptSetup&&q(e,t),cc={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:l,type:c,appContext:s}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let u;if(t[0]!=="$"){const b=l[t];if(b!==void 0)switch(b){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Dn(r,t))return l[t]=1,r[t];if(o!==Ne&&q(o,t))return l[t]=2,o[t];if((u=e.propsOptions[0])&&q(u,t))return l[t]=3,i[t];if(n!==Ne&&q(n,t))return l[t]=4,n[t];l[t]=0}}const d=ht[t];let y,h;if(d)return t==="$attrs"?(oe(e,"get",t),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&oe(e,"get",t),d(e);if((y=c.__cssModules)&&(y=y[t]))return y;if(n!==Ne&&q(n,t))return l[t]=4,n[t];if(h=s.config.globalProperties,q(h,t))return h[t];process.env.NODE_ENV!=="production"&&be&&(!de(t)||t.indexOf("__v")!==0)&&(o!==Ne&&lc(t[0])&&q(o,t)?Q(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===be&&Q(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Dn(o,t)?(o[t]=n,!0):process.env.NODE_ENV!=="production"&&o.__isScriptSetup&&q(o,t)?(Q(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==Ne&&q(r,t)?(r[t]=n,!0):q(e.props,t)?(process.env.NODE_ENV!=="production"&&Q(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&Q(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},l){let c;return!!n[l]||e!==Ne&&q(e,l)||Dn(t,l)||(c=i[0])&&q(c,l)||q(r,l)||q(ht,l)||q(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(cc.ownKeys=e=>(Q("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function vr(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function sc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,c=i.get(t);let s;return c?s=c:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(u=>Ht(s,u,l,!0)),Ht(s,t,l)),le(t)&&i.set(t,s),s}function Ht(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ht(e,i,n,!0),o&&o.forEach(l=>Ht(e,l,n,!0));for(const l in t)if(r&&l==="expose")process.env.NODE_ENV!=="production"&&Q('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const c=uc[l]||n&&n[l];e[l]=c?c(e[l],t[l]):t[l]}return e}const uc={data:wr,props:_r,emits:_r,methods:mt,computed:mt,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:mt,directives:mt,watch:fc,provide:wr,inject:dc};function wr(e,t){return t?e?function(){return ue(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function dc(e,t){return mt(Sr(e),Sr(t))}function Sr(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ae(e,t){return e?[...new Set([].concat(e,t))]:t}function mt(e,t){return e?ue(Object.create(null),e,t):t}function _r(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:ue(Object.create(null),vr(e),vr(t??{})):t}function fc(e,t){if(!e)return t;if(!t)return e;const n=ue(Object.create(null),e);for(const r in t)n[r]=ae(e[r],t[r]);return n}let xr=null;function hc(e,t,n=!1){const r=Le||be;if(r||xr){const o=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:xr._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&ee(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&Q(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&Q("inject() can only be used inside setup() or functional components.")}const Nr=nc,mc=e=>e.__isTeleport,Cr=Symbol.for("v-fgt"),gc=Symbol.for("v-txt"),yc=Symbol.for("v-cmt");let Je=null;function pc(e){return e?e.__v_isVNode===!0:!1}const bc=(...e)=>Or(...e),Vr="__vInternal",Er=({key:e})=>e??null,Wt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||te(e)||ee(e)?{i:be,r:e,k:t,f:!!n}:e:null);function vc(e,t=null,n=null,r=0,o=null,i=e===Cr?0:1,l=!1,c=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Er(t),ref:t&&Wt(t),scopeId:ec,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:be};return c?(kn(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=de(n)?8:16),process.env.NODE_ENV!=="production"&&s.key!==s.key&&Q("VNode created with invalid key (NaN). VNode type:",s.type),!l&&Je&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Je.push(s),s}const wc=process.env.NODE_ENV!=="production"?bc:Or;function Or(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===ic)&&(process.env.NODE_ENV!=="production"&&!e&&Q(`Invalid vnode type when creating vnode: ${e}.`),e=yc),pc(e)){const c=Kt(e,t,!0);return n&&kn(c,n),!i&&Je&&(c.shapeFlag&6?Je[Je.indexOf(e)]=c:Je.push(c)),c.patchFlag|=-2,c}if(Mr(e)&&(e=e.__vccOpts),t){t=Sc(t);let{class:c,style:s}=t;c&&!de(c)&&(t.class=mn(c)),le(s)&&(_n(s)&&!K(s)&&(s=ue({},s)),t.style=hn(s))}const l=de(e)?1:tc(e)?128:mc(e)?64:le(e)?4:ee(e)?2:0;return process.env.NODE_ENV!=="production"&&l&4&&_n(e)&&(e=H(e),Q("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
5
- Component that was made reactive: `,e)),vc(e,t,n,r,o,l,i,!0)}function Sc(e){return e?_n(e)||Vr in e?ue({},e):e:null}function Kt(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:l}=e,c=t?xc(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Er(c),ref:t&&t.ref?n&&o?K(o)?o.concat(Wt(t)):[o,Wt(t)]:Wt(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&i===-1&&K(l)?l.map(Tr):l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Cr?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Tr(e){const t=Kt(e);return K(e.children)&&(t.children=e.children.map(Tr)),t}function _c(e=" ",t=0){return wc(gc,null,e,t)}function kn(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),kn(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Vr in t)?t._ctx=be:o===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:be},n=32):(t=String(t),r&64?(n=16,t=[_c(t)]):n=8);e.children=t,e.shapeFlag|=n}function xc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=mn([t.class,r.class]));else if(o==="style")t.style=hn([t.style,r.style]);else if(Fi(o)){const i=t[o],l=r[o];l&&i!==l&&!(K(i)&&i.includes(l))&&(t[o]=i?[].concat(i,l):l)}else o!==""&&(t[o]=r[o])}return t}let Le=null,An,Qe,Dr="__VUE_INSTANCE_SETTERS__";(Qe=fn()[Dr])||(Qe=fn()[Dr]=[]),Qe.push(e=>Le=e),An=e=>{Qe.length>1?Qe.forEach(t=>t(e)):Qe[0](e)};const kr=e=>{An(e),e.scope.on()},Nc=()=>{Le&&Le.scope.off(),An(null)};function Cc(e){return e.vnode.shapeFlag&4}function Vc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Pl(Ol(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ht)return ht[n](e)},has(t,n){return n in t||n in ht}}))}const Ec=/(?:^|[-_])(\w)/g,Oc=e=>e.replace(Ec,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ar(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Ir(e,t,n=!1){let r=Ar(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e&&e.parent){const o=i=>{for(const l in i)if(i[l]===t)return l};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?Oc(r):n?"App":"Anonymous"}function Mr(e){return ee(e)&&"__vccOpts"in e}function gt(){const e=a.getCurrentInstance();return e==null?void 0:e.uid}function J(e,t){return Object.keys(t).reduce((n,r)=>(e&&r in e&&(n[r]=e[r]),n),{})}function je(e){const t={};return typeof e=="string"?t[e]=!0:Array.isArray(e)?e.reduce((n,r)=>(n[r]=!0,n),t):typeof e=="object"&&Object.keys(e).reduce((n,r)=>(n[r]=!!e[r],n),t),t}function Pr(e){if(e&&"$el"in e){const t=e.$el;return t.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}function zt(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>zt(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>zt(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return zt(e,t.component.subTree).flat(1)}return[]}function Y(e,t){return n=>Object.keys(e).reduce((r,o)=>{const i=e[o],c=typeof i=="object"&&i!=null&&!Array.isArray(i)?i:{type:i};return n&&o in n?r[o]={...c,default:n[o]}:r[o]=c,t&&!r[o].source&&(r[o].source=t),r},{})}function $r(e,t){const n=`on${Ba(t)}`;return!!(e[n]||e[`${n}Once`]||e[`${n}Capture`]||e[`${n}OnceCapture`]||e[`${n}CaptureOnce`])}function In(e,t="camel"){let n="";for(let r=0;r<e.length;r+=1){const o=e[r],i=o.charCodeAt(0);i>=65&&i<=90?n+=`${r===0&&t==="camel"?"":"-"}${o.toLowerCase()}`:n+=o}return n}function Yr(e){let t="",n=0;for(;n<e.length;){const r=e[n];r==="-"?(n+=1,t+=e[n].toUpperCase()):t+=r,n+=1}return t}function Mn(e,t){let n;function r(){n=a.effectScope(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}a.watch(e,o=>{o&&!n?r():o||(n==null||n.stop(),n=void 0)},{immediate:!0}),a.onScopeDispose(()=>{n==null||n.stop()})}function W(e,t="modelValue",n,r=i=>i,o=i=>i){const i=a.getCurrentInstance(),l=In(t),c=l===t?Yr(t):t,s=a.ref(e[c]!==void 0?e[c]:n);function u(){return e[c]}const d=a.computed(()=>{u();const h=i.vnode.props;return(We(h,l)||We(h,c))&&(We(h,`onUpdate:${l}`)||We(h,`onUpdate:${c}`))});Mn(()=>!d.value,()=>{a.watch(()=>u(),h=>{s.value=h})});const y=a.computed({get(){return r(d.value?u():s.value)},set(h){const b=o(h),_=a.toRaw(d.value?u():s.value);_===b||r(_)===h||(s.value=b,i==null||i.emit(`update:${c}`,b))}});return Object.defineProperty(y,"rxValue",{get:()=>d.value?u():s.value}),y}function Pn(e,t,n){const r=W(e,t,e[t]??n.value);return a.watch(n,o=>{e[t]==null&&(r.value=o)}),r}const Tc=Y({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean,returnItem:Boolean},"choice"),Dc=Y({value:null,disabled:Boolean,selectedClass:String},"choice-item");function kc(e,t,n=!0){const r=a.getCurrentInstance();if(!r)throw new Error('"useChoiceItem" must be used inside a component setup function');const o=gt();a.provide(Symbol.for(`${t.description}:id`),o);const i=a.inject(t,null);if(!i){if(!n)return i;throw new Error("Not found provider")}const l=a.toRef(e,"value"),c=a.computed(()=>!!(i.disabled.value||e.disabled));i.register({id:o,value:l,disabled:c},r),a.onBeforeUnmount(()=>{i.unregister(o)});const s=a.computed(()=>i.isSelected(o)),u=a.computed(()=>s.value&&[i.selectedClass.value,e.selectedClass]);return a.watch(s,d=>{r.emit("choice:selected",{value:d})}),{id:o,isSelected:s,toggle:()=>i.select(o,!s.value),select:d=>i.select(o,d),selectedClass:u,value:l,disabled:c,provider:i}}function Ac(e,t){let n=!1;const r=a.reactive([]),o=W(e,"modelValue",[],h=>h==null?[]:Br(r,$e(h)),h=>{const b=Mc(r,h);return e.multiple?b:b[0]}),i=a.getCurrentInstance();function l(h,b){const _=h,N=Symbol.for(`${t.description}:id`),m=zt(N,i==null?void 0:i.vnode).indexOf(b);m>-1?r.splice(m,0,_):r.push(_)}function c(h){if(n)return;s();const b=r.findIndex(_=>_.id===h);r.splice(b,1)}function s(){const h=r.find(b=>!b.disabled);h&&e.mandatory==="force"&&!o.value.length&&(o.value=[h.id])}a.onMounted(()=>{s()}),a.onBeforeUnmount(()=>{n=!0});function u(h,b){const _=r.find(N=>N.id===h);if(!(b&&(_!=null&&_.disabled)))if(e.multiple){const N=o.value.slice(),g=N.findIndex(w=>w===h),m=~g;if(b=b??!m,m&&e.mandatory&&N.length<=1||!m&&e.max!=null&&N.length+1>e.max)return;g<0&&b?N.push(h):g>=0&&!b&&N.splice(g,1),o.value=N}else{const N=o.value.includes(h);if(e.mandatory&&N)return;o.value=b??!N?[h]:[]}}function d(h){if(e.multiple,o.value.length){const b=o.value[0],_=r.findIndex(m=>m.id===b);let N=(_+h)%r.length,g=r[N];for(;g.disabled&&N!==_;)N=(N+h)%r.length,g=r[N];if(g.disabled)return;o.value=[r[N].id]}else{const b=r.find(_=>!_.disabled);b&&(o.value=[b.id])}}const y={register:l,unregister:c,selected:o,select:u,disabled:a.toRef(e,"disabled"),prev:()=>d(r.length-1),next:()=>d(1),isSelected:h=>o.value.includes(h),selectedClass:a.computed(()=>e.selectedClass),items:a.computed(()=>r),getItemIndex:h=>Ic(r,h)};return a.provide(t,y),y}function Ic(e,t){const n=Br(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function Br(e,t){const n=[];return t.forEach(r=>{const o=e.find(l=>me(r,l.value)),i=e[r];(o==null?void 0:o.value)!=null?n.push(o.id):i!=null&&n.push(i.id)}),n}function Mc(e,t){const n=[];return t.forEach(r=>{const o=e.findIndex(i=>i.id===r);if(~o){const i=e[o];n.push(i.value!=null?i.value:o)}}),n}function Pc(e,t){a.watch(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&a.nextTick(()=>{t(!0)})},{immediate:!0})}function F(e){const t=a.getCurrentInstance();t&&(t.render=e)}function $c(e,t=0,n={leading:!1,trailing:!0}){let r,o,i=0,l,c,s,u=0,d=!1,y=!1,h=!0;if(typeof e!="function")throw new TypeError("NOT Function");t=+t||0,Yi(n)&&(d=!!n.leading,y="maxWait"in n,i=y?Math.max(+((n==null?void 0:n.maxWait)||0),t):i,h="trailing"in n?!!n.trailing:h);function b(p){const x=r,T=o;return r=o=void 0,u=p,l=e.apply(T,x),l}function _(p){return u=p,c=window.setTimeout(m,t),d?b(p):l}function N(p){var x=p-(s??0),T=p-(u??0),B=t-x;return y?Math.min(B,(i??0)-T):B}function g(p){var x=p-(s??0),T=p-(u??0);return s===void 0||x>=t||x<0||y&&T>=(i??0)}function m(){const p=Date.now();if(g(p))return w(p);c=window.setTimeout(m,N(p))}function w(p){return c=void 0,h&&r?b(p):(r=o=void 0,l)}function v(){c!==void 0&&clearTimeout(c),u=0,r=s=o=c=void 0}function f(){return c===void 0?l:w(Date.now())}function S(){const p=Date.now(),x=g(p);if(r=arguments,o=this,s=p,x){if(c===void 0)return _(s);if(y)return clearTimeout(c),c=window.setTimeout(m,t),b(s)}return c===void 0&&(c=window.setTimeout(m,t)),l}return S.cancel=v,S.flush=f,S}function $n(e){const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}function Yc(e,t,n){if(!e)return!1;const r=$n(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const o=n??[];return o.push(t),!o.some(i=>i==null?void 0:i.contains(e.target))}function Bc(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let o,i,l,c;if(r.startsWith("matrix3d(")){const b=r.slice(9,-1).split(/, /);o=+b[0],i=+b[5],l=+b[12],c=+b[13]}else if(r.startsWith("matrix(")){const b=r.slice(7,-1).split(/, /);o=+b[0],i=+b[3],l=+b[4],c=+b[5]}else return t;const s=n.transformOrigin,u=t.x-l-(1-o)*parseFloat(s),d=t.y-c-(1-i)*parseFloat(s.slice(s.indexOf(" ")+1)),y=o?t.width/o:e.offsetWidth,h=i?t.height/i:e.offsetHeight;return{x:u,y:d,width:y,height:h,top:d,right:u+y,bottom:d+h,left:u}}else return t}function Yn(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Rr(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}function j(e,t="px"){if(e==null||e==="")return;let n=Number(e);return typeof e=="string"&&isNaN(n)?e:isFinite(n)?`${n}${t}`:void 0}class Ut{constructor({x:t,y:n,width:r,height:o}){He(this,"x");He(this,"y");He(this,"width");He(this,"height");this.x=t??0,this.y=n??0,this.width=r??0,this.height=o??0}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Fr(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}const Bn=(e,t)=>e.includes(t),Lr=["top","bottom"],Rc=["start","end","left","right"];function jr(e,t){let[n,r]=e.split(" ");return r||(r=Bn(Lr,n)?"start":Bn(Rc,n)?"top":"center"),{side:Hr(n,t),align:Hr(r,t)}}function Hr(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function Rn(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Fn(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Wr(e){return{side:e.align,align:e.side}}function Kr(e){return Bn(Lr,e.side)?"y":"x"}function Fc(e,t,n){const r=[];if(t&&e&&!t.contains(e))return r;for(;e&&(Lc(e,n)&&r.push(e),e!==t);)e=e.parentElement;return r}function Lc(e,t){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return t?n.overflowX==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth:n.overflowY==="scroll"||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight}function jc(e){const t=a.reactive({}),n=a.computed(e);return a.watchEffect(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),a.toRefs(t)}const Hc=/rgb(a?)\((?<v>.*)\)/,Wc=/#([0-9a-fA-F]{3,6,8})/;function Ln(e){if(e&&e[0]==="#"){const t=e.substring(1,e.length),n=t.length,r=[];if(n===3||n===6){const o=n===6?2:1;for(let i=0;i<3;i+=1){const l=t.substring(i*o,i*o+o);r.push(Number.parseInt(l,16))}return r}}}function jn(e){return Hc.test(e)||Wc.test(e)}const Hn={AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0},Kc=1e3*60*60*24,zc=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/,Gt=new Date(1970,0,4);class L{static date(t){if(t==null)return new Date;if(t instanceof Date)return t;let n;if(typeof t=="string"){if(zc.test(t))return L.parseLocalDate(t);if(n=Date.parse(t),!isNaN(n))return new Date(n)}return null}static format(t,n,r,o){const i=L.date(t)??new Date,l=o==null?void 0:o[n];if(typeof l=="function")return l(i,n,r);let c={};switch(n){case"fullDateWithWeekday":c={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"normalDateWithWeekday":c={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":c={day:"2-digit",month:"2-digit",year:"numeric"};break;case"monthAndDate":c={month:"long",day:"numeric"};break;case"monthAndYear":c={month:"long",year:"numeric"};break;case"year":c={year:"numeric"};break;case"month":c={month:"long"};break;case"monthShort":c={month:"short"};break;case"dayOfMonth":c={day:"numeric"};break;case"shortDate":c={year:"2-digit",month:"numeric",day:"numeric"};break;default:c=l??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(r,c).format(i)}static parseLocalDate(t){const n=t.split("-").map(Number);return new Date(n[0],n[1]-1,n[2])}static parseISO(t){const[n,r,o]=t.split("-").map(Number);return new Date(n,r-1,o)}static toISO(t,n){const r=t.toJsDate(n),o=r.getFullYear(),i=r.getMonth()+1<10?`0${r.getMonth()+1}`:`${r.getMonth()+1}`,l=r.getDate()<10?`0${r.getDate()}`:`${r.getDate()}`;return`${o}-${i}-${l}`}static getWeekArray(t,n){const r=[];let o=[];const i=L.startOfMonth(t),l=L.endOfMonth(t),c=(i.getDay()-Hn[n.slice(-2).toUpperCase()]+7)%7,s=(l.getDay()-Hn[n.slice(-2).toUpperCase()]+7)%7;for(let u=0;u<c;u++){const d=new Date(i);d.setDate(d.getDate()-(c-u)),o.push(d)}for(let u=1;u<=l.getDate();u++)o.push(new Date(t.getFullYear(),t.getMonth(),u)),o.length===7&&(r.push(o),o=[]);for(let u=1;u<7-s;u++){const d=new Date(l);d.setDate(d.getDate()+u),o.push(d)}return o.length>0&&r.push(o),r}static startOfMonth(t){return new Date(t.getFullYear(),t.getMonth(),1)}static endOfMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}static startOfDay(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}static startOfYear(t){return new Date(t.getFullYear(),0,1)}static endOfDay(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999)}static endOfYear(t){return new Date(t.getFullYear(),11,31)}static getYear(t){return t.getFullYear()}static getMonth(t){return t.getMonth()}static getDay(t){return t.getDate()}static getNextMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}static getWeekdays(t){const n=Hn[t.slice(-2).toUpperCase()]??0;return[...Array(7).keys()].map(r=>{const o=new Date(Gt);return o.setDate(Gt.getDate()+n+r),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(o)})}static getMeridians(t){const n=new Date(Gt).setHours(11),r=new Date(Gt).setHours(13),o=Intl.DateTimeFormat(t,{minute:"numeric",hour:"numeric",hour12:!0});return[o.format(n).replace(/\d+:\d+/,"").trim(),o.format(r).replace(/\d+:\d+/,"").trim()]}static isAfter(t,n){return t.getTime()>n.getTime()}static isBefore(t,n){return t.getTime()<n.getTime()}static isEqual(t,n){return t.getTime()===n.getTime()}static isSameDay(t,n){return t.getDate()===n.getDate()&&t.getMonth()===n.getMonth()&&t.getFullYear()===n.getFullYear()}static isSameMonth(t,n){return!!(t.getMonth()===n.getMonth()&&t.getFullYear()&&n.getFullYear())}static isValid(t){const n=new Date(t);return n instanceof Date&&!isNaN(n.getTime())}static isWithinRange(t,n){return L.isAfter(t,n[0])&&L.isBefore(t,n[1])}static addDays(t,n){const r=new Date(t);return r.setDate(r.getDate()+n),r}static addMonths(t,n){const r=new Date(t);return r.setMonth(r.getMonth()+n),r}static getDiff(t,n,r){const o=new Date(t),i=new Date(n);return r==="month"?o.getMonth()-i.getMonth()+(o.getFullYear()-i.getFullYear())*12:Math.floor(o.getTime()-i.getTime())/Kc}static setMonth(t,n){const r=new Date(t);return r.setMonth(n),r}static setYear(t,n){const r=new Date(t);return r.setFullYear(n),r}static getHour(t){return t.getHours()}static setHour(t,n){const r=new Date(t);return r.setHours(n),r}static getMinute(t){return t.getMinutes()}static setMinute(t,n){const r=new Date(t);return r.setMinutes(n),r}}class Uc{constructor(t){He(this,"locale","ko-kr");He(this,"formats");this.locale=t.locale,this.formats=t.formats}getWeekArray(t){return L.getWeekArray(t,this.locale)}startOfMonth(t){return L.startOfMonth(t)}endOfMonth(t){return L.endOfMonth(t)}addDays(t,n){return L.addDays(t,n)}addMonths(t,n){return L.addMonths(t,n)}date(t){return L.date(t)}endOfDay(t){return L.endOfDay(t)}endOfYear(t){return L.endOfYear(t)}format(t,n){return L.format(t,n,this.locale,this.formats)}getDiff(t,n,r){return L.getDiff(t,n,r)}getYear(t){return L.getYear(t)}getMonth(t){return L.getMonth(t)}getDay(t){return L.getDay(t)}getNextMonth(t){return L.getNextMonth(t)}getWeekdays(){return L.getWeekdays(this.locale)}isAfter(t,n){return L.isAfter(t,n)}isBefore(t,n){return L.isBefore(t,n)}isEqual(t,n){return L.isEqual(t,n)}isSameDay(t,n){return L.isSameDay(t,n)}isSameMonth(t,n){return L.isSameMonth(t,n)}isValid(t){return L.isValid(t)}isWithinRange(t,n){return L.isWithinRange(t,n)}parseISO(t){return L.parseISO(t)}setMonth(t,n){return L.setMonth(t,n)}setYear(t,n){return L.setYear(t,n)}startOfDay(t){return L.startOfDay(t)}startOfYear(t){return L.startOfYear(t)}toISO(t){return L.toISO(this,t)}toJsDate(t){return t}getHour(t){return L.getHour(t)}getMinute(t){return L.getMinute(t)}setHour(t,n){return L.setHour(t,n)}setMinute(t,n){return L.setMinute(t,n)}}const Gc=Y({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"VueRouter");function qc(e,t){const n=a.resolveDynamicComponent("RouterLink"),r=a.computed(()=>!!(e.href||e.to)),o=a.computed(()=>(r==null?void 0:r.value)||$r(t,"click")||$r(e,"click"));if(typeof n=="string")return{isLink:r,isClickable:o,href:a.toRef(e,"href")};const i=e.to?n.useLink(e):void 0;return{isLink:r,isClickable:o,route:i==null?void 0:i.route,navigate:i==null?void 0:i.navigate,isActive:i&&a.computed(()=>{var l,c;return e.exact?(l=i.isExactActive)==null?void 0:l.value:(c=i.isActive)==null?void 0:c.value}),href:a.computed(()=>e.to?i==null?void 0:i.route.value.href:e.href)}}const zr="y-plate-wave__animation";function Ur(e){if(!e)return;const t=document.createElement("span");t.className=zr,e.appendChild(t),t.dataset.activated=String(performance.now())}function Wn(e){if(!e)return;const t=e.getElementsByClassName(zr);if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),o=Math.max(250-r,0);setTimeout(()=>{n&&e.removeChild(n)},o+300)}let Kn=!1;function Gr(e){Ur(e.currentTarget)}function yt(e){Wn(e.currentTarget)}function Xc(e){}function qr(e){!Kn&&(e.key==="Enter"||e.key==="Space")&&(Kn=!0,Ur(e.currentTarget))}function Xr(e){Kn=!1,Wn(e.currentTarget)}function Zr(e){e.removeEventListener("mousedown",Gr),e.removeEventListener("mouseup",yt),e.removeEventListener("mouseleave",yt),e.removeEventListener("keydown",qr),e.removeEventListener("keyup",Xr)}function Jr(e,t,n=!1){const{value:r,modifiers:o}=t,i=!!r;if(i||Wn(e),i&&n){if(o.stop){e.addEventListener("mousedown",Xc);return}e.addEventListener("mousedown",Gr),e.addEventListener("mouseup",yt),e.addEventListener("mouseleave",yt),e.addEventListener("keydown",qr),e.addEventListener("keyup",Xr),e.addEventListener("blur",yt)}else!i&&!n&&Zr(e)}const Qr={mounted(e,t){Jr(e,t,!0)},updated(e,t){t.value!==t.oldValue&&Jr(e,t)},unmount(e){Zr(e)}},eo=a.defineComponent({name:"YSpinnerRing",render(){return a.createVNode("svg",{class:"y-spinner-ring",width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[a.createVNode("circle",{class:"y-spinner-ring__circle",cx:"24",cy:"24",r:"18","stroke-width":"4","stroke-dasharray":"113.097","stroke-dashoffset":"113.097"},null)])}}),Zc=Symbol.for("yuyeon.y-toggle-button"),he="y-button",zn=Y({loading:Boolean,active:{type:Boolean,default:void 0},injectSymbol:{type:null,default:Zc},variation:{type:String},small:Boolean,icon:Boolean,outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},filled:{type:Boolean,default:!1},color:{type:String},noWave:{type:Boolean,default:!1},...Gc(),...Dc()},"YButton"),X=a.defineComponent({name:"YButton",directives:{PlateWave:Qr},props:zn(),emits:{click:e=>!0,"choice:selected":e=>!0},setup(e,{attrs:t,slots:n,emit:r}){const o=kc(e,e.injectSymbol,!1),i=qc(e,t);Pc(i,o==null?void 0:o.select);const l=a.computed(()=>{var h;return e.active!==void 0?e.active:i.isLink.value?(h=i.isActive)==null?void 0:h.value:o==null?void 0:o.isSelected.value}),c=a.computed(()=>{const{variation:h}=e;return typeof h=="string"?h.split(",").map(b=>b.trim()):[]}),s=a.computed(()=>{const{outlined:h,rounded:b,filled:_,small:N,icon:g}=e;return{[`${he}--outlined`]:c.value.includes("outlined")||h,[`${he}--rounded`]:c.value.includes("rounded")||b,[`${he}--filled`]:c.value.includes("filled")||_,[`${he}--text`]:c.value.includes("text"),[`${he}--small`]:c.value.includes("small")||N,[`${he}--icon`]:c.value.includes("icon")||g,[`${he}--color`]:e.color,[`${he}--loading`]:e.loading,[`${he}--disabled`]:e.disabled,[`${he}--active`]:l.value}}),u=a.computed(()=>{let{color:h}=e,b;return h&&!jn(h)&&(h=`var(--y-theme-${h})`,b=`var(--y-theme-on-${e.color})`),{"--y-button__color":h,"--y-button__text-color":b}}),d=a.computed(()=>(o==null?void 0:o.disabled.value)||e.disabled);function y(h){var b;d.value||e.loading||i.isLink.value&&(h.metaKey||h.altKey||h.ctrlKey||h.shiftKey||h.button!==0||t.target==="_blank")||(r("click",h),(b=i.navigate)==null||b.call(i,h),o==null||o.toggle())}return F(()=>{const h=i.isLink.value?"a":"button";return a.withDirectives(a.createVNode(h,{class:[`${he}`,o==null?void 0:o.selectedClass.value,{...s.value}],href:e.disabled?void 0:i.href.value,style:u.value,onClick:y,disabled:e.disabled?!0:void 0},{default:()=>{var b,_;return[a.createVNode("span",{class:["y-button__content"]},[e.loading&&a.createVNode(eo,a.mergeProps({width:"24",height:"24"}),null),(b=n.default)==null?void 0:b.call(n)]),(_=n.append)==null?void 0:_.call(n)]}}),[[a.resolveDirective("plate-wave"),!e.noWave&&!e.loading]])}),{link:i}}}),Jc=Y({focused:Boolean,"onUpdate:focused":Function},"focus");function Un(e,t){const n=W(e,"focused");function r(){n.value=!0}function o(){n.value=!1}const i=a.computed(()=>({[`${t}--focused`]:n.value}));return{focused:n,whenFocus:r,whenBlur:o,focusedClasses:i}}const to=(e,t,n)=>{function r(o){e.classList.forEach(i=>{i.startsWith("y-theme--")&&i!==o&&e.classList.remove(i)}),e.classList.add(o)}a.watchEffect(()=>{var c,s,u,d,y;const o=((s=(c=t.instance)==null?void 0:c.$yuyeon)==null?void 0:s.theme)??((y=(d=(u=n==null?void 0:n.ctx)==null?void 0:u.root.appContext.config.globalProperties)==null?void 0:d.$yuyeon)==null?void 0:y.theme),i=t.value??a.unref(o.currentThemeKey)??"";if(!i)return;const l=`y-theme--${i}`;r(l)},{flush:"post"})};/** @preserve
5
+ Component that was made reactive: `,e)),vc(e,t,n,r,o,l,i,!0)}function Sc(e){return e?_n(e)||Vr in e?ue({},e):e:null}function Kt(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:l}=e,c=t?xc(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Er(c),ref:t&&t.ref?n&&o?K(o)?o.concat(Wt(t)):[o,Wt(t)]:Wt(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&i===-1&&K(l)?l.map(Tr):l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Cr?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Tr(e){const t=Kt(e);return K(e.children)&&(t.children=e.children.map(Tr)),t}function _c(e=" ",t=0){return wc(gc,null,e,t)}function kn(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),kn(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Vr in t)?t._ctx=be:o===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:be},n=32):(t=String(t),r&64?(n=16,t=[_c(t)]):n=8);e.children=t,e.shapeFlag|=n}function xc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=mn([t.class,r.class]));else if(o==="style")t.style=hn([t.style,r.style]);else if(Fi(o)){const i=t[o],l=r[o];l&&i!==l&&!(K(i)&&i.includes(l))&&(t[o]=i?[].concat(i,l):l)}else o!==""&&(t[o]=r[o])}return t}let Le=null,An,Qe,Dr="__VUE_INSTANCE_SETTERS__";(Qe=fn()[Dr])||(Qe=fn()[Dr]=[]),Qe.push(e=>Le=e),An=e=>{Qe.length>1?Qe.forEach(t=>t(e)):Qe[0](e)};const kr=e=>{An(e),e.scope.on()},Nc=()=>{Le&&Le.scope.off(),An(null)};function Cc(e){return e.vnode.shapeFlag&4}function Vc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Pl(Ol(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ht)return ht[n](e)},has(t,n){return n in t||n in ht}}))}const Ec=/(?:^|[-_])(\w)/g,Oc=e=>e.replace(Ec,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ar(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Ir(e,t,n=!1){let r=Ar(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e&&e.parent){const o=i=>{for(const l in i)if(i[l]===t)return l};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?Oc(r):n?"App":"Anonymous"}function Mr(e){return ee(e)&&"__vccOpts"in e}function gt(){const e=a.getCurrentInstance();return e==null?void 0:e.uid}function J(e,t){return Object.keys(t).reduce((n,r)=>(e&&r in e&&(n[r]=e[r]),n),{})}function je(e){const t={};return typeof e=="string"?t[e]=!0:Array.isArray(e)?e.reduce((n,r)=>(n[r]=!0,n),t):typeof e=="object"&&Object.keys(e).reduce((n,r)=>(n[r]=!!e[r],n),t),t}function Pr(e){if(e&&"$el"in e){const t=e.$el;return t.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}function zt(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>zt(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>zt(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return zt(e,t.component.subTree).flat(1)}return[]}function Y(e,t){return n=>Object.keys(e).reduce((r,o)=>{const i=e[o],c=typeof i=="object"&&i!=null&&!Array.isArray(i)?i:{type:i};return n&&o in n?r[o]={...c,default:n[o]}:r[o]=c,t&&!r[o].source&&(r[o].source=t),r},{})}function $r(e,t){const n=`on${Ba(t)}`;return!!(e[n]||e[`${n}Once`]||e[`${n}Capture`]||e[`${n}OnceCapture`]||e[`${n}CaptureOnce`])}function In(e,t="camel"){let n="";for(let r=0;r<e.length;r+=1){const o=e[r],i=o.charCodeAt(0);i>=65&&i<=90?n+=`${r===0&&t==="camel"?"":"-"}${o.toLowerCase()}`:n+=o}return n}function Yr(e){let t="",n=0;for(;n<e.length;){const r=e[n];r==="-"?(n+=1,t+=e[n].toUpperCase()):t+=r,n+=1}return t}function Mn(e,t){let n;function r(){n=a.effectScope(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}a.watch(e,o=>{o&&!n?r():o||(n==null||n.stop(),n=void 0)},{immediate:!0}),a.onScopeDispose(()=>{n==null||n.stop()})}function W(e,t="modelValue",n,r=i=>i,o=i=>i){const i=a.getCurrentInstance(),l=In(t),c=l===t?Yr(t):t,s=a.ref(e[c]!==void 0?e[c]:n);function u(){return e[c]}const d=a.computed(()=>{u();const h=i.vnode.props;return(We(h,l)||We(h,c))&&(We(h,`onUpdate:${l}`)||We(h,`onUpdate:${c}`))});Mn(()=>!d.value,()=>{a.watch(()=>u(),h=>{s.value=h})});const y=a.computed({get(){return r(d.value?u():s.value)},set(h){const b=o(h),_=a.toRaw(d.value?u():s.value);_===b||r(_)===h||(s.value=b,i==null||i.emit(`update:${c}`,b))}});return Object.defineProperty(y,"rxValue",{get:()=>d.value?u():s.value}),y}function Pn(e,t,n){const r=W(e,t,e[t]??n.value);return a.watch(n,o=>{e[t]==null&&(r.value=o)}),r}const Tc=Y({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean,returnItem:Boolean},"choice"),Dc=Y({value:null,disabled:Boolean,selectedClass:String},"choice-item");function kc(e,t,n=!0){const r=a.getCurrentInstance();if(!r)throw new Error('"useChoiceItem" must be used inside a component setup function');const o=gt();a.provide(Symbol.for(`${t.description}:id`),o);const i=a.inject(t,null);if(!i){if(!n)return i;throw new Error("Not found provider")}const l=a.toRef(e,"value"),c=a.computed(()=>!!(i.disabled.value||e.disabled));i.register({id:o,value:l,disabled:c},r),a.onBeforeUnmount(()=>{i.unregister(o)});const s=a.computed(()=>i.isSelected(o)),u=a.computed(()=>s.value&&[i.selectedClass.value,e.selectedClass]);return a.watch(s,d=>{r.emit("choice:selected",{value:d})}),{id:o,isSelected:s,toggle:()=>i.select(o,!s.value),select:d=>i.select(o,d),selectedClass:u,value:l,disabled:c,provider:i}}function Ac(e,t){let n=!1;const r=a.reactive([]),o=W(e,"modelValue",[],h=>h==null?[]:Br(r,$e(h)),h=>{const b=Mc(r,h);return e.multiple?b:b[0]}),i=a.getCurrentInstance();function l(h,b){const _=h,N=Symbol.for(`${t.description}:id`),m=zt(N,i==null?void 0:i.vnode).indexOf(b);m>-1?r.splice(m,0,_):r.push(_)}function c(h){if(n)return;s();const b=r.findIndex(_=>_.id===h);r.splice(b,1)}function s(){const h=r.find(b=>!b.disabled);h&&e.mandatory==="force"&&!o.value.length&&(o.value=[h.id])}a.onMounted(()=>{s()}),a.onBeforeUnmount(()=>{n=!0});function u(h,b){const _=r.find(N=>N.id===h);if(!(b&&(_!=null&&_.disabled)))if(e.multiple){const N=o.value.slice(),g=N.findIndex(w=>w===h),m=~g;if(b=b??!m,m&&e.mandatory&&N.length<=1||!m&&e.max!=null&&N.length+1>e.max)return;g<0&&b?N.push(h):g>=0&&!b&&N.splice(g,1),o.value=N}else{const N=o.value.includes(h);if(e.mandatory&&N)return;o.value=b??!N?[h]:[]}}function d(h){if(e.multiple,o.value.length){const b=o.value[0],_=r.findIndex(m=>m.id===b);let N=(_+h)%r.length,g=r[N];for(;g.disabled&&N!==_;)N=(N+h)%r.length,g=r[N];if(g.disabled)return;o.value=[r[N].id]}else{const b=r.find(_=>!_.disabled);b&&(o.value=[b.id])}}const y={register:l,unregister:c,selected:o,select:u,disabled:a.toRef(e,"disabled"),prev:()=>d(r.length-1),next:()=>d(1),isSelected:h=>o.value.includes(h),selectedClass:a.computed(()=>e.selectedClass),items:a.computed(()=>r),getItemIndex:h=>Ic(r,h)};return a.provide(t,y),y}function Ic(e,t){const n=Br(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function Br(e,t){const n=[];return t.forEach(r=>{const o=e.find(l=>me(r,l.value)),i=e[r];(o==null?void 0:o.value)!=null?n.push(o.id):i!=null&&n.push(i.id)}),n}function Mc(e,t){const n=[];return t.forEach(r=>{const o=e.findIndex(i=>i.id===r);if(~o){const i=e[o];n.push(i.value!=null?i.value:o)}}),n}function Pc(e,t){a.watch(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&a.nextTick(()=>{t(!0)})},{immediate:!0})}function F(e){const t=a.getCurrentInstance();t&&(t.render=e)}function $c(e,t=0,n={leading:!1,trailing:!0}){let r,o,i=0,l,c,s,u=0,d=!1,y=!1,h=!0;if(typeof e!="function")throw new TypeError("NOT Function");t=+t||0,Yi(n)&&(d=!!n.leading,y="maxWait"in n,i=y?Math.max(+((n==null?void 0:n.maxWait)||0),t):i,h="trailing"in n?!!n.trailing:h);function b(p){const x=r,T=o;return r=o=void 0,u=p,l=e.apply(T,x),l}function _(p){return u=p,c=window.setTimeout(m,t),d?b(p):l}function N(p){var x=p-(s??0),T=p-(u??0),B=t-x;return y?Math.min(B,(i??0)-T):B}function g(p){var x=p-(s??0),T=p-(u??0);return s===void 0||x>=t||x<0||y&&T>=(i??0)}function m(){const p=Date.now();if(g(p))return w(p);c=window.setTimeout(m,N(p))}function w(p){return c=void 0,h&&r?b(p):(r=o=void 0,l)}function v(){c!==void 0&&clearTimeout(c),u=0,r=s=o=c=void 0}function f(){return c===void 0?l:w(Date.now())}function S(){const p=Date.now(),x=g(p);if(r=arguments,o=this,s=p,x){if(c===void 0)return _(s);if(y)return clearTimeout(c),c=window.setTimeout(m,t),b(s)}return c===void 0&&(c=window.setTimeout(m,t)),l}return S.cancel=v,S.flush=f,S}function $n(e){const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}function Yc(e,t,n){if(!e)return!1;const r=$n(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const o=n??[];return o.push(t),!o.some(i=>i==null?void 0:i.contains(e.target))}function Bc(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let o,i,l,c;if(r.startsWith("matrix3d(")){const b=r.slice(9,-1).split(/, /);o=+b[0],i=+b[5],l=+b[12],c=+b[13]}else if(r.startsWith("matrix(")){const b=r.slice(7,-1).split(/, /);o=+b[0],i=+b[3],l=+b[4],c=+b[5]}else return t;const s=n.transformOrigin,u=t.x-l-(1-o)*parseFloat(s),d=t.y-c-(1-i)*parseFloat(s.slice(s.indexOf(" ")+1)),y=o?t.width/o:e.offsetWidth,h=i?t.height/i:e.offsetHeight;return{x:u,y:d,width:y,height:h,top:d,right:u+y,bottom:d+h,left:u}}else return t}function Yn(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Rr(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}function j(e,t="px"){if(e==null||e==="")return;let n=Number(e);return typeof e=="string"&&isNaN(n)?e:isFinite(n)?`${n}${t}`:void 0}class Ut{constructor({x:t,y:n,width:r,height:o}){He(this,"x");He(this,"y");He(this,"width");He(this,"height");this.x=t??0,this.y=n??0,this.width=r??0,this.height=o??0}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Fr(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}const Bn=(e,t)=>e.includes(t),Lr=["top","bottom"],Rc=["start","end","left","right"];function jr(e,t){let[n,r]=e.split(" ");return r||(r=Bn(Lr,n)?"start":Bn(Rc,n)?"top":"center"),{side:Hr(n,t),align:Hr(r,t)}}function Hr(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function Rn(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Fn(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Wr(e){return{side:e.align,align:e.side}}function Kr(e){return Bn(Lr,e.side)?"y":"x"}function Fc(e,t,n){const r=[];if(t&&e&&!t.contains(e))return r;for(;e&&(Lc(e,n)&&r.push(e),e!==t);)e=e.parentElement;return r}function Lc(e,t){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return t?n.overflowX==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth:n.overflowY==="scroll"||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight}function jc(e){const t=a.reactive({}),n=a.computed(e);return a.watchEffect(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),a.toRefs(t)}const Hc=/rgb(a?)\((?<v>.*)\)/,Wc=/#([0-9a-fA-F]{3,6,8})/;function Ln(e){if(e&&e[0]==="#"){const t=e.substring(1,e.length),n=t.length,r=[];if(n===3||n===6){const o=n===6?2:1;for(let i=0;i<3;i+=1){const l=t.substring(i*o,i*o+o);r.push(Number.parseInt(l,16))}return r}}}function jn(e){return Hc.test(e)||Wc.test(e)}const Hn={AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0},Kc=1e3*60*60*24,zc=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/,Gt=new Date(1970,0,4);class L{static date(t){if(t==null)return new Date;if(t instanceof Date)return t;let n;if(typeof t=="string"){if(zc.test(t))return L.parseLocalDate(t);if(n=Date.parse(t),!isNaN(n))return new Date(n)}return null}static format(t,n,r,o){const i=L.date(t)??new Date,l=o==null?void 0:o[n];if(typeof l=="function")return l(i,n,r);let c={};switch(n){case"fullDateWithWeekday":c={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"normalDateWithWeekday":c={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":c={day:"2-digit",month:"2-digit",year:"numeric"};break;case"monthAndDate":c={month:"long",day:"numeric"};break;case"monthAndYear":c={month:"long",year:"numeric"};break;case"year":c={year:"numeric"};break;case"month":c={month:"long"};break;case"monthShort":c={month:"short"};break;case"dayOfMonth":c={day:"numeric"};break;case"shortDate":c={year:"2-digit",month:"numeric",day:"numeric"};break;default:c=l??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(r,c).format(i)}static parseLocalDate(t){const n=t.split("-").map(Number);return new Date(n[0],n[1]-1,n[2])}static parseISO(t){const[n,r,o]=t.split("-").map(Number);return new Date(n,r-1,o)}static toISO(t,n){const r=t.toJsDate(n),o=r.getFullYear(),i=r.getMonth()+1<10?`0${r.getMonth()+1}`:`${r.getMonth()+1}`,l=r.getDate()<10?`0${r.getDate()}`:`${r.getDate()}`;return`${o}-${i}-${l}`}static getWeekArray(t,n){const r=[];let o=[];const i=L.startOfMonth(t),l=L.endOfMonth(t),c=(i.getDay()-Hn[n.slice(-2).toUpperCase()]+7)%7,s=(l.getDay()-Hn[n.slice(-2).toUpperCase()]+7)%7;for(let u=0;u<c;u++){const d=new Date(i);d.setDate(d.getDate()-(c-u)),o.push(d)}for(let u=1;u<=l.getDate();u++)o.push(new Date(t.getFullYear(),t.getMonth(),u)),o.length===7&&(r.push(o),o=[]);for(let u=1;u<7-s;u++){const d=new Date(l);d.setDate(d.getDate()+u),o.push(d)}return o.length>0&&r.push(o),r}static startOfMonth(t){return new Date(t.getFullYear(),t.getMonth(),1)}static endOfMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}static startOfDay(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}static startOfYear(t){return new Date(t.getFullYear(),0,1)}static endOfDay(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999)}static endOfYear(t){return new Date(t.getFullYear(),11,31)}static getYear(t){return t.getFullYear()}static getMonth(t){return t.getMonth()}static getDay(t){return t.getDate()}static getNextMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}static getWeekdays(t){const n=Hn[t.slice(-2).toUpperCase()]??0;return[...Array(7).keys()].map(r=>{const o=new Date(Gt);return o.setDate(Gt.getDate()+n+r),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(o)})}static getMeridians(t){const n=new Date(Gt).setHours(11),r=new Date(Gt).setHours(13),o=Intl.DateTimeFormat(t,{minute:"numeric",hour:"numeric",hour12:!0});return[o.format(n).replace(/\d+:\d+/,"").trim(),o.format(r).replace(/\d+:\d+/,"").trim()]}static isAfter(t,n){return t.getTime()>n.getTime()}static isBefore(t,n){return t.getTime()<n.getTime()}static isEqual(t,n){return t.getTime()===n.getTime()}static isSameDay(t,n){return t.getDate()===n.getDate()&&t.getMonth()===n.getMonth()&&t.getFullYear()===n.getFullYear()}static isSameMonth(t,n){return!!(t.getMonth()===n.getMonth()&&t.getFullYear()&&n.getFullYear())}static isValid(t){const n=new Date(t);return n instanceof Date&&!isNaN(n.getTime())}static isWithinRange(t,n){return L.isAfter(t,n[0])&&L.isBefore(t,n[1])}static addDays(t,n){const r=new Date(t);return r.setDate(r.getDate()+n),r}static addMonths(t,n){const r=new Date(t);return r.setMonth(r.getMonth()+n),r}static getDiff(t,n,r){const o=new Date(t),i=new Date(n);return r==="month"?o.getMonth()-i.getMonth()+(o.getFullYear()-i.getFullYear())*12:Math.floor(o.getTime()-i.getTime())/Kc}static setMonth(t,n){const r=new Date(t);return r.setMonth(n),r}static setYear(t,n){const r=new Date(t);return r.setFullYear(n),r}static getHour(t){return t.getHours()}static setHour(t,n){const r=new Date(t);return r.setHours(n),r}static getMinute(t){return t.getMinutes()}static setMinute(t,n){const r=new Date(t);return r.setMinutes(n),r}}class Uc{constructor(t){He(this,"locale","ko-kr");He(this,"formats");this.locale=t.locale,this.formats=t.formats}getWeekArray(t){return L.getWeekArray(t,this.locale)}startOfMonth(t){return L.startOfMonth(t)}endOfMonth(t){return L.endOfMonth(t)}addDays(t,n){return L.addDays(t,n)}addMonths(t,n){return L.addMonths(t,n)}date(t){return L.date(t)}endOfDay(t){return L.endOfDay(t)}endOfYear(t){return L.endOfYear(t)}format(t,n){return L.format(t,n,this.locale,this.formats)}getDiff(t,n,r){return L.getDiff(t,n,r)}getYear(t){return L.getYear(t)}getMonth(t){return L.getMonth(t)}getDay(t){return L.getDay(t)}getNextMonth(t){return L.getNextMonth(t)}getWeekdays(){return L.getWeekdays(this.locale)}isAfter(t,n){return L.isAfter(t,n)}isBefore(t,n){return L.isBefore(t,n)}isEqual(t,n){return L.isEqual(t,n)}isSameDay(t,n){return L.isSameDay(t,n)}isSameMonth(t,n){return L.isSameMonth(t,n)}isValid(t){return L.isValid(t)}isWithinRange(t,n){return L.isWithinRange(t,n)}parseISO(t){return L.parseISO(t)}setMonth(t,n){return L.setMonth(t,n)}setYear(t,n){return L.setYear(t,n)}startOfDay(t){return L.startOfDay(t)}startOfYear(t){return L.startOfYear(t)}toISO(t){return L.toISO(this,t)}toJsDate(t){return t}getHour(t){return L.getHour(t)}getMinute(t){return L.getMinute(t)}setHour(t,n){return L.setHour(t,n)}setMinute(t,n){return L.setMinute(t,n)}}const Gc=Y({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"VueRouter");function qc(e,t){const n=a.resolveDynamicComponent("RouterLink"),r=a.computed(()=>!!(e.href||e.to)),o=a.computed(()=>(r==null?void 0:r.value)||$r(t,"click")||$r(e,"click"));if(typeof n=="string")return{isLink:r,isClickable:o,href:a.toRef(e,"href")};const i=e.to?n.useLink(e):void 0;return{isLink:r,isClickable:o,route:i==null?void 0:i.route,navigate:i==null?void 0:i.navigate,isActive:i&&a.computed(()=>{var l,c;return e.exact?(l=i.isExactActive)==null?void 0:l.value:(c=i.isActive)==null?void 0:c.value}),href:a.computed(()=>e.to?i==null?void 0:i.route.value.href:e.href)}}const zr="y-plate-wave__animation";function Ur(e){if(!e)return;const t=document.createElement("span");t.className=zr,e.appendChild(t),t.dataset.activated=String(performance.now())}function Wn(e){if(!e)return;const t=e.getElementsByClassName(zr);if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),o=Math.max(250-r,0);setTimeout(()=>{n&&e.removeChild(n)},o+300)}let Kn=!1;function Gr(e){Ur(e.currentTarget)}function yt(e){Wn(e.currentTarget)}function Xc(e){}function qr(e){!Kn&&(e.key==="Enter"||e.key==="Space")&&(Kn=!0,Ur(e.currentTarget))}function Xr(e){Kn=!1,Wn(e.currentTarget)}function Zr(e){e.removeEventListener("mousedown",Gr),e.removeEventListener("mouseup",yt),e.removeEventListener("mouseleave",yt),e.removeEventListener("keydown",qr),e.removeEventListener("keyup",Xr)}function Jr(e,t,n=!1){const{value:r,modifiers:o}=t,i=!!r;if(i||Wn(e),i&&n){if(o.stop){e.addEventListener("mousedown",Xc);return}e.addEventListener("mousedown",Gr),e.addEventListener("mouseup",yt),e.addEventListener("mouseleave",yt),e.addEventListener("keydown",qr),e.addEventListener("keyup",Xr),e.addEventListener("blur",yt)}else!i&&!n&&Zr(e)}const Qr={mounted(e,t){Jr(e,t,!0)},updated(e,t){t.value!==t.oldValue&&Jr(e,t)},unmount(e){Zr(e)}},eo=a.defineComponent({name:"YSpinnerRing",render(){return a.createVNode("svg",{class:"y-spinner-ring",width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[a.createVNode("circle",{class:"y-spinner-ring__circle",cx:"24",cy:"24",r:"18","stroke-width":"4","stroke-dasharray":"113.097","stroke-dashoffset":"113.097"},null)])}}),Zc=Symbol.for("yuyeon.y-toggle-button"),he="y-button",zn=Y({loading:Boolean,active:{type:Boolean,default:void 0},injectSymbol:{type:null,default:Zc},variation:{type:String},small:Boolean,icon:Boolean,outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},filled:{type:Boolean,default:!1},color:{type:String},noWave:{type:Boolean,default:!1},...Gc(),...Dc()},"YButton"),X=a.defineComponent({name:"YButton",directives:{PlateWave:Qr},props:zn(),emits:{click:e=>!0,"choice:selected":e=>!0},setup(e,{attrs:t,slots:n,emit:r}){const o=kc(e,e.injectSymbol,!1),i=qc(e,t);Pc(i,o==null?void 0:o.select);const l=a.computed(()=>{var h;return e.active!==void 0?e.active:i.isLink.value?(h=i.isActive)==null?void 0:h.value:o==null?void 0:o.isSelected.value}),c=a.computed(()=>{const{variation:h}=e;return typeof h=="string"?h.split(",").map(b=>b.trim()):[]}),s=a.computed(()=>{const{outlined:h,rounded:b,filled:_,small:N,icon:g}=e;return{[`${he}--outlined`]:c.value.includes("outlined")||h,[`${he}--rounded`]:c.value.includes("rounded")||b,[`${he}--filled`]:c.value.includes("filled")||_,[`${he}--text`]:c.value.includes("text"),[`${he}--small`]:c.value.includes("small")||N,[`${he}--icon`]:c.value.includes("icon")||g,[`${he}--color`]:e.color,[`${he}--loading`]:e.loading,[`${he}--disabled`]:e.disabled,[`${he}--active`]:l.value}}),u=a.computed(()=>{let{color:h}=e,b;return h&&!jn(h)&&(h=`var(--y-theme-${h})`,b=`var(--y-theme-on-${e.color})`),{"--y-button__color":h,"--y-button__text-color":b}}),d=a.computed(()=>(o==null?void 0:o.disabled.value)||e.disabled);function y(h){var b;d.value||e.loading||i.isLink.value&&(h.metaKey||h.altKey||h.ctrlKey||h.shiftKey||h.button!==0||t.target==="_blank")||(r("click",h),(b=i.navigate)==null||b.call(i,h),o==null||o.toggle())}return F(()=>{const h=i.isLink.value?"a":"button";return a.withDirectives(a.createVNode(h,{type:h==="a"?void 0:"button",class:[`${he}`,o==null?void 0:o.selectedClass.value,{...s.value}],href:e.disabled?void 0:i.href.value,style:u.value,onClick:y,disabled:e.disabled?!0:void 0},{default:()=>{var b,_;return[a.createVNode("span",{class:["y-button__content"]},[e.loading&&a.createVNode(eo,a.mergeProps({width:"24",height:"24"}),null),(b=n.default)==null?void 0:b.call(n)]),(_=n.append)==null?void 0:_.call(n)]}}),[[a.resolveDirective("plate-wave"),!e.noWave&&!e.loading]])}),{link:i}}}),Jc=Y({focused:Boolean,"onUpdate:focused":Function},"focus");function Un(e,t){const n=W(e,"focused");function r(){n.value=!0}function o(){n.value=!1}const i=a.computed(()=>({[`${t}--focused`]:n.value}));return{focused:n,whenFocus:r,whenBlur:o,focusedClasses:i}}const to=(e,t,n)=>{function r(o){e.classList.forEach(i=>{i.startsWith("y-theme--")&&i!==o&&e.classList.remove(i)}),e.classList.add(o)}a.watchEffect(()=>{var c,s,u,d,y;const o=((s=(c=t.instance)==null?void 0:c.$yuyeon)==null?void 0:s.theme)??((y=(d=(u=n==null?void 0:n.ctx)==null?void 0:u.root.appContext.config.globalProperties)==null?void 0:d.$yuyeon)==null?void 0:y.theme),i=t.value??a.unref(o.currentThemeKey)??"";if(!i)return;const l=`y-theme--${i}`;r(l)},{flush:"post"})};/** @preserve
6
6
  ///// SAPC APCA - Advanced Perceptual Contrast Algorithm
7
7
  ///// Beta 0.1.9 W3 • contrast function only
8
8
  ///// DIST: W3 • Revision date: July 3, 2022
@@ -9,8 +9,8 @@ import { isColorValue } from "../../util/color/index.mjs";
9
9
  import { propsFactory } from "../../util/vue-component.mjs";
10
10
  import { YSpinnerRing } from "../loading/YSpinnerRing.mjs";
11
11
  import { Y_TOGGLE_BUTTON_KEY } from "../toggle-button/index.mjs";
12
- /**
13
- * Style
12
+ /**
13
+ * Style
14
14
  */
15
15
  import "./YButton.scss";
16
16
  const NAME = 'y-button';
@@ -143,6 +143,7 @@ export const YButton = defineComponent({
143
143
  useRender(() => {
144
144
  const Tag = link.isLink.value ? 'a' : 'button';
145
145
  return _withDirectives(_createVNode(Tag, {
146
+ "type": Tag === 'a' ? undefined : 'button',
146
147
  "class": [`${NAME}`, choice?.selectedClass.value, {
147
148
  ...classes.value
148
149
  }],
@@ -1 +1 @@
1
- {"version":3,"file":"YButton.mjs","names":["computed","defineComponent","mergeProps","pressChoiceItemPropsOptions","useChoiceItem","useChoiceByLink","useRender","pressVueRouterPropsOptions","useLink","PlateWave","isColorValue","propsFactory","YSpinnerRing","Y_TOGGLE_BUTTON_KEY","NAME","pressYButtonProps","loading","Boolean","active","type","default","undefined","injectSymbol","variation","String","small","icon","outlined","rounded","filled","color","noWave","YButton","name","directives","props","emits","click","event","choice","setup","_ref","attrs","slots","emit","link","select","isActive","isLink","value","isSelected","variations","split","map","trim","classes","includes","disabled","styles","textColor","isDisabled","onClick","e","metaKey","altKey","ctrlKey","shiftKey","button","target","navigate","toggle","Tag","_withDirectives","_createVNode","selectedClass","href","width","height","append","_resolveDirective"],"sources":["../../../src/components/button/YButton.tsx"],"sourcesContent":["import type { PropType } from 'vue';\r\nimport { computed, defineComponent, mergeProps } from 'vue';\r\n\r\nimport {\r\n pressChoiceItemPropsOptions,\r\n useChoiceItem,\r\n} from '../../composables/choice';\r\nimport { useChoiceByLink } from '../../composables/choice-link';\r\nimport { useRender } from '../../composables/component';\r\nimport {\r\n pressVueRouterPropsOptions,\r\n useLink,\r\n} from '../../composables/vue-router';\r\nimport { PlateWave } from '../../directives/plate-wave';\r\nimport { isColorValue } from '../../util/color';\r\nimport { EventProp, propsFactory } from '../../util/vue-component';\r\nimport { YSpinnerRing } from '../loading/YSpinnerRing';\r\nimport { Y_TOGGLE_BUTTON_KEY } from '../toggle-button';\r\n\r\n/**\r\n * Style\r\n */\r\nimport './YButton.scss';\r\n\r\nconst NAME = 'y-button';\r\n\r\nexport const pressYButtonProps = propsFactory(\r\n {\r\n loading: Boolean,\r\n active: { type: Boolean, default: undefined },\r\n injectSymbol: { type: null, default: Y_TOGGLE_BUTTON_KEY },\r\n //\r\n variation: {\r\n type: String as PropType<string>,\r\n },\r\n small: Boolean,\r\n icon: Boolean,\r\n outlined: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n rounded: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n filled: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n //\r\n color: {\r\n type: String,\r\n },\r\n noWave: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n ...pressVueRouterPropsOptions(),\r\n ...pressChoiceItemPropsOptions(),\r\n },\r\n 'YButton',\r\n);\r\n\r\nexport const YButton = defineComponent({\r\n name: 'YButton',\r\n directives: {\r\n PlateWave,\r\n },\r\n props: pressYButtonProps(),\r\n emits: {\r\n click: (event: MouseEvent) => true,\r\n 'choice:selected': (choice: { value: boolean }) => true,\r\n },\r\n setup(props, { attrs, slots, emit }) {\r\n const choice = useChoiceItem(props, props.injectSymbol, false);\r\n const link = useLink(props, attrs);\r\n useChoiceByLink(link, choice?.select);\r\n\r\n const isActive = computed(() => {\r\n if (props.active !== undefined) {\r\n return props.active;\r\n }\r\n if (link.isLink.value) {\r\n return link.isActive?.value;\r\n }\r\n return choice?.isSelected.value;\r\n });\r\n\r\n const variations = computed(() => {\r\n const { variation } = props;\r\n if (typeof variation === 'string') {\r\n return variation.split(',').map((value) => {\r\n return value.trim();\r\n });\r\n }\r\n return [];\r\n });\r\n\r\n const classes = computed(() => {\r\n const { outlined, rounded, filled, small, icon } = props;\r\n return {\r\n [`${NAME}--outlined`]:\r\n variations.value.includes('outlined') || outlined,\r\n [`${NAME}--rounded`]: variations.value.includes('rounded') || rounded,\r\n [`${NAME}--filled`]: variations.value.includes('filled') || filled,\r\n [`${NAME}--text`]: variations.value.includes('text'),\r\n [`${NAME}--small`]: variations.value.includes('small') || small,\r\n [`${NAME}--icon`]: variations.value.includes('icon') || icon,\r\n [`${NAME}--color`]: props.color,\r\n [`${NAME}--loading`]: props.loading,\r\n [`${NAME}--disabled`]: props.disabled,\r\n [`${NAME}--active`]: isActive.value,\r\n };\r\n });\r\n\r\n const styles = computed(() => {\r\n let { color } = props;\r\n let textColor: string | undefined;\r\n if (color && !isColorValue(color)) {\r\n color = `var(--y-theme-${color})`;\r\n textColor = `var(--y-theme-on-${props.color})`;\r\n }\r\n return {\r\n [`--y-button__color`]: color,\r\n [`--y-button__text-color`]: textColor,\r\n };\r\n });\r\n\r\n const isDisabled = computed(() => {\r\n return choice?.disabled.value || props.disabled;\r\n });\r\n\r\n /// Events\r\n function onClick(e: MouseEvent) {\r\n if (\r\n isDisabled.value ||\r\n props.loading ||\r\n (link.isLink.value &&\r\n (e.metaKey ||\r\n e.altKey ||\r\n e.ctrlKey ||\r\n e.shiftKey ||\r\n e.button !== 0 ||\r\n attrs.target === '_blank'))\r\n ) {\r\n return;\r\n }\r\n emit('click', e);\r\n link.navigate?.(e);\r\n choice?.toggle();\r\n }\r\n\r\n useRender(() => {\r\n const Tag = link.isLink.value ? 'a' : 'button';\r\n return (\r\n <Tag\r\n class={[\r\n `${NAME}`,\r\n choice?.selectedClass.value,\r\n {\r\n ...classes.value,\r\n },\r\n ]}\r\n href={props.disabled ? undefined : link.href.value}\r\n style={styles.value}\r\n onClick={onClick}\r\n disabled={props.disabled ? true : undefined}\r\n v-plate-wave={!props.noWave && !props.loading}\r\n >\r\n <span class={['y-button__content']}>\r\n {props.loading && (\r\n <YSpinnerRing\r\n {...mergeProps({ width: '24', height: '24' })}\r\n ></YSpinnerRing>\r\n )}\r\n {slots.default?.()}\r\n </span>\r\n {slots.append?.()}\r\n </Tag>\r\n );\r\n });\r\n\r\n return {\r\n link,\r\n };\r\n },\r\n});\r\n\r\nexport type YButton = InstanceType<typeof YButton>;\r\n"],"mappings":";AACA,SAASA,QAAQ,EAAEC,eAAe,EAAEC,UAAU,QAAQ,KAAK;AAAC,SAG1DC,2BAA2B,EAC3BC,aAAa;AAAA,SAENC,eAAe;AAAA,SACfC,SAAS;AAAA,SAEhBC,0BAA0B,EAC1BC,OAAO;AAAA,SAEAC,SAAS;AAAA,SACTC,YAAY;AAAA,SACDC,YAAY;AAAA,SACvBC,YAAY;AAAA,SACZC,mBAAmB;AAE5B;AACA;AACA;AACA;AAEA,MAAMC,IAAI,GAAG,UAAU;AAEvB,OAAO,MAAMC,iBAAiB,GAAGJ,YAAY,CAC3C;EACEK,OAAO,EAAEC,OAAO;EAChBC,MAAM,EAAE;IAAEC,IAAI,EAAEF,OAAO;IAAEG,OAAO,EAAEC;EAAU,CAAC;EAC7CC,YAAY,EAAE;IAAEH,IAAI,EAAE,IAAI;IAAEC,OAAO,EAAEP;EAAoB,CAAC;EAC1D;EACAU,SAAS,EAAE;IACTJ,IAAI,EAAEK;EACR,CAAC;EACDC,KAAK,EAAER,OAAO;EACdS,IAAI,EAAET,OAAO;EACbU,QAAQ,EAAE;IACRR,IAAI,EAAEF,OAAO;IACbG,OAAO,EAAE;EACX,CAAC;EACDQ,OAAO,EAAE;IACPT,IAAI,EAAEF,OAAO;IACbG,OAAO,EAAE;EACX,CAAC;EACDS,MAAM,EAAE;IACNV,IAAI,EAAEF,OAAO;IACbG,OAAO,EAAE;EACX,CAAC;EACD;EACAU,KAAK,EAAE;IACLX,IAAI,EAAEK;EACR,CAAC;EACDO,MAAM,EAAE;IACNZ,IAA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Kd,KAAK,CAACsB,QAAQ,GAAGpC,SAAS,GAAGwB,IAAI,CAAC8B,IAAI,CAAC1B,KAAK;QAAA,SAC3CS,MAAM,CAACT,KAAK;QAAA,WACVY,OAAO;QAAA,YACN1B,KAAK,CAACsB,QAAQ,GAAG,IAAI,GAAGpC;MAAS;QAAAD,OAAA,EAAAA,CAAA,MAAAqD,YAAA;UAAA,SAG9B,CAAC,mBAAmB;QAAC,IAC/BtC,KAAK,CAACnB,OAAO,IAAAyD,YAAA,CAAA7D,YAAA,EAENV,UAAU,CAAC;UAAE0E,KAAK,EAAE,IAAI;UAAEC,MAAM,EAAE;QAAK,CAAC,CAAC,OAEhD,EACAlC,KAAK,CAACvB,OAAO,GAAG,CAAC,IAEnBuB,KAAK,CAACmC,MAAM,GAAG,CAAC;MAAA,MAAAC,iBAAA,gBAVH,CAAC5C,KAAK,CAACJ,MAAM,IAAI,CAACI,KAAK,CAACnB,OAAO;IAanD,CAAC,CAAC;IAEF,OAAO;MACL6B;IACF,CAAC;EACH;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YButton.mjs","names":["computed","defineComponent","mergeProps","pressChoiceItemPropsOptions","useChoiceItem","useChoiceByLink","useRender","pressVueRouterPropsOptions","useLink","PlateWave","isColorValue","propsFactory","YSpinnerRing","Y_TOGGLE_BUTTON_KEY","NAME","pressYButtonProps","loading","Boolean","active","type","default","undefined","injectSymbol","variation","String","small","icon","outlined","rounded","filled","color","noWave","YButton","name","directives","props","emits","click","event","choice","setup","_ref","attrs","slots","emit","link","select","isActive","isLink","value","isSelected","variations","split","map","trim","classes","includes","disabled","styles","textColor","isDisabled","onClick","e","metaKey","altKey","ctrlKey","shiftKey","button","target","navigate","toggle","Tag","_withDirectives","_createVNode","selectedClass","href","width","height","append","_resolveDirective"],"sources":["../../../src/components/button/YButton.tsx"],"sourcesContent":["import type { PropType } from 'vue';\nimport { computed, defineComponent, mergeProps } from 'vue';\n\nimport {\n pressChoiceItemPropsOptions,\n useChoiceItem,\n} from '../../composables/choice';\nimport { useChoiceByLink } from '../../composables/choice-link';\nimport { useRender } from '../../composables/component';\nimport {\n pressVueRouterPropsOptions,\n useLink,\n} from '../../composables/vue-router';\nimport { PlateWave } from '../../directives/plate-wave';\nimport { isColorValue } from '../../util/color';\nimport { propsFactory } from '../../util/vue-component';\nimport { YSpinnerRing } from '../loading/YSpinnerRing';\nimport { Y_TOGGLE_BUTTON_KEY } from '../toggle-button';\n\n/**\n * Style\n */\nimport './YButton.scss';\n\nconst NAME = 'y-button';\n\nexport const pressYButtonProps = propsFactory(\n {\n loading: Boolean,\n active: { type: Boolean, default: undefined },\n injectSymbol: { type: null, default: Y_TOGGLE_BUTTON_KEY },\n //\n variation: {\n type: String as PropType<string>,\n },\n small: Boolean,\n icon: Boolean,\n outlined: {\n type: Boolean,\n default: false,\n },\n rounded: {\n type: Boolean,\n default: false,\n },\n filled: {\n type: Boolean,\n default: false,\n },\n //\n color: {\n type: String,\n },\n noWave: {\n type: Boolean,\n default: false,\n },\n ...pressVueRouterPropsOptions(),\n ...pressChoiceItemPropsOptions(),\n },\n 'YButton',\n);\n\nexport const YButton = defineComponent({\n name: 'YButton',\n directives: {\n PlateWave,\n },\n props: pressYButtonProps(),\n emits: {\n click: (event: MouseEvent) => true,\n 'choice:selected': (choice: { value: boolean }) => true,\n },\n setup(props, { attrs, slots, emit }) {\n const choice = useChoiceItem(props, props.injectSymbol, false);\n const link = useLink(props, attrs);\n useChoiceByLink(link, choice?.select);\n\n const isActive = computed(() => {\n if (props.active !== undefined) {\n return props.active;\n }\n if (link.isLink.value) {\n return link.isActive?.value;\n }\n return choice?.isSelected.value;\n });\n\n const variations = computed(() => {\n const { variation } = props;\n if (typeof variation === 'string') {\n return variation.split(',').map((value) => {\n return value.trim();\n });\n }\n return [];\n });\n\n const classes = computed(() => {\n const { outlined, rounded, filled, small, icon } = props;\n return {\n [`${NAME}--outlined`]:\n variations.value.includes('outlined') || outlined,\n [`${NAME}--rounded`]: variations.value.includes('rounded') || rounded,\n [`${NAME}--filled`]: variations.value.includes('filled') || filled,\n [`${NAME}--text`]: variations.value.includes('text'),\n [`${NAME}--small`]: variations.value.includes('small') || small,\n [`${NAME}--icon`]: variations.value.includes('icon') || icon,\n [`${NAME}--color`]: props.color,\n [`${NAME}--loading`]: props.loading,\n [`${NAME}--disabled`]: props.disabled,\n [`${NAME}--active`]: isActive.value,\n };\n });\n\n const styles = computed(() => {\n let { color } = props;\n let textColor: string | undefined;\n if (color && !isColorValue(color)) {\n color = `var(--y-theme-${color})`;\n textColor = `var(--y-theme-on-${props.color})`;\n }\n return {\n [`--y-button__color`]: color,\n [`--y-button__text-color`]: textColor,\n };\n });\n\n const isDisabled = computed(() => {\n return choice?.disabled.value || props.disabled;\n });\n\n /// Events\n function onClick(e: MouseEvent) {\n if (\n isDisabled.value ||\n props.loading ||\n (link.isLink.value &&\n (e.metaKey ||\n e.altKey ||\n e.ctrlKey ||\n e.shiftKey ||\n e.button !== 0 ||\n attrs.target === '_blank'))\n ) {\n return;\n }\n emit('click', e);\n link.navigate?.(e);\n choice?.toggle();\n }\n\n useRender(() => {\n const Tag = link.isLink.value ? 'a' : 'button';\n return (\n <Tag\n type={Tag === 'a' ? undefined : 'button'}\n class={[\n `${NAME}`,\n choice?.selectedClass.value,\n {\n ...classes.value,\n },\n ]}\n href={props.disabled ? undefined : link.href.value}\n style={styles.value}\n onClick={onClick}\n disabled={props.disabled ? true : undefined}\n v-plate-wave={!props.noWave && !props.loading}\n >\n <span class={['y-button__content']}>\n {props.loading && (\n <YSpinnerRing\n {...mergeProps({ width: '24', height: '24' })}\n ></YSpinnerRing>\n )}\n {slots.default?.()}\n </span>\n {slots.append?.()}\n </Tag>\n );\n });\n\n return {\n link,\n };\n },\n});\n\nexport type YButton = InstanceType<typeof YButton>;\n"],"mappings":";AACA,SAASA,QAAQ,EAAEC,eAAe,EAAEC,UAAU,QAAQ,KAAK;AAAC,SAG1DC,2BAA2B,EAC3BC,aAAa;AAAA,SAENC,eAA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