6 lines
169 KiB
JavaScript
6 lines
169 KiB
JavaScript
|
/*!
|
||
|
* Materialize v1.0.0-alpha.3 (http://materializecss.com)
|
||
|
* Copyright 2014-2017 Materialize
|
||
|
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
||
|
*/
|
||
|
var _get=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in s)return s.value;var a=s.get;if(void 0!==a)return a.call(n)},_createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}window.cash=function(){var t=document,e=window,i=Array.prototype,n=i.slice,s=i.filter,o=i.push,a=function(){},r=function(t){return"function"==typeof t&&t.call},l=function(t){return"string"==typeof t},h=/^#[\w-]*$/,d=/^\.[\w-]*$/,u=/<.+>/,c=/^\w+$/;function p(e,i){i=i||t;var n=d.test(e)?i.getElementsByClassName(e.slice(1)):c.test(e)?i.getElementsByTagName(e):i.querySelectorAll(e);return n}var v;function f(e){if(!v){var i=(v=t.implementation.createHTMLDocument(null)).createElement("base");i.href=t.location.href,v.head.appendChild(i)}return v.body.innerHTML=e,v.body.childNodes}function m(e){"loading"!==t.readyState?e():t.addEventListener("DOMContentLoaded",e)}function g(i,n){if(!i)return this;if(i.cash&&i!==e)return i;var s,o=i,a=0;if(l(i))o=h.test(i)?t.getElementById(i.slice(1)):u.test(i)?f(i):p(i,n);else if(r(i))return m(i),this;if(!o)return this;if(o.nodeType||o===e)this[0]=o,this.length=1;else for(s=this.length=o.length;a<s;a++)this[a]=o[a];return this}function _(t,e){return new g(t,e)}var y=_.fn=_.prototype=g.prototype={cash:!0,length:0,push:o,splice:i.splice,map:i.map,init:g};Object.defineProperty(y,"constructor",{value:_}),_.parseHTML=f,_.noop=a,_.isFunction=r,_.isString=l,_.extend=y.extend=function(t){t=t||{};var e=n.call(arguments),i=e.length,s=1;for(1===e.length&&(t=this,s=0);s<i;s++)if(e[s])for(var o in e[s])e[s].hasOwnProperty(o)&&(t[o]=e[s][o]);return t};function k(t,e){for(var i=t.length,n=0;n<i&&!1!==e.call(t[n],t[n],n,t);n++);}function b(t,e){var i=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!i&&i.call(t,e)}function w(t){return l(t)?b:t.cash?function(e){return t.is(e)}:function(t,e){return t===e}}function C(t){return _(n.call(t).filter(function(t,e,i){return i.indexOf(t)===e}))}_.extend({merge:function(t,e){for(var i=+e.length,n=t.length,s=0;s<i;n++,s++)t[n]=e[s];return t.length=n,t},each:k,matches:b,unique:C,isArray:Array.isArray,isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}});var E=_.uid="_cash"+Date.now();function M(t){return t[E]=t[E]||{}}function x(t,e,i){return M(t)[e]=i}function L(t,e){var i=M(t);return void 0===i[e]&&(i[e]=t.dataset?t.dataset[e]:_(t).attr("data-"+e)),i[e]}y.extend({data:function(t,e){if(l(t))return void 0===e?L(this[0],t):this.each(function(i){return x(i,t,e)});for(var i in t)this.data(i,t[i]);return this},removeData:function(t){return this.each(function(e){return function(t,e){var i=M(t);i?delete i[e]:t.dataset?delete t.dataset[e]:_(t).removeAttr("data-"+name)}(e,t)})}});var T=/\S+/g;function O(t){return l(t)&&t.match(T)}function $(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function D(t,e,i){t.classList?t.classList.add(e):i.indexOf(" "+e+" ")&&(t.className+=" "+e)}function B(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}y.extend({addClass:function(t){var e=O(t);return e?this.each(function(t){var i=" "+t.
|