@travlrcomlabs/icons
Version:
TRAVLR Icons
2 lines • 9.15 kB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n,i=t();for(n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(window,function(){return n=[function(e,t,n){n(1),n(2),e.exports=n(11)},function(e,t){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)},function(e,t,n){n(3),n(4),n(5),n(6),n(7),n(8),n(9),n(10)},function(e,t){function n(e){for(var t=(this.el=e).className.replace(/^\s+|\s+$/g,"").split(/\s+/),n=0;n<t.length;n++)i.call(this,t[n])}var i,o,r,a,s,l;void 0===window.Element||"classList"in document.documentElement||(l=Array.prototype,i=l.push,o=l.splice,r=l.join,n.prototype={add:function(e){this.contains(e)||(i.call(this,e),this.el.className=this.toString())},contains:function(e){return-1!=this.el.className.indexOf(e)},item:function(e){return this[e]||null},remove:function(e){if(this.contains(e)){for(var t=0;t<this.length&&this[t]!=e;t++);o.call(this,t,1),this.el.className=this.toString()}},toString:function(){return r.call(this," ")},toggle:function(e){return this.contains(e)?this.remove(e):this.add(e),this.contains(e)}},window.DOMTokenList=n,a=Element.prototype,s="classList",l=function(){return new n(this)},Object.defineProperty?Object.defineProperty(a,s,{get:l}):a.__defineGetter__(s,l))},function(e,t){function n(){var t={};return a.call(this.attributes,function(e){(i=e.name.match(s))&&(t[i[1].replace(l,function(e,t){return t.toUpperCase()})]=e.value)}),t}var i,o,r,a,s,l,d,u;a=[].forEach,s=/^data-(.+)/,l=/\-([a-z])/gi,d=document.createElement("div"),u=!1,null==d.dataset&&(d.addEventListener("DOMAttrModified",function e(){u=!0,this.removeEventListener("DOMAttrModified",e,!1)},!1),d.setAttribute("foo","bar"),o=Element.prototype,r="dataset",d=u?function(){return this._datasetCache||(this._datasetCache=n.call(this)),this._datasetCache}:n,Object.defineProperty?Object.defineProperty(o,r,{get:d}):o.__defineGetter__(r,d),document.addEventListener("DOMAttrModified",function(e){delete e.target._datasetCache},!1))},function(e,t,n){var i,f,o,p;"EventSource"in(i=this)||(f=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,(o=function(e){var s=this,l=500,d=null,u="";if(!e||"string"!=typeof e)throw new SyntaxError("Not enough arguments");function c(e){s._pollTimer=setTimeout(function(){t.call(s)},e)}function t(){try{if(s.readyState==s.CLOSED)return;var e=new XMLHttpRequest;e.open("GET",s.URL,!0),e.setRequestHeader("Accept","text/event-stream"),e.setRequestHeader("Cache-Control","no-cache"),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),null!=d&&e.setRequestHeader("Last-Event-ID",d),u="",e.timeout=5e4,e.onreadystatechange=function(){if(3==this.readyState||4==this.readyState&&200==this.status){s.readyState==s.CONNECTING&&(s.readyState=s.OPEN,s.dispatchEvent("open",{type:"open"}));var e="";try{e=this.responseText||""}catch(e){}var t,n=e.substr(u.length).split("\n"),i="message",o=[],r=0,a="";for(u=e;r<n.length;r++)0==(a=n[r].replace(f,"")).indexOf("event")?i=a.replace(/event:?\s*/,""):0==a.indexOf("retry")?(t=parseInt(a.replace(/retry:?\s*/,"")),isNaN(t)||(l=t)):0==a.indexOf("data")?o.push(a.replace(/data:?\s*/,"")):0==a.indexOf("id:")?d=a.replace(/id:?\s*/,""):0==a.indexOf("id")?d=null:""==a&&o.length&&(t=new p(o.join("\n"),s.url,d),s.dispatchEvent(i,t),o=[],i="message");4==this.readyState&&c(l)}else s.readyState!==s.CLOSED&&(4==this.readyState?(s.readyState=s.CONNECTING,s.dispatchEvent("error",{type:"error"}),c(l)):0==this.readyState&&c(l))},e.send(),setTimeout(function(){e.abort()},e.timeout),s._xhr=e}catch(e){s.dispatchEvent("error",{type:"error",data:e.message})}}this.URL=e,this.readyState=this.CONNECTING,this._pollTimer=null,this._xhr=null,t()}).prototype={close:function(){this.readyState=this.CLOSED,clearInterval(this._pollTimer),this._xhr.abort()},CONNECTING:0,OPEN:1,CLOSED:2,dispatchEvent:function(e,t){var n=this["_"+e+"Handlers"];if(n)for(var i=0;i<n.length;i++)n[i].call(this,t);this["on"+e]&&this["on"+e].call(this,t)},addEventListener:function(e,t){this["_"+e+"Handlers"]||(this["_"+e+"Handlers"]=[]),this["_"+e+"Handlers"].push(t)},removeEventListener:function(e,t){var n=this["_"+e+"Handlers"];if(n)for(var i=n.length-1;0<=i;--i)if(n[i]===t){n.splice(i,1);break}},onerror:null,onmessage:null,onopen:null,readyState:0,URL:""},(p=function(e,t,n){this.data=e,this.origin=t,this.lastEventId=n||""}).prototype={data:null,type:"message",lastEventId:"",origin:""},"module"in i&&(e.exports=o),i.EventSource=o)},function(e,t){function n(e){e=(e=e||window.event).target||e.srcElement;"INPUT"===(e=3===e.nodeType?e.parentNode:e).nodeName&&"submit"===e.type&&null===e.form&&(i=document.getElementById(e.getAttribute("form")),(e=e.cloneNode(!0)).style.display="none",i.appendChild(e),e.click(),i.removeChild(e))}var i,o,r,a;i=document.createElement("form"),o=document.createElement("input"),r=document.body,a="f"+ +new Date,i.setAttribute("id",a),o.setAttribute("form",a),r.appendChild(i),r.appendChild(o),a=null!==o.form,r.removeChild(i),r.removeChild(o),a||(r.addEventListener?r.addEventListener("click",n,!1):r.attachEvent("onclick",n))},function(e,t){function n(e){var t=document.createEvent("HTMLEvents");t.initEvent(e,!0,!0),t.eventName=e,(document.body||window).dispatchEvent(t)}function i(){var e=new XMLHttpRequest;e.open("HEAD","/",!1);try{e.send(),o=!0}catch(e){o=!1}return o}var o,r;r=o=!0,navigator.__defineGetter__("onLine",i),i(),!1===o&&(r=!1,n("offline")),setInterval(function(){i(),o!==r&&(n(o?"online":"offline"),r=o)},5e3)},function(e,t){!function(){var e=document.createElement("input");e.setAttribute("type","range");var t,n,i,o,r="text"!==e.type;if(r?(e.style.cssText="position:absolute;visibility:hidden;",e.value=":)",void 0!==e.style.WebkitAppearance&&(document.body.appendChild(e),defaultView=document.defaultView,r=defaultView.getComputedStyle&&"textfield"!==defaultView.getComputedStyle(e,null).WebkitAppearance&&0!==e.offsetHeight,document.body.removeChild(e))):r=":)"==e.value,r)for(var a=document.getElementsByTagName("select"),s=0;s<a.length;s++)"range"==a[s].getAttribute("data-type")&&(t=a[s],o=i=n=void 0,i=document.createElement("input"),o=t.parentNode,i.setAttribute("type","range"),t=o.replaceChild(i,t),i.autofocus=t.autofocus,i.disabled=t.disabled,i.autocomplete=t.autocomplete,i.className=t.className,i.id=t.id,i.style=t.style,i.tabindex=t.tabindex,i.title=t.title,i.min=(n=t,o=(o="option").toUpperCase(),(n.firstChild.nodeName===o?n.firstChild:n.firstChild.nextSibling).value),i.max=(o=t,n=(n="option").toUpperCase(),(o.lastChild.nodeName===n?o.lastChild:o.lastChild.previousSibling).value),i.value=t.value,i.name=t.name,t.getAttribute("data-type-range-step")&&(i.step=t.getAttribute("data-type-range-step")),s--)}()},function(e,t){var n;!sessionStorage&&JSON&&(sessionStorage=(n=window.name?JSON.parse(window.name):{},{clear:function(){n={},window.name=""},getItem:function(e){return void 0===n[e]?null:n[e]},removeItem:function(e){delete n[e],window.name=JSON.stringify(n)},setItem:function(e,t){n[e]=t,window.name=JSON.stringify(n)}}))},function(e,t){function n(t){function n(e,t,n){var i=n?((i=new Date).setTime(i.getTime()+24*n*60*60*1e3),"; expires="+i.toGMTString()):"";document.cookie=e+"="+t+i+"; path=/"}function i(e){e=JSON.stringify(e),"session"==t?window.name=e:n("localStorage",e,365)}var e,o=(e="session"==t?window.name:function(e){for(var t,n=e+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){for(t=i[o];" "==t.charAt(0);)t=t.substring(1,t.length);if(0==t.indexOf(n))return t.substring(n.length,t.length)}return null}("localStorage"))?JSON.parse(e):{};return{length:0,clear:function(){o={},this.length=0,"session"==t?window.name="":n("localStorage","",365)},getItem:function(e){return void 0===o[e]?null:o[e]},key:function(e){var t,n=0;for(t in o){if(n==e)return t;n++}return null},removeItem:function(e){delete o[e],this.length--,i(o)},setItem:function(e,t){o[e]=t+"",this.length++,i(o)}}}void 0!==window.localStorage&&void 0!==window.sessionStorage||(void 0===window.localStorage&&(window.localStorage=new n("local")),void 0===window.sessionStorage&&(window.sessionStorage=new n("session")))},function(e,t,n){n(12)},function(e,t,n){}],i={},o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0);function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,i});
//# sourceMappingURL=travlr-icons.min.js.map