diff --git a/dist/index.html b/dist/index.html index 58f5abb..304db61 100644 --- a/dist/index.html +++ b/dist/index.html @@ -125,38 +125,38 @@ * @vue/shared v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Ho(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const xe={},qt=[],Ge=()=>{},Bf=()=>!1,Ss=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zo=e=>e.startsWith("onUpdate:"),Pe=Object.assign,Uo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Df=Object.prototype.hasOwnProperty,ge=(e,t)=>Df.call(e,t),se=Array.isArray,Gt=e=>$s(e)==="[object Map]",Hl=e=>$s(e)==="[object Set]",ae=e=>typeof e=="function",Oe=e=>typeof e=="string",zt=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",zl=e=>(Se(e)||ae(e))&&ae(e.then)&&ae(e.catch),Ul=Object.prototype.toString,$s=e=>Ul.call(e),Hf=e=>$s(e).slice(8,-1),Vl=e=>$s(e)==="[object Object]",Vo=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hn=Ho(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Os=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zf=/-(\w)/g,Xt=Os(e=>e.replace(zf,(t,n)=>n?n.toUpperCase():"")),Uf=/\B([A-Z])/g,en=Os(e=>e.replace(Uf,"-$1").toLowerCase()),Kl=Os(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ks=Os(e=>e?`on${Kl(e)}`:""),Ot=(e,t)=>!Object.is(e,t),Ws=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Vf=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let sr;const ql=()=>sr||(sr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Je(e){if(se(e)){const t={};for(let n=0;n{if(n){const s=n.split(Wf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function re(e){let t="";if(Oe(e))t=e;else if(se(e))for(let n=0;nOe(e)?e:e==null?"":se(e)||Se(e)&&(e.toString===Ul||!ae(e.toString))?JSON.stringify(e,Jl,2):String(e),Jl=(e,t)=>t&&t.__v_isRef?Jl(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[qs(s,i)+" =>"]=o,n),{})}:Hl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>qs(n))}:zt(t)?qs(t):Se(t)&&!se(t)&&!Vl(t)?String(t):t,qs=(e,t="")=>{var n;return zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function Ho(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const xe={},qt=[],Ge=()=>{},Bf=()=>!1,Ss=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zo=e=>e.startsWith("onUpdate:"),Le=Object.assign,Uo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Df=Object.prototype.hasOwnProperty,ge=(e,t)=>Df.call(e,t),se=Array.isArray,Gt=e=>$s(e)==="[object Map]",Hl=e=>$s(e)==="[object Set]",ae=e=>typeof e=="function",Oe=e=>typeof e=="string",zt=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",zl=e=>(Se(e)||ae(e))&&ae(e.then)&&ae(e.catch),Ul=Object.prototype.toString,$s=e=>Ul.call(e),Hf=e=>$s(e).slice(8,-1),Vl=e=>$s(e)==="[object Object]",Vo=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hn=Ho(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Os=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zf=/-(\w)/g,Xt=Os(e=>e.replace(zf,(t,n)=>n?n.toUpperCase():"")),Uf=/\B([A-Z])/g,en=Os(e=>e.replace(Uf,"-$1").toLowerCase()),Kl=Os(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ks=Os(e=>e?`on${Kl(e)}`:""),Ot=(e,t)=>!Object.is(e,t),Ws=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Vf=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let sr;const ql=()=>sr||(sr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Je(e){if(se(e)){const t={};for(let n=0;n{if(n){const s=n.split(Wf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function re(e){let t="";if(Oe(e))t=e;else if(se(e))for(let n=0;nOe(e)?e:e==null?"":se(e)||Se(e)&&(e.toString===Ul||!ae(e.toString))?JSON.stringify(e,Jl,2):String(e),Jl=(e,t)=>t&&t.__v_isRef?Jl(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],i)=>(n[qs(s,i)+" =>"]=o,n),{})}:Hl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>qs(n))}:zt(t)?qs(t):Se(t)&&!se(t)&&!Vl(t)?String(t):t,qs=(e,t="")=>{var n;return zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Xe;class Xf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xe,!t&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Xe;try{return Xe=this,t()}finally{Xe=n}}}on(){Xe=this}off(){Xe=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),At()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=It,n=Bt;try{return It=!0,Bt=this,this._runnings++,or(this),this.fn()}finally{ir(this),this._runnings--,Bt=n,It=t}}stop(){this.active&&(or(this),ir(this),this.onStop&&this.onStop(),this.active=!1)}}function td(e){return e.value}function or(e){e._trackId++,e._depsLength=0}function ir(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},bo=new WeakMap,Dt=Symbol(""),_o=Symbol("");function Ve(e,t,n){if(It&&Bt){let s=bo.get(e);s||bo.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=ec(()=>s.delete(n))),Xl(Bt,o)}}function dt(e,t,n,s,o,i){const r=bo.get(e);if(!r)return;let l=[];if(t==="clear")l=[...r.values()];else if(n==="length"&&se(e)){const c=Number(s);r.forEach((a,f)=>{(f==="length"||!zt(f)&&f>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(r.get(n)),t){case"add":se(e)?Vo(n)&&l.push(r.get("length")):(l.push(r.get(Dt)),Gt(e)&&l.push(r.get(_o)));break;case"delete":se(e)||(l.push(r.get(Dt)),Gt(e)&&l.push(r.get(_o)));break;case"set":Gt(e)&&l.push(r.get(Dt));break}Wo();for(const c of l)c&&Zl(c,4);qo()}const nd=Ho("__proto__,__v_isRef,__isVue"),tc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zt)),rr=sd();function sd(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ve(this);for(let i=0,r=this.length;i{e[t]=function(...n){Tt(),Wo();const s=ve(this)[t].apply(this,n);return qo(),At(),s}}),e}function od(e){zt(e)||(e=String(e));const t=ve(this);return Ve(t,"has",e),t.hasOwnProperty(e)}class nc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(o?i?yd:rc:i?ic:oc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=se(t);if(!o){if(r&&ge(rr,n))return Reflect.get(rr,n,s);if(n==="hasOwnProperty")return od}const l=Reflect.get(t,n,s);return(zt(n)?tc.has(n):nd(n))||(o||Ve(t,"get",n),i)?l:Le(l)?r&&Vo(n)?l:l.value:Se(l)?o?lc(l):tn(l):l}}class sc extends nc{constructor(t=!1){super(!1,t)}set(t,n,s,o){let i=t[n];if(!this._isShallow){const c=In(i);if(!ps(s)&&!In(s)&&(i=ve(i),s=ve(s)),!se(t)&&Le(i)&&!Le(s))return c?!1:(i.value=s,!0)}const r=se(t)&&Vo(n)?Number(n)e,Ms=e=>Reflect.getPrototypeOf(e);function Kn(e,t,n=!1,s=!1){e=e.__v_raw;const o=ve(e),i=ve(t);n||(Ot(t,i)&&Ve(o,"get",t),Ve(o,"get",i));const{has:r}=Ms(o),l=s?Go:n?Qo:Cn;if(r.call(o,t))return l(e.get(t));if(r.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function Wn(e,t=!1){const n=this.__v_raw,s=ve(n),o=ve(e);return t||(Ot(e,o)&&Ve(s,"has",e),Ve(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function qn(e,t=!1){return e=e.__v_raw,!t&&Ve(ve(e),"iterate",Dt),Reflect.get(e,"size",e)}function lr(e){e=ve(e);const t=ve(this);return Ms(t).has.call(t,e)||(t.add(e),dt(t,"add",e,e)),this}function cr(e,t){t=ve(t);const n=ve(this),{has:s,get:o}=Ms(n);let i=s.call(n,e);i||(e=ve(e),i=s.call(n,e));const r=o.call(n,e);return n.set(e,t),i?Ot(t,r)&&dt(n,"set",e,t):dt(n,"add",e,t),this}function ar(e){const t=ve(this),{has:n,get:s}=Ms(t);let o=n.call(t,e);o||(e=ve(e),o=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return o&&dt(t,"delete",e,void 0),i}function ur(){const e=ve(this),t=e.size!==0,n=e.clear();return t&&dt(e,"clear",void 0,void 0),n}function Gn(e,t){return function(s,o){const i=this,r=i.__v_raw,l=ve(r),c=t?Go:e?Qo:Cn;return!e&&Ve(l,"iterate",Dt),r.forEach((a,f)=>s.call(o,c(a),c(f),i))}}function Jn(e,t,n){return function(...s){const o=this.__v_raw,i=ve(o),r=Gt(i),l=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,a=o[e](...s),f=n?Go:t?Qo:Cn;return!t&&Ve(i,"iterate",c?_o:Dt),{next(){const{value:d,done:h}=a.next();return h?{value:d,done:h}:{value:l?[f(d[0]),f(d[1])]:f(d),done:h}},[Symbol.iterator](){return this}}}}function mt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ad(){const e={get(i){return Kn(this,i)},get size(){return qn(this)},has:Wn,add:lr,set:cr,delete:ar,clear:ur,forEach:Gn(!1,!1)},t={get(i){return Kn(this,i,!1,!0)},get size(){return qn(this)},has:Wn,add:lr,set:cr,delete:ar,clear:ur,forEach:Gn(!1,!0)},n={get(i){return Kn(this,i,!0)},get size(){return qn(this,!0)},has(i){return Wn.call(this,i,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Gn(!0,!1)},s={get(i){return Kn(this,i,!0,!0)},get size(){return qn(this,!0)},has(i){return Wn.call(this,i,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Gn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Jn(i,!1,!1),n[i]=Jn(i,!0,!1),t[i]=Jn(i,!1,!0),s[i]=Jn(i,!0,!0)}),[e,n,t,s]}const[ud,fd,dd,hd]=ad();function Jo(e,t){const n=t?e?hd:dd:e?fd:ud;return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(ge(n,o)&&o in s?n:s,o,i)}const pd={get:Jo(!1,!1)},gd={get:Jo(!1,!0)},md={get:Jo(!0,!1)};const oc=new WeakMap,ic=new WeakMap,rc=new WeakMap,yd=new WeakMap;function vd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bd(e){return e.__v_skip||!Object.isExtensible(e)?0:vd(Hf(e))}function tn(e){return In(e)?e:Yo(e,!1,rd,pd,oc)}function _d(e){return Yo(e,!1,cd,gd,ic)}function lc(e){return Yo(e,!0,ld,md,rc)}function Yo(e,t,n,s,o){if(!Se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const r=bd(e);if(r===0)return e;const l=new Proxy(e,r===2?s:n);return o.set(e,l),l}function pn(e){return In(e)?pn(e.__v_raw):!!(e&&e.__v_isReactive)}function In(e){return!!(e&&e.__v_isReadonly)}function ps(e){return!!(e&&e.__v_isShallow)}function cc(e){return e?!!e.__v_raw:!1}function ve(e){const t=e&&e.__v_raw;return t?ve(t):e}function kd(e){return Object.isExtensible(e)&&Wl(e,"__v_skip",!0),e}const Cn=e=>Se(e)?tn(e):e,Qo=e=>Se(e)?lc(e):e;class ac{constructor(t,n,s,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ko(()=>t(this._value),()=>os(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=ve(this);return(!t._cacheable||t.effect.dirty)&&Ot(t._value,t._value=t.effect.run())&&os(t,4),uc(t),t.effect._dirtyLevel>=2&&os(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function wd(e,t,n=!1){let s,o;const i=ae(e);return i?(s=e,o=Ge):(s=e.get,o=e.set),new ac(s,o,i||!o,n)}function uc(e){var t;It&&Bt&&(e=ve(e),Xl(Bt,(t=e.dep)!=null?t:e.dep=ec(()=>e.dep=void 0,e instanceof ac?e:void 0)))}function os(e,t=4,n){e=ve(e);const s=e.dep;s&&Zl(s,t)}function Le(e){return!!(e&&e.__v_isRef===!0)}function z(e){return fc(e,!1)}function Pt(e){return fc(e,!0)}function fc(e,t){return Le(e)?e:new xd(e,t)}class xd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ve(t),this._value=n?t:Cn(t)}get value(){return uc(this),this._value}set value(t){const n=this.__v_isShallow||ps(t)||In(t);t=n?t:ve(t),Ot(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Cn(t),os(this,4))}}function u(e){return Le(e)?e.value:e}function ct(e){return ae(e)?e():u(e)}const Id={get:(e,t,n)=>u(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Le(o)&&!Le(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function dc(e){return pn(e)?e:new Proxy(e,Id)}/** +**/let Xe;class Xf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xe,!t&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Xe;try{return Xe=this,t()}finally{Xe=n}}}on(){Xe=this}off(){Xe=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),At()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=It,n=Bt;try{return It=!0,Bt=this,this._runnings++,or(this),this.fn()}finally{ir(this),this._runnings--,Bt=n,It=t}}stop(){this.active&&(or(this),ir(this),this.onStop&&this.onStop(),this.active=!1)}}function td(e){return e.value}function or(e){e._trackId++,e._depsLength=0}function ir(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},bo=new WeakMap,Dt=Symbol(""),_o=Symbol("");function Ve(e,t,n){if(It&&Bt){let s=bo.get(e);s||bo.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=ec(()=>s.delete(n))),Xl(Bt,o)}}function dt(e,t,n,s,o,i){const r=bo.get(e);if(!r)return;let l=[];if(t==="clear")l=[...r.values()];else if(n==="length"&&se(e)){const c=Number(s);r.forEach((a,f)=>{(f==="length"||!zt(f)&&f>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(r.get(n)),t){case"add":se(e)?Vo(n)&&l.push(r.get("length")):(l.push(r.get(Dt)),Gt(e)&&l.push(r.get(_o)));break;case"delete":se(e)||(l.push(r.get(Dt)),Gt(e)&&l.push(r.get(_o)));break;case"set":Gt(e)&&l.push(r.get(Dt));break}Wo();for(const c of l)c&&Zl(c,4);qo()}const nd=Ho("__proto__,__v_isRef,__isVue"),tc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zt)),rr=sd();function sd(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ve(this);for(let i=0,r=this.length;i{e[t]=function(...n){Tt(),Wo();const s=ve(this)[t].apply(this,n);return qo(),At(),s}}),e}function od(e){zt(e)||(e=String(e));const t=ve(this);return Ve(t,"has",e),t.hasOwnProperty(e)}class nc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(o?i?yd:rc:i?ic:oc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=se(t);if(!o){if(r&&ge(rr,n))return Reflect.get(rr,n,s);if(n==="hasOwnProperty")return od}const l=Reflect.get(t,n,s);return(zt(n)?tc.has(n):nd(n))||(o||Ve(t,"get",n),i)?l:Fe(l)?r&&Vo(n)?l:l.value:Se(l)?o?lc(l):tn(l):l}}class sc extends nc{constructor(t=!1){super(!1,t)}set(t,n,s,o){let i=t[n];if(!this._isShallow){const c=In(i);if(!ps(s)&&!In(s)&&(i=ve(i),s=ve(s)),!se(t)&&Fe(i)&&!Fe(s))return c?!1:(i.value=s,!0)}const r=se(t)&&Vo(n)?Number(n)e,Ms=e=>Reflect.getPrototypeOf(e);function Kn(e,t,n=!1,s=!1){e=e.__v_raw;const o=ve(e),i=ve(t);n||(Ot(t,i)&&Ve(o,"get",t),Ve(o,"get",i));const{has:r}=Ms(o),l=s?Go:n?Qo:Cn;if(r.call(o,t))return l(e.get(t));if(r.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function Wn(e,t=!1){const n=this.__v_raw,s=ve(n),o=ve(e);return t||(Ot(e,o)&&Ve(s,"has",e),Ve(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function qn(e,t=!1){return e=e.__v_raw,!t&&Ve(ve(e),"iterate",Dt),Reflect.get(e,"size",e)}function lr(e){e=ve(e);const t=ve(this);return Ms(t).has.call(t,e)||(t.add(e),dt(t,"add",e,e)),this}function cr(e,t){t=ve(t);const n=ve(this),{has:s,get:o}=Ms(n);let i=s.call(n,e);i||(e=ve(e),i=s.call(n,e));const r=o.call(n,e);return n.set(e,t),i?Ot(t,r)&&dt(n,"set",e,t):dt(n,"add",e,t),this}function ar(e){const t=ve(this),{has:n,get:s}=Ms(t);let o=n.call(t,e);o||(e=ve(e),o=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return o&&dt(t,"delete",e,void 0),i}function ur(){const e=ve(this),t=e.size!==0,n=e.clear();return t&&dt(e,"clear",void 0,void 0),n}function Gn(e,t){return function(s,o){const i=this,r=i.__v_raw,l=ve(r),c=t?Go:e?Qo:Cn;return!e&&Ve(l,"iterate",Dt),r.forEach((a,f)=>s.call(o,c(a),c(f),i))}}function Jn(e,t,n){return function(...s){const o=this.__v_raw,i=ve(o),r=Gt(i),l=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,a=o[e](...s),f=n?Go:t?Qo:Cn;return!t&&Ve(i,"iterate",c?_o:Dt),{next(){const{value:d,done:h}=a.next();return h?{value:d,done:h}:{value:l?[f(d[0]),f(d[1])]:f(d),done:h}},[Symbol.iterator](){return this}}}}function mt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ad(){const e={get(i){return Kn(this,i)},get size(){return qn(this)},has:Wn,add:lr,set:cr,delete:ar,clear:ur,forEach:Gn(!1,!1)},t={get(i){return Kn(this,i,!1,!0)},get size(){return qn(this)},has:Wn,add:lr,set:cr,delete:ar,clear:ur,forEach:Gn(!1,!0)},n={get(i){return Kn(this,i,!0)},get size(){return qn(this,!0)},has(i){return Wn.call(this,i,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Gn(!0,!1)},s={get(i){return Kn(this,i,!0,!0)},get size(){return qn(this,!0)},has(i){return Wn.call(this,i,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Gn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Jn(i,!1,!1),n[i]=Jn(i,!0,!1),t[i]=Jn(i,!1,!0),s[i]=Jn(i,!0,!0)}),[e,n,t,s]}const[ud,fd,dd,hd]=ad();function Jo(e,t){const n=t?e?hd:dd:e?fd:ud;return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(ge(n,o)&&o in s?n:s,o,i)}const pd={get:Jo(!1,!1)},gd={get:Jo(!1,!0)},md={get:Jo(!0,!1)};const oc=new WeakMap,ic=new WeakMap,rc=new WeakMap,yd=new WeakMap;function vd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bd(e){return e.__v_skip||!Object.isExtensible(e)?0:vd(Hf(e))}function tn(e){return In(e)?e:Yo(e,!1,rd,pd,oc)}function _d(e){return Yo(e,!1,cd,gd,ic)}function lc(e){return Yo(e,!0,ld,md,rc)}function Yo(e,t,n,s,o){if(!Se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const r=bd(e);if(r===0)return e;const l=new Proxy(e,r===2?s:n);return o.set(e,l),l}function pn(e){return In(e)?pn(e.__v_raw):!!(e&&e.__v_isReactive)}function In(e){return!!(e&&e.__v_isReadonly)}function ps(e){return!!(e&&e.__v_isShallow)}function cc(e){return e?!!e.__v_raw:!1}function ve(e){const t=e&&e.__v_raw;return t?ve(t):e}function kd(e){return Object.isExtensible(e)&&Wl(e,"__v_skip",!0),e}const Cn=e=>Se(e)?tn(e):e,Qo=e=>Se(e)?lc(e):e;class ac{constructor(t,n,s,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ko(()=>t(this._value),()=>os(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=ve(this);return(!t._cacheable||t.effect.dirty)&&Ot(t._value,t._value=t.effect.run())&&os(t,4),uc(t),t.effect._dirtyLevel>=2&&os(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function wd(e,t,n=!1){let s,o;const i=ae(e);return i?(s=e,o=Ge):(s=e.get,o=e.set),new ac(s,o,i||!o,n)}function uc(e){var t;It&&Bt&&(e=ve(e),Xl(Bt,(t=e.dep)!=null?t:e.dep=ec(()=>e.dep=void 0,e instanceof ac?e:void 0)))}function os(e,t=4,n){e=ve(e);const s=e.dep;s&&Zl(s,t)}function Fe(e){return!!(e&&e.__v_isRef===!0)}function z(e){return fc(e,!1)}function Pt(e){return fc(e,!0)}function fc(e,t){return Fe(e)?e:new xd(e,t)}class xd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ve(t),this._value=n?t:Cn(t)}get value(){return uc(this),this._value}set value(t){const n=this.__v_isShallow||ps(t)||In(t);t=n?t:ve(t),Ot(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Cn(t),os(this,4))}}function u(e){return Fe(e)?e.value:e}function ct(e){return ae(e)?e():u(e)}const Id={get:(e,t,n)=>u(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Fe(o)&&!Fe(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function dc(e){return pn(e)?e:new Proxy(e,Id)}/** * @vue/runtime-core v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Ct(e,t,n,s){try{return s?e(...s):e()}catch(o){Ts(o,t,n)}}function nt(e,t,n,s){if(ae(e)){const o=Ct(e,t,n,s);return o&&zl(o)&&o.catch(i=>{Ts(i,t,n)}),o}if(se(e)){const o=[];for(let i=0;i>>1,o=Re[s],i=$n(o);irt&&Re.splice(t,1)}function Md(e){se(e)?Jt.push(...e):(!vt||!vt.includes(e,e.allowRecurse?Rt+1:Rt))&&Jt.push(e),pc()}function fr(e,t,n=Sn?rt+1:0){for(;n$n(n)-$n(s));if(Jt.length=0,vt){vt.push(...t);return}for(vt=t,Rt=0;Rte.id==null?1/0:e.id,Td=(e,t)=>{const n=$n(e)-$n(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function mc(e){ko=!1,Sn=!0,Re.sort(Td);try{for(rt=0;rtOe(p)?p.trim():p)),d&&(o=n.map(Vf))}let l,c=s[l=Ks(t)]||s[l=Ks(Xt(t))];!c&&i&&(c=s[l=Ks(en(t))]),c&&nt(c,e,6,o);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,nt(a,e,6,o)}}function yc(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let r={},l=!1;if(!ae(e)){const c=a=>{const f=yc(a,t,!0);f&&(l=!0,Pe(r,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(Se(e)&&s.set(e,null),null):(se(i)?i.forEach(c=>r[c]=null):Pe(r,i),Se(e)&&s.set(e,r),r)}function As(e,t){return!e||!Ss(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,en(t))||ge(e,t))}let De=null,vc=null;function gs(e){const t=De;return De=e,vc=e&&e.type.__scopeId||null,t}function ue(e,t=De,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&kr(-1);const i=gs(t);let r;try{r=e(...o)}finally{gs(i),s._d&&kr(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Gs(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:r,attrs:l,emit:c,render:a,renderCache:f,props:d,data:h,setupState:p,ctx:_,inheritAttrs:I}=e,k=gs(e);let $,C;try{if(n.shapeFlag&4){const A=o||s,q=A;$=it(a.call(q,A,f,d,p,h,_)),C=l}else{const A=t;$=it(A.length>1?A(d,{attrs:l,slots:r,emit:c}):A(d,null)),C=t.props?l:Pd(l)}}catch(A){vn.length=0,Ts(A,e,1),$=L(Mt)}let b=$;if(C&&I!==!1){const A=Object.keys(C),{shapeFlag:q}=b;A.length&&q&7&&(i&&A.some(zo)&&(C=Ld(C,i)),b=Zt(b,C,!1,!0))}return n.dirs&&(b=Zt(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),$=b,gs(k),$}const Pd=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ss(n))&&((t||(t={}))[n]=e[n]);return t},Ld=(e,t)=>{const n={};for(const s in e)(!zo(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Fd(e,t,n){const{props:s,children:o,component:i}=e,{props:r,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?dr(s,r,a):!!r;if(c&8){const f=t.dynamicProps;for(let d=0;de.__isSuspense;function jd(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):Md(e)}const Bd=Symbol.for("v-scx"),Dd=()=>is(Bd),Yn={};function ye(e,t,n){return bc(e,t,n)}function bc(e,t,{immediate:n,deep:s,flush:o,once:i,onTrack:r,onTrigger:l}=xe){if(t&&i){const R=t;t=(...F)=>{R(...F),q()}}const c=Ne,a=R=>s===!0?R:Wt(R,s===!1?1:void 0);let f,d=!1,h=!1;if(Le(e)?(f=()=>e.value,d=ps(e)):pn(e)?(f=()=>a(e),d=!0):se(e)?(h=!0,d=e.some(R=>pn(R)||ps(R)),f=()=>e.map(R=>{if(Le(R))return R.value;if(pn(R))return a(R);if(ae(R))return Ct(R,c,2)})):ae(e)?t?f=()=>Ct(e,c,2):f=()=>(p&&p(),nt(e,c,3,[_])):f=Ge,t&&s){const R=f;f=()=>Wt(R())}let p,_=R=>{p=b.onStop=()=>{Ct(R,c,4),p=b.onStop=void 0}},I;if(Es)if(_=Ge,t?n&&nt(t,c,3,[f(),h?[]:void 0,_]):f(),o==="sync"){const R=Dd();I=R.__watcherHandles||(R.__watcherHandles=[])}else return Ge;let k=h?new Array(e.length).fill(Yn):Yn;const $=()=>{if(!(!b.active||!b.dirty))if(t){const R=b.run();(s||d||(h?R.some((F,W)=>Ot(F,k[W])):Ot(R,k)))&&(p&&p(),nt(t,c,3,[R,k===Yn?void 0:h&&k[0]===Yn?[]:k,_]),k=R)}else b.run()};$.allowRecurse=!!t;let C;o==="sync"?C=$:o==="post"?C=()=>He($,c&&c.suspense):($.pre=!0,c&&($.id=c.uid),C=()=>Zo($));const b=new Ko(f,Ge,C),A=ed(),q=()=>{b.stop(),A&&Uo(A.effects,b)};return t?n?$():k=b.run():o==="post"?He(b.run.bind(b),c&&c.suspense):b.run(),I&&I.push(q),q}function Hd(e,t,n){const s=this.proxy,o=Oe(e)?e.includes(".")?_c(s,e):()=>s[e]:e.bind(s,s);let i;ae(t)?i=t:(i=t.handler,n=t);const r=Rn(this),l=bc(o,i.bind(s),n);return r(),l}function _c(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o{Wt(s,t,n)});else if(Vl(e))for(const s in e)Wt(e[s],t,n);return e}function Ft(e,t,n,s){const o=e.dirs,i=t&&t.dirs;for(let r=0;r!!e.type.__asyncLoader,kc=e=>e.type.__isKeepAlive;function zd(e,t){wc(e,"a",t)}function Ud(e,t){wc(e,"da",t)}function wc(e,t,n=Ne){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ps(t,s,n),n){let o=n.parent;for(;o&&o.parent;)kc(o.parent.vnode)&&Vd(s,t,n,o),o=o.parent}}function Vd(e,t,n,s){const o=Ps(t,e,s,!0);Ls(()=>{Uo(s[t],o)},n)}function Ps(e,t,n=Ne,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Tt();const l=Rn(n),c=nt(t,n,e,r);return l(),At(),c});return s?o.unshift(i):o.push(i),i}}const ht=e=>(t,n=Ne)=>(!Es||e==="sp")&&Ps(e,(...s)=>t(...s),n),Kd=ht("bm"),xc=ht("m"),Wd=ht("bu"),Ic=ht("u"),qd=ht("bum"),Ls=ht("um"),Gd=ht("sp"),Jd=ht("rtg"),Yd=ht("rtc");function Qd(e,t=Ne){Ps("ec",e,t)}function Ye(e,t,n,s){let o;const i=n&&n[s];if(se(e)||Oe(e)){o=new Array(e.length);for(let r=0,l=e.length;rt(r,l,void 0,i&&i[l]));else{const r=Object.keys(e);o=new Array(r.length);for(let l=0,c=r.length;l{const i=s.fn(...o);return i&&(i.key=s.key),i}:s.fn)}return e}function je(e,t,n={},s,o){if(De.isCE||De.parent&&gn(De.parent)&&De.parent.isCE)return t!=="default"&&(n.name=t),L("slot",n,s&&s());let i=e[t];i&&i._c&&(i._d=!1),m();const r=i&&Cc(i(n)),l=K(ie,{key:n.key||r&&r.key||`_${t}`},r||(s?s():[]),r&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Cc(e){return e.some(t=>Dc(t)?!(t.type===Mt||t.type===ie&&!Cc(t.children)):!0)?e:null}const wo=e=>e?Vc(e)?si(e)||e.proxy:wo(e.parent):null,mn=Pe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>wo(e.parent),$root:e=>wo(e.root),$emit:e=>e.emit,$options:e=>ei(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Zo(e.update)}),$nextTick:e=>e.n||(e.n=Sd.bind(e.proxy)),$watch:e=>Hd.bind(e)}),Js=(e,t)=>e!==xe&&!e.__isScriptSetup&&ge(e,t),Zd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:r,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const p=r[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Js(s,t))return r[t]=1,s[t];if(o!==xe&&ge(o,t))return r[t]=2,o[t];if((a=e.propsOptions[0])&&ge(a,t))return r[t]=3,i[t];if(n!==xe&&ge(n,t))return r[t]=4,n[t];xo&&(r[t]=0)}}const f=mn[t];let d,h;if(f)return t==="$attrs"&&Ve(e.attrs,"get",""),f(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==xe&&ge(n,t))return r[t]=4,n[t];if(h=c.config.globalProperties,ge(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Js(o,t)?(o[t]=n,!0):s!==xe&&ge(s,t)?(s[t]=n,!0):ge(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:i}},r){let l;return!!n[r]||e!==xe&&ge(e,r)||Js(t,r)||(l=i[0])&&ge(l,r)||ge(s,r)||ge(mn,r)||ge(o.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Sc(){return eh().slots}function eh(){const e=Ih();return e.setupContext||(e.setupContext=Wc(e))}function hr(e){return se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xo=!0;function th(e){const t=ei(e),n=e.proxy,s=e.ctx;xo=!1,t.beforeCreate&&pr(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:l,provide:c,inject:a,created:f,beforeMount:d,mounted:h,beforeUpdate:p,updated:_,activated:I,deactivated:k,beforeDestroy:$,beforeUnmount:C,destroyed:b,unmounted:A,render:q,renderTracked:R,renderTriggered:F,errorCaptured:W,serverPrefetch:U,expose:Y,inheritAttrs:ee,components:le,directives:Q,filters:te}=t;if(a&&nh(a,s,null),r)for(const ce in r){const pe=r[ce];ae(pe)&&(s[ce]=pe.bind(n))}if(o){const ce=o.call(n,n);Se(ce)&&(e.data=tn(ce))}if(xo=!0,i)for(const ce in i){const pe=i[ce],qe=ae(pe)?pe.bind(n,n):ae(pe.get)?pe.get.bind(n,n):Ge,ne=!ae(pe)&&ae(pe.set)?pe.set.bind(n):Ge,Ie=O({get:qe,set:ne});Object.defineProperty(s,ce,{enumerable:!0,configurable:!0,get:()=>Ie.value,set:Me=>Ie.value=Me})}if(l)for(const ce in l)$c(l[ce],s,n,ce);if(c){const ce=ae(c)?c.call(n):c;Reflect.ownKeys(ce).forEach(pe=>{ch(pe,ce[pe])})}f&&pr(f,e,"c");function de(ce,pe){se(pe)?pe.forEach(qe=>ce(qe.bind(n))):pe&&ce(pe.bind(n))}if(de(Kd,d),de(xc,h),de(Wd,p),de(Ic,_),de(zd,I),de(Ud,k),de(Qd,W),de(Yd,R),de(Jd,F),de(qd,C),de(Ls,A),de(Gd,U),se(Y))if(Y.length){const ce=e.exposed||(e.exposed={});Y.forEach(pe=>{Object.defineProperty(ce,pe,{get:()=>n[pe],set:qe=>n[pe]=qe})})}else e.exposed||(e.exposed={});q&&e.render===Ge&&(e.render=q),ee!=null&&(e.inheritAttrs=ee),le&&(e.components=le),Q&&(e.directives=Q)}function nh(e,t,n=Ge){se(e)&&(e=Io(e));for(const s in e){const o=e[s];let i;Se(o)?"default"in o?i=is(o.from||s,o.default,!0):i=is(o.from||s):i=is(o),Le(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function pr(e,t,n){nt(se(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function $c(e,t,n,s){const o=s.includes(".")?_c(n,s):()=>n[s];if(Oe(e)){const i=t[e];ae(i)&&ye(o,i)}else if(ae(e))ye(o,e.bind(n));else if(Se(e))if(se(e))e.forEach(i=>$c(i,t,n,s));else{const i=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(i)&&ye(o,i,e)}}function ei(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,l=i.get(t);let c;return l?c=l:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(a=>ms(c,a,r,!0)),ms(c,t,r)),Se(t)&&i.set(t,c),c}function ms(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&ms(e,i,n,!0),o&&o.forEach(r=>ms(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const l=sh[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const sh={data:gr,props:mr,emits:mr,methods:un,computed:un,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:un,directives:un,watch:ih,provide:gr,inject:oh};function gr(e,t){return t?e?function(){return Pe(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function oh(e,t){return un(Io(e),Io(t))}function Io(e){if(se(e)){const t={};for(let n=0;n1)return n&&ae(t)?t.call(s&&s.proxy):t}}const Mc={},Tc=()=>Object.create(Mc),Ac=e=>Object.getPrototypeOf(e)===Mc;function ah(e,t,n,s=!1){const o={},i=Tc();e.propsDefaults=Object.create(null),Pc(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:_d(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function uh(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,l=ve(o),[c]=e.propsOptions;let a=!1;if((s||r>0)&&!(r&16)){if(r&8){const f=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[h,p]=Lc(d,t,!0);Pe(r,h),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!c)return Se(e)&&s.set(e,qt),qt;if(se(i))for(let f=0;f-1,p[1]=I<0||_-1||ge(p,"default"))&&l.push(d)}}}const a=[r,l];return Se(e)&&s.set(e,a),a}function yr(e){return e[0]!=="$"&&!hn(e)}function vr(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function br(e,t){return vr(e)===vr(t)}function _r(e,t){return se(t)?t.findIndex(n=>br(n,e)):ae(t)&&br(t,e)?0:-1}const Fc=e=>e[0]==="_"||e==="$stable",ti=e=>se(e)?e.map(it):[it(e)],fh=(e,t,n)=>{if(t._n)return t;const s=ue((...o)=>ti(t(...o)),n);return s._c=!1,s},Ec=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Fc(o))continue;const i=e[o];if(ae(i))t[o]=fh(o,i,s);else if(i!=null){const r=ti(i);t[o]=()=>r}}},Rc=(e,t)=>{const n=ti(t);e.slots.default=()=>n},dh=(e,t)=>{const n=e.slots=Tc();if(e.vnode.shapeFlag&32){const s=t._;s?(Pe(n,t),Wl(n,"_",s,!0)):Ec(t,n)}else t&&Rc(e,t)},hh=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,r=xe;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Pe(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Ec(t,o)),r=t}else t&&(Rc(e,t),r={default:1});if(i)for(const l in o)!Fc(l)&&r[l]==null&&delete o[l]};function So(e,t,n,s,o=!1){if(se(e)){e.forEach((h,p)=>So(h,t&&(se(t)?t[p]:t),n,s,o));return}if(gn(s)&&!o)return;const i=s.shapeFlag&4?si(s.component)||s.component.proxy:s.el,r=o?null:i,{i:l,r:c}=e,a=t&&t.r,f=l.refs===xe?l.refs={}:l.refs,d=l.setupState;if(a!=null&&a!==c&&(Oe(a)?(f[a]=null,ge(d,a)&&(d[a]=null)):Le(a)&&(a.value=null)),ae(c))Ct(c,l,12,[r,f]);else{const h=Oe(c),p=Le(c);if(h||p){const _=()=>{if(e.f){const I=h?ge(d,c)?d[c]:f[c]:c.value;o?se(I)&&Uo(I,i):se(I)?I.includes(i)||I.push(i):h?(f[c]=[i],ge(d,c)&&(d[c]=f[c])):(c.value=[i],e.k&&(f[e.k]=c.value))}else h?(f[c]=r,ge(d,c)&&(d[c]=r)):p&&(c.value=r,e.k&&(f[e.k]=r))};r?(_.id=-1,He(_,n)):_()}}}const He=jd;function ph(e){return gh(e)}function gh(e,t){const n=ql();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:r,createText:l,createComment:c,setText:a,setElementText:f,parentNode:d,nextSibling:h,setScopeId:p=Ge,insertStaticContent:_}=e,I=(g,y,S,M=null,T=null,j=null,D=void 0,N=null,B=!!y.dynamicChildren)=>{if(g===y)return;g&&!ln(g,y)&&(M=Nn(g),Me(g,T,j,!0),g=null),y.patchFlag===-2&&(B=!1,y.dynamicChildren=null);const{type:P,ref:H,shapeFlag:X}=y;switch(P){case Fs:k(g,y,S,M);break;case Mt:$(g,y,S,M);break;case rs:g==null&&C(y,S,M,D);break;case ie:le(g,y,S,M,T,j,D,N,B);break;default:X&1?q(g,y,S,M,T,j,D,N,B):X&6?Q(g,y,S,M,T,j,D,N,B):(X&64||X&128)&&P.process(g,y,S,M,T,j,D,N,B,Vt)}H!=null&&T&&So(H,g&&g.ref,j,y||g,!y)},k=(g,y,S,M)=>{if(g==null)s(y.el=l(y.children),S,M);else{const T=y.el=g.el;y.children!==g.children&&a(T,y.children)}},$=(g,y,S,M)=>{g==null?s(y.el=c(y.children||""),S,M):y.el=g.el},C=(g,y,S,M)=>{[g.el,g.anchor]=_(g.children,y,S,M,g.el,g.anchor)},b=({el:g,anchor:y},S,M)=>{let T;for(;g&&g!==y;)T=h(g),s(g,S,M),g=T;s(y,S,M)},A=({el:g,anchor:y})=>{let S;for(;g&&g!==y;)S=h(g),o(g),g=S;o(y)},q=(g,y,S,M,T,j,D,N,B)=>{y.type==="svg"?D="svg":y.type==="math"&&(D="mathml"),g==null?R(y,S,M,T,j,D,N,B):U(g,y,T,j,D,N,B)},R=(g,y,S,M,T,j,D,N)=>{let B,P;const{props:H,shapeFlag:X,transition:G,dirs:oe}=g;if(B=g.el=r(g.type,j,H&&H.is,H),X&8?f(B,g.children):X&16&&W(g.children,B,null,M,T,Ys(g,j),D,N),oe&&Ft(g,null,M,"created"),F(B,g,g.scopeId,D,M),H){for(const be in H)be!=="value"&&!hn(be)&&i(B,be,null,H[be],j,g.children,M,T,ut);"value"in H&&i(B,"value",null,H.value,j),(P=H.onVnodeBeforeMount)&&ot(P,M,g)}oe&&Ft(g,null,M,"beforeMount");const he=mh(T,G);he&&G.beforeEnter(B),s(B,y,S),((P=H&&H.onVnodeMounted)||he||oe)&&He(()=>{P&&ot(P,M,g),he&&G.enter(B),oe&&Ft(g,null,M,"mounted")},T)},F=(g,y,S,M,T)=>{if(S&&p(g,S),M)for(let j=0;j{for(let P=B;P{const N=y.el=g.el;let{patchFlag:B,dynamicChildren:P,dirs:H}=y;B|=g.patchFlag&16;const X=g.props||xe,G=y.props||xe;let oe;if(S&&Et(S,!1),(oe=G.onVnodeBeforeUpdate)&&ot(oe,S,y,g),H&&Ft(y,g,S,"beforeUpdate"),S&&Et(S,!0),P?Y(g.dynamicChildren,P,N,S,M,Ys(y,T),j):D||pe(g,y,N,null,S,M,Ys(y,T),j,!1),B>0){if(B&16)ee(N,y,X,G,S,M,T);else if(B&2&&X.class!==G.class&&i(N,"class",null,G.class,T),B&4&&i(N,"style",X.style,G.style,T),B&8){const he=y.dynamicProps;for(let be=0;be{oe&&ot(oe,S,y,g),H&&Ft(y,g,S,"updated")},M)},Y=(g,y,S,M,T,j,D)=>{for(let N=0;N{if(S!==M){if(S!==xe)for(const N in S)!hn(N)&&!(N in M)&&i(g,N,S[N],null,D,y.children,T,j,ut);for(const N in M){if(hn(N))continue;const B=M[N],P=S[N];B!==P&&N!=="value"&&i(g,N,P,B,D,y.children,T,j,ut)}"value"in M&&i(g,"value",S.value,M.value,D)}},le=(g,y,S,M,T,j,D,N,B)=>{const P=y.el=g?g.el:l(""),H=y.anchor=g?g.anchor:l("");let{patchFlag:X,dynamicChildren:G,slotScopeIds:oe}=y;oe&&(N=N?N.concat(oe):oe),g==null?(s(P,S,M),s(H,S,M),W(y.children||[],S,H,T,j,D,N,B)):X>0&&X&64&&G&&g.dynamicChildren?(Y(g.dynamicChildren,G,S,T,j,D,N),(y.key!=null||T&&y===T.subTree)&&Nc(g,y,!0)):pe(g,y,S,H,T,j,D,N,B)},Q=(g,y,S,M,T,j,D,N,B)=>{y.slotScopeIds=N,g==null?y.shapeFlag&512?T.ctx.activate(y,S,M,D,B):te(y,S,M,T,j,D,B):V(g,y,B)},te=(g,y,S,M,T,j,D)=>{const N=g.component=xh(g,M,T);if(kc(g)&&(N.ctx.renderer=Vt),Ch(N),N.asyncDep){if(T&&T.registerDep(N,de),!g.el){const B=N.subTree=L(Mt);$(null,B,y,S)}}else de(N,g,y,S,T,j,D)},V=(g,y,S)=>{const M=y.component=g.component;if(Fd(g,y,S))if(M.asyncDep&&!M.asyncResolved){ce(M,y,S);return}else M.next=y,Od(M.update),M.effect.dirty=!0,M.update();else y.el=g.el,M.vnode=y},de=(g,y,S,M,T,j,D)=>{const N=()=>{if(g.isMounted){let{next:H,bu:X,u:G,parent:oe,vnode:he}=g;{const Kt=jc(g);if(Kt){H&&(H.el=he.el,ce(g,H,D)),Kt.asyncDep.then(()=>{g.isUnmounted||N()});return}}let be=H,we;Et(g,!1),H?(H.el=he.el,ce(g,H,D)):H=he,X&&Ws(X),(we=H.props&&H.props.onVnodeBeforeUpdate)&&ot(we,oe,H,he),Et(g,!0);const Te=Gs(g),Qe=g.subTree;g.subTree=Te,I(Qe,Te,d(Qe.el),Nn(Qe),g,T,j),H.el=Te.el,be===null&&Ed(g,Te.el),G&&He(G,T),(we=H.props&&H.props.onVnodeUpdated)&&He(()=>ot(we,oe,H,he),T)}else{let H;const{el:X,props:G}=y,{bm:oe,m:he,parent:be}=g,we=gn(y);if(Et(g,!1),oe&&Ws(oe),!we&&(H=G&&G.onVnodeBeforeMount)&&ot(H,be,y),Et(g,!0),X&&Bs){const Te=()=>{g.subTree=Gs(g),Bs(X,g.subTree,g,T,null)};we?y.type.__asyncLoader().then(()=>!g.isUnmounted&&Te()):Te()}else{const Te=g.subTree=Gs(g);I(null,Te,S,M,g,T,j),y.el=Te.el}if(he&&He(he,T),!we&&(H=G&&G.onVnodeMounted)){const Te=y;He(()=>ot(H,be,Te),T)}(y.shapeFlag&256||be&&gn(be.vnode)&&be.vnode.shapeFlag&256)&&g.a&&He(g.a,T),g.isMounted=!0,y=S=M=null}},B=g.effect=new Ko(N,Ge,()=>Zo(P),g.scope),P=g.update=()=>{B.dirty&&B.run()};P.id=g.uid,Et(g,!0),P()},ce=(g,y,S)=>{y.component=g;const M=g.vnode.props;g.vnode=y,g.next=null,uh(g,y.props,M,S),hh(g,y.children,S),Tt(),fr(g),At()},pe=(g,y,S,M,T,j,D,N,B=!1)=>{const P=g&&g.children,H=g?g.shapeFlag:0,X=y.children,{patchFlag:G,shapeFlag:oe}=y;if(G>0){if(G&128){ne(P,X,S,M,T,j,D,N,B);return}else if(G&256){qe(P,X,S,M,T,j,D,N,B);return}}oe&8?(H&16&&ut(P,T,j),X!==P&&f(S,X)):H&16?oe&16?ne(P,X,S,M,T,j,D,N,B):ut(P,T,j,!0):(H&8&&f(S,""),oe&16&&W(X,S,M,T,j,D,N,B))},qe=(g,y,S,M,T,j,D,N,B)=>{g=g||qt,y=y||qt;const P=g.length,H=y.length,X=Math.min(P,H);let G;for(G=0;GH?ut(g,T,j,!0,!1,X):W(y,S,M,T,j,D,N,B,X)},ne=(g,y,S,M,T,j,D,N,B)=>{let P=0;const H=y.length;let X=g.length-1,G=H-1;for(;P<=X&&P<=G;){const oe=g[P],he=y[P]=B?bt(y[P]):it(y[P]);if(ln(oe,he))I(oe,he,S,null,T,j,D,N,B);else break;P++}for(;P<=X&&P<=G;){const oe=g[X],he=y[G]=B?bt(y[G]):it(y[G]);if(ln(oe,he))I(oe,he,S,null,T,j,D,N,B);else break;X--,G--}if(P>X){if(P<=G){const oe=G+1,he=oeG)for(;P<=X;)Me(g[P],T,j,!0),P++;else{const oe=P,he=P,be=new Map;for(P=he;P<=G;P++){const Ke=y[P]=B?bt(y[P]):it(y[P]);Ke.key!=null&&be.set(Ke.key,P)}let we,Te=0;const Qe=G-he+1;let Kt=!1,Ci=0;const sn=new Array(Qe);for(P=0;P=Qe){Me(Ke,T,j,!0);continue}let st;if(Ke.key!=null)st=be.get(Ke.key);else for(we=he;we<=G;we++)if(sn[we-he]===0&&ln(Ke,y[we])){st=we;break}st===void 0?Me(Ke,T,j,!0):(sn[st-he]=P+1,st>=Ci?Ci=st:Kt=!0,I(Ke,y[st],S,null,T,j,D,N,B),Te++)}const Si=Kt?yh(sn):qt;for(we=Si.length-1,P=Qe-1;P>=0;P--){const Ke=he+P,st=y[Ke],$i=Ke+1{const{el:j,type:D,transition:N,children:B,shapeFlag:P}=g;if(P&6){Ie(g.component.subTree,y,S,M);return}if(P&128){g.suspense.move(y,S,M);return}if(P&64){D.move(g,y,S,Vt);return}if(D===ie){s(j,y,S);for(let X=0;XN.enter(j),T);else{const{leave:X,delayLeave:G,afterLeave:oe}=N,he=()=>s(j,y,S),be=()=>{X(j,()=>{he(),oe&&oe()})};G?G(j,he,be):be()}else s(j,y,S)},Me=(g,y,S,M=!1,T=!1)=>{const{type:j,props:D,ref:N,children:B,dynamicChildren:P,shapeFlag:H,patchFlag:X,dirs:G}=g;if(N!=null&&So(N,null,S,g,!0),H&256){y.ctx.deactivate(g);return}const oe=H&1&&G,he=!gn(g);let be;if(he&&(be=D&&D.onVnodeBeforeUnmount)&&ot(be,y,g),H&6)ka(g.component,S,M);else{if(H&128){g.suspense.unmount(S,M);return}oe&&Ft(g,null,y,"beforeUnmount"),H&64?g.type.remove(g,y,S,T,Vt,M):P&&(j!==ie||X>0&&X&64)?ut(P,y,S,!1,!0):(j===ie&&X&384||!T&&H&16)&&ut(B,y,S),M&&pt(g)}(he&&(be=D&&D.onVnodeUnmounted)||oe)&&He(()=>{be&&ot(be,y,g),oe&&Ft(g,null,y,"unmounted")},S)},pt=g=>{const{type:y,el:S,anchor:M,transition:T}=g;if(y===ie){xi(S,M);return}if(y===rs){A(g);return}const j=()=>{o(S),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(g.shapeFlag&1&&T&&!T.persisted){const{leave:D,delayLeave:N}=T,B=()=>D(S,j);N?N(g.el,j,B):B()}else j()},xi=(g,y)=>{let S;for(;g!==y;)S=h(g),o(g),g=S;o(y)},ka=(g,y,S)=>{const{bum:M,scope:T,update:j,subTree:D,um:N}=g;M&&Ws(M),T.stop(),j&&(j.active=!1,Me(D,g,y,S)),N&&He(N,y),He(()=>{g.isUnmounted=!0},y),y&&y.pendingBranch&&!y.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===y.pendingId&&(y.deps--,y.deps===0&&y.resolve())},ut=(g,y,S,M=!1,T=!1,j=0)=>{for(let D=j;Dg.shapeFlag&6?Nn(g.component.subTree):g.shapeFlag&128?g.suspense.next():h(g.anchor||g.el);let Ns=!1;const Ii=(g,y,S)=>{g==null?y._vnode&&Me(y._vnode,null,null,!0):I(y._vnode||null,g,y,null,null,null,S),Ns||(Ns=!0,fr(),gc(),Ns=!1),y._vnode=g},Vt={p:I,um:Me,m:Ie,r:pt,mt:te,mc:W,pc:pe,pbc:Y,n:Nn,o:e};let js,Bs;return t&&([js,Bs]=t(Vt)),{render:Ii,hydrate:js,createApp:lh(Ii,js)}}function Ys({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Et({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function mh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Nc(e,t,n=!1){const s=e.children,o=t.children;if(se(s)&&se(o))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function jc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jc(t)}const vh=e=>e.__isTeleport,ie=Symbol.for("v-fgt"),Fs=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),vn=[];let tt=null;function m(e=!1){vn.push(tt=e?null:[])}function bh(){vn.pop(),tt=vn[vn.length-1]||null}let On=1;function kr(e){On+=e}function Bc(e){return e.dynamicChildren=On>0?tt||qt:null,bh(),On>0&&tt&&tt.push(e),e}function w(e,t,n,s,o,i){return Bc(x(e,t,n,s,o,i,!0))}function K(e,t,n,s,o){return Bc(L(e,t,n,s,o,!0))}function Dc(e){return e?e.__v_isVNode===!0:!1}function ln(e,t){return e.type===t.type&&e.key===t.key}const Hc=({key:e})=>e??null,ls=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Oe(e)||Le(e)||ae(e)?{i:De,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,s=0,o=null,i=e===ie?0:1,r=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hc(t),ref:t&&ls(t),scopeId:vc,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:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:De};return l?(ni(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=Oe(n)?8:16),On>0&&!r&&tt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&tt.push(c),c}const L=_h;function _h(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Rd)&&(e=Mt),Dc(e)){const l=Zt(e,t,!0);return n&&ni(l,n),On>0&&!i&&tt&&(l.shapeFlag&6?tt[tt.indexOf(e)]=l:tt.push(l)),l.patchFlag|=-2,l}if(Oh(e)&&(e=e.__vccOpts),t){t=zc(t);let{class:l,style:c}=t;l&&!Oe(l)&&(t.class=re(l)),Se(c)&&(cc(c)&&!se(c)&&(c=Pe({},c)),t.style=Je(c))}const r=Oe(e)?1:Nd(e)?128:vh(e)?64:Se(e)?4:ae(e)?2:0;return x(e,t,n,s,o,r,i,!0)}function zc(e){return e?cc(e)||Ac(e)?Pe({},e):e:null}function Zt(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:r,children:l,transition:c}=e,a=t?En(o||{},t):o,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Hc(a),ref:t&&t.ref?n&&i?se(i)?i.concat(ls(t)):[i,ls(t)]:ls(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&(f.transition=c.clone(f)),f}function Ae(e=" ",t=0){return L(Fs,null,e,t)}function Uc(e,t){const n=L(rs,null,e);return n.staticCount=t,n}function E(e="",t=!1){return t?(m(),K(Mt,null,e)):L(Mt,null,e)}function it(e){return e==null||typeof e=="boolean"?L(Mt):se(e)?L(ie,null,e.slice()):typeof e=="object"?bt(e):L(Fs,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function ni(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(se(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),ni(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ac(t)?t._ctx=De:o===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:De},n=32):(t=String(t),s&64?(n=16,t=[Ae(t)]):n=8);e.children=t,e.shapeFlag|=n}function En(...e){const t={};for(let n=0;nNe||De;let ys,$o;{const e=ql(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};ys=t("__VUE_INSTANCE_SETTERS__",n=>Ne=n),$o=t("__VUE_SSR_SETTERS__",n=>Es=n)}const Rn=e=>{const t=Ne;return ys(e),e.scope.on(),()=>{e.scope.off(),ys(t)}},wr=()=>{Ne&&Ne.scope.off(),ys(null)};function Vc(e){return e.vnode.shapeFlag&4}let Es=!1;function Ch(e,t=!1){t&&$o(t);const{props:n,children:s}=e.vnode,o=Vc(e);ah(e,n,o,t),dh(e,s);const i=o?Sh(e,t):void 0;return t&&$o(!1),i}function Sh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Zd);const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Wc(e):null,i=Rn(e);Tt();const r=Ct(s,e,0,[e.props,o]);if(At(),i(),zl(r)){if(r.then(wr,wr),t)return r.then(l=>{xr(e,l,t)}).catch(l=>{Ts(l,e,0)});e.asyncDep=r}else xr(e,r,t)}else Kc(e,t)}function xr(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=dc(t)),Kc(e,n)}let Ir;function Kc(e,t,n){const s=e.type;if(!e.render){if(!t&&Ir&&!s.render){const o=s.template||ei(e).template;if(o){const{isCustomElement:i,compilerOptions:r}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,a=Pe(Pe({isCustomElement:i,delimiters:l},r),c);s.render=Ir(o,a)}}e.render=s.render||Ge}{const o=Rn(e);Tt();try{th(e)}finally{At(),o()}}}const $h={get(e,t){return Ve(e,"get",""),e[t]}};function Wc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$h),slots:e.slots,emit:e.emit,expose:t}}function si(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(dc(kd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}}))}function Oh(e){return ae(e)&&"__vccOpts"in e}const O=(e,t)=>wd(e,t,Es),Mh="3.4.27";/** +**/function Ct(e,t,n,s){try{return s?e(...s):e()}catch(o){Ts(o,t,n)}}function nt(e,t,n,s){if(ae(e)){const o=Ct(e,t,n,s);return o&&zl(o)&&o.catch(i=>{Ts(i,t,n)}),o}if(se(e)){const o=[];for(let i=0;i>>1,o=Re[s],i=$n(o);irt&&Re.splice(t,1)}function Md(e){se(e)?Jt.push(...e):(!vt||!vt.includes(e,e.allowRecurse?Rt+1:Rt))&&Jt.push(e),pc()}function fr(e,t,n=Sn?rt+1:0){for(;n$n(n)-$n(s));if(Jt.length=0,vt){vt.push(...t);return}for(vt=t,Rt=0;Rte.id==null?1/0:e.id,Td=(e,t)=>{const n=$n(e)-$n(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function mc(e){ko=!1,Sn=!0,Re.sort(Td);try{for(rt=0;rtOe(p)?p.trim():p)),d&&(o=n.map(Vf))}let l,c=s[l=Ks(t)]||s[l=Ks(Xt(t))];!c&&i&&(c=s[l=Ks(en(t))]),c&&nt(c,e,6,o);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,nt(a,e,6,o)}}function yc(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let r={},l=!1;if(!ae(e)){const c=a=>{const f=yc(a,t,!0);f&&(l=!0,Le(r,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(Se(e)&&s.set(e,null),null):(se(i)?i.forEach(c=>r[c]=null):Le(r,i),Se(e)&&s.set(e,r),r)}function As(e,t){return!e||!Ss(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,en(t))||ge(e,t))}let De=null,vc=null;function gs(e){const t=De;return De=e,vc=e&&e.type.__scopeId||null,t}function ue(e,t=De,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&kr(-1);const i=gs(t);let r;try{r=e(...o)}finally{gs(i),s._d&&kr(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Gs(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[i],slots:r,attrs:l,emit:c,render:a,renderCache:f,props:d,data:h,setupState:p,ctx:_,inheritAttrs:I}=e,k=gs(e);let $,C;try{if(n.shapeFlag&4){const A=o||s,q=A;$=it(a.call(q,A,f,d,p,h,_)),C=l}else{const A=t;$=it(A.length>1?A(d,{attrs:l,slots:r,emit:c}):A(d,null)),C=t.props?l:Pd(l)}}catch(A){vn.length=0,Ts(A,e,1),$=L(Mt)}let b=$;if(C&&I!==!1){const A=Object.keys(C),{shapeFlag:q}=b;A.length&&q&7&&(i&&A.some(zo)&&(C=Ld(C,i)),b=Zt(b,C,!1,!0))}return n.dirs&&(b=Zt(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),$=b,gs(k),$}const Pd=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ss(n))&&((t||(t={}))[n]=e[n]);return t},Ld=(e,t)=>{const n={};for(const s in e)(!zo(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Fd(e,t,n){const{props:s,children:o,component:i}=e,{props:r,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?dr(s,r,a):!!r;if(c&8){const f=t.dynamicProps;for(let d=0;de.__isSuspense;function jd(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):Md(e)}const Bd=Symbol.for("v-scx"),Dd=()=>is(Bd),Yn={};function ye(e,t,n){return bc(e,t,n)}function bc(e,t,{immediate:n,deep:s,flush:o,once:i,onTrack:r,onTrigger:l}=xe){if(t&&i){const R=t;t=(...F)=>{R(...F),q()}}const c=Ne,a=R=>s===!0?R:Wt(R,s===!1?1:void 0);let f,d=!1,h=!1;if(Fe(e)?(f=()=>e.value,d=ps(e)):pn(e)?(f=()=>a(e),d=!0):se(e)?(h=!0,d=e.some(R=>pn(R)||ps(R)),f=()=>e.map(R=>{if(Fe(R))return R.value;if(pn(R))return a(R);if(ae(R))return Ct(R,c,2)})):ae(e)?t?f=()=>Ct(e,c,2):f=()=>(p&&p(),nt(e,c,3,[_])):f=Ge,t&&s){const R=f;f=()=>Wt(R())}let p,_=R=>{p=b.onStop=()=>{Ct(R,c,4),p=b.onStop=void 0}},I;if(Es)if(_=Ge,t?n&&nt(t,c,3,[f(),h?[]:void 0,_]):f(),o==="sync"){const R=Dd();I=R.__watcherHandles||(R.__watcherHandles=[])}else return Ge;let k=h?new Array(e.length).fill(Yn):Yn;const $=()=>{if(!(!b.active||!b.dirty))if(t){const R=b.run();(s||d||(h?R.some((F,W)=>Ot(F,k[W])):Ot(R,k)))&&(p&&p(),nt(t,c,3,[R,k===Yn?void 0:h&&k[0]===Yn?[]:k,_]),k=R)}else b.run()};$.allowRecurse=!!t;let C;o==="sync"?C=$:o==="post"?C=()=>He($,c&&c.suspense):($.pre=!0,c&&($.id=c.uid),C=()=>Zo($));const b=new Ko(f,Ge,C),A=ed(),q=()=>{b.stop(),A&&Uo(A.effects,b)};return t?n?$():k=b.run():o==="post"?He(b.run.bind(b),c&&c.suspense):b.run(),I&&I.push(q),q}function Hd(e,t,n){const s=this.proxy,o=Oe(e)?e.includes(".")?_c(s,e):()=>s[e]:e.bind(s,s);let i;ae(t)?i=t:(i=t.handler,n=t);const r=Rn(this),l=bc(o,i.bind(s),n);return r(),l}function _c(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o{Wt(s,t,n)});else if(Vl(e))for(const s in e)Wt(e[s],t,n);return e}function Ft(e,t,n,s){const o=e.dirs,i=t&&t.dirs;for(let r=0;r!!e.type.__asyncLoader,kc=e=>e.type.__isKeepAlive;function zd(e,t){wc(e,"a",t)}function Ud(e,t){wc(e,"da",t)}function wc(e,t,n=Ne){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ps(t,s,n),n){let o=n.parent;for(;o&&o.parent;)kc(o.parent.vnode)&&Vd(s,t,n,o),o=o.parent}}function Vd(e,t,n,s){const o=Ps(t,e,s,!0);Ls(()=>{Uo(s[t],o)},n)}function Ps(e,t,n=Ne,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Tt();const l=Rn(n),c=nt(t,n,e,r);return l(),At(),c});return s?o.unshift(i):o.push(i),i}}const ht=e=>(t,n=Ne)=>(!Es||e==="sp")&&Ps(e,(...s)=>t(...s),n),Kd=ht("bm"),xc=ht("m"),Wd=ht("bu"),Ic=ht("u"),qd=ht("bum"),Ls=ht("um"),Gd=ht("sp"),Jd=ht("rtg"),Yd=ht("rtc");function Qd(e,t=Ne){Ps("ec",e,t)}function Ye(e,t,n,s){let o;const i=n&&n[s];if(se(e)||Oe(e)){o=new Array(e.length);for(let r=0,l=e.length;rt(r,l,void 0,i&&i[l]));else{const r=Object.keys(e);o=new Array(r.length);for(let l=0,c=r.length;l{const i=s.fn(...o);return i&&(i.key=s.key),i}:s.fn)}return e}function je(e,t,n={},s,o){if(De.isCE||De.parent&&gn(De.parent)&&De.parent.isCE)return t!=="default"&&(n.name=t),L("slot",n,s&&s());let i=e[t];i&&i._c&&(i._d=!1),m();const r=i&&Cc(i(n)),l=K(ie,{key:n.key||r&&r.key||`_${t}`},r||(s?s():[]),r&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Cc(e){return e.some(t=>Dc(t)?!(t.type===Mt||t.type===ie&&!Cc(t.children)):!0)?e:null}const wo=e=>e?Vc(e)?si(e)||e.proxy:wo(e.parent):null,mn=Le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>wo(e.parent),$root:e=>wo(e.root),$emit:e=>e.emit,$options:e=>ei(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Zo(e.update)}),$nextTick:e=>e.n||(e.n=Sd.bind(e.proxy)),$watch:e=>Hd.bind(e)}),Js=(e,t)=>e!==xe&&!e.__isScriptSetup&&ge(e,t),Zd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:r,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const p=r[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Js(s,t))return r[t]=1,s[t];if(o!==xe&&ge(o,t))return r[t]=2,o[t];if((a=e.propsOptions[0])&&ge(a,t))return r[t]=3,i[t];if(n!==xe&&ge(n,t))return r[t]=4,n[t];xo&&(r[t]=0)}}const f=mn[t];let d,h;if(f)return t==="$attrs"&&Ve(e.attrs,"get",""),f(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==xe&&ge(n,t))return r[t]=4,n[t];if(h=c.config.globalProperties,ge(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Js(o,t)?(o[t]=n,!0):s!==xe&&ge(s,t)?(s[t]=n,!0):ge(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:i}},r){let l;return!!n[r]||e!==xe&&ge(e,r)||Js(t,r)||(l=i[0])&&ge(l,r)||ge(s,r)||ge(mn,r)||ge(o.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Sc(){return eh().slots}function eh(){const e=Ih();return e.setupContext||(e.setupContext=Wc(e))}function hr(e){return se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xo=!0;function th(e){const t=ei(e),n=e.proxy,s=e.ctx;xo=!1,t.beforeCreate&&pr(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:l,provide:c,inject:a,created:f,beforeMount:d,mounted:h,beforeUpdate:p,updated:_,activated:I,deactivated:k,beforeDestroy:$,beforeUnmount:C,destroyed:b,unmounted:A,render:q,renderTracked:R,renderTriggered:F,errorCaptured:W,serverPrefetch:U,expose:Y,inheritAttrs:ee,components:le,directives:Q,filters:te}=t;if(a&&nh(a,s,null),r)for(const ce in r){const pe=r[ce];ae(pe)&&(s[ce]=pe.bind(n))}if(o){const ce=o.call(n,n);Se(ce)&&(e.data=tn(ce))}if(xo=!0,i)for(const ce in i){const pe=i[ce],qe=ae(pe)?pe.bind(n,n):ae(pe.get)?pe.get.bind(n,n):Ge,ne=!ae(pe)&&ae(pe.set)?pe.set.bind(n):Ge,Ie=O({get:qe,set:ne});Object.defineProperty(s,ce,{enumerable:!0,configurable:!0,get:()=>Ie.value,set:Me=>Ie.value=Me})}if(l)for(const ce in l)$c(l[ce],s,n,ce);if(c){const ce=ae(c)?c.call(n):c;Reflect.ownKeys(ce).forEach(pe=>{ch(pe,ce[pe])})}f&&pr(f,e,"c");function de(ce,pe){se(pe)?pe.forEach(qe=>ce(qe.bind(n))):pe&&ce(pe.bind(n))}if(de(Kd,d),de(xc,h),de(Wd,p),de(Ic,_),de(zd,I),de(Ud,k),de(Qd,W),de(Yd,R),de(Jd,F),de(qd,C),de(Ls,A),de(Gd,U),se(Y))if(Y.length){const ce=e.exposed||(e.exposed={});Y.forEach(pe=>{Object.defineProperty(ce,pe,{get:()=>n[pe],set:qe=>n[pe]=qe})})}else e.exposed||(e.exposed={});q&&e.render===Ge&&(e.render=q),ee!=null&&(e.inheritAttrs=ee),le&&(e.components=le),Q&&(e.directives=Q)}function nh(e,t,n=Ge){se(e)&&(e=Io(e));for(const s in e){const o=e[s];let i;Se(o)?"default"in o?i=is(o.from||s,o.default,!0):i=is(o.from||s):i=is(o),Fe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function pr(e,t,n){nt(se(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function $c(e,t,n,s){const o=s.includes(".")?_c(n,s):()=>n[s];if(Oe(e)){const i=t[e];ae(i)&&ye(o,i)}else if(ae(e))ye(o,e.bind(n));else if(Se(e))if(se(e))e.forEach(i=>$c(i,t,n,s));else{const i=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(i)&&ye(o,i,e)}}function ei(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,l=i.get(t);let c;return l?c=l:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(a=>ms(c,a,r,!0)),ms(c,t,r)),Se(t)&&i.set(t,c),c}function ms(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&ms(e,i,n,!0),o&&o.forEach(r=>ms(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const l=sh[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const sh={data:gr,props:mr,emits:mr,methods:un,computed:un,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:un,directives:un,watch:ih,provide:gr,inject:oh};function gr(e,t){return t?e?function(){return Le(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function oh(e,t){return un(Io(e),Io(t))}function Io(e){if(se(e)){const t={};for(let n=0;n1)return n&&ae(t)?t.call(s&&s.proxy):t}}const Mc={},Tc=()=>Object.create(Mc),Ac=e=>Object.getPrototypeOf(e)===Mc;function ah(e,t,n,s=!1){const o={},i=Tc();e.propsDefaults=Object.create(null),Pc(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:_d(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function uh(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,l=ve(o),[c]=e.propsOptions;let a=!1;if((s||r>0)&&!(r&16)){if(r&8){const f=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[h,p]=Lc(d,t,!0);Le(r,h),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!c)return Se(e)&&s.set(e,qt),qt;if(se(i))for(let f=0;f-1,p[1]=I<0||_-1||ge(p,"default"))&&l.push(d)}}}const a=[r,l];return Se(e)&&s.set(e,a),a}function yr(e){return e[0]!=="$"&&!hn(e)}function vr(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function br(e,t){return vr(e)===vr(t)}function _r(e,t){return se(t)?t.findIndex(n=>br(n,e)):ae(t)&&br(t,e)?0:-1}const Fc=e=>e[0]==="_"||e==="$stable",ti=e=>se(e)?e.map(it):[it(e)],fh=(e,t,n)=>{if(t._n)return t;const s=ue((...o)=>ti(t(...o)),n);return s._c=!1,s},Ec=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Fc(o))continue;const i=e[o];if(ae(i))t[o]=fh(o,i,s);else if(i!=null){const r=ti(i);t[o]=()=>r}}},Rc=(e,t)=>{const n=ti(t);e.slots.default=()=>n},dh=(e,t)=>{const n=e.slots=Tc();if(e.vnode.shapeFlag&32){const s=t._;s?(Le(n,t),Wl(n,"_",s,!0)):Ec(t,n)}else t&&Rc(e,t)},hh=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,r=xe;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Le(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Ec(t,o)),r=t}else t&&(Rc(e,t),r={default:1});if(i)for(const l in o)!Fc(l)&&r[l]==null&&delete o[l]};function So(e,t,n,s,o=!1){if(se(e)){e.forEach((h,p)=>So(h,t&&(se(t)?t[p]:t),n,s,o));return}if(gn(s)&&!o)return;const i=s.shapeFlag&4?si(s.component)||s.component.proxy:s.el,r=o?null:i,{i:l,r:c}=e,a=t&&t.r,f=l.refs===xe?l.refs={}:l.refs,d=l.setupState;if(a!=null&&a!==c&&(Oe(a)?(f[a]=null,ge(d,a)&&(d[a]=null)):Fe(a)&&(a.value=null)),ae(c))Ct(c,l,12,[r,f]);else{const h=Oe(c),p=Fe(c);if(h||p){const _=()=>{if(e.f){const I=h?ge(d,c)?d[c]:f[c]:c.value;o?se(I)&&Uo(I,i):se(I)?I.includes(i)||I.push(i):h?(f[c]=[i],ge(d,c)&&(d[c]=f[c])):(c.value=[i],e.k&&(f[e.k]=c.value))}else h?(f[c]=r,ge(d,c)&&(d[c]=r)):p&&(c.value=r,e.k&&(f[e.k]=r))};r?(_.id=-1,He(_,n)):_()}}}const He=jd;function ph(e){return gh(e)}function gh(e,t){const n=ql();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:r,createText:l,createComment:c,setText:a,setElementText:f,parentNode:d,nextSibling:h,setScopeId:p=Ge,insertStaticContent:_}=e,I=(g,y,S,M=null,T=null,j=null,D=void 0,N=null,B=!!y.dynamicChildren)=>{if(g===y)return;g&&!ln(g,y)&&(M=Nn(g),Me(g,T,j,!0),g=null),y.patchFlag===-2&&(B=!1,y.dynamicChildren=null);const{type:P,ref:H,shapeFlag:X}=y;switch(P){case Fs:k(g,y,S,M);break;case Mt:$(g,y,S,M);break;case rs:g==null&&C(y,S,M,D);break;case ie:le(g,y,S,M,T,j,D,N,B);break;default:X&1?q(g,y,S,M,T,j,D,N,B):X&6?Q(g,y,S,M,T,j,D,N,B):(X&64||X&128)&&P.process(g,y,S,M,T,j,D,N,B,Vt)}H!=null&&T&&So(H,g&&g.ref,j,y||g,!y)},k=(g,y,S,M)=>{if(g==null)s(y.el=l(y.children),S,M);else{const T=y.el=g.el;y.children!==g.children&&a(T,y.children)}},$=(g,y,S,M)=>{g==null?s(y.el=c(y.children||""),S,M):y.el=g.el},C=(g,y,S,M)=>{[g.el,g.anchor]=_(g.children,y,S,M,g.el,g.anchor)},b=({el:g,anchor:y},S,M)=>{let T;for(;g&&g!==y;)T=h(g),s(g,S,M),g=T;s(y,S,M)},A=({el:g,anchor:y})=>{let S;for(;g&&g!==y;)S=h(g),o(g),g=S;o(y)},q=(g,y,S,M,T,j,D,N,B)=>{y.type==="svg"?D="svg":y.type==="math"&&(D="mathml"),g==null?R(y,S,M,T,j,D,N,B):U(g,y,T,j,D,N,B)},R=(g,y,S,M,T,j,D,N)=>{let B,P;const{props:H,shapeFlag:X,transition:G,dirs:oe}=g;if(B=g.el=r(g.type,j,H&&H.is,H),X&8?f(B,g.children):X&16&&W(g.children,B,null,M,T,Ys(g,j),D,N),oe&&Ft(g,null,M,"created"),F(B,g,g.scopeId,D,M),H){for(const be in H)be!=="value"&&!hn(be)&&i(B,be,null,H[be],j,g.children,M,T,ut);"value"in H&&i(B,"value",null,H.value,j),(P=H.onVnodeBeforeMount)&&ot(P,M,g)}oe&&Ft(g,null,M,"beforeMount");const he=mh(T,G);he&&G.beforeEnter(B),s(B,y,S),((P=H&&H.onVnodeMounted)||he||oe)&&He(()=>{P&&ot(P,M,g),he&&G.enter(B),oe&&Ft(g,null,M,"mounted")},T)},F=(g,y,S,M,T)=>{if(S&&p(g,S),M)for(let j=0;j{for(let P=B;P{const N=y.el=g.el;let{patchFlag:B,dynamicChildren:P,dirs:H}=y;B|=g.patchFlag&16;const X=g.props||xe,G=y.props||xe;let oe;if(S&&Et(S,!1),(oe=G.onVnodeBeforeUpdate)&&ot(oe,S,y,g),H&&Ft(y,g,S,"beforeUpdate"),S&&Et(S,!0),P?Y(g.dynamicChildren,P,N,S,M,Ys(y,T),j):D||pe(g,y,N,null,S,M,Ys(y,T),j,!1),B>0){if(B&16)ee(N,y,X,G,S,M,T);else if(B&2&&X.class!==G.class&&i(N,"class",null,G.class,T),B&4&&i(N,"style",X.style,G.style,T),B&8){const he=y.dynamicProps;for(let be=0;be{oe&&ot(oe,S,y,g),H&&Ft(y,g,S,"updated")},M)},Y=(g,y,S,M,T,j,D)=>{for(let N=0;N{if(S!==M){if(S!==xe)for(const N in S)!hn(N)&&!(N in M)&&i(g,N,S[N],null,D,y.children,T,j,ut);for(const N in M){if(hn(N))continue;const B=M[N],P=S[N];B!==P&&N!=="value"&&i(g,N,P,B,D,y.children,T,j,ut)}"value"in M&&i(g,"value",S.value,M.value,D)}},le=(g,y,S,M,T,j,D,N,B)=>{const P=y.el=g?g.el:l(""),H=y.anchor=g?g.anchor:l("");let{patchFlag:X,dynamicChildren:G,slotScopeIds:oe}=y;oe&&(N=N?N.concat(oe):oe),g==null?(s(P,S,M),s(H,S,M),W(y.children||[],S,H,T,j,D,N,B)):X>0&&X&64&&G&&g.dynamicChildren?(Y(g.dynamicChildren,G,S,T,j,D,N),(y.key!=null||T&&y===T.subTree)&&Nc(g,y,!0)):pe(g,y,S,H,T,j,D,N,B)},Q=(g,y,S,M,T,j,D,N,B)=>{y.slotScopeIds=N,g==null?y.shapeFlag&512?T.ctx.activate(y,S,M,D,B):te(y,S,M,T,j,D,B):V(g,y,B)},te=(g,y,S,M,T,j,D)=>{const N=g.component=xh(g,M,T);if(kc(g)&&(N.ctx.renderer=Vt),Ch(N),N.asyncDep){if(T&&T.registerDep(N,de),!g.el){const B=N.subTree=L(Mt);$(null,B,y,S)}}else de(N,g,y,S,T,j,D)},V=(g,y,S)=>{const M=y.component=g.component;if(Fd(g,y,S))if(M.asyncDep&&!M.asyncResolved){ce(M,y,S);return}else M.next=y,Od(M.update),M.effect.dirty=!0,M.update();else y.el=g.el,M.vnode=y},de=(g,y,S,M,T,j,D)=>{const N=()=>{if(g.isMounted){let{next:H,bu:X,u:G,parent:oe,vnode:he}=g;{const Kt=jc(g);if(Kt){H&&(H.el=he.el,ce(g,H,D)),Kt.asyncDep.then(()=>{g.isUnmounted||N()});return}}let be=H,we;Et(g,!1),H?(H.el=he.el,ce(g,H,D)):H=he,X&&Ws(X),(we=H.props&&H.props.onVnodeBeforeUpdate)&&ot(we,oe,H,he),Et(g,!0);const Te=Gs(g),Qe=g.subTree;g.subTree=Te,I(Qe,Te,d(Qe.el),Nn(Qe),g,T,j),H.el=Te.el,be===null&&Ed(g,Te.el),G&&He(G,T),(we=H.props&&H.props.onVnodeUpdated)&&He(()=>ot(we,oe,H,he),T)}else{let H;const{el:X,props:G}=y,{bm:oe,m:he,parent:be}=g,we=gn(y);if(Et(g,!1),oe&&Ws(oe),!we&&(H=G&&G.onVnodeBeforeMount)&&ot(H,be,y),Et(g,!0),X&&Bs){const Te=()=>{g.subTree=Gs(g),Bs(X,g.subTree,g,T,null)};we?y.type.__asyncLoader().then(()=>!g.isUnmounted&&Te()):Te()}else{const Te=g.subTree=Gs(g);I(null,Te,S,M,g,T,j),y.el=Te.el}if(he&&He(he,T),!we&&(H=G&&G.onVnodeMounted)){const Te=y;He(()=>ot(H,be,Te),T)}(y.shapeFlag&256||be&&gn(be.vnode)&&be.vnode.shapeFlag&256)&&g.a&&He(g.a,T),g.isMounted=!0,y=S=M=null}},B=g.effect=new Ko(N,Ge,()=>Zo(P),g.scope),P=g.update=()=>{B.dirty&&B.run()};P.id=g.uid,Et(g,!0),P()},ce=(g,y,S)=>{y.component=g;const M=g.vnode.props;g.vnode=y,g.next=null,uh(g,y.props,M,S),hh(g,y.children,S),Tt(),fr(g),At()},pe=(g,y,S,M,T,j,D,N,B=!1)=>{const P=g&&g.children,H=g?g.shapeFlag:0,X=y.children,{patchFlag:G,shapeFlag:oe}=y;if(G>0){if(G&128){ne(P,X,S,M,T,j,D,N,B);return}else if(G&256){qe(P,X,S,M,T,j,D,N,B);return}}oe&8?(H&16&&ut(P,T,j),X!==P&&f(S,X)):H&16?oe&16?ne(P,X,S,M,T,j,D,N,B):ut(P,T,j,!0):(H&8&&f(S,""),oe&16&&W(X,S,M,T,j,D,N,B))},qe=(g,y,S,M,T,j,D,N,B)=>{g=g||qt,y=y||qt;const P=g.length,H=y.length,X=Math.min(P,H);let G;for(G=0;GH?ut(g,T,j,!0,!1,X):W(y,S,M,T,j,D,N,B,X)},ne=(g,y,S,M,T,j,D,N,B)=>{let P=0;const H=y.length;let X=g.length-1,G=H-1;for(;P<=X&&P<=G;){const oe=g[P],he=y[P]=B?bt(y[P]):it(y[P]);if(ln(oe,he))I(oe,he,S,null,T,j,D,N,B);else break;P++}for(;P<=X&&P<=G;){const oe=g[X],he=y[G]=B?bt(y[G]):it(y[G]);if(ln(oe,he))I(oe,he,S,null,T,j,D,N,B);else break;X--,G--}if(P>X){if(P<=G){const oe=G+1,he=oeG)for(;P<=X;)Me(g[P],T,j,!0),P++;else{const oe=P,he=P,be=new Map;for(P=he;P<=G;P++){const Ke=y[P]=B?bt(y[P]):it(y[P]);Ke.key!=null&&be.set(Ke.key,P)}let we,Te=0;const Qe=G-he+1;let Kt=!1,Ci=0;const sn=new Array(Qe);for(P=0;P=Qe){Me(Ke,T,j,!0);continue}let st;if(Ke.key!=null)st=be.get(Ke.key);else for(we=he;we<=G;we++)if(sn[we-he]===0&&ln(Ke,y[we])){st=we;break}st===void 0?Me(Ke,T,j,!0):(sn[st-he]=P+1,st>=Ci?Ci=st:Kt=!0,I(Ke,y[st],S,null,T,j,D,N,B),Te++)}const Si=Kt?yh(sn):qt;for(we=Si.length-1,P=Qe-1;P>=0;P--){const Ke=he+P,st=y[Ke],$i=Ke+1{const{el:j,type:D,transition:N,children:B,shapeFlag:P}=g;if(P&6){Ie(g.component.subTree,y,S,M);return}if(P&128){g.suspense.move(y,S,M);return}if(P&64){D.move(g,y,S,Vt);return}if(D===ie){s(j,y,S);for(let X=0;XN.enter(j),T);else{const{leave:X,delayLeave:G,afterLeave:oe}=N,he=()=>s(j,y,S),be=()=>{X(j,()=>{he(),oe&&oe()})};G?G(j,he,be):be()}else s(j,y,S)},Me=(g,y,S,M=!1,T=!1)=>{const{type:j,props:D,ref:N,children:B,dynamicChildren:P,shapeFlag:H,patchFlag:X,dirs:G}=g;if(N!=null&&So(N,null,S,g,!0),H&256){y.ctx.deactivate(g);return}const oe=H&1&&G,he=!gn(g);let be;if(he&&(be=D&&D.onVnodeBeforeUnmount)&&ot(be,y,g),H&6)ka(g.component,S,M);else{if(H&128){g.suspense.unmount(S,M);return}oe&&Ft(g,null,y,"beforeUnmount"),H&64?g.type.remove(g,y,S,T,Vt,M):P&&(j!==ie||X>0&&X&64)?ut(P,y,S,!1,!0):(j===ie&&X&384||!T&&H&16)&&ut(B,y,S),M&&pt(g)}(he&&(be=D&&D.onVnodeUnmounted)||oe)&&He(()=>{be&&ot(be,y,g),oe&&Ft(g,null,y,"unmounted")},S)},pt=g=>{const{type:y,el:S,anchor:M,transition:T}=g;if(y===ie){xi(S,M);return}if(y===rs){A(g);return}const j=()=>{o(S),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(g.shapeFlag&1&&T&&!T.persisted){const{leave:D,delayLeave:N}=T,B=()=>D(S,j);N?N(g.el,j,B):B()}else j()},xi=(g,y)=>{let S;for(;g!==y;)S=h(g),o(g),g=S;o(y)},ka=(g,y,S)=>{const{bum:M,scope:T,update:j,subTree:D,um:N}=g;M&&Ws(M),T.stop(),j&&(j.active=!1,Me(D,g,y,S)),N&&He(N,y),He(()=>{g.isUnmounted=!0},y),y&&y.pendingBranch&&!y.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===y.pendingId&&(y.deps--,y.deps===0&&y.resolve())},ut=(g,y,S,M=!1,T=!1,j=0)=>{for(let D=j;Dg.shapeFlag&6?Nn(g.component.subTree):g.shapeFlag&128?g.suspense.next():h(g.anchor||g.el);let Ns=!1;const Ii=(g,y,S)=>{g==null?y._vnode&&Me(y._vnode,null,null,!0):I(y._vnode||null,g,y,null,null,null,S),Ns||(Ns=!0,fr(),gc(),Ns=!1),y._vnode=g},Vt={p:I,um:Me,m:Ie,r:pt,mt:te,mc:W,pc:pe,pbc:Y,n:Nn,o:e};let js,Bs;return t&&([js,Bs]=t(Vt)),{render:Ii,hydrate:js,createApp:lh(Ii,js)}}function Ys({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Et({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function mh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Nc(e,t,n=!1){const s=e.children,o=t.children;if(se(s)&&se(o))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}function jc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jc(t)}const vh=e=>e.__isTeleport,ie=Symbol.for("v-fgt"),Fs=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),vn=[];let tt=null;function m(e=!1){vn.push(tt=e?null:[])}function bh(){vn.pop(),tt=vn[vn.length-1]||null}let On=1;function kr(e){On+=e}function Bc(e){return e.dynamicChildren=On>0?tt||qt:null,bh(),On>0&&tt&&tt.push(e),e}function w(e,t,n,s,o,i){return Bc(x(e,t,n,s,o,i,!0))}function K(e,t,n,s,o){return Bc(L(e,t,n,s,o,!0))}function Dc(e){return e?e.__v_isVNode===!0:!1}function ln(e,t){return e.type===t.type&&e.key===t.key}const Hc=({key:e})=>e??null,ls=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Oe(e)||Fe(e)||ae(e)?{i:De,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,s=0,o=null,i=e===ie?0:1,r=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hc(t),ref:t&&ls(t),scopeId:vc,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:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:De};return l?(ni(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=Oe(n)?8:16),On>0&&!r&&tt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&tt.push(c),c}const L=_h;function _h(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Rd)&&(e=Mt),Dc(e)){const l=Zt(e,t,!0);return n&&ni(l,n),On>0&&!i&&tt&&(l.shapeFlag&6?tt[tt.indexOf(e)]=l:tt.push(l)),l.patchFlag|=-2,l}if(Oh(e)&&(e=e.__vccOpts),t){t=zc(t);let{class:l,style:c}=t;l&&!Oe(l)&&(t.class=re(l)),Se(c)&&(cc(c)&&!se(c)&&(c=Le({},c)),t.style=Je(c))}const r=Oe(e)?1:Nd(e)?128:vh(e)?64:Se(e)?4:ae(e)?2:0;return x(e,t,n,s,o,r,i,!0)}function zc(e){return e?cc(e)||Ac(e)?Le({},e):e:null}function Zt(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:r,children:l,transition:c}=e,a=t?En(o||{},t):o,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Hc(a),ref:t&&t.ref?n&&i?se(i)?i.concat(ls(t)):[i,ls(t)]:ls(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&(f.transition=c.clone(f)),f}function Pe(e=" ",t=0){return L(Fs,null,e,t)}function Uc(e,t){const n=L(rs,null,e);return n.staticCount=t,n}function E(e="",t=!1){return t?(m(),K(Mt,null,e)):L(Mt,null,e)}function it(e){return e==null||typeof e=="boolean"?L(Mt):se(e)?L(ie,null,e.slice()):typeof e=="object"?bt(e):L(Fs,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function ni(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(se(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),ni(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ac(t)?t._ctx=De:o===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:De},n=32):(t=String(t),s&64?(n=16,t=[Pe(t)]):n=8);e.children=t,e.shapeFlag|=n}function En(...e){const t={};for(let n=0;nNe||De;let ys,$o;{const e=ql(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};ys=t("__VUE_INSTANCE_SETTERS__",n=>Ne=n),$o=t("__VUE_SSR_SETTERS__",n=>Es=n)}const Rn=e=>{const t=Ne;return ys(e),e.scope.on(),()=>{e.scope.off(),ys(t)}},wr=()=>{Ne&&Ne.scope.off(),ys(null)};function Vc(e){return e.vnode.shapeFlag&4}let Es=!1;function Ch(e,t=!1){t&&$o(t);const{props:n,children:s}=e.vnode,o=Vc(e);ah(e,n,o,t),dh(e,s);const i=o?Sh(e,t):void 0;return t&&$o(!1),i}function Sh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Zd);const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Wc(e):null,i=Rn(e);Tt();const r=Ct(s,e,0,[e.props,o]);if(At(),i(),zl(r)){if(r.then(wr,wr),t)return r.then(l=>{xr(e,l,t)}).catch(l=>{Ts(l,e,0)});e.asyncDep=r}else xr(e,r,t)}else Kc(e,t)}function xr(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=dc(t)),Kc(e,n)}let Ir;function Kc(e,t,n){const s=e.type;if(!e.render){if(!t&&Ir&&!s.render){const o=s.template||ei(e).template;if(o){const{isCustomElement:i,compilerOptions:r}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,a=Le(Le({isCustomElement:i,delimiters:l},r),c);s.render=Ir(o,a)}}e.render=s.render||Ge}{const o=Rn(e);Tt();try{th(e)}finally{At(),o()}}}const $h={get(e,t){return Ve(e,"get",""),e[t]}};function Wc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$h),slots:e.slots,emit:e.emit,expose:t}}function si(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(dc(kd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}}))}function Oh(e){return ae(e)&&"__vccOpts"in e}const O=(e,t)=>wd(e,t,Es),Mh="3.4.27";/** * @vue/runtime-dom v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const Th="http://www.w3.org/2000/svg",Ah="http://www.w3.org/1998/Math/MathML",_t=typeof document<"u"?document:null,Cr=_t&&_t.createElement("template"),Ph={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?_t.createElementNS(Th,e):t==="mathml"?_t.createElementNS(Ah,e):_t.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>_t.createTextNode(e),createComment:e=>_t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_t.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Cr.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=Cr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Lh=Symbol("_vtc");function Fh(e,t,n){const s=e[Lh];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Sr=Symbol("_vod"),Eh=Symbol("_vsh"),Rh=Symbol(""),Nh=/(^|;)\s*display\s*:/;function jh(e,t,n){const s=e.style,o=Oe(n);let i=!1;if(n&&!o){if(t)if(Oe(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();n[l]==null&&cs(s,l,"")}else for(const r in t)n[r]==null&&cs(s,r,"");for(const r in n)r==="display"&&(i=!0),cs(s,r,n[r])}else if(o){if(t!==n){const r=s[Rh];r&&(n+=";"+r),s.cssText=n,i=Nh.test(n)}}else t&&e.removeAttribute("style");Sr in e&&(e[Sr]=i?s.display:"",e[Eh]&&(s.display="none"))}const $r=/\s*!important$/;function cs(e,t,n){if(se(n))n.forEach(s=>cs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Bh(e,t);$r.test(n)?e.setProperty(en(s),n.replace($r,""),"important"):e[s]=n}}const Or=["Webkit","Moz","ms"],Qs={};function Bh(e,t){const n=Qs[t];if(n)return n;let s=Xt(t);if(s!=="filter"&&s in e)return Qs[t]=s;s=Kl(s);for(let o=0;oXs||(Wh.then(()=>Xs=0),Xs=Date.now());function Gh(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;nt(Jh(s,n.value),t,5,[s])};return n.value=e,n.attached=qh(),n}function Jh(e,t){if(se(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const Pr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Yh=(e,t,n,s,o,i,r,l,c)=>{const a=o==="svg";t==="class"?Fh(e,s,a):t==="style"?jh(e,n,s):Ss(t)?zo(t)||Vh(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qh(e,t,s,a))?Hh(e,t,s,i,r,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Dh(e,t,s,a))};function Qh(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Pr(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Pr(t)&&Oe(n)?!1:t in e}const Xh=["ctrl","shift","alt","meta"],Zh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Xh.some(n=>e[`${n}Key`]&&!t.includes(n))},oi=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...i)=>{for(let r=0;r{const t=tp().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=op(s);if(!o)return;const i=t._component;!ae(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,sp(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function sp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function op(e){return Oe(e)?document.querySelector(e):e}function ze(e){console.log("Message to Figma:",e);try{const t=window;if(t.mockFigmaMessage){t.mockFigmaMessage(e);return}}catch{}try{parent.postMessage({pluginMessage:e},"*")}catch{}}function qc(){return tn({...Ht})}let vs=null;const lt=qc(),Gc=z([]),St=z([]);function ip(){vs&&(St.value=hs(vs,lt))}function Jc(e){vs||(vs=e,Gc.value=e.allVisiblePrefixes,ip())}const _e=Pt({type:"icon-sets"}),Mn=z(0);function rp(e,t=!0){const n=[],s=[];let o=0,i=null;do{const r=e.indexOf("<",o),l=r===-1?-1:e.indexOf(">",r);if(r===-1||l===-1)return e.slice(o).trim()||i||!s.length?null:s;if(e.slice(r,r+4)==="",r);if(k===-1)return null;o=k+3;continue}const c=e.slice(o,r),a=t?c.trim():c;if(o=r,a){if(!i)return null;i.children.push({type:"text",content:a})}let f=e.slice(r+1,l).trim();if(f.startsWith("/")){if(!i)return null;const k=f.slice(1).match(/^[^\s]+/);if(i.tag!==(k==null?void 0:k[0]))return null;n.pop(),i=n.length?n[n.length-1]:null,o=l+1;continue}const d=f.match(/^[^\s]+/);if(!d)return null;const h=d[0];f=f.slice(h.length).trim();const p=f.slice(-1)==="/";p&&(f=f.slice(0,-1).trim());const _=Object.create(null);Array.from(f.matchAll(/([\w:-]+)="([^"]*)"/g)??[]).forEach(k=>{_[k[1]]=k[2]});const I={type:"tag",tag:h,attribs:_,children:[]};if(i?i.children.push(I):s.push(I),p||(n.push(I),i=I),o=l+1,h==="style"&&!p){const k="",$=e.indexOf(k,o);if($===-1)return null;const C=e.slice(o,$).trim();C.length&&i.children.push({type:"text",content:C}),n.pop(),i=n.length?n[n.length-1]:null,o=$+k.length}}while(!0)}const lp={useSelfClosing:!0,numberTemplate:' {key}="{value}"'};function cp(e,t){const n={...lp,...t};let s="";const o=i=>{if(i.removed)return!0;s+="<"+i.tag;for(const r in i.attribs){const l=i.attribs[r];switch(typeof l){case"string":s+=` ${r}="${l}"`;break;case"number":s+=n.numberTemplate.replace("{value}",l.toString()).replace("{key}",r);break}}if(!i.children.length)return n.useSelfClosing?s+=" />":s+=">",!0;s+=">";for(let r=0;r",!0};for(const i of e)if(!o(i))return null;return s}function ap(e,t){const n=[];let s=!1;function o(i){if(s)return"abort";const r=t(i,n);if(r==="remove"){i.removed=!0;return}if(r!=="skip"){if(r==="abort"){s=!0;return}if(i.type==="tag"){n.push(i);for(const l of i.children)o(l);n.pop()}}}for(const i of e)o(i)}const up=new Set(["animate","animateTransform","animateMotion"]),fp=new Set(["set","discard"]),dp=new Set([...up,...fp]);function hp(e,t){t.children=t.children.filter(n=>n!==e)}function Yc(e,t,n){const s=e.attribs[t];switch(e.attribs[t]=n,t){case"opacity":case"fill-opacity":case"stroke-opacity":{n==="1"&&s&&delete e.attribs[t];break}case"stroke-dashoffset":{const o=Number(e.attribs["stroke-dasharray"]),i=Number(n);!isNaN(o)&&!isNaN(i)&&(i===0||i===o*2)&&(delete e.attribs["stroke-dasharray"],delete e.attribs[t]);break}}}function pp(e,t,n){const s=e.attribs.attributeName;typeof s=="string"&&Yc(t,s,n)}function Fr(e){const t=e.attribs.to;if(typeof t=="string")return t;const n=e.attribs.values;if(typeof n=="string")return n.split(";").pop().trim()}function gp(e){ap(e,(t,n)=>{if(t.type!=="tag"||!dp.has(t.tag)||!n.length)return;const s=n[n.length-1];switch(t.tag){case"set":case"animate":{const o=Fr(t);typeof o=="string"&&pp(t,s,o);break}case"animateTransform":{const o=t.attribs.type,i=Fr(t);typeof o=="string"&&typeof i=="string"&&Yc(s,"transform",`${o}(${i})`);break}case"discard":s.removed=!0}hp(t,s)})}function Qc(e){return e.includes("d!==a);if(n)for(;f.length>=n;)f[t?"pop":"shift"]();f[t?"push":"unshift"](a),o.value=f}function l(a){o.value=o.value.filter(f=>f!==a)}function c(a){Nr()||(o.value=a.slice(0))}return{prefixes:o,reset:i,add:r,remove:l,restore:c,canBackup:s}}const Ue={favorite:jr({canBackup:!0}),recent:jr({canBackup:!0,newestFirst:!0,limit:24})},Zc=Object.keys(Ue);function ri(){return O(()=>ii(_e.value))}function mp(e,t=Zc){ye(t.map(n=>Ue[n].prefixes),e,{deep:!0})}function yp(){return O(()=>Zc.filter(e=>Ue[e].prefixes.value.length>0))}function ea(){const e=ri(),t=yp();function n(){const s=e.value.list;s&&!t.value.includes(s)&&(delete e.value.list,Mn.value++)}return ye([e,Mn,t],n,{deep:!0}),{iconSetsRoute:e,availableLists:t}}const We=z({nodes:[],defaultNode:""}),Tn=z("");function Br(e){const t=Tn.value;t&&!e.nodes.find(n=>n.id===t)&&(Tn.value=""),We.value=e}const vp={info:5e3,error:1e4,success:4e3},bp=5,_p=500,yt=z([]);function ta(){function e(){yt.value=[]}function t(n,s){const o=Symbol();yt.value.length>=bp&&yt.value.shift(),yt.value.push({id:o,type:n,message:s,fading:!1});const i=vp[n];setTimeout(()=>{const r=yt.value.find(l=>l.id===o);r&&(r.fading=!0)},Math.max(i*.5,i-_p)),setTimeout(()=>{yt.value=yt.value.filter(r=>r.id!==o)},i)}return{notices:yt,clear:e,push:t}}const Yt=z([]),ft="style:",na="Loading...",sa="Error loading data",kp="Add to favorites",wp="Remove from favorites",Dr={favorite:"Favorite Icon Sets",recent:"Recently Viewed"},xp={favorite:"Favorite",recent:"Recent"},Ip="All Icon Sets",Cp="Clear list (cannot be undone)",Sp="Browse all icon sets",$p="Return to",Op={favorite:" favorite icon sets list",recent:" recently viewed icon sets list"},Mp="Search icons in...",oa="Search icons",Tp="Search",Ap="all icon sets",Pp="filtered {n} icon sets",Lp={favorite:"favorite icon sets",recent:"recently viewed icon sets"},Fp=oa,Ep="Search icons from filtered {n} icon sets",Rp={favorite:"Search icons from favorite icon sets",recent:"Search icons from recently viewed icon sets"},ia="Enter part of icon name to find icons that match it",Hr='Examples: "account", "home", "left arrow"',Np=`Filters icons in this set +**/const Th="http://www.w3.org/2000/svg",Ah="http://www.w3.org/1998/Math/MathML",_t=typeof document<"u"?document:null,Cr=_t&&_t.createElement("template"),Ph={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?_t.createElementNS(Th,e):t==="mathml"?_t.createElementNS(Ah,e):_t.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>_t.createTextNode(e),createComment:e=>_t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_t.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Cr.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=Cr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Lh=Symbol("_vtc");function Fh(e,t,n){const s=e[Lh];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Sr=Symbol("_vod"),Eh=Symbol("_vsh"),Rh=Symbol(""),Nh=/(^|;)\s*display\s*:/;function jh(e,t,n){const s=e.style,o=Oe(n);let i=!1;if(n&&!o){if(t)if(Oe(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();n[l]==null&&cs(s,l,"")}else for(const r in t)n[r]==null&&cs(s,r,"");for(const r in n)r==="display"&&(i=!0),cs(s,r,n[r])}else if(o){if(t!==n){const r=s[Rh];r&&(n+=";"+r),s.cssText=n,i=Nh.test(n)}}else t&&e.removeAttribute("style");Sr in e&&(e[Sr]=i?s.display:"",e[Eh]&&(s.display="none"))}const $r=/\s*!important$/;function cs(e,t,n){if(se(n))n.forEach(s=>cs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Bh(e,t);$r.test(n)?e.setProperty(en(s),n.replace($r,""),"important"):e[s]=n}}const Or=["Webkit","Moz","ms"],Qs={};function Bh(e,t){const n=Qs[t];if(n)return n;let s=Xt(t);if(s!=="filter"&&s in e)return Qs[t]=s;s=Kl(s);for(let o=0;oXs||(Wh.then(()=>Xs=0),Xs=Date.now());function Gh(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;nt(Jh(s,n.value),t,5,[s])};return n.value=e,n.attached=qh(),n}function Jh(e,t){if(se(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const Pr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Yh=(e,t,n,s,o,i,r,l,c)=>{const a=o==="svg";t==="class"?Fh(e,s,a):t==="style"?jh(e,n,s):Ss(t)?zo(t)||Vh(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qh(e,t,s,a))?Hh(e,t,s,i,r,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Dh(e,t,s,a))};function Qh(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Pr(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Pr(t)&&Oe(n)?!1:t in e}const Xh=["ctrl","shift","alt","meta"],Zh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Xh.some(n=>e[`${n}Key`]&&!t.includes(n))},oi=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...i)=>{for(let r=0;r{const t=tp().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=op(s);if(!o)return;const i=t._component;!ae(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,sp(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function sp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function op(e){return Oe(e)?document.querySelector(e):e}function ze(e){console.log("Message to Figma:",e);try{const t=window;if(t.mockFigmaMessage){t.mockFigmaMessage(e);return}}catch{}try{parent.postMessage({pluginMessage:e},"*")}catch{}}function qc(){return tn({...Ht})}let vs=null;const lt=qc(),Gc=z([]),St=z([]);function ip(){vs&&(St.value=hs(vs,lt))}function Jc(e){vs||(vs=e,Gc.value=e.allVisiblePrefixes,ip())}const _e=Pt({type:"icon-sets"}),Mn=z(0);function rp(e,t=!0){const n=[],s=[];let o=0,i=null;do{const r=e.indexOf("<",o),l=r===-1?-1:e.indexOf(">",r);if(r===-1||l===-1)return e.slice(o).trim()||i||!s.length?null:s;if(e.slice(r,r+4)==="",r);if(k===-1)return null;o=k+3;continue}const c=e.slice(o,r),a=t?c.trim():c;if(o=r,a){if(!i)return null;i.children.push({type:"text",content:a})}let f=e.slice(r+1,l).trim();if(f.startsWith("/")){if(!i)return null;const k=f.slice(1).match(/^[^\s]+/);if(i.tag!==(k==null?void 0:k[0]))return null;n.pop(),i=n.length?n[n.length-1]:null,o=l+1;continue}const d=f.match(/^[^\s]+/);if(!d)return null;const h=d[0];f=f.slice(h.length).trim();const p=f.slice(-1)==="/";p&&(f=f.slice(0,-1).trim());const _=Object.create(null);Array.from(f.matchAll(/([\w:-]+)="([^"]*)"/g)??[]).forEach(k=>{_[k[1]]=k[2]});const I={type:"tag",tag:h,attribs:_,children:[]};if(i?i.children.push(I):s.push(I),p||(n.push(I),i=I),o=l+1,h==="style"&&!p){const k="",$=e.indexOf(k,o);if($===-1)return null;const C=e.slice(o,$).trim();C.length&&i.children.push({type:"text",content:C}),n.pop(),i=n.length?n[n.length-1]:null,o=$+k.length}}while(!0)}const lp={useSelfClosing:!0,numberTemplate:' {key}="{value}"'};function cp(e,t){const n={...lp,...t};let s="";const o=i=>{if(i.removed)return!0;s+="<"+i.tag;for(const r in i.attribs){const l=i.attribs[r];switch(typeof l){case"string":s+=` ${r}="${l}"`;break;case"number":s+=n.numberTemplate.replace("{value}",l.toString()).replace("{key}",r);break}}if(!i.children.length)return n.useSelfClosing?s+=" />":s+=">",!0;s+=">";for(let r=0;r",!0};for(const i of e)if(!o(i))return null;return s}function ap(e,t){const n=[];let s=!1;function o(i){if(s)return"abort";const r=t(i,n);if(r==="remove"){i.removed=!0;return}if(r!=="skip"){if(r==="abort"){s=!0;return}if(i.type==="tag"){n.push(i);for(const l of i.children)o(l);n.pop()}}}for(const i of e)o(i)}const up=new Set(["animate","animateTransform","animateMotion"]),fp=new Set(["set","discard"]),dp=new Set([...up,...fp]);function hp(e,t){t.children=t.children.filter(n=>n!==e)}function Yc(e,t,n){const s=e.attribs[t];switch(e.attribs[t]=n,t){case"opacity":case"fill-opacity":case"stroke-opacity":{n==="1"&&s&&delete e.attribs[t];break}case"stroke-dashoffset":{const o=Number(e.attribs["stroke-dasharray"]),i=Number(n);!isNaN(o)&&!isNaN(i)&&(i===0||i===o*2)&&(delete e.attribs["stroke-dasharray"],delete e.attribs[t]);break}}}function pp(e,t,n){const s=e.attribs.attributeName;typeof s=="string"&&Yc(t,s,n)}function Fr(e){const t=e.attribs.to;if(typeof t=="string")return t;const n=e.attribs.values;if(typeof n=="string")return n.split(";").pop().trim()}function gp(e){ap(e,(t,n)=>{if(t.type!=="tag"||!dp.has(t.tag)||!n.length)return;const s=n[n.length-1];switch(t.tag){case"set":case"animate":{const o=Fr(t);typeof o=="string"&&pp(t,s,o);break}case"animateTransform":{const o=t.attribs.type,i=Fr(t);typeof o=="string"&&typeof i=="string"&&Yc(s,"transform",`${o}(${i})`);break}case"discard":s.removed=!0}hp(t,s)})}function Qc(e){return e.includes("d!==a);if(n)for(;f.length>=n;)f[t?"pop":"shift"]();f[t?"push":"unshift"](a),o.value=f}function l(a){o.value=o.value.filter(f=>f!==a)}function c(a){Nr()||(o.value=a.slice(0))}return{prefixes:o,reset:i,add:r,remove:l,restore:c,canBackup:s}}const Ue={favorite:jr({canBackup:!0}),recent:jr({canBackup:!0,newestFirst:!0,limit:24})},Zc=Object.keys(Ue);function ri(){return O(()=>ii(_e.value))}function mp(e,t=Zc){ye(t.map(n=>Ue[n].prefixes),e,{deep:!0})}function yp(){return O(()=>Zc.filter(e=>Ue[e].prefixes.value.length>0))}function ea(){const e=ri(),t=yp();function n(){const s=e.value.list;s&&!t.value.includes(s)&&(delete e.value.list,Mn.value++)}return ye([e,Mn,t],n,{deep:!0}),{iconSetsRoute:e,availableLists:t}}const We=z({nodes:[],defaultNode:""}),Tn=z("");function Br(e){const t=Tn.value;t&&!e.nodes.find(n=>n.id===t)&&(Tn.value=""),We.value=e}const vp={info:5e3,error:1e4,success:4e3},bp=5,_p=500,yt=z([]);function ta(){function e(){yt.value=[]}function t(n,s){const o=Symbol();yt.value.length>=bp&&yt.value.shift(),yt.value.push({id:o,type:n,message:s,fading:!1});const i=vp[n];setTimeout(()=>{const r=yt.value.find(l=>l.id===o);r&&(r.fading=!0)},Math.max(i*.5,i-_p)),setTimeout(()=>{yt.value=yt.value.filter(r=>r.id!==o)},i)}return{notices:yt,clear:e,push:t}}const Yt=z([]),ft="style:",na="Loading...",sa="Error loading data",kp="Add to favorites",wp="Remove from favorites",Dr={favorite:"Favorite Icon Sets",recent:"Recently Viewed"},xp={favorite:"Favorite",recent:"Recent"},Ip="All Icon Sets",Cp="Clear list (cannot be undone)",Sp="Browse all icon sets",$p="Return to",Op={favorite:" favorite icon sets list",recent:" recently viewed icon sets list"},Mp="Search icons in...",oa="Search icons",Tp="Search",Ap="all icon sets",Pp="filtered {n} icon sets",Lp={favorite:"favorite icon sets",recent:"recently viewed icon sets"},Fp=oa,Ep="Search icons from filtered {n} icon sets",Rp={favorite:"Search icons from favorite icon sets",recent:"Search icons from recently viewed icon sets"},ia="Enter part of icon name to find icons that match it",Hr='Examples: "account", "home", "left arrow"',Np=`Filters icons in this set `+ia,jp=`Bad keyword Icon names contain only latin letters, numbers and hyphens`,Bp="Filter icons",ra="by",Dp="License",li="{n} icons",la="Icons grid: {n}",zr="Previous Page",Ur="Next Page",ci="Displaying {n} icons",ai="Displaying {n} icon",ui="No matches found",ca="Filter icon sets...",Hp=`Filter icon sets below by name, author, license or grid Click "Advanced Filters" button for more options`,zp="Advanced Filters",Up="Reset All Filters",Vp="Icon sets:",Kp="Filter by keyword:",Wp="Filter by license:",qp="Filter by palette:",Gp="Multiple colors",Jp="Monotone",Yp="Filter by grid:",Qp="Filter by tag:",Xp="Filter by category:",Rs="Uncategorised",Zp="No License",eg="No Grid",An="(empty)",bs=["Noncommercial use only","Commercial use is allowed"],_s=["No attribution required","Attribution required"],tg="Loading icon...",ng="Icon size: {width} x {height}",sg="Icon contains animations",og="Icon set",Vr=["Theme","Themes"],Kr={categories:["Category","Categories"],prefixes:Vr,suffixes:Vr},ig="License",rg="Show color picker...",lg="Select All",cg="Select Visible",ag="Select None",Wr=["No icons selected","One icon selected","{n} icons selected"];function aa(e,t){const n=t.license;e.push(ig+": "+n.title);const s=n.spdx?xn[n.spdx]:void 0;s&&(e.push(" "+_s[s.attribution?1:0]),e.push(" "+bs[s.commercial?1:0]))}function ug({name:e,displayName:t,iconData:n,iconSetData:s,iconSetInfo:o,addFiltersToText:i,skipIconSetInfo:r}){const l=[t];let c,a;if(r!==!0&&(a=o??(s==null?void 0:s.info)),n?(l.push(ng.replace("{width}",`${n.width}`).replace("{height}",`${n.height}`)),Qc(n.body)&&l.push(sg)):l.push(tg),o&&!s&&l.push(og+": "+o.name),a&&aa(l,a),s){const f=s.map[e],d=s.items[f],h=new Map;for(const p in Kr){const _=p,I=d==null?void 0:d[_];if(I!=null&&I.length){const k=_==="categories"?Rs:An,$=Kr[_];I.forEach(C=>{const b=C.title,A=b||k;if(i){const q=h.get($);q?q.push(A):h.set($,[A])}(c||(c=[])).push({type:_,value:b,title:A})})}}h.forEach((p,_)=>{l.push(_[p.length>1?1:0]+": "+p.join(", "))})}return{lines:l,filters:c,displayName:t}}function Oo(e,t){if(!e)return"";const n=[e.name,` ${ra} ${e.author.name}`];if(aa(n,e),t){n.push(li.replace("{n}",`${e.total}`));const s=typeof e.height=="number"?[e.height]:e.height instanceof Array?e.height:null;s&&n.push(la.replace("{n}",s.join(", ")).replace(/,\s?/g,", "))}return n.join(` `)}const fg={class:"if-dropdown-list"},dg=J({__name:"List",setup(e){return(t,n)=>(m(),w("div",fg,[je(t.$slots,"default")]))}}),hg=["icon"],pg={key:1},qr=J({__name:"Option",props:{text:{},hint:{},icon:{},iconStyle:{},selected:{type:Boolean}},emits:["click","blur"],setup(e,{emit:t}){const n=e,s=t;return(o,i)=>(m(),w("button",{class:re(["if-dropdown-option",[n.selected&&"selected"]]),tabindex:-1,onClick:i[0]||(i[0]=r=>s("click")),onBlur:i[1]||(i[1]=r=>s("blur"))},[n.icon?(m(),w("iconify-icon",{key:0,icon:n.icon,style:Je(n.iconStyle)},null,12,hg)):E("",!0),x("span",null,Z(n.text),1),n.hint?(m(),w("small",pg,Z(n.hint),1)):E("",!0)],34))}}),gg={class:"if-tooltip"},Ee=J({__name:"HintWrapper",props:{text:{}},setup(e){return(t,n)=>(m(),w("div",{class:re(["if-tooltip-wrapper",[!t.text.trim()&&"empty"]])},[je(t.$slots,"default"),x("div",gg,Z(t.text),1)],2))}}),mg=["onClick"],Zs=9,yg=4,vg=J({__name:"Colors",props:{colors:{},selected:{}},emits:["update:selected","blur"],setup(e,{emit:t}){const n=e,s=t,o=O(()=>{const r=n.selected;return n.colors.map(l=>{if(typeof l=="string")return{color:l,text:l,key:l,selected:l===r};const c=l.color,a=l.text||l.color,f=l.key||a;return{color:c,text:c===a?a:`${a} -${c}`,key:f,selected:f===r||a===r}})});function i(r){s("update:selected",r)}return(r,l)=>o.value.length?(m(),w("div",{key:0,class:re(["if-dropdown-colors",[o.value.length>Zs*yg&&"scrollable"]])},[(m(!0),w(ie,null,Ye(o.value,(c,a)=>(m(),K(u(Ee),{key:c.key,text:c.text,class:re([a>=Zs*2&&"bottom",a%Zs>4&&"right"])},{default:ue(()=>[x("button",{class:re(c.selected&&"selected"),onClick:f=>i(c.key),onBlur:l[0]||(l[0]=f=>s("blur"))},[x("span",{style:Je({backgroundColor:c.color})},null,4)],42,mg)]),_:2},1032,["text","class"]))),128))],2)):E("",!0)}}),bg={class:"if-dropdown-wrapper"},_g={key:1,class:"if-dropdown-divider"},kg={key:2,class:"if-dropdown-section"},wg=J({__name:"Options",props:{options:{},selected:{}},emits:["update:selected","blur"],setup(e,{emit:t}){const n=e,s=t,o=O(()=>n.selected);function i(r){s("update:selected",r)}return(r,l)=>(m(),w("div",bg,[L(u(dg),null,{default:ue(()=>[je(r.$slots,"default"),(m(!0),w(ie,null,Ye(r.options,(c,a)=>(m(),w(ie,{key:a},[typeof c=="string"?(m(),K(u(qr),{key:0,text:c,selected:c===o.value,onClick:f=>i(c),onBlur:l[0]||(l[0]=f=>s("blur"))},null,8,["text","selected","onClick"])):c.type==="separator"?(m(),w("div",_g)):c.type==="section"?(m(),w("div",kg,Z(c.section),1)):c.type==="option"?(m(),K(u(qr),En({key:3,ref_for:!0},c,{text:c.text??c.value,selected:c.value===o.value,onClick:f=>i(c.value),onBlur:l[1]||(l[1]=f=>s("blur"))}),null,16,["text","selected","onClick"])):c.type==="colors"?(m(),K(u(vg),{key:4,colors:c.colors,selected:o.value,"onUpdate:selected":i,onBlur:l[2]||(l[2]=f=>s("blur"))},null,8,["colors","selected"])):E("",!0)],64))),128))]),_:3})]))}}),xg=["tabindex"],Ig=["icon"],Cg={key:1},Sg=["icon"],$e=J({__name:"Button",props:{icon:{},iconAfter:{},text:{},disabled:{type:Boolean},selected:{type:Boolean},active:{type:Boolean},color:{}},emits:["click"],setup(e,{emit:t}){const n=t;return(s,o)=>(m(),w("button",{class:re(["if-button",[s.disabled&&"disabled",!s.disabled&&s.active&&"active",!s.disabled&&s.selected&&"selected",!s.disabled&&s.color&&`has-color color-${s.color}`]]),tabindex:s.disabled?-1:void 0,onClick:o[0]||(o[0]=i=>n("click"))},[s.icon?(m(),w("iconify-icon",{key:0,icon:s.icon},null,8,Ig)):E("",!0),s.text?(m(),w("span",Cg,Z(s.text),1)):E("",!0),s.iconAfter?(m(),w("iconify-icon",{key:2,icon:s.iconAfter},null,8,Sg)):E("",!0)],10,xg))}});function Ut(e,t){const n=z(t[e()?"checked":"unchecked"]);return ye(e,s=>{n.value=t[s?"checked2":"unchecked2"]??t[s?"checked":"unchecked"]}),n}function $g(e){var t;return((t=e.value)==null?void 0:t.matches(":focus-within"))??!1}const Og=["icon"],Mg=["icon"],ua=J({__name:"Container",props:{value:{},icon:{},iconStyle:{},resetIcon:{},canReset:{type:Boolean},defaultValue:{},options:{},bottom:{type:Boolean},noButton:{type:Boolean},ignoreFocus:{type:Boolean},enterKey:{type:Function},arrowKey:{type:Function},handleSideArrows:{type:Boolean},type:{},placeholder:{},textForValue:{type:Function}},emits:["update:value"],setup(e,{expose:t,emit:n}){const s=e,o=Sc(),i=n;function r(b){i("update:value",b)}const l=z(),c=z(!1);function a(){c.value=$g(l),c.value||(d.value=null)}const f=O(()=>!!o.dropdown||!!s.options),d=z(s.ignoreFocus?!1:null),h=O(()=>c.value?d.value??!0:!1);function p(){d.value!==null?d.value=!d.value:c.value=!c.value}function _(b){var W;const A=(W=s.options)==null?void 0:W.filter(U=>U!=="-");if(!(A!=null&&A.length))return;const q=s.value,R=A.findIndex(U=>U===q||typeof U=="object"&&U.value===q),F=Du({last:A.length-1,current:R===-1?void 0:R,defaultNext:0},b);if(F!==null){const U=A[F];r(typeof U=="object"?U.value:U)}}function I(b){function A(q,R){var F;if(!(R&&!s.handleSideArrows)){if(((F=s.arrowKey)==null?void 0:F.call(s,q))===!1){b.preventDefault();return}s.options&&(b.preventDefault(),_(q))}}switch(b.code){case"Escape":{f.value&&h.value&&(b.preventDefault(),d.value=!1);return}case"ArrowLeft":case"ArrowUp":A(b.metaKey?"first":"prev",b.code==="ArrowLeft");return;case"ArrowRight":case"ArrowDown":A(b.metaKey?"last":"next",b.code==="ArrowRight");return;case"Home":case"PageUp":A("first",b.code==="Home");return;case"End":case"PageDown":A("last",b.code==="End");return}}function k(b){var A;switch(b.code){case"Enter":if(!b.metaKey&&((A=s.enterKey)==null?void 0:A.call(s))===!1){b.preventDefault();return}case"Space":{f.value&&!h.value&&(b.preventDefault(),d.value=!0);return}}I(b)}t({node:l,checkFocus:a,handleInputKeyboard:k,handleSharedKeyboardEvents:I});const $=Ut(()=>s.bottom?!h.value:h.value,fe.toggle);function C(){r(s.defaultValue||""),c.value=!1,d.value=null}return(b,A)=>(m(),w("div",{class:re(["if-input",[b.canReset?"can-reset":"no-reset",b.bottom&&"bottom"]]),ref_key:"node",ref:l},[b.icon?(m(),w("iconify-icon",{key:0,class:"if-input-decoration",icon:b.icon,style:Je(b.iconStyle)},null,12,Og)):E("",!0),je(b.$slots,"input"),b.canReset&&b.value!==b.defaultValue?(m(),w("button",{key:1,class:"if-input-reset",tabindex:"-1",onClick:C,onBlur:a},[x("iconify-icon",{icon:b.resetIcon||u(fe).reset},null,8,Mg)],32)):E("",!0),je(b.$slots,"button"),f.value?(m(),w(ie,{key:2},[b.noButton?E("",!0):(m(),K(u($e),{key:0,class:"if-input-toggle",icon:u($),active:h.value,tabindex:-1,onClick:p,onBlur:a},null,8,["icon","active"])),h.value?(m(),K(u(wg),{key:1,class:re([b.bottom&&"bottom"]),options:b.options,selected:b.value,"onUpdate:selected":r,onBlur:a,onKeydown:I},{default:ue(()=>[je(b.$slots,"dropdown")]),_:3},8,["class","options","selected"])):E("",!0)],64)):E("",!0)],2))}}),Tg=["placeholder","value"],nn=J({__name:"Text",props:{value:{},placeholder:{},icon:{},iconStyle:{},resetIcon:{},defaultValue:{},options:{},bottom:{type:Boolean},noButton:{type:Boolean},ignoreFocus:{type:Boolean},enterKey:{type:Function},arrowKey:{type:Function},handleSideArrows:{type:Boolean},type:{},textForValue:{type:Function}},emits:["update:value","blur"],setup(e,{emit:t}){const n=e,s=t;Sc();function o(f){s("update:value",f)}const i=z();function r(){var f;(f=i.value)==null||f.checkFocus()}function l(){r(),s("blur")}function c(f){o(f.target.value)}function a(f){var d;(d=i.value)==null||d.handleInputKeyboard(f)}return(f,d)=>(m(),K(u(ua),En(n,{"onUpdate:value":o,defaultValue:n.defaultValue||"",canReset:!0,ref_key:"wrapper",ref:i}),Xd({input:ue(()=>[x("input",{class:"if-input-content",type:"text",placeholder:f.placeholder,value:f.value,autocomplete:"off",spellcheck:"false",onInput:c,onFocus:r,onBlur:l,onKeydown:a},null,40,Tg)]),_:2},[f.$slots.button?{name:"button",fn:ue(()=>[je(f.$slots,"button")]),key:"0"}:void 0,f.$slots.dropdown?{name:"dropdown",fn:ue(()=>[je(f.$slots,"dropdown")]),key:"1"}:void 0]),1040,["defaultValue"]))}}),Ag=["tabindex"],Pg=["icon"],Lg=J({__name:"Checkbox",props:{value:{type:Boolean},text:{},disabled:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t;Fu(Object.values(fe.checkbox));const o=Ut(()=>n.value,fe.checkbox);return(i,r)=>(m(),w("button",{class:re(["if-checkbox",[n.value?"checked":"unchecked",n.disabled&&"disabled"]]),tabindex:n.disabled?-1:void 0,onClick:r[0]||(r[0]=l=>s("update:value",!n.value))},[x("iconify-icon",{icon:u(o)},null,8,Pg),x("span",null,Z(n.text),1)],10,Ag))}}),Fg=J({__name:"Select",props:{placeholder:{},options:{},textForValue:{type:Function},value:{},icon:{},iconStyle:{},resetIcon:{},canReset:{type:Boolean},defaultValue:{},bottom:{type:Boolean},noButton:{type:Boolean},ignoreFocus:{type:Boolean},enterKey:{type:Function},arrowKey:{type:Function},type:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t;function o(a){s("update:value",a)}const i=z();function r(){var a;(a=i.value)==null||a.checkFocus()}function l(a){return n.textForValue?n.textForValue(a):a}function c(a){var f;(f=i.value)==null||f.handleInputKeyboard(a)}return(a,f)=>(m(),K(u(ua),En(n,{"onUpdate:value":o,ref_key:"wrapper",ref:i,handleSideArrows:!0}),{input:ue(()=>[x("button",{class:re(["if-input-content",[!a.value&&a.placeholder&&"placeholder"]]),onFocus:r,onBlur:r,onKeydown:c},Z(l(a.value||a.placeholder)),35)]),button:ue(()=>[je(a.$slots,"button")]),dropdown:ue(()=>[je(a.$slots,"dropdown")]),_:3},16))}}),Eg=["tabindex"],Rg=["icon"],Qt=J({__name:"Tab",props:{text:{},icon:{},disabled:{type:Boolean},hidden:{type:Boolean},selected:{type:Boolean},dimmed:{type:Boolean},color:{}},emits:["click"],setup(e,{emit:t}){const n=e,s=t;return(o,i)=>(m(),w("button",{class:re(["if-tab",[n.disabled&&"disabled",n.hidden&&"hidden",n.dimmed&&"dimmed",!n.disabled&&n.selected&&"selected",!n.disabled&&n.color&&`has-color color-${n.color}`]]),tabindex:n.disabled||n.hidden?-1:void 0,onClick:i[0]||(i[0]=r=>s("click"))},[o.icon?(m(),w("iconify-icon",{key:0,icon:o.icon},null,8,Rg)):E("",!0),Ae(" "+Z(n.text),1)],10,Eg))}}),Ng=["icon"],jg=J({__name:"TabsToggle",props:{expanded:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,s=t,o=Ut(()=>n.expanded,fe.toggle);return(i,r)=>(m(),w("button",{class:re(["if-tab if-tab--toggle",[n.expanded?"expanded":"compact"]]),onClick:r[0]||(r[0]=l=>s("click"))},[x("iconify-icon",{icon:u(o)},null,8,Ng)],2))}}),Bg=J({__name:"Size",props:{value:{},bottom:{type:Boolean},size:{},options:{},multiple:{type:Boolean}},emits:["update:value","blur"],setup(e,{emit:t}){const n=e,s=t,o=O(()=>n.value?n.value.toString():""),i=O(()=>n.options.map(c=>c.toString()));function r(c){const a=parseInt(c);s("update:value",a||null)}function l(c){const a=n.value??n.size;switch(c){case"prev":return a>12&&r(`${a-1}`),!1;case"next":return r(`${a+1}`),!1;case"first":const f=n.options.reduce((h,p)=>Math.min(h,p),Math.min(12,a));return fMath.max(h,p),a);return d>a&&r(`${d}`),!1}}return(c,a)=>(m(),K(u(nn),{class:"fixed-width tiny",bottom:c.bottom,icon:u(fe).size,value:o.value,placeholder:c.multiple?"auto":`${c.size}`,"onUpdate:value":r,options:i.value,arrowKey:l},null,8,["bottom","icon","value","placeholder","options"]))}}),Dg={key:0,class:"if-pagination-pages"},Hg=["tabindex","title"],zg=["icon"],Ug={class:"if-pagination-content"},Vg={key:0},Kg=["tabindex","onClick"],Wg=["tabindex","title"],qg=["icon"],Gg=J({__name:"Pages",props:{page:{},total:{}},emits:["update:page"],setup(e,{emit:t}){const n=e,s=t,o=O(()=>zu(n.page,n.total,!1));function i(r){r!==n.page&&s("update:page",r)}return(r,l)=>r.total>1?(m(),w("div",Dg,[L(u(Ee),{text:r.page>0?u(zr):"",class:"bottom"},{default:ue(()=>[x("button",{class:re(["if-page if-page--icon",[r.page===0&&"disabled"]]),tabindex:r.page===0?-1:void 0,title:u(zr),onClick:l[0]||(l[0]=c=>i(r.page-1))},[x("iconify-icon",{icon:u(fe).prevPage},null,8,zg)],10,Hg)]),_:1},8,["text"]),x("div",Ug,[(m(!0),w(ie,null,Ye(o.value,c=>(m(),w(ie,{key:c.page},[c.dot?(m(),w("span",Vg,"...")):E("",!0),x("button",{class:re(["if-page",[r.page===c.page&&"selected"]]),tabindex:r.page===c.page?-1:void 0,onClick:a=>i(c.page)},[x("span",null,Z(c.text),1)],10,Kg)],64))),128))]),L(u(Ee),{text:r.page[x("button",{class:re(["if-page if-page--icon",[r.page===r.total-1&&"disabled"]]),tabindex:r.page===r.total-1?-1:void 0,title:u(Ur),onClick:l[1]||(l[1]=c=>i(r.page+1))},[x("iconify-icon",{icon:u(fe).nextPage},null,8,qg)],10,Wg)]),_:1},8,["text"])])):E("",!0)}}),Jg={key:0,class:"if-pagination-container"},Yg={class:"if-pagination-text"},Qg=x("span",{class:"if-pagination-line"},null,-1),Xg={key:0,class:"if-pagination-slot"},Zg=J({__name:"Block",props:{text:{},hint:{},page:{},total:{},hasSlot:{type:Boolean}},emits:["update:page"],setup(e,{emit:t}){const n=t;return(s,o)=>s.total>1||s.text?(m(),w("div",Jg,[x("div",{class:re(["if-pagination",s.hasSlot?"with-slot":"no-slot"])},[x("div",Yg,[x("span",null,Z(s.text),1),s.hint?(m(),w(ie,{key:0},[Qg,x("small",null,Z(s.hint),1)],64)):E("",!0)]),s.hasSlot?(m(),w("div",Xg,[je(s.$slots,"default")])):E("",!0),s.total>1?(m(),K(u(Gg),{key:1,total:s.total,page:s.page,"onUpdate:page":o[0]||(o[0]=i=>n("update:page",i))},null,8,["total","page"])):E("",!0)],2)])):E("",!0)}});function fi(e,t,n){let s;const o=l=>{s=l,t(l)},i=()=>{s&&(n==null||n(s),s=null)};e.value&&o(e.value);const r=ye(e,l=>{l?(i(),o(l)):i()});return()=>{r(),i()}}function Mo(e,t){let n;try{n=new ResizeObserver(t)}catch{}if(n)return fi(e,s=>{n==null||n.observe(s)},()=>{n==null||n.disconnect()})}const em={class:"if-filters-row"},tm=["title"],nm=["icon"],sm={class:"if-filters-toggle",style:{display:"none"}},kt=J({__name:"FiltersRow",props:{filters:{},selected:{},expandTitle:{},collapseTitle:{},resetTitle:{},emptyText:{default:""},list:{type:Boolean,default:!1},hideDisabled:{type:Boolean,default:!1},expanded:{type:[Boolean,null],default:null},canReset:{type:Boolean,default:!0}},emits:["update:selected","update:expanded"],setup(e,{emit:t}){const n=e,s=t,o=z(null),i=z(null),r=z(!1),l=O(()=>typeof n.expanded=="boolean"?n.expanded:i.value!==null?i.value:r.value),c=O(()=>l.value?n.collapseTitle:n.expandTitle);function a(){const _=!l.value;i.value=_,s("update:expanded",_)}function f(_){const I=_===n.selected?null:_;r.value=I!==null,s("update:selected",I)}let d=!1;function h(){const _=o.value;if(!_)return;const I=l.value;if(I&&d)return;d=I;const k=n.list,$=n.hideDisabled,C=_.querySelector(".if-filters-row"),b=_.querySelector(".if-filters-toggle"),A=Array.from(C.querySelectorAll(".if-tab"));A.forEach(V=>{const de=$&&V.classList.contains("disabled")&&!V.classList.contains("selected");V.style.display=de?"none":"",V.classList[de?"add":"remove"]("hidden")}),b.style.display="none",b.classList.remove("visible"),C.classList[k?"add":"remove"]("expanded");const q=C.getBoundingClientRect().height;C.style.flexWrap="nowrap";const R=()=>{C.style.maxHeight="",C.style.overflow=""};!k&&!I&&(C.style.maxHeight=`${q+4}px`,C.style.overflow="hidden");const F=C.getBoundingClientRect().height+1;if(C.style.flexWrap="",k)b.style.display="none",b.classList.remove("visible");else{if(q<=F){R();return}b.style.display="",b.classList.add("visible")}if(k||C.classList[I?"add":"remove"]("expanded"),k||l.value)return;const W=["disabled","dimmed","normal"],U={disabled:[],dimmed:[],normal:[]},Y={disabled:[],dimmed:[],normal:[]};let ee=0,le=0,Q=!1;A.forEach(V=>{if(V.classList.contains("selected")){Q=!0;return}if($&&V.classList.contains("disabled")||V.classList.contains("reset"))return;const de=V.getBoundingClientRect().width,ce=V.classList.contains("disabled")?"disabled":V.classList.contains("dimmed")?"dimmed":"normal",pe={button:V,width:de,foundSelected:Q};Q?(Y[ce].unshift(pe),le+=de):(U[ce].push(pe),ee+=de)});const te=Q||le>0;for(let V=0;Vle?0:1,qe=ce[pe];qe.length||(qe=ce[1-pe]);const ne=qe.shift();if(!ne)break;if(ne.button.style.display="none",ne.button.classList.add("hidden"),ne.foundSelected?le-=ne.width:ee-=ne.width,C.getBoundingClientRect().height<=F){R();return}}}R()}const p=z(!1);return xc(()=>{p.value=!0,h()}),Ic(h),Mo(o,h),(_,I)=>(m(),w("div",{class:re(["if-filters-container",[l.value?"expanded":"collapsed",p.value?"mounted":"unmounted"]]),ref_key:"container",ref:o},[x("div",em,[(m(!0),w(ie,null,Ye(n.filters,k=>(m(),w(ie,{key:k.text},[k.visible||!k.dimmed?(m(),K(u(Qt),{key:0,text:k.title||k.text||n.emptyText,selected:k.text===n.selected,dimmed:k.dimmed,disabled:!k.visible,color:k.color,onClick:$=>f(k.text)},null,8,["text","selected","dimmed","disabled","color","onClick"])):E("",!0)],64))),128)),n.canReset&&n.selected!==null?(m(),w("button",{key:0,class:"if-tab if-tab--reset",title:n.resetTitle,onClick:I[0]||(I[0]=k=>f(n.selected))},[x("iconify-icon",{icon:u(fe).reset},null,8,nm)],8,tm)):E("",!0)]),x("div",sm,[L(u(jg),{expanded:l.value,title:c.value,onClick:a},null,8,["expanded","title"])])],2))}}),om={class:"if-filters-container"},im={class:"if-filters-row"},rm=["selected","disabled"],lm=["icon"],eo=J({__name:"Filters",props:{true:{},false:{},null:{},value:{type:[Boolean,null]},allowNull:{type:[Boolean,String]},color:{},disabled:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t;function o(i){s("update:value",n.allowNull&&n.value===i?null:i)}return(i,r)=>(m(),w("div",om,[x("div",im,[n.allowNull===!0&&n.null?(m(),K(u(Qt),{key:0,text:n.null,selected:n.value===null,disabled:n.disabled&&n.value===null,color:n.color,onClick:r[0]||(r[0]=l=>o(null))},null,8,["text","selected","disabled","color"])):E("",!0),L(u(Qt),{text:n.true,selected:n.value===!0,disabled:n.disabled&&n.value===null,color:(n.color??0)+1,onClick:r[1]||(r[1]=l=>o(!0))},null,8,["text","selected","disabled","color"]),L(u(Qt),{text:n.false,selected:n.value===!1,disabled:n.disabled&&n.value===null,color:(n.color??0)+2,onClick:r[2]||(r[2]=l=>o(!1))},null,8,["text","selected","disabled","color"]),n.value!==null&&(n.allowNull==="last"||n.allowNull&&!n.null)?(m(),w("button",{key:1,class:"if-tab if-tab--reset",dimmed:!0,selected:n.value===null,disabled:n.disabled&&n.value===null,onClick:r[3]||(r[3]=l=>o(null))},[x("iconify-icon",{icon:u(fe).reset},null,8,lm)],8,rm)):E("",!0)])]))}}),cm={class:"if-prefix-filters"},am={class:"if-form-container"},um={key:0,class:"if-form-keyword"},fm={key:1},dm={key:2},hm={key:3},pm={key:4},gm={key:5},mm={key:6},ym={class:"if-form-container"},vm={key:0,class:"if-form-buttons"},fa=J({__name:"PrefixFilters",props:{filters:{},showKeyword:{type:Boolean},keywordPlaceholder:{},keywordIcon:{},keywordText:{},prefixes:{},categories:{},tags:{},palette:{type:Boolean},licenses:{},attribution:{type:Boolean},commercial:{type:Boolean},grids:{},canReset:{type:Boolean}},emits:["reset"],setup(e,{emit:t}){const n=e,s=n.palette,o=n.attribution,i=n.commercial,r=t;return(l,c)=>(m(),w("div",cm,[x("div",am,[l.showKeyword?(m(),w("dl",um,[x("dt",null,Z(l.keywordText??u(Kp)),1),x("dd",null,[L(u(nn),{class:"full",icon:l.keywordIcon??u(fe).search,placeholder:l.keywordPlaceholder??u(ca),value:l.filters.keyword,"onUpdate:value":c[0]||(c[0]=a=>l.filters.keyword=a)},null,8,["icon","placeholder","value"])])])):E("",!0),l.prefixes?(m(),w("dl",fm,[x("dt",null,Z(u(Vp)),1),x("dd",null,[L(u(kt),{filters:l.prefixes,selected:l.filters.prefix,"onUpdate:selected":c[1]||(c[1]=a=>l.filters.prefix=a),"empty-text":u(An)},null,8,["filters","selected","empty-text"])])])):E("",!0),l.categories&&(!l.filters.prefix||l.filters.category!==null)?(m(),w("dl",dm,[x("dt",null,Z(u(Xp)),1),x("dd",null,[L(u(kt),{filters:l.categories,selected:l.filters.category,"onUpdate:selected":c[2]||(c[2]=a=>l.filters.category=a),"empty-text":u(Rs)},null,8,["filters","selected","empty-text"])])])):E("",!0),l.tags&&(!l.filters.prefix||l.filters.tag!==null)?(m(),w("dl",hm,[x("dt",null,Z(u(Qp)),1),x("dd",null,[L(u(kt),{filters:l.tags,selected:l.filters.tag,"onUpdate:selected":c[3]||(c[3]=a=>l.filters.tag=a),"empty-text":u(An)},null,8,["filters","selected","empty-text"])])])):E("",!0),(u(s)||l.palette)&&(!l.filters.prefix||l.filters.palette!==null)?(m(),w("dl",pm,[x("dt",null,Z(u(qp)),1),x("dd",null,[L(u(eo),{color:3,true:u(Gp),false:u(Jp),allowNull:!0,value:l.filters.palette,"onUpdate:value":c[4]||(c[4]=a=>l.filters.palette=a),disabled:!l.palette},null,8,["true","false","value","disabled"])])])):E("",!0),l.licenses&&(!l.filters.prefix||l.filters.license!==null||l.filters.attribution!==null||l.filters.commercial!==null)?(m(),w("dl",gm,[x("dt",null,Z(u(Wp)),1),x("dd",null,[L(u(kt),{filters:l.licenses,selected:l.filters.license,"onUpdate:selected":c[5]||(c[5]=a=>l.filters.license=a),"empty-text":u(Zp)},null,8,["filters","selected","empty-text"]),l.filters.license===null?(m(),w(ie,{key:0},[u(o)||l.attribution?(m(),K(u(eo),{key:0,true:u(_s)[1],false:u(_s)[0],allowNull:!0,value:l.filters.attribution,"onUpdate:value":c[6]||(c[6]=a=>l.filters.attribution=a),disabled:!l.attribution,color:6},null,8,["true","false","value","disabled"])):E("",!0),u(i)||l.commercial?(m(),K(u(eo),{key:1,true:u(bs)[1],false:u(bs)[0],allowNull:!0,value:l.filters.commercial,"onUpdate:value":c[7]||(c[7]=a=>l.filters.commercial=a),disabled:!l.commercial,color:2},null,8,["true","false","value","disabled"])):E("",!0)],64)):E("",!0)])])):E("",!0),l.grids&&(!l.filters.prefix||l.filters.grid!==null)?(m(),w("dl",mm,[x("dt",null,Z(u(Yp)),1),x("dd",null,[L(u(kt),{filters:l.grids,selected:l.filters.grid,"onUpdate:selected":c[8]||(c[8]=a=>l.filters.grid=a),"empty-text":u(eg)},null,8,["filters","selected","empty-text"])])])):E("",!0)]),x("div",ym,[l.canReset?(m(),w("div",vm,[L(u($e),{class:"large selected",text:u(Up),icon:u(fe).reset,onClick:c[9]||(c[9]=a=>r("reset"))},null,8,["text","icon"])])):E("",!0)])]))}});function bm(e,t,n={}){const s=z(!0),o=z(0),i=z(0),r=z();let l;t&&(l=fi(e,k=>{r.value=k.parentNode},()=>{r.value=null}));const c=z(0),a=z(0);function f(k,$){return s.value&&(k=($==null?void 0:$.default)??0),$&&(k=Math.max(k,$.min??k),k=Math.min(k,$.max??k)),k}function d(k,$,C,b){o.value=f(k,n.width),i.value=f($,n.height),c.value=f(C,n.width),a.value=f(b,n.height)}d(0,0,0,0);function h(){var $;const k=ct(e);if(k!=null&&k.getBoundingClientRect){const C=k.getBoundingClientRect(),b=k.parentNode,A=($=b==null?void 0:b.getBoundingClientRect)==null?void 0:$.call(b);s.value=!1,d(C.width,C.height,(A==null?void 0:A.width)??0,(A==null?void 0:A.height)??0)}}const p=Mo(e,h);let _;return t&&(_=Mo(r,h)),{width:o,height:i,isDefault:s,parentNode:r,parentWidth:c,parentHeight:a,cleanup:()=>{l==null||l(),p==null||p(),_==null||_()}}}const Gr=.4;function _m(e,t){const n=z(1),{width:s,parentHeight:o,parentNode:i,cleanup:r}=bm(e,!0),l=O(()=>s.value>0),c=O(()=>ct(t.layout)),a=O(()=>c.value.gap||0),f=O(()=>{const ne=c.value;return ne.height+(ne.padding||0)*2+a.value}),d=O(()=>Math.ceil(t.total.value)),h=O(()=>l.value?Math.max(Math.round(o.value),f.value*2):d.value*f.value),p=O(()=>f.value*d.value-(l.value?a.value:0)),_=O(()=>l.value?Math.floor((h.value+a.value)/f.value):2),I=O(()=>Math.ceil(d.value/_.value)),k=z(t.startIndex??0),$=O(()=>{const ne=k.value*f.value-h.value*Gr;return Math.max(0,Math.min(p.value-h.value,Math.round(ne)))});function C(){if(n.value--,!n.value){const ne=ct(i);ne&&ne.scrollTo({top:$.value})}}function b(){n.value++,setTimeout(C)}const A=O(()=>$.value/f.value),q=O(()=>A.value+(l.value?h.value/f.value:2)),R=O(()=>Math.max(0,Math.floor(A.value-(l.value?.2:0)))),F=O(()=>Math.min(d.value-1,Math.ceil(q.value+(l.value?.2:0))-1)),W=O(()=>l.value?Math.max(0,Math.floor(A.value+a.value/f.value+.1)):R.value),U=O(()=>{const ne=F.value;return l.value?Math.min(ne,Math.ceil(q.value-.1)-1):ne}),Y=O(()=>{const ne=_.value,Ie=q.value,Me=d.value,pt=Math.ceil(Me/ne);return Ie>=Me-.5?pt-1:Math.floor(k.value/ne)});function ee(ne,Ie,Me,pt){return ne&&Ie?Ie*Me-pt:0}const le=O(()=>ee(l.value,R.value,f.value,a.value)),Q=O(()=>ee(l.value,d.value-F.value-1,f.value,a.value));l.value?setTimeout(C):ye(l,ne=>{const Ie=ct(i);ne&&Ie&&(Ie.scrollTo({top:$.value}),setTimeout(C))});const te=ne=>{const Ie=(ne+h.value*Gr)/f.value;return Math.max(0,Math.min(Ie,d.value-1))},V=ne=>{const Ie=(ne==null?void 0:ne.target)||ct(i);if(Ie&&!n.value){const Me=Math.round(Ie.scrollTop),pt=te(Me);k.value=pt}},de=fi(i,ne=>{ne.addEventListener("scroll",V)},ne=>{ne==null||ne.removeEventListener("scroll",V)});ye(c,b),ye(o,()=>V());function ce(ne){k.value=Math.max(0,Math.min(t.total.value-1,ne)),b()}return{firstRowHeight:le,lastRowHeight:Q,firstRenderedRow:R,lastRenderedRow:F,rowsPerPage:_,totalPages:I,firstVisibleRow:W,lastVisibleRow:U,currentPage:Y,setPage:ne=>{const Ie=ne*f.value*_.value,Me=te(Ie);ce(Me)},keepPosition:b,cleanup:()=>{r==null||r(),de==null||de()}}}const km={class:"if-items-grid-container"},wm={key:0,class:"if-items-grid-empty"},xm={class:"if-items-grid-footer"},di=J({__name:"Grid",props:{columns:{},layout:{},items:{},emptyText:{},paginationText:{},emptyPaginationText:{},startIndex:{},hasPaginationSlot:{type:Boolean}},emits:["range","scroll"],setup(e,{emit:t}){const n=e,s=t,o=z(),i=O(()=>n.columns),{firstRowHeight:r,lastRowHeight:l,firstRenderedRow:c,lastRenderedRow:a,totalPages:f,rowsPerPage:d,firstVisibleRow:h,lastVisibleRow:p,currentPage:_,setPage:I,cleanup:k}=_m(o,{total:O(()=>Math.ceil(n.items.length/i.value)),layout:O(()=>n.layout),startIndex:n.startIndex?n.startIndex/i.value:0});ye([h,p,f,i],([F,W,U,Y])=>{s("range",F*Y,(W+1)*Y,U),s("scroll",(F+W)/2*Y)});const $=O(()=>{const F=n.layout;return`--_size: ${F.height}px; --_gap: ${F.gap}px; --_columns: ${i.value}; --_full-size: ${F.height+(F.padding??0)*2}px; --_padding: ${F.padding??0}px;`}),C=O(()=>Math.ceil(i.value/3)),b=O(()=>Math.floor(i.value*2/3)),A=O(()=>i.value*d.value/2);let q;function R(F,W,U){if(q&&q.items===F&&q.first===W&&q.last===U)return q.result;const Y=F.slice(W,U);return q={items:F,first:W,last:U,result:Y},Y}return Ls(k),(F,W)=>{var U;return m(),w(ie,null,[x("div",km,[x("div",{class:"if-items-grid",style:Je($.value)},[x("div",{class:"if-items-grid-inner",ref_key:"innerNode",ref:o},[u(r)>0?(m(),w("div",{key:0,class:"if-items-grid-row placeholder",style:Je(`height: ${u(r)}px;`)},null,4)):E("",!0),x("div",{class:"if-items-grid-row items",style:Je(`grid-template-columns: repeat(${i.value}, 1fr)`)},[(m(!0),w(ie,null,Ye(R(F.items,u(c)*i.value,(u(a)+1)*i.value),(Y,ee)=>je(F.$slots,"default",{key:Y,item:Y,side:ee%i.value=b.value?"right":"center",align:ee0?(m(),w("div",{key:1,class:"if-items-grid-row placeholder",style:Je(`height: ${u(l)}px`)},null,4)):E("",!0)],512),F.items.length?E("",!0):(m(),w("div",wm,Z(F.emptyText||F.emptyPaginationText),1))],4)]),x("div",xm,[je(F.$slots,"beforePagination"),n.emptyPaginationText?(m(),K(u(Zg),{key:0,text:F.items.length||!n.emptyPaginationText?((U=n.paginationText)==null?void 0:U.replace("{n}",F.items.length.toString()))??"":n.emptyPaginationText,hint:u(f)>1?`# ${u(h)*i.value+1}-${Math.min(u(p)*i.value+1,n.items.length)}`:"",total:u(f),page:u(_),hasSlot:F.hasPaginationSlot,"onUpdate:page":u(I)},{default:ue(()=>[je(F.$slots,"pagination")]),_:3},8,["text","hint","total","page","hasSlot","onUpdate:page"])):E("",!0),je(F.$slots,"afterPagination")])],64)}}}),Im={class:"if-navigate-up"},Cm={class:"if-navigate-up-content"},Jr=J({__name:"NavUp",props:{title:{}},emits:["click"],setup(e,{emit:t}){const n=t;return(s,o)=>(m(),w("div",Im,[L(u(Ee),{text:s.title},{default:ue(()=>[L(u($e),{icon:u(fe).backUp,onClick:o[0]||(o[0]=i=>n("click"))},null,8,["icon"])]),_:1},8,["text"]),x("div",Cm,[je(s.$slots,"default")])]))}}),Yr=z("");function Sm(){const e=ri(),t=O(()=>{const s=[],o=e.value;return Mn.value,o.list?s.push(o.list):Gc.value.length>St.value.length&&s.push("filtered"),s.push(""),s});function n(){const s=_e.value;s.type==="search"&&(Yr.value=s.keyword)}return n(),ye(_e,n),{keyword:Yr,modes:t,iconSetsRoute:e,currentRoute:_e,routeDeepUpdate:Mn}}const $m={key:0,class:"if-main-search-buttons"},Om={class:"if-main-search-dropdown if-dropdown-wrapper"},Mm={class:"if-tooltip"},Qr=J({__name:"MainSearch",props:{loader:{},showButtons:{type:Boolean},compact:{type:Boolean}},setup(e){const{keyword:t,modes:n}=Sm(),s=O(()=>t.value.length>1),o=O(()=>s.value&&!ss(t.value)),i=O(()=>!!t.value),r=O(()=>{const _=t.value;return!!_&&!ss(_)});function l(_){var b;const I=ss(t.value);if(!I)return;const k=ii(_e.value),$={type:"search",keyword:I,parent:k};let C=null;_==="filtered"?C=St.value.slice(0):_&&_===k.list&&(C=(b=Ue[_])==null?void 0:b.prefixes.value),!(C!==null&&($.prefixes=C,!C.length))&&(_e.value=$)}function c(){return l(n.value[0]),!1}const a=O(()=>n.value[0]),f=O(()=>{switch(a.value){case"":return Fp;case"filtered":return Ep.replace("{n}",`${St.value.length}`);default:return Rp[a.value]}}),d=O(()=>o.value?jp+` +${c}`,key:f,selected:f===r||a===r}})});function i(r){s("update:selected",r)}return(r,l)=>o.value.length?(m(),w("div",{key:0,class:re(["if-dropdown-colors",[o.value.length>Zs*yg&&"scrollable"]])},[(m(!0),w(ie,null,Ye(o.value,(c,a)=>(m(),K(u(Ee),{key:c.key,text:c.text,class:re([a>=Zs*2&&"bottom",a%Zs>4&&"right"])},{default:ue(()=>[x("button",{class:re(c.selected&&"selected"),onClick:f=>i(c.key),onBlur:l[0]||(l[0]=f=>s("blur"))},[x("span",{style:Je({backgroundColor:c.color})},null,4)],42,mg)]),_:2},1032,["text","class"]))),128))],2)):E("",!0)}}),bg={class:"if-dropdown-wrapper"},_g={key:1,class:"if-dropdown-divider"},kg={key:2,class:"if-dropdown-section"},wg=J({__name:"Options",props:{options:{},selected:{}},emits:["update:selected","blur"],setup(e,{emit:t}){const n=e,s=t,o=O(()=>n.selected);function i(r){s("update:selected",r)}return(r,l)=>(m(),w("div",bg,[L(u(dg),null,{default:ue(()=>[je(r.$slots,"default"),(m(!0),w(ie,null,Ye(r.options,(c,a)=>(m(),w(ie,{key:a},[typeof c=="string"?(m(),K(u(qr),{key:0,text:c,selected:c===o.value,onClick:f=>i(c),onBlur:l[0]||(l[0]=f=>s("blur"))},null,8,["text","selected","onClick"])):c.type==="separator"?(m(),w("div",_g)):c.type==="section"?(m(),w("div",kg,Z(c.section),1)):c.type==="option"?(m(),K(u(qr),En({key:3,ref_for:!0},c,{text:c.text??c.value,selected:c.value===o.value,onClick:f=>i(c.value),onBlur:l[1]||(l[1]=f=>s("blur"))}),null,16,["text","selected","onClick"])):c.type==="colors"?(m(),K(u(vg),{key:4,colors:c.colors,selected:o.value,"onUpdate:selected":i,onBlur:l[2]||(l[2]=f=>s("blur"))},null,8,["colors","selected"])):E("",!0)],64))),128))]),_:3})]))}}),xg=["tabindex"],Ig=["icon"],Cg={key:1},Sg=["icon"],$e=J({__name:"Button",props:{icon:{},iconAfter:{},text:{},disabled:{type:Boolean},selected:{type:Boolean},active:{type:Boolean},color:{}},emits:["click"],setup(e,{emit:t}){const n=t;return(s,o)=>(m(),w("button",{class:re(["if-button",[s.disabled&&"disabled",!s.disabled&&s.active&&"active",!s.disabled&&s.selected&&"selected",!s.disabled&&s.color&&`has-color color-${s.color}`]]),tabindex:s.disabled?-1:void 0,onClick:o[0]||(o[0]=i=>n("click"))},[s.icon?(m(),w("iconify-icon",{key:0,icon:s.icon},null,8,Ig)):E("",!0),s.text?(m(),w("span",Cg,Z(s.text),1)):E("",!0),s.iconAfter?(m(),w("iconify-icon",{key:2,icon:s.iconAfter},null,8,Sg)):E("",!0)],10,xg))}});function Ut(e,t){const n=z(t[e()?"checked":"unchecked"]);return ye(e,s=>{n.value=t[s?"checked2":"unchecked2"]??t[s?"checked":"unchecked"]}),n}function $g(e){var t;return((t=e.value)==null?void 0:t.matches(":focus-within"))??!1}const Og=["icon"],Mg=["icon"],ua=J({__name:"Container",props:{value:{},icon:{},iconStyle:{},resetIcon:{},canReset:{type:Boolean},defaultValue:{},options:{},bottom:{type:Boolean},noButton:{type:Boolean},ignoreFocus:{type:Boolean},enterKey:{type:Function},arrowKey:{type:Function},handleSideArrows:{type:Boolean},type:{},placeholder:{},textForValue:{type:Function}},emits:["update:value"],setup(e,{expose:t,emit:n}){const s=e,o=Sc(),i=n;function r(b){i("update:value",b)}const l=z(),c=z(!1);function a(){c.value=$g(l),c.value||(d.value=null)}const f=O(()=>!!o.dropdown||!!s.options),d=z(s.ignoreFocus?!1:null),h=O(()=>c.value?d.value??!0:!1);function p(){d.value!==null?d.value=!d.value:c.value=!c.value}function _(b){var W;const A=(W=s.options)==null?void 0:W.filter(U=>U!=="-");if(!(A!=null&&A.length))return;const q=s.value,R=A.findIndex(U=>U===q||typeof U=="object"&&U.value===q),F=Du({last:A.length-1,current:R===-1?void 0:R,defaultNext:0},b);if(F!==null){const U=A[F];r(typeof U=="object"?U.value:U)}}function I(b){function A(q,R){var F;if(!(R&&!s.handleSideArrows)){if(((F=s.arrowKey)==null?void 0:F.call(s,q))===!1){b.preventDefault();return}s.options&&(b.preventDefault(),_(q))}}switch(b.code){case"Escape":{f.value&&h.value&&(b.preventDefault(),d.value=!1);return}case"ArrowLeft":case"ArrowUp":A(b.metaKey?"first":"prev",b.code==="ArrowLeft");return;case"ArrowRight":case"ArrowDown":A(b.metaKey?"last":"next",b.code==="ArrowRight");return;case"Home":case"PageUp":A("first",b.code==="Home");return;case"End":case"PageDown":A("last",b.code==="End");return}}function k(b){var A;switch(b.code){case"Enter":if(!b.metaKey&&((A=s.enterKey)==null?void 0:A.call(s))===!1){b.preventDefault();return}case"Space":{f.value&&!h.value&&(b.preventDefault(),d.value=!0);return}}I(b)}t({node:l,checkFocus:a,handleInputKeyboard:k,handleSharedKeyboardEvents:I});const $=Ut(()=>s.bottom?!h.value:h.value,fe.toggle);function C(){r(s.defaultValue||""),c.value=!1,d.value=null}return(b,A)=>(m(),w("div",{class:re(["if-input",[b.canReset?"can-reset":"no-reset",b.bottom&&"bottom"]]),ref_key:"node",ref:l},[b.icon?(m(),w("iconify-icon",{key:0,class:"if-input-decoration",icon:b.icon,style:Je(b.iconStyle)},null,12,Og)):E("",!0),je(b.$slots,"input"),b.canReset&&b.value!==b.defaultValue?(m(),w("button",{key:1,class:"if-input-reset",tabindex:"-1",onClick:C,onBlur:a},[x("iconify-icon",{icon:b.resetIcon||u(fe).reset},null,8,Mg)],32)):E("",!0),je(b.$slots,"button"),f.value?(m(),w(ie,{key:2},[b.noButton?E("",!0):(m(),K(u($e),{key:0,class:"if-input-toggle",icon:u($),active:h.value,tabindex:-1,onClick:p,onBlur:a},null,8,["icon","active"])),h.value?(m(),K(u(wg),{key:1,class:re([b.bottom&&"bottom"]),options:b.options,selected:b.value,"onUpdate:selected":r,onBlur:a,onKeydown:I},{default:ue(()=>[je(b.$slots,"dropdown")]),_:3},8,["class","options","selected"])):E("",!0)],64)):E("",!0)],2))}}),Tg=["placeholder","value"],nn=J({__name:"Text",props:{value:{},placeholder:{},icon:{},iconStyle:{},resetIcon:{},defaultValue:{},options:{},bottom:{type:Boolean},noButton:{type:Boolean},ignoreFocus:{type:Boolean},enterKey:{type:Function},arrowKey:{type:Function},handleSideArrows:{type:Boolean},type:{},textForValue:{type:Function}},emits:["update:value","blur"],setup(e,{emit:t}){const n=e,s=t;Sc();function o(f){s("update:value",f)}const i=z();function r(){var f;(f=i.value)==null||f.checkFocus()}function l(){r(),s("blur")}function c(f){o(f.target.value)}function a(f){var d;(d=i.value)==null||d.handleInputKeyboard(f)}return(f,d)=>(m(),K(u(ua),En(n,{"onUpdate:value":o,defaultValue:n.defaultValue||"",canReset:!0,ref_key:"wrapper",ref:i}),Xd({input:ue(()=>[x("input",{class:"if-input-content",type:"text",placeholder:f.placeholder,value:f.value,autocomplete:"off",spellcheck:"false",onInput:c,onFocus:r,onBlur:l,onKeydown:a},null,40,Tg)]),_:2},[f.$slots.button?{name:"button",fn:ue(()=>[je(f.$slots,"button")]),key:"0"}:void 0,f.$slots.dropdown?{name:"dropdown",fn:ue(()=>[je(f.$slots,"dropdown")]),key:"1"}:void 0]),1040,["defaultValue"]))}}),Ag=["tabindex"],Pg=["icon"],Lg=J({__name:"Checkbox",props:{value:{type:Boolean},text:{},disabled:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t;Fu(Object.values(fe.checkbox));const o=Ut(()=>n.value,fe.checkbox);return(i,r)=>(m(),w("button",{class:re(["if-checkbox",[n.value?"checked":"unchecked",n.disabled&&"disabled"]]),tabindex:n.disabled?-1:void 0,onClick:r[0]||(r[0]=l=>s("update:value",!n.value))},[x("iconify-icon",{icon:u(o)},null,8,Pg),x("span",null,Z(n.text),1)],10,Ag))}}),Fg=J({__name:"Select",props:{placeholder:{},options:{},textForValue:{type:Function},value:{},icon:{},iconStyle:{},resetIcon:{},canReset:{type:Boolean},defaultValue:{},bottom:{type:Boolean},noButton:{type:Boolean},ignoreFocus:{type:Boolean},enterKey:{type:Function},arrowKey:{type:Function},type:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t;function o(a){s("update:value",a)}const i=z();function r(){var a;(a=i.value)==null||a.checkFocus()}function l(a){return n.textForValue?n.textForValue(a):a}function c(a){var f;(f=i.value)==null||f.handleInputKeyboard(a)}return(a,f)=>(m(),K(u(ua),En(n,{"onUpdate:value":o,ref_key:"wrapper",ref:i,handleSideArrows:!0}),{input:ue(()=>[x("button",{class:re(["if-input-content",[!a.value&&a.placeholder&&"placeholder"]]),onFocus:r,onBlur:r,onKeydown:c},Z(l(a.value||a.placeholder)),35)]),button:ue(()=>[je(a.$slots,"button")]),dropdown:ue(()=>[je(a.$slots,"dropdown")]),_:3},16))}}),Eg=["tabindex"],Rg=["icon"],Qt=J({__name:"Tab",props:{text:{},icon:{},disabled:{type:Boolean},hidden:{type:Boolean},selected:{type:Boolean},dimmed:{type:Boolean},color:{}},emits:["click"],setup(e,{emit:t}){const n=e,s=t;return(o,i)=>(m(),w("button",{class:re(["if-tab",[n.disabled&&"disabled",n.hidden&&"hidden",n.dimmed&&"dimmed",!n.disabled&&n.selected&&"selected",!n.disabled&&n.color&&`has-color color-${n.color}`]]),tabindex:n.disabled||n.hidden?-1:void 0,onClick:i[0]||(i[0]=r=>s("click"))},[o.icon?(m(),w("iconify-icon",{key:0,icon:o.icon},null,8,Rg)):E("",!0),Pe(" "+Z(n.text),1)],10,Eg))}}),Ng=["icon"],jg=J({__name:"TabsToggle",props:{expanded:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,s=t,o=Ut(()=>n.expanded,fe.toggle);return(i,r)=>(m(),w("button",{class:re(["if-tab if-tab--toggle",[n.expanded?"expanded":"compact"]]),onClick:r[0]||(r[0]=l=>s("click"))},[x("iconify-icon",{icon:u(o)},null,8,Ng)],2))}}),Bg=J({__name:"Size",props:{value:{},bottom:{type:Boolean},size:{},options:{},multiple:{type:Boolean}},emits:["update:value","blur"],setup(e,{emit:t}){const n=e,s=t,o=O(()=>n.value?n.value.toString():""),i=O(()=>n.options.map(c=>c.toString()));function r(c){const a=parseInt(c);s("update:value",a||null)}function l(c){const a=n.value??n.size;switch(c){case"prev":return a>12&&r(`${a-1}`),!1;case"next":return r(`${a+1}`),!1;case"first":const f=n.options.reduce((h,p)=>Math.min(h,p),Math.min(12,a));return fMath.max(h,p),a);return d>a&&r(`${d}`),!1}}return(c,a)=>(m(),K(u(nn),{class:"fixed-width tiny",bottom:c.bottom,icon:u(fe).size,value:o.value,placeholder:c.multiple?"auto":`${c.size}`,"onUpdate:value":r,options:i.value,arrowKey:l},null,8,["bottom","icon","value","placeholder","options"]))}}),Dg={key:0,class:"if-pagination-pages"},Hg=["tabindex","title"],zg=["icon"],Ug={class:"if-pagination-content"},Vg={key:0},Kg=["tabindex","onClick"],Wg=["tabindex","title"],qg=["icon"],Gg=J({__name:"Pages",props:{page:{},total:{}},emits:["update:page"],setup(e,{emit:t}){const n=e,s=t,o=O(()=>zu(n.page,n.total,!1));function i(r){r!==n.page&&s("update:page",r)}return(r,l)=>r.total>1?(m(),w("div",Dg,[L(u(Ee),{text:r.page>0?u(zr):"",class:"bottom"},{default:ue(()=>[x("button",{class:re(["if-page if-page--icon",[r.page===0&&"disabled"]]),tabindex:r.page===0?-1:void 0,title:u(zr),onClick:l[0]||(l[0]=c=>i(r.page-1))},[x("iconify-icon",{icon:u(fe).prevPage},null,8,zg)],10,Hg)]),_:1},8,["text"]),x("div",Ug,[(m(!0),w(ie,null,Ye(o.value,c=>(m(),w(ie,{key:c.page},[c.dot?(m(),w("span",Vg,"...")):E("",!0),x("button",{class:re(["if-page",[r.page===c.page&&"selected"]]),tabindex:r.page===c.page?-1:void 0,onClick:a=>i(c.page)},[x("span",null,Z(c.text),1)],10,Kg)],64))),128))]),L(u(Ee),{text:r.page[x("button",{class:re(["if-page if-page--icon",[r.page===r.total-1&&"disabled"]]),tabindex:r.page===r.total-1?-1:void 0,title:u(Ur),onClick:l[1]||(l[1]=c=>i(r.page+1))},[x("iconify-icon",{icon:u(fe).nextPage},null,8,qg)],10,Wg)]),_:1},8,["text"])])):E("",!0)}}),Jg={key:0,class:"if-pagination-container"},Yg={class:"if-pagination-text"},Qg=x("span",{class:"if-pagination-line"},null,-1),Xg={key:0,class:"if-pagination-slot"},Zg=J({__name:"Block",props:{text:{},hint:{},page:{},total:{},hasSlot:{type:Boolean}},emits:["update:page"],setup(e,{emit:t}){const n=t;return(s,o)=>s.total>1||s.text?(m(),w("div",Jg,[x("div",{class:re(["if-pagination",s.hasSlot?"with-slot":"no-slot"])},[x("div",Yg,[x("span",null,Z(s.text),1),s.hint?(m(),w(ie,{key:0},[Qg,x("small",null,Z(s.hint),1)],64)):E("",!0)]),s.hasSlot?(m(),w("div",Xg,[je(s.$slots,"default")])):E("",!0),s.total>1?(m(),K(u(Gg),{key:1,total:s.total,page:s.page,"onUpdate:page":o[0]||(o[0]=i=>n("update:page",i))},null,8,["total","page"])):E("",!0)],2)])):E("",!0)}});function fi(e,t,n){let s;const o=l=>{s=l,t(l)},i=()=>{s&&(n==null||n(s),s=null)};e.value&&o(e.value);const r=ye(e,l=>{l?(i(),o(l)):i()});return()=>{r(),i()}}function Mo(e,t){let n;try{n=new ResizeObserver(t)}catch{}if(n)return fi(e,s=>{n==null||n.observe(s)},()=>{n==null||n.disconnect()})}const em={class:"if-filters-row"},tm=["title"],nm=["icon"],sm={class:"if-filters-toggle",style:{display:"none"}},kt=J({__name:"FiltersRow",props:{filters:{},selected:{},expandTitle:{},collapseTitle:{},resetTitle:{},emptyText:{default:""},list:{type:Boolean,default:!1},hideDisabled:{type:Boolean,default:!1},expanded:{type:[Boolean,null],default:null},canReset:{type:Boolean,default:!0}},emits:["update:selected","update:expanded"],setup(e,{emit:t}){const n=e,s=t,o=z(null),i=z(null),r=z(!1),l=O(()=>typeof n.expanded=="boolean"?n.expanded:i.value!==null?i.value:r.value),c=O(()=>l.value?n.collapseTitle:n.expandTitle);function a(){const _=!l.value;i.value=_,s("update:expanded",_)}function f(_){const I=_===n.selected?null:_;r.value=I!==null,s("update:selected",I)}let d=!1;function h(){const _=o.value;if(!_)return;const I=l.value;if(I&&d)return;d=I;const k=n.list,$=n.hideDisabled,C=_.querySelector(".if-filters-row"),b=_.querySelector(".if-filters-toggle"),A=Array.from(C.querySelectorAll(".if-tab"));A.forEach(V=>{const de=$&&V.classList.contains("disabled")&&!V.classList.contains("selected");V.style.display=de?"none":"",V.classList[de?"add":"remove"]("hidden")}),b.style.display="none",b.classList.remove("visible"),C.classList[k?"add":"remove"]("expanded");const q=C.getBoundingClientRect().height;C.style.flexWrap="nowrap";const R=()=>{C.style.maxHeight="",C.style.overflow=""};!k&&!I&&(C.style.maxHeight=`${q+4}px`,C.style.overflow="hidden");const F=C.getBoundingClientRect().height+1;if(C.style.flexWrap="",k)b.style.display="none",b.classList.remove("visible");else{if(q<=F){R();return}b.style.display="",b.classList.add("visible")}if(k||C.classList[I?"add":"remove"]("expanded"),k||l.value)return;const W=["disabled","dimmed","normal"],U={disabled:[],dimmed:[],normal:[]},Y={disabled:[],dimmed:[],normal:[]};let ee=0,le=0,Q=!1;A.forEach(V=>{if(V.classList.contains("selected")){Q=!0;return}if($&&V.classList.contains("disabled")||V.classList.contains("reset"))return;const de=V.getBoundingClientRect().width,ce=V.classList.contains("disabled")?"disabled":V.classList.contains("dimmed")?"dimmed":"normal",pe={button:V,width:de,foundSelected:Q};Q?(Y[ce].unshift(pe),le+=de):(U[ce].push(pe),ee+=de)});const te=Q||le>0;for(let V=0;Vle?0:1,qe=ce[pe];qe.length||(qe=ce[1-pe]);const ne=qe.shift();if(!ne)break;if(ne.button.style.display="none",ne.button.classList.add("hidden"),ne.foundSelected?le-=ne.width:ee-=ne.width,C.getBoundingClientRect().height<=F){R();return}}}R()}const p=z(!1);return xc(()=>{p.value=!0,h()}),Ic(h),Mo(o,h),(_,I)=>(m(),w("div",{class:re(["if-filters-container",[l.value?"expanded":"collapsed",p.value?"mounted":"unmounted"]]),ref_key:"container",ref:o},[x("div",em,[(m(!0),w(ie,null,Ye(n.filters,k=>(m(),w(ie,{key:k.text},[k.visible||!k.dimmed?(m(),K(u(Qt),{key:0,text:k.title||k.text||n.emptyText,selected:k.text===n.selected,dimmed:k.dimmed,disabled:!k.visible,color:k.color,onClick:$=>f(k.text)},null,8,["text","selected","dimmed","disabled","color","onClick"])):E("",!0)],64))),128)),n.canReset&&n.selected!==null?(m(),w("button",{key:0,class:"if-tab if-tab--reset",title:n.resetTitle,onClick:I[0]||(I[0]=k=>f(n.selected))},[x("iconify-icon",{icon:u(fe).reset},null,8,nm)],8,tm)):E("",!0)]),x("div",sm,[L(u(jg),{expanded:l.value,title:c.value,onClick:a},null,8,["expanded","title"])])],2))}}),om={class:"if-filters-container"},im={class:"if-filters-row"},rm=["selected","disabled"],lm=["icon"],eo=J({__name:"Filters",props:{true:{},false:{},null:{},value:{type:[Boolean,null]},allowNull:{type:[Boolean,String]},color:{},disabled:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t;function o(i){s("update:value",n.allowNull&&n.value===i?null:i)}return(i,r)=>(m(),w("div",om,[x("div",im,[n.allowNull===!0&&n.null?(m(),K(u(Qt),{key:0,text:n.null,selected:n.value===null,disabled:n.disabled&&n.value===null,color:n.color,onClick:r[0]||(r[0]=l=>o(null))},null,8,["text","selected","disabled","color"])):E("",!0),L(u(Qt),{text:n.true,selected:n.value===!0,disabled:n.disabled&&n.value===null,color:(n.color??0)+1,onClick:r[1]||(r[1]=l=>o(!0))},null,8,["text","selected","disabled","color"]),L(u(Qt),{text:n.false,selected:n.value===!1,disabled:n.disabled&&n.value===null,color:(n.color??0)+2,onClick:r[2]||(r[2]=l=>o(!1))},null,8,["text","selected","disabled","color"]),n.value!==null&&(n.allowNull==="last"||n.allowNull&&!n.null)?(m(),w("button",{key:1,class:"if-tab if-tab--reset",dimmed:!0,selected:n.value===null,disabled:n.disabled&&n.value===null,onClick:r[3]||(r[3]=l=>o(null))},[x("iconify-icon",{icon:u(fe).reset},null,8,lm)],8,rm)):E("",!0)])]))}}),cm={class:"if-prefix-filters"},am={class:"if-form-container"},um={key:0,class:"if-form-keyword"},fm={key:1},dm={key:2},hm={key:3},pm={key:4},gm={key:5},mm={key:6},ym={class:"if-form-container"},vm={key:0,class:"if-form-buttons"},fa=J({__name:"PrefixFilters",props:{filters:{},showKeyword:{type:Boolean},keywordPlaceholder:{},keywordIcon:{},keywordText:{},prefixes:{},categories:{},tags:{},palette:{type:Boolean},licenses:{},attribution:{type:Boolean},commercial:{type:Boolean},grids:{},canReset:{type:Boolean}},emits:["reset"],setup(e,{emit:t}){const n=e,s=n.palette,o=n.attribution,i=n.commercial,r=t;return(l,c)=>(m(),w("div",cm,[x("div",am,[l.showKeyword?(m(),w("dl",um,[x("dt",null,Z(l.keywordText??u(Kp)),1),x("dd",null,[L(u(nn),{class:"full",icon:l.keywordIcon??u(fe).search,placeholder:l.keywordPlaceholder??u(ca),value:l.filters.keyword,"onUpdate:value":c[0]||(c[0]=a=>l.filters.keyword=a)},null,8,["icon","placeholder","value"])])])):E("",!0),l.prefixes?(m(),w("dl",fm,[x("dt",null,Z(u(Vp)),1),x("dd",null,[L(u(kt),{filters:l.prefixes,selected:l.filters.prefix,"onUpdate:selected":c[1]||(c[1]=a=>l.filters.prefix=a),"empty-text":u(An)},null,8,["filters","selected","empty-text"])])])):E("",!0),l.categories&&(!l.filters.prefix||l.filters.category!==null)?(m(),w("dl",dm,[x("dt",null,Z(u(Xp)),1),x("dd",null,[L(u(kt),{filters:l.categories,selected:l.filters.category,"onUpdate:selected":c[2]||(c[2]=a=>l.filters.category=a),"empty-text":u(Rs)},null,8,["filters","selected","empty-text"])])])):E("",!0),l.tags&&(!l.filters.prefix||l.filters.tag!==null)?(m(),w("dl",hm,[x("dt",null,Z(u(Qp)),1),x("dd",null,[L(u(kt),{filters:l.tags,selected:l.filters.tag,"onUpdate:selected":c[3]||(c[3]=a=>l.filters.tag=a),"empty-text":u(An)},null,8,["filters","selected","empty-text"])])])):E("",!0),(u(s)||l.palette)&&(!l.filters.prefix||l.filters.palette!==null)?(m(),w("dl",pm,[x("dt",null,Z(u(qp)),1),x("dd",null,[L(u(eo),{color:3,true:u(Gp),false:u(Jp),allowNull:!0,value:l.filters.palette,"onUpdate:value":c[4]||(c[4]=a=>l.filters.palette=a),disabled:!l.palette},null,8,["true","false","value","disabled"])])])):E("",!0),l.licenses&&(!l.filters.prefix||l.filters.license!==null||l.filters.attribution!==null||l.filters.commercial!==null)?(m(),w("dl",gm,[x("dt",null,Z(u(Wp)),1),x("dd",null,[L(u(kt),{filters:l.licenses,selected:l.filters.license,"onUpdate:selected":c[5]||(c[5]=a=>l.filters.license=a),"empty-text":u(Zp)},null,8,["filters","selected","empty-text"]),l.filters.license===null?(m(),w(ie,{key:0},[u(o)||l.attribution?(m(),K(u(eo),{key:0,true:u(_s)[1],false:u(_s)[0],allowNull:!0,value:l.filters.attribution,"onUpdate:value":c[6]||(c[6]=a=>l.filters.attribution=a),disabled:!l.attribution,color:6},null,8,["true","false","value","disabled"])):E("",!0),u(i)||l.commercial?(m(),K(u(eo),{key:1,true:u(bs)[1],false:u(bs)[0],allowNull:!0,value:l.filters.commercial,"onUpdate:value":c[7]||(c[7]=a=>l.filters.commercial=a),disabled:!l.commercial,color:2},null,8,["true","false","value","disabled"])):E("",!0)],64)):E("",!0)])])):E("",!0),l.grids&&(!l.filters.prefix||l.filters.grid!==null)?(m(),w("dl",mm,[x("dt",null,Z(u(Yp)),1),x("dd",null,[L(u(kt),{filters:l.grids,selected:l.filters.grid,"onUpdate:selected":c[8]||(c[8]=a=>l.filters.grid=a),"empty-text":u(eg)},null,8,["filters","selected","empty-text"])])])):E("",!0)]),x("div",ym,[l.canReset?(m(),w("div",vm,[L(u($e),{class:"large selected",text:u(Up),icon:u(fe).reset,onClick:c[9]||(c[9]=a=>r("reset"))},null,8,["text","icon"])])):E("",!0)])]))}});function bm(e,t,n={}){const s=z(!0),o=z(0),i=z(0),r=z();let l;t&&(l=fi(e,k=>{r.value=k.parentNode},()=>{r.value=null}));const c=z(0),a=z(0);function f(k,$){return s.value&&(k=($==null?void 0:$.default)??0),$&&(k=Math.max(k,$.min??k),k=Math.min(k,$.max??k)),k}function d(k,$,C,b){o.value=f(k,n.width),i.value=f($,n.height),c.value=f(C,n.width),a.value=f(b,n.height)}d(0,0,0,0);function h(){var $;const k=ct(e);if(k!=null&&k.getBoundingClientRect){const C=k.getBoundingClientRect(),b=k.parentNode,A=($=b==null?void 0:b.getBoundingClientRect)==null?void 0:$.call(b);s.value=!1,d(C.width,C.height,(A==null?void 0:A.width)??0,(A==null?void 0:A.height)??0)}}const p=Mo(e,h);let _;return t&&(_=Mo(r,h)),{width:o,height:i,isDefault:s,parentNode:r,parentWidth:c,parentHeight:a,cleanup:()=>{l==null||l(),p==null||p(),_==null||_()}}}const Gr=.4;function _m(e,t){const n=z(1),{width:s,parentHeight:o,parentNode:i,cleanup:r}=bm(e,!0),l=O(()=>s.value>0),c=O(()=>ct(t.layout)),a=O(()=>c.value.gap||0),f=O(()=>{const ne=c.value;return ne.height+(ne.padding||0)*2+a.value}),d=O(()=>Math.ceil(t.total.value)),h=O(()=>l.value?Math.max(Math.round(o.value),f.value*2):d.value*f.value),p=O(()=>f.value*d.value-(l.value?a.value:0)),_=O(()=>l.value?Math.floor((h.value+a.value)/f.value):2),I=O(()=>Math.ceil(d.value/_.value)),k=z(t.startIndex??0),$=O(()=>{const ne=k.value*f.value-h.value*Gr;return Math.max(0,Math.min(p.value-h.value,Math.round(ne)))});function C(){if(n.value--,!n.value){const ne=ct(i);ne&&ne.scrollTo({top:$.value})}}function b(){n.value++,setTimeout(C)}const A=O(()=>$.value/f.value),q=O(()=>A.value+(l.value?h.value/f.value:2)),R=O(()=>Math.max(0,Math.floor(A.value-(l.value?.2:0)))),F=O(()=>Math.min(d.value-1,Math.ceil(q.value+(l.value?.2:0))-1)),W=O(()=>l.value?Math.max(0,Math.floor(A.value+a.value/f.value+.1)):R.value),U=O(()=>{const ne=F.value;return l.value?Math.min(ne,Math.ceil(q.value-.1)-1):ne}),Y=O(()=>{const ne=_.value,Ie=q.value,Me=d.value,pt=Math.ceil(Me/ne);return Ie>=Me-.5?pt-1:Math.floor(k.value/ne)});function ee(ne,Ie,Me,pt){return ne&&Ie?Ie*Me-pt:0}const le=O(()=>ee(l.value,R.value,f.value,a.value)),Q=O(()=>ee(l.value,d.value-F.value-1,f.value,a.value));l.value?setTimeout(C):ye(l,ne=>{const Ie=ct(i);ne&&Ie&&(Ie.scrollTo({top:$.value}),setTimeout(C))});const te=ne=>{const Ie=(ne+h.value*Gr)/f.value;return Math.max(0,Math.min(Ie,d.value-1))},V=ne=>{const Ie=(ne==null?void 0:ne.target)||ct(i);if(Ie&&!n.value){const Me=Math.round(Ie.scrollTop),pt=te(Me);k.value=pt}},de=fi(i,ne=>{ne.addEventListener("scroll",V)},ne=>{ne==null||ne.removeEventListener("scroll",V)});ye(c,b),ye(o,()=>V());function ce(ne){k.value=Math.max(0,Math.min(t.total.value-1,ne)),b()}return{firstRowHeight:le,lastRowHeight:Q,firstRenderedRow:R,lastRenderedRow:F,rowsPerPage:_,totalPages:I,firstVisibleRow:W,lastVisibleRow:U,currentPage:Y,setPage:ne=>{const Ie=ne*f.value*_.value,Me=te(Ie);ce(Me)},keepPosition:b,cleanup:()=>{r==null||r(),de==null||de()}}}const km={class:"if-items-grid-container"},wm={key:0,class:"if-items-grid-empty"},xm={class:"if-items-grid-footer"},di=J({__name:"Grid",props:{columns:{},layout:{},items:{},emptyText:{},paginationText:{},emptyPaginationText:{},startIndex:{},hasPaginationSlot:{type:Boolean}},emits:["range","scroll"],setup(e,{emit:t}){const n=e,s=t,o=z(),i=O(()=>n.columns),{firstRowHeight:r,lastRowHeight:l,firstRenderedRow:c,lastRenderedRow:a,totalPages:f,rowsPerPage:d,firstVisibleRow:h,lastVisibleRow:p,currentPage:_,setPage:I,cleanup:k}=_m(o,{total:O(()=>Math.ceil(n.items.length/i.value)),layout:O(()=>n.layout),startIndex:n.startIndex?n.startIndex/i.value:0});ye([h,p,f,i],([F,W,U,Y])=>{s("range",F*Y,(W+1)*Y,U),s("scroll",(F+W)/2*Y)});const $=O(()=>{const F=n.layout;return`--_size: ${F.height}px; --_gap: ${F.gap}px; --_columns: ${i.value}; --_full-size: ${F.height+(F.padding??0)*2}px; --_padding: ${F.padding??0}px;`}),C=O(()=>Math.ceil(i.value/3)),b=O(()=>Math.floor(i.value*2/3)),A=O(()=>i.value*d.value/2);let q;function R(F,W,U){if(q&&q.items===F&&q.first===W&&q.last===U)return q.result;const Y=F.slice(W,U);return q={items:F,first:W,last:U,result:Y},Y}return Ls(k),(F,W)=>{var U;return m(),w(ie,null,[x("div",km,[x("div",{class:"if-items-grid",style:Je($.value)},[x("div",{class:"if-items-grid-inner",ref_key:"innerNode",ref:o},[u(r)>0?(m(),w("div",{key:0,class:"if-items-grid-row placeholder",style:Je(`height: ${u(r)}px;`)},null,4)):E("",!0),x("div",{class:"if-items-grid-row items",style:Je(`grid-template-columns: repeat(${i.value}, 1fr)`)},[(m(!0),w(ie,null,Ye(R(F.items,u(c)*i.value,(u(a)+1)*i.value),(Y,ee)=>je(F.$slots,"default",{key:Y,item:Y,side:ee%i.value=b.value?"right":"center",align:ee0?(m(),w("div",{key:1,class:"if-items-grid-row placeholder",style:Je(`height: ${u(l)}px`)},null,4)):E("",!0)],512),F.items.length?E("",!0):(m(),w("div",wm,Z(F.emptyText||F.emptyPaginationText),1))],4)]),x("div",xm,[je(F.$slots,"beforePagination"),n.emptyPaginationText?(m(),K(u(Zg),{key:0,text:F.items.length||!n.emptyPaginationText?((U=n.paginationText)==null?void 0:U.replace("{n}",F.items.length.toString()))??"":n.emptyPaginationText,hint:u(f)>1?`# ${u(h)*i.value+1}-${Math.min(u(p)*i.value+1,n.items.length)}`:"",total:u(f),page:u(_),hasSlot:F.hasPaginationSlot,"onUpdate:page":u(I)},{default:ue(()=>[je(F.$slots,"pagination")]),_:3},8,["text","hint","total","page","hasSlot","onUpdate:page"])):E("",!0),je(F.$slots,"afterPagination")])],64)}}}),Im={class:"if-navigate-up"},Cm={class:"if-navigate-up-content"},Jr=J({__name:"NavUp",props:{title:{}},emits:["click"],setup(e,{emit:t}){const n=t;return(s,o)=>(m(),w("div",Im,[L(u(Ee),{text:s.title},{default:ue(()=>[L(u($e),{icon:u(fe).backUp,onClick:o[0]||(o[0]=i=>n("click"))},null,8,["icon"])]),_:1},8,["text"]),x("div",Cm,[je(s.$slots,"default")])]))}}),Yr=z("");function Sm(){const e=ri(),t=O(()=>{const s=[],o=e.value;return Mn.value,o.list?s.push(o.list):Gc.value.length>St.value.length&&s.push("filtered"),s.push(""),s});function n(){const s=_e.value;s.type==="search"&&(Yr.value=s.keyword)}return n(),ye(_e,n),{keyword:Yr,modes:t,iconSetsRoute:e,currentRoute:_e,routeDeepUpdate:Mn}}const $m={key:0,class:"if-main-search-buttons"},Om={class:"if-main-search-dropdown if-dropdown-wrapper"},Mm={class:"if-tooltip"},Qr=J({__name:"MainSearch",props:{loader:{},showButtons:{type:Boolean},compact:{type:Boolean}},setup(e){const{keyword:t,modes:n}=Sm(),s=O(()=>t.value.length>1),o=O(()=>s.value&&!ss(t.value)),i=O(()=>!!t.value),r=O(()=>{const _=t.value;return!!_&&!ss(_)});function l(_){var b;const I=ss(t.value);if(!I)return;const k=ii(_e.value),$={type:"search",keyword:I,parent:k};let C=null;_==="filtered"?C=St.value.slice(0):_&&_===k.list&&(C=(b=Ue[_])==null?void 0:b.prefixes.value),!(C!==null&&($.prefixes=C,!C.length))&&(_e.value=$)}function c(){return l(n.value[0]),!1}const a=O(()=>n.value[0]),f=O(()=>{switch(a.value){case"":return Fp;case"filtered":return Ep.replace("{n}",`${St.value.length}`);default:return Rp[a.value]}}),d=O(()=>o.value?jp+` `+Hr:f.value+` `+ia+` -`+Hr);function h(_){switch(_){case"":return`... ${Ap}`;case"filtered":return`... ${Pp}`.replace("{n}",`${St.value.length}`);default:return`... ${Lp[_]}`}}function p(_){switch(_){case"favorite":return fe.favorite.unchecked;case"filtered":return fe.filter;default:return fe.search}}return(_,I)=>(m(),w("div",{class:re(["if-main-search if-tooltip-wrapper",[o.value&&"error"]]),ref:"node"},[L(u(nn),{class:re(_.compact?"full":"large full"),value:u(t),"onUpdate:value":I[0]||(I[0]=k=>Le(t)?t.value=k:null),icon:u(fe).search,placeholder:u(oa),canReset:!0,enterKey:c,noButton:!0},null,8,["class","value","icon","placeholder"]),_.showButtons||s.value&&!o.value?(m(),w("div",$m,[u(n).length<2?(m(),K(u($e),{key:0,class:re(!_.compact&&"large"),text:u(Tp),selected:i.value,disabled:r.value,onClick:I[1]||(I[1]=k=>l(u(n)[0]))},null,8,["class","text","selected","disabled"])):(m(),w(ie,{key:1},[L(u($e),{class:re(!_.compact&&"large"),disabled:r.value,text:u(Mp),iconAfter:u(n).length>1?u(fe).dropDown:void 0},null,8,["class","disabled","text","iconAfter"]),x("div",Om,[(m(!0),w(ie,null,Ye(u(n),(k,$)=>(m(),K(u($e),{key:k,icon:p(k),selected:!$,text:h(k),onClick:C=>l(k)},null,8,["icon","selected","text","onClick"]))),128))])],64))])):E("",!0),x("div",Mm,Z(d.value),1)],2))}}),Tm=J({__name:"Notices",setup(e){const{notices:t,clear:n}=ta();return(s,o)=>u(t).length?(m(),w("div",{key:0,class:"if-notices",onMouseenter:o[0]||(o[0]=(...i)=>u(n)&&u(n)(...i))},[(m(!0),w(ie,null,Ye(u(t),(i,r)=>(m(),w("div",{key:i.id,class:re(["if-notices-item",[i.type,i.fading&&"fading",`index-${r}`]])},[x("span",null,Z(i.message),1)],2))),128))],32)):E("",!0)}}),Am=["title"],Pm={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 4 8 16",width:"8",height:"16",stroke:"currentColor",fill:"none"},Lm=x("path",{d:"M4 12V6M4 12V18",class:"path1"},null,-1),Fm=x("path",{d:"M4 6L7 9M4 6L1 9M4 18L7 15M4 18L1 15",class:"path2"},null,-1),Em=[Lm,Fm],Xr=J({__name:"Stats",props:{text:{},title:{},line:{type:Boolean}},setup(e){const t=e,n=O(()=>t.line||typeof t.text=="string"&&t.text.includes("|")),s=O(()=>{const o=t.text;return typeof o=="string"?o.replace("|",""):`${o}`});return(o,i)=>(m(),w("div",{class:re(["if-icon-set-stats-text",[n.value&&"line"]]),title:t.title},[n.value?(m(),w("svg",Pm,Em)):E("",!0),Ae(" "+Z(s.value),1)],10,Am))}}),Rm=["icon"],Nm=J({__name:"Samples",props:{loader:{},prefix:{},samples:{},visible:{type:Boolean}},setup(e){const{loader:t,prefix:n,samples:s,visible:o}=e,i=Pt(Object.create(null));for(let c=0;c{f&&(i.value={...i.value,[a]:f})}).catch(()=>{})}}}if(o)l();else{try{window&&l()}catch{}ye(()=>o,l)}return(c,a)=>(m(!0),w(ie,null,Ye(i.value,(f,d)=>(m(),w("iconify-icon",{key:d,icon:c.visible?f:void 0,width:"1em",height:"1em"},null,8,Rm))),128))}});function da(e){const t=Ue.favorite,n=z(t.prefixes.value.includes(e));return ye(t.prefixes,s=>n.value=s.includes(e)),ye(n,s=>{s?t.add(e):t.remove(e)}),n}const jm=["tabindex"],Bm={key:0,class:"if-icon-sets-item-data"},Dm={key:0,class:"if-icon-sets-item-stats"},Hm={class:"if-icon-sets-item-text"},zm={class:"if-icon-sets-item-title"},Um={key:0,class:"if-icon-sets-item-hint"},Vm=["icon"],Km={class:"if-icon-set-item-tooltip if-tooltip"},Wm=J({__name:"Item",props:{loader:{},prefix:{},info:{},compact:{type:Boolean},selected:{type:Boolean},disabled:{type:Boolean},favorite:{type:Boolean},color:{}},setup(e){const t=e,n=O(()=>{const a=t.info.samples;return a&&a.length>1?a.slice(0,3):null}),s=O(()=>{const a=t.info.height;if(!a)return null;const f=typeof a=="number"?[a]:a;switch(f.length){case 1:case 2:return f.join(",")}return null}),o=O(()=>Oo(t.info,t.compact)),i=da(t.prefix),r=z(),l=z(!1),c=z(null);return ye(r,a=>{var f;if(a){(f=c.value)==null||f.disconnect();const d=new IntersectionObserver(h=>{h.forEach(({isIntersecting:p})=>{l.value=p})});c.value=d,d.observe(a)}}),Ls(()=>{var a;(a=c.value)==null||a.disconnect()}),(a,f)=>(m(),w("button",{ref_key:"root",ref:r,tabindex:a.disabled||a.selected?-1:void 0,class:re(["if-icon-sets-item",[`if-icon-sets-item--${a.prefix}`,a.compact&&"compact",a.color?`has-color color-${a.color}`:a.info.color&&`has-color color-${a.info.color}`,a.selected&&!a.disabled&&"selected",a.disabled&&"disabled",a.info.hidden&&"hidden",u(i)&&"favorite"]])},[n.value?(m(),w("span",Bm,[x("span",{class:re(["if-icon-sets-item-samples",[a.info.displayHeight?`grid-${a.info.displayHeight}`:typeof a.info.height=="number"?`grid-${a.info.height}`:""]])},[L(u(Nm),{visible:l.value,loader:a.loader,prefix:a.prefix,samples:n.value},null,8,["visible","loader","prefix","samples"])],2),a.compact?E("",!0):(m(),w("span",Dm,[L(u(Xr),{class:"if-icon-sets-item-stats-counter",text:a.info.total,title:u(li).replace("{n}",`${a.info.total}`)},null,8,["text","title"]),s.value&&l.value?(m(),K(u(Xr),{key:0,class:"if-icon-sets-item-stats-grid",text:`|${s.value}`,title:u(la).replace("{n}",s.value)},null,8,["text","title"])):E("",!0)]))])):E("",!0),x("span",Hm,[x("span",zm,Z(a.info.name),1),a.compact?E("",!0):(m(),w("span",Um,Z(a.info.license.title),1))]),u(i)?(m(),w("iconify-icon",{key:1,class:"if-icon-sets-item-favorite",icon:u(fe).favorite.checked},null,8,Vm)):E("",!0),x("span",Km,Z(o.value),1)],10,jm))}});function ha(e){const t=Pt();return e.loadConvertedIconSets().then(n=>{t.value=n}).catch(()=>{t.value=null}),t}const pa=J({__name:"List",props:{loader:{},data:{},prefixes:{},columns:{},compact:{type:Boolean},selected:{}},emits:["click"],setup(e,{emit:t}){const n=e,s=n.data?z(n.data):ha(n.loader),o=t;return(i,r)=>u(s)?(m(),w("div",{key:0,class:re(["if-icon-sets-list",[i.compact&&"compact",`if-icon-sets-list--${i.columns}`]]),style:Je(`grid-template-columns: repeat(${i.columns}, 1fr)`)},[(m(!0),w(ie,null,Ye(i.prefixes,l=>(m(),K(u(Wm),{key:l,loader:i.loader,prefix:l,compact:i.compact,info:u(s).info[l],color:u(s).colors[l],selected:i.selected===l,onClick:c=>o("click",l)},null,8,["loader","prefix","compact","info","color","selected","onClick"]))),128))],6)):E("",!0)}}),qm={key:0,class:"if-icon-sets"},Gm={key:0},Jm=J({__name:"CategorisedList",props:{loader:{},data:{},items:{},columns:{},compact:{type:Boolean},selected:{},showCounter:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,s=n.data?z(n.data):ha(n.loader),o=t;return(i,r)=>u(s)?(m(),w("div",qm,[(m(!0),w(ie,null,Ye(i.items,(l,c)=>(m(),w(ie,{key:c},[l.prefixes.length?(m(),w(ie,{key:0},[x("div",{class:re(["if-icon-sets-category",[i.compact&&"compact"]])},[Ae(Z(c||u(Rs))+" ",1),i.showCounter?(m(),w("small",Gm,Z(` (${l.prefixes.length})`),1)):E("",!0)],2),L(u(pa),{loader:i.loader,data:u(s),columns:i.columns,compact:i.compact,prefixes:l.prefixes,selected:i.selected,onClick:r[0]||(r[0]=a=>o("click",a))},null,8,["loader","data","columns","compact","prefixes","selected"])],64)):E("",!0)],64))),128))])):E("",!0)}}),Ym={class:"if-icon-sets-header"},Qm=J({__name:"Header",props:{keyword:{},keywordPlaceholder:{},keywordIcon:{},keywordText:{},showFilters:{type:Boolean},hasFilters:{type:Boolean}},emits:["update:keyword","update:showFilters"],setup(e,{emit:t}){const n=e,s=t;function o(){s("update:showFilters",!n.showFilters)}const i=Ut(()=>n.showFilters,fe.toggle);return(r,l)=>(m(),w("div",Ym,[L(u(Ee),{text:u(Hp)},{default:ue(()=>[L(u(nn),{class:"full",value:r.keyword,icon:u(fe).filter,placeholder:u(ca),defaultValue:"","onUpdate:value":l[0]||(l[0]=c=>s("update:keyword",c))},null,8,["value","icon","placeholder"])]),_:1},8,["text"]),L(u($e),{text:u(zp),onClick:o,iconAfter:u(i),selected:r.showFilters&&!r.hasFilters,active:r.hasFilters},null,8,["text","iconAfter","selected","active"])]))}}),Xm={key:0,class:"if-icon-set-info-buttons"},Zm=["href"],ey=["href"],ty=J({__name:"Info",props:{prefix:{},info:{},canToggleFavorite:{type:Boolean}},setup(e){const t=e,n=O(()=>{const r=t.info.license,l=r.spdx?xn[r.spdx]:void 0;return{...r,data:l,commercialText:l?bs[l.commercial?1:0]:"",attributionText:l?_s[l.attribution?1:0]:""}}),s=da(t.prefix);function o(){s.value=!s.value}const i=Ut(()=>s.value,fe.favorite);return(r,l)=>(m(),w("section",{class:re(["if-icon-set-info",[r.info.color&&`color-${r.info.color}`]])},[r.canToggleFavorite?(m(),w("div",Xm,[L(u(Ee),{class:"right",text:u(s)?u(wp):u(kp)},{default:ue(()=>[L(u($e),{selected:u(s),icon:u(i),onClick:o},null,8,["selected","icon"])]),_:1},8,["text"])])):E("",!0),x("h1",null,[x("span",null,Z(r.info.name),1),x("small",null,[Ae(Z(u(ra))+" ",1),x("a",{href:r.info.author.url,target:"_blank"},Z(r.info.author.name),9,Zm)])]),L(u(Ee),{text:n.value.data?`${n.value.commercialText} -${n.value.attributionText}`:""},{default:ue(()=>[x("p",null,[Ae(Z(u(Dp))+": ",1),x("a",{href:n.value.url,target:"_blank"},Z(n.value.title),9,ey)])]),_:1},8,["text"])],2))}});function hi(e,t=void 0,n=void 0,s=void 0){const o=Pt(),i=()=>[ct(t),ct(n),ct(s)],r=a=>JSON.stringify(a.map(f=>{if(typeof f=="object"){for(const d in f)if(typeof f[d]=="function")return typeof f.key=="string"?f.key:null}return f}));let l=r(i());const c=()=>{const a=l,[f,d,h]=i();e(f,d,h).then(p=>{a===l&&(o.value=p)}).catch(()=>{a===l&&(o.value=null)})};return c(),ye(()=>[t,n,s],()=>{l=r(i()),o.value=void 0,c()},{deep:!0}),o}function ny(e,t,n,s){return hi(e.loadIcon,t,n,s)}const sy=["icon"],oy={key:1,class:"if-grid-icon-placeholder"},iy={class:"if-tooltip"},pi=J({__name:"Icon",props:{loader:{},prefix:{},name:{},data:{},selected:{type:Boolean},selecting:{type:Boolean},iconSetData:{},iconSetInfo:{},skipIconSetInfo:{type:Boolean},hidden:{type:Boolean},side:{},align:{},beforeHint:{},afterHint:{},color:{}},emits:["click"],setup(e,{emit:t}){const{loader:n,prefix:s,name:o,data:i,iconSetData:r,iconSetInfo:l,skipIconSetInfo:c}=e,a=t,f=r?o:`${s}:${o}`,d=i?z(i):ny(n,!1,s,o),h=O(()=>ug({name:o,displayName:f,iconData:d.value,iconSetData:r,iconSetInfo:l,addFiltersToText:!0,skipIconSetInfo:c}));return(p,_)=>(m(),w("button",{class:re(["if-grid-icon",[p.selecting&&!p.selected&&"selecting",p.hidden&&"hidden",!u(d)&&"placeholder",p.side&&`align-${p.side}`,p.align&&`align-${p.align}`,p.selected&&"selected"]]),onClick:_[0]||(_[0]=I=>a("click"))},[u(d)?(m(),w("iconify-icon",{key:0,icon:u(d),width:"1em",height:"1em"},null,8,sy)):(m(),w("span",oy)),x("div",iy,Z(p.beforeHint)+Z(h.value.lines.join(` -`))+Z(p.afterHint),1)],2))}}),ry={class:"if-icon-set-filters"},ly={class:"if-tooltip-wrapper"},cy={key:0,class:"if-tooltip"},ay=J({__name:"Filters",props:{filters:{},categories:{},prefixes:{},suffixes:{},keyword:{}},emits:["update:keyword"],setup(e,{emit:t}){const n=t;return(s,o)=>(m(),w("div",ry,[s.categories?(m(),K(u(kt),{key:0,type:"tab",filters:s.categories,"expand-title":"Expand categories filter","collapse-title":"Collapse categories filter","reset-title":"Reset categories selection",selected:s.filters.categories,"onUpdate:selected":o[0]||(o[0]=i=>s.filters.categories=i),"empty-text":u(Rs)},null,8,["filters","selected","empty-text"])):E("",!0),s.prefixes?(m(),K(u(kt),{key:1,type:"tab",filters:s.prefixes,"expand-title":"Expand prefixes filter","collapse-title":"Collapse prefixes filter","reset-title":"Reset prefixes selection",selected:s.filters.prefixes,"onUpdate:selected":o[1]||(o[1]=i=>s.filters.prefixes=i),"empty-text":u(An)},null,8,["filters","selected","empty-text"])):E("",!0),s.suffixes?(m(),K(u(kt),{key:2,type:"tab",filters:s.suffixes,"expand-title":"Expand suffixes filter","collapse-title":"Collapse suffixes filter","reset-title":"Reset suffixes selection",selected:s.filters.suffixes,"onUpdate:selected":o[2]||(o[2]=i=>s.filters.suffixes=i),"empty-text":u(An)},null,8,["filters","selected","empty-text"])):E("",!0),x("div",ly,[L(u(nn),{class:"full",icon:u(fe).search,value:s.keyword,"onUpdate:value":o[3]||(o[3]=i=>n("update:keyword",i)),placeholder:u(Bp),canAlwaysReset:!0},null,8,["icon","value","placeholder"]),s.keyword?E("",!0):(m(),w("span",cy,Z(u(Np)),1))])]))}}),uy=["icon"],fy={class:"if-tooltip"},dy=J({__name:"Sample",props:{data:{}},setup(e){const t=e,n=O(()=>Object.keys(t.data)),s=O(()=>{const r=t.data,l=[];for(const c in r){const a=r[c];if(a&&a.body.includes("currentColor")&&(l.push(c),l.length===5))return l.reverse()}for(const c in r){const a=r[c];if((!a||!a.body.includes("currentColor"))&&(l.push(c),l.length===5))return l.reverse()}return l.reverse()}),o=O(()=>{const i=n.value;return i.length===1?i[0]:li.replace("{n}",i.length.toString())});return(i,r)=>(m(),w("div",{class:re(["if-icon-sample if-tooltip-wrapper bottom",[`limit-${s.value.length}`]])},[(m(!0),w(ie,null,Ye(s.value,l=>(m(),w("iconify-icon",{key:l,icon:i.data[l],width:"1em",height:"1em"},null,8,uy))),128)),x("div",fy,Z(o.value),1)],2))}}),wt=Pt([]),hy=["#1e1e1e","#757575","#f24822","#ffa629","#ffcd29","#14ae5c","#0d99ff","#9747ff","#ffffff","#b3b3b3","#e6e6e6","#ffc7c2","#fcd19c","#ffe8a3","#aff4c6","#bde3ff","#e4ccff"],Pn=Pt([]),py=9*3;function To(e){const t=Pn.value;if(!t.length||t[t.length-1]!==e){const n=t.filter(s=>s!==e);for(n.unshift(e);n.length>py;)n.pop();Pn.value=n}}const et=Pt(null);function to(e){if(e){const t=wt.value;wt.value=e.filter(n=>typeof n=="string"?!t.find(s=>s===n):!t.find(s=>typeof s!="string"&&s.id===n.id)).concat(t).sort((n,s)=>n.remote===s.remote?n.name.localeCompare(s.name):n.remote?1:-1)}}function Zr(e,t){if(e.match(/^#[0-9a-f]{6}$/i))return e;const n=vf(e);return(n==null?void 0:n.type)==="rgb"&&bf(n,!1)||t}function gy(){const e=O(()=>{var c;const l=et.value;if(l)return typeof l=="string"?l:(c=wt.value.find(a=>a.id===l.id))==null?void 0:c.color}),t=O(()=>{var c;const l=et.value;if(l)return typeof l=="string"?l:(c=wt.value.find(a=>a.id===l.id))==null?void 0:c.name}),n=O(()=>Zr(e.value||"black","#000000")),s=O(()=>{const l=e.value;return l?{icon:fe.colors.color,style:`color: ${l}`,value:t.value||""}:{icon:fe.colors.current,style:"",value:""}});function o(l){if(!l){et.value=null;return}if(l.startsWith(ft)){const f=l.slice(ft.length);et.value={type:"style",id:f};return}if(Zr(l,null)!==null){et.value=l;return}const a=wt.value.find(f=>f.name===l);a&&(et.value={type:"style",id:a.id})}const i=O(()=>wt.value.map(l=>({color:l.color,text:l.name,key:ft+l.id}))),r=O(()=>{const l=Pn.value,c=wt.value,a=[];return l.forEach(f=>{if(!f.startsWith(ft)){a.push({color:f});return}const d=f.slice(ft.length),h=c.find(p=>p.id===d);h&&a.push({color:h.color,text:h.name,key:f})}),a});return{colorValue:e,colorPickerColor:n,colorInputIcon:s,updateInput:o,colorStyleOptions:i,recentColors:r}}const xt=z(null),el=z(!1),Ao=z("figma"),tl=z(""),at=z(null),Fe=tn({compactWidth:!1}),my=z(!1);function yy(){const{push:e}=ta(),t={route:"",lists:"",filters:"",custom:""};function n(o,i){const r=JSON.stringify(i);if(r!==t[o])return t[o]=r,!0}function s(){let o=null;const i=3e3;function r(){const c=o;if(o=null,c){if(c.has("route")){const a=_e.value;n("route",a)&&ze({type:"ui:route",route:a})}if(c.has("lists")){const a={};for(const f in Ue){const d=Ue[f];d!=null&&d.canBackup&&(a[f]=d.prefixes.value.slice(0))}n("lists",a)&&ze({type:"ui:lists",lists:a})}if(c.has("filters")){const a={};Gi(Ht,lt,a,!0),n("filters",a)&&ze({type:"ui:filters",filters:a})}if(c.has("custom")){const a=et.value,f={color:a?typeof a=="string"?a:ft+a.id:void 0,size:xt.value||void 0};n("custom",f)&&ze({type:"ui:customisations",custom:f})}}}function l(c){o?o.add(c):(o=new Set([c]),setTimeout(r,i))}ye([_e,Mn],()=>{l("route")},{deep:!0}),mp(()=>l("lists")),ye(lt,()=>l("filters")),ye([et,xt],()=>l("custom")),ye(Pn,c=>{ze({type:"ui:recent-colors",colors:c})})}return window.onmessage=o=>{try{if(typeof o.data.pluginMessage.type!="string")return}catch{return}const i=o.data.pluginMessage;switch(console.log("Message from Figma:",i),i.type){case"plugin:starting":{if(Ao.value=i.app,tl.value=i.command,Object.assign(Fe,i.config),i.route&&(t.route=JSON.stringify(i.route),_e.value=i.route),i.lists){const r=i.lists;t.lists=JSON.stringify(r);for(const l in Ue){const c=Ue[l];c!=null&&c.canBackup&&r[l]&&c.restore(r[l])}}if(i.recent&&(Yt.value=i.recent),i.selectIcon&&(at.value=i.selectIcon),i.filters&&Gi(Ht,i.filters,lt,!1),to(i.styles),Br(i.nodes),i.recentColors&&(Pn.value=i.recentColors),i.custom){const{color:r,size:l}=i.custom;r&&(et.value=r.startsWith(ft)?{type:"style",id:r.slice(ft.length)}:r),l&&(xt.value=l)}el.value=!0,s();break}case"plugin:nodes":{Br(i.nodes),to(i.styles);break}case"plugin:resize":{Fe.compactWidth=i.compactWidth,my.value=i.minimized;break}case"plugin:notice":{e(i.color,i.text);break}case"plugin:recent-icons":{Yt.value=i.icons;break}case"plugin:color-styles":{to(i.styles);break}case"plugin:recent-color":{To(i.color);break}}},{started:el,app:Ao,command:tl,config:Fe}}const me=z(""),vy=["icon"],by={key:1},_y={class:"if-tooltip"},Ze=J({__name:"MenuButton",props:{icon:{},text:{},tooltip:{},selected:{type:Boolean},right:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=t;return(s,o)=>(m(),w("div",{class:re(["if-tooltip-wrapper",[s.right&&"right"]])},[x("button",{onClick:o[0]||(o[0]=i=>n("click")),class:re(s.selected&&"selected")},[s.icon?(m(),w("iconify-icon",{key:0,icon:s.icon},null,8,vy)):(m(),w("span",by,Z(s.text),1))],2),x("div",_y,Z(s.tooltip),1)],2))}}),ky={class:"plugin-menu"},wy={class:"plugin-menu-row primary"},xy=x("span",null,null,-1),Iy={key:0,class:"plugin-menu-row secondary"},Cy=x("span",null,null,-1),Sy={key:1,class:"plugin-menu-row secondary"},$y=x("span",null,null,-1),Oy=J({__name:"Menu",setup(e){const t=O(()=>{const r=me.value;return r!==""&&r!=="recent-icons"});function n(){if(me.value!==""){me.value="";return}const r=_e.value;(r.type!=="icon-sets"||r.list)&&(_e.value={type:"icon-sets"})}function s(r){me.value=r}function o(){ze({type:"ui:close"})}function i(){ze({type:"ui:compact"})}return(r,l)=>(m(),w("div",ky,[x("div",wy,[L(Ze,{tooltip:"Browse Icons",text:"Import",onClick:n}),xy,L(Ze,{tooltip:"About Iconify plugin, support, feedback",icon:u(Nf),right:"",selected:t.value,onClick:l[0]||(l[0]=c=>s("about"))},null,8,["icon","selected"]),L(Ze,{class:"plugin-menu-full-only",tooltip:u(Fe).compactWidth?"Switch to full mode":"Switch to compact mode",icon:u(Dl),right:"",onClick:i},null,8,["tooltip","icon"]),L(Ze,{class:"plugin-menu-full-only",tooltip:"Close Plugin",icon:u(fe).reset,right:"",onClick:o},null,8,["icon"])]),t.value?(m(),w("div",Sy,[L(Ze,{tooltip:"What's new in Iconify plugin",text:"What's New",selected:u(me)==="v4",onClick:l[2]||(l[2]=c=>s("v4"))},null,8,["selected"]),L(Ze,{tooltip:"Send your feedback or ask questions",text:"Feedback / Support",selected:u(me)==="feedback",onClick:l[3]||(l[3]=c=>s("feedback"))},null,8,["selected"]),$y,L(Ze,{tooltip:"About Iconify plugin",text:"About",right:"",selected:u(me)==="about",onClick:l[4]||(l[4]=c=>s("about"))},null,8,["selected"])])):(m(),w("div",Iy,[L(Ze,{text:"Browse Icons",tooltip:"Browse all available icons",selected:u(me)==="",onClick:n},null,8,["selected"]),Cy,u(Yt).length?(m(),K(Ze,{key:0,tooltip:"Show recently imported icons",text:"Recent",right:"",selected:u(me)==="recent-icons",onClick:l[1]||(l[1]=c=>s("recent-icons"))},null,8,["selected"])):E("",!0)]))]))}}),ga=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},My={},Ty={class:"plugin-sponsor"},Ay=x("a",{href:"https://bit.ly/47E7nnG",target:"_blank"},[Ae("Access 170,000 more icons "),x("iconify-icon",{icon:"line-md:arrow-right"})],-1),Py=[Ay];function Ly(e,t){return m(),w("div",Ty,Py)}const nl=ga(My,[["render",Ly]]),Fy=J({__name:"IconSet",props:{route:{},iconSetsRoute:{}},setup(e){const t=e,n=Ce.convertedIconSetsCache,s=O(()=>t.iconSetsRoute.list),o=O(()=>s.value?Ue[s.value].prefixes.value:St.value),i=O(()=>Bu(o.value,t.route.prefix));function r(l){_e.value={type:"icon-set",prefix:l,parent:t.iconSetsRoute}}return(l,c)=>(m(),w(ie,null,[i.value.prev?(m(),K(u(Ee),{key:0,class:"right",text:u(Oo)(u(n).info[i.value.prev],!0)},{default:ue(()=>{var a;return[L(u($e),{class:"pretty",icon:u(fe).prevPage,text:((a=u(n).info[i.value.prev])==null?void 0:a.name)??i.value.prev,color:u(n).colors[i.value.prev],onClick:c[0]||(c[0]=f=>r(i.value.prev))},null,8,["icon","text","color"])]}),_:1},8,["text"])):E("",!0),i.value.next?(m(),K(u(Ee),{key:1,class:"right",text:u(Oo)(u(n).info[i.value.next],!0)},{default:ue(()=>{var a;return[L(u($e),{class:"pretty",iconAfter:u(fe).nextPage,text:((a=u(n).info[i.value.next])==null?void 0:a.name)??i.value.next,color:u(n).colors[i.value.next],onClick:c[1]||(c[1]=f=>r(i.value.next))},null,8,["iconAfter","text","color"])]}),_:1},8,["text"])):E("",!0)],64))}}),ks=z(!1),Nt=z(!1),ws=z(!1),Ey={key:0,class:"plugin-return"},Ry={key:1,class:"plugin-return"},Ny=J({__name:"Index",setup(e){const{iconSetsRoute:t}=ea(),n=O(()=>{const c=_e.value;switch(c.type){case"icon-set":case"search":return c.parent;case"icon":case"icon-overlay":return c.parent}}),s=O(()=>t.value.list?$p+Op[t.value.list]:Sp);function o(){const c=n.value;c&&(_e.value=c)}function i(){me.value=""}const r=Ut(()=>Nt.value,fe.toggle);function l(){Nt.value=!Nt.value}return ye(ks,c=>{c||(Nt.value=!1)}),(c,a)=>u(me)?(m(),w(ie,{key:0},[u(me)==="recent-icons"?(m(),w("div",Ey,[L(u(Jr),{onClick:i,title:"Return to browsing icons"})])):E("",!0)],64)):n.value?(m(),w("div",Ry,[u(_e).type==="icon-set"||u(_e).type==="search"?(m(),K(u(Jr),{key:0,onClick:o,title:s.value},{default:ue(()=>[u(_e).type==="icon-set"?(m(),K(Fy,{key:0,route:u(_e),iconSetsRoute:u(t)},null,8,["route","iconSetsRoute"])):E("",!0),u(_e).type==="search"&&u(ks)?(m(),K(u($e),{key:1,text:"Filter Search Results",iconAfter:u(r),selected:u(Nt)&&!u(ws),active:u(ws),onClick:l},null,8,["iconAfter","selected","active"])):E("",!0)]),_:1},8,["title"])):E("",!0)])):E("",!0)}}),jy={key:0,class:"plugin-header-toggle"},By={class:"plugin-menu-row secondary"},Dy={class:"plugin-menu-row secondary"},Hy={key:1,class:"plugin-header-content"},zy={key:1,class:"plugin-v4-notice"},Uy=x("div",null,"Welcome to new Iconify plugin!",-1),Vy={class:"plugin-v4-notice-buttons"},Ky=J({__name:"Index",setup(e){const t=z(!1),n=z(!1),s=z(!1),o=Ut(()=>t.value&&s.value,nr);function i(){const f=me.value,d=f==="recent-icons"||!f&&_e.value.type!=="icon-sets";t.value=d,n.value=d&&_e.value.type==="search",s.value=!d,o.value=nr.unchecked}i(),ye([_e,me],i);function r(){s.value=!s.value}function l(){ze({type:"ui:compact"})}const c=O(()=>Fe.v4Notice&&!t.value);function a(){Fe.v4Notice=!1,ze({type:"ui:dismiss-v4"}),me.value=""}return(f,d)=>(m(),w("div",{class:re(["plugin-header",[u(Fe).compactWidth&&"compact"]])},[t.value?(m(),w("div",jy,[x("div",By,[L(Ze,{tooltip:"Show menu and search",icon:u(o),onClick:r},null,8,["icon"])]),L(nl),x("div",Dy,[L(Ze,{tooltip:u(Fe).compactWidth?"Switch to full mode":"Switch to compact mode",icon:u(Dl),right:"",onClick:l},null,8,["tooltip","icon"])])])):E("",!0),s.value?(m(),w("div",Hy,[L(Oy),t.value?E("",!0):(m(),K(nl,{key:0})),c.value?(m(),w("div",zy,[Uy,x("div",Vy,[L(u($e),{text:"What's New",selected:!0,active:u(me)==="v4",onClick:d[0]||(d[0]=h=>me.value="v4")},null,8,["active"]),L(u($e),{text:"Feedback",selected:!0,active:u(me)==="feedback",class:"has-color color-2",onClick:d[1]||(d[1]=h=>me.value="feedback")},null,8,["active"]),L(u($e),{text:"Dismiss",selected:!0,class:"has-color color-3",onClick:a})])])):E("",!0),u(me)?E("",!0):(m(),K(u(Qr),{key:2,loader:u(Ce),showButtons:!1,compact:u(Fe).compactWidth},null,8,["loader","compact"]))])):n.value?(m(),w(ie,{key:2},[u(me)?E("",!0):(m(),K(u(Qr),{key:0,loader:u(Ce),showButtons:!u(Fe).compactWidth,compact:u(Fe).compactWidth},null,8,["loader","showButtons","compact"]))],64)):E("",!0),L(Ny)],2))}}),Wy={title:"",visible:!0,dimmed:!1,color:0};function ma(e){return{...Wy,...e}}function ya(e){return Object.keys(e).map(t=>{const n=e[t],s=n.count>0;return ma({text:t,visible:s,dimmed:!s,color:n.color})})}function Qn(e,t,n,s){if(!s.length)return null;const o=t(e,s),i=new Set(Object.keys(o));if(i.size<2)return null;const r=n.length===s.length?o:t(e,n);return ya(r).map(l=>i.has(l.text)?l:{...l,visible:!1,dimmed:!0})}function Xn(e,t,n,s,o,i,r){if(!o)return{filters:null};const l=s[r],c=l===null?n:hs(e,s,t,r),a=i(e,c);return{prefixes:c,map:a,filters:o.map(f=>{const d=f.text;return{...f,visible:l===d||!!a[d]}})}}function va(e,t,n,s){const o=O(()=>Tl(Ht,s)),i=O(()=>{const F=t.value,W=n.value;return F.length>1?F.map(U=>{const Y=!W.includes(U);return ma({text:U,title:e.info[U].name??U,color:e.colors[U],dimmed:Y,visible:!Y})}):null}),r=O(()=>Qn(e,ds,t.value,n.value)),l=O(()=>!!r.value),c=O(()=>Qn(e,fo,t.value,n.value)),a=O(()=>Qn(e,ho,t.value,n.value)),f=O(()=>Qn(e,ts,t.value,n.value)),d=O(()=>!!r.value||!!a.value||!!c.value||!!f.value);[[r,"category"],[c,"grid"],[a,"tag"],[f,"license"]].forEach(([F,W])=>{ye(F,U=>{const Y=s[W];Y!==null&&!(U!=null&&U.find(ee=>ee.title===Y))&&(s[W]=null)})});const p=O(F=>wn(hs(e,s,t.value),F)),_=O(()=>{const F=i.value;if(!F)return null;const W=new Set(s.prefix?hs(e,s,t.value,"prefix"):p.value);return F.map(U=>W.has(U.text)?U:{...U,visible:!1})}),I=O(()=>Xn(e,t.value,p.value,s,r.value,ds,"category").filters),k=O(()=>Xn(e,t.value,p.value,s,a.value,ho,"tag").filters),$=O(()=>Xn(e,t.value,p.value,s,c.value,fo,"grid").filters),C=O(()=>s.palette!==null?!0:tf(e,p.value)),b=O(()=>{const F=Xn(e,t.value,p.value,s,f.value,ts,"license");let W=F.map;(!W||s.license===null)&&(W=ts(e,p.value));const U=Qu(W);return{filters:F.filters,commercial:Qi(U.commercial),attribution:Qi(U.attribution)}}),A=O(()=>{var F;return((F=b.value)==null?void 0:F.filters)??null}),q=O(()=>{var F;return s.attribution!==null?!0:((F=b.value)==null?void 0:F.attribution)??!1}),R=O(()=>{var F;return s.commercial!==null?!0:((F=b.value)==null?void 0:F.commercial)??!1});return{prefixes:p,hasVisibleFilters:d,hasActiveFilters:o,filters:s,prefixFilters:_,categories:I,hasCategories:l,tags:k,licenses:A,canSelectCommercial:R,canSelectAttribution:q,grids:$,canSelectPalette:C}}function qy(e,t){const n=va(e,z(e.prefixes),z(e.allVisiblePrefixes),t),s=n.hasCategories,o=O(i=>{const r=n.prefixes.value;return r.length?wn(ds(e,r),i):{}});return{...n,showCategories:s,categorisedPrefixes:o}}function Gy(e){Jc(e);const t=qy(e,lt);return St.value=t.prefixes.value,ye(t.prefixes,n=>{St.value=n}),t}const Jy=x("p",null," All icons are open source, see each icon set for info about authors and licenses. ",-1),Yy=x("p",null,"The latest icon data and search are provided by Iconify API.",-1),Qy=x("p",{class:"extra-space"},[Ae(" If you like this plugin, please "),x("a",{href:"https://iconify.design/sponsors/",target:"_blank"},"consider supporting the Iconify project"),Ae(". ")],-1),ba=J({__name:"AboutLines",setup(e){return(t,n)=>(m(),w(ie,null,[Jy,Yy,Qy,x("p",null,[Ae(" If you need help with Iconify plugin, support is available "),x("a",{href:"https://iconify.design/support/",target:"_blank",onClick:n[0]||(n[0]=oi(s=>me.value="feedback",["prevent"]))},"via various social media platforms and GitHub"),Ae(". ")])],64))}}),Xy={class:"plugin-content icon-sets"},Zy={class:"plugin-page-header"},ev={key:0},tv={key:1},nv={key:0,class:"if-filters-container"},sv={class:"if-filters-row"},ov={class:"if-icon-sets-reset"},iv={key:0,class:"if-panel if-panel--right"},rv={key:1,class:"plugin-message"},lv=x("p",null," Icon sets filter searches icon set titles, licenses and authors, not icons. ",-1),cv={class:"plugin-message footer dimmed"},av=J({__name:"IconSets",props:{route:{}},setup(e){const t=Ce.convertedIconSetsCache,{prefixes:n,categorisedPrefixes:s,categories:o,tags:i,licenses:r,grids:l,hasActiveFilters:c,canSelectPalette:a,canSelectAttribution:f,canSelectCommercial:d}=Gy(t),h=ri(),p=O(()=>n.value.length),_=O(()=>n.value.reduce((ee,le)=>{var Q;return ee+(((Q=t.info[le])==null?void 0:Q.total)??0)},0)),I=new Set(["prefix","keyword"]),k=O(()=>Tl(Ht,lt,I)),$=z(!1);function C(){$.value=!1,Al(Ht,lt,I)}const{availableLists:b}=ea(),A=O(()=>h.value.list),q=O(()=>{const ee=A.value;return ee?Ue[ee].prefixes.value:[]});function R(ee){const le={type:"icon-sets"};ee&&(le.list=ee),_e.value=le}function F(){const ee=A.value;ee&&(Ue[ee].reset(),R())}const W=z("");function U(ee){_e.value={type:"icon-set",prefix:ee,parent:h.value}}function Y(){const ee=document.querySelector(".if-main-search input.if-input-content");ee==null||ee.focus()}return(ee,le)=>(m(),w("div",Xy,[x("div",Zy,[A.value?(m(),w("div",ev," Showing "+Z(u(Dr)[A.value].toLowerCase())+" icon sets: ",1)):(m(),w("div",tv," Showing "+Z(p.value)+" open source icon set"+Z(p.value!==1?"s":"")+" ("+Z(_.value)+" icons): ",1))]),u(b).length?(m(),w("div",nv,[x("div",sv,[(m(!0),w(ie,null,Ye(u(Ue),(Q,te,V)=>(m(),w(ie,{key:te},[u(b).includes(te)?(m(),K(u(Qt),{key:0,text:(u(Fe).compactWidth?u(xp):u(Dr))[te],selected:A.value===te,icon:te==="favorite"?u(fe).favorite.checked:void 0,onClick:de=>R(te),color:3-V},null,8,["text","selected","icon","onClick","color"])):E("",!0)],64))),128)),L(u(Qt),{text:u(Ip),selected:!A.value,onClick:le[0]||(le[0]=Q=>R())},null,8,["text","selected"])])])):E("",!0),A.value?(m(),w(ie,{key:1},[L(u(pa),{loader:u(Ce),data:u(t),prefixes:q.value,columns:2,compact:!0,selected:W.value,onClick:U},null,8,["loader","data","prefixes","selected"]),x("div",ov,[L(u($e),{class:"large",icon:u(fe).reset,text:u(Cp),onClick:F},null,8,["icon","text"])])],64)):(m(),w(ie,{key:2},[L(u(Qm),{keyword:u(lt).keyword,"onUpdate:keyword":le[1]||(le[1]=Q=>u(lt).keyword=Q),showFilters:$.value,"onUpdate:showFilters":le[2]||(le[2]=Q=>$.value=Q),hasFilters:u(c)},null,8,["keyword","showFilters","hasFilters"]),$.value?(m(),w("div",iv,[L(u(fa),{onReset:C,canReset:k.value,filters:u(lt),categories:u(o),tags:u(i),palette:u(a),licenses:u(r),attribution:u(f),commercial:u(d),grids:u(l)},null,8,["canReset","filters","categories","tags","palette","licenses","attribution","commercial","grids"])])):E("",!0),L(u(Jm),{loader:u(Ce),data:u(t),items:u(s),columns:2,compact:!0,selected:W.value,onClick:U},null,8,["loader","data","items","selected"]),u(n).length?E("",!0):(m(),w("div",rv,[Ae(" No icon sets match your filter. "),lv,x("p",null,[Ae(" If you are trying to search for icons, "),x("a",{href:"#",onClick:oi(Y,["prevent"])},"use the search form"),Ae(" above. ")])])),x("div",cv,[L(ba)])],64))]))}});function uv(e,t){return hi(e.loadConvertedIconSet,t)}function fv(e){const t=z(""),n={categories:null,prefixes:null,suffixes:null},s=tn(n),o=O(()=>Fl(e,t.value)),i=Object.create(null);for(const d in n){const h=d;i[h]=O(()=>{const p=e[h];return p?ya(p):null})}function r(d,h,p){for(const _ in n){const I=_,k=h[I];k!==null&&p!==I&&(d=df(e,I,k,d))}return d}const l=O(d=>{const h=r(o.value,s);return wn(Object.keys(h).sort((p,_)=>p.localeCompare(_)),d)});function c(d){if(t.value.trim()!=="")return!0;for(const h in n){const p=h;if(p!==d&&e[p]&&s[p]!==null)return!0}return!1}const a=O(()=>t.value!==""||Object.keys(s).some(d=>s[d]!==null)),f=Object.create(null);for(const d in n){const h=d;f[h]=O(()=>{if(!e[h])return null;const p=i[h].value;if(p&&c(h)){const _=r(o.value,s,h),I=ff(e,h,_),k=new Set(Array.from(I).map(b=>b.title));let $=!1;const C=p.map(b=>k.has(b.text)?b.visible?b:($=!0,{...b,visible:!0}):($=!0,{...b,visible:!1}));return $?C:p}return p})}return{icons:l,keyword:t,filters:s,hasActiveFilters:a,...f}}function dv(e,t){if(e.keyword&&(t.keyword.value=e.keyword),e.filters)for(const n in e.filters)t.filters[n]=e.filters[n]}function hv(e,t){function n(s){e.index=s,delete e.page}return e.icons=t.value,ye(t,s=>{e.icons=s}),{scroll:n}}const sl=new Map;function gi(e){const t=sl.get(e);if(t)return t;const n=z(!1),s=z([]);function o(c){n.value?s.value.includes(c)?s.value=s.value.filter(a=>a!==c):s.value.push(c):s.value.length===1&&s.value.includes(c)?s.value=[]:s.value=[c]}function i(c){c.forEach(a=>{s.value.includes(a)||s.value.push(a)})}function r(){s.value=[]}const l={multiSelect:n,selectedIcons:s,selectIcon:o,selectIcons:i,resetSelectedIcons:r};return sl.set(e,l),l}function mi(e){const{multiSelect:t,selectedIcons:n,selectIcon:s,selectIcons:o,resetSelectedIcons:i}=gi(e),r=Pt(Object.create(null)),l=O(()=>Object.fromEntries(Object.entries(r.value).filter(([p,_])=>!!_)));function c(p,_){r.value[p]!==void 0&&(r.value={...r.value,[p]:_})}function a(){const p=n.value,_=r.value,I=Object.create(null);let k=!1;const $=[];p.forEach(C=>{if(_[C]!==void 0){I[C]=_[C];return}k=!0;const b=e.getIconData(C);b?I[C]=b:(I[C]=!1,$.push(C))}),Object.keys(_).forEach(C=>{I[C]===void 0&&(k=!0)}),k&&(r.value=I),$.length&&$.forEach(C=>{e.loadIcon(!1,C).then(b=>{c(C,b)}).catch(()=>{c(C,null)})})}a(),ye(n,a,{deep:!0});const f=O(()=>{const p=r.value;return Object.keys(p).filter(I=>p[I]===!1)}),d=O(()=>{const p=n.value;return p.length===1?p[0]:""}),h=O(()=>{const p=d.value;return p?r.value[p]:!1});return{multiSelect:t,selectedIcons:n,selectIcon:s,selectIcons:o,resetSelectedIcons:i,loadingIcons:f,selectedIconsData:r,filteredSelectedIconsData:l,singleIconName:d,singleIconData:h}}function yi(){const e=z(8),t=O(()=>({height:Fe.compactWidth?32:48,padding:4,gap:0}));return{gridColumns:e,gridLayout:t}}const ol="#000";function vi(e,t){const n=[];let s=ol,o,i=!1;if(t.changeColor){const l=et.value;if(l)if(typeof l=="string")s=l;else{const c=wt.value.find(a=>a.id===l.id);c&&(o=c.id,s=c.color)}}const r=t.forceSize||t.changeSize&&xt.value||void 0;for(const l in e){const c=e[l];if(!c)continue;const a=r||Ml([c.height||16]).size,f=Xc(c.body)||c.body,{attributes:d}=Pu(c,{height:a}),h=f.includes("currentColor"),p=Lu(f.replace(/currentColor/g,s),d);i=i||h,n.push({name:l,content:p,width:parseInt(d.width),height:a,monotone:h})}return i&&(o?To(ft+o):s!==ol&&To(s)),{source:"iconify",icons:n,props:{color:s,style:o,size:r},route:me.value?void 0:_e.value}}let cn=null;function bi(e,t,n){const s=t.target;if(s.classList.toggle("dragging",e),!e){if(!cn)return;const o=cn;if(cn=null,t.screenX>o.min.x&&t.screenXo.min.y&&t.screenY(m(),K(u(Ee),{text:"Select multiple icons to import",class:"right bottom"},{default:ue(()=>[L(u(Lg),{value:u(t),"onUpdate:value":s[0]||(s[0]=o=>Le(t)?t.value=o:null),text:u(Fe).compactWidth?"Multiple":"Select Multiple Icons"},null,8,["value","text"])]),_:1}))}}),pv={key:0,class:"if-icon-set-footer-controls"},gv={class:"if-tooltip"},ki=J({__name:"PaginationMultiSelect",props:{range:{},selectVisibleIcons:{type:Function}},setup(e){const{multiSelect:t,selectedIcons:n,resetSelectedIcons:s}=gi(Ce);return(o,i)=>u(t)||u(n).length>1?(m(),w("div",pv,[x("div",{class:re(["if-tooltip-wrapper bottom",[!u(n).length&&"empty"]])},[x("div",null,Z((u(Wr)[u(n).length]??u(Wr)[2]).replace("{n}",`${u(n).length}`)),1),x("div",gv,Z(u(n).slice(0,30).join(` +`+Hr);function h(_){switch(_){case"":return`... ${Ap}`;case"filtered":return`... ${Pp}`.replace("{n}",`${St.value.length}`);default:return`... ${Lp[_]}`}}function p(_){switch(_){case"favorite":return fe.favorite.unchecked;case"filtered":return fe.filter;default:return fe.search}}return(_,I)=>(m(),w("div",{class:re(["if-main-search if-tooltip-wrapper",[o.value&&"error"]]),ref:"node"},[L(u(nn),{class:re(_.compact?"full":"large full"),value:u(t),"onUpdate:value":I[0]||(I[0]=k=>Fe(t)?t.value=k:null),icon:u(fe).search,placeholder:u(oa),canReset:!0,enterKey:c,noButton:!0},null,8,["class","value","icon","placeholder"]),_.showButtons||s.value&&!o.value?(m(),w("div",$m,[u(n).length<2?(m(),K(u($e),{key:0,class:re(!_.compact&&"large"),text:u(Tp),selected:i.value,disabled:r.value,onClick:I[1]||(I[1]=k=>l(u(n)[0]))},null,8,["class","text","selected","disabled"])):(m(),w(ie,{key:1},[L(u($e),{class:re(!_.compact&&"large"),disabled:r.value,text:u(Mp),iconAfter:u(n).length>1?u(fe).dropDown:void 0},null,8,["class","disabled","text","iconAfter"]),x("div",Om,[(m(!0),w(ie,null,Ye(u(n),(k,$)=>(m(),K(u($e),{key:k,icon:p(k),selected:!$,text:h(k),onClick:C=>l(k)},null,8,["icon","selected","text","onClick"]))),128))])],64))])):E("",!0),x("div",Mm,Z(d.value),1)],2))}}),Tm=J({__name:"Notices",setup(e){const{notices:t,clear:n}=ta();return(s,o)=>u(t).length?(m(),w("div",{key:0,class:"if-notices",onMouseenter:o[0]||(o[0]=(...i)=>u(n)&&u(n)(...i))},[(m(!0),w(ie,null,Ye(u(t),(i,r)=>(m(),w("div",{key:i.id,class:re(["if-notices-item",[i.type,i.fading&&"fading",`index-${r}`]])},[x("span",null,Z(i.message),1)],2))),128))],32)):E("",!0)}}),Am=["title"],Pm={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 4 8 16",width:"8",height:"16",stroke:"currentColor",fill:"none"},Lm=x("path",{d:"M4 12V6M4 12V18",class:"path1"},null,-1),Fm=x("path",{d:"M4 6L7 9M4 6L1 9M4 18L7 15M4 18L1 15",class:"path2"},null,-1),Em=[Lm,Fm],Xr=J({__name:"Stats",props:{text:{},title:{},line:{type:Boolean}},setup(e){const t=e,n=O(()=>t.line||typeof t.text=="string"&&t.text.includes("|")),s=O(()=>{const o=t.text;return typeof o=="string"?o.replace("|",""):`${o}`});return(o,i)=>(m(),w("div",{class:re(["if-icon-set-stats-text",[n.value&&"line"]]),title:t.title},[n.value?(m(),w("svg",Pm,Em)):E("",!0),Pe(" "+Z(s.value),1)],10,Am))}}),Rm=["icon"],Nm=J({__name:"Samples",props:{loader:{},prefix:{},samples:{},visible:{type:Boolean}},setup(e){const{loader:t,prefix:n,samples:s,visible:o}=e,i=Pt(Object.create(null));for(let c=0;c{f&&(i.value={...i.value,[a]:f})}).catch(()=>{})}}}if(o)l();else{try{window&&l()}catch{}ye(()=>o,l)}return(c,a)=>(m(!0),w(ie,null,Ye(i.value,(f,d)=>(m(),w("iconify-icon",{key:d,icon:c.visible?f:void 0,width:"1em",height:"1em"},null,8,Rm))),128))}});function da(e){const t=Ue.favorite,n=z(t.prefixes.value.includes(e));return ye(t.prefixes,s=>n.value=s.includes(e)),ye(n,s=>{s?t.add(e):t.remove(e)}),n}const jm=["tabindex"],Bm={key:0,class:"if-icon-sets-item-data"},Dm={key:0,class:"if-icon-sets-item-stats"},Hm={class:"if-icon-sets-item-text"},zm={class:"if-icon-sets-item-title"},Um={key:0,class:"if-icon-sets-item-hint"},Vm=["icon"],Km={class:"if-icon-set-item-tooltip if-tooltip"},Wm=J({__name:"Item",props:{loader:{},prefix:{},info:{},compact:{type:Boolean},selected:{type:Boolean},disabled:{type:Boolean},favorite:{type:Boolean},color:{}},setup(e){const t=e,n=O(()=>{const a=t.info.samples;return a&&a.length>1?a.slice(0,3):null}),s=O(()=>{const a=t.info.height;if(!a)return null;const f=typeof a=="number"?[a]:a;switch(f.length){case 1:case 2:return f.join(",")}return null}),o=O(()=>Oo(t.info,t.compact)),i=da(t.prefix),r=z(),l=z(!1),c=z(null);return ye(r,a=>{var f;if(a){(f=c.value)==null||f.disconnect();const d=new IntersectionObserver(h=>{h.forEach(({isIntersecting:p})=>{l.value=p})});c.value=d,d.observe(a)}}),Ls(()=>{var a;(a=c.value)==null||a.disconnect()}),(a,f)=>(m(),w("button",{ref_key:"root",ref:r,tabindex:a.disabled||a.selected?-1:void 0,class:re(["if-icon-sets-item",[`if-icon-sets-item--${a.prefix}`,a.compact&&"compact",a.color?`has-color color-${a.color}`:a.info.color&&`has-color color-${a.info.color}`,a.selected&&!a.disabled&&"selected",a.disabled&&"disabled",a.info.hidden&&"hidden",u(i)&&"favorite"]])},[n.value?(m(),w("span",Bm,[x("span",{class:re(["if-icon-sets-item-samples",[a.info.displayHeight?`grid-${a.info.displayHeight}`:typeof a.info.height=="number"?`grid-${a.info.height}`:""]])},[L(u(Nm),{visible:l.value,loader:a.loader,prefix:a.prefix,samples:n.value},null,8,["visible","loader","prefix","samples"])],2),a.compact?E("",!0):(m(),w("span",Dm,[L(u(Xr),{class:"if-icon-sets-item-stats-counter",text:a.info.total,title:u(li).replace("{n}",`${a.info.total}`)},null,8,["text","title"]),s.value&&l.value?(m(),K(u(Xr),{key:0,class:"if-icon-sets-item-stats-grid",text:`|${s.value}`,title:u(la).replace("{n}",s.value)},null,8,["text","title"])):E("",!0)]))])):E("",!0),x("span",Hm,[x("span",zm,Z(a.info.name),1),a.compact?E("",!0):(m(),w("span",Um,Z(a.info.license.title),1))]),u(i)?(m(),w("iconify-icon",{key:1,class:"if-icon-sets-item-favorite",icon:u(fe).favorite.checked},null,8,Vm)):E("",!0),x("span",Km,Z(o.value),1)],10,jm))}});function ha(e){const t=Pt();return e.loadConvertedIconSets().then(n=>{t.value=n}).catch(()=>{t.value=null}),t}const pa=J({__name:"List",props:{loader:{},data:{},prefixes:{},columns:{},compact:{type:Boolean},selected:{}},emits:["click"],setup(e,{emit:t}){const n=e,s=n.data?z(n.data):ha(n.loader),o=t;return(i,r)=>u(s)?(m(),w("div",{key:0,class:re(["if-icon-sets-list",[i.compact&&"compact",`if-icon-sets-list--${i.columns}`]]),style:Je(`grid-template-columns: repeat(${i.columns}, 1fr)`)},[(m(!0),w(ie,null,Ye(i.prefixes,l=>(m(),K(u(Wm),{key:l,loader:i.loader,prefix:l,compact:i.compact,info:u(s).info[l],color:u(s).colors[l],selected:i.selected===l,onClick:c=>o("click",l)},null,8,["loader","prefix","compact","info","color","selected","onClick"]))),128))],6)):E("",!0)}}),qm={key:0,class:"if-icon-sets"},Gm={key:0},Jm=J({__name:"CategorisedList",props:{loader:{},data:{},items:{},columns:{},compact:{type:Boolean},selected:{},showCounter:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,s=n.data?z(n.data):ha(n.loader),o=t;return(i,r)=>u(s)?(m(),w("div",qm,[(m(!0),w(ie,null,Ye(i.items,(l,c)=>(m(),w(ie,{key:c},[l.prefixes.length?(m(),w(ie,{key:0},[x("div",{class:re(["if-icon-sets-category",[i.compact&&"compact"]])},[Pe(Z(c||u(Rs))+" ",1),i.showCounter?(m(),w("small",Gm,Z(` (${l.prefixes.length})`),1)):E("",!0)],2),L(u(pa),{loader:i.loader,data:u(s),columns:i.columns,compact:i.compact,prefixes:l.prefixes,selected:i.selected,onClick:r[0]||(r[0]=a=>o("click",a))},null,8,["loader","data","columns","compact","prefixes","selected"])],64)):E("",!0)],64))),128))])):E("",!0)}}),Ym={class:"if-icon-sets-header"},Qm=J({__name:"Header",props:{keyword:{},keywordPlaceholder:{},keywordIcon:{},keywordText:{},showFilters:{type:Boolean},hasFilters:{type:Boolean}},emits:["update:keyword","update:showFilters"],setup(e,{emit:t}){const n=e,s=t;function o(){s("update:showFilters",!n.showFilters)}const i=Ut(()=>n.showFilters,fe.toggle);return(r,l)=>(m(),w("div",Ym,[L(u(Ee),{text:u(Hp)},{default:ue(()=>[L(u(nn),{class:"full",value:r.keyword,icon:u(fe).filter,placeholder:u(ca),defaultValue:"","onUpdate:value":l[0]||(l[0]=c=>s("update:keyword",c))},null,8,["value","icon","placeholder"])]),_:1},8,["text"]),L(u($e),{text:u(zp),onClick:o,iconAfter:u(i),selected:r.showFilters&&!r.hasFilters,active:r.hasFilters},null,8,["text","iconAfter","selected","active"])]))}}),Xm={key:0,class:"if-icon-set-info-buttons"},Zm=["href"],ey=["href"],ty=J({__name:"Info",props:{prefix:{},info:{},canToggleFavorite:{type:Boolean}},setup(e){const t=e,n=O(()=>{const r=t.info.license,l=r.spdx?xn[r.spdx]:void 0;return{...r,data:l,commercialText:l?bs[l.commercial?1:0]:"",attributionText:l?_s[l.attribution?1:0]:""}}),s=da(t.prefix);function o(){s.value=!s.value}const i=Ut(()=>s.value,fe.favorite);return(r,l)=>(m(),w("section",{class:re(["if-icon-set-info",[r.info.color&&`color-${r.info.color}`]])},[r.canToggleFavorite?(m(),w("div",Xm,[L(u(Ee),{class:"right",text:u(s)?u(wp):u(kp)},{default:ue(()=>[L(u($e),{selected:u(s),icon:u(i),onClick:o},null,8,["selected","icon"])]),_:1},8,["text"])])):E("",!0),x("h1",null,[x("span",null,Z(r.info.name),1),x("small",null,[Pe(Z(u(ra))+" ",1),x("a",{href:r.info.author.url,target:"_blank"},Z(r.info.author.name),9,Zm)])]),L(u(Ee),{text:n.value.data?`${n.value.commercialText} +${n.value.attributionText}`:""},{default:ue(()=>[x("p",null,[Pe(Z(u(Dp))+": ",1),x("a",{href:n.value.url,target:"_blank"},Z(n.value.title),9,ey)])]),_:1},8,["text"])],2))}});function hi(e,t=void 0,n=void 0,s=void 0){const o=Pt(),i=()=>[ct(t),ct(n),ct(s)],r=a=>JSON.stringify(a.map(f=>{if(typeof f=="object"){for(const d in f)if(typeof f[d]=="function")return typeof f.key=="string"?f.key:null}return f}));let l=r(i());const c=()=>{const a=l,[f,d,h]=i();e(f,d,h).then(p=>{a===l&&(o.value=p)}).catch(()=>{a===l&&(o.value=null)})};return c(),ye(()=>[t,n,s],()=>{l=r(i()),o.value=void 0,c()},{deep:!0}),o}function ny(e,t,n,s){return hi(e.loadIcon,t,n,s)}const sy=["icon"],oy={key:1,class:"if-grid-icon-placeholder"},iy={class:"if-tooltip"},pi=J({__name:"Icon",props:{loader:{},prefix:{},name:{},data:{},selected:{type:Boolean},selecting:{type:Boolean},iconSetData:{},iconSetInfo:{},skipIconSetInfo:{type:Boolean},hidden:{type:Boolean},side:{},align:{},beforeHint:{},afterHint:{},color:{}},emits:["click"],setup(e,{emit:t}){const{loader:n,prefix:s,name:o,data:i,iconSetData:r,iconSetInfo:l,skipIconSetInfo:c}=e,a=t,f=r?o:`${s}:${o}`,d=i?z(i):ny(n,!1,s,o),h=O(()=>ug({name:o,displayName:f,iconData:d.value,iconSetData:r,iconSetInfo:l,addFiltersToText:!0,skipIconSetInfo:c}));return(p,_)=>(m(),w("button",{class:re(["if-grid-icon",[p.selecting&&!p.selected&&"selecting",p.hidden&&"hidden",!u(d)&&"placeholder",p.side&&`align-${p.side}`,p.align&&`align-${p.align}`,p.selected&&"selected"]]),onClick:_[0]||(_[0]=I=>a("click"))},[u(d)?(m(),w("iconify-icon",{key:0,icon:u(d),width:"1em",height:"1em"},null,8,sy)):(m(),w("span",oy)),x("div",iy,Z(p.beforeHint)+Z(h.value.lines.join(` +`))+Z(p.afterHint),1)],2))}}),ry={class:"if-icon-set-filters"},ly={class:"if-tooltip-wrapper"},cy={key:0,class:"if-tooltip"},ay=J({__name:"Filters",props:{filters:{},categories:{},prefixes:{},suffixes:{},keyword:{}},emits:["update:keyword"],setup(e,{emit:t}){const n=t;return(s,o)=>(m(),w("div",ry,[s.categories?(m(),K(u(kt),{key:0,type:"tab",filters:s.categories,"expand-title":"Expand categories filter","collapse-title":"Collapse categories filter","reset-title":"Reset categories selection",selected:s.filters.categories,"onUpdate:selected":o[0]||(o[0]=i=>s.filters.categories=i),"empty-text":u(Rs)},null,8,["filters","selected","empty-text"])):E("",!0),s.prefixes?(m(),K(u(kt),{key:1,type:"tab",filters:s.prefixes,"expand-title":"Expand prefixes filter","collapse-title":"Collapse prefixes filter","reset-title":"Reset prefixes selection",selected:s.filters.prefixes,"onUpdate:selected":o[1]||(o[1]=i=>s.filters.prefixes=i),"empty-text":u(An)},null,8,["filters","selected","empty-text"])):E("",!0),s.suffixes?(m(),K(u(kt),{key:2,type:"tab",filters:s.suffixes,"expand-title":"Expand suffixes filter","collapse-title":"Collapse suffixes filter","reset-title":"Reset suffixes selection",selected:s.filters.suffixes,"onUpdate:selected":o[2]||(o[2]=i=>s.filters.suffixes=i),"empty-text":u(An)},null,8,["filters","selected","empty-text"])):E("",!0),x("div",ly,[L(u(nn),{class:"full",icon:u(fe).search,value:s.keyword,"onUpdate:value":o[3]||(o[3]=i=>n("update:keyword",i)),placeholder:u(Bp),canAlwaysReset:!0},null,8,["icon","value","placeholder"]),s.keyword?E("",!0):(m(),w("span",cy,Z(u(Np)),1))])]))}}),uy=["icon"],fy={class:"if-tooltip"},dy=J({__name:"Sample",props:{data:{}},setup(e){const t=e,n=O(()=>Object.keys(t.data)),s=O(()=>{const r=t.data,l=[];for(const c in r){const a=r[c];if(a&&a.body.includes("currentColor")&&(l.push(c),l.length===5))return l.reverse()}for(const c in r){const a=r[c];if((!a||!a.body.includes("currentColor"))&&(l.push(c),l.length===5))return l.reverse()}return l.reverse()}),o=O(()=>{const i=n.value;return i.length===1?i[0]:li.replace("{n}",i.length.toString())});return(i,r)=>(m(),w("div",{class:re(["if-icon-sample if-tooltip-wrapper bottom",[`limit-${s.value.length}`]])},[(m(!0),w(ie,null,Ye(s.value,l=>(m(),w("iconify-icon",{key:l,icon:i.data[l],width:"1em",height:"1em"},null,8,uy))),128)),x("div",fy,Z(o.value),1)],2))}}),wt=Pt([]),hy=["#1e1e1e","#757575","#f24822","#ffa629","#ffcd29","#14ae5c","#0d99ff","#9747ff","#ffffff","#b3b3b3","#e6e6e6","#ffc7c2","#fcd19c","#ffe8a3","#aff4c6","#bde3ff","#e4ccff"],Pn=Pt([]),py=9*3;function To(e){const t=Pn.value;if(!t.length||t[t.length-1]!==e){const n=t.filter(s=>s!==e);for(n.unshift(e);n.length>py;)n.pop();Pn.value=n}}const et=Pt(null);function to(e){if(e){const t=wt.value;wt.value=e.filter(n=>typeof n=="string"?!t.find(s=>s===n):!t.find(s=>typeof s!="string"&&s.id===n.id)).concat(t).sort((n,s)=>n.remote===s.remote?n.name.localeCompare(s.name):n.remote?1:-1)}}function Zr(e,t){if(e.match(/^#[0-9a-f]{6}$/i))return e;const n=vf(e);return(n==null?void 0:n.type)==="rgb"&&bf(n,!1)||t}function gy(){const e=O(()=>{var c;const l=et.value;if(l)return typeof l=="string"?l:(c=wt.value.find(a=>a.id===l.id))==null?void 0:c.color}),t=O(()=>{var c;const l=et.value;if(l)return typeof l=="string"?l:(c=wt.value.find(a=>a.id===l.id))==null?void 0:c.name}),n=O(()=>Zr(e.value||"black","#000000")),s=O(()=>{const l=e.value;return l?{icon:fe.colors.color,style:`color: ${l}`,value:t.value||""}:{icon:fe.colors.current,style:"",value:""}});function o(l){if(!l){et.value=null;return}if(l.startsWith(ft)){const f=l.slice(ft.length);et.value={type:"style",id:f};return}if(Zr(l,null)!==null){et.value=l;return}const a=wt.value.find(f=>f.name===l);a&&(et.value={type:"style",id:a.id})}const i=O(()=>wt.value.map(l=>({color:l.color,text:l.name,key:ft+l.id}))),r=O(()=>{const l=Pn.value,c=wt.value,a=[];return l.forEach(f=>{if(!f.startsWith(ft)){a.push({color:f});return}const d=f.slice(ft.length),h=c.find(p=>p.id===d);h&&a.push({color:h.color,text:h.name,key:f})}),a});return{colorValue:e,colorPickerColor:n,colorInputIcon:s,updateInput:o,colorStyleOptions:i,recentColors:r}}const xt=z(null),el=z(!1),Ao=z("figma"),tl=z(""),at=z(null),Ae=tn({compactWidth:!1}),my=z(!1);function yy(){const{push:e}=ta(),t={route:"",lists:"",filters:"",custom:""};function n(o,i){const r=JSON.stringify(i);if(r!==t[o])return t[o]=r,!0}function s(){let o=null;const i=3e3;function r(){const c=o;if(o=null,c){if(c.has("route")){const a=_e.value;n("route",a)&&ze({type:"ui:route",route:a})}if(c.has("lists")){const a={};for(const f in Ue){const d=Ue[f];d!=null&&d.canBackup&&(a[f]=d.prefixes.value.slice(0))}n("lists",a)&&ze({type:"ui:lists",lists:a})}if(c.has("filters")){const a={};Gi(Ht,lt,a,!0),n("filters",a)&&ze({type:"ui:filters",filters:a})}if(c.has("custom")){const a=et.value,f={color:a?typeof a=="string"?a:ft+a.id:void 0,size:xt.value||void 0};n("custom",f)&&ze({type:"ui:customisations",custom:f})}}}function l(c){o?o.add(c):(o=new Set([c]),setTimeout(r,i))}ye([_e,Mn],()=>{l("route")},{deep:!0}),mp(()=>l("lists")),ye(lt,()=>l("filters")),ye([et,xt],()=>l("custom")),ye(Pn,c=>{ze({type:"ui:recent-colors",colors:c})})}return window.onmessage=o=>{try{if(typeof o.data.pluginMessage.type!="string")return}catch{return}const i=o.data.pluginMessage;switch(console.log("Message from Figma:",i),i.type){case"plugin:starting":{if(Ao.value=i.app,tl.value=i.command,Object.assign(Ae,i.config),i.route&&(t.route=JSON.stringify(i.route),_e.value=i.route),i.lists){const r=i.lists;t.lists=JSON.stringify(r);for(const l in Ue){const c=Ue[l];c!=null&&c.canBackup&&r[l]&&c.restore(r[l])}}if(i.recent&&(Yt.value=i.recent),i.selectIcon&&(at.value=i.selectIcon),i.filters&&Gi(Ht,i.filters,lt,!1),to(i.styles),Br(i.nodes),i.recentColors&&(Pn.value=i.recentColors),i.custom){const{color:r,size:l}=i.custom;r&&(et.value=r.startsWith(ft)?{type:"style",id:r.slice(ft.length)}:r),l&&(xt.value=l)}el.value=!0,s();break}case"plugin:nodes":{Br(i.nodes),to(i.styles);break}case"plugin:resize":{Ae.compactWidth=i.compactWidth,my.value=i.minimized;break}case"plugin:notice":{e(i.color,i.text);break}case"plugin:recent-icons":{Yt.value=i.icons;break}case"plugin:color-styles":{to(i.styles);break}case"plugin:recent-color":{To(i.color);break}}},{started:el,app:Ao,command:tl,config:Ae}}const me=z(""),vy=["icon"],by={key:1},_y={class:"if-tooltip"},Ze=J({__name:"MenuButton",props:{icon:{},text:{},tooltip:{},selected:{type:Boolean},right:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=t;return(s,o)=>(m(),w("div",{class:re(["if-tooltip-wrapper",[s.right&&"right"]])},[x("button",{onClick:o[0]||(o[0]=i=>n("click")),class:re(s.selected&&"selected")},[s.icon?(m(),w("iconify-icon",{key:0,icon:s.icon},null,8,vy)):(m(),w("span",by,Z(s.text),1))],2),x("div",_y,Z(s.tooltip),1)],2))}}),ky={class:"plugin-menu"},wy={class:"plugin-menu-row primary"},xy=x("span",null,null,-1),Iy={key:0,class:"plugin-menu-row secondary"},Cy=x("span",null,null,-1),Sy={key:1,class:"plugin-menu-row secondary"},$y=x("span",null,null,-1),Oy=J({__name:"Menu",setup(e){const t=O(()=>{const r=me.value;return r!==""&&r!=="recent-icons"});function n(){if(me.value!==""){me.value="";return}const r=_e.value;(r.type!=="icon-sets"||r.list)&&(_e.value={type:"icon-sets"})}function s(r){me.value=r}function o(){ze({type:"ui:close"})}function i(){ze({type:"ui:compact"})}return(r,l)=>(m(),w("div",ky,[x("div",wy,[L(Ze,{tooltip:"Browse Icons",text:"Import",onClick:n}),xy,L(Ze,{tooltip:"About Iconify plugin, support, feedback",icon:u(Nf),right:"",selected:t.value,onClick:l[0]||(l[0]=c=>s("about"))},null,8,["icon","selected"]),L(Ze,{class:"plugin-menu-full-only",tooltip:u(Ae).compactWidth?"Switch to full mode":"Switch to compact mode",icon:u(Dl),right:"",onClick:i},null,8,["tooltip","icon"]),L(Ze,{class:"plugin-menu-full-only",tooltip:"Close Plugin",icon:u(fe).reset,right:"",onClick:o},null,8,["icon"])]),t.value?(m(),w("div",Sy,[L(Ze,{tooltip:"What's new in Iconify plugin",text:"What's New",selected:u(me)==="v4",onClick:l[2]||(l[2]=c=>s("v4"))},null,8,["selected"]),L(Ze,{tooltip:"Send your feedback or ask questions",text:"Feedback / Support",selected:u(me)==="feedback",onClick:l[3]||(l[3]=c=>s("feedback"))},null,8,["selected"]),$y,L(Ze,{tooltip:"About Iconify plugin",text:"About",right:"",selected:u(me)==="about",onClick:l[4]||(l[4]=c=>s("about"))},null,8,["selected"])])):(m(),w("div",Iy,[L(Ze,{text:"Browse Icons",tooltip:"Browse all available icons",selected:u(me)==="",onClick:n},null,8,["selected"]),Cy,u(Yt).length?(m(),K(Ze,{key:0,tooltip:"Show recently imported icons",text:"Recent",right:"",selected:u(me)==="recent-icons",onClick:l[1]||(l[1]=c=>s("recent-icons"))},null,8,["selected"])):E("",!0)]))]))}}),ga=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},My={},Ty={class:"plugin-sponsor"},Ay=x("a",{href:"https://bit.ly/47E7nnG",target:"_blank"},[Pe("Access 170,000 more icons "),x("iconify-icon",{icon:"line-md:arrow-right"})],-1),Py=[Ay];function Ly(e,t){return m(),w("div",Ty,Py)}const nl=ga(My,[["render",Ly]]),Fy=J({__name:"IconSet",props:{route:{},iconSetsRoute:{}},setup(e){const t=e,n=Ce.convertedIconSetsCache,s=O(()=>t.iconSetsRoute.list),o=O(()=>s.value?Ue[s.value].prefixes.value:St.value),i=O(()=>Bu(o.value,t.route.prefix));function r(l){_e.value={type:"icon-set",prefix:l,parent:t.iconSetsRoute}}return(l,c)=>(m(),w(ie,null,[i.value.prev?(m(),K(u(Ee),{key:0,class:"right",text:u(Oo)(u(n).info[i.value.prev],!0)},{default:ue(()=>{var a;return[L(u($e),{class:"pretty",icon:u(fe).prevPage,text:((a=u(n).info[i.value.prev])==null?void 0:a.name)??i.value.prev,color:u(n).colors[i.value.prev],onClick:c[0]||(c[0]=f=>r(i.value.prev))},null,8,["icon","text","color"])]}),_:1},8,["text"])):E("",!0),i.value.next?(m(),K(u(Ee),{key:1,class:"right",text:u(Oo)(u(n).info[i.value.next],!0)},{default:ue(()=>{var a;return[L(u($e),{class:"pretty",iconAfter:u(fe).nextPage,text:((a=u(n).info[i.value.next])==null?void 0:a.name)??i.value.next,color:u(n).colors[i.value.next],onClick:c[1]||(c[1]=f=>r(i.value.next))},null,8,["iconAfter","text","color"])]}),_:1},8,["text"])):E("",!0)],64))}}),ks=z(!1),Nt=z(!1),ws=z(!1),Ey={key:0,class:"plugin-return"},Ry={key:1,class:"plugin-return"},Ny=J({__name:"Index",setup(e){const{iconSetsRoute:t}=ea(),n=O(()=>{const c=_e.value;switch(c.type){case"icon-set":case"search":return c.parent;case"icon":case"icon-overlay":return c.parent}}),s=O(()=>t.value.list?$p+Op[t.value.list]:Sp);function o(){const c=n.value;c&&(_e.value=c)}function i(){me.value=""}const r=Ut(()=>Nt.value,fe.toggle);function l(){Nt.value=!Nt.value}return ye(ks,c=>{c||(Nt.value=!1)}),(c,a)=>u(me)?(m(),w(ie,{key:0},[u(me)==="recent-icons"?(m(),w("div",Ey,[L(u(Jr),{onClick:i,title:"Return to browsing icons"})])):E("",!0)],64)):n.value?(m(),w("div",Ry,[u(_e).type==="icon-set"||u(_e).type==="search"?(m(),K(u(Jr),{key:0,onClick:o,title:s.value},{default:ue(()=>[u(_e).type==="icon-set"?(m(),K(Fy,{key:0,route:u(_e),iconSetsRoute:u(t)},null,8,["route","iconSetsRoute"])):E("",!0),u(_e).type==="search"&&u(ks)?(m(),K(u($e),{key:1,text:"Filter Search Results",iconAfter:u(r),selected:u(Nt)&&!u(ws),active:u(ws),onClick:l},null,8,["iconAfter","selected","active"])):E("",!0)]),_:1},8,["title"])):E("",!0)])):E("",!0)}}),jy={key:0,class:"plugin-header-toggle"},By={class:"plugin-menu-row secondary"},Dy={class:"plugin-menu-row secondary"},Hy={key:1,class:"plugin-header-content"},zy={key:1,class:"plugin-v4-notice"},Uy=x("div",null,"Welcome to new Iconify plugin!",-1),Vy={class:"plugin-v4-notice-buttons"},Ky=J({__name:"Index",setup(e){const t=z(!1),n=z(!1),s=z(!1),o=Ut(()=>t.value&&s.value,nr);function i(){const f=me.value,d=f==="recent-icons"||!f&&_e.value.type!=="icon-sets";t.value=d,n.value=d&&_e.value.type==="search",s.value=!d,o.value=nr.unchecked}i(),ye([_e,me],i);function r(){s.value=!s.value}function l(){ze({type:"ui:compact"})}const c=O(()=>Ae.v4Notice&&!t.value);function a(){Ae.v4Notice=!1,ze({type:"ui:dismiss-v4"}),me.value=""}return(f,d)=>(m(),w("div",{class:re(["plugin-header",[u(Ae).compactWidth&&"compact"]])},[t.value?(m(),w("div",jy,[x("div",By,[L(Ze,{tooltip:"Show menu and search",icon:u(o),onClick:r},null,8,["icon"])]),L(nl),x("div",Dy,[L(Ze,{tooltip:u(Ae).compactWidth?"Switch to full mode":"Switch to compact mode",icon:u(Dl),right:"",onClick:l},null,8,["tooltip","icon"])])])):E("",!0),s.value?(m(),w("div",Hy,[L(Oy),t.value?E("",!0):(m(),K(nl,{key:0})),c.value?(m(),w("div",zy,[Uy,x("div",Vy,[L(u($e),{text:"What's New",selected:!0,active:u(me)==="v4",onClick:d[0]||(d[0]=h=>me.value="v4")},null,8,["active"]),L(u($e),{text:"Feedback",selected:!0,active:u(me)==="feedback",class:"has-color color-2",onClick:d[1]||(d[1]=h=>me.value="feedback")},null,8,["active"]),L(u($e),{text:"Dismiss",selected:!0,class:"has-color color-3",onClick:a})])])):E("",!0),u(me)?E("",!0):(m(),K(u(Qr),{key:2,loader:u(Ce),showButtons:!1,compact:u(Ae).compactWidth},null,8,["loader","compact"]))])):n.value?(m(),w(ie,{key:2},[u(me)?E("",!0):(m(),K(u(Qr),{key:0,loader:u(Ce),showButtons:!u(Ae).compactWidth,compact:u(Ae).compactWidth},null,8,["loader","showButtons","compact"]))],64)):E("",!0),L(Ny)],2))}}),Wy={title:"",visible:!0,dimmed:!1,color:0};function ma(e){return{...Wy,...e}}function ya(e){return Object.keys(e).map(t=>{const n=e[t],s=n.count>0;return ma({text:t,visible:s,dimmed:!s,color:n.color})})}function Qn(e,t,n,s){if(!s.length)return null;const o=t(e,s),i=new Set(Object.keys(o));if(i.size<2)return null;const r=n.length===s.length?o:t(e,n);return ya(r).map(l=>i.has(l.text)?l:{...l,visible:!1,dimmed:!0})}function Xn(e,t,n,s,o,i,r){if(!o)return{filters:null};const l=s[r],c=l===null?n:hs(e,s,t,r),a=i(e,c);return{prefixes:c,map:a,filters:o.map(f=>{const d=f.text;return{...f,visible:l===d||!!a[d]}})}}function va(e,t,n,s){const o=O(()=>Tl(Ht,s)),i=O(()=>{const F=t.value,W=n.value;return F.length>1?F.map(U=>{const Y=!W.includes(U);return ma({text:U,title:e.info[U].name??U,color:e.colors[U],dimmed:Y,visible:!Y})}):null}),r=O(()=>Qn(e,ds,t.value,n.value)),l=O(()=>!!r.value),c=O(()=>Qn(e,fo,t.value,n.value)),a=O(()=>Qn(e,ho,t.value,n.value)),f=O(()=>Qn(e,ts,t.value,n.value)),d=O(()=>!!r.value||!!a.value||!!c.value||!!f.value);[[r,"category"],[c,"grid"],[a,"tag"],[f,"license"]].forEach(([F,W])=>{ye(F,U=>{const Y=s[W];Y!==null&&!(U!=null&&U.find(ee=>ee.title===Y))&&(s[W]=null)})});const p=O(F=>wn(hs(e,s,t.value),F)),_=O(()=>{const F=i.value;if(!F)return null;const W=new Set(s.prefix?hs(e,s,t.value,"prefix"):p.value);return F.map(U=>W.has(U.text)?U:{...U,visible:!1})}),I=O(()=>Xn(e,t.value,p.value,s,r.value,ds,"category").filters),k=O(()=>Xn(e,t.value,p.value,s,a.value,ho,"tag").filters),$=O(()=>Xn(e,t.value,p.value,s,c.value,fo,"grid").filters),C=O(()=>s.palette!==null?!0:tf(e,p.value)),b=O(()=>{const F=Xn(e,t.value,p.value,s,f.value,ts,"license");let W=F.map;(!W||s.license===null)&&(W=ts(e,p.value));const U=Qu(W);return{filters:F.filters,commercial:Qi(U.commercial),attribution:Qi(U.attribution)}}),A=O(()=>{var F;return((F=b.value)==null?void 0:F.filters)??null}),q=O(()=>{var F;return s.attribution!==null?!0:((F=b.value)==null?void 0:F.attribution)??!1}),R=O(()=>{var F;return s.commercial!==null?!0:((F=b.value)==null?void 0:F.commercial)??!1});return{prefixes:p,hasVisibleFilters:d,hasActiveFilters:o,filters:s,prefixFilters:_,categories:I,hasCategories:l,tags:k,licenses:A,canSelectCommercial:R,canSelectAttribution:q,grids:$,canSelectPalette:C}}function qy(e,t){const n=va(e,z(e.prefixes),z(e.allVisiblePrefixes),t),s=n.hasCategories,o=O(i=>{const r=n.prefixes.value;return r.length?wn(ds(e,r),i):{}});return{...n,showCategories:s,categorisedPrefixes:o}}function Gy(e){Jc(e);const t=qy(e,lt);return St.value=t.prefixes.value,ye(t.prefixes,n=>{St.value=n}),t}const Jy=x("p",null," All icons are open source, see each icon set for info about authors and licenses. ",-1),Yy=x("p",null,"The latest icon data and search are provided by Iconify API.",-1),Qy=x("p",{class:"extra-space"},[Pe(" If you like this plugin, please "),x("a",{href:"https://iconify.design/sponsors/",target:"_blank"},"consider supporting the Iconify project"),Pe(". ")],-1),ba=J({__name:"AboutLines",setup(e){return(t,n)=>(m(),w(ie,null,[Jy,Yy,Qy,x("p",null,[Pe(" If you need help with Iconify plugin, support is available "),x("a",{href:"https://iconify.design/support/",target:"_blank",onClick:n[0]||(n[0]=oi(s=>me.value="feedback",["prevent"]))},"via various social media platforms and GitHub"),Pe(". ")])],64))}}),Xy={class:"plugin-content icon-sets"},Zy={class:"plugin-page-header"},ev={key:0},tv={key:1},nv={key:0,class:"if-filters-container"},sv={class:"if-filters-row"},ov={class:"if-icon-sets-reset"},iv={key:0,class:"if-panel if-panel--right"},rv={key:1,class:"plugin-message"},lv=x("p",null," Icon sets filter searches icon set titles, licenses and authors, not icons. ",-1),cv={class:"plugin-message footer dimmed"},av=J({__name:"IconSets",props:{route:{}},setup(e){const t=Ce.convertedIconSetsCache,{prefixes:n,categorisedPrefixes:s,categories:o,tags:i,licenses:r,grids:l,hasActiveFilters:c,canSelectPalette:a,canSelectAttribution:f,canSelectCommercial:d}=Gy(t),h=ri(),p=O(()=>n.value.length),_=O(()=>n.value.reduce((ee,le)=>{var Q;return ee+(((Q=t.info[le])==null?void 0:Q.total)??0)},0)),I=new Set(["prefix","keyword"]),k=O(()=>Tl(Ht,lt,I)),$=z(!1);function C(){$.value=!1,Al(Ht,lt,I)}const{availableLists:b}=ea(),A=O(()=>h.value.list),q=O(()=>{const ee=A.value;return ee?Ue[ee].prefixes.value:[]});function R(ee){const le={type:"icon-sets"};ee&&(le.list=ee),_e.value=le}function F(){const ee=A.value;ee&&(Ue[ee].reset(),R())}const W=z("");function U(ee){_e.value={type:"icon-set",prefix:ee,parent:h.value}}function Y(){const ee=document.querySelector(".if-main-search input.if-input-content");ee==null||ee.focus()}return(ee,le)=>(m(),w("div",Xy,[x("div",Zy,[A.value?(m(),w("div",ev," Showing "+Z(u(Dr)[A.value].toLowerCase())+" icon sets: ",1)):(m(),w("div",tv," Showing "+Z(p.value)+" open source icon set"+Z(p.value!==1?"s":"")+" ("+Z(_.value)+" icons): ",1))]),u(b).length?(m(),w("div",nv,[x("div",sv,[(m(!0),w(ie,null,Ye(u(Ue),(Q,te,V)=>(m(),w(ie,{key:te},[u(b).includes(te)?(m(),K(u(Qt),{key:0,text:(u(Ae).compactWidth?u(xp):u(Dr))[te],selected:A.value===te,icon:te==="favorite"?u(fe).favorite.checked:void 0,onClick:de=>R(te),color:3-V},null,8,["text","selected","icon","onClick","color"])):E("",!0)],64))),128)),L(u(Qt),{text:u(Ip),selected:!A.value,onClick:le[0]||(le[0]=Q=>R())},null,8,["text","selected"])])])):E("",!0),A.value?(m(),w(ie,{key:1},[L(u(pa),{loader:u(Ce),data:u(t),prefixes:q.value,columns:2,compact:!0,selected:W.value,onClick:U},null,8,["loader","data","prefixes","selected"]),x("div",ov,[L(u($e),{class:"large",icon:u(fe).reset,text:u(Cp),onClick:F},null,8,["icon","text"])])],64)):(m(),w(ie,{key:2},[L(u(Qm),{keyword:u(lt).keyword,"onUpdate:keyword":le[1]||(le[1]=Q=>u(lt).keyword=Q),showFilters:$.value,"onUpdate:showFilters":le[2]||(le[2]=Q=>$.value=Q),hasFilters:u(c)},null,8,["keyword","showFilters","hasFilters"]),$.value?(m(),w("div",iv,[L(u(fa),{onReset:C,canReset:k.value,filters:u(lt),categories:u(o),tags:u(i),palette:u(a),licenses:u(r),attribution:u(f),commercial:u(d),grids:u(l)},null,8,["canReset","filters","categories","tags","palette","licenses","attribution","commercial","grids"])])):E("",!0),L(u(Jm),{loader:u(Ce),data:u(t),items:u(s),columns:2,compact:u(Ae).compactWidth,selected:W.value,onClick:U},null,8,["loader","data","items","compact","selected"]),u(n).length?E("",!0):(m(),w("div",rv,[Pe(" No icon sets match your filter. "),lv,x("p",null,[Pe(" If you are trying to search for icons, "),x("a",{href:"#",onClick:oi(Y,["prevent"])},"use the search form"),Pe(" above. ")])])),x("div",cv,[L(ba)])],64))]))}});function uv(e,t){return hi(e.loadConvertedIconSet,t)}function fv(e){const t=z(""),n={categories:null,prefixes:null,suffixes:null},s=tn(n),o=O(()=>Fl(e,t.value)),i=Object.create(null);for(const d in n){const h=d;i[h]=O(()=>{const p=e[h];return p?ya(p):null})}function r(d,h,p){for(const _ in n){const I=_,k=h[I];k!==null&&p!==I&&(d=df(e,I,k,d))}return d}const l=O(d=>{const h=r(o.value,s);return wn(Object.keys(h).sort((p,_)=>p.localeCompare(_)),d)});function c(d){if(t.value.trim()!=="")return!0;for(const h in n){const p=h;if(p!==d&&e[p]&&s[p]!==null)return!0}return!1}const a=O(()=>t.value!==""||Object.keys(s).some(d=>s[d]!==null)),f=Object.create(null);for(const d in n){const h=d;f[h]=O(()=>{if(!e[h])return null;const p=i[h].value;if(p&&c(h)){const _=r(o.value,s,h),I=ff(e,h,_),k=new Set(Array.from(I).map(b=>b.title));let $=!1;const C=p.map(b=>k.has(b.text)?b.visible?b:($=!0,{...b,visible:!0}):($=!0,{...b,visible:!1}));return $?C:p}return p})}return{icons:l,keyword:t,filters:s,hasActiveFilters:a,...f}}function dv(e,t){if(e.keyword&&(t.keyword.value=e.keyword),e.filters)for(const n in e.filters)t.filters[n]=e.filters[n]}function hv(e,t){function n(s){e.index=s,delete e.page}return e.icons=t.value,ye(t,s=>{e.icons=s}),{scroll:n}}const sl=new Map;function gi(e){const t=sl.get(e);if(t)return t;const n=z(!1),s=z([]);function o(c){n.value?s.value.includes(c)?s.value=s.value.filter(a=>a!==c):s.value.push(c):s.value.length===1&&s.value.includes(c)?s.value=[]:s.value=[c]}function i(c){c.forEach(a=>{s.value.includes(a)||s.value.push(a)})}function r(){s.value=[]}const l={multiSelect:n,selectedIcons:s,selectIcon:o,selectIcons:i,resetSelectedIcons:r};return sl.set(e,l),l}function mi(e){const{multiSelect:t,selectedIcons:n,selectIcon:s,selectIcons:o,resetSelectedIcons:i}=gi(e),r=Pt(Object.create(null)),l=O(()=>Object.fromEntries(Object.entries(r.value).filter(([p,_])=>!!_)));function c(p,_){r.value[p]!==void 0&&(r.value={...r.value,[p]:_})}function a(){const p=n.value,_=r.value,I=Object.create(null);let k=!1;const $=[];p.forEach(C=>{if(_[C]!==void 0){I[C]=_[C];return}k=!0;const b=e.getIconData(C);b?I[C]=b:(I[C]=!1,$.push(C))}),Object.keys(_).forEach(C=>{I[C]===void 0&&(k=!0)}),k&&(r.value=I),$.length&&$.forEach(C=>{e.loadIcon(!1,C).then(b=>{c(C,b)}).catch(()=>{c(C,null)})})}a(),ye(n,a,{deep:!0});const f=O(()=>{const p=r.value;return Object.keys(p).filter(I=>p[I]===!1)}),d=O(()=>{const p=n.value;return p.length===1?p[0]:""}),h=O(()=>{const p=d.value;return p?r.value[p]:!1});return{multiSelect:t,selectedIcons:n,selectIcon:s,selectIcons:o,resetSelectedIcons:i,loadingIcons:f,selectedIconsData:r,filteredSelectedIconsData:l,singleIconName:d,singleIconData:h}}function yi(){const e=z(10),t=O(()=>({height:Ae.compactWidth?32:48,padding:4,gap:0}));return{gridColumns:e,gridLayout:t}}const ol="#000";function vi(e,t){const n=[];let s=ol,o,i=!1;if(t.changeColor){const l=et.value;if(l)if(typeof l=="string")s=l;else{const c=wt.value.find(a=>a.id===l.id);c&&(o=c.id,s=c.color)}}const r=t.forceSize||t.changeSize&&xt.value||void 0;for(const l in e){const c=e[l];if(!c)continue;const a=r||Ml([c.height||16]).size,f=Xc(c.body)||c.body,{attributes:d}=Pu(c,{height:a}),h=f.includes("currentColor"),p=Lu(f.replace(/currentColor/g,s),d);i=i||h,n.push({name:l,content:p,width:parseInt(d.width),height:a,monotone:h})}return i&&(o?To(ft+o):s!==ol&&To(s)),{source:"iconify",icons:n,props:{color:s,style:o,size:r},route:me.value?void 0:_e.value}}let cn=null;function bi(e,t,n){const s=t.target;if(s.classList.toggle("dragging",e),!e){if(!cn)return;const o=cn;if(cn=null,t.screenX>o.min.x&&t.screenXo.min.y&&t.screenY(m(),K(u(Ee),{text:"Select multiple icons to import",class:"right bottom"},{default:ue(()=>[L(u(Lg),{value:u(t),"onUpdate:value":s[0]||(s[0]=o=>Fe(t)?t.value=o:null),text:u(Ae).compactWidth?"Multiple":"Select Multiple Icons"},null,8,["value","text"])]),_:1}))}}),pv={key:0,class:"if-icon-set-footer-controls"},gv={class:"if-tooltip"},ki=J({__name:"PaginationMultiSelect",props:{range:{},selectVisibleIcons:{type:Function}},setup(e){const{multiSelect:t,selectedIcons:n,resetSelectedIcons:s}=gi(Ce);return(o,i)=>u(t)||u(n).length>1?(m(),w("div",pv,[x("div",{class:re(["if-tooltip-wrapper bottom",[!u(n).length&&"empty"]])},[x("div",null,Z((u(Wr)[u(n).length]??u(Wr)[2]).replace("{n}",`${u(n).length}`)),1),x("div",gv,Z(u(n).slice(0,30).join(` `))+" "+Z(u(n).length>30?` -...`:""),1)],2),x("div",null,[L(u($e),{class:"pretty",icon:u(fe).selectNone||u(fe).reset,text:u(ag),color:6,disabled:!u(n).length,onClick:u(s)},null,8,["icon","text","disabled","onClick"]),u(n)&&o.range.pages>0?(m(),K(u($e),{key:0,class:"pretty",icon:u(fe).checkbox.checked,text:o.range.pages===1?u(lg):u(cg),color:2,onClick:o.selectVisibleIcons},null,8,["icon","text","onClick"])):E("",!0)])])):E("",!0)}});function mv(e,t){const n=We.value.iconNode;if(n){const s=vi({[e]:t},{changeColor:!0,forceSize:n.height});ze({type:"ui:replace-icon",node:n.id,data:s})}}function yv(e,t,n){const s=Tn.value||We.value.defaultNode,o=vi(e,{changeColor:!0,changeSize:!0});ze({type:"ui:import-icons",node:s,data:o,component:n})}const vv=x("dt",null,"Import to:",-1),bv={class:"plugin-target-layer"},_v=J({__name:"FooterNodes",setup(e){const t=O(()=>Tn.value||We.value.defaultNode),n=O(()=>We.value.defaultNode),s=O(()=>{const l=t.value,c=We.value.nodes.find(a=>a.id===l);return c?mo[c.type]:""}),o=O(()=>We.value.nodes.filter(l=>!l.icon).map(l=>({type:"option",value:l.id,text:l.name,icon:mo[l.type],iconStyle:`padding-left: ${(l.depth||0)*4}px`})));function i(l){const c=We.value.nodes.find(a=>a.id===l);return c?c.name:l||""}function r(l){Tn.value=l}return(l,c)=>u(We).nodes.length>1?(m(),w(ie,{key:0},[vv,x("dd",bv,[L(u(Ee),{text:"Layer to import icon(s) to"},{default:ue(()=>[L(u(Fg),{icon:s.value,value:t.value,"onUpdate:value":r,defaultValue:n.value,options:o.value,textForValue:i,bottom:""},null,8,["icon","value","defaultValue","options"])]),_:1})])],64)):E("",!0)}}),kv={class:"if-selected-icon-customisations"},wv={key:0,class:"if-notices-item info relative"},xv={class:"if-form-container"},Iv=["icon"],Cv=["value"],Sv={class:"if-selected-icon-buttons"},$v=["href"],Ov=["icon"],wi=J({__name:"Footer",props:{icons:{}},setup(e){const t=e,n=O(()=>{const $=t.icons;let C=!1,b=0,A=!1;const q=[],R=new Set,F=new Set,W=Object.create(null);for(const Y in $){const ee=$[Y];if(q.push(Y),F.add(Y.split(":")[0]),!ee){b++,W[Y]=null;continue}R.add(ee.height??16);const le=Xc(ee.body);le?(A=!0,W[Y]={...ee,body:le}):W[Y]=ee,ee.body.includes("currentColor")&&(C=!0)}const U=Ml(Array.from(R));return{data:W,length:q.length,names:q,prefixes:F,pending:b,hasCurrentColor:C,removedAnimations:A,sizeOptions:U}}),{colorValue:s,colorPickerColor:o,colorInputIcon:i,updateInput:r,colorStyleOptions:l,recentColors:c}=gy(),a=O(()=>{const $=[],C=c.value;C.length&&($.push({type:"section",section:"Recently used colors:"}),$.push({type:"colors",colors:C}));const b=l.value;return b.length&&($.push({type:"section",section:"Color styles:"}),$.push({type:"colors",colors:b})),$.push({type:"section",section:"FigJam colors:"}),$.push({type:"colors",colors:hy}),$}),f=z();function d(){f.value&&f.value.showPicker()}function h($){et.value=$}const p=O(()=>{const $=n.value.length;return $>1?`Import ${$} icons`:"Import icon"}),_=O(()=>n.value.length>1?"s":"");function I(){const $=n.value,C=$.names[0],b=$.data[C];b&&mv(C,b)}function k($){yv(n.value.data,{color:s.value,size:xt.value||void 0},$)}return($,C)=>(m(),w("div",{class:re(["if-selected-icon",[n.value.length>1&&"if-selected-icon--multiple"]])},[L(u(dy),{data:n.value.data},null,8,["data"]),x("div",kv,[n.value.removedAnimations?(m(),w("div",wv," Figma does not support SVG animations. Animations were removed. ")):E("",!0),x("div",xv,[x("dl",null,[x("dt",null," Size"+Z(n.value.hasCurrentColor?" and color":"")+": ",1),x("dd",null,[L(u(Ee),{text:"Icon height"},{default:ue(()=>[L(u(Bg),En({bottom:!0,value:u(xt),"onUpdate:value":C[0]||(C[0]=b=>Le(xt)?xt.value=b:null)},n.value.sizeOptions),null,16,["value"])]),_:1}),n.value.hasCurrentColor?(m(),K(u(Ee),{key:0,class:"if-input--color",text:"Change icon color"},{default:ue(()=>[L(u(nn),{bottom:!0,value:u(i).value,"onUpdate:value":u(r),icon:u(i).icon,iconStyle:u(i).style,class:"fixed-width tiny",options:a.value},{dropdown:ue(()=>[x("button",{class:"if-dropdown-option if-dropdown-option--color",onClick:d},[x("iconify-icon",{icon:u(fe).expand},null,8,Iv),x("span",null,Z(u(rg)),1),x("input",{type:"color",ref_key:"colorPickerNode",ref:f,tabindex:"-1",value:u(o),onInput:C[1]||(C[1]=b=>h(b.target.value))},null,40,Cv)])]),_:1},8,["value","onUpdate:value","icon","iconStyle","options"])]),_:1})):E("",!0)]),L(_v)])])]),x("div",Sv,[n.value.length===1&&u(We).iconNode?(m(),K(u(Ee),{key:0,text:`Replace ${u(We).iconNode.name} +...`:""),1)],2),x("div",null,[L(u($e),{class:"pretty",icon:u(fe).selectNone||u(fe).reset,text:u(ag),color:6,disabled:!u(n).length,onClick:u(s)},null,8,["icon","text","disabled","onClick"]),u(n)&&o.range.pages>0?(m(),K(u($e),{key:0,class:"pretty",icon:u(fe).checkbox.checked,text:o.range.pages===1?u(lg):u(cg),color:2,onClick:o.selectVisibleIcons},null,8,["icon","text","onClick"])):E("",!0)])])):E("",!0)}});function mv(e,t){const n=We.value.iconNode;if(n){const s=vi({[e]:t},{changeColor:!0,forceSize:n.height});ze({type:"ui:replace-icon",node:n.id,data:s})}}function yv(e,t,n){const s=Tn.value||We.value.defaultNode,o=vi(e,{changeColor:!0,changeSize:!0});ze({type:"ui:import-icons",node:s,data:o,component:n})}const vv=x("dt",null,"Import to:",-1),bv={class:"plugin-target-layer"},_v=J({__name:"FooterNodes",setup(e){const t=O(()=>Tn.value||We.value.defaultNode),n=O(()=>We.value.defaultNode),s=O(()=>{const l=t.value,c=We.value.nodes.find(a=>a.id===l);return c?mo[c.type]:""}),o=O(()=>We.value.nodes.filter(l=>!l.icon).map(l=>({type:"option",value:l.id,text:l.name,icon:mo[l.type],iconStyle:`padding-left: ${(l.depth||0)*4}px`})));function i(l){const c=We.value.nodes.find(a=>a.id===l);return c?c.name:l||""}function r(l){Tn.value=l}return(l,c)=>u(We).nodes.length>1?(m(),w(ie,{key:0},[vv,x("dd",bv,[L(u(Ee),{text:"Layer to import icon(s) to"},{default:ue(()=>[L(u(Fg),{icon:s.value,value:t.value,"onUpdate:value":r,defaultValue:n.value,options:o.value,textForValue:i,bottom:""},null,8,["icon","value","defaultValue","options"])]),_:1})])],64)):E("",!0)}}),kv={class:"if-selected-icon-customisations"},wv={key:0,class:"if-notices-item info relative"},xv={class:"if-form-container"},Iv=["icon"],Cv=["value"],Sv={class:"if-selected-icon-buttons"},$v=["href"],Ov=["icon"],wi=J({__name:"Footer",props:{icons:{}},setup(e){const t=e,n=O(()=>{const $=t.icons;let C=!1,b=0,A=!1;const q=[],R=new Set,F=new Set,W=Object.create(null);for(const Y in $){const ee=$[Y];if(q.push(Y),F.add(Y.split(":")[0]),!ee){b++,W[Y]=null;continue}R.add(ee.height??16);const le=Xc(ee.body);le?(A=!0,W[Y]={...ee,body:le}):W[Y]=ee,ee.body.includes("currentColor")&&(C=!0)}const U=Ml(Array.from(R));return{data:W,length:q.length,names:q,prefixes:F,pending:b,hasCurrentColor:C,removedAnimations:A,sizeOptions:U}}),{colorValue:s,colorPickerColor:o,colorInputIcon:i,updateInput:r,colorStyleOptions:l,recentColors:c}=gy(),a=O(()=>{const $=[],C=c.value;C.length&&($.push({type:"section",section:"Recently used colors:"}),$.push({type:"colors",colors:C}));const b=l.value;return b.length&&($.push({type:"section",section:"Color styles:"}),$.push({type:"colors",colors:b})),$.push({type:"section",section:"FigJam colors:"}),$.push({type:"colors",colors:hy}),$}),f=z();function d(){f.value&&f.value.showPicker()}function h($){et.value=$}const p=O(()=>{const $=n.value.length;return $>1?`Import ${$} icons`:"Import icon"}),_=O(()=>n.value.length>1?"s":"");function I(){const $=n.value,C=$.names[0],b=$.data[C];b&&mv(C,b)}function k($){yv(n.value.data,{color:s.value,size:xt.value||void 0},$)}return($,C)=>(m(),w("div",{class:re(["if-selected-icon",[n.value.length>1&&"if-selected-icon--multiple"]])},[L(u(dy),{data:n.value.data},null,8,["data"]),x("div",kv,[n.value.removedAnimations?(m(),w("div",wv," Figma does not support SVG animations. Animations were removed. ")):E("",!0),x("div",xv,[x("dl",null,[x("dt",null," Size"+Z(n.value.hasCurrentColor?" and color":"")+": ",1),x("dd",null,[L(u(Ee),{text:"Icon height"},{default:ue(()=>[L(u(Bg),En({bottom:!0,value:u(xt),"onUpdate:value":C[0]||(C[0]=b=>Fe(xt)?xt.value=b:null)},n.value.sizeOptions),null,16,["value"])]),_:1}),n.value.hasCurrentColor?(m(),K(u(Ee),{key:0,class:"if-input--color",text:"Change icon color"},{default:ue(()=>[L(u(nn),{bottom:!0,value:u(i).value,"onUpdate:value":u(r),icon:u(i).icon,iconStyle:u(i).style,class:"fixed-width tiny",options:a.value},{dropdown:ue(()=>[x("button",{class:"if-dropdown-option if-dropdown-option--color",onClick:d},[x("iconify-icon",{icon:u(fe).expand},null,8,Iv),x("span",null,Z(u(rg)),1),x("input",{type:"color",ref_key:"colorPickerNode",ref:f,tabindex:"-1",value:u(o),onInput:C[1]||(C[1]=b=>h(b.target.value))},null,40,Cv)])]),_:1},8,["value","onUpdate:value","icon","iconStyle","options"])]),_:1})):E("",!0)]),L(_v)])])]),x("div",Sv,[n.value.length===1&&u(We).iconNode?(m(),K(u(Ee),{key:0,text:`Replace ${u(We).iconNode.name} Note: size and color are -reused from current icon`},{default:ue(()=>[n.value.length===1&&u(We).iconNode?(m(),K(u($e),{key:0,text:"Replace",icon:u(mo)[u(We).iconNode.type],onClick:I},null,8,["icon"])):E("",!0)]),_:1},8,["text"])):E("",!0),L(u(Ee),{text:`${p.value} as frame${_.value}`},{default:ue(()=>[L(u($e),{text:"Import",selected:!0,icon:u(jl),onClick:C[2]||(C[2]=b=>k(!1))},null,8,["icon"])]),_:1},8,["text"]),L(u(Ee),{text:`${p.value} as component${_.value}`},{default:ue(()=>[L(u($e),{text:"Import",icon:u(Bl),onClick:C[3]||(C[3]=b=>k(!0))},null,8,["icon"])]),_:1},8,["text"]),L(u(Ee),{text:"Icon code and more customisation options"},{default:ue(()=>[n.value.length===1?(m(),w("a",{key:0,class:"if-button",target:"_blank",href:"https://iconify.design/icon-sets/"+n.value.names[0].replace(":","/")+"/"},[x("iconify-icon",{icon:u(Lf)},null,8,Ov)],8,$v)):E("",!0)]),_:1})])],2))}}),Mv={class:"plugin-icons-header"},Tv={key:0,class:"plugin-grid-footer"},Av=J({__name:"Render",props:{route:{},data:{}},setup(e){var le;const{route:t,data:n}=e,s=t.prefix,o=Ce.convertedIconSetsCache,{gridColumns:i,gridLayout:r}=yi(),l=n.info??o.info[s],{keyword:c,icons:a,categories:f,prefixes:d,suffixes:h,filters:p}=fv(n);(le=t.parent)!=null&&le.list||Ue.recent.add(s),dv(t,{keyword:c,filters:p});const{scroll:_}=hv(t,a),I=z({start:0,end:n.total,pages:1});function k(Q,te,V){I.value={start:Q,end:te,pages:V}}const{multiSelect:$,selectedIcons:C,selectedIconsData:b,selectIcon:A,selectIcons:q}=mi(Ce),R=O(()=>C.value.map(Q=>{const te=Q.split(":");return te[0]===s?te[1]:""}).filter(Q=>Q!==""));function F(){const{start:Q,end:te}=I.value;q(a.value.slice(Q,te).map(V=>`${s}:${V}`))}function W(Q){A(`${s}:${Q}`)}const U=z(!1);let Y;if(at.value){const Q=at.value;at.value=null,A(Q);const te=Q.split(":");if(te[0]===s){const V=a.value.indexOf(te[1]);V>0&&(Y=V)}}function ee(Q,te,V){const de=`${s}:${te}`,ce=Ce.getIconData(de);if(!ce){Q.preventDefault();return}bi(V,Q,{[de]:ce})}return(Q,te)=>(m(),w("div",{class:re(["plugin-content icons",u(Fe).compactWidth&&"compact"])},[x("div",Mv,[L(u(ty),{prefix:u(s),info:u(l),favorite:U.value,"onUpdate:favorite":te[0]||(te[0]=V=>U.value=V),canToggleFavorite:!0},null,8,["prefix","info","favorite"]),L(u(ay),{filters:u(p),categories:u(f),prefixes:u(d),suffixes:u(h),keyword:u(c),"onUpdate:keyword":te[1]||(te[1]=V=>Le(c)?c.value=V:null)},null,8,["filters","categories","prefixes","suffixes","keyword"])]),L(u(di),{columns:u(i),items:u(a),layout:u(r),paginationText:u(a).length===1?u(ai):u(ci),emptyPaginationText:u(ui),hasPaginationSlot:!0,startIndex:u(Y),onRange:k,onScroll:u(_)},{default:ue(V=>{var de;return[(m(),K(u(pi),{key:V.item,loader:u(Ce),prefix:u(s),name:V.item,align:V.align,side:V.side,iconSetData:Q.data,iconSetInfo:u(l),hidden:(de=Q.data.items[Q.data.map[V.item]])==null?void 0:de.hidden,selected:R.value.includes(V.item),selecting:u($),onClick:ce=>W(V.item),draggable:!0,onDragstart:ce=>ee(ce,V.item,!0),onDragend:ce=>ee(ce,V.item,!1)},null,8,["loader","prefix","name","align","side","iconSetData","iconSetInfo","hidden","selected","selecting","onClick","onDragstart","onDragend"]))]}),pagination:ue(()=>[L(_i)]),afterPagination:ue(()=>[u($)||u(C).length?(m(),w("div",Tv,[u($)||u(C).length>1?(m(),K(ki,{key:0,range:I.value,selectVisibleIcons:F},null,8,["range"])):E("",!0),u(C).length?(m(),K(wi,{key:1,icons:u(b)},null,8,["icons"])):E("",!0)])):E("",!0)]),_:1},8,["columns","items","layout","paginationText","emptyPaginationText","startIndex","onScroll"])],2))}}),Pv={key:0,class:"plugin-content placeholder"},Lv=J({__name:"Loader",props:{route:{}},setup(e){const{route:t}=e,n=uv(Ce,t.prefix);return(s,o)=>u(n)?(m(),K(Av,{key:1,route:s.route,data:u(n)},null,8,["route","data"])):(m(),w("div",Pv,Z(u(n)===null?u(sa):u(na)),1))}});function Fv(e,t){return hi(e.loadSearch,t,void 0)}function _a(e,t){const n=er(ct(t)),s=z(n.icons),o=z(n.prefixes);ye(()=>t,f=>{const d=er(ct(f));s.value=wn(d.icons,s.value);const h=wn(d.prefixes,o.value);o.value=h},{deep:!0});const i=O(()=>Object.keys(s.value)),r=qc(),l=va(e,o,o,r),c=O(()=>{const f=s.value,d=i.value,h=new Set(l.prefixes.value);return d.filter(_=>h.has(f[_].prefix))}),a=O(()=>{const f=s.value,d=c.value;return Object.fromEntries(d.map(h=>[h,f[h]]))});return{allPrefixes:o,...l,icons:a,iconNames:c}}const Ev={class:"plugin-icons-header"},Rv={key:0,class:"if-panel if-panel--right"},Nv={key:0,class:"plugin-grid-footer"},jv=J({__name:"Render",props:{route:{},data:{}},setup(e){const{data:t}=e,n=Ce.convertedIconSetsCache,{gridColumns:s,gridLayout:o}=yi(),{icons:i,iconNames:r,filters:l,categories:c,licenses:a,grids:f,tags:d,prefixFilters:h,canSelectPalette:p,canSelectCommercial:_,canSelectAttribution:I,hasActiveFilters:k}=_a(n,t.icons);ks.value=!!h.value,ye(k,le=>{ws.value=le});function $(){Al(Ht,l)}const C=z({start:0,end:r.value.length,pages:1});function b(le,Q,te){C.value={start:le,end:Q,pages:te}}const{multiSelect:A,selectedIcons:q,selectedIconsData:R,selectIcon:F,selectIcons:W}=mi(Ce);function U(){const{start:le,end:Q}=C.value;W(r.value.slice(le,Q))}let Y;if(at.value){const le=at.value;at.value=null,F(le);const Q=r.value.indexOf(le);Q>0&&(Y=Q)}function ee(le,Q,te){const V=Ce.getIconData(Q);if(!V){le.preventDefault();return}bi(te,le,{[Q]:V})}return(le,Q)=>(m(),w("div",{class:re(["plugin-content icons",u(Fe).compactWidth&&"compact"])},[x("div",Ev,[u(h)&&u(Nt)?(m(),w("div",Rv,[L(u(fa),{onReset:$,canReset:u(k),filters:u(l),prefixes:u(h),categories:u(c),tags:u(d),palette:u(p),licenses:u(a),attribution:u(I),commercial:u(_),grids:u(f)},null,8,["canReset","filters","prefixes","categories","tags","palette","licenses","attribution","commercial","grids"])])):E("",!0)]),L(u(di),{columns:u(s),items:u(r),layout:u(o),paginationText:u(r).length===1?u(ai):u(ci),emptyPaginationText:u(ui),hasPaginationSlot:!0,startIndex:u(Y),onRange:b},{default:ue(te=>[(m(),K(u(pi),{key:te.item,loader:u(Ce),prefix:u(i)[te.item].prefix,name:u(i)[te.item].name,align:te.align,side:te.side,iconSetInfo:u(n).info[u(i)[te.item].prefix],selected:u(q).includes(te.item),selecting:u(A),onClick:V=>u(F)(te.item),draggable:!0,onDragstart:V=>ee(V,te.item,!0),onDragend:V=>ee(V,te.item,!1)},null,8,["loader","prefix","name","align","side","iconSetInfo","selected","selecting","onClick","onDragstart","onDragend"]))]),pagination:ue(()=>[L(_i)]),afterPagination:ue(()=>[u(A)||u(q).length?(m(),w("div",Nv,[u(A)||u(q).length>1?(m(),K(ki,{key:0,range:C.value,selectVisibleIcons:U},null,8,["range"])):E("",!0),u(q).length?(m(),K(wi,{key:1,icons:u(R)},null,8,["icons"])):E("",!0)])):E("",!0)]),_:1},8,["columns","items","layout","paginationText","emptyPaginationText","startIndex"])],2))}}),Bv={key:0,class:"plugin-content placeholder"},Dv=J({__name:"Loader",props:{route:{}},setup(e){const{route:t}=e;ks.value=!1,Nt.value=!1,ws.value=!1;const n=Fv(Ce,t);return(s,o)=>u(n)?(m(),K(jv,{key:1,route:s.route,data:u(n)},null,8,["route","data"])):(m(),w("div",Bv,Z(u(n)===null?u(sa):u(na)),1))}});function Hv(){const e=Ao.value;return e==="figjam"?"FigJam":e.slice(0,1).toUpperCase()+e.slice(1)}const zv=()=>` +reused from current icon`},{default:ue(()=>[n.value.length===1&&u(We).iconNode?(m(),K(u($e),{key:0,text:"Replace",icon:u(mo)[u(We).iconNode.type],onClick:I},null,8,["icon"])):E("",!0)]),_:1},8,["text"])):E("",!0),L(u(Ee),{text:`${p.value} as frame${_.value}`},{default:ue(()=>[L(u($e),{text:"Import",selected:!0,icon:u(jl),onClick:C[2]||(C[2]=b=>k(!1))},null,8,["icon"])]),_:1},8,["text"]),L(u(Ee),{text:`${p.value} as component${_.value}`},{default:ue(()=>[L(u($e),{text:"Import",icon:u(Bl),onClick:C[3]||(C[3]=b=>k(!0))},null,8,["icon"])]),_:1},8,["text"]),L(u(Ee),{text:"Icon code and more customisation options"},{default:ue(()=>[n.value.length===1?(m(),w("a",{key:0,class:"if-button",target:"_blank",href:"https://iconify.design/icon-sets/"+n.value.names[0].replace(":","/")+"/"},[x("iconify-icon",{icon:u(Lf)},null,8,Ov)],8,$v)):E("",!0)]),_:1})])],2))}}),Mv={class:"plugin-icons-header"},Tv={key:0,class:"plugin-grid-footer"},Av=J({__name:"Render",props:{route:{},data:{}},setup(e){var le;const{route:t,data:n}=e,s=t.prefix,o=Ce.convertedIconSetsCache,{gridColumns:i,gridLayout:r}=yi(),l=n.info??o.info[s],{keyword:c,icons:a,categories:f,prefixes:d,suffixes:h,filters:p}=fv(n);(le=t.parent)!=null&&le.list||Ue.recent.add(s),dv(t,{keyword:c,filters:p});const{scroll:_}=hv(t,a),I=z({start:0,end:n.total,pages:1});function k(Q,te,V){I.value={start:Q,end:te,pages:V}}const{multiSelect:$,selectedIcons:C,selectedIconsData:b,selectIcon:A,selectIcons:q}=mi(Ce),R=O(()=>C.value.map(Q=>{const te=Q.split(":");return te[0]===s?te[1]:""}).filter(Q=>Q!==""));function F(){const{start:Q,end:te}=I.value;q(a.value.slice(Q,te).map(V=>`${s}:${V}`))}function W(Q){A(`${s}:${Q}`)}const U=z(!1);let Y;if(at.value){const Q=at.value;at.value=null,A(Q);const te=Q.split(":");if(te[0]===s){const V=a.value.indexOf(te[1]);V>0&&(Y=V)}}function ee(Q,te,V){const de=`${s}:${te}`,ce=Ce.getIconData(de);if(!ce){Q.preventDefault();return}bi(V,Q,{[de]:ce})}return(Q,te)=>(m(),w("div",{class:re(["plugin-content icons",u(Ae).compactWidth&&"compact"])},[x("div",Mv,[L(u(ty),{prefix:u(s),info:u(l),favorite:U.value,"onUpdate:favorite":te[0]||(te[0]=V=>U.value=V),canToggleFavorite:!0},null,8,["prefix","info","favorite"]),L(u(ay),{filters:u(p),categories:u(f),prefixes:u(d),suffixes:u(h),keyword:u(c),"onUpdate:keyword":te[1]||(te[1]=V=>Fe(c)?c.value=V:null)},null,8,["filters","categories","prefixes","suffixes","keyword"])]),L(u(di),{columns:u(i),items:u(a),layout:u(r),paginationText:u(a).length===1?u(ai):u(ci),emptyPaginationText:u(ui),hasPaginationSlot:!0,startIndex:u(Y),onRange:k,onScroll:u(_)},{default:ue(V=>{var de;return[(m(),K(u(pi),{key:V.item,loader:u(Ce),prefix:u(s),name:V.item,align:V.align,side:V.side,iconSetData:Q.data,iconSetInfo:u(l),hidden:(de=Q.data.items[Q.data.map[V.item]])==null?void 0:de.hidden,selected:R.value.includes(V.item),selecting:u($),onClick:ce=>W(V.item),draggable:!0,onDragstart:ce=>ee(ce,V.item,!0),onDragend:ce=>ee(ce,V.item,!1)},null,8,["loader","prefix","name","align","side","iconSetData","iconSetInfo","hidden","selected","selecting","onClick","onDragstart","onDragend"]))]}),pagination:ue(()=>[L(_i)]),afterPagination:ue(()=>[u($)||u(C).length?(m(),w("div",Tv,[u($)||u(C).length>1?(m(),K(ki,{key:0,range:I.value,selectVisibleIcons:F},null,8,["range"])):E("",!0),u(C).length?(m(),K(wi,{key:1,icons:u(b)},null,8,["icons"])):E("",!0)])):E("",!0)]),_:1},8,["columns","items","layout","paginationText","emptyPaginationText","startIndex","onScroll"])],2))}}),Pv={key:0,class:"plugin-content placeholder"},Lv=J({__name:"Loader",props:{route:{}},setup(e){const{route:t}=e,n=uv(Ce,t.prefix);return(s,o)=>u(n)?(m(),K(Av,{key:1,route:s.route,data:u(n)},null,8,["route","data"])):(m(),w("div",Pv,Z(u(n)===null?u(sa):u(na)),1))}});function Fv(e,t){return hi(e.loadSearch,t,void 0)}function _a(e,t){const n=er(ct(t)),s=z(n.icons),o=z(n.prefixes);ye(()=>t,f=>{const d=er(ct(f));s.value=wn(d.icons,s.value);const h=wn(d.prefixes,o.value);o.value=h},{deep:!0});const i=O(()=>Object.keys(s.value)),r=qc(),l=va(e,o,o,r),c=O(()=>{const f=s.value,d=i.value,h=new Set(l.prefixes.value);return d.filter(_=>h.has(f[_].prefix))}),a=O(()=>{const f=s.value,d=c.value;return Object.fromEntries(d.map(h=>[h,f[h]]))});return{allPrefixes:o,...l,icons:a,iconNames:c}}const Ev={class:"plugin-icons-header"},Rv={key:0,class:"if-panel if-panel--right"},Nv={key:0,class:"plugin-grid-footer"},jv=J({__name:"Render",props:{route:{},data:{}},setup(e){const{data:t}=e,n=Ce.convertedIconSetsCache,{gridColumns:s,gridLayout:o}=yi(),{icons:i,iconNames:r,filters:l,categories:c,licenses:a,grids:f,tags:d,prefixFilters:h,canSelectPalette:p,canSelectCommercial:_,canSelectAttribution:I,hasActiveFilters:k}=_a(n,t.icons);ks.value=!!h.value,ye(k,le=>{ws.value=le});function $(){Al(Ht,l)}const C=z({start:0,end:r.value.length,pages:1});function b(le,Q,te){C.value={start:le,end:Q,pages:te}}const{multiSelect:A,selectedIcons:q,selectedIconsData:R,selectIcon:F,selectIcons:W}=mi(Ce);function U(){const{start:le,end:Q}=C.value;W(r.value.slice(le,Q))}let Y;if(at.value){const le=at.value;at.value=null,F(le);const Q=r.value.indexOf(le);Q>0&&(Y=Q)}function ee(le,Q,te){const V=Ce.getIconData(Q);if(!V){le.preventDefault();return}bi(te,le,{[Q]:V})}return(le,Q)=>(m(),w("div",{class:re(["plugin-content icons",u(Ae).compactWidth&&"compact"])},[x("div",Ev,[u(h)&&u(Nt)?(m(),w("div",Rv,[L(u(fa),{onReset:$,canReset:u(k),filters:u(l),prefixes:u(h),categories:u(c),tags:u(d),palette:u(p),licenses:u(a),attribution:u(I),commercial:u(_),grids:u(f)},null,8,["canReset","filters","prefixes","categories","tags","palette","licenses","attribution","commercial","grids"])])):E("",!0)]),L(u(di),{columns:u(s),items:u(r),layout:u(o),paginationText:u(r).length===1?u(ai):u(ci),emptyPaginationText:u(ui),hasPaginationSlot:!0,startIndex:u(Y),onRange:b},{default:ue(te=>[(m(),K(u(pi),{key:te.item,loader:u(Ce),prefix:u(i)[te.item].prefix,name:u(i)[te.item].name,align:te.align,side:te.side,iconSetInfo:u(n).info[u(i)[te.item].prefix],selected:u(q).includes(te.item),selecting:u(A),onClick:V=>u(F)(te.item),draggable:!0,onDragstart:V=>ee(V,te.item,!0),onDragend:V=>ee(V,te.item,!1)},null,8,["loader","prefix","name","align","side","iconSetInfo","selected","selecting","onClick","onDragstart","onDragend"]))]),pagination:ue(()=>[L(_i)]),afterPagination:ue(()=>[u(A)||u(q).length?(m(),w("div",Nv,[u(A)||u(q).length>1?(m(),K(ki,{key:0,range:C.value,selectVisibleIcons:U},null,8,["range"])):E("",!0),u(q).length?(m(),K(wi,{key:1,icons:u(R)},null,8,["icons"])):E("",!0)])):E("",!0)]),_:1},8,["columns","items","layout","paginationText","emptyPaginationText","startIndex"])],2))}}),Bv={key:0,class:"plugin-content placeholder"},Dv=J({__name:"Loader",props:{route:{}},setup(e){const{route:t}=e;ks.value=!1,Nt.value=!1,ws.value=!1;const n=Fv(Ce,t);return(s,o)=>u(n)?(m(),K(jv,{key:1,route:s.route,data:u(n)},null,8,["route","data"])):(m(),w("div",Bv,Z(u(n)===null?u(sa):u(na)),1))}});function Hv(){const e=Ao.value;return e==="figjam"?"FigJam":e.slice(0,1).toUpperCase()+e.slice(1)}const zv=()=>` Drag icon to ${Hv()} or -click icon for more options...`,Uv={class:"plugin-icons-header recent"},Vv={class:"plugin-recent-reset"},Kv=x("div",{class:"plugin-page-title"},"Recently imported icons:",-1),Wv={key:0,class:"plugin-grid-footer"},qv=J({__name:"RecentIcons",setup(e){const t=Ce.convertedIconSetsCache,{gridColumns:n,gridLayout:s}=yi(),{icons:o,iconNames:i}=_a(t,Yt);ye(Yt,$=>{$.length||(me.value="")});const r=z({start:0,end:i.value.length,pages:1});function l($,C,b){r.value={start:$,end:C,pages:b}}const{multiSelect:c,selectedIcons:a,selectedIconsData:f,selectIcon:d,selectIcons:h}=mi(Ce);function p(){const{start:$,end:C}=r.value;h(i.value.slice($,C))}let _;if(at.value){const $=at.value;at.value=null,d($);const C=i.value.indexOf($);C>0&&(_=C)}function I($,C,b){const A=Ce.getIconData(C);if(!A){$.preventDefault();return}bi(b,$,{[C]:A})}function k(){Yt.value=[],ze({type:"ui:reset-recent-icons"})}return($,C)=>(m(),w("div",{class:re(["plugin-content icons",u(Fe).compactWidth&&"compact"])},[x("div",Uv,[x("div",Vv,[L(u($e),{class:"large",icon:u(fe).reset,text:"Clear recent icons list",onClick:k},null,8,["icon"])]),Kv]),L(u(di),{columns:u(n),items:u(i),layout:u(s),paginationText:u(i).length===1?u(ai):u(ci),emptyPaginationText:u(ui),hasPaginationSlot:!0,startIndex:u(_),onRange:l},{default:ue(b=>[(m(),K(u(pi),{key:b.item,loader:u(Ce),prefix:u(o)[b.item].prefix,name:u(o)[b.item].name,align:b.align,side:b.side,iconSetInfo:u(t).info[u(o)[b.item].prefix],selected:u(a).includes(b.item),selecting:u(c),afterHint:u(zv)(),onClick:A=>u(d)(b.item),draggable:!0,onDragstart:A=>I(A,b.item,!0),onDragend:A=>I(A,b.item,!1)},null,8,["loader","prefix","name","align","side","iconSetInfo","selected","selecting","afterHint","onClick","onDragstart","onDragend"]))]),pagination:ue(()=>[L(_i)]),afterPagination:ue(()=>[u(c)||u(a).length?(m(),w("div",Wv,[u(c)||u(a).length>1?(m(),K(ki,{key:0,range:r.value,selectVisibleIcons:p},null,8,["range"])):E("",!0),u(a).length?(m(),K(wi,{key:1,icons:u(f)},null,8,["icons"])):E("",!0)])):E("",!0)]),_:1},8,["columns","items","layout","paginationText","emptyPaginationText","startIndex"])],2))}}),Gv={class:"plugin-content page"},Jv=Uc('

What's new in Iconify plugin

Welcome to the new redesigned plugin.

Plugin was rewritten from scratch. Everything is new.

See blog post about plugin update.

New features

  • New compact UI, which takes less space.
  • Tooltips everywhere. To show more information in limited space, most UI elements use tooltips.
  • Detailed license information for icon sets and icons. You can see which icons can be used in commercial applications and require attribution.
  • Advanced filters. You can filter icon sets by license, grid, palette.
  • Infinite scrolling for icon lists. No more pagination.
  • Support for color styles. You can select color styles in color picker. Due to Figma limitations, the plugin can see only local styles. However, styles shared from other documents are visible to the plugin if you select a layer that uses that style.
  • Improved drag and drop. Drop is now more precise, however, there are some limitations: cannot drop to component instances or locked layers. Dropping to group with auto-layout will import the icon as the first node, not necessary where you drop it.
  • When replacing an icon, the new icon will keep the old icon's size and paint.
  • Option to select all visible icons, which you can batch import.
',2),Yv=x("h1",null,"Old version / Feedback",-1),Qv=x("p",null,[Ae(" If you prefer the previous version of the plugin, it is "),x("a",{href:"https://github.com/iconify/iconify-figma/tree/archive/v3-dist",target:"_blank"},"available on GitHub"),Ae(". ")],-1),Xv=x("p",null,"See readme for installation instructions.",-1),Zv=J({__name:"V4",setup(e){function t(n){me.value=n}return(n,s)=>(m(),w("div",Gv,[Jv,x("section",null,[Yv,Qv,Xv,x("p",null,[Ae(" Better yet, please "),x("a",{href:"#",onClick:s[0]||(s[0]=oi(o=>t("feedback"),["prevent"]))},"send your feedback"),Ae(". Please tell me why you prefer the older version, maybe your concern could be addressed in the new version. ")])])]))}}),eb={},tb={class:"plugin-content page"},nb=Uc('

Feedback / Support

If you have any questions or suggestions, you can contact me on:

For developers, support is also available at GitHub repository for plugin.

Updates

Updates for plugin and other parts of the Iconify project are posted on X (Twitter) and Mastodon.

',2),sb=[nb];function ob(e,t){return m(),w("div",tb,sb)}const ib=ga(eb,[["render",ob]]),rb={class:"plugin-content page"},lb=x("h1",null,"About Iconify",-1),cb=x("p",null," With Iconify you can use icons from many different icon sets in the same projects using the same plugins, libraries and icon components. ",-1),ab=J({__name:"About",setup(e){return(t,n)=>(m(),w("div",rb,[x("section",null,[lb,cb,L(ba)])]))}}),ub={key:5,class:"plugin-content placeholder dimmed"},fb=J({__name:"Index",setup(e){const t=O(()=>_e.value),n=O(()=>ii(_e.value));function s(o){return JSON.stringify({keyword:o.keyword,prefixes:o.prefixes})}return(o,i)=>(m(),w(ie,null,[u(me)?u(me)==="recent-icons"?(m(),K(qv,{key:1})):u(me)==="v4"?(m(),K(Zv,{key:2})):u(me)==="feedback"?(m(),K(ib,{key:3})):u(me)==="about"?(m(),K(ab,{key:4})):(m(),w("div",ub," This page is under development... ")):(m(),w(ie,{key:0},[t.value.type==="icon-set"?(m(),K(Lv,{key:t.value.prefix,route:t.value},null,8,["route"])):t.value.type==="search"?(m(),K(Dv,{key:s(t.value),route:t.value},null,8,["route"])):(m(),K(av,{key:2,route:n.value},null,8,["route"]))],64)),L(u(Tm),{class:"absolute top"})],64))}}),db={key:0,class:"plugin-content loading placeholder dimmed"},hb=J({__name:"App",setup(e){const{started:t,config:n}=yy(),s=O(()=>{const o=me.value;return o?o!=="recent-icons":_e.value.type==="icon-sets"});return(o,i)=>(m(),w("div",{class:re(["plugin-wrapper",s.value&&"scrollable-wrapper"])},[u(t)?(m(),w(ie,{key:1},[L(Ky,Jf(zc(u(n))),null,16),L(fb)],64)):(m(),w("div",db," Loading plugin data... "))],2))}});console.log("Starting UI...");function il(){function e(){ze({type:"ui:fatal-error",error:"Error connecting to Iconify API. This plugin cannot work offline."})}async function t(){await Sa(()=>import("https://code.iconify.design/samples.js"),void 0,import.meta.url);let n;try{n=await Ce.loadConvertedIconSets()}catch{}if(!n)return e();Jc(n),np(hb).mount("#app"),ze({type:"ui:loaded",innerHeight:window.innerHeight,outerHeight:window.outerHeight})}t().catch(e)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",il):il(); +click icon for more options...`,Uv={class:"plugin-icons-header recent"},Vv={class:"plugin-recent-reset"},Kv=x("div",{class:"plugin-page-title"},"Recently imported icons:",-1),Wv={key:0,class:"plugin-grid-footer"},qv=J({__name:"RecentIcons",setup(e){const t=Ce.convertedIconSetsCache,{gridColumns:n,gridLayout:s}=yi(),{icons:o,iconNames:i}=_a(t,Yt);ye(Yt,$=>{$.length||(me.value="")});const r=z({start:0,end:i.value.length,pages:1});function l($,C,b){r.value={start:$,end:C,pages:b}}const{multiSelect:c,selectedIcons:a,selectedIconsData:f,selectIcon:d,selectIcons:h}=mi(Ce);function p(){const{start:$,end:C}=r.value;h(i.value.slice($,C))}let _;if(at.value){const $=at.value;at.value=null,d($);const C=i.value.indexOf($);C>0&&(_=C)}function I($,C,b){const A=Ce.getIconData(C);if(!A){$.preventDefault();return}bi(b,$,{[C]:A})}function k(){Yt.value=[],ze({type:"ui:reset-recent-icons"})}return($,C)=>(m(),w("div",{class:re(["plugin-content icons",u(Ae).compactWidth&&"compact"])},[x("div",Uv,[x("div",Vv,[L(u($e),{class:"large",icon:u(fe).reset,text:"Clear recent icons list",onClick:k},null,8,["icon"])]),Kv]),L(u(di),{columns:u(n),items:u(i),layout:u(s),paginationText:u(i).length===1?u(ai):u(ci),emptyPaginationText:u(ui),hasPaginationSlot:!0,startIndex:u(_),onRange:l},{default:ue(b=>[(m(),K(u(pi),{key:b.item,loader:u(Ce),prefix:u(o)[b.item].prefix,name:u(o)[b.item].name,align:b.align,side:b.side,iconSetInfo:u(t).info[u(o)[b.item].prefix],selected:u(a).includes(b.item),selecting:u(c),afterHint:u(zv)(),onClick:A=>u(d)(b.item),draggable:!0,onDragstart:A=>I(A,b.item,!0),onDragend:A=>I(A,b.item,!1)},null,8,["loader","prefix","name","align","side","iconSetInfo","selected","selecting","afterHint","onClick","onDragstart","onDragend"]))]),pagination:ue(()=>[L(_i)]),afterPagination:ue(()=>[u(c)||u(a).length?(m(),w("div",Wv,[u(c)||u(a).length>1?(m(),K(ki,{key:0,range:r.value,selectVisibleIcons:p},null,8,["range"])):E("",!0),u(a).length?(m(),K(wi,{key:1,icons:u(f)},null,8,["icons"])):E("",!0)])):E("",!0)]),_:1},8,["columns","items","layout","paginationText","emptyPaginationText","startIndex"])],2))}}),Gv={class:"plugin-content page"},Jv=Uc('

What's new in Iconify plugin

Welcome to the new redesigned plugin.

Plugin was rewritten from scratch. Everything is new.

See blog post about plugin update.

New features

  • New compact UI, which takes less space.
  • Tooltips everywhere. To show more information in limited space, most UI elements use tooltips.
  • Detailed license information for icon sets and icons. You can see which icons can be used in commercial applications and require attribution.
  • Advanced filters. You can filter icon sets by license, grid, palette.
  • Infinite scrolling for icon lists. No more pagination.
  • Support for color styles. You can select color styles in color picker. Due to Figma limitations, the plugin can see only local styles. However, styles shared from other documents are visible to the plugin if you select a layer that uses that style.
  • Improved drag and drop. Drop is now more precise, however, there are some limitations: cannot drop to component instances or locked layers. Dropping to group with auto-layout will import the icon as the first node, not necessary where you drop it.
  • When replacing an icon, the new icon will keep the old icon's size and paint.
  • Option to select all visible icons, which you can batch import.
',2),Yv=x("h1",null,"Old version / Feedback",-1),Qv=x("p",null,[Pe(" If you prefer the previous version of the plugin, it is "),x("a",{href:"https://github.com/iconify/iconify-figma/tree/archive/v3-dist",target:"_blank"},"available on GitHub"),Pe(". ")],-1),Xv=x("p",null,"See readme for installation instructions.",-1),Zv=J({__name:"V4",setup(e){function t(n){me.value=n}return(n,s)=>(m(),w("div",Gv,[Jv,x("section",null,[Yv,Qv,Xv,x("p",null,[Pe(" Better yet, please "),x("a",{href:"#",onClick:s[0]||(s[0]=oi(o=>t("feedback"),["prevent"]))},"send your feedback"),Pe(". Please tell me why you prefer the older version, maybe your concern could be addressed in the new version. ")])])]))}}),eb={},tb={class:"plugin-content page"},nb=Uc('

Feedback / Support

If you have any questions or suggestions, you can contact me on:

For developers, support is also available at GitHub repository for plugin.

Updates

Updates for plugin and other parts of the Iconify project are posted on X (Twitter) and Mastodon.

',2),sb=[nb];function ob(e,t){return m(),w("div",tb,sb)}const ib=ga(eb,[["render",ob]]),rb={class:"plugin-content page"},lb=x("h1",null,"About Iconify",-1),cb=x("p",null," With Iconify you can use icons from many different icon sets in the same projects using the same plugins, libraries and icon components. ",-1),ab=J({__name:"About",setup(e){return(t,n)=>(m(),w("div",rb,[x("section",null,[lb,cb,L(ba)])]))}}),ub={key:5,class:"plugin-content placeholder dimmed"},fb=J({__name:"Index",setup(e){const t=O(()=>_e.value),n=O(()=>ii(_e.value));function s(o){return JSON.stringify({keyword:o.keyword,prefixes:o.prefixes})}return(o,i)=>(m(),w(ie,null,[u(me)?u(me)==="recent-icons"?(m(),K(qv,{key:1})):u(me)==="v4"?(m(),K(Zv,{key:2})):u(me)==="feedback"?(m(),K(ib,{key:3})):u(me)==="about"?(m(),K(ab,{key:4})):(m(),w("div",ub," This page is under development... ")):(m(),w(ie,{key:0},[t.value.type==="icon-set"?(m(),K(Lv,{key:t.value.prefix,route:t.value},null,8,["route"])):t.value.type==="search"?(m(),K(Dv,{key:s(t.value),route:t.value},null,8,["route"])):(m(),K(av,{key:2,route:n.value},null,8,["route"]))],64)),L(u(Tm),{class:"absolute top"})],64))}}),db={key:0,class:"plugin-content loading placeholder dimmed"},hb=J({__name:"App",setup(e){const{started:t,config:n}=yy(),s=O(()=>{const o=me.value;return o?o!=="recent-icons":_e.value.type==="icon-sets"});return(o,i)=>(m(),w("div",{class:re(["plugin-wrapper",s.value&&"scrollable-wrapper"])},[u(t)?(m(),w(ie,{key:1},[L(Ky,Jf(zc(u(n))),null,16),L(fb)],64)):(m(),w("div",db," Loading plugin data... "))],2))}});console.log("Starting UI...");function il(){function e(){ze({type:"ui:fatal-error",error:"Error connecting to Iconify API. This plugin cannot work offline."})}async function t(){await Sa(()=>import("https://code.iconify.design/samples.js"),void 0,import.meta.url);let n;try{n=await Ce.loadConvertedIconSets()}catch{}if(!n)return e();Jc(n),np(hb).mount("#app"),ze({type:"ui:loaded",innerHeight:window.innerHeight,outerHeight:window.outerHeight})}t().catch(e)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",il):il(); diff --git a/dist/plugin.js b/dist/plugin.js index deed6e3..4867e02 100644 --- a/dist/plugin.js +++ b/dist/plugin.js @@ -1 +1 @@ -const T={compactWidth:!1,v4Notice:!1},m=Object.assign({},T);function ae(e){var o;m.v4Notice=!0;const t=["compactWidth","windowAction","selectAfterImport","customizeDrop","dropToFrame"];for(const n of t){const i=(o=e.options)==null?void 0:o[n];i!==void 0&&(m[n]=i)}return m}async function le(){try{const e=await figma.clientStorage.getAsync("config");switch(e==null?void 0:e.version){case 2:ae(e);break;case 3:Object.assign(m,e);break}}catch(e){}return m}function z(){const e={version:3};let t;for(t in T){const o=m[t],n=T[t];n!==void 0&&n!==o&&(e[t]=o)}figma.clientStorage.setAsync("config",e).catch()}function fe(){const e=figma;try{const t=e.editorType;switch(t){case"figma":case"figjam":return t}}catch(t){console.error(t)}try{if(typeof e.createSticky=="function")return"figjam"}catch(t){console.error(t)}return"figma"}const p={app:fe(),loaded:!1,minimized:!1,config:m};function F(){const e=p.app;return e==="figjam"?"FigJam":e.slice(0,1).toUpperCase()+e.slice(1)}const E=24,b={mini:{width:200,height:88+E},full:{width:464+E,min:580,max:720},compact:{width:336+E,min:520,max:640},innerDiff:90,outerDiff:150};function x(){const e=p.config.compactWidth,t=b[e?"compact":"full"];let o;if(p.windowInnerHeight){const n=p.windowOuterHeight?p.windowOuterHeight-b.outerDiff:p.windowInnerHeight-b.innerDiff;o=Math.max(Math.min(n,t.max),t.min)}else o=t.max;return{width:t.width,height:o}}function y(e){figma.ui.postMessage(e)}function ue(e){switch(e.type){case"PAGE":case"COMPONENT":case"FRAME":case"SECTION":case"GROUP":return e}}function ge(e){switch(e.type){case"FRAME":case"COMPONENT":return e}}function G(e){return{type:"icon-set",prefix:e,parent:{type:"icon-sets"}}}function de(e){function t(){if(e.getSharedPluginData("iconify","source")==="iconify"){const n=JSON.parse(e.getSharedPluginData("iconify","props")),c=n.name.split(":");if(c.length===2)switch(n.version){case 3:{const r=n.route||G(c[0]);return Object.assign(n,{route:r})}default:{const r=n.props;let s;return typeof n.color=="string"?s=n.color:typeof r=="object"&&(s=r.color),{version:3,name:n.name,props:{color:s},route:G(c[0])}}}}}try{return t()}catch(o){}}function L(e){return{nodes:e.nodes||Object.create(null),ignoreIconNode:e.ignoreIconNode||!1,iconNodeID:e.iconNodeID||null,iconNodeData:e.iconNodeData||null}}function A(e,t,o){function n(i,c,r){const s=i.id,l=t.nodes[s];if(l)return r&&l.children.push(r),l;let a="invalid",h=!1,g,f;const u=ge(i);u&&(g=de(u),g&&(f=u.height,t.iconNodeID?t.ignoreIconNode=!0:(t.iconNodeID=s,t.iconNodeData=g)));const d=ue(i);d?d.type==="PAGE"?(a="valid",h=!0):(d.locked||(a="valid"),(!c||d.locked)&&(t.ignoreIconNode=!0),h=d.type!=="FRAME"):i.type==="COMPONENT_SET"?a="ignored":t.ignoreIconNode=!0;const w={type:i.type,id:s,name:i.name,target:a,children:r?[r]:[],primary:c,relative:h,icon:g,height:f};return t.nodes[s]=w,i.parent&&i.type!=="PAGE"&&n(i.parent,c,i.id),w}return n(e,o)}const he=16;function _(){const e=figma.currentPage,t=e.selection,o=L({}),n=A(e,o,!1);t.forEach((d,w)=>{A(d,o,!w)});const{nodes:i,iconNodeData:c,iconNodeID:r,ignoreIconNode:s}=o,l=[];let a=n.id,h;function g(d,w=0){switch(d.target){case"ignored":{d.children.forEach(I=>{g(i[I],w)});break}case"valid":switch(d.type){case"PAGE":case"COMPONENT":case"FRAME":case"SECTION":case"GROUP":const I={id:d.id,name:d.name,depth:w,type:d.type};!s&&c&&r===d.id&&(I.icon=c,I.height=d.height,h=I),d.icon||(l.push(I),d.primary&&!d.icon&&(a=d.id),d.children.forEach(se=>{g(i[se],w+1)}))}}}g(n);let f=!1,u=he;for(;l.length>u;)l.pop()===h&&(f=!0,u--);return f&&h&&l.push(h),{nodes:l,defaultNode:a,iconNode:h}}let Y=_();function X(){return Y}function pe(e){Y=e}const D="style:";function q(e){function t(o){const n=Math.round(o*255).toString(16);return n.length<2?"0"+n:n}return"#"+t(e.r)+t(e.g)+t(e.b)}function H(e){const t=e.paints[0].color;return{id:e.id,name:e.name,color:q(t),remote:e.remote}}function W(e){return e.type==="SOLID"&&e.visible!==!1&&e.blendMode==="NORMAL"&&e.opacity===1?e:void 0}function k(e){if(e.paints.length===1)return W(e.paints[0])}function Q(e){const t=figma.getStyleById(e);if((t==null?void 0:t.type)==="PAINT"&&k(t))return t.id}const v=new Set;async function me(){const e=[];return(await figma.getLocalPaintStylesAsync()).forEach(t=>{try{v.add(t.id),k(t)&&e.push(H(t))}catch(o){console.log("Error parsing color style:",o)}}),e}function Z(){const e=figma.getSelectionColors(),t=[];return e==null||e.styles.forEach(o=>{const n=o.id;v.has(n)||(v.add(n),k(o)&&t.push(H(o)))}),t.length?t:void 0}function ye(e){async function t(o){const n=[];for(const i of o)if(i.startsWith(D)){const c=i.slice(D.length);if(!v.has(c)){v.add(c);const r=await figma.getStyleByIdAsync(c);(r==null?void 0:r.type)==="PAINT"&&k(r)&&n.push(H(r))}}n.length&&y({type:"plugin:color-styles",styles:n})}e&&setTimeout(()=>{t(e).catch(console.error)})}let C=!1;function Ne(){const e=_();if(JSON.stringify(e)!==JSON.stringify(X())){pe(e);const t=Z();y({type:"plugin:nodes",nodes:e,styles:t})}}function O(){C||(C=!0,setTimeout(()=>{C=!1,Ne()},250))}async function S(e,t=void 0,o){try{const n=await figma.clientStorage.getAsync(e);if(n)return o?o(n):n}catch(n){}return t}function P(e,t){figma.clientStorage.setAsync(e,t).catch()}const ee="recent";let N=[];const we=64;async function Ie(){const e=await S(ee);return e&&(N=e),e}let M=!1;function te(){M||(M=!0,setTimeout(()=>{M=!1,P(ee,N),y({type:"plugin:recent-icons",icons:N})},1e3))}function ne(e){for(const t of e){const o=N.indexOf(t);o!==-1&&N.splice(o,1),N.unshift(t),N.length>we&&N.pop(),te()}}function Se(){N=[],te()}async function oe(e,t){function o(c){try{if(c.length===1){const r=c[0];if(W(c[0]))return!0}}catch(r){}}async function n(c){o(c.fills)&&(typeof t=="string"?await c.setFillStyleIdAsync(t):c.fills=[t]),o(c.strokes)&&(typeof t=="string"?await c.setStrokeStyleIdAsync(t):c.strokes=[t])}async function i(c){const r=c;if(r.locked||r.isMask)return;try{await n(r)}catch(l){}const s=c.children;if(s)for(const l of s)await i(l)}for(const c of e.children)await i(c)}const Pe={replace:"Replace icon",code:"Icon code"};function ie(e,t,o,n){e.name=t,e.setSharedPluginData("iconify","source","iconify");const i={version:3,name:t,props:o,route:n};e.setSharedPluginData("iconify","props",JSON.stringify(i)),e.setRelaunchData(Pe)}function ce(e,t){const o=figma.createNodeFromSvg(e);let n;if(t.replace?n=t.replace:t.component&&(n=figma.createComponent()),n){for(;n.children.length>0;)n.children[0].remove();n.resizeWithoutConstraints(o.width,o.height);for(const c of o.children)n.appendChild(c);if(o.remove(),t.replace)return n}const i=n||o;if(t.parent){const c=t.parent;let r=!0;const s=c.layoutMode;s&&s!=="NONE"&&(r=!1),r?c.appendChild(i):c.insertChild(0,i),t.x&&(i.x=t.x),t.y&&(i.y=t.y)}return i.constrainProportions=!0,i}function U(e,t,o,n){if(e.type==="PAGE")return t;let i=0,c=n?e.width:e.height;if(e.type==="GROUP"&&(i=n?e.x:e.y),tr?Math.max(i,r):t}function re(e,t,o){const n=t.icons.reduce((s,l)=>s+Math.ceil(l.width),0);let i=U(e,Math.round(o.targetX-n/2),n,!0),c;t.props.style&&(c=Q(t.props.style));const r=[];for(const s of t.icons){const l=U(e,Math.round(o.targetY-s.height/2),s.height,!1),a=ce(s.content,{parent:e,x:i,y:l,component:o.component});ie(a,s.name,t.props,t.route),i+=Math.ceil(s.width),r.push(a),s.monotone&&c&&oe(a,c).catch(console.error)}return ne(t.icons.map(s=>s.name)),y({type:"plugin:notice",color:"success",text:`Imported ${t.icons.length>1?t.icons.length+" icons":t.icons[0].name} to ${F()}`}),figma.currentPage.selection=r,O(),r}function j(){y({type:"plugin:notice",color:"error",text:"Error dropping icon(s) to "+F()})}function ve(e){try{if(e.dropMetadata.source!=="iconify")return!0}catch(f){return!0}let t=e.x,o=e.y;const n=e.node;n.type==="GROUP"&&(t+=n.x,o+=n.y);const i=L({});A(n,i,!0);const c=i.nodes[figma.currentPage.id];if(!c)return console.error("Cannot find current page item in scanned nodes list"),j(),!0;let r=0,s=0,l=!0,a=c,h=c;for(;a.children.length;){const f=a.children[0];if(a=i.nodes[f],a.icon||a.target==="invalid"?l=!1:l&&a.target==="valid"&&(h=a),!l&&a.relative){const u=figma.getNodeById(a.id);u&&(r+=u.x||0,s+=u.y||0)}}const g=figma.getNodeById(h.id);return g?(re(g,e.dropMetadata,{targetX:r+t,targetY:s+o}),!1):(console.error("Failed to get target node"),j(),!0)}function R(){y({type:"plugin:notice",color:"error",text:"Error importing icon(s) to "+F()})}function ke(e,t){const o=figma.getNodeById(e);if(!o){R();return}const n=o.name;let i,c;const r=figma.currentPage.selection;if(r.length===1&&r[0].id===o.id){const s=figma.getSelectionColors();if(s){const l=s.paints,a=s.styles;l.length+a.length===1?(a.length&&k(a[0])&&(i=a[0].id,c=D+i),l.length&&(i=W(l[0]),i&&(c=q(i.color)))):t.props.style&&(i=Q(t.props.style))}}for(const s of t.icons){const l=s.name,a=ce(s.content,{replace:o,x:o.x,y:o.y});ie(a,l,t.props,t.route),ne([l]),y({type:"plugin:notice",color:"success",text:`Replaced ${n} with ${l}`}),figma.currentPage.selection=[a],O(),s.monotone&&i&&oe(a,i).catch(console.error),s.monotone&&c&&y({type:"plugin:recent-color",color:c});return}R()}function De(e,t,o){const n=figma.getNodeById(e);if(!n){R();return}let i,c;switch(n.type){case"PAGE":{const r=figma.viewport.center;i=r.x,c=r.y;break}case"GROUP":{i=n.x+n.width/2,c=n.y+n.height/2;break}default:{i=n.width/2,c=n.height/2;break}}re(n,t,{component:o,targetX:i,targetY:c})}const B="icon-sets",K="route-v3",V="icon-sets-filters",$="recent-colors",J="customisations";(async()=>{var h;console.log("Starting plugin..."),await le();const e=await S(B,void 0,g=>g.version===3?g.data:void 0);let t=await S(K);const o=await Ie(),n=await S(V),i=await S($);let c=await S(J);const r=X(),s=Z();let l;if(figma.command==="replace"){const g=(h=r.iconNode)==null?void 0:h.icon;if(g){l=g.name,g.route&&(t=g.route);const f=g.props;f&&(c={size:f.size,color:f.style?D+f.style:f.color})}}figma.on("selectionchange",O),figma.on("currentpagechange",O),figma.on("drop",ve),figma.ui.onmessage=g=>{try{if(typeof g.type!="string")return}catch(u){console.error(u)}const f=g;switch(f.type){case"ui:fatal-error":{figma.closePlugin(f.error);break}case"ui:loaded":{if(f.innerHeight||f.outerHeight){p.windowInnerHeight=f.innerHeight,p.windowOuterHeight=f.outerHeight;const u=x();u.height!==p.lastWindowHeight&&(p.lastWindowHeight=u.height,figma.ui.resize(u.width,u.height))}y({type:"plugin:starting",app:p.app,command:figma.command,config:m,nodes:r,styles:s,lists:e,recent:o,route:t,filters:n,selectIcon:l,recentColors:i,custom:c}),me().then(u=>{u.length&&y({type:"plugin:color-styles",styles:u})}).catch(console.error),ye(i);break}case"ui:close":{figma.closePlugin();break}case"ui:compact":{m.compactWidth=!m.compactWidth;const u=x();u.height!==p.lastWindowHeight&&(p.lastWindowHeight=u.height,figma.ui.resize(u.width,u.height)),y({type:"plugin:resize",compactWidth:m.compactWidth,minimized:!1}),z();break}case"ui:dismiss-v4":{m.v4Notice=!1,z();break}case"ui:lists":{const u={version:3,data:f.lists};P(B,u);break}case"ui:route":{P(K,f.route);break}case"ui:filters":{P(V,f.filters);break}case"ui:replace-icon":{ke(f.node,f.data);break}case"ui:import-icons":{De(f.node,f.data,f.component||!1);break}case"ui:recent-colors":{P($,f.colors);break}case"ui:customisations":{P(J,f.custom);break}case"ui:reset-recent-icons":{Se();break}}};const a=x();p.lastWindowHeight=a.height,figma.showUI(__html__,Object.assign({themeColors:!1},a))})(); +const M={compactWidth:!1,v4Notice:!1},m=Object.assign({},M);function fe(e){var o;m.v4Notice=!0;const t=["compactWidth","windowAction","selectAfterImport","customizeDrop","dropToFrame"];for(const n of t){const i=(o=e.options)==null?void 0:o[n];i!==void 0&&(m[n]=i)}return m}async function ue(){try{const e=await figma.clientStorage.getAsync("config");switch(e==null?void 0:e.version){case 2:fe(e);break;case 3:Object.assign(m,e);break}}catch(e){}return m}function z(){const e={version:3};let t;for(t in M){const o=m[t],n=M[t];n!==void 0&&n!==o&&(e[t]=o)}figma.clientStorage.setAsync("config",e).catch()}function ge(){const e=figma;try{const t=e.editorType;switch(t){case"figma":case"figjam":return t}}catch(t){console.error(t)}try{if(typeof e.createSticky=="function")return"figjam"}catch(t){console.error(t)}return"figma"}const p={app:ge(),loaded:!1,minimized:!1,config:m};function F(){const e=p.app;return e==="figjam"?"FigJam":e.slice(0,1).toUpperCase()+e.slice(1)}const _=24,T=10,de=4,he=8,G=de*2*T+_+he*2,O={mini:{width:200,height:88+_},full:{width:48*T+G,min:580,max:720},compact:{width:32*T+G,min:520,max:640},innerDiff:90,outerDiff:150};function x(){const e=p.config.compactWidth,t=O[e?"compact":"full"];let o;if(p.windowInnerHeight){const n=p.windowOuterHeight?p.windowOuterHeight-O.outerDiff:p.windowInnerHeight-O.innerDiff;o=Math.max(Math.min(n,t.max),t.min)}else o=t.max;return{width:t.width,height:o}}function y(e){figma.ui.postMessage(e)}function pe(e){switch(e.type){case"PAGE":case"COMPONENT":case"FRAME":case"SECTION":case"GROUP":return e}}function me(e){switch(e.type){case"FRAME":case"COMPONENT":return e}}function U(e){return{type:"icon-set",prefix:e,parent:{type:"icon-sets"}}}function ye(e){function t(){if(e.getSharedPluginData("iconify","source")==="iconify"){const n=JSON.parse(e.getSharedPluginData("iconify","props")),c=n.name.split(":");if(c.length===2)switch(n.version){case 3:{const r=n.route||U(c[0]);return Object.assign(n,{route:r})}default:{const r=n.props;let s;return typeof n.color=="string"?s=n.color:typeof r=="object"&&(s=r.color),{version:3,name:n.name,props:{color:s},route:U(c[0])}}}}}try{return t()}catch(o){}}function Y(e){return{nodes:e.nodes||Object.create(null),ignoreIconNode:e.ignoreIconNode||!1,iconNodeID:e.iconNodeID||null,iconNodeData:e.iconNodeData||null}}function A(e,t,o){function n(i,c,r){const s=i.id,l=t.nodes[s];if(l)return r&&l.children.push(r),l;let a="invalid",h=!1,g,f;const u=me(i);u&&(g=ye(u),g&&(f=u.height,t.iconNodeID?t.ignoreIconNode=!0:(t.iconNodeID=s,t.iconNodeData=g)));const d=pe(i);d?d.type==="PAGE"?(a="valid",h=!0):(d.locked||(a="valid"),(!c||d.locked)&&(t.ignoreIconNode=!0),h=d.type!=="FRAME"):i.type==="COMPONENT_SET"?a="ignored":t.ignoreIconNode=!0;const w={type:i.type,id:s,name:i.name,target:a,children:r?[r]:[],primary:c,relative:h,icon:g,height:f};return t.nodes[s]=w,i.parent&&i.type!=="PAGE"&&n(i.parent,c,i.id),w}return n(e,o)}const Ne=16;function X(){const e=figma.currentPage,t=e.selection,o=Y({}),n=A(e,o,!1);t.forEach((d,w)=>{A(d,o,!w)});const{nodes:i,iconNodeData:c,iconNodeID:r,ignoreIconNode:s}=o,l=[];let a=n.id,h;function g(d,w=0){switch(d.target){case"ignored":{d.children.forEach(I=>{g(i[I],w)});break}case"valid":switch(d.type){case"PAGE":case"COMPONENT":case"FRAME":case"SECTION":case"GROUP":const I={id:d.id,name:d.name,depth:w,type:d.type};!s&&c&&r===d.id&&(I.icon=c,I.height=d.height,h=I),d.icon||(l.push(I),d.primary&&!d.icon&&(a=d.id),d.children.forEach(le=>{g(i[le],w+1)}))}}}g(n);let f=!1,u=Ne;for(;l.length>u;)l.pop()===h&&(f=!0,u--);return f&&h&&l.push(h),{nodes:l,defaultNode:a,iconNode:h}}let q=X();function Q(){return q}function we(e){q=e}const D="style:";function Z(e){function t(o){const n=Math.round(o*255).toString(16);return n.length<2?"0"+n:n}return"#"+t(e.r)+t(e.g)+t(e.b)}function H(e){const t=e.paints[0].color;return{id:e.id,name:e.name,color:Z(t),remote:e.remote}}function W(e){return e.type==="SOLID"&&e.visible!==!1&&e.blendMode==="NORMAL"&&e.opacity===1?e:void 0}function k(e){if(e.paints.length===1)return W(e.paints[0])}function ee(e){const t=figma.getStyleById(e);if((t==null?void 0:t.type)==="PAINT"&&k(t))return t.id}const v=new Set;async function Ie(){const e=[];return(await figma.getLocalPaintStylesAsync()).forEach(t=>{try{v.add(t.id),k(t)&&e.push(H(t))}catch(o){console.log("Error parsing color style:",o)}}),e}function te(){const e=figma.getSelectionColors(),t=[];return e==null||e.styles.forEach(o=>{const n=o.id;v.has(n)||(v.add(n),k(o)&&t.push(H(o)))}),t.length?t:void 0}function Pe(e){async function t(o){const n=[];for(const i of o)if(i.startsWith(D)){const c=i.slice(D.length);if(!v.has(c)){v.add(c);const r=await figma.getStyleByIdAsync(c);(r==null?void 0:r.type)==="PAINT"&&k(r)&&n.push(H(r))}}n.length&&y({type:"plugin:color-styles",styles:n})}e&&setTimeout(()=>{t(e).catch(console.error)})}let b=!1;function Se(){const e=X();if(JSON.stringify(e)!==JSON.stringify(Q())){we(e);const t=te();y({type:"plugin:nodes",nodes:e,styles:t})}}function E(){b||(b=!0,setTimeout(()=>{b=!1,Se()},250))}async function P(e,t=void 0,o){try{const n=await figma.clientStorage.getAsync(e);if(n)return o?o(n):n}catch(n){}return t}function S(e,t){figma.clientStorage.setAsync(e,t).catch()}const ne="recent";let N=[];const ve=64;async function ke(){const e=await P(ne);return e&&(N=e),e}let C=!1;function oe(){C||(C=!0,setTimeout(()=>{C=!1,S(ne,N),y({type:"plugin:recent-icons",icons:N})},1e3))}function ie(e){for(const t of e){const o=N.indexOf(t);o!==-1&&N.splice(o,1),N.unshift(t),N.length>ve&&N.pop(),oe()}}function De(){N=[],oe()}async function ce(e,t){function o(c){try{if(c.length===1){const r=c[0];if(W(c[0]))return!0}}catch(r){}}async function n(c){o(c.fills)&&(typeof t=="string"?await c.setFillStyleIdAsync(t):c.fills=[t]),o(c.strokes)&&(typeof t=="string"?await c.setStrokeStyleIdAsync(t):c.strokes=[t])}async function i(c){const r=c;if(r.locked||r.isMask)return;try{await n(r)}catch(l){}const s=c.children;if(s)for(const l of s)await i(l)}for(const c of e.children)await i(c)}const Ee={replace:"Replace icon",code:"Icon code"};function re(e,t,o,n){e.name=t,e.setSharedPluginData("iconify","source","iconify");const i={version:3,name:t,props:o,route:n};e.setSharedPluginData("iconify","props",JSON.stringify(i)),e.setRelaunchData(Ee)}function se(e,t){const o=figma.createNodeFromSvg(e);let n;if(t.replace?n=t.replace:t.component&&(n=figma.createComponent()),n){for(;n.children.length>0;)n.children[0].remove();n.resizeWithoutConstraints(o.width,o.height);for(const c of o.children)n.appendChild(c);if(o.remove(),t.replace)return n}const i=n||o;if(t.parent){const c=t.parent;let r=!0;const s=c.layoutMode;s&&s!=="NONE"&&(r=!1),r?c.appendChild(i):c.insertChild(0,i),t.x&&(i.x=t.x),t.y&&(i.y=t.y)}return i.constrainProportions=!0,i}function j(e,t,o,n){if(e.type==="PAGE")return t;let i=0,c=n?e.width:e.height;if(e.type==="GROUP"&&(i=n?e.x:e.y),tr?Math.max(i,r):t}function ae(e,t,o){const n=t.icons.reduce((s,l)=>s+Math.ceil(l.width),0);let i=j(e,Math.round(o.targetX-n/2),n,!0),c;t.props.style&&(c=ee(t.props.style));const r=[];for(const s of t.icons){const l=j(e,Math.round(o.targetY-s.height/2),s.height,!1),a=se(s.content,{parent:e,x:i,y:l,component:o.component});re(a,s.name,t.props,t.route),i+=Math.ceil(s.width),r.push(a),s.monotone&&c&&ce(a,c).catch(console.error)}return ie(t.icons.map(s=>s.name)),y({type:"plugin:notice",color:"success",text:`Imported ${t.icons.length>1?t.icons.length+" icons":t.icons[0].name} to ${F()}`}),figma.currentPage.selection=r,E(),r}function B(){y({type:"plugin:notice",color:"error",text:"Error dropping icon(s) to "+F()})}function Oe(e){try{if(e.dropMetadata.source!=="iconify")return!0}catch(f){return!0}let t=e.x,o=e.y;const n=e.node;n.type==="GROUP"&&(t+=n.x,o+=n.y);const i=Y({});A(n,i,!0);const c=i.nodes[figma.currentPage.id];if(!c)return console.error("Cannot find current page item in scanned nodes list"),B(),!0;let r=0,s=0,l=!0,a=c,h=c;for(;a.children.length;){const f=a.children[0];if(a=i.nodes[f],a.icon||a.target==="invalid"?l=!1:l&&a.target==="valid"&&(h=a),!l&&a.relative){const u=figma.getNodeById(a.id);u&&(r+=u.x||0,s+=u.y||0)}}const g=figma.getNodeById(h.id);return g?(ae(g,e.dropMetadata,{targetX:r+t,targetY:s+o}),!1):(console.error("Failed to get target node"),B(),!0)}function R(){y({type:"plugin:notice",color:"error",text:"Error importing icon(s) to "+F()})}function xe(e,t){const o=figma.getNodeById(e);if(!o){R();return}const n=o.name;let i,c;const r=figma.currentPage.selection;if(r.length===1&&r[0].id===o.id){const s=figma.getSelectionColors();if(s){const l=s.paints,a=s.styles;l.length+a.length===1?(a.length&&k(a[0])&&(i=a[0].id,c=D+i),l.length&&(i=W(l[0]),i&&(c=Z(i.color)))):t.props.style&&(i=ee(t.props.style))}}for(const s of t.icons){const l=s.name,a=se(s.content,{replace:o,x:o.x,y:o.y});re(a,l,t.props,t.route),ie([l]),y({type:"plugin:notice",color:"success",text:`Replaced ${n} with ${l}`}),figma.currentPage.selection=[a],E(),s.monotone&&i&&ce(a,i).catch(console.error),s.monotone&&c&&y({type:"plugin:recent-color",color:c});return}R()}function be(e,t,o){const n=figma.getNodeById(e);if(!n){R();return}let i,c;switch(n.type){case"PAGE":{const r=figma.viewport.center;i=r.x,c=r.y;break}case"GROUP":{i=n.x+n.width/2,c=n.y+n.height/2;break}default:{i=n.width/2,c=n.height/2;break}}ae(n,t,{component:o,targetX:i,targetY:c})}const K="icon-sets",V="route-v3",$="icon-sets-filters",J="recent-colors",L="customisations";(async()=>{var h;console.log("Starting plugin..."),await ue();const e=await P(K,void 0,g=>g.version===3?g.data:void 0);let t=await P(V);const o=await ke(),n=await P($),i=await P(J);let c=await P(L);const r=Q(),s=te();let l;if(figma.command==="replace"){const g=(h=r.iconNode)==null?void 0:h.icon;if(g){l=g.name,g.route&&(t=g.route);const f=g.props;f&&(c={size:f.size,color:f.style?D+f.style:f.color})}}figma.on("selectionchange",E),figma.on("currentpagechange",E),figma.on("drop",Oe),figma.ui.onmessage=g=>{try{if(typeof g.type!="string")return}catch(u){console.error(u)}const f=g;switch(f.type){case"ui:fatal-error":{figma.closePlugin(f.error);break}case"ui:loaded":{if(f.innerHeight||f.outerHeight){p.windowInnerHeight=f.innerHeight,p.windowOuterHeight=f.outerHeight;const u=x();u.height!==p.lastWindowHeight&&(p.lastWindowHeight=u.height,figma.ui.resize(u.width,u.height))}y({type:"plugin:starting",app:p.app,command:figma.command,config:m,nodes:r,styles:s,lists:e,recent:o,route:t,filters:n,selectIcon:l,recentColors:i,custom:c}),Ie().then(u=>{u.length&&y({type:"plugin:color-styles",styles:u})}).catch(console.error),Pe(i);break}case"ui:close":{figma.closePlugin();break}case"ui:compact":{m.compactWidth=!m.compactWidth;const u=x();u.height!==p.lastWindowHeight&&(p.lastWindowHeight=u.height,figma.ui.resize(u.width,u.height)),y({type:"plugin:resize",compactWidth:m.compactWidth,minimized:!1}),z();break}case"ui:dismiss-v4":{m.v4Notice=!1,z();break}case"ui:lists":{const u={version:3,data:f.lists};S(K,u);break}case"ui:route":{S(V,f.route);break}case"ui:filters":{S($,f.filters);break}case"ui:replace-icon":{xe(f.node,f.data);break}case"ui:import-icons":{be(f.node,f.data,f.component||!1);break}case"ui:recent-colors":{S(J,f.colors);break}case"ui:customisations":{S(L,f.custom);break}case"ui:reset-recent-icons":{De();break}}};const a=x();p.lastWindowHeight=a.height,figma.showUI(__html__,Object.assign({themeColors:!1},a))})();