@layers.digital/layers-design-system-vue3 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/components/LLinearProgress/LLinearProgress.vue.d.ts +29 -0
  2. package/dist/helpers/convertIconToSVG.d.ts +1 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/layers-design-system-vue3.cjs +1 -1
  5. package/dist/layers-design-system-vue3.js +21 -16
  6. package/dist/layers-design-system-vue310.cjs +1 -1
  7. package/dist/layers-design-system-vue310.js +3 -3
  8. package/dist/layers-design-system-vue311.cjs +1 -1
  9. package/dist/layers-design-system-vue311.js +21 -13
  10. package/dist/layers-design-system-vue312.cjs +1 -1
  11. package/dist/layers-design-system-vue312.js +2 -46
  12. package/dist/layers-design-system-vue313.cjs +1 -1
  13. package/dist/layers-design-system-vue313.js +13 -2
  14. package/dist/layers-design-system-vue314.cjs +1 -1
  15. package/dist/layers-design-system-vue314.js +9 -6
  16. package/dist/layers-design-system-vue315.cjs +1 -1
  17. package/dist/layers-design-system-vue315.js +40 -21
  18. package/dist/layers-design-system-vue317.cjs +1 -1
  19. package/dist/layers-design-system-vue317.js +7 -2
  20. package/dist/layers-design-system-vue318.cjs +1 -1
  21. package/dist/layers-design-system-vue318.js +17 -36
  22. package/dist/layers-design-system-vue32.cjs +1 -1
  23. package/dist/layers-design-system-vue32.js +3 -3
  24. package/dist/layers-design-system-vue320.cjs +1 -1
  25. package/dist/layers-design-system-vue320.js +1 -1
  26. package/dist/layers-design-system-vue321.cjs +1 -1
  27. package/dist/layers-design-system-vue321.js +46 -2
  28. package/dist/layers-design-system-vue322.cjs +1 -1
  29. package/dist/layers-design-system-vue322.js +2 -24
  30. package/dist/layers-design-system-vue323.cjs +1 -1
  31. package/dist/layers-design-system-vue323.js +2 -2
  32. package/dist/layers-design-system-vue324.cjs +1 -1
  33. package/dist/layers-design-system-vue324.js +1 -1
  34. package/dist/layers-design-system-vue325.cjs +1 -1
  35. package/dist/layers-design-system-vue325.js +24 -2
  36. package/dist/layers-design-system-vue326.cjs +1 -1
  37. package/dist/layers-design-system-vue326.js +2 -1203
  38. package/dist/layers-design-system-vue327.cjs +1 -1
  39. package/dist/layers-design-system-vue327.js +2 -1287
  40. package/dist/layers-design-system-vue328.cjs +1 -1
  41. package/dist/layers-design-system-vue328.js +2 -2
  42. package/dist/layers-design-system-vue329.cjs +1 -1
  43. package/dist/layers-design-system-vue329.js +3 -2
  44. package/dist/layers-design-system-vue33.cjs +1 -1
  45. package/dist/layers-design-system-vue33.js +3 -3
  46. package/dist/layers-design-system-vue330.cjs +1 -38
  47. package/dist/layers-design-system-vue330.js +1107 -27096
  48. package/dist/layers-design-system-vue331.cjs +1 -1
  49. package/dist/layers-design-system-vue331.js +1287 -2
  50. package/dist/layers-design-system-vue332.cjs +1 -1
  51. package/dist/layers-design-system-vue332.js +2 -240
  52. package/dist/layers-design-system-vue333.cjs +1 -9
  53. package/dist/layers-design-system-vue333.js +2 -536
  54. package/dist/layers-design-system-vue334.cjs +38 -12
  55. package/dist/layers-design-system-vue334.js +27139 -1120
  56. package/dist/layers-design-system-vue335.cjs +1 -5
  57. package/dist/layers-design-system-vue335.js +237 -1007
  58. package/dist/layers-design-system-vue336.cjs +12 -13
  59. package/dist/layers-design-system-vue336.js +1102 -1892
  60. package/dist/layers-design-system-vue337.cjs +13 -1
  61. package/dist/layers-design-system-vue337.js +1963 -2
  62. package/dist/layers-design-system-vue339.cjs +1 -1
  63. package/dist/layers-design-system-vue339.js +2 -1737
  64. package/dist/layers-design-system-vue34.cjs +1 -1
  65. package/dist/layers-design-system-vue34.js +4 -4
  66. package/dist/layers-design-system-vue340.cjs +9 -1
  67. package/dist/layers-design-system-vue340.js +489 -2050
  68. package/dist/layers-design-system-vue341.cjs +5 -1
  69. package/dist/layers-design-system-vue341.js +1010 -2
  70. package/dist/layers-design-system-vue343.cjs +1 -1
  71. package/dist/layers-design-system-vue343.js +1737 -2
  72. package/dist/layers-design-system-vue344.cjs +1 -1
  73. package/dist/layers-design-system-vue344.js +2097 -2
  74. package/dist/layers-design-system-vue345.cjs +1 -1
  75. package/dist/layers-design-system-vue345.js +2 -2
  76. package/dist/layers-design-system-vue346.cjs +1 -1
  77. package/dist/layers-design-system-vue346.js +2 -2
  78. package/dist/layers-design-system-vue347.cjs +1 -1
  79. package/dist/layers-design-system-vue347.js +2 -113
  80. package/dist/layers-design-system-vue348.cjs +1 -1
  81. package/dist/layers-design-system-vue348.js +2 -2
  82. package/dist/layers-design-system-vue349.cjs +1 -1
  83. package/dist/layers-design-system-vue349.js +2 -87
  84. package/dist/layers-design-system-vue35.cjs +1 -1
  85. package/dist/layers-design-system-vue35.js +3 -3
  86. package/dist/layers-design-system-vue350.cjs +1 -1
  87. package/dist/layers-design-system-vue350.js +2 -2
  88. package/dist/layers-design-system-vue351.cjs +1 -1
  89. package/dist/layers-design-system-vue351.js +9 -9
  90. package/dist/layers-design-system-vue356.cjs +1 -0
  91. package/dist/layers-design-system-vue356.js +89 -0
  92. package/dist/layers-design-system-vue357.cjs +1 -0
  93. package/dist/layers-design-system-vue357.js +4 -0
  94. package/dist/layers-design-system-vue358.cjs +1 -0
  95. package/dist/layers-design-system-vue358.js +115 -0
  96. package/dist/layers-design-system-vue359.cjs +1 -0
  97. package/dist/layers-design-system-vue359.js +4 -0
  98. package/dist/layers-design-system-vue36.cjs +1 -1
  99. package/dist/layers-design-system-vue36.js +9 -9
  100. package/dist/layers-design-system-vue37.cjs +1 -1
  101. package/dist/layers-design-system-vue37.js +5 -5
  102. package/dist/layers-design-system-vue38.cjs +1 -1
  103. package/dist/layers-design-system-vue38.js +3 -3
  104. package/dist/layers-design-system-vue39.cjs +1 -1
  105. package/dist/layers-design-system-vue39.js +5 -5
  106. package/dist/style.css +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("vue");var T=/^[a-z0-9]+(-[a-z0-9]+)*$/,_=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),a=r.pop(),l={provider:r.length>0?r[0]:o,prefix:a,name:c};return t&&!L(l)?null:l}const i=r[0],s=i.split("-");if(s.length>1){const c={provider:o,prefix:s.shift(),name:s.join("-")};return t&&!L(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:i};return t&&!L(c,n)?null:c}return null},L=(e,t)=>e?!!((e.provider===""||e.provider.match(T))&&(t&&e.prefix===""||e.prefix.match(T))&&e.name.match(T)):!1,ge=Object.freeze({left:0,top:0,width:16,height:16}),A=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),N=Object.freeze({...ge,...A}),Q=Object.freeze({...N,body:"",hidden:!1});function De(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function ne(e,t){const n=De(e,t);for(const o in Q)o in A?o in e&&!(o in n)&&(n[o]=A[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Re(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function i(s){if(n[s])return r[s]=[];if(!(s in r)){r[s]=null;const c=o[s]&&o[s].parent,a=c&&i(c);a&&(r[s]=[c].concat(a))}return r[s]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(i),r}function ze(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function s(c){i=ne(o[c]||r[c],i)}return s(t),n.forEach(s),ne(e,i)}function me(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=Re(e);for(const r in o){const i=o[r];i&&(t(r,ze(e,r,i)),n.push(r))}return n}var Be={provider:"",aliases:{},not_found:{},...ge};function z(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ye(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!z(e,Be))return null;const n=t.icons;for(const r in n){const i=n[r];if(!r.match(T)||typeof i.body!="string"||!z(i,Q))return null}const o=t.aliases||Object.create(null);for(const r in o){const i=o[r],s=i.parent;if(!r.match(T)||typeof s!="string"||!n[s]&&!o[s]||!z(i,Q))return null}return t}var re=Object.create(null);function qe(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function S(e,t){const n=re[e]||(re[e]=Object.create(null));return n[t]||(n[t]=qe(e,t))}function W(e,t){return ye(t)?me(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function Qe(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}var j=!1;function ve(e){return typeof e=="boolean"&&(j=e),j}function Ve(e){const t=typeof e=="string"?_(e,!0,j):e;if(t){const n=S(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function be(e,t){const n=_(e,!0,j);if(!n)return!1;const o=S(n.provider,n.prefix);return Qe(o,n.name,t)}function we(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),j&&!t&&!e.prefix){let r=!1;return ye(e)&&(e.prefix="",me(e,(i,s)=>{s&&be(i,s)&&(r=!0)})),r}const n=e.prefix;if(!L({provider:t,prefix:n,name:"a"}))return!1;const o=S(t,n);return!!W(o,e)}var Ie=Object.freeze({width:null,height:null}),xe=Object.freeze({...Ie,...A}),$e=/(-?[0-9.]*[0-9]+[0-9.]*)/g,He=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function V(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split($e);if(o===null||!o.length)return e;const r=[];let i=o.shift(),s=He.test(i);for(;;){if(s){const c=parseFloat(i);isNaN(c)?r.push(i):r.push(Math.ceil(c*t*n)/n)}else r.push(i);if(i=o.shift(),i===void 0)return r.join("");s=!s}}var Ue=e=>e==="unset"||e==="undefined"||e==="none";function Se(e,t){const n={...N,...e},o={...xe,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach(b=>{const h=[],u=b.hFlip,I=b.vFlip;let y=b.rotate;u?I?y+=2:(h.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),h.push("scale(-1 1)"),r.top=r.left=0):I&&(h.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),h.push("scale(1 -1)"),r.top=r.left=0);let v;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:v=r.height/2+r.top,h.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:h.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:v=r.width/2+r.left,h.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}y%2===1&&(r.left!==r.top&&(v=r.left,r.left=r.top,r.top=v),r.width!==r.height&&(v=r.width,r.width=r.height,r.height=v)),h.length&&(i='<g transform="'+h.join(" ")+'">'+i+"</g>")});const s=o.width,c=o.height,a=r.width,l=r.height;let f,d;s===null?(d=c===null?"1em":c==="auto"?l:c,f=V(d,a/l)):(f=s==="auto"?a:s,d=c===null?V(f,l/a):c==="auto"?l:c);const g={},m=(b,h)=>{Ue(h)||(g[b]=h.toString())};return m("width",f),m("height",d),g.viewBox=r.left.toString()+" "+r.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:g,body:i}}var Ke=/\sid="(\S+)"/g,Ge="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),Je=0;function Ce(e,t=Ge){const n=[];let o;for(;o=Ke.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(Je++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}var $=Object.create(null);function We(e,t){$[e]=t}function H(e){return $[e]||$[""]}function X(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}var Y=Object.create(null),k=["https://api.simplesvg.com","https://api.unisvg.com"],F=[];for(;k.length>0;)k.length===1||Math.random()>.5?F.push(k.shift()):F.push(k.pop());Y[""]=X({resources:["https://api.iconify.design"].concat(F)});function ke(e,t){const n=X(t);return n===null?!1:(Y[e]=n,!0)}function Z(e){return Y[e]}var Xe=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}},oe=Xe();function Ye(e,t){const n=Z(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(s=>{r=Math.max(r,s.length)});const i=t+".json?icons=";o=n.maxURL-r-n.path.length-i.length}return o}function Ze(e){return e===404}var et=(e,t,n)=>{const o=[],r=Ye(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,l)=>{c+=a.length+1,c>=r&&l>0&&(o.push(s),s={type:i,provider:e,prefix:t,icons:[]},c=a.length),s.icons.push(a)}),o.push(s),o};function tt(e){if(typeof e=="string"){const t=Z(e);if(t)return t.path}return"/"}var nt=(e,t,n)=>{if(!oe){n("abort",424);return}let o=tt(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});o+=i+".json?"+a.toString();break}case"custom":{const i=t.uri;o+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let r=503;oe(e+o).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(Ze(s)?"abort":"next",s)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",r)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",r)})},rt={prepare:et,send:nt};function ot(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const i=r.provider,s=r.prefix,c=r.name,a=n[i]||(n[i]=Object.create(null)),l=a[s]||(a[s]=S(i,s));let f;c in l.icons?f=t.loaded:s===""||l.missing.has(c)?f=t.missing:f=t.pending;const d={provider:i,prefix:s,name:c};f.push(d)}),t}function Te(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function it(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(i=>{const s=i.icons,c=s.pending.length;s.pending=s.pending.filter(a=>{if(a.prefix!==r)return!0;const l=a.name;if(e.icons[l])s.loaded.push({provider:o,prefix:r,name:l});else if(e.missing.has(l))s.missing.push({provider:o,prefix:r,name:l});else return n=!0,!0;return!1}),s.pending.length!==c&&(n||Te([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}var st=0;function ct(e,t,n){const o=st++,r=Te.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),r}function at(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const i=typeof r=="string"?_(r,t,n):r;i&&o.push(i)}),o}var lt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ft(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let s;if(e.random){let p=e.resources.slice(0);for(s=[];p.length>1;){const w=Math.floor(Math.random()*p.length);s.push(p[w]),p=p.slice(0,w).concat(p.slice(w+1))}s=s.concat(p)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let a="pending",l=0,f,d=null,g=[],m=[];typeof o=="function"&&m.push(o);function b(){d&&(clearTimeout(d),d=null)}function h(){a==="pending"&&(a="aborted"),b(),g.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),g=[]}function u(p,w){w&&(m=[]),typeof p=="function"&&m.push(p)}function I(){return{startTime:c,payload:t,status:a,queriesSent:l,queriesPending:g.length,subscribe:u,abort:h}}function y(){a="failed",m.forEach(p=>{p(void 0,f)})}function v(){g.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),g=[]}function Ne(p,w,C){const M=w!=="success";switch(g=g.filter(x=>x!==p),a){case"pending":break;case"failed":if(M||!e.dataAfterTimeout)return;break;default:return}if(w==="abort"){f=C,y();return}if(M){f=C,g.length||(s.length?R():y());return}if(b(),v(),!e.random){const x=e.resources.indexOf(p.resource);x!==-1&&x!==e.index&&(e.index=x)}a="completed",m.forEach(x=>{x(C)})}function R(){if(a!=="pending")return;b();const p=s.shift();if(p===void 0){if(g.length){d=setTimeout(()=>{b(),a==="pending"&&(v(),y())},e.timeout);return}y();return}const w={status:"pending",resource:p,callback:(C,M)=>{Ne(w,C,M)}};g.push(w),l++,d=setTimeout(R,e.rotate),n(p,t,w.callback)}return setTimeout(R),I}function je(e){const t={...lt,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function r(c,a,l){const f=ft(t,c,a,(d,g)=>{o(),l&&l(d,g)});return n.push(f),f}function i(c){return n.find(a=>c(a))||null}return{query:r,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function ie(){}var B=Object.create(null);function ut(e){if(!B[e]){const t=Z(e);if(!t)return;const n=je(t),o={config:t,redundancy:n};B[e]=o}return B[e]}function dt(e,t,n){let o,r;if(typeof e=="string"){const i=H(e);if(!i)return n(void 0,424),ie;r=i.send;const s=ut(e);s&&(o=s.redundancy)}else{const i=X(e);if(i){o=je(i);const s=e.resources?e.resources[0]:"",c=H(s);c&&(r=c.send)}}return!o||!r?(n(void 0,424),ie):o.query(t,r,n)().abort}var se="iconify2",P="iconify",Pe=P+"-count",ce=P+"-version",Me=36e5,ht=168;function U(e,t){try{return e.getItem(t)}catch{}}function ee(e,t,n){try{return e.setItem(t,n),!0}catch{}}function ae(e,t){try{e.removeItem(t)}catch{}}function K(e,t){return ee(e,Pe,t.toString())}function G(e){return parseInt(U(e,Pe))||0}var D={local:!0,session:!0},Ee={local:new Set,session:new Set},te=!1;function pt(e){te=e}var E=typeof window>"u"?{}:window;function Le(e){const t=e+"Storage";try{if(E&&E[t]&&typeof E[t].length=="number")return E[t]}catch{}D[e]=!1}function Fe(e,t){const n=Le(e);if(!n)return;const o=U(n,ce);if(o!==se){if(o){const c=G(n);for(let a=0;a<c;a++)ae(n,P+a.toString())}ee(n,ce,se),K(n,0);return}const r=Math.floor(Date.now()/Me)-ht,i=c=>{const a=P+c.toString(),l=U(n,a);if(typeof l=="string"){try{const f=JSON.parse(l);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>r&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,c))return!0}catch{}ae(n,a)}};let s=G(n);for(let c=s-1;c>=0;c--)i(c)||(c===s-1?(s--,K(n,s)):Ee[e].add(c))}function Oe(){if(!te){pt(!0);for(const e in D)Fe(e,t=>{const n=t.data,o=t.provider,r=n.prefix,i=S(o,r);if(!W(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function gt(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in D)Fe(o,r=>{const i=r.data;return r.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function mt(e,t){te||Oe();function n(o){let r;if(!D[o]||!(r=Le(o)))return;const i=Ee[o];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=G(r),!K(r,s+1))return;const c={cached:Math.floor(Date.now()/Me),provider:e.provider,data:t};return ee(r,P+s.toString(),JSON.stringify(c))}t.lastModified&&!gt(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function le(){}function yt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,it(e)}))}function vt(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let i;if(!r||!(i=H(n)))return;i.prepare(n,o,r).forEach(c=>{dt(n,c,a=>{if(typeof a!="object")c.icons.forEach(l=>{e.missing.add(l)});else try{const l=W(e,a);if(!l.length)return;const f=e.pendingIcons;f&&l.forEach(d=>{f.delete(d)}),mt(e,a)}catch(l){console.error(l)}yt(e)})})}))}var Ae=(e,t)=>{const n=at(e,!0,ve()),o=ot(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,le)}),()=>{a=!1}}const r=Object.create(null),i=[];let s,c;return o.pending.forEach(a=>{const{provider:l,prefix:f}=a;if(f===c&&l===s)return;s=l,c=f,i.push(S(l,f));const d=r[l]||(r[l]=Object.create(null));d[f]||(d[f]=[])}),o.pending.forEach(a=>{const{provider:l,prefix:f,name:d}=a,g=S(l,f),m=g.pendingIcons||(g.pendingIcons=new Set);m.has(d)||(m.add(d),r[l][f].push(d))}),i.forEach(a=>{const{provider:l,prefix:f}=a;r[l][f].length&&vt(a,r[l][f])}),t?ct(t,o,i):le};function bt(e,t){const n={...e};for(const o in t){const r=t[o],i=typeof r;o in Ie?(r===null||r&&(i==="string"||i==="number"))&&(n[o]=r):i===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}var wt=/[\s,]+/;function It(e,t){t.split(wt).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function xt(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/r,i%1===0?o(i):0)}}return t}function St(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Ct(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function kt(e){return"data:image/svg+xml,"+Ct(e)}function Tt(e){return'url("'+kt(e)+'")'}var fe={...xe,inline:!1},jt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pt={display:"inline-block"},J={backgroundColor:"currentColor"},_e={backgroundColor:"transparent"},ue={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},de={webkitMask:J,mask:J,background:_e};for(const e in de){const t=de[e];for(const n in ue)t[e+n]=ue[n]}var O={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";O[e+"-flip"]=t,O[e.slice(0,1)+"-flip"]=t,O[e+"Flip"]=t});function he(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}var pe=(e,t)=>{const n=bt(fe,t),o={...jt},r=t.mode||"svg",i={},s=t.style,c=typeof s=="object"&&!(s instanceof Array)?s:{};for(let h in t){const u=t[h];if(u!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[h]=u===!0||u==="true"||u===1;break;case"flip":typeof u=="string"&&It(n,u);break;case"color":i.color=u;break;case"rotate":typeof u=="string"?n[h]=xt(u):typeof u=="number"&&(n[h]=u);break;case"ariaHidden":case"aria-hidden":u!==!0&&u!=="true"&&delete o["aria-hidden"];break;default:{const I=O[h];I?(u===!0||u==="true"||u===1)&&(n[I]=!0):fe[h]===void 0&&(o[h]=u)}}}const a=Se(e,n),l=a.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),r==="svg"){o.style={...i,...c},Object.assign(o,l);let h=0,u=t.id;return typeof u=="string"&&(u=u.replace(/-/g,"_")),o.innerHTML=Ce(a.body,u?()=>u+"ID"+h++:"iconifyVue"),q.h("svg",o)}const{body:f,width:d,height:g}=e,m=r==="mask"||(r==="bg"?!1:f.indexOf("currentColor")!==-1),b=St(f,{...l,width:d+"",height:g+""});return o.style={...i,"--svg":Tt(b),width:he(l.width),height:he(l.height),...Pt,...m?J:_e,...c},q.h("span",o)};ve(!0);We("",rt);if(typeof document<"u"&&typeof window<"u"){Oe();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!we(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;ke(n,r)||console.error(o)}catch{console.error(o)}}}}var Mt={...N,body:""},Et=q.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(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=_(e,!1,!0))===null)return this.abortLoading(),null;const o=Ve(n);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:Ae([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:o,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return pe(Mt,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),pe({...N,...t.data},n)}});exports.Icon=Et;exports.addAPIProvider=ke;exports.addCollection=we;exports.addIcon=be;exports.buildIcon=Se;exports.calculateSize=V;exports.loadIcons=Ae;exports.replaceIDs=Ce;
1
+ "use strict";const e="";module.exports=e;