@iconscout/unicons
Version:
Ready to use font icons for your next project
2 lines • 11 kB
JavaScript
(()=>{var t={998:(t,n,e)=>{var r="https://unicons.iconscout.com/".concat("release","/").concat("v4.2.0","/svg/monochrome/"),o="uim-";window.Unicons=window.Unicons||{},window.Unicons.DEBUG=window.Unicons.DEBUG||!1;var i=function(t){fetch("".concat(r).concat(t,".svg")).then((function(t){return t.text()})).then((function(n){return a(t,n)}))},a=function(t,n){for(var e=document.getElementsByClassName("".concat(o).concat(t));e.length>0;){var i=e[0],a=document.createElement("span");a.innerHTML=n,a.classList.add("uim-svg"),a.firstChild.setAttribute("width","1em"),a.style.cssText=i.style.cssText,i.classList.contains("uim-white")&&(a.style.mask="url(".concat(r).concat(t,".svg)"),a.style.webkitMask="url(".concat(r).concat(t,".svg)"),a.style.background="white"),i.replaceWith(a)}},c=function(){var t=document.getElementsByClassName("uim"),n=[];window.Unicons.DEBUG&&console.log("Replacing ".concat(t.length," icons"));for(var e=0;e<t.length;e++)t[e].classList.forEach((function(t){if(t.includes(o)){var e=t.toLocaleLowerCase().replace(o,"");n.includes(e)||(i(e),n.push(e))}}))};window.onload=function(){c(),window.Unicons.WATCHER||(e(52)(".uim").every((function(t){return function(t){t.classList.forEach((function(t){t.includes(o)&&i(t.toLocaleLowerCase().replace(o,""))}))}(t),t})),window.Unicons.WATCHER=!0,window.Unicons.DEBUG&&console.log("Monochrome watcher started")),window.Unicons.DEBUG&&console.log("Monochrome initiated")},window.Unicons.refresh=c;var u=document.createElement("style");u.innerHTML=":root {\n --uim-primary-opacity: 1;\n --uim-secondary-opacity: 0.70;\n --uim-tertiary-opacity: 0.50;\n --uim-quaternary-opacity: 0.25;\n --uim-quinary-opacity: 0;\n}\n.uim-svg {\n display: inline-block;\n height: 1em;\n vertical-align: -0.125em;\n font-size: inherit;\n fill: var(--uim-color, currentColor);\n}\n.uim-svg svg {\n display: inline-block;\n}\n.uim-primary {\n opacity: var(--uim-primary-opacity);\n}\n.uim-secondary {\n opacity: var(--uim-secondary-opacity);\n}\n.uim-tertiary {\n opacity: var(--uim-tertiary-opacity);\n}\n.uim-quaternary {\n opacity: var(--uim-quaternary-opacity);\n}\n.uim-quinary {\n opacity: var(--uim-quinary-opacity);\n}",document.head.appendChild(u)},52:t=>{var n=function(){"use strict";var t=100,n=!1,e="animationName",r="",o="Webkit Moz O ms Khtml".split(" "),i="",a=document.createElement("div"),c={strictlyNew:!0,timeout:20,addImportant:!1};if(a.style.animationName&&(n=!0),!1===n)for(var u=0;u<o.length;u++)if(void 0!==a.style[o[u]+"AnimationName"]){i=o[u],e=i+"AnimationName",r="-"+i.toLowerCase()+"-",n=!0;break}function s(t){return c.strictlyNew&&!0===t.QinsQ}function l(n,o){var i,a="insQ_"+t++,u=c.addImportant?" !important":"",l=function(t){t.animationName!==a&&t[e]!==a||s(t.target)||o(t.target)};(i=document.createElement("style")).innerHTML="@"+r+"keyframes "+a+" { from { outline: 1px solid transparent } to { outline: 0px solid transparent } }\n"+n+" { animation-duration: 0.001s"+u+"; animation-name: "+a+u+"; "+r+"animation-duration: 0.001s"+u+"; "+r+"animation-name: "+a+u+"; } ",document.head.appendChild(i);var f=setTimeout((function(){document.addEventListener("animationstart",l,!1),document.addEventListener("MSAnimationStart",l,!1),document.addEventListener("webkitAnimationStart",l,!1)}),c.timeout);return{destroy:function(){clearTimeout(f),i&&(document.head.removeChild(i),i=null),document.removeEventListener("animationstart",l),document.removeEventListener("MSAnimationStart",l),document.removeEventListener("webkitAnimationStart",l)}}}function f(t){t.QinsQ=!0}function h(t){return s(t.parentNode)||"BODY"===t.nodeName?t:h(t.parentNode)}function m(t){if(t)for(f(t),t=t.firstChild;t;t=t.nextSibling)void 0!==t&&1===t.nodeType&&m(t)}function p(t,n){var e,r=[];return l(t,(function(t){if(!s(t)){f(t);var o=h(t);r.indexOf(o)<0&&r.push(o),clearTimeout(e),e=setTimeout((function(){r.forEach(m),n(r),r=[]}),10)}}))}var d=function(t){return!(!n||!t.match(/[^{}]/))&&(c.strictlyNew&&m(document.body),{every:function(n){return l(t,n)},summary:function(n){return p(t,n)}})};return d.config=function(t){for(var n in t)t.hasOwnProperty(n)&&(c[n]=t[n])},d}();void 0!==t.exports&&(t.exports=n)},452:t=>{var n=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,n,e){t[n]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,e){return t[n]=e}}function l(t,n,e,r){var i=n&&n.prototype instanceof v?n:v,a=Object.create(i.prototype),c=new j(r||[]);return o(a,"_invoke",{value:T(t,e,c)}),a}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h="suspendedStart",m="suspendedYield",p="executing",d="completed",y={};function v(){}function g(){}function w(){}var L={};s(L,a,(function(){return this}));var E=Object.getPrototypeOf,b=E&&E(E(C([])));b&&b!==e&&r.call(b,a)&&(L=b);var x=w.prototype=v.prototype=Object.create(L);function N(t){["next","throw","return"].forEach((function(n){s(t,n,(function(t){return this._invoke(n,t)}))}))}function k(t,n){function e(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):n.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new n((function(n,o){e(t,r,n,o)}))}return i=i?i.then(o,o):o()}})}function T(t,n,e){var r=h;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return G()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=O(a,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===h)throw r=d,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=p;var u=f(t,n,e);if("normal"===u.type){if(r=e.done?d:m,u.arg===y)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(r=d,e.method="throw",e.arg=u.arg)}}}function O(t,e){var r=e.method,o=t.iterator[r];if(o===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=n,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,y;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,y):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function _(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function U(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function C(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:G}}function G(){return{value:n,done:!0}}return g.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=s(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===g||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},N(k.prototype),s(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(n,e,r,o,i){void 0===i&&(i=Promise);var a=new k(l(n,e,r,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},N(x),s(x,u,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=Object(t),e=[];for(var r in n)e.push(r);return e.reverse(),function t(){for(;e.length;){var r=e.pop();if(r in n)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(U),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(r,o){return c.type="throw",c.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),y},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),U(e),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;U(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),y}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e(452),e(998)})();
//# sourceMappingURL=bundle.js.map