vue-pure-admin/dist/static/js/index-02c38b19.js
2022-12-26 12:57:03 +08:00

2 lines
25 KiB
JavaScript

const kt=Object.freeze({left:0,top:0,width:16,height:16}),Ct=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),K=Object.freeze({...kt,...Ct});Object.freeze({...K,body:"",hidden:!1});({...kt});const jt=Object.freeze({width:null,height:null}),$t=Object.freeze({...jt,...Ct});function qt(t,o){const n={...t};for(const i in o){const e=o[i],r=typeof e;i in jt?(e===null||e&&(r==="string"||r==="number"))&&(n[i]=e):r===typeof n[i]&&(n[i]=i==="rotate"?e%4:e)}return n}const Gt=/[\s,]+/;function Wt(t,o){o.split(Gt).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Kt(t,o=0){const n=t.replace(/^-?[0-9.]*/,"");function i(e){for(;e<0;)e+=4;return e%4}if(n===""){const e=parseInt(t);return isNaN(e)?0:i(e)}else if(n!==t){let e=0;switch(n){case"%":e=25;break;case"deg":e=90}if(e){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/e,r%1===0?i(r):0)}}return o}const Jt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Xt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ot(t,o,n){if(o===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*o*n)/n;if(typeof t!="string")return t;const i=t.split(Jt);if(i===null||!i.length)return t;const e=[];let r=i.shift(),s=Xt.test(r);for(;;){if(s){const c=parseFloat(r);isNaN(c)?e.push(r):e.push(Math.ceil(c*o*n)/n)}else e.push(r);if(r=i.shift(),r===void 0)return e.join("");s=!s}}function Yt(t,o){const n={...K,...t},i={...$t,...o},e={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,i].forEach(w=>{const d=[],p=w.hFlip,f=w.vFlip;let m=w.rotate;p?f?m+=2:(d.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),d.push("scale(-1 1)"),e.top=e.left=0):f&&(d.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),d.push("scale(1 -1)"),e.top=e.left=0);let g;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:g=e.height/2+e.top,d.unshift("rotate(90 "+g.toString()+" "+g.toString()+")");break;case 2:d.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:g=e.width/2+e.left,d.unshift("rotate(-90 "+g.toString()+" "+g.toString()+")");break}m%2===1&&(e.left!==e.top&&(g=e.left,e.left=e.top,e.top=g),e.width!==e.height&&(g=e.width,e.width=e.height,e.height=g)),d.length&&(r='<g transform="'+d.join(" ")+'">'+r+"</g>")});const s=i.width,c=i.height,l=e.width,a=e.height;let u,h;return s===null?(h=c===null?"1em":c==="auto"?a:c,u=ot(h,l/a)):(u=s==="auto"?l:s,h=c===null?ot(u,a/l):c==="auto"?a:c),{attributes:{width:u.toString(),height:h.toString(),viewBox:e.left.toString()+" "+e.top.toString()+" "+l.toString()+" "+a.toString()},body:r}}const Zt=/\sid="(\S+)"/g,te="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ee=0;function ne(t,o=te){const n=[];let i;for(;i=Zt.exec(t);)n.push(i[1]);return n.length&&n.forEach(e=>{const r=typeof o=="function"?o(e):o+(ee++).toString(),s=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+r+"$3")}),t}function oe(t,o){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in o)n+=" "+i+'="'+o[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function ie(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function re(t){return'url("data:image/svg+xml,'+ie(t)+'")'}const it={...$t,inline:!1},se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ce={display:"inline-block"},R={backgroundColor:"currentColor"},Tt={backgroundColor:"transparent"},rt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},st={webkitMask:R,mask:R,background:Tt};for(const t in st){const o=st[t];for(const n in rt)o[t+n]=rt[n]}const O={};["horizontal","vertical"].forEach(t=>{const o=t.slice(0,1)+"Flip";O[t+"-flip"]=o,O[t.slice(0,1)+"-flip"]=o,O[t+"Flip"]=o});function ct(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const le=(t,o)=>{const n=qt(it,o),i={...se},e=o.mode||"svg",r={},s=o.style,c=typeof s=="object"&&!(s instanceof Array)?s:{};for(let p in o){const f=o[p];if(f!==void 0)switch(p){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[p]=f===!0||f==="true"||f===1;break;case"flip":typeof f=="string"&&Wt(n,f);break;case"color":r.color=f;break;case"rotate":typeof f=="string"?n[p]=Kt(f):typeof f=="number"&&(n[p]=f);break;case"ariaHidden":case"aria-hidden":f!==!0&&f!=="true"&&delete i["aria-hidden"];break;default:{const m=O[p];m?(f===!0||f==="true"||f===1)&&(n[m]=!0):it[p]===void 0&&(i[p]=f)}}}const l=Yt(t,n),a=l.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),e==="svg"){i.style={...r,...c},Object.assign(i,a);let p=0,f=o.id;return typeof f=="string"&&(f=f.replace(/-/g,"_")),i.innerHTML=ne(l.body,f?()=>f+"ID"+p++:"iconifyVue"),Vue.h("svg",i)}const{body:u,width:h,height:b}=t,w=e==="mask"||(e==="bg"?!1:u.indexOf("currentColor")!==-1),d=oe(u,{...a,width:h+"",height:b+""});return i.style={...r,"--svg":re(d),width:ct(a.width),height:ct(a.height),...ce,...w?R:Tt,...c},Vue.h("span",i)},Ft=Object.create(null);function ae(t,o){Ft[t]=o}const lt=Vue.defineComponent({inheritAttrs:!1,render(){const t=this.$attrs,o=t.icon,n=typeof o=="string"?Ft[o]:typeof o=="object"?o:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:le({...K,...n},t)}}),fe=Vue.defineComponent({name:"IconifyIconOffline",components:{IconifyIcon:lt},props:{icon:{default:null}},render(){typeof this.icon=="object"&&ae(this.icon,this.icon);const t=this.$attrs;return Vue.h(lt,{icon:this.icon,style:t!=null&&t.style?Object.assign(t.style,{outline:"none"}):{outline:"none"},...t},{default:()=>[]})}}),C=/^[a-z0-9]+(-[a-z0-9]+)*$/,A=(t,o,n,i="")=>{const e=t.split(":");if(t.slice(0,1)==="@"){if(e.length<2||e.length>3)return null;i=e.shift().slice(1)}if(e.length>3||!e.length)return null;if(e.length>1){const c=e.pop(),l=e.pop(),a={provider:e.length>0?e[0]:i,prefix:l,name:c};return o&&!P(a)?null:a}const r=e[0],s=r.split("-");if(s.length>1){const c={provider:i,prefix:s.shift(),name:s.join("-")};return o&&!P(c)?null:c}if(n&&i===""){const c={provider:i,prefix:"",name:r};return o&&!P(c,n)?null:c}return null},P=(t,o)=>t?!!((t.provider===""||t.provider.match(C))&&(o&&t.prefix===""||t.prefix.match(C))&&t.name.match(C)):!1,Ot=Object.freeze({left:0,top:0,width:16,height:16}),L=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),V=Object.freeze({...Ot,...L}),H=Object.freeze({...V,body:"",hidden:!1});function ue(t,o){const n={};!t.hFlip!=!o.hFlip&&(n.hFlip=!0),!t.vFlip!=!o.vFlip&&(n.vFlip=!0);const i=((t.rotate||0)+(o.rotate||0))%4;return i&&(n.rotate=i),n}function at(t,o){const n=ue(t,o);for(const i in H)i in L?i in t&&!(i in n)&&(n[i]=L[i]):i in o?n[i]=o[i]:i in t&&(n[i]=t[i]);return n}function he(t,o){const n=t.icons,i=t.aliases||Object.create(null),e=Object.create(null);function r(s){if(n[s])return e[s]=[];if(!(s in e)){e[s]=null;const c=i[s]&&i[s].parent,l=c&&r(c);l&&(e[s]=[c].concat(l))}return e[s]}return(o||Object.keys(n).concat(Object.keys(i))).forEach(r),e}function de(t,o,n){const i=t.icons,e=t.aliases||Object.create(null);let r={};function s(c){r=at(i[c]||e[c],r)}return s(o),n.forEach(s),at(t,r)}function Pt(t,o){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(e=>{o(e,null),n.push(e)});const i=he(t);for(const e in i){const r=i[e];r&&(o(e,de(t,e,r)),n.push(e))}return n}const pe={provider:"",aliases:{},not_found:{},...Ot};function D(t,o){for(const n in o)if(n in t&&typeof t[n]!=typeof o[n])return!1;return!0}function Mt(t){if(typeof t!="object"||t===null)return null;const o=t;if(typeof o.prefix!="string"||!t.icons||typeof t.icons!="object"||!D(t,pe))return null;const n=o.icons;for(const e in n){const r=n[e];if(!e.match(C)||typeof r.body!="string"||!D(r,H))return null}const i=o.aliases||Object.create(null);for(const e in i){const r=i[e],s=r.parent;if(!e.match(C)||typeof s!="string"||!n[s]&&!i[s]||!D(r,H))return null}return o}const ft=Object.create(null);function ge(t,o){return{provider:t,prefix:o,icons:Object.create(null),missing:new Set}}function x(t,o){const n=ft[t]||(ft[t]=Object.create(null));return n[o]||(n[o]=ge(t,o))}function J(t,o){return Mt(o)?Pt(o,(n,i)=>{i?t.icons[n]=i:t.missing.add(n)}):[]}function me(t,o,n){try{if(typeof n.body=="string")return t.icons[o]={...n},!0}catch{}return!1}let j=!1;function Et(t){return typeof t=="boolean"&&(j=t),j}function ye(t){const o=typeof t=="string"?A(t,!0,j):t;if(o){const n=x(o.provider,o.prefix),i=o.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function be(t,o){const n=A(t,!0,j);if(!n)return!1;const i=x(n.provider,n.prefix);return me(i,n.name,o)}function we(t,o){if(typeof t!="object")return!1;if(typeof o!="string"&&(o=t.provider||""),j&&!o&&!t.prefix){let e=!1;return Mt(t)&&(t.prefix="",Pt(t,(r,s)=>{s&&be(r,s)&&(e=!0)})),e}const n=t.prefix;if(!P({provider:o,prefix:n,name:"a"}))return!1;const i=x(o,n);return!!J(i,t)}const Lt=Object.freeze({width:null,height:null}),At=Object.freeze({...Lt,...L}),Ie=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Se=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ut(t,o,n){if(o===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*o*n)/n;if(typeof t!="string")return t;const i=t.split(Ie);if(i===null||!i.length)return t;const e=[];let r=i.shift(),s=Se.test(r);for(;;){if(s){const c=parseFloat(r);isNaN(c)?e.push(r):e.push(Math.ceil(c*o*n)/n)}else e.push(r);if(r=i.shift(),r===void 0)return e.join("");s=!s}}function xe(t,o){const n={...V,...t},i={...At,...o},e={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,i].forEach(w=>{const d=[],p=w.hFlip,f=w.vFlip;let m=w.rotate;p?f?m+=2:(d.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),d.push("scale(-1 1)"),e.top=e.left=0):f&&(d.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),d.push("scale(1 -1)"),e.top=e.left=0);let g;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:g=e.height/2+e.top,d.unshift("rotate(90 "+g.toString()+" "+g.toString()+")");break;case 2:d.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:g=e.width/2+e.left,d.unshift("rotate(-90 "+g.toString()+" "+g.toString()+")");break}m%2===1&&(e.left!==e.top&&(g=e.left,e.left=e.top,e.top=g),e.width!==e.height&&(g=e.width,e.width=e.height,e.height=g)),d.length&&(r='<g transform="'+d.join(" ")+'">'+r+"</g>")});const s=i.width,c=i.height,l=e.width,a=e.height;let u,h;return s===null?(h=c===null?"1em":c==="auto"?a:c,u=ut(h,l/a)):(u=s==="auto"?l:s,h=c===null?ut(u,a/l):c==="auto"?a:c),{attributes:{width:u.toString(),height:h.toString(),viewBox:e.left.toString()+" "+e.top.toString()+" "+l.toString()+" "+a.toString()},body:r}}const ve=/\sid="(\S+)"/g,ke="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ce=0;function je(t,o=ke){const n=[];let i;for(;i=ve.exec(t);)n.push(i[1]);return n.length&&n.forEach(e=>{const r=typeof o=="function"?o(e):o+(Ce++).toString(),s=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+r+"$3")}),t}const B=Object.create(null);function $e(t,o){B[t]=o}function Q(t){return B[t]||B[""]}function X(t){let o;if(typeof t.resources=="string")o=[t.resources];else if(o=t.resources,!(o instanceof Array)||!o.length)return null;return{resources:o,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Y=Object.create(null),k=["https://api.simplesvg.com","https://api.unisvg.com"],M=[];for(;k.length>0;)k.length===1||Math.random()>.5?M.push(k.shift()):M.push(k.pop());Y[""]=X({resources:["https://api.iconify.design"].concat(M)});function Te(t,o){const n=X(o);return n===null?!1:(Y[t]=n,!0)}function Z(t){return Y[t]}const Fe=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let ht=Fe();function Oe(t,o){const n=Z(t);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let e=0;n.resources.forEach(s=>{e=Math.max(e,s.length)});const r=o+".json?icons=";i=n.maxURL-e-n.path.length-r.length}return i}function Pe(t){return t===404}const Me=(t,o,n)=>{const i=[],e=Oe(t,o),r="icons";let s={type:r,provider:t,prefix:o,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=e&&a>0&&(i.push(s),s={type:r,provider:t,prefix:o,icons:[]},c=l.length),s.icons.push(l)}),i.push(s),i};function Ee(t){if(typeof t=="string"){const o=Z(t);if(o)return o.path}return"/"}const Le=(t,o,n)=>{if(!ht){n("abort",424);return}let i=Ee(o.provider);switch(o.type){case"icons":{const r=o.prefix,c=o.icons.join(","),l=new URLSearchParams({icons:c});i+=r+".json?"+l.toString();break}case"custom":{const r=o.uri;i+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let e=503;ht(t+i).then(r=>{const s=r.status;if(s!==200){setTimeout(()=>{n(Pe(s)?"abort":"next",s)});return}return e=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",e)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",e)})},Ae={prepare:Me,send:Le};function Ve(t){const o={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((e,r)=>e.provider!==r.provider?e.provider.localeCompare(r.provider):e.prefix!==r.prefix?e.prefix.localeCompare(r.prefix):e.name.localeCompare(r.name));let i={provider:"",prefix:"",name:""};return t.forEach(e=>{if(i.name===e.name&&i.prefix===e.prefix&&i.provider===e.provider)return;i=e;const r=e.provider,s=e.prefix,c=e.name,l=n[r]||(n[r]=Object.create(null)),a=l[s]||(l[s]=x(r,s));let u;c in a.icons?u=o.loaded:s===""||a.missing.has(c)?u=o.missing:u=o.pending;const h={provider:r,prefix:s,name:c};u.push(h)}),o}function Vt(t,o){t.forEach(n=>{const i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(e=>e.id!==o))})}function Ne(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const o=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!o.length)return;let n=!1;const i=t.provider,e=t.prefix;o.forEach(r=>{const s=r.icons,c=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==e)return!0;const a=l.name;if(t.icons[a])s.loaded.push({provider:i,prefix:e,name:a});else if(t.missing.has(a))s.missing.push({provider:i,prefix:e,name:a});else return n=!0,!0;return!1}),s.pending.length!==c&&(n||Vt([t],r.id),r.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),r.abort))})}))}let _e=0;function De(t,o,n){const i=_e++,e=Vt.bind(null,n,i);if(!o.pending.length)return e;const r={id:i,icons:o,callback:t,abort:e};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(r)}),e}function ze(t,o=!0,n=!1){const i=[];return t.forEach(e=>{const r=typeof e=="string"?A(e,o,n):e;r&&i.push(r)}),i}var Re={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function He(t,o,n,i){const e=t.resources.length,r=t.random?Math.floor(Math.random()*e):t.index;let s;if(t.random){let y=t.resources.slice(0);for(s=[];y.length>1;){const I=Math.floor(Math.random()*y.length);s.push(y[I]),y=y.slice(0,I).concat(y.slice(I+1))}s=s.concat(y)}else s=t.resources.slice(r).concat(t.resources.slice(0,r));const c=Date.now();let l="pending",a=0,u,h=null,b=[],w=[];typeof i=="function"&&w.push(i);function d(){h&&(clearTimeout(h),h=null)}function p(){l==="pending"&&(l="aborted"),d(),b.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),b=[]}function f(y,I){I&&(w=[]),typeof y=="function"&&w.push(y)}function m(){return{startTime:c,payload:o,status:l,queriesSent:a,queriesPending:b.length,subscribe:f,abort:p}}function g(){l="failed",w.forEach(y=>{y(void 0,u)})}function nt(){b.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),b=[]}function Ut(y,I,v){const T=I!=="success";switch(b=b.filter(S=>S!==y),l){case"pending":break;case"failed":if(T||!t.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=v,g();return}if(T){u=v,b.length||(s.length?_():g());return}if(d(),nt(),!t.random){const S=t.resources.indexOf(y.resource);S!==-1&&S!==t.index&&(t.index=S)}l="completed",w.forEach(S=>{S(v)})}function _(){if(l!=="pending")return;d();const y=s.shift();if(y===void 0){if(b.length){h=setTimeout(()=>{d(),l==="pending"&&(nt(),g())},t.timeout);return}g();return}const I={status:"pending",resource:y,callback:(v,T)=>{Ut(I,v,T)}};b.push(I),a++,h=setTimeout(_,t.rotate),n(y,o,I.callback)}return setTimeout(_),m}function Nt(t){const o={...Re,...t};let n=[];function i(){n=n.filter(c=>c().status==="pending")}function e(c,l,a){const u=He(o,c,l,(h,b)=>{i(),a&&a(h,b)});return n.push(u),u}function r(c){return n.find(l=>c(l))||null}return{query:e,find:r,setIndex:c=>{o.index=c},getIndex:()=>o.index,cleanup:i}}function dt(){}const z=Object.create(null);function Be(t){if(!z[t]){const o=Z(t);if(!o)return;const n=Nt(o),i={config:o,redundancy:n};z[t]=i}return z[t]}function Qe(t,o,n){let i,e;if(typeof t=="string"){const r=Q(t);if(!r)return n(void 0,424),dt;e=r.send;const s=Be(t);s&&(i=s.redundancy)}else{const r=X(t);if(r){i=Nt(r);const s=t.resources?t.resources[0]:"",c=Q(s);c&&(e=c.send)}}return!i||!e?(n(void 0,424),dt):i.query(o,e,n)().abort}const pt="iconify2",$="iconify",_t=$+"-count",gt=$+"-version",Dt=36e5,Ue=168;function U(t,o){try{return t.getItem(o)}catch{}}function tt(t,o,n){try{return t.setItem(o,n),!0}catch{}}function mt(t,o){try{t.removeItem(o)}catch{}}function q(t,o){return tt(t,_t,o.toString())}function G(t){return parseInt(U(t,_t))||0}const N={local:!0,session:!0},zt={local:new Set,session:new Set};let et=!1;function qe(t){et=t}let F=typeof window>"u"?{}:window;function Rt(t){const o=t+"Storage";try{if(F&&F[o]&&typeof F[o].length=="number")return F[o]}catch{}N[t]=!1}function Ht(t,o){const n=Rt(t);if(!n)return;const i=U(n,gt);if(i!==pt){if(i){const c=G(n);for(let l=0;l<c;l++)mt(n,$+l.toString())}tt(n,gt,pt),q(n,0);return}const e=Math.floor(Date.now()/Dt)-Ue,r=c=>{const l=$+c.toString(),a=U(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>e&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&o(u,c))return!0}catch{}mt(n,l)}};let s=G(n);for(let c=s-1;c>=0;c--)r(c)||(c===s-1?(s--,q(n,s)):zt[t].add(c))}function Bt(){if(!et){qe(!0);for(const t in N)Ht(t,o=>{const n=o.data,i=o.provider,e=n.prefix,r=x(i,e);if(!J(r,n).length)return!1;const s=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,s):s,!0})}}function Ge(t,o){const n=t.lastModifiedCached;if(n&&n>=o)return n===o;if(t.lastModifiedCached=o,n)for(const i in N)Ht(i,e=>{const r=e.data;return e.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===o});return!0}function We(t,o){et||Bt();function n(i){let e;if(!N[i]||!(e=Rt(i)))return;const r=zt[i];let s;if(r.size)r.delete(s=Array.from(r).shift());else if(s=G(e),!q(e,s+1))return;const c={cached:Math.floor(Date.now()/Dt),provider:t.provider,data:o};return tt(e,$+s.toString(),JSON.stringify(c))}o.lastModified&&!Ge(t,o.lastModified)||Object.keys(o.icons).length&&(o.not_found&&(o=Object.assign({},o),delete o.not_found),n("local")||n("session"))}function yt(){}function Ke(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Ne(t)}))}function Je(t,o){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(o).sort():t.iconsToLoad=o,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:i}=t,e=t.iconsToLoad;delete t.iconsToLoad;let r;if(!e||!(r=Q(n)))return;r.prepare(n,i,e).forEach(c=>{Qe(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{t.missing.add(a)});else try{const a=J(t,l);if(!a.length)return;const u=t.pendingIcons;u&&a.forEach(h=>{u.delete(h)}),We(t,l)}catch(a){console.error(a)}Ke(t)})})}))}const Xe=(t,o)=>{const n=ze(t,!0,Et()),i=Ve(n);if(!i.pending.length){let l=!0;return o&&setTimeout(()=>{l&&o(i.loaded,i.missing,i.pending,yt)}),()=>{l=!1}}const e=Object.create(null),r=[];let s,c;return i.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===s)return;s=a,c=u,r.push(x(a,u));const h=e[a]||(e[a]=Object.create(null));h[u]||(h[u]=[])}),i.pending.forEach(l=>{const{provider:a,prefix:u,name:h}=l,b=x(a,u),w=b.pendingIcons||(b.pendingIcons=new Set);w.has(h)||(w.add(h),e[a][u].push(h))}),r.forEach(l=>{const{provider:a,prefix:u}=l;e[a][u].length&&Je(l,e[a][u])}),o?De(o,i,r):yt};function Ye(t,o){const n={...t};for(const i in o){const e=o[i],r=typeof e;i in Lt?(e===null||e&&(r==="string"||r==="number"))&&(n[i]=e):r===typeof n[i]&&(n[i]=i==="rotate"?e%4:e)}return n}const Ze=/[\s,]+/;function tn(t,o){o.split(Ze).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function en(t,o=0){const n=t.replace(/^-?[0-9.]*/,"");function i(e){for(;e<0;)e+=4;return e%4}if(n===""){const e=parseInt(t);return isNaN(e)?0:i(e)}else if(n!==t){let e=0;switch(n){case"%":e=25;break;case"deg":e=90}if(e){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/e,r%1===0?i(r):0)}}return o}function nn(t,o){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in o)n+=" "+i+'="'+o[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function on(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function rn(t){return'url("data:image/svg+xml,'+on(t)+'")'}const bt={...At,inline:!1},sn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},cn={display:"inline-block"},W={backgroundColor:"currentColor"},Qt={backgroundColor:"transparent"},wt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},It={webkitMask:W,mask:W,background:Qt};for(const t in It){const o=It[t];for(const n in wt)o[t+n]=wt[n]}const E={};["horizontal","vertical"].forEach(t=>{const o=t.slice(0,1)+"Flip";E[t+"-flip"]=o,E[t.slice(0,1)+"-flip"]=o,E[t+"Flip"]=o});function St(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const xt=(t,o)=>{const n=Ye(bt,o),i={...sn},e=o.mode||"svg",r={},s=o.style,c=typeof s=="object"&&!(s instanceof Array)?s:{};for(let p in o){const f=o[p];if(f!==void 0)switch(p){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[p]=f===!0||f==="true"||f===1;break;case"flip":typeof f=="string"&&tn(n,f);break;case"color":r.color=f;break;case"rotate":typeof f=="string"?n[p]=en(f):typeof f=="number"&&(n[p]=f);break;case"ariaHidden":case"aria-hidden":f!==!0&&f!=="true"&&delete i["aria-hidden"];break;default:{const m=E[p];m?(f===!0||f==="true"||f===1)&&(n[m]=!0):bt[p]===void 0&&(i[p]=f)}}}const l=xe(t,n),a=l.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),e==="svg"){i.style={...r,...c},Object.assign(i,a);let p=0,f=o.id;return typeof f=="string"&&(f=f.replace(/-/g,"_")),i.innerHTML=je(l.body,f?()=>f+"ID"+p++:"iconifyVue"),Vue.h("svg",i)}const{body:u,width:h,height:b}=t,w=e==="mask"||(e==="bg"?!1:u.indexOf("currentColor")!==-1),d=nn(u,{...a,width:h+"",height:b+""});return i.style={...r,"--svg":rn(d),width:St(a.width),height:St(a.height),...cn,...w?W:Qt,...c},Vue.h("span",i)};Et(!0);$e("",Ae);if(typeof document<"u"&&typeof window<"u"){Bt();const t=window;if(t.IconifyPreload!==void 0){const o=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof o=="object"&&o!==null&&(o instanceof Array?o:[o]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!we(i))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const o=t.IconifyProviders;if(typeof o=="object"&&o!==null)for(let n in o){const i="IconifyProviders["+n+"] is invalid.";try{const e=o[n];if(typeof e!="object"||!e||e.resources===void 0)continue;Te(n,e)||console.error(i)}catch{console.error(i)}}}}const ln={...V,body:""},vt=Vue.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,o){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let n;if(typeof t!="string"||(n=A(t,!1,!0))===null)return this.abortLoading(),null;const i=ye(n);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:t,abort:Xe([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,o&&o(t));const e=["iconify"];return n.prefix!==""&&e.push("iconify--"+n.prefix),n.provider!==""&&e.push("iconify--"+n.provider),{data:i,classes:e}}},render(){this.counter;const t=this.$attrs,o=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!o)return xt(ln,t);let n=t;return o.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+o.classes.join(" ")}),xt({...V,...o.data},n)}}),an=Vue.defineComponent({name:"IconifyIconOnline",components:{IconifyIcon:vt},props:{icon:{type:String,default:""}},render(){const t=this.$attrs;return Vue.h(vt,{icon:`${this.icon}`,style:t!=null&&t.style?Object.assign(t.style,{outline:"none"}):{outline:"none"},...t},{default:()=>[]})}}),fn=Vue.defineComponent({name:"FontIcon",props:{icon:{type:String,default:""}},render(){const t=this.$attrs;return Object.keys(t).includes("uni")||(t==null?void 0:t.iconType)==="uni"?Vue.h("i",{class:"iconfont",...t},this.icon):Object.keys(t).includes("svg")||(t==null?void 0:t.iconType)==="svg"?Vue.h("svg",{class:"icon-svg","aria-hidden":!0},{default:()=>[Vue.h("use",{"xlink:href":`#${this.icon}`})]}):Vue.h("i",{class:`iconfont ${this.icon}`,...t})}}),un=fe,hn=an,dn=fn;export{dn as F,un as I,hn as a,ae as b};