/*
Copyright 2013, KISSY UI Library v1.31
MIT Licensed
build time: Jul 25 15:56
*/
var KISSY=function(a){var e=this,i,m=0;return i={__BUILD_TIME:"20130725155557",Env:{host:e},Config:{debug:"",fns:{}},version:"1.31",config:function(h,b){var g,e,c=this,f,o=i.Config,p=o.fns;i.isObject(h)?i.each(h,function(a,d){(f=p[d])?f.call(c,a):o[d]=a}):(g=p[h],b===a?e=g?g.call(c):o[h]:g?e=g.call(c,b):o[h]=b);return e},log:function(h,b,g){if(i.Config.debug&&(g&&(h=g+": "+h),e.console!==a&&console.log))console[b&&console[b]?b:"log"](h)},error:function(a){if(i.Config.debug)throw a instanceof
Error?a:Error(a);},guid:function(a){return(a||"")+m++}}}();
(function(a,e){function i(){}function m(a,f){var d;c?d=c(a):(i.prototype=a,d=new i);d.constructor=f;return d}function h(f,j,d,l,q,c){if(!j||!f)return f;var k,o,g,i;j[b]=f;c.push(j);g=a.keys(j);i=g.length;for(k=0;k<i;k++)if(o=g[k],o!=b){var m=f,r=j,G=d,w=l,y=q,v=c;if(G||!(o in m)||y){var t=m[o],s=r[o];if(t===s)t===e&&(m[o]=t);else if(w&&(s=w.call(r,o,s)),y&&s&&(a.isArray(s)||a.isPlainObject(s)))s[b]?m[o]=s[b]:(r=t&&(a.isArray(t)||a.isPlainObject(t))?t:a.isArray(s)?[]:{},m[o]=r,h(r,s,G,w,n,v));else if(s!==
e&&(G||!(o in m)))m[o]=s}}return f}var b="__MIX_CIRCULAR",g=this,n=!0,c=Object.create,f=!{toString:1}.propertyIsEnumerable("toString"),o="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(a,f){for(var d in f)a[d]=f[d]})(a,{stamp:function(f,j,d){var d=d||"__~ks_stamped",l=f[d];if(!l&&!j)try{l=f[d]=a.guid(d)}catch(q){l=e}return l},keys:function(a){var j=[],d,l;for(d in a)j.push(d);if(f)for(l=o.length-1;0<=l;l--)d=o[l],a.hasOwnProperty(d)&&
j.push(d);return j},mix:function(f,j,d,l,q){"object"===typeof d&&(l=d.whitelist,q=d.deep,d=d.overwrite);if(l&&"function"!==typeof l)var c=l,l=function(d,l){return a.inArray(d,c)?l:e};d===e&&(d=n);var k=[],o=0;for(h(f,j,d,l,q,k);j=k[o++];)delete j[b];return f},merge:function(f){var f=a.makeArray(arguments),j={},d,l=f.length;for(d=0;d<l;d++)a.mix(j,f[d]);return j},augment:function(f,j){var d=a.makeArray(arguments),l=d.length-2,q=1,c=d[l],k=d[l+1];a.isArray(k)||(c=k,k=e,l++);"boolean"!==typeof c&&(c=
e,l++);for(;q<l;q++)a.mix(f.prototype,d[q].prototype||d[q],c,k);return f},extend:function(f,j,d,l){if(!j||!f)return f;var q=j.prototype,c;c=m(q,f);f.prototype=a.mix(c,f.prototype);f.superclass=m(q,j);d&&a.mix(c,d);l&&a.mix(f,l);return f},namespace:function(){var f=a.makeArray(arguments),j=f.length,d=null,l,q,c,k=f[j-1]===n&&j--;for(l=0;l<j;l++){c=(""+f[l]).split(".");d=k?g:this;for(q=g[c[0]]===d?1:0;q<c.length;++q)d=d[c[q]]=d[c[q]]||{}}return d}})})(KISSY);
(function(a,e){var i=Array.prototype,m=i.indexOf,h=i.lastIndexOf,b=i.filter,g=i.every,n=i.some,c=i.map;a.mix(a,{each:function(f,c,b){if(f){var j,d,l=0;j=f&&f.length;d=j===e||"function"===a.type(f);b=b||null;if(d)for(d=a.keys(f);l<d.length&&!(j=d[l],!1===c.call(b,f[j],j,f));l++);else for(d=f[0];l<j&&!1!==c.call(b,d,l,f);d=f[++l]);}return f},indexOf:m?function(a,c){return m.call(c,a)}:function(a,c){for(var b=0,j=c.length;b<j;++b)if(c[b]===a)return b;return-1},lastIndexOf:h?function(a,c){return h.call(c,
a)}:function(a,c){for(var b=c.length-1;0<=b&&c[b]!==a;b--);return b},unique:function(f,c){var b=f.slice();c&&b.reverse();for(var j=0,d,l;j<b.length;){for(l=b[j];(d=a.lastIndexOf(l,b))!==j;)b.splice(d,1);j+=1}c&&b.reverse();return b},inArray:function(f,c){return-1<a.indexOf(f,c)},filter:b?function(a,c,p){return b.call(a,c,p||this)}:function(f,c,b){var j=[];a.each(f,function(d,a,f){c.call(b||this,d,a,f)&&j.push(d)});return j},map:c?function(a,b,p){return c.call(a,b,p||this)}:function(a,c,b){for(var j=
a.length,d=Array(j),l=0;l<j;l++){var q="string"==typeof a?a.charAt(l):a[l];if(q||l in a)d[l]=c.call(b||this,q,l,a)}return d},reduce:function(a,c,b){var j=a.length;if("function"!==typeof c)throw new TypeError("callback is not function!");if(0===j&&2==arguments.length)throw new TypeError("arguments invalid");var d=0,l;if(3<=arguments.length)l=arguments[2];else{do{if(d in a){l=a[d++];break}d+=1;if(d>=j)throw new TypeError;}while(1)}for(;d<j;)d in a&&(l=c.call(e,l,a[d],d,a)),d++;return l},every:g?function(a,
c,b){return g.call(a,c,b||this)}:function(a,c,b){for(var j=a&&a.length||0,d=0;d<j;d++)if(d in a&&!c.call(b,a[d],d,a))return!1;return!0},some:n?function(a,c,b){return n.call(a,c,b||this)}:function(a,c,b){for(var j=a&&a.length||0,d=0;d<j;d++)if(d in a&&c.call(b,a[d],d,a))return!0;return!1},makeArray:function(c){if(null==c)return[];if(a.isArray(c))return c;var b=typeof c.length,p=typeof c;if("number"!=b||c.alert||"string"==p||"function"==p&&!("item"in c&&"number"==b))return[c];for(var b=[],p=0,j=c.length;p<
j;p++)b[p]=c[p];return b}})})(KISSY);
(function(a,e){function i(a){var c=typeof a;return null==a||"object"!==c&&"function"!==c}function m(){if(c)return c;var f=b;a.each(g,function(a){f+=a+"|"});f=f.slice(0,-1);return c=RegExp(f,"g")}function h(){if(f)return f;var c=b;a.each(n,function(a){c+=a+"|"});c+="&#(\\d{1,5});";return f=RegExp(c,"g")}var b="",g={"&amp;":"&","&gt;":">","&lt;":"<","&#x60;":"`","&#x2F;":"/","&quot;":'"',"&#x27;":"'"},n={},c,f,o=/[\-#$\^*()+\[\]{}|\\,.?\s]/g;(function(){for(var a in g)n[g[a]]=a})();a.mix(a,{urlEncode:function(a){return encodeURIComponent(""+
a)},urlDecode:function(a){return decodeURIComponent(a.replace(/\+/g," "))},fromUnicode:function(a){return a.replace(/\\u([a-f\d]{4})/ig,function(a,d){return String.fromCharCode(parseInt(d,16))})},escapeHtml:function(a){return(a+"").replace(m(),function(a){return n[a]})},escapeRegExp:function(a){return a.replace(o,"\\$&")},unEscapeHtml:function(a){return a.replace(h(),function(a,d){return g[a]||String.fromCharCode(+d)})},param:function(c,f,d,l){f=f||"&";d=d||"=";l===e&&(l=!0);var q=[],x,k,g,h,o,n=
a.urlEncode;for(x in c)if(o=c[x],x=n(x),i(o))q.push(x),o!==e&&q.push(d,n(o+b)),q.push(f);else if(a.isArray(o)&&o.length){k=0;for(h=o.length;k<h;++k)g=o[k],i(g)&&(q.push(x,l?n("[]"):b),g!==e&&q.push(d,n(g+b)),q.push(f))}q.pop();return q.join(b)},unparam:function(c,b,d){if("string"!=typeof c||!(c=a.trim(c)))return{};for(var d=d||"=",l={},q,f=a.urlDecode,c=c.split(b||"&"),k=0,g=c.length;k<g;++k){q=c[k].indexOf(d);if(-1==q)b=f(c[k]),q=e;else{b=f(c[k].substring(0,q));q=c[k].substring(q+1);try{q=f(q)}catch(h){}a.endsWith(b,
"[]")&&(b=b.substring(0,b.length-2))}b in l?a.isArray(l[b])?l[b].push(q):l[b]=[l[b],q]:l[b]=q}return l}});a.escapeHTML=a.escapeHtml;a.unEscapeHTML=a.unEscapeHtml})(KISSY);
(function(a){function e(a,e,h){var b=[].slice,g=b.call(arguments,3),n=function(){},c=function(){var c=b.call(arguments);return e.apply(this instanceof n?this:h,a?c.concat(g):g.concat(c))};n.prototype=e.prototype;c.prototype=new n;return c}a.mix(a,{noop:function(){},bind:e(0,e,null,0),rbind:e(0,e,null,1),later:function(e,m,h,b,g){var m=m||0,n=e,c=a.makeArray(g),f;"string"==typeof e&&(n=b[e]);e=function(){n.apply(b,c)};f=h?setInterval(e,m):setTimeout(e,m);return{id:f,interval:h,cancel:function(){this.interval?
clearInterval(f):clearTimeout(f)}}},throttle:function(e,m,h){m=m||150;if(-1===m)return function(){e.apply(h||this,arguments)};var b=a.now();return function(){var g=a.now();g-b>m&&(b=g,e.apply(h||this,arguments))}},buffer:function(e,m,h){function b(){b.stop();g=a.later(e,m,0,h||this,arguments)}m=m||150;if(-1===m)return function(){e.apply(h||this,arguments)};var g=null;b.stop=function(){g&&(g.cancel(),g=0)};return b}})})(KISSY);
(function(a,e){function i(c,f,e){var h=c,j,d,l,q;if(!c)return h;if(c[g])return e[c[g]].destination;if("object"===typeof c){q=c.constructor;if(a.inArray(q,[Boolean,String,Number,Date,RegExp]))h=new q(c.valueOf());else if(j=a.isArray(c))h=f?a.filter(c,f):c.concat();else if(d=a.isPlainObject(c))h={};c[g]=q=a.guid();e[q]={destination:h,input:c}}if(j)for(c=0;c<h.length;c++)h[c]=i(h[c],f,e);else if(d)for(l in c)if(l!==g&&(!f||f.call(c,c[l],l,c)!==b))h[l]=i(c[l],f,e);return h}function m(c,b,g,i){if(c[n]===
b&&b[n]===c)return h;c[n]=b;b[n]=c;var j=function(d,a){return null!==d&&d!==e&&d[a]!==e},d;for(d in b)!j(c,d)&&j(b,d)&&g.push("expected has key '"+d+"', but missing from actual.");for(d in c)!j(b,d)&&j(c,d)&&g.push("expected missing key '"+d+"', but present in actual.");for(d in b)d!=n&&(a.equals(c[d],b[d],g,i)||i.push("'"+d+"' was '"+(b[d]?b[d].toString():b[d])+"' in expected, but was '"+(c[d]?c[d].toString():c[d])+"' in actual."));a.isArray(c)&&a.isArray(b)&&c.length!=b.length&&i.push("arrays were not the same length");
delete c[n];delete b[n];return 0===g.length&&0===i.length}var h=!0,b=!1,g="__~ks_cloned",n="__~ks_compared";a.mix(a,{equals:function(a,b,g,n){g=g||[];n=n||[];return a===b?h:a===e||null===a||b===e||null===b?null==a&&null==b:a instanceof Date&&b instanceof Date?a.getTime()==b.getTime():"string"==typeof a&&"string"==typeof b||"number"===typeof a&&"number"===typeof b?a==b:"object"===typeof a&&"object"===typeof b?m(a,b,g,n):a===b},clone:function(c,b){var h={},n=i(c,b,h);a.each(h,function(a){a=a.input;
if(a[g])try{delete a[g]}catch(d){a[g]=e}});h=null;return n},now:Date.now||function(){return+new Date}})})(KISSY);
(function(a,e){var i=/^[\s\xa0]+|[\s\xa0]+$/g,m=String.prototype.trim,h=/\\?\{([^{}]+)\}/g;a.mix(a,{trim:m?function(a){return null==a?"":m.call(a)}:function(a){return null==a?"":(a+"").replace(i,"")},substitute:function(a,g,n){return"string"!=typeof a||!g?a:a.replace(n||h,function(a,b){return"\\"===a.charAt(0)?a.slice(1):g[b]===e?"":g[b]})},ucfirst:function(a){a+="";return a.charAt(0).toUpperCase()+a.substring(1)},startsWith:function(a,g){return 0===a.lastIndexOf(g,0)},endsWith:function(a,g){var e=
a.length-g.length;return 0<=e&&a.indexOf(g,e)==e}})})(KISSY);
(function(a,e){var i={},m=Object.prototype,h=m.toString;a.mix(a,{isBoolean:0,isNumber:0,isString:0,isFunction:0,isArray:0,isDate:0,isRegExp:0,isObject:0,type:function(a){return null==a?""+a:i[h.call(a)]||"object"},isNull:function(a){return null===a},isUndefined:function(a){return a===e},isEmptyObject:function(a){for(var g in a)if(g!==e)return!1;return!0},isPlainObject:function(b){if(!b||"object"!==a.type(b)||b.nodeType||b.window==b)return!1;var g,h;try{if((h=b.constructor)&&!m.hasOwnProperty.call(b,
"constructor")&&!m.hasOwnProperty.call(h.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(g in b);return g===e||m.hasOwnProperty.call(b,g)}});a.each("Boolean,Number,String,Function,Array,Date,RegExp,Object".split(","),function(b,g){i["[object "+b+"]"]=g=b.toLowerCase();a["is"+b]=function(b){return a.type(b)==g}})})(KISSY);
(function(a,e){function i(a,d,l){if(a instanceof g)return l(a[o]);var c=a[o];if(a=a[p])a.push([d,l]);else if(h(c))i(c,d,l);else return d&&d(c);return e}function m(a){if(!(this instanceof m))return new m(a);this.promise=a||new b}function h(a){return a&&a instanceof b}function b(a){this[o]=a;a===e&&(this[p]=[])}function g(a){if(a instanceof g)return a;b.apply(this,arguments);return this}function n(a,d,l){function c(a){try{return d?d(a):a}catch(l){return new g(l)}}function f(a){try{return l?l(a):new g(a)}catch(d){return new g(d)}}
function k(a){h||(h=1,e.resolve(c(a)))}var e=new m,h=0;a instanceof b?i(a,k,function(a){h||(h=1,e.resolve(f(a)))}):k(a);return e.promise}function c(a){return!f(a)&&h(a)&&a[p]===e&&(!h(a[o])||c(a[o]))}function f(a){return h(a)&&a[p]===e&&a[o]instanceof g}var o="__promise_value",p="__promise_pendings";m.prototype={constructor:m,resolve:function(c){var d=this.promise,l;if(!(l=d[p]))return null;d[o]=c;l=[].concat(l);d[p]=e;a.each(l,function(a){i(d,a[0],a[1])});return c},reject:function(a){return this.resolve(new g(a))}};
b.prototype={constructor:b,then:function(a,d){return n(this,a,d)},fail:function(a){return n(this,0,a)},fin:function(a){return n(this,function(d){return a(d,!0)},function(d){return a(d,!1)})},done:function(a,d){(a||d?this.then(a,d):this).fail(function(a){setTimeout(function(){throw a;},0)})},isResolved:function(){return c(this)},isRejected:function(){return f(this)}};a.extend(g,b);KISSY.Defer=m;KISSY.Promise=b;b.Defer=m;a.mix(b,{when:n,isPromise:h,isResolved:c,isRejected:f,all:function(a){var d=a.length;
if(!d)return null;for(var l=m(),c=0;c<a.length;c++)(function(c,b){n(c,function(c){a[b]=c;0===--d&&l.resolve(a)},function(a){l.reject(a)})})(a[c],c);return l.promise}})})(KISSY);
(function(a){function e(a,b){for(var g=0,e=a.length-1,c=[],f;0<=e;e--)f=a[e],"."!=f&&(".."===f?g++:g?g--:c[c.length]=f);if(b)for(;g--;g)c[c.length]="..";return c=c.reverse()}var i=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,m={resolve:function(){var h="",b,g=arguments,i,c=0;for(b=g.length-1;0<=b&&!c;b--)i=g[b],"string"==typeof i&&i&&(h=i+"/"+h,c="/"==i.charAt(0));h=e(a.filter(h.split("/"),function(a){return!!a}),!c).join("/");return(c?"/":"")+h||"."},normalize:function(h){var b=
"/"==h.charAt(0),g="/"==h.slice(-1),h=e(a.filter(h.split("/"),function(a){return!!a}),!b).join("/");!h&&!b&&(h=".");h&&g&&(h+="/");return(b?"/":"")+h},join:function(){var e=a.makeArray(arguments);return m.normalize(a.filter(e,function(a){return a&&"string"==typeof a}).join("/"))},relative:function(e,b){var e=m.normalize(e),b=m.normalize(b),g=a.filter(e.split("/"),function(a){return!!a}),i=[],c,f,o=a.filter(b.split("/"),function(a){return!!a});f=Math.min(g.length,o.length);for(c=0;c<f&&g[c]==o[c];c++);
for(f=c;c<g.length;)i.push(".."),c++;i=i.concat(o.slice(f));return i=i.join("/")},basename:function(a,b){var e;e=(a.match(i)||[])[3]||"";b&&e&&e.slice(-1*b.length)==b&&(e=e.slice(0,-1*b.length));return e},dirname:function(a){var b=a.match(i)||[],a=b[1]||"",b=b[2]||"";if(!a&&!b)return".";b&&(b=b.substring(0,b.length-1));return a+b},extname:function(a){return(a.match(i)||[])[4]||""}};a.Path=m})(KISSY);
(function(a,e){function i(d){d._queryMap||(d._queryMap=a.unparam(d._query))}function m(a){this._query=a||""}function h(a,l){return encodeURI(a).replace(l,function(a){a=a.charCodeAt(0).toString(16);return"%"+(1==a.length?"0"+a:a)})}function b(d){if(d instanceof b)return d.clone();var l=this;a.mix(l,{scheme:"",userInfo:"",hostname:"",port:"",path:"",query:"",fragment:""});d=b.getComponents(d);a.each(d,function(d,c){d=d||"";if("query"==c)l.query=new m(d);else{try{d=a.urlDecode(d)}catch(b){}l[c]=d}});
return l}var g=/[#\/\?@]/g,n=/[#\?]/g,c=/[#@]/g,f=/#/g,o=RegExp("^(?:([\\w\\d+.-]+):)?(?://(?:([^/?#@]*)@)?([\\w\\d\\-\\u0100-\\uffff.+%]*|\\[[^\\]]+\\])(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),p=a.Path,j={scheme:1,userInfo:2,hostname:3,port:4,path:5,query:6,fragment:7};m.prototype={constructor:m,clone:function(){return new m(this.toString())},reset:function(a){this._query=a||"";this._queryMap=null;return this},count:function(){var d=0,l,c;i(this);l=this._queryMap;for(c in l)a.isArray(l[c])?
d+=l[c].length:d++;return d},has:function(d){var l;i(this);l=this._queryMap;return d?d in l:!a.isEmptyObject(l)},get:function(a){var l;i(this);l=this._queryMap;return a?l[a]:l},keys:function(){i(this);return a.keys(this._queryMap)},set:function(d,l){var c;i(this);c=this._queryMap;"string"==typeof d?this._queryMap[d]=l:(d instanceof m&&(d=d.get()),a.each(d,function(a,d){c[d]=a}));return this},remove:function(a){i(this);a?delete this._queryMap[a]:this._queryMap={};return this},add:function(d,l){var c=
this,b,k;a.isObject(d)?(d instanceof m&&(d=d.get()),a.each(d,function(a,d){c.add(d,a)})):(i(c),b=c._queryMap,k=b[d],k=k===e?l:[].concat(k).concat(l),b[d]=k);return c},toString:function(d){i(this);return a.param(this._queryMap,e,e,d)}};b.prototype={constructor:b,clone:function(){var d=new b,c=this;a.each(j,function(a,b){d[b]=c[b]});d.query=d.query.clone();return d},resolve:function(d){"string"==typeof d&&(d=new b(d));var c=0,f,e=this.clone();a.each("scheme,userInfo,hostname,port,path,query,fragment".split(","),
function(b){if(b=="path")if(c)e[b]=d[b];else{if(b=d.path){c=1;if(!a.startsWith(b,"/"))if(e.hostname&&!e.path)b="/"+b;else if(e.path){f=e.path.lastIndexOf("/");f!=-1&&(b=e.path.slice(0,f+1)+b)}e.path=p.normalize(b)}}else if(b=="query"){if(c||d.query.toString()){e.query=d.query.clone();c=1}}else if(c||d[b]){e[b]=d[b];c=1}});return e},getScheme:function(){return this.scheme},setScheme:function(a){this.scheme=a;return this},getHostname:function(){return this.hostname},setHostname:function(a){this.hostname=
a;return this},setUserInfo:function(a){this.userInfo=a;return this},getUserInfo:function(){return this.userInfo},setPort:function(a){this.port=a;return this},getPort:function(){return this.port},setPath:function(a){this.path=a;return this},getPath:function(){return this.path},setQuery:function(d){"string"==typeof d&&(a.startsWith(d,"?")&&(d=d.slice(1)),d=new m(h(d,c)));this.query=d;return this},getQuery:function(){return this.query},getFragment:function(){return this.fragment},setFragment:function(d){a.startsWith(d,
"#")&&(d=d.slice(1));this.fragment=d;return this},isSameOriginAs:function(a){return this.hostname.toLowerCase()==a.hostname.toLowerCase()&&this.scheme.toLowerCase()==a.scheme.toLowerCase()&&this.port.toLowerCase()==a.port.toLowerCase()},toString:function(d){var c=[],b,e;if(b=this.scheme)c.push(h(b,g)),c.push(":");if(b=this.hostname){c.push("//");if(e=this.userInfo)c.push(h(e,g)),c.push("@");c.push(encodeURIComponent(b));if(e=this.port)c.push(":"),c.push(e)}if(e=this.path)b&&!a.startsWith(e,"/")&&
(e="/"+e),e=p.normalize(e),c.push(h(e,n));if(d=this.query.toString.call(this.query,d))c.push("?"),c.push(d);if(d=this.fragment)c.push("#"),c.push(h(d,f));return c.join("")}};b.Query=m;b.getComponents=function(d){var c=(d||"").match(o)||[],b={};a.each(j,function(a,d){b[d]=c[a]});return b};a.Uri=b})(KISSY);
(function(a,e){function i(a){var c=0;return parseFloat(a.replace(/\./g,function(){return 0===c++?".":""}))}function m(a,c){var b;c.trident=0.1;if((b=a.match(/Trident\/([\d.]*)/))&&b[1])c.trident=i(b[1]);c.core="trident"}function h(a){var c,b;return(c=a.match(/MSIE ([^;]*)|Trident.*; rv ([0-9.]+)/))&&(b=c[1]||c[2])?i(b):0}function b(a){var c,b="",f="",k,g=[6,9],j,o=n&&n.createElement("div"),F=[],r={webkit:e,trident:e,gecko:e,presto:e,chrome:e,safari:e,firefox:e,ie:e,opera:e,mobile:e,core:e,shell:e,
phantomjs:e,os:e,ipad:e,iphone:e,ipod:e,ios:e,android:e,nodejs:e};o&&(o.innerHTML="<\!--[if IE {{version}}]><s></s><![endif]--\>".replace("{{version}}",""),F=o.getElementsByTagName("s"));if(0<F.length){m(a,r);k=g[0];for(g=g[1];k<=g;k++)if(o.innerHTML="<\!--[if IE {{version}}]><s></s><![endif]--\>".replace("{{version}}",k),0<F.length){r[f="ie"]=k;break}if(!r.ie&&(j=h(a)))r[f="ie"]=j}else if((k=a.match(/AppleWebKit\/([\d.]*)/))&&k[1]){r[b="webkit"]=i(k[1]);if((k=a.match(/OPR\/(\d+\.\d+)/))&&k[1])r[f=
"opera"]=i(k[1]);else if((k=a.match(/Chrome\/([\d.]*)/))&&k[1])r[f="chrome"]=i(k[1]);else if((k=a.match(/\/([\d.]*) Safari/))&&k[1])r[f="safari"]=i(k[1]);if(/ Mobile\//.test(a)&&a.match(/iPad|iPod|iPhone/)){r.mobile="apple";if((k=a.match(/OS ([^\s]*)/))&&k[1])r.ios=i(k[1].replace("_","."));c="ios";if((k=a.match(/iPad|iPod|iPhone/))&&k[0])r[k[0].toLowerCase()]=r.ios}else if(/ Android/.test(a)){if(/Mobile/.test(a)&&(c=r.mobile="android"),(k=a.match(/Android ([^\s]*);/))&&k[1])r.android=i(k[1])}else if(k=
a.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/))r.mobile=k[0].toLowerCase();if((k=a.match(/PhantomJS\/([^\s]*)/))&&k[1])r.phantomjs=i(k[1])}else if((k=a.match(/Presto\/([\d.]*)/))&&k[1]){if(r[b="presto"]=i(k[1]),(k=a.match(/Opera\/([\d.]*)/))&&k[1]){r[f="opera"]=i(k[1]);if((k=a.match(/Opera\/.* Version\/([\d.]*)/))&&k[1])r[f]=i(k[1]);if((k=a.match(/Opera Mini[^;]*/))&&k)r.mobile=k[0].toLowerCase();else if((k=a.match(/Opera Mobi[^;]*/))&&k)r.mobile=k[0]}}else if(j=h(a))r[f="ie"]=j,m(a,r);else if(k=
a.match(/Gecko/)){r[b="gecko"]=0.1;if((k=a.match(/rv:([\d.]*)/))&&k[1])r[b]=i(k[1]),/Mobile|Tablet/.test(a)&&(p.mobile="firefox");if((k=a.match(/Firefox\/([\d.]*)/))&&k[1])r[f="firefox"]=i(k[1])}c||(/windows|win32/i.test(a)?c="windows":/macintosh|mac_powerpc/i.test(a)?c="macintosh":/linux/i.test(a)?c="linux":/rhino/i.test(a)&&(c="rhino"));r.os=c;r.core=r.core||b;r.shell=f;return r}var g=a.Env.host,n=g.document,g=g.navigator,c=KISSY.UA=b(g&&g.userAgent||"");if("object"===typeof process){var f,o;if((f=
process.versions)&&(o=f.node))c.os=process.platform,c.nodejs=i(o)}c.getDescriptorFromUserAgent=b;var p="webkit,trident,gecko,presto,chrome,safari,firefox,ie,opera".split(",");f=n&&n.documentElement;var j="";f&&(a.each(p,function(a){var b=c[a];b&&(j+=" ks-"+a+(parseInt(b)+""),j+=" ks-"+a)}),a.trim(j)&&(f.className=a.trim(f.className+j)))})(KISSY);
(function(a){var e=a.Env,i=e.host,m=a.UA,h=i.document||{},b="ontouchstart"in h&&!m.phantomjs,g=(h=h.documentMode)||m.ie,n=(e.nodejs&&"object"===typeof global?global:i).JSON;h&&9>h&&(n=0);a.Features={isTouchSupported:function(){return b},isDeviceMotionSupported:function(){return!!i.DeviceMotionEvent},isHashChangeSupported:function(){return"onhashchange"in i&&(!g||7<g)},isNativeJSONSupported:function(){return n}}})(KISSY);(function(a){(a.Loader={}).Status={INIT:0,LOADING:1,LOADED:2,ERROR:3,ATTACHED:4}})(KISSY);
(function(a){function e(a){if("string"==typeof a)return i(a);for(var c=[],b=0,f=a.length;b<f;b++)c[b]=i(a[b]);return c}function i(a){"/"==a.charAt(a.length-1)&&(a+="index");return a}var m=a.Loader,h=a.Path,b=a.Env.host,g=a.startsWith,n=m.Status,c=n.ATTACHED,f=n.LOADED,o=n.ERROR,p=m.Utils={},j=b.document;a.mix(p,{docHead:function(){return j.getElementsByTagName("head")[0]||j.documentElement},normalDepModuleName:function(a,c){var b=0,f;if(!c)return c;if("string"==typeof c)return g(c,"../")||g(c,"./")?
h.resolve(h.dirname(a),c):h.normalize(c);for(f=c.length;b<f;b++)c[b]=p.normalDepModuleName(a,c[b]);return c},createModulesInfo:function(c,b){a.each(b,function(a){p.createModuleInfo(c,a)})},createModuleInfo:function(c,b,f){var b=i(b),e=c.Env.mods,k=e[b];return k?k:e[b]=k=new m.Module(a.mix({name:b,runtime:c},f))},isAttached:function(d,b){var f;a:{var e=d.Env.mods,k,g;f=a.makeArray(b);for(g=0;g<f.length;g++)if(k=e[f[g]],!k||k.status!==c){f=0;break a}f=1}return f},getModules:function(d,b){var f=[d],
e,k,g,j,h=d.Env.mods;a.each(b,function(b){e=h[b];if(!e||"css"!=e.getType())k=p.unalias(d,b),(g=a.reduce(k,function(a,d){j=h[d];return a&&j&&j.status==c},!0))?f.push(h[k[0]].value):f.push(null)});return f},attachModsRecursively:function(a,c,b,f){var b=b||[],e,g=1,j=a.length,h=b.length;for(e=0;e<j;e++)g=p.attachModRecursively(a[e],c,b,f)&&g,b.length=h;return g},attachModRecursively:function(d,b,e,g){var k,j=b.Env.mods[d];if(!j)return 0;k=j.status;if(k==c)return 1;k==o&&g.push(j);if(k!=f)return 0;if(a.inArray(d,
e))return e.push(d),0;e.push(d);return p.attachModsRecursively(j.getNormalizedRequires(),b,e,g)?(p.attachMod(b,j),1):0},attachMod:function(a,b){if(b.status==f){var e=b.fn;b.value="function"===typeof e?e.apply(b,p.getModules(a,b.getRequiresWithAlias())):e;b.status=c}},getModNamesAsArray:function(a){"string"==typeof a&&(a=a.replace(/\s+/g,"").split(","));return a},normalizeModNames:function(a,c,b){return p.unalias(a,p.normalizeModNamesWithAlias(a,c,b))},unalias:function(a,c){for(var b=[].concat(c),
f,k,g,j=0,h,i=a.Env.mods;!j;){j=1;for(f=b.length-1;0<=f;f--)if((k=i[b[f]])&&(g=k.alias)){j=0;for(h=g.length-1;0<=h;h--)g[h]||g.splice(h,1);b.splice.apply(b,[f,1].concat(e(g)))}}return b},normalizeModNamesWithAlias:function(a,c,b){var a=[],f,k;if(c){f=0;for(k=c.length;f<k;f++)c[f]&&a.push(e(c[f]))}b&&(a=p.normalDepModuleName(b,a));return a},registerModule:function(c,b,e,g){var b=i(b),k=c.Env.mods,j=k[b];if(!j||!j.fn)p.createModuleInfo(c,b),j=k[b],a.mix(j,{name:b,status:f,fn:e}),a.mix(j,g)},getMappedPath:function(a,
c,b){for(var a=b||a.Config.mappedRules||[],f,b=0;b<a.length;b++)if(f=a[b],c.match(f[0]))return c.replace(f[0],f[1]);return c}})})(KISSY);
(function(a){function e(a,b){return b in a?a[b]:a.runtime.Config[b]}function i(c){a.mix(this,c)}function m(c){this.status=h.Status.INIT;a.mix(this,c);this.callbacks=[]}var h=a.Loader,b=a.Path,g=h.Utils;a.augment(i,{reset:function(c){a.mix(this,c)},getTag:function(){return e(this,"tag")},getName:function(){return this.name},getBase:function(){return e(this,"base")},getPrefixUriForCombo:function(){var a=this.getName();return this.getBase()+(a&&!this.isIgnorePackageNameInUri()?a+"/":"")},getPackageUri:function(){return this.packageUri?
this.packageUri:this.packageUri=new a.Uri(this.getPrefixUriForCombo())},getBaseUri:function(){return e(this,"baseUri")},isDebug:function(){return e(this,"debug")},isIgnorePackageNameInUri:function(){return e(this,"ignorePackageNameInUri")},getCharset:function(){return e(this,"charset")},isCombine:function(){return e(this,"combine")},getGroup:function(){return e(this,"group")}});h.Package=i;a.augment(m,{addCallback:function(a){this.callbacks.push(a)},notifyAll:function(){for(var a,b=this.callbacks.length,
e=0;e<b;e++){a=this.callbacks[e];try{a(this)}catch(g){setTimeout(function(){throw g;},0)}}this.callbacks=[]},setValue:function(a){this.value=a},getType:function(){var a=this.type;a||(this.type=a=".css"==b.extname(this.name).toLowerCase()?"css":"js");return a},getFullPath:function(){var a,f,e,h;if(!this.fullpath){f=this.getPackage();a=f.getBaseUri();h=this.getPath();if(f.isIgnorePackageNameInUri()&&(e=f.getName()))h=b.relative(e,h);f=a.resolve(h);if(a=this.getTag())a+="."+this.getType(),f.query.set("t",
a);this.fullpath=g.getMappedPath(this.runtime,f.toString())}return this.fullpath},getPath:function(){var a;if(!(a=this.path)){a=this.name;var f="."+this.getType(),e="-min";a=b.join(b.dirname(a),b.basename(a,f));this.getPackage().isDebug()&&(e="");a=this.path=a+e+f}return a},getValue:function(){return this.value},getName:function(){return this.name},getPackage:function(){var b;if(!(b=this.packageInfo)){b=this.name;var f=this.runtime.config("packages"),e="",g;for(g in f)a.startsWith(b,g)&&g.length>
e.length&&(e=g);b=this.packageInfo=f[e]||n}return b},getTag:function(){return this.tag||this.getPackage().getTag()},getCharset:function(){return this.charset||this.getPackage().getCharset()},getRequiredMods:function(){var b=this.runtime;return a.map(this.getNormalizedRequires(),function(a){return g.createModuleInfo(b,a)})},getRequiresWithAlias:function(){var a=this.requiresWithAlias,b=this.requires;if(!b||0==b.length)return b||[];a||(this.requiresWithAlias=a=g.normalizeModNamesWithAlias(this.runtime,
b,this.name));return a},getNormalizedRequires:function(){var a,b=this.normalizedRequiresStatus,e=this.status,h=this.requires;if(!h||0==h.length)return h||[];if((a=this.normalizedRequires)&&b==e)return a;this.normalizedRequiresStatus=e;return this.normalizedRequires=g.normalizeModNames(this.runtime,h,this.name)}});h.Module=m;var n=new h.Package({name:"",runtime:a})})(KISSY);
(function(a){function e(){for(var g in b){var n=b[g],c=n.node,f,o=0;if(m.webkit)c.sheet&&(o=1);else if(c.sheet)try{c.sheet.cssRules&&(o=1)}catch(p){f=p.name,"NS_ERROR_DOM_SECURITY_ERR"==f&&(o=1)}o&&(n.callback&&n.callback.call(c),delete b[g])}h=a.isEmptyObject(b)?0:setTimeout(e,i)}var i=30,m=a.UA,h=0,b={};a.mix(a.Loader.Utils,{pollCss:function(a,i){var c;c=b[a.href]={};c.node=a;c.callback=i;h||e()}})})(KISSY);
(function(a){var e=require("fs"),i=require("vm");a.mix(a,{getScript:function(m,h,b){var g;a.isPlainObject(h)&&(b=h.charset,g=h.error,h=h.success);if(a.startsWith(a.Path.extname(m).toLowerCase(),".css"))h&&h();else{var n=(new a.Uri(m)).getPath();try{var c=e.readFileSync(n,b);i.runInThisContext("(function(KISSY,require){"+c+"})",m)(a,require);h&&h()}catch(f){g&&g(f)}}}})})(KISSY);
(function(a,e){function i(b){b=b.replace(/\\/g,"/");"/"!=b.charAt(b.length-1)&&(b+="/");g?b=g.resolve(b):(a.startsWith(b,"file:")||(b="file:"+b),b=new a.Uri(b));return b}var m=a.Loader,h=m.Utils,b=a.Env.host.location,g,n,c=a.Config.fns;if(!a.UA.nodejs&&b&&(n=b.href))g=new a.Uri(n);c.map=function(a){var b=this.Config;return!1===a?b.mappedRules=[]:b.mappedRules=(b.mappedRules||[]).concat(a||[])};c.mapCombo=function(a){var b=this.Config;return!1===a?b.mappedComboRules=[]:b.mappedComboRules=(b.mappedComboRules||
[]).concat(a||[])};c.packages=function(b){var c,g=this.Config,j=g.packages=g.packages||{};return b?(a.each(b,function(b,e){c=b.name||e;var f=i(b.base||b.path);b.name=c;b.base=f.toString();b.baseUri=f;b.runtime=a;delete b.path;j[c]?j[c].reset(b):j[c]=new m.Package(b)}),e):!1===b?(g.packages={},e):j};c.modules=function(b){var c=this,e=c.Env;b&&a.each(b,function(b,d){h.createModuleInfo(c,d,b);a.mix(e.mods[d],b)})};c.base=function(a){var b=this.Config;if(!a)return b.base;a=i(a);b.base=a.toString();b.baseUri=
a;return e}})(KISSY);
(function(a,e){function i(b,c){a.mix(this,{runtime:b,requireLoadedMods:{},waitingModules:c})}var m,h,b,g,n=e,c,f,o,p,j;m=a.Loader;h=m.Status;b=m.Utils;g=a.UA;f=h.LOADING;o=h.LOADED;p=h.ERROR;j=h.ATTACHED;a.augment(i,{use:function(a){var b,c=a.length;for(b=0;b<c;b++)this.loadModule(a[b])},loadModRequires:function(a){var b=this.requireLoadedMods,c=a.name;b[c]||(b[c]=1,a=a.getNormalizedRequires(),this.use(a))},loadModule:function(a){var c=this,e=c.waitingModules,g,k,h=b.createModuleInfo(c.runtime,a);
g=h.status;g==j||g==p||(g===o?c.loadModRequires(h):(k=e.contains(a),k||(h.addCallback(function(){c.loadModRequires(h);e.remove(a);e.notifyAll()}),e.add(a),g<f&&c.fetchModule(h))))},fetchModule:function(d){function l(){d.fn||(d.status=p);d.notifyAll()}var h=this.runtime,j=d.getName(),k=d.getCharset(),i=d.getFullPath(),m=g.ie,o="css"==d.getType();d.status=f;m&&!o&&(c=j);a.getScript(i,{attrs:m?{"data-mod-name":j}:e,success:function(){o?b.registerModule(h,j,a.noop):n&&(b.registerModule(h,j,n.fn,n.config),
n=e);a.later(l)},error:l,charset:k})}});i.add=function(d,e,f,h){if("function"===typeof d)if(f=e,e=d,g.ie){var d=a.Env.host.document.getElementsByTagName("script"),k,j,i;for(j=d.length-1;0<=j;j--)if(i=d[j],"interactive"==i.readyState){k=i;break}d=k?k.getAttribute("data-mod-name"):c;b.registerModule(h,d,e,f);c=null}else n={fn:e,config:f}};m.SimpleLoader=i})(KISSY);
(function(a){function e(b,c,d){var e=b&&b.length,f=[],g=[];a.each(b,function(b){a.getScript(b.fullpath,{success:function(){g.push(b);--e||c(g,f)},error:function(){f.push(b);--e||c(g,f)},charset:d})})}function i(b,c){a.mix(this,{runtime:b,waitingModules:c})}function m(b){a.each(b,function(b){var c=[];a.each(b.mods,function(a){a.status==o&&c.push(a.name)})})}function h(a,b){for(var a=a.split(/\//),b=b.split(/\//),c=Math.min(a.length,b.length),d=0;d<c&&a[d]===b[d];d++);return a.slice(0,d).join("/")+
"/"}function b(a){var b=5381,c;for(c=a.length;-1<--c;)b=(b<<5)+b+a.charCodeAt(c);return b+""}var g=a.Loader,n=g.Status,c=g.Utils,f=n.LOADING,o=n.LOADED,p=n.ERROR,j=a.now(),d=n.ATTACHED;i.groupTag=j;a.augment(i,{use:function(b){var d=this.runtime,b=a.keys(this.calculate(b));c.createModulesInfo(d,b);b=this.getComboUrls(b);a.each(b.css,function(b){e(b,function(b,e){m(b);a.each(b,function(b){a.each(b.mods,function(b){c.registerModule(d,b.getName(),a.noop);b.notifyAll()})});a.each(e,function(b){a.each(b.mods,
function(a){a.status=p;a.notifyAll()})})},b.charset)});a.each(b.js,function(b){e(b,function(c){m(c);a.each(b,function(b){a.each(b.mods,function(a){a.fn||(a.status=p);a.notifyAll()})})},b.charset)})},calculate:function(a,b,e){var g,h,j,i,m=this.waitingModules,n=this.runtime,e=e||{},b=b||{};for(g=0;g<a.length;g++)h=a[g],b[h]||(b[h]=1,j=c.createModuleInfo(n,h),i=j.status,i!==p&&(i!=o&&i!=d&&!m.contains(h)&&(i!=f&&(j.status=f,e[h]=1),j.addCallback(function(a){m.remove(a.getName());m.notifyAll()}),m.add(h)),
this.calculate(j.getNormalizedRequires(),b,e)));return e},getComboMods:function(b,d){for(var e={},f,g=this.runtime,i=0,m=b.length,n,o,p,w,y,v,t,s,A;i<m;++i){n=b[i];n=c.createModuleInfo(g,n);p=n.getType();A=n.getFullPath();o=n.getPackage();t=o.getName();y=o.getCharset();w=o.getTag();s=o.getGroup();v=o.getPrefixUriForCombo();f=o.getPackageUri();var u=t;(n.canBeCombined=o.isCombine()&&a.startsWith(A,v))&&s?(u=s+"_"+y+"_"+j,(o=d[u])?o.isSameOriginAs(f)?o.setPath(h(o.getPath(),f.getPath())):(u=t,d[t]=
f):d[u]=f.clone()):d[t]=f;f=e[p]=e[p]||{};(p=f[u])?1==p.tags.length&&p.tags[0]==w||p.tags.push(w):(p=f[u]=[],p.charset=y,p.tags=[w]);p.push(n)}return e},getComboUrls:function(a){var d=this.runtime,e=d.Config,f=e.comboPrefix,g=e.comboSep,h=e.comboMaxFileNum,j=e.comboMaxUrlLength,i={},a=this.getComboMods(a,i),m={},n;for(n in a){m[n]={};for(var o in a[n]){var p=[],v=[],t=a[n][o],s=t.tags,A=(s=1<s.length?b(s.join("")):s[0])?"?t="+encodeURIComponent(s)+"."+n:"",s=A.length,u=i[o].toString(),J=u.length,
H=u+f,B=m[n][o]=[],u=H.length;B.charset=t.charset;B.mods=[];for(var I=function(){B.push({fullpath:c.getMappedPath(d,H+p.join(g)+A,e.mappedComboRules),mods:v})},D=0;D<t.length;D++){var C=t[D];B.mods.push(C);var E=C.getFullPath();if(C.canBeCombined){if(E=E.slice(J).replace(/\?.*$/,""),p.push(E),v.push(C),p.length>h||u+p.join(g).length+s>j)p.pop(),v.pop(),I(),p=[],v=[],D--}else B.push({fullpath:E,mods:[C]})}p.length&&I()}}return m}});g.ComboLoader=i})(KISSY);
(function(a,e){function i(b){a.mix(this,{fn:b,waitMods:{}})}function m(b){var c=b.src||"";if(!c.match(p))return 0;var b=(b=b.getAttribute("data-config"))?(new Function("return "+b))():{},f=b.comboPrefix=b.comboPrefix||"??",g=b.comboSep=b.comboSep||",",h,k=c.indexOf(f);-1==k?h=c.replace(o,"$1"):(h=c.substring(0,k),"/"!=h.charAt(h.length-1)&&(h+="/"),c=c.substring(k+f.length).split(g),a.each(c,function(a){return a.match(p)?(h+=a.replace(o,"$1"),!1):e}));return a.mix({base:h},b)}function h(){var a=g.host.document.getElementsByTagName("script"),
b,c;for(b=a.length-1;0<=b;b--)if(c=m(a[b]))return c;return null}var b=KISSY.Loader,g=a.Env,n=b.Utils,c=b.SimpleLoader,f=b.ComboLoader;i.prototype={constructor:i,notifyAll:function(){var b=this.fn;b&&a.isEmptyObject(this.waitMods)&&(this.fn=null,b())},add:function(a){this.waitMods[a]=1},remove:function(a){delete this.waitMods[a]},contains:function(a){return this.waitMods[a]}};b.WaitingModules=i;a.mix(a,{add:function(b,d,e){"string"==typeof b?n.registerModule(a,b,d,e):c.add(b,d,e,a)},use:function(b,
d){function g(){var c=[];n.attachModsRecursively(m,a,e,c)?d&&(p?d.apply(a,n.getModules(a,b)):setTimeout(function(){d.apply(a,n.getModules(a,b))},0)):c.length?o&&(p?o.apply(a,c):setTimeout(function(){o.apply(a,c)},0)):(z.fn=g,k.use(m))}var h=a.Config,m,k,o,p,z=new i(g);a.isPlainObject(d)&&(p=d.sync,o=d.error,d=d.success);b=n.getModNamesAsArray(b);b=n.normalizeModNamesWithAlias(a,b);m=n.unalias(a,b);k=h.combine&&!a.UA.nodejs?new f(a,z):new c(a,z);p?z.notifyAll():setTimeout(function(){z.notifyAll()},
0);return a},require:function(b){return n.getModules(a,n.normalizeModNamesWithAlias(a,[b]))[1]}});var o=/^(.*)(seed|kissy)(?:-min)?\.js[^/]*/i,p=/(seed|kissy)(?:-min)?\.js/i;a.UA.nodejs?a.config({charset:"utf-8",base:__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"}):a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40,charset:"utf-8",tag:"20130725155557"},h()));g.mods={}})(KISSY);
(function(a,e){function i(){b&&!h.nodejs&&q(m,d,i);c.resolve(a)}var m=a.Env.host,h=a.UA,b=m.document,g=b&&b.documentElement,n=m.location,c=new a.Defer,f=c.promise,o=/^#?([\w-]+)$/,p=/\S/,j=!(!b||!b.addEventListener),d="load",l=j?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},q=j?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent("on"+b,c)};a.mix(a,{isWindow:function(a){return null!=a&&a==a.window},parseXML:function(a){if(a.documentElement)return a;
var b;try{m.DOMParser?b=(new DOMParser).parseFromString(a,"text/xml"):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async=!1,b.loadXML(a))}catch(c){b=e}!b||!b.documentElement||b.getElementsByTagName("parsererror");return b},globalEval:function(a){a&&p.test(a)&&(m.execScript||function(a){m.eval.call(m,a)})(a)},ready:function(a){f.done(a);return this},available:function(c,d){var c=(c+"").match(o)[1],e=1,f,g=a.later(function(){((f=b.getElementById(c))&&(d(f)||1)||500<++e)&&g.cancel()},40,!0)}});if(n&&-1!==
(n.search||"").indexOf("ks-debug"))a.Config.debug=!0;(function(){if(!b||"complete"===b.readyState)i();else if(l(m,d,i),j){var a=function(){q(b,"DOMContentLoaded",a);i()};l(b,"DOMContentLoaded",a)}else{var c=function(){"complete"===b.readyState&&(q(b,"readystatechange",c),i())};l(b,"readystatechange",c);var e,f=g&&g.doScroll;try{e=null===m.frameElement}catch(h){e=!1}if(f&&e){var n=function(){try{f("left"),i()}catch(a){setTimeout(n,40)}};n()}}})();if(h.ie)try{b.execCommand("BackgroundImageCache",!1,
!0)}catch(x){}})(KISSY,void 0);(function(a){a.config({modules:{core:{alias:"dom,event,ajax,anim,base,node,json,ua,cookie".split(",")}}});if("undefined"!=typeof location){var e=a.startsWith(location.href,"https")?"https://s.tbcdn.cn/s/kissy/":"http://a.tbcdn.cn/s/kissy/";a.config({packages:{gallery:{base:e},mobile:{base:e}}})}})(KISSY);
(function(a,e,i){a({ajax:{requires:["dom","json","event"]}});a({anim:{requires:["dom","event"]}});a({base:{requires:["event/custom"]}});a({button:{requires:["component/base","event"]}});a({calendar:{requires:["node","event"]}});a({color:{requires:["base"]}});a({combobox:{requires:["dom","component/base","node","menu","ajax"]}});a({"component/base":{requires:["rich-base","node","event"]}});a({"component/extension":{requires:["dom","node"]}});a({"component/plugin/drag":{requires:["rich-base","dd/base"]}});
a({"component/plugin/resize":{requires:["resizable"]}});a({datalazyload:{requires:["dom","event","base"]}});a({dd:{alias:["dd/base","dd/droppable"]}});a({"dd/base":{requires:["dom","node","event","rich-base","base"]}});a({"dd/droppable":{requires:["dd/base","dom","node","rich-base"]}});a({"dd/plugin/constrain":{requires:["base","node"]}});a({"dd/plugin/proxy":{requires:["node","base","dd/base"]}});a({"dd/plugin/scroll":{requires:["dd/base","base","node","dom"]}});a({dom:{alias:["dom/base",i.ie&&(9>
i.ie||9>document.documentMode)?"dom/ie":""]}});a({"dom/ie":{requires:["dom/base"]}});a({editor:{requires:["node","htmlparser","component/base","core"]}});a({event:{alias:["event/base","event/dom","event/custom"]}});a({"event/custom":{requires:["event/base"]}});a({"event/dom":{alias:["event/dom/base",e.isTouchSupported()?"event/dom/touch":"",e.isDeviceMotionSupported()?"event/dom/shake":"",e.isHashChangeSupported()?"":"event/dom/hashchange",9>i.ie?"event/dom/ie":"",i.ie?"":"event/dom/focusin"]}});
a({"event/dom/base":{requires:["dom","event/base"]}});a({"event/dom/focusin":{requires:["event/dom/base"]}});a({"event/dom/hashchange":{requires:["event/dom/base","dom"]}});a({"event/dom/ie":{requires:["event/dom/base","dom"]}});a({"event/dom/shake":{requires:["event/dom/base"]}});a({"event/dom/touch":{requires:["event/dom/base","dom"]}});a({imagezoom:{requires:["node","overlay"]}});a({json:{requires:[KISSY.Features.isNativeJSONSupported()?"":"json/json2"]}});a({kison:{requires:["base"]}});a({menu:{requires:["component/extension",
"node","component/base","event"]}});a({menubutton:{requires:["node","menu","button","component/base"]}});a({mvc:{requires:["event","base","ajax","json","node"]}});a({node:{requires:["dom","event/dom","anim"]}});a({overlay:{requires:["node","component/base","component/extension","event"]}});a({resizable:{requires:["node","rich-base","dd/base"]}});a({"rich-base":{requires:["base"]}});a({separator:{requires:["component/base"]}});a({"split-button":{requires:["component/base","button","menubutton"]}});
a({stylesheet:{requires:["dom"]}});a({swf:{requires:["dom","json","base"]}});a({switchable:{requires:["dom","event","anim",KISSY.Features.isTouchSupported()?"dd/base":""]}});a({tabs:{requires:["button","toolbar","component/base"]}});a({toolbar:{requires:["component/base","node"]}});a({tree:{requires:["node","component/base","event"]}});a({waterfall:{requires:["node","base"]}});a({xtemplate:{alias:["xtemplate/facade"]}});a({"xtemplate/compiler":{requires:["xtemplate/runtime"]}});a({"xtemplate/facade":{requires:["xtemplate/runtime",
"xtemplate/compiler"]}})})(function(a){KISSY.config("modules",a)},KISSY.Features,KISSY.UA);(function(a){(function(a){a.add("empty",a.noop);a.add("promise",function(){return a.Promise});a.add("ua",function(){return a.UA});a.add("uri",function(){return a.Uri});a.add("path",function(){return a.Path})})(KISSY);a.UA.nodejs&&(a.KISSY=a,module.exports=a)})(KISSY);
