/*
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(l,f){var g,e,b=this,d,p=i.Config,k=p.fns;i.isObject(l)?i.each(l,function(a,c){(d=k[c])?d.call(b,a):p[c]=a}):(g=k[l],f===a?e=g?g.call(b):p[l]:g?e=g.call(b,f):p[l]=f);return e},log:function(l,f,g){if(i.Config.debug&&(g&&(l=g+": "+l),e.console!==a&&console.log))console[f&&console[f]?f:"log"](l)},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,d){var c;b?c=b(a):(i.prototype=a,c=new i);c.constructor=d;return c}function l(d,n,c,j,q,b){if(!n||!d)return d;var h,p,g,i;n[f]=d;b.push(n);g=a.keys(n);i=g.length;for(h=0;h<i;h++)if(p=g[h],p!=f){var m=d,r=n,G=c,x=j,y=q,w=b;if(G||!(p in m)||y){var u=m[p],t=r[p];if(u===t)u===e&&(m[p]=u);else if(x&&(t=x.call(r,p,t)),y&&t&&(a.isArray(t)||a.isPlainObject(t)))t[f]?m[p]=t[f]:(r=u&&(a.isArray(u)||a.isPlainObject(u))?u:a.isArray(t)?[]:{},m[p]=r,l(r,t,G,x,o,w));else if(t!==
e&&(G||!(p in m)))m[p]=t}}return d}var f="__MIX_CIRCULAR",g=this,o=!0,b=Object.create,d=!{toString:1}.propertyIsEnumerable("toString"),p="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(a,d){for(var c in d)a[c]=d[c]})(a,{stamp:function(d,n,c){var c=c||"__~ks_stamped",j=d[c];if(!j&&!n)try{j=d[c]=a.guid(c)}catch(q){j=e}return j},keys:function(a){var n=[],c,j;for(c in a)n.push(c);if(d)for(j=p.length-1;0<=j;j--)c=p[j],a.hasOwnProperty(c)&&
n.push(c);return n},mix:function(d,n,c,j,q){"object"===typeof c&&(j=c.whitelist,q=c.deep,c=c.overwrite);if(j&&"function"!==typeof j)var b=j,j=function(c,j){return a.inArray(c,b)?j:e};c===e&&(c=o);var h=[],p=0;for(l(d,n,c,j,q,h);n=h[p++];)delete n[f];return d},merge:function(d){var d=a.makeArray(arguments),n={},c,j=d.length;for(c=0;c<j;c++)a.mix(n,d[c]);return n},augment:function(d,n){var c=a.makeArray(arguments),j=c.length-2,q=1,b=c[j],h=c[j+1];a.isArray(h)||(b=h,h=e,j++);"boolean"!==typeof b&&(b=
e,j++);for(;q<j;q++)a.mix(d.prototype,c[q].prototype||c[q],b,h);return d},extend:function(d,n,c,j){if(!n||!d)return d;var q=n.prototype,b;b=m(q,d);d.prototype=a.mix(b,d.prototype);d.superclass=m(q,n);c&&a.mix(b,c);j&&a.mix(d,j);return d},namespace:function(){var d=a.makeArray(arguments),n=d.length,c=null,j,q,b,h=d[n-1]===o&&n--;for(j=0;j<n;j++){b=(""+d[j]).split(".");c=h?g:this;for(q=g[b[0]]===c?1:0;q<b.length;++q)c=c[b[q]]=c[b[q]]||{}}return c}})})(KISSY);
(function(a,e){var i=Array.prototype,m=i.indexOf,l=i.lastIndexOf,f=i.filter,g=i.every,o=i.some,b=i.map;a.mix(a,{each:function(d,b,k){if(d){var n,c,j=0;n=d&&d.length;c=n===e||"function"===a.type(d);k=k||null;if(c)for(c=a.keys(d);j<c.length&&!(n=c[j],!1===b.call(k,d[n],n,d));j++);else for(c=d[0];j<n&&!1!==b.call(k,c,j,d);c=d[++j]);}return d},indexOf:m?function(a,b){return m.call(b,a)}:function(a,b){for(var k=0,n=b.length;k<n;++k)if(b[k]===a)return k;return-1},lastIndexOf:l?function(a,b){return l.call(b,
a)}:function(a,b){for(var k=b.length-1;0<=k&&b[k]!==a;k--);return k},unique:function(d,b){var k=d.slice();b&&k.reverse();for(var n=0,c,j;n<k.length;){for(j=k[n];(c=a.lastIndexOf(j,k))!==n;)k.splice(c,1);n+=1}b&&k.reverse();return k},inArray:function(d,b){return-1<a.indexOf(d,b)},filter:f?function(a,b,k){return f.call(a,b,k||this)}:function(d,b,k){var n=[];a.each(d,function(c,a,d){b.call(k||this,c,a,d)&&n.push(c)});return n},map:b?function(a,f,k){return b.call(a,f,k||this)}:function(a,b,k){for(var n=
a.length,c=Array(n),j=0;j<n;j++){var q="string"==typeof a?a.charAt(j):a[j];if(q||j in a)c[j]=b.call(k||this,q,j,a)}return c},reduce:function(a,b,k){var n=a.length;if("function"!==typeof b)throw new TypeError("callback is not function!");if(0===n&&2==arguments.length)throw new TypeError("arguments invalid");var c=0,j;if(3<=arguments.length)j=arguments[2];else{do{if(c in a){j=a[c++];break}c+=1;if(c>=n)throw new TypeError;}while(1)}for(;c<n;)c in a&&(j=b.call(e,j,a[c],c,a)),c++;return j},every:g?function(a,
b,k){return g.call(a,b,k||this)}:function(a,b,k){for(var n=a&&a.length||0,c=0;c<n;c++)if(c in a&&!b.call(k,a[c],c,a))return!1;return!0},some:o?function(a,b,k){return o.call(a,b,k||this)}:function(a,b,k){for(var n=a&&a.length||0,c=0;c<n;c++)if(c in a&&b.call(k,a[c],c,a))return!0;return!1},makeArray:function(b){if(null==b)return[];if(a.isArray(b))return b;var f=typeof b.length,k=typeof b;if("number"!=f||b.alert||"string"==k||"function"==k&&!("item"in b&&"number"==f))return[b];for(var f=[],k=0,n=b.length;k<
n;k++)f[k]=b[k];return f}})})(KISSY);
(function(a,e){function i(a){var b=typeof a;return null==a||"object"!==b&&"function"!==b}function m(){if(b)return b;var d=f;a.each(g,function(a){d+=a+"|"});d=d.slice(0,-1);return b=RegExp(d,"g")}function l(){if(d)return d;var b=f;a.each(o,function(a){b+=a+"|"});b+="&#(\\d{1,5});";return d=RegExp(b,"g")}var f="",g={"&amp;":"&","&gt;":">","&lt;":"<","&#x60;":"`","&#x2F;":"/","&quot;":'"',"&#x27;":"'"},o={},b,d,p=/[\-#$\^*()+\[\]{}|\\,.?\s]/g;(function(){for(var a in g)o[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,c){return String.fromCharCode(parseInt(c,16))})},escapeHtml:function(a){return(a+"").replace(m(),function(a){return o[a]})},escapeRegExp:function(a){return a.replace(p,"\\$&")},unEscapeHtml:function(a){return a.replace(l(),function(a,c){return g[a]||String.fromCharCode(+c)})},param:function(b,d,c,j){d=d||"&";c=c||"=";j===e&&(j=!0);var q=[],s,h,g,p,l,o=
a.urlEncode;for(s in b)if(l=b[s],s=o(s),i(l))q.push(s),l!==e&&q.push(c,o(l+f)),q.push(d);else if(a.isArray(l)&&l.length){h=0;for(p=l.length;h<p;++h)g=l[h],i(g)&&(q.push(s,j?o("[]"):f),g!==e&&q.push(c,o(g+f)),q.push(d))}q.pop();return q.join(f)},unparam:function(b,d,c){if("string"!=typeof b||!(b=a.trim(b)))return{};for(var c=c||"=",j={},q,f=a.urlDecode,b=b.split(d||"&"),h=0,g=b.length;h<g;++h){q=b[h].indexOf(c);if(-1==q)d=f(b[h]),q=e;else{d=f(b[h].substring(0,q));q=b[h].substring(q+1);try{q=f(q)}catch(l){}a.endsWith(d,
"[]")&&(d=d.substring(0,d.length-2))}d in j?a.isArray(j[d])?j[d].push(q):j[d]=[j[d],q]:j[d]=q}return j}});a.escapeHTML=a.escapeHtml;a.unEscapeHTML=a.unEscapeHtml})(KISSY);
(function(a){function e(a,e,l){var f=[].slice,g=f.call(arguments,3),o=function(){},b=function(){var b=f.call(arguments);return e.apply(this instanceof o?this:l,a?b.concat(g):g.concat(b))};o.prototype=e.prototype;b.prototype=new o;return b}a.mix(a,{noop:function(){},bind:e(0,e,null,0),rbind:e(0,e,null,1),later:function(e,m,l,f,g){var m=m||0,o=e,b=a.makeArray(g),d;"string"==typeof e&&(o=f[e]);e=function(){o.apply(f,b)};d=l?setInterval(e,m):setTimeout(e,m);return{id:d,interval:l,cancel:function(){this.interval?
clearInterval(d):clearTimeout(d)}}},throttle:function(e,m,l){m=m||150;if(-1===m)return function(){e.apply(l||this,arguments)};var f=a.now();return function(){var g=a.now();g-f>m&&(f=g,e.apply(l||this,arguments))}},buffer:function(e,m,l){function f(){f.stop();g=a.later(e,m,0,l||this,arguments)}m=m||150;if(-1===m)return function(){e.apply(l||this,arguments)};var g=null;f.stop=function(){g&&(g.cancel(),g=0)};return f}})})(KISSY);
(function(a,e){function i(b,d,e){var k=b,n,c,j,q;if(!b)return k;if(b[g])return e[b[g]].destination;if("object"===typeof b){q=b.constructor;if(a.inArray(q,[Boolean,String,Number,Date,RegExp]))k=new q(b.valueOf());else if(n=a.isArray(b))k=d?a.filter(b,d):b.concat();else if(c=a.isPlainObject(b))k={};b[g]=q=a.guid();e[q]={destination:k,input:b}}if(n)for(b=0;b<k.length;b++)k[b]=i(k[b],d,e);else if(c)for(j in b)if(j!==g&&(!d||d.call(b,b[j],j,b)!==f))k[j]=i(b[j],d,e);return k}function m(b,d,f,g){if(b[o]===
d&&d[o]===b)return l;b[o]=d;d[o]=b;var n=function(c,a){return null!==c&&c!==e&&c[a]!==e},c;for(c in d)!n(b,c)&&n(d,c)&&f.push("expected has key '"+c+"', but missing from actual.");for(c in b)!n(d,c)&&n(b,c)&&f.push("expected missing key '"+c+"', but present in actual.");for(c in d)c!=o&&(a.equals(b[c],d[c],f,g)||g.push("'"+c+"' was '"+(d[c]?d[c].toString():d[c])+"' in expected, but was '"+(b[c]?b[c].toString():b[c])+"' in actual."));a.isArray(b)&&a.isArray(d)&&b.length!=d.length&&g.push("arrays were not the same length");
delete b[o];delete d[o];return 0===f.length&&0===g.length}var l=!0,f=!1,g="__~ks_cloned",o="__~ks_compared";a.mix(a,{equals:function(a,d,f,g){f=f||[];g=g||[];return a===d?l:a===e||null===a||d===e||null===d?null==a&&null==d:a instanceof Date&&d instanceof Date?a.getTime()==d.getTime():"string"==typeof a&&"string"==typeof d||"number"===typeof a&&"number"===typeof d?a==d:"object"===typeof a&&"object"===typeof d?m(a,d,f,g):a===d},clone:function(b,d){var f={},k=i(b,d,f);a.each(f,function(a){a=a.input;
if(a[g])try{delete a[g]}catch(c){a[g]=e}});f=null;return k},now:Date.now||function(){return+new Date}})})(KISSY);
(function(a,e){var i=/^[\s\xa0]+|[\s\xa0]+$/g,m=String.prototype.trim,l=/\\?\{([^{}]+)\}/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,o){return"string"!=typeof a||!g?a:a.replace(o||l,function(a,d){return"\\"===a.charAt(0)?a.slice(1):g[d]===e?"":g[d]})},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,l=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[l.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(f){if(!f||"object"!==a.type(f)||f.nodeType||f.window==f)return!1;var g,l;try{if((l=f.constructor)&&!m.hasOwnProperty.call(f,
"constructor")&&!m.hasOwnProperty.call(l.prototype,"isPrototypeOf"))return!1}catch(b){return!1}for(g in f);return g===e||m.hasOwnProperty.call(f,g)}});a.each("Boolean,Number,String,Function,Array,Date,RegExp,Object".split(","),function(f,g){i["[object "+f+"]"]=g=f.toLowerCase();a["is"+f]=function(f){return a.type(f)==g}})})(KISSY);
(function(a,e){function i(a,c,j){if(a instanceof g)return j(a[p]);var b=a[p];if(a=a[k])a.push([c,j]);else if(l(b))i(b,c,j);else return c&&c(b);return e}function m(a){if(!(this instanceof m))return new m(a);this.promise=a||new f}function l(a){return a&&a instanceof f}function f(a){this[p]=a;a===e&&(this[k]=[])}function g(a){if(a instanceof g)return a;f.apply(this,arguments);return this}function o(a,c,j){function b(a){try{return c?c(a):a}catch(j){return new g(j)}}function d(a){try{return j?j(a):new g(a)}catch(c){return new g(c)}}
function h(a){k||(k=1,e.resolve(b(a)))}var e=new m,k=0;a instanceof f?i(a,h,function(a){k||(k=1,e.resolve(d(a)))}):h(a);return e.promise}function b(a){return!d(a)&&l(a)&&a[k]===e&&(!l(a[p])||b(a[p]))}function d(a){return l(a)&&a[k]===e&&a[p]instanceof g}var p="__promise_value",k="__promise_pendings";m.prototype={constructor:m,resolve:function(b){var c=this.promise,j;if(!(j=c[k]))return null;c[p]=b;j=[].concat(j);c[k]=e;a.each(j,function(a){i(c,a[0],a[1])});return b},reject:function(a){return this.resolve(new g(a))}};
f.prototype={constructor:f,then:function(a,c){return o(this,a,c)},fail:function(a){return o(this,0,a)},fin:function(a){return o(this,function(c){return a(c,!0)},function(c){return a(c,!1)})},done:function(a,c){(a||c?this.then(a,c):this).fail(function(a){setTimeout(function(){throw a;},0)})},isResolved:function(){return b(this)},isRejected:function(){return d(this)}};a.extend(g,f);KISSY.Defer=m;KISSY.Promise=f;f.Defer=m;a.mix(f,{when:o,isPromise:l,isResolved:b,isRejected:d,all:function(a){var c=a.length;
if(!c)return null;for(var j=m(),b=0;b<a.length;b++)(function(b,d){o(b,function(b){a[d]=b;0===--c&&j.resolve(a)},function(a){j.reject(a)})})(a[b],b);return j.promise}})})(KISSY);
(function(a){function e(a,f){for(var g=0,e=a.length-1,b=[],d;0<=e;e--)d=a[e],"."!=d&&(".."===d?g++:g?g--:b[b.length]=d);if(f)for(;g--;g)b[b.length]="..";return b=b.reverse()}var i=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,m={resolve:function(){var l="",f,g=arguments,i,b=0;for(f=g.length-1;0<=f&&!b;f--)i=g[f],"string"==typeof i&&i&&(l=i+"/"+l,b="/"==i.charAt(0));l=e(a.filter(l.split("/"),function(a){return!!a}),!b).join("/");return(b?"/":"")+l||"."},normalize:function(l){var f=
"/"==l.charAt(0),g="/"==l.slice(-1),l=e(a.filter(l.split("/"),function(a){return!!a}),!f).join("/");!l&&!f&&(l=".");l&&g&&(l+="/");return(f?"/":"")+l},join:function(){var e=a.makeArray(arguments);return m.normalize(a.filter(e,function(a){return a&&"string"==typeof a}).join("/"))},relative:function(e,f){var e=m.normalize(e),f=m.normalize(f),g=a.filter(e.split("/"),function(a){return!!a}),i=[],b,d,p=a.filter(f.split("/"),function(a){return!!a});d=Math.min(g.length,p.length);for(b=0;b<d&&g[b]==p[b];b++);
for(d=b;b<g.length;)i.push(".."),b++;i=i.concat(p.slice(d));return i=i.join("/")},basename:function(a,f){var e;e=(a.match(i)||[])[3]||"";f&&e&&e.slice(-1*f.length)==f&&(e=e.slice(0,-1*f.length));return e},dirname:function(a){var f=a.match(i)||[],a=f[1]||"",f=f[2]||"";if(!a&&!f)return".";f&&(f=f.substring(0,f.length-1));return a+f},extname:function(a){return(a.match(i)||[])[4]||""}};a.Path=m})(KISSY);
(function(a,e){function i(c){c._queryMap||(c._queryMap=a.unparam(c._query))}function m(a){this._query=a||""}function l(a,j){return encodeURI(a).replace(j,function(a){a=a.charCodeAt(0).toString(16);return"%"+(1==a.length?"0"+a:a)})}function f(c){if(c instanceof f)return c.clone();var j=this;a.mix(j,{scheme:"",userInfo:"",hostname:"",port:"",path:"",query:"",fragment:""});c=f.getComponents(c);a.each(c,function(c,b){c=c||"";if("query"==b)j.query=new m(c);else{try{c=a.urlDecode(c)}catch(d){}j[b]=c}});
return j}var g=/[#\/\?@]/g,o=/[#\?]/g,b=/[#@]/g,d=/#/g,p=RegExp("^(?:([\\w\\d+.-]+):)?(?://(?:([^/?#@]*)@)?([\\w\\d\\-\\u0100-\\uffff.+%]*|\\[[^\\]]+\\])(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),k=a.Path,n={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 c=0,j,b;i(this);j=this._queryMap;for(b in j)a.isArray(j[b])?
c+=j[b].length:c++;return c},has:function(c){var j;i(this);j=this._queryMap;return c?c in j:!a.isEmptyObject(j)},get:function(a){var j;i(this);j=this._queryMap;return a?j[a]:j},keys:function(){i(this);return a.keys(this._queryMap)},set:function(c,j){var b;i(this);b=this._queryMap;"string"==typeof c?this._queryMap[c]=j:(c instanceof m&&(c=c.get()),a.each(c,function(a,c){b[c]=a}));return this},remove:function(a){i(this);a?delete this._queryMap[a]:this._queryMap={};return this},add:function(c,j){var b=
this,d,h;a.isObject(c)?(c instanceof m&&(c=c.get()),a.each(c,function(a,c){b.add(c,a)})):(i(b),d=b._queryMap,h=d[c],h=h===e?j:[].concat(h).concat(j),d[c]=h);return b},toString:function(c){i(this);return a.param(this._queryMap,e,e,c)}};f.prototype={constructor:f,clone:function(){var c=new f,b=this;a.each(n,function(a,d){c[d]=b[d]});c.query=c.query.clone();return c},resolve:function(c){"string"==typeof c&&(c=new f(c));var b=0,d,e=this.clone();a.each("scheme,userInfo,hostname,port,path,query,fragment".split(","),
function(h){if(h=="path")if(b)e[h]=c[h];else{if(h=c.path){b=1;if(!a.startsWith(h,"/"))if(e.hostname&&!e.path)h="/"+h;else if(e.path){d=e.path.lastIndexOf("/");d!=-1&&(h=e.path.slice(0,d+1)+h)}e.path=k.normalize(h)}}else if(h=="query"){if(b||c.query.toString()){e.query=c.query.clone();b=1}}else if(b||c[h]){e[h]=c[h];b=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(c){"string"==typeof c&&(a.startsWith(c,"?")&&(c=c.slice(1)),c=new m(l(c,b)));this.query=c;return this},getQuery:function(){return this.query},getFragment:function(){return this.fragment},setFragment:function(c){a.startsWith(c,
"#")&&(c=c.slice(1));this.fragment=c;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(c){var b=[],q,e;if(q=this.scheme)b.push(l(q,g)),b.push(":");if(q=this.hostname){b.push("//");if(e=this.userInfo)b.push(l(e,g)),b.push("@");b.push(encodeURIComponent(q));if(e=this.port)b.push(":"),b.push(e)}if(e=this.path)q&&!a.startsWith(e,"/")&&
(e="/"+e),e=k.normalize(e),b.push(l(e,o));if(c=this.query.toString.call(this.query,c))b.push("?"),b.push(c);if(c=this.fragment)b.push("#"),b.push(l(c,d));return b.join("")}};f.Query=m;f.getComponents=function(c){var b=(c||"").match(p)||[],d={};a.each(n,function(a,c){d[c]=b[a]});return d};a.Uri=f})(KISSY);
(function(a,e){function i(a){var b=0;return parseFloat(a.replace(/\./g,function(){return 0===b++?".":""}))}function m(a,b){var d;b.trident=0.1;if((d=a.match(/Trident\/([\d.]*)/))&&d[1])b.trident=i(d[1]);b.core="trident"}function l(a){var b,d;return(b=a.match(/MSIE ([^;]*)|Trident.*; rv ([0-9.]+)/))&&(d=b[1]||b[2])?i(d):0}function f(a){var b,d="",f="",h,g=[6,9],n,p=o&&o.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};p&&(p.innerHTML="<\!--[if IE {{version}}]><s></s><![endif]--\>".replace("{{version}}",""),F=p.getElementsByTagName("s"));if(0<F.length){m(a,r);h=g[0];for(g=g[1];h<=g;h++)if(p.innerHTML="<\!--[if IE {{version}}]><s></s><![endif]--\>".replace("{{version}}",h),0<F.length){r[f="ie"]=h;break}if(!r.ie&&(n=l(a)))r[f="ie"]=n}else if((h=a.match(/AppleWebKit\/([\d.]*)/))&&h[1]){r[d="webkit"]=i(h[1]);if((h=a.match(/OPR\/(\d+\.\d+)/))&&h[1])r[f=
"opera"]=i(h[1]);else if((h=a.match(/Chrome\/([\d.]*)/))&&h[1])r[f="chrome"]=i(h[1]);else if((h=a.match(/\/([\d.]*) Safari/))&&h[1])r[f="safari"]=i(h[1]);if(/ Mobile\//.test(a)&&a.match(/iPad|iPod|iPhone/)){r.mobile="apple";if((h=a.match(/OS ([^\s]*)/))&&h[1])r.ios=i(h[1].replace("_","."));b="ios";if((h=a.match(/iPad|iPod|iPhone/))&&h[0])r[h[0].toLowerCase()]=r.ios}else if(/ Android/.test(a)){if(/Mobile/.test(a)&&(b=r.mobile="android"),(h=a.match(/Android ([^\s]*);/))&&h[1])r.android=i(h[1])}else if(h=
a.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/))r.mobile=h[0].toLowerCase();if((h=a.match(/PhantomJS\/([^\s]*)/))&&h[1])r.phantomjs=i(h[1])}else if((h=a.match(/Presto\/([\d.]*)/))&&h[1]){if(r[d="presto"]=i(h[1]),(h=a.match(/Opera\/([\d.]*)/))&&h[1]){r[f="opera"]=i(h[1]);if((h=a.match(/Opera\/.* Version\/([\d.]*)/))&&h[1])r[f]=i(h[1]);if((h=a.match(/Opera Mini[^;]*/))&&h)r.mobile=h[0].toLowerCase();else if((h=a.match(/Opera Mobi[^;]*/))&&h)r.mobile=h[0]}}else if(n=l(a))r[f="ie"]=n,m(a,r);else if(h=
a.match(/Gecko/)){r[d="gecko"]=0.1;if((h=a.match(/rv:([\d.]*)/))&&h[1])r[d]=i(h[1]),/Mobile|Tablet/.test(a)&&(k.mobile="firefox");if((h=a.match(/Firefox\/([\d.]*)/))&&h[1])r[f="firefox"]=i(h[1])}b||(/windows|win32/i.test(a)?b="windows":/macintosh|mac_powerpc/i.test(a)?b="macintosh":/linux/i.test(a)?b="linux":/rhino/i.test(a)&&(b="rhino"));r.os=b;r.core=r.core||d;r.shell=f;return r}var g=a.Env.host,o=g.document,g=g.navigator,b=KISSY.UA=f(g&&g.userAgent||"");if("object"===typeof process){var d,p;if((d=
process.versions)&&(p=d.node))b.os=process.platform,b.nodejs=i(p)}b.getDescriptorFromUserAgent=f;var k="webkit,trident,gecko,presto,chrome,safari,firefox,ie,opera".split(",");d=o&&o.documentElement;var n="";d&&(a.each(k,function(a){var d=b[a];d&&(n+=" ks-"+a+(parseInt(d)+""),n+=" ks-"+a)}),a.trim(n)&&(d.className=a.trim(d.className+n)))})(KISSY);
(function(a){var e=a.Env,i=e.host,m=a.UA,l=i.document||{},f="ontouchstart"in l&&!m.phantomjs,g=(l=l.documentMode)||m.ie,o=(e.nodejs&&"object"===typeof global?global:i).JSON;l&&9>l&&(o=0);a.Features={isTouchSupported:function(){return f},isDeviceMotionSupported:function(){return!!i.DeviceMotionEvent},isHashChangeSupported:function(){return"onhashchange"in i&&(!g||7<g)},isNativeJSONSupported:function(){return o}}})(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 b=[],d=0,e=a.length;d<e;d++)b[d]=i(a[d]);return b}function i(a){"/"==a.charAt(a.length-1)&&(a+="index");return a}var m=a.Loader,l=a.Path,f=a.Env.host,g=a.startsWith,o=m.Status,b=o.ATTACHED,d=o.LOADED,p=o.ERROR,k=m.Utils={},n=f.document;a.mix(k,{docHead:function(){return n.getElementsByTagName("head")[0]||n.documentElement},normalDepModuleName:function(a,b){var d=0,e;if(!b)return b;if("string"==typeof b)return g(b,"../")||g(b,"./")?
l.resolve(l.dirname(a),b):l.normalize(b);for(e=b.length;d<e;d++)b[d]=k.normalDepModuleName(a,b[d]);return b},createModulesInfo:function(b,d){a.each(d,function(a){k.createModuleInfo(b,a)})},createModuleInfo:function(b,d,e){var d=i(d),f=b.Env.mods,h=f[d];return h?h:f[d]=h=new m.Module(a.mix({name:d,runtime:b},e))},isAttached:function(c,d){var e;a:{var f=c.Env.mods,h,g;e=a.makeArray(d);for(g=0;g<e.length;g++)if(h=f[e[g]],!h||h.status!==b){e=0;break a}e=1}return e},getModules:function(c,d){var e=[c],
f,h,g,n,i=c.Env.mods;a.each(d,function(d){f=i[d];if(!f||"css"!=f.getType())h=k.unalias(c,d),(g=a.reduce(h,function(a,c){n=i[c];return a&&n&&n.status==b},!0))?e.push(i[h[0]].value):e.push(null)});return e},attachModsRecursively:function(a,b,d,e){var d=d||[],h,f=1,g=a.length,n=d.length;for(h=0;h<g;h++)f=k.attachModRecursively(a[h],b,d,e)&&f,d.length=n;return f},attachModRecursively:function(c,j,e,f){var h,g=j.Env.mods[c];if(!g)return 0;h=g.status;if(h==b)return 1;h==p&&f.push(g);if(h!=d)return 0;if(a.inArray(c,
e))return e.push(c),0;e.push(c);return k.attachModsRecursively(g.getNormalizedRequires(),j,e,f)?(k.attachMod(j,g),1):0},attachMod:function(a,j){if(j.status==d){var e=j.fn;j.value="function"===typeof e?e.apply(j,k.getModules(a,j.getRequiresWithAlias())):e;j.status=b}},getModNamesAsArray:function(a){"string"==typeof a&&(a=a.replace(/\s+/g,"").split(","));return a},normalizeModNames:function(a,b,d){return k.unalias(a,k.normalizeModNamesWithAlias(a,b,d))},unalias:function(a,b){for(var d=[].concat(b),
f,h,g,n=0,k,i=a.Env.mods;!n;){n=1;for(f=d.length-1;0<=f;f--)if((h=i[d[f]])&&(g=h.alias)){n=0;for(k=g.length-1;0<=k;k--)g[k]||g.splice(k,1);d.splice.apply(d,[f,1].concat(e(g)))}}return d},normalizeModNamesWithAlias:function(a,b,d){var a=[],f,h;if(b){f=0;for(h=b.length;f<h;f++)b[f]&&a.push(e(b[f]))}d&&(a=k.normalDepModuleName(d,a));return a},registerModule:function(b,j,e,f){var j=i(j),h=b.Env.mods,g=h[j];if(!g||!g.fn)k.createModuleInfo(b,j),g=h[j],a.mix(g,{name:j,status:d,fn:e}),a.mix(g,f)},getMappedPath:function(a,
b,d){for(var a=d||a.Config.mappedRules||[],e,d=0;d<a.length;d++)if(e=a[d],b.match(e[0]))return b.replace(e[0],e[1]);return b}})})(KISSY);
(function(a){function e(a,d){return d in a?a[d]:a.runtime.Config[d]}function i(b){a.mix(this,b)}function m(b){this.status=l.Status.INIT;a.mix(this,b);this.callbacks=[]}var l=a.Loader,f=a.Path,g=l.Utils;a.augment(i,{reset:function(b){a.mix(this,b)},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")}});l.Package=i;a.augment(m,{addCallback:function(a){this.callbacks.push(a)},notifyAll:function(){for(var a,d=this.callbacks.length,
e=0;e<d;e++){a=this.callbacks[e];try{a(this)}catch(f){setTimeout(function(){throw f;},0)}}this.callbacks=[]},setValue:function(a){this.value=a},getType:function(){var a=this.type;a||(this.type=a=".css"==f.extname(this.name).toLowerCase()?"css":"js");return a},getFullPath:function(){var a,d,e,k;if(!this.fullpath){d=this.getPackage();a=d.getBaseUri();k=this.getPath();if(d.isIgnorePackageNameInUri()&&(e=d.getName()))k=f.relative(e,k);d=a.resolve(k);if(a=this.getTag())a+="."+this.getType(),d.query.set("t",
a);this.fullpath=g.getMappedPath(this.runtime,d.toString())}return this.fullpath},getPath:function(){var a;if(!(a=this.path)){a=this.name;var d="."+this.getType(),e="-min";a=f.join(f.dirname(a),f.basename(a,d));this.getPackage().isDebug()&&(e="");a=this.path=a+e+d}return a},getValue:function(){return this.value},getName:function(){return this.name},getPackage:function(){var b;if(!(b=this.packageInfo)){b=this.name;var d=this.runtime.config("packages"),e="",f;for(f in d)a.startsWith(b,f)&&f.length>
e.length&&(e=f);b=this.packageInfo=d[e]||o}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,d=this.requires;if(!d||0==d.length)return d||[];a||(this.requiresWithAlias=a=g.normalizeModNamesWithAlias(this.runtime,
d,this.name));return a},getNormalizedRequires:function(){var a,d=this.normalizedRequiresStatus,e=this.status,f=this.requires;if(!f||0==f.length)return f||[];if((a=this.normalizedRequires)&&d==e)return a;this.normalizedRequiresStatus=e;return this.normalizedRequires=g.normalizeModNames(this.runtime,f,this.name)}});l.Module=m;var o=new l.Package({name:"",runtime:a})})(KISSY);
(function(a){function e(){for(var g in f){var o=f[g],b=o.node,d,p=0;if(m.webkit)b.sheet&&(p=1);else if(b.sheet)try{b.sheet.cssRules&&(p=1)}catch(k){d=k.name,"NS_ERROR_DOM_SECURITY_ERR"==d&&(p=1)}p&&(o.callback&&o.callback.call(b),delete f[g])}l=a.isEmptyObject(f)?0:setTimeout(e,i)}var i=30,m=a.UA,l=0,f={};a.mix(a.Loader.Utils,{pollCss:function(a,i){var b;b=f[a.href]={};b.node=a;b.callback=i;l||e()}})})(KISSY);
(function(a){var e=a.Env.host.document,i=a.Loader.Utils,m=a.Path,l={},f=536>a.UA.webkit;a.mix(a,{getScript:function(g,o,b){function d(){var a=s.readyState;if(!a||"loaded"==a||"complete"==a)s.onreadystatechange=s.onload=null,h(0)}var p=o,k=0,n,c,j,q;a.startsWith(m.extname(g).toLowerCase(),".css")&&(k=1);a.isPlainObject(p)&&(o=p.success,n=p.error,c=p.timeout,b=p.charset,j=p.attrs);p=l[g]=l[g]||[];p.push([o,n]);if(1<p.length)return p.node;var o=i.docHead(),s=e.createElement(k?"link":"script");j&&a.each(j,
function(a,b){s.setAttribute(b,a)});b&&(s.charset=b);k?(s.href=g,s.rel="stylesheet"):(s.src=g,s.async=!0);p.node=s;var h=function(b){var c;if(q){q.cancel();q=void 0}a.each(l[g],function(a){(c=a[b])&&c.call(s)});delete l[g]},b="onload"in s;k&&f&&(b=!1);b?(s.onload=d,s.onerror=function(){s.onerror=null;h(1)}):k?i.pollCss(s,function(){h(0)}):s.onreadystatechange=d;c&&(q=a.later(function(){h(1)},1E3*c));k?o.appendChild(s):o.insertBefore(s,o.firstChild);return s}})})(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,l=m.Utils,f=a.Env.host.location,g,o,b=a.Config.fns;if(!a.UA.nodejs&&f&&(o=f.href))g=new a.Uri(o);b.map=function(a){var b=this.Config;return!1===a?b.mappedRules=[]:b.mappedRules=(b.mappedRules||[]).concat(a||[])};b.mapCombo=function(a){var b=this.Config;return!1===a?b.mappedComboRules=[]:b.mappedComboRules=(b.mappedComboRules||
[]).concat(a||[])};b.packages=function(b){var f,g=this.Config,n=g.packages=g.packages||{};return b?(a.each(b,function(b,d){f=b.name||d;var e=i(b.base||b.path);b.name=f;b.base=e.toString();b.baseUri=e;b.runtime=a;delete b.path;n[f]?n[f].reset(b):n[f]=new m.Package(b)}),e):!1===b?(g.packages={},e):n};b.modules=function(b){var e=this,f=e.Env;b&&a.each(b,function(b,c){l.createModuleInfo(e,c,b);a.mix(f.mods[c],b)})};b.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,d){a.mix(this,{runtime:b,requireLoadedMods:{},waitingModules:d})}var m,l,f,g,o=e,b,d,p,k,n;m=a.Loader;l=m.Status;f=m.Utils;g=a.UA;d=l.LOADING;p=l.LOADED;k=l.ERROR;n=l.ATTACHED;a.augment(i,{use:function(a){var b,d=a.length;for(b=0;b<d;b++)this.loadModule(a[b])},loadModRequires:function(a){var b=this.requireLoadedMods,d=a.name;b[d]||(b[d]=1,a=a.getNormalizedRequires(),this.use(a))},loadModule:function(a){var b=this,e=b.waitingModules,g,h,i=f.createModuleInfo(b.runtime,a);
g=i.status;g==n||g==k||(g===p?b.loadModRequires(i):(h=e.contains(a),h||(i.addCallback(function(){b.loadModRequires(i);e.remove(a);e.notifyAll()}),e.add(a),g<d&&b.fetchModule(i))))},fetchModule:function(c){function j(){c.fn||(c.status=k);c.notifyAll()}var n=this.runtime,i=c.getName(),h=c.getCharset(),l=c.getFullPath(),m=g.ie,p="css"==c.getType();c.status=d;m&&!p&&(b=i);a.getScript(l,{attrs:m?{"data-mod-name":i}:e,success:function(){p?f.registerModule(n,i,a.noop):o&&(f.registerModule(n,i,o.fn,o.config),
o=e);a.later(j)},error:j,charset:h})}});i.add=function(c,d,e,n){if("function"===typeof c)if(e=d,d=c,g.ie){var c=a.Env.host.document.getElementsByTagName("script"),h,i,k;for(i=c.length-1;0<=i;i--)if(k=c[i],"interactive"==k.readyState){h=k;break}c=h?h.getAttribute("data-mod-name"):b;f.registerModule(n,c,d,e);b=null}else o={fn:d,config:e}};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==p&&c.push(a.name)})})}function l(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 f(a){var b=5381,c;for(c=a.length;-1<--c;)b=(b<<5)+b+a.charCodeAt(c);return b+""}var g=a.Loader,o=g.Status,b=g.Utils,d=o.LOADING,p=o.LOADED,k=o.ERROR,n=a.now(),c=o.ATTACHED;i.groupTag=n;a.augment(i,{use:function(c){var d=this.runtime,c=a.keys(this.calculate(c));b.createModulesInfo(d,c);c=this.getComboUrls(c);a.each(c.css,function(c){e(c,function(c,e){m(c);a.each(c,function(c){a.each(c.mods,function(c){b.registerModule(d,c.getName(),a.noop);c.notifyAll()})});a.each(e,function(b){a.each(b.mods,
function(a){a.status=k;a.notifyAll()})})},c.charset)});a.each(c.js,function(b){e(b,function(c){m(c);a.each(b,function(b){a.each(b.mods,function(a){a.fn||(a.status=k);a.notifyAll()})})},b.charset)})},calculate:function(a,e,f){var h,g,n,i,l=this.waitingModules,m=this.runtime,f=f||{},e=e||{};for(h=0;h<a.length;h++)g=a[h],e[g]||(e[g]=1,n=b.createModuleInfo(m,g),i=n.status,i!==k&&(i!=p&&i!=c&&!l.contains(g)&&(i!=d&&(n.status=d,f[g]=1),n.addCallback(function(a){l.remove(a.getName());l.notifyAll()}),l.add(g)),
this.calculate(n.getNormalizedRequires(),e,f)));return f},getComboMods:function(c,d){for(var e={},f,g=this.runtime,i=0,k=c.length,m,o,p,x,y,w,u,t,A;i<k;++i){m=c[i];m=b.createModuleInfo(g,m);p=m.getType();A=m.getFullPath();o=m.getPackage();u=o.getName();y=o.getCharset();x=o.getTag();t=o.getGroup();w=o.getPrefixUriForCombo();f=o.getPackageUri();var v=u;(m.canBeCombined=o.isCombine()&&a.startsWith(A,w))&&t?(v=t+"_"+y+"_"+n,(o=d[v])?o.isSameOriginAs(f)?o.setPath(l(o.getPath(),f.getPath())):(v=u,d[u]=
f):d[v]=f.clone()):d[u]=f;f=e[p]=e[p]||{};(p=f[v])?1==p.tags.length&&p.tags[0]==x||p.tags.push(x):(p=f[v]=[],p.charset=y,p.tags=[x]);p.push(m)}return e},getComboUrls:function(a){var c=this.runtime,d=c.Config,e=d.comboPrefix,g=d.comboSep,n=d.comboMaxFileNum,i=d.comboMaxUrlLength,k={},a=this.getComboMods(a,k),l={},m;for(m in a){l[m]={};for(var o in a[m]){var p=[],w=[],u=a[m][o],t=u.tags,A=(t=1<t.length?f(t.join("")):t[0])?"?t="+encodeURIComponent(t)+"."+m:"",t=A.length,v=k[o].toString(),J=v.length,
H=v+e,B=l[m][o]=[],v=H.length;B.charset=u.charset;B.mods=[];for(var I=function(){B.push({fullpath:b.getMappedPath(c,H+p.join(g)+A,d.mappedComboRules),mods:w})},D=0;D<u.length;D++){var C=u[D];B.mods.push(C);var E=C.getFullPath();if(C.canBeCombined){if(E=E.slice(J).replace(/\?.*$/,""),p.push(E),w.push(C),p.length>n||v+p.join(g).length+t>i)p.pop(),w.pop(),I(),p=[],w=[],D--}else B.push({fullpath:E,mods:[C]})}p.length&&I()}}return l}});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(k))return 0;var b=(b=b.getAttribute("data-config"))?(new Function("return "+b))():{},d=b.comboPrefix=b.comboPrefix||"??",f=b.comboSep=b.comboSep||",",g,h=c.indexOf(d);-1==h?g=c.replace(p,"$1"):(g=c.substring(0,h),"/"!=g.charAt(g.length-1)&&(g+="/"),c=c.substring(h+d.length).split(f),a.each(c,function(a){return a.match(k)?(g+=a.replace(p,"$1"),!1):e}));return a.mix({base:g},b)}function l(){var a=g.host.document.getElementsByTagName("script"),
b,d;for(b=a.length-1;0<=b;b--)if(d=m(a[b]))return d;return null}var f=KISSY.Loader,g=a.Env,o=f.Utils,b=f.SimpleLoader,d=f.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]}};f.WaitingModules=i;a.mix(a,{add:function(d,c,e){"string"==typeof d?o.registerModule(a,d,c,e):b.add(d,c,e,a)},use:function(f,
c){function g(){var b=[];o.attachModsRecursively(l,a,e,b)?c&&(p?c.apply(a,o.getModules(a,f)):setTimeout(function(){c.apply(a,o.getModules(a,f))},0)):b.length?m&&(p?m.apply(a,b):setTimeout(function(){m.apply(a,b)},0)):(z.fn=g,h.use(l))}var k=a.Config,l,h,m,p,z=new i(g);a.isPlainObject(c)&&(p=c.sync,m=c.error,c=c.success);f=o.getModNamesAsArray(f);f=o.normalizeModNamesWithAlias(a,f);l=o.unalias(a,f);h=k.combine&&!a.UA.nodejs?new d(a,z):new b(a,z);p?z.notifyAll():setTimeout(function(){z.notifyAll()},
0);return a},require:function(b){return o.getModules(a,o.normalizeModNamesWithAlias(a,[b]))[1]}});var p=/^(.*)(seed|kissy)(?:-min)?\.js[^/]*/i,k=/(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"},l()));g.mods={}})(KISSY);
(function(a,e){function i(){f&&!l.nodejs&&q(m,c,i);b.resolve(a)}var m=a.Env.host,l=a.UA,f=m.document,g=f&&f.documentElement,o=m.location,b=new a.Defer,d=b.promise,p=/^#?([\w-]+)$/,k=/\S/,n=!(!f||!f.addEventListener),c="load",j=n?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},q=n?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&&k.test(a)&&(m.execScript||function(a){m.eval.call(m,a)})(a)},ready:function(a){d.done(a);return this},available:function(b,c){var b=(b+"").match(p)[1],d=1,e,g=a.later(function(){((e=f.getElementById(b))&&(c(e)||1)||500<++d)&&g.cancel()},40,!0)}});if(o&&-1!==
(o.search||"").indexOf("ks-debug"))a.Config.debug=!0;(function(){if(!f||"complete"===f.readyState)i();else if(j(m,c,i),n){var a=function(){q(f,"DOMContentLoaded",a);i()};j(f,"DOMContentLoaded",a)}else{var b=function(){"complete"===f.readyState&&(q(f,"readystatechange",b),i())};j(f,"readystatechange",b);var d,e=g&&g.doScroll;try{d=null===m.frameElement}catch(k){d=!1}if(e&&d){var l=function(){try{e("left"),i()}catch(a){setTimeout(l,40)}};l()}}})();if(l.ie)try{f.execCommand("BackgroundImageCache",!1,
!0)}catch(s){}})(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);
