define(function(t,e,r){"use strict";function n(){}function i(t,e){var r;return Object.create?r=Object.create(t):(n.prototype=t,r=new n),r.constructor=e,r}function o(t,e){if(t){if(t.nodeType)return[t];var e=e&&e.nodeType?e:document;return t&&"string"==typeof t?e.querySelectorAll(t):void 0}}for(var s=/\\?\{([^{}]+)\}/g,a="",u=/^[\s\xa0]+|[\s\xa0]+$/g,f=String.prototype.trim,c=f?function(t){return null==t?a:f.call(t)}:function(t){return null==t?a:(t+"").replace(u,a)},l=0,d=function(t){var e=t.offsetTop;return null!=t.offsetParent&&(e+=d(t.offsetParent)),e},p=function(t){var e=t.offsetLeft;return null!=t.offsetParent&&(e+=p(t.offsetParent)),e},m=({isObject:function(t){return t===Object(t)},isArray:Array.isArray||function(t){return"[object Array]"==toString.call(t)},isEmpty:function(t){if(null==t)return!0;if(this.isArray(t)||this.isString(t))return 0===t.length;for(var e in t)if(this.has(t,e))return!1;return!0},mix:function(t,e,r){for(var n in e)t[n]=e[n];return t},extend:function(t,e,r,n){if(!e||!t)return t;var o,s=e.prototype;return o=i(s,t),t.prototype=this.mix(o,t.prototype),t.superclass=i(s,e),r&&this.mix(o,r),n&&this.mix(t,n),t},startsWith:function(t,e){return 0===t.lastIndexOf(e,0)},endsWith:function(t,e){var r=t.length-e.length;return r>=0&&t.indexOf(e,r)===r},trim:c,substitute:function(t,e,r){return"string"==typeof t&&e?t.replace(r||s,function(t,r){return"\\"===t.charAt(0)?t.slice(1):void 0===e[r]?a:e[r]}):t},vendor:function(){for(var t,e=document.createElement("div").style,r=["t","webkitT","MozT","msT","OT"],n=0,i=r.length;n