/*
Copyright 2014, KISSY v1.43
MIT Licensed
build time: May 22 12:30
*/
var KISSY=function(a){function f(a){var g={},f;for(f in h)(function(b,d){b[d]=function(b){return i.log(b,d,a)}})(g,f);return g}var i,j=0,h={debug:10,info:20,warn:30,error:40};i={__BUILD_TIME:"20140522123037",Env:{host:this},Config:{debug:"",fns:{}},version:"1.43",config:function(c,g){var f,b,d=this,l,e=i.Config,o=e.fns;i.isObject(c)?i.each(c,function(a,b){(l=o[b])?l.call(d,a):e[b]=a}):(f=o[c],g===a?b=f?f.call(d):e[c]:f?b=f.call(d,g):e[c]=g);return b},log:function(){return a},getLogger:function(a){return f(a)},
error:function(){},guid:function(a){return(a||"")+j++},Logger:{}};i.Logger.Level={DEBUG:"debug",INFO:"info",WARN:"warn",ERROR:"error"};return i}();
(function(a,f){function i(){}function j(d,k,b,e,l,g){if(!k||!d)return d;var s,r,v,p;k[c]=d;g.push(k);v=a.keys(k);p=v.length;for(s=0;s<p;s++)if(r=v[s],r!==c){var h=d,i=k,D=b,E=e,G=l,J=g;if(D||!(r in h)||G){var x=h[r],w=i[r];if(x===w)x===f&&(h[r]=x);else if(E&&(w=E.call(i,r,w)),G&&w&&(a.isArray(w)||a.isPlainObject(w)))w[c]?h[r]=w[c]:(i=x&&(a.isArray(x)||a.isPlainObject(x))?x:a.isArray(w)?[]:{},h[r]=i,j(i,w,D,E,n,J));else if(w!==f&&(D||!(r in h)))h[r]=w}}return d}function h(a,d){return"constructor"===
a?f:d}var c="__MIX_CIRCULAR",g=this,n=!0,b=Object,d=b.create,l=!{toString:1}.propertyIsEnumerable("toString"),e="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(a,d){for(var b in d)a[b]=d[b]})(a,{stamp:function(d,b,e){var e=e||"__~ks_stamped",c=d[e];if(!c&&!b)try{c=d[e]=a.guid(e)}catch(l){c=f}return c},keys:b.keys||function(a){var d=[],b,c;for(b in a)a.hasOwnProperty(b)&&d.push(b);if(l)for(c=e.length-1;0<=c;c--)b=e[c],a.hasOwnProperty(b)&&
d.push(b);return d},mix:function(d,b,e,l,t){"object"===typeof e&&(l=e.whitelist,t=e.deep,e=e.overwrite);if(l&&"function"!==typeof l)var g=l,l=function(d,b){return a.inArray(d,g)?b:f};e===f&&(e=n);var s=[],r=0;for(j(d,b,e,l,t,s);b=s[r++];)delete b[c];return d},merge:function(d){var d=a.makeArray(arguments),b={},e,c=d.length;for(e=0;e<c;e++)a.mix(b,d[e]);return b},augment:function(d,b){var e=a.makeArray(arguments),c=e.length-2,l=1,g,s,r=e[c],v=e[c+1];e[1]=b;a.isArray(v)||(r=v,v=f,c++);"boolean"!==typeof r&&
(r=f,c++);for(;l<c;l++){s=e[l];if(g=s.prototype)s=a.mix({},g,!0,h);a.mix(d.prototype,s,r,v)}return d},extend:function(b,k,e,c){var l=k.prototype;l.constructor=k;d?k=d(l):(i.prototype=l,k=new i);k.constructor=b;b.prototype=a.mix(k,b.prototype);b.superclass=l;e&&a.mix(k,e);c&&a.mix(b,c);return b},namespace:function(){var d=a.makeArray(arguments),b=d.length,e=null,c,l,f,s=d[b-1]===n&&b--;for(c=0;c<b;c++){f=(""+d[c]).split(".");e=s?g:this;for(l=g[f[0]]===e?1:0;l<f.length;++l)e=e[f[l]]=e[f[l]]||{}}return e}})})(KISSY);
(function(a,f){var i=Array.prototype,j=i.indexOf,h=i.lastIndexOf,c=i.filter,g=i.every,n=i.some,b=i.map;a.mix(a,{each:function(d,b,e){if(d){var c,k,m=0;c=d&&d.length;k=c===f||"function"===a.type(d);e=e||null;if(k)for(k=a.keys(d);m<k.length&&!(c=k[m],!1===b.call(e,d[c],c,d));m++);else for(k=d[0];m<c&&!1!==b.call(e,k,m,d);k=d[++m]);}return d},indexOf:j?function(a,b){return j.call(b,a)}:function(a,b){for(var e=0,c=b.length;e<c;++e)if(b[e]===a)return e;return-1},lastIndexOf:h?function(a,b){return h.call(b,
a)}:function(a,b){for(var e=b.length-1;0<=e&&b[e]!==a;e--);return e},unique:function(b,c){var e=b.slice();c&&e.reverse();for(var o=0,k,m;o<e.length;){for(m=e[o];(k=a.lastIndexOf(m,e))!==o;)e.splice(k,1);o+=1}c&&e.reverse();return e},inArray:function(b,c){return-1<a.indexOf(b,c)},filter:c?function(a,b,e){return c.call(a,b,e||this)}:function(b,c,e){var o=[];a.each(b,function(a,b,d){c.call(e||this,a,b,d)&&o.push(a)});return o},map:b?function(a,c,e){return b.call(a,c,e||this)}:function(a,b,e){for(var c=
a.length,k=Array(c),m=0;m<c;m++){var g="string"===typeof a?a.charAt(m):a[m];if(g||m in a)k[m]=b.call(e||this,g,m,a)}return k},reduce:function(a,b,e){var c=a.length;if("function"!==typeof b)throw new TypeError("callback is not function!");if(0===c&&2===arguments.length)throw new TypeError("arguments invalid");var k=0,m;if(3<=arguments.length)m=e;else{do{if(k in a){m=a[k++];break}k+=1;if(k>=c)throw new TypeError;}while(1)}for(;k<c;)k in a&&(m=b.call(f,m,a[k],k,a)),k++;return m},every:g?function(a,b,
e){return g.call(a,b,e||this)}:function(a,b,e){for(var c=a&&a.length||0,k=0;k<c;k++)if(k in a&&!b.call(e,a[k],k,a))return!1;return!0},some:n?function(a,b,c){return n.call(a,b,c||this)}:function(a,b,c){for(var o=a&&a.length||0,k=0;k<o;k++)if(k in a&&b.call(c,a[k],k,a))return!0;return!1},makeArray:function(b){if(null==b)return[];if(a.isArray(b))return b;var c=typeof b.length,e=typeof b;if("number"!==c||b.alert||"string"===e||"function"===e&&!("item"in b&&"number"===c))return[b];for(var c=[],e=0,o=b.length;e<
o;e++)c[e]=b[e];return c}})})(KISSY);
(function(a,f){function i(a){var b=typeof a;return null==a||"object"!==b&&"function"!==b}function j(){if(b)return b;var d=c;a.each(g,function(a){d+=a+"|"});d=d.slice(0,-1);return b=RegExp(d,"g")}function h(){if(d)return d;var b=c;a.each(n,function(a){b+=a+"|"});b+="&#(\\d{1,5});";return d=RegExp(b,"g")}var c="",g={"&amp;":"&","&gt;":">","&lt;":"<","&#x60;":"`","&#x2F;":"/","&quot;":'"',"&#x27;":"'"},n={},b,d,l=/[\-#$\^*()+\[\]{}|\\,.?\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,b){return String.fromCharCode(parseInt(b,16))})},escapeHtml:function(a){return(a+"").replace(j(),function(a){return n[a]})},escapeRegExp:function(a){return a.replace(l,"\\$&")},unEscapeHtml:function(a){return a.replace(h(),function(a,b){return g[a]||String.fromCharCode(+b)})},param:function(b,d,k,m){d=d||"&";k=k||"=";m===f&&(m=!0);var g=[],l,h,s,r,v,p=
a.urlEncode;for(l in b)if(v=b[l],l=p(l),i(v))g.push(l),v!==f&&g.push(k,p(v+c)),g.push(d);else if(a.isArray(v)&&v.length){h=0;for(r=v.length;h<r;++h)s=v[h],i(s)&&(g.push(l,m?p("[]"):c),s!==f&&g.push(k,p(s+c)),g.push(d))}g.pop();return g.join(c)},unparam:function(b,d,c){if("string"!==typeof b||!(b=a.trim(b)))return{};for(var c=c||"=",m={},g,l=a.urlDecode,b=b.split(d||"&"),h=0,s=b.length;h<s;++h){g=b[h].indexOf(c);if(-1===g)d=l(b[h]),g=f;else{d=l(b[h].substring(0,g));g=b[h].substring(g+1);try{g=l(g)}catch(r){}a.endsWith(d,
"[]")&&(d=d.substring(0,d.length-2))}d in m?a.isArray(m[d])?m[d].push(g):m[d]=[m[d],g]:m[d]=g}return m}});a.escapeHTML=a.escapeHtml;a.unEscapeHTML=a.unEscapeHtml})(KISSY);
(function(a){function f(a,f,h){function c(){}var g=[].slice,n=g.call(arguments,3),b=function(){var b=g.call(arguments);return f.apply(this instanceof c?this:h||this,a?b.concat(n):n.concat(b))};c.prototype=f.prototype;b.prototype=new c;return b}a.mix(a,{noop:function(){},bind:f(0,f,null,0),rbind:f(0,f,null,1),later:function(f,j,h,c,g){var j=j||0,n=f,b=a.makeArray(g),d;"string"===typeof f&&(n=c[f]);f=function(){n.apply(c,b)};d=h?setInterval(f,j):setTimeout(f,j);return{id:d,interval:h,cancel:function(){this.interval?
clearInterval(d):clearTimeout(d)}}},throttle:function(f,j,h){j=j||150;if(-1===j)return function(){f.apply(h||this,arguments)};var c=a.now();return function(){var g=a.now();g-c>j&&(c=g,f.apply(h||this,arguments))}},buffer:function(f,j,h){function c(){c.stop();g=a.later(f,j,0,h||this,arguments)}j=j||150;if(-1===j)return function(){f.apply(h||this,arguments)};var g=null;c.stop=function(){g&&(g.cancel(),g=0)};return c}})})(KISSY);
(function(a,f){function i(b,d,f){var e=b,h,k,m,n;if(!b)return e;if(b[g])return f[b[g]].destination;if("object"===typeof b){n=b.constructor;if(a.inArray(n,[Boolean,String,Number,Date,RegExp]))e=new n(b.valueOf());else if(h=a.isArray(b))e=d?a.filter(b,d):b.concat();else if(k=a.isPlainObject(b))e={};b[g]=n=a.guid("c");f[n]={destination:e,input:b}}if(h)for(b=0;b<e.length;b++)e[b]=i(e[b],d,f);else if(k)for(m in b)if(m!==g&&(!d||d.call(b,b[m],m,b)!==c))e[m]=i(b[m],d,f);return e}function j(b,d,c,e){if(b[n]===
d&&d[n]===b)return h;b[n]=d;d[n]=b;var g=function(a,b){return null!==a&&a!==f&&a[b]!==f},k;for(k in d)!g(b,k)&&g(d,k)&&c.push("expected has key "+k+'", but missing from actual.');for(k in b)!g(d,k)&&g(b,k)&&c.push('expected missing key "'+k+'", but present in actual.');for(k in d)k!==n&&(a.equals(b[k],d[k],c,e)||e.push('"'+k+'" was "'+(d[k]?d[k].toString():d[k])+'" in expected, but was "'+(b[k]?b[k].toString():b[k])+'" in actual.'));a.isArray(b)&&a.isArray(d)&&b.length!==d.length&&e.push("arrays were not the same length");
delete b[n];delete d[n];return 0===c.length&&0===e.length}var h=!0,c=!1,g="__~ks_cloned",n="__~ks_compared";a.mix(a,{equals:function(a,d,c,e){c=c||[];e=e||[];return a===d?h:a===f||null===a||d===f||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?j(a,d,c,e):a===d},clone:function(b,d){var c={},e=i(b,d,c);a.each(c,function(a){a=a.input;
if(a[g])try{delete a[g]}catch(b){a[g]=f}});c=null;return e},now:Date.now||function(){return+new Date}})})(KISSY);
(function(a,f){var i=/^[\s\xa0]+|[\s\xa0]+$/g,j=String.prototype.trim,h=/\\?\{([^{}]+)\}/g;a.mix(a,{trim:j?function(a){return null==a?"":j.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,d){return"\\"===a.charAt(0)?a.slice(1):g[d]===f?"":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 f=
a.length-g.length;return 0<=f&&a.indexOf(g,f)===f}})})(KISSY);
(function(a,f){var i={},j=Object.prototype,h=j.toString;a.mix(a,{type:function(a){return null==a?""+a:i[h.call(a)]||"object"},isNull:function(a){return null===a},isUndefined:function(a){return a===f},isEmptyObject:function(a){for(var g in a)if(g!==f)return!1;return!0},isPlainObject:function(c){if(!c||"object"!==a.type(c)||c.nodeType||c.window==c)return!1;var g,h;try{if((h=c.constructor)&&!j.hasOwnProperty.call(c,"constructor")&&!j.hasOwnProperty.call(h.prototype,"isPrototypeOf"))return!1}catch(b){return!1}for(g in c);
return g===f||j.hasOwnProperty.call(c,g)}});a.each("Boolean,Number,String,Function,Date,RegExp,Object,Array".split(","),function(c,g){i["[object "+c+"]"]=g=c.toLowerCase();a["is"+c]=function(c){return a.type(c)===g}});a.isArray=Array.isArray||a.isArray})(KISSY);
(function(a){function f(){for(var a=0,b;b=i[a++];)try{b()}catch(d){setTimeout(function(){throw d;},0)}1<a&&(i=[]);j=0}var i=[],j=0;a.setImmediate=function(a){i.push(a);j||(j=1,h())};var h;if("function"===typeof setImmediate)h=function(){setImmediate(f)};else if("undefined"!==typeof process&&"function"===typeof process.nextTick)h=function(){process.nextTick(f)};else if("undefined"!==typeof MessageChannel){var c=new MessageChannel;c.port1.onmessage=function(){h=g;c.port1.onmessage=f;f()};var g=function(){c.port2.postMessage(0)};
h=function(){setTimeout(f,0);g()}}else h=function(){setTimeout(f,0)}})(KISSY);
(function(a){function f(a,c){for(var g=0,f=a.length-1,b=[],d;0<=f;f--)d=a[f],"."!==d&&(".."===d?g++:g?g--:b[b.length]=d);if(c)for(;g--;g)b[b.length]="..";return b=b.reverse()}var i=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,j=a.Path={resolve:function(){var h="",c,g=arguments,i,b=0;for(c=g.length-1;0<=c&&!b;c--)i=g[c],"string"===typeof i&&i&&(h=i+"/"+h,b="/"===i.charAt(0));h=f(a.filter(h.split("/"),function(a){return!!a}),!b).join("/");return(b?"/":"")+h||"."},normalize:function(h){var c=
"/"===h.charAt(0),g="/"===h.slice(-1),h=f(a.filter(h.split("/"),function(a){return!!a}),!c).join("/");!h&&!c&&(h=".");h&&g&&(h+="/");return(c?"/":"")+h},join:function(){var f=a.makeArray(arguments);return j.normalize(a.filter(f,function(a){return a&&"string"===typeof a}).join("/"))},relative:function(f,c){var f=j.normalize(f),c=j.normalize(c),g=a.filter(f.split("/"),function(a){return!!a}),i=[],b,d,l=a.filter(c.split("/"),function(a){return!!a});d=Math.min(g.length,l.length);for(b=0;b<d&&g[b]===l[b];b++);
for(d=b;b<g.length;)i.push(".."),b++;i=i.concat(l.slice(d));return i=i.join("/")},basename:function(a,c){var f;f=(a.match(i)||[])[3]||"";c&&f&&f.slice(-1*c.length)===c&&(f=f.slice(0,-1*c.length));return f},dirname:function(a){var c=a.match(i)||[],a=c[1]||"",c=c[2]||"";if(!a&&!c)return".";c&&(c=c.substring(0,c.length-1));return a+c},extname:function(a){return(a.match(i)||[])[4]||""}}})(KISSY);
(function(a,f){function i(b){b._queryMap||(b._queryMap=a.unparam(b._query))}function j(a){this._query=a||""}function h(a,b){return encodeURI(a).replace(b,function(a){a=a.charCodeAt(0).toString(16);return"%"+(1===a.length?"0"+a:a)})}function c(b){if(b instanceof c)return b.clone();var d=this;a.mix(d,{scheme:"",userInfo:"",hostname:"",port:"",path:"",query:"",fragment:""});b=c.getComponents(b);a.each(b,function(b,c){b=b||"";if("query"===c)d.query=new j(b);else{try{b=a.urlDecode(b)}catch(k){}d[c]=b}});
return d}var g=/[#\/\?@]/g,n=/[#\?]/g,b=/[#@]/g,d=/#/g,l=RegExp("^(?:([\\w\\d+.-]+):)?(?://(?:([^/?#@]*)@)?([\\w\\d\\-\\u0100-\\uffff.+%]*|\\[[^\\]]+\\])(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),e=a.Path,o={scheme:1,userInfo:2,hostname:3,port:4,path:5,query:6,fragment:7};j.prototype={constructor:j,clone:function(){return new j(this.toString())},reset:function(a){this._query=a||"";this._queryMap=null;return this},count:function(){var b=0,d,c;i(this);d=this._queryMap;for(c in d)a.isArray(d[c])?
b+=d[c].length:b++;return b},has:function(b){var d;i(this);d=this._queryMap;return b?b in d:!a.isEmptyObject(d)},get:function(a){var b;i(this);b=this._queryMap;return a?b[a]:b},keys:function(){i(this);return a.keys(this._queryMap)},set:function(b,d){var c;i(this);c=this._queryMap;"string"===typeof b?this._queryMap[b]=d:(b instanceof j&&(b=b.get()),a.each(b,function(a,b){c[b]=a}));return this},remove:function(a){i(this);a?delete this._queryMap[a]:this._queryMap={};return this},add:function(a,b){var d,
c;if("string"===typeof a)i(this),d=this._queryMap,c=d[a],c=c===f?b:[].concat(c).concat(b),d[a]=c;else for(d in a instanceof j&&(a=a.get()),a)this.add(d,a[d]);return this},toString:function(b){i(this);return a.param(this._queryMap,f,f,b)}};c.prototype={constructor:c,clone:function(){var b=new c,d=this;a.each(o,function(a,c){b[c]=d[c]});b.query=b.query.clone();return b},resolve:function(b){"string"===typeof b&&(b=new c(b));var d=0,f,g=this.clone();a.each("scheme,userInfo,hostname,port,path,query,fragment".split(","),
function(c){if(c==="path")if(d)g[c]=b[c];else{if(c=b.path){d=1;if(!a.startsWith(c,"/"))if(g.hostname&&!g.path)c="/"+c;else if(g.path){f=g.path.lastIndexOf("/");f!==-1&&(c=g.path.slice(0,f+1)+c)}g.path=e.normalize(c)}}else if(c==="query"){if(d||b.query.toString()){g.query=b.query.clone();d=1}}else if(d||b[c]){g[c]=b[c];d=1}});return g},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 j(h(d,b)));this.query=d;return this},getQuery:function(){return this.query},getFragment:function(){return this.fragment},setFragment:function(b){a.startsWith(b,
"#")&&(b=b.slice(1));this.fragment=b;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(b){var c=[],f,l;if(f=this.scheme)c.push(h(f,g)),c.push(":");if(f=this.hostname){c.push("//");if(l=this.userInfo)c.push(h(l,g)),c.push("@");c.push(encodeURIComponent(f));if(l=this.port)c.push(":"),c.push(l)}if(l=this.path)f&&!a.startsWith(l,"/")&&
(l="/"+l),l=e.normalize(l),c.push(h(l,n));if(b=this.query.toString.call(this.query,b))c.push("?"),c.push(b);if(b=this.fragment)c.push("#"),c.push(h(b,d));return c.join("")}};c.Query=j;c.getComponents=function(b){var d=(b||"").match(l)||[],c={};a.each(o,function(a,b){c[b]=d[a]});return c};a.Uri=c})(KISSY);
(function(a,f){function i(a){var b=0;return parseFloat(a.replace(/\./g,function(){return 0===b++?".":""}))}function j(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 h(a){var b,d;return(b=a.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(d=b[1]||b[2])?i(d):0}function c(a){var b,d="",c="",e,g=[6,9],s,r=n&&n.createElement("div"),l=[],p={webkit:f,trident:f,gecko:f,presto:f,chrome:f,safari:f,firefox:f,ie:f,ieMode:f,opera:f,mobile:f,
core:f,shell:f,phantomjs:f,os:f,ipad:f,iphone:f,ipod:f,ios:f,android:f,nodejs:f};r&&r.getElementsByTagName&&(r.innerHTML="<\!--[if IE {{version}}]><s></s><![endif]--\>".replace("{{version}}",""),l=r.getElementsByTagName("s"));if(0<l.length){j(a,p);e=g[0];for(g=g[1];e<=g;e++)if(r.innerHTML="<\!--[if IE {{version}}]><s></s><![endif]--\>".replace("{{version}}",e),0<l.length){p[c="ie"]=e;break}if(!p.ie&&(s=h(a)))p[c="ie"]=s}else if((e=a.match(/AppleWebKit\/([\d.]*)/))&&e[1]){p[d="webkit"]=i(e[1]);if((e=
a.match(/OPR\/(\d+\.\d+)/))&&e[1])p[c="opera"]=i(e[1]);else if((e=a.match(/Chrome\/([\d.]*)/))&&e[1])p[c="chrome"]=i(e[1]);else if((e=a.match(/\/([\d.]*) Safari/))&&e[1])p[c="safari"]=i(e[1]);if(/ Mobile\//.test(a)&&a.match(/iPad|iPod|iPhone/)){p.mobile="apple";if((e=a.match(/OS ([^\s]*)/))&&e[1])p.ios=i(e[1].replace("_","."));b="ios";if((e=a.match(/iPad|iPod|iPhone/))&&e[0])p[e[0].toLowerCase()]=p.ios}else if(/ Android/i.test(a)){if(/Mobile/.test(a)&&(b=p.mobile="android"),(e=a.match(/Android ([^\s]*);/))&&
e[1])p.android=i(e[1])}else if(e=a.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/))p.mobile=e[0].toLowerCase();if((e=a.match(/PhantomJS\/([^\s]*)/))&&e[1])p.phantomjs=i(e[1])}else if((e=a.match(/Presto\/([\d.]*)/))&&e[1]){if(p[d="presto"]=i(e[1]),(e=a.match(/Opera\/([\d.]*)/))&&e[1]){p[c="opera"]=i(e[1]);if((e=a.match(/Opera\/.* Version\/([\d.]*)/))&&e[1])p[c]=i(e[1]);if((e=a.match(/Opera Mini[^;]*/))&&e)p.mobile=e[0].toLowerCase();else if((e=a.match(/Opera Mobi[^;]*/))&&e)p.mobile=e[0]}}else if(s=
h(a))p[c="ie"]=s,j(a,p);else if(e=a.match(/Gecko/)){p[d="gecko"]=0.1;if((e=a.match(/rv:([\d.]*)/))&&e[1])p[d]=i(e[1]),/Mobile|Tablet/.test(a)&&(p.mobile="firefox");if((e=a.match(/Firefox\/([\d.]*)/))&&e[1])p[c="firefox"]=i(e[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"));p.os=b;p.core=p.core||d;p.shell=c;p.ieMode=p.ie&&n.documentMode||p.ie;return p}var g=a.Env.host,n=g.document,g=g.navigator,b=KISSY.UA=
c(g&&g.userAgent||"");if("object"===typeof process){var d,l;if((d=process.versions)&&(l=d.node))b.os=process.platform,b.nodejs=i(l)}b.getDescriptorFromUserAgent=c;d="webkit,trident,gecko,presto,chrome,safari,firefox,ie,opera".split(",");l=n&&n.documentElement;var e="";l&&(a.each(d,function(a){var d=b[a];d&&(e+=" ks-"+a+(parseInt(d)+""),e+=" ks-"+a)}),a.trim(e)&&(l.className=a.trim(l.className+e)))})(KISSY);
(function(a,f){function i(a){if(v[a])return v[a];if(!u||a in u)v[a]={name:a,prefix:""};else{for(var b=a.charAt(0).toUpperCase()+a.slice(1),d,e=c.length;e--;)d=c[e]+b,d in u&&(v[a]={name:d,prefix:c[e]});v[a]=v[a]||{name:a,prefix:!1}}return v[a]}var j=a.Env.host,h=a.UA,c=["","Webkit","Moz","O","ms"],g=j.document||{},n,b,d,l,e,o,k,m=g.documentElement,u,t=!0,q=!1,s="ontouchstart"in g&&!h.phantomjs,r=h.ieMode;m&&(m.querySelector&&8!==r&&(q=!0),u=m.style,a.each(c,function(a){var b=a?a+"Transition":"transition",
c=a?a+"Transform":"transform";e===f&&b in u&&(e=a,d=b);o===f&&c in u&&(o=a,l=c)}),t="classList"in m,h=j.navigator||{},n="msPointerEnabled"in h,b="pointerEnabled"in h,l&&(g=g.createElement("p"),m.insertBefore(g,m.firstChild),g.style[l]="translate3d(1px,1px,1px)",h=j.getComputedStyle(g),h=h.getPropertyValue(l)||h[l],m.removeChild(g),k=h!==f&&0<h.length&&"none"!==h));var v={};a.Features={isMsPointerSupported:function(){return n},isPointerSupported:function(){return b},isTouchEventSupported:function(){return s},
isTouchGestureSupported:function(){return s||b||n},isDeviceMotionSupported:function(){return!!j.DeviceMotionEvent},isHashChangeSupported:function(){return"onhashchange"in j&&(!r||r>7)},isTransitionSupported:function(){return e!==f},isTransformSupported:function(){return o!==f},isTransform3dSupported:function(){return k},isClassListSupported:function(){return t},isQuerySelectorSupported:function(){return!a.config("dom/selector")&&q},isIELessThan:function(a){return!!(r&&r<a)},getTransitionPrefix:function(){return e},
getTransformPrefix:function(){return o},getTransitionProperty:function(){return d},getTransformProperty:function(){return l},getVendorCssPropPrefix:function(a){return i(a).prefix},getVendorCssPropName:function(a){return i(a).name}}})(KISSY);(function(a){(a.Loader={}).Status={ERROR:-1,INIT:0,LOADING:1,LOADED:2,READY_TO_ATTACH:3,ATTACHING:4,ATTACHED:5}})(KISSY);
(function(a){function f(a){if("string"===typeof a)return i(a);for(var b=[],d=0,c=a.length;d<c;d++)b[d]=i(a[d]);return b}function i(b){"/"===b.charAt(b.length-1)&&(b+="index");a.endsWith(b,".js")&&(b=b.slice(0,-3));return b}function j(b,d){var c=d.indexOf("!");if(-1!==c){var e=d.substring(0,c),d=d.substring(c+1);a.use(e,{sync:!0,success:function(a,c){c.alias&&(d=c.alias(b,d,e))}})}return d}var h=a.Loader,c=a.Path,g=a.Env.host,n=a.startsWith,b=h.Status,d=b.ATTACHED,l=b.READY_TO_ATTACH,e=b.LOADED,o=
b.ATTACHING,k=b.ERROR,m=h.Utils={},u=g.document;a.mix(m,{docHead:function(){return u.getElementsByTagName("head")[0]||u.documentElement},normalDepModuleName:function(a,b){var d=0,e;if(!b)return b;if("string"===typeof b)return n(b,"../")||n(b,"./")?c.resolve(c.dirname(a),b):c.normalize(b);for(e=b.length;d<e;d++)b[d]=m.normalDepModuleName(a,b[d]);return b},createModulesInfo:function(b,d){a.each(d,function(a){m.createModuleInfo(b,a)})},createModuleInfo:function(b,d,c){var d=i(d),e=b.Env.mods,f=e[d];
return f?f:e[d]=f=new h.Module(a.mix({name:d,runtime:b},c))},getModules:function(b,d){var c=[b],e,f,g,l,h=b.Env.mods;a.each(d,function(d){e=h[d];!e||"css"!==e.getType()?(f=m.unalias(b,d),(g=a.reduce(f,function(a,b){l=h[b];return a&&l&&l.status>=o},!0))?c.push(h[f[0]].exports):c.push(null)):c.push(void 0)});return c},attachModsRecursively:function(a,b){var d,c=a.length;for(d=0;d<c;d++)m.attachModRecursively(a[d],b)},checkModsLoadRecursively:function(a,b,d,c,e){var d=d||[],e=e||{},f,g=1,l=a.length,
h=d.length;for(f=0;f<l;f++)g=g&&m.checkModLoadRecursively(a[f],b,d,c,e),d.length=h;return!!g},checkModLoadRecursively:function(a,b,d,c,f){var g,h=b.Env.mods[a];if(a in f)return f[a];if(!h)return f[a]=!1;g=h.status;return g===k?(c.push(h),f[a]=!1):g>=l?f[a]=!0:g!==e?f[a]=!1:m.checkModsLoadRecursively(h.getNormalizedRequires(),b,d,c,f)?(h.status=l,f[a]=!0):f[a]=!1},attachModRecursively:function(a,b){var d=b.Env.mods[a];d.status>=o||(d.status=o,d.cjs||m.attachModsRecursively(d.getNormalizedRequires(),
b),m.attachMod(b,d))},attachMod:function(b,c){var e=c.factory;if("function"===typeof e){var f;c.requires&&c.requires.length&&(f=a.bind(c.require,c));e=e.apply(c,c.cjs?[b,f,c.exports,c]:m.getModules(b,c.getRequiresWithAlias()));void 0!==e&&(c.exports=e)}else c.exports=e;c.status=d},getModNamesAsArray:function(a){"string"===typeof a&&(a=a.replace(/\s+/g,"").split(","));return a},normalizeModNames:function(a,b,d){return m.unalias(a,m.normalizeModNamesWithAlias(a,b,d))},unalias:function(a,b){for(var d=
[].concat(b),c,e,g,l=0,h,i=a.Env.mods;!l;){l=1;for(c=d.length-1;0<=c;c--)if((e=i[d[c]])&&"alias"in e){l=0;g=e.alias;"string"===typeof g&&(g=[g]);for(h=g.length-1;0<=h;h--)g[h]||g.splice(h,1);d.splice.apply(d,[c,1].concat(f(g)))}}return d},normalizeModNamesWithAlias:function(a,b,d){var c=[],e,g;if(b){e=0;for(g=b.length;e<g;e++)b[e]&&c.push(j(a,f(b[e])))}d&&(c=m.normalDepModuleName(d,c));return c},registerModule:function(b,d,c,f){var d=i(d),g=b.Env.mods,l=g[d];l&&void 0!==l.factory||(m.createModuleInfo(b,
d),l=g[d],a.mix(l,{name:d,status:e,factory:c}),a.mix(l,f))},getHash:function(a){var b=5381,d;for(d=a.length;-1<--d;)b=(b<<5)+b+a.charCodeAt(d);return b+""},getRequiresFromFn:function(a){var b=[];a.toString().replace(t,"").replace(q,function(a,d){b.push(d.match(/^\s*["']([^'"\s]+)["']\s*$/)[1])});return b}});var t=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,q=/[^.'"]\s*require\s*\(([^)]+)\)/g})(KISSY);
(function(a){function f(a,d){return d in a?a[d]:a.runtime.Config[d]}function i(b){a.mix(this,b)}function j(b){this.exports={};this.status=h.Status.INIT;this.factory=this.name=void 0;this.cjs=1;a.mix(this,b);this.waitedCallbacks=[]}var h=a.Loader,c=a.Path,g=h.Utils;i.prototype={constructor:i,reset:function(b){a.mix(this,b)},getTag:function(){return f(this,"tag")},getName:function(){return this.name},getBase:function(){return f(this,"base")},getPrefixUriForCombo:function(){var a=this.name;return this.getBase()+
(a&&!this.isIgnorePackageNameInUri()?a+"/":"")},getPackageUri:function(){this.packageUri||(this.packageUri=new a.Uri(this.getPrefixUriForCombo()));return this.packageUri},getBaseUri:function(){return f(this,"baseUri")},isDebug:function(){return f(this,"debug")},isIgnorePackageNameInUri:function(){return f(this,"ignorePackageNameInUri")},getCharset:function(){return f(this,"charset")},isCombine:function(){return f(this,"combine")},getGroup:function(){return f(this,"group")}};h.Package=i;j.prototype=
{kissy:1,constructor:j,use:function(a,d){a=g.getModNamesAsArray(a);return KISSY.use(g.normalDepModuleName(this.name,a),d)},resolve:function(a){return this.getFullPathUri().resolve(a)},resolveByName:function(a){return g.normalDepModuleName(this.name,a)},require:function(b){return a.require(b,this.name)},wait:function(a){this.waitedCallbacks.push(a)},notifyAll:function(){for(var a,d=this.waitedCallbacks.length,c=0;c<d;c++){a=this.waitedCallbacks[c];try{a(this)}catch(e){setTimeout(function(){throw e;
},0)}}this.waitedCallbacks=[]},getType:function(){var a=this.type;a||(this.type=a=".css"===c.extname(this.name).toLowerCase()?"css":"js");return a},getFullPathUri:function(){var b,d,f,e;if(!this.fullPathUri){if(this.fullpath)d=new a.Uri(this.fullpath);else{d=this.getPackage();b=d.getBaseUri();e=this.getPath();if(d.isIgnorePackageNameInUri()&&(f=d.name))e=c.relative(f,e);d=b.resolve(e);if(b=this.getTag())b+="."+this.getType(),d.query.set("t",b)}this.fullPathUri=d}return this.fullPathUri},getFullPath:function(){var a;
this.fullpath||(a=this.getFullPathUri(),this.fullpath=a.toString());return this.fullpath},getPath:function(){var a;if(!(a=this.path)){a=this.name;var d="."+this.getType(),f="-min";a=c.join(c.dirname(a),c.basename(a,d));this.getPackage().isDebug()&&(f="");a=this.path=a+f+d}return a},getName:function(){return this.name},getPackage:function(){var b;if(!(b=this.packageInfo)){var d=this.name;b=this.runtime.config("packages");var d=d+"/",c="",e;for(e in b)a.startsWith(d,e+"/")&&e.length>c.length&&(c=e);
b=this.packageInfo=b[c]||n}return b},getTag:function(){return this.tag||this.getPackage().getTag()},getCharset:function(){return this.charset||this.getPackage().getCharset()},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},getRequiredMods:function(){var b=this.runtime;return a.map(this.getNormalizedRequires(),function(a){return g.createModuleInfo(b,
a)})},getNormalizedRequires:function(){var a,d=this.normalizedRequiresStatus,c=this.status,e=this.requires;if(!e||0===e.length)return e||[];if((a=this.normalizedRequires)&&d===c)return a;this.normalizedRequiresStatus=c;return this.normalizedRequires=g.normalizeModNames(this.runtime,e,this.name)}};h.Module=j;var n=new i({name:"",runtime:a})})(KISSY);
(function(a){function f(a){var d=0;if(h.webkit)a.sheet&&(d=1);else if(a.sheet)try{a.sheet.cssRules&&(d=1)}catch(c){"NS_ERROR_DOM_SECURITY_ERR"===c.name&&(d=1)}return d}function i(){for(var b in n){var d=n[b],c=d.node;f(c,b)&&(d.callback&&d.callback.call(c),delete n[b])}g=a.isEmptyObject(n)?0:setTimeout(i,j)}var j=30,h=a.UA,c=a.Loader.Utils,g=0,n={};c.pollCss=function(a,d){var c;c=n[a.href]={};c.node=a;c.callback=d;g||i()};c.isCssLoaded=f})(KISSY);
(function(a){var f=a.Env.host.document,i=a.Loader.Utils,j=a.Path,h={},c,g=a.UA;a.getScript=function(n,b,d){function l(){var a=q.readyState;if(!a||"loaded"===a||"complete"===a)q.onreadystatechange=q.onload=null,s(0)}var e=b,o=0,k,m,u,t;a.startsWith(j.extname(n).toLowerCase(),".css")&&(o=1);a.isPlainObject(e)&&(b=e.success,k=e.error,m=e.timeout,d=e.charset,u=e.attrs);e=h[n]=h[n]||[];e.push([b,k]);if(1<e.length)return e.node;var q=f.createElement(o?"link":"script");u&&a.each(u,function(a,b){q.setAttribute(b,
a)});d&&(q.charset=d);o?(q.href=n,q.rel="stylesheet"):(q.src=n,q.async=!0);e.node=q;var s=function(b){var d;if(t){t.cancel();t=void 0}a.each(h[n],function(a){(d=a[b])&&d.call(q)});delete h[n]},b="onload"in q,d=a.Config.forceCssPoll||g.webkit&&536>g.webkit;o&&d&&b&&(b=!1);b?(q.onload=l,q.onerror=function(){q.onerror=null;s(1)}):o?i.pollCss(q,function(){s(0)}):q.onreadystatechange=l;m&&(t=a.later(function(){s(1)},1E3*m));c||(c=i.docHead());o?c.appendChild(q):c.insertBefore(q,c.firstChild);return q}})(KISSY);
(function(a,f){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 j=a.Loader,h=j.Utils,c=a.Env.host.location,g,n,b=a.Config.fns;if(!a.UA.nodejs&&c&&(n=c.href))g=new a.Uri(n);a.Config.loadModsFn=function(b,c){a.getScript(b.fullpath,c)};b.packages=function(b){var c,e=this.Config,g=e.packages=e.packages||{};return b?(a.each(b,function(b,d){c=b.name||d;var e=i(b.base||b.path);b.name=c;b.base=e.toString();
b.baseUri=e;b.runtime=a;delete b.path;g[c]?g[c].reset(b):g[c]=new j.Package(b)}),f):!1===b?(e.packages={},f):g};b.modules=function(b){var c=this;b&&a.each(b,function(b,d){var f=h.createModuleInfo(c,d,b);f.status===j.Status.INIT&&a.mix(f,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 f}})(KISSY);
(function(a,f){function i(b,c,e,h,l){var i=c&&c.length,j=[],k=[];a.each(c,function(c){var r,m={timeout:l,success:function(){k.push(c);r&&t&&(d.registerModule(b,r.name,t.factory,t.config),t=f);--i||e(k,j)},error:function(){j.push(c);--i||e(k,j)},charset:h};c.combine||(r=c.mods[0],"css"===r.getType()?r=f:g&&(q=r.name,a.now(),m.attrs={"data-mod-name":r.name}));a.Config.loadModsFn(c,m)})}function j(b,c){a.mix(this,{runtime:b,waitingModules:c})}function h(a,b){if(!a&&"function"===typeof b&&1<b.length){var c=
d.getRequiresFromFn(b);c.length&&(a=a||{},a.requires=c)}else a&&a.requires&&!a.cjs&&(a.cjs=0);return a}function c(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("/")+"/"}var g=10>a.UA.ieMode,n=a.Loader,b=n.Status,d=n.Utils,l=d.getHash,e=b.LOADING,o=b.LOADED,k=b.READY_TO_ATTACH,m=b.ERROR,u=a.now();j.groupTag=u;var t,q;j.add=function(b,c,e,l,i){if(3===i&&a.isArray(c))var j=c,c=e,e={requires:j,cjs:1};if("function"===typeof b||
1===i)if(e=c,c=b,e=h(e,c),g){for(var b=a.Env.host.document.getElementsByTagName("script"),k,i=b.length-1;0<=i;i--)if(j=b[i],"interactive"===j.readyState){k=j;break}b=k?k.getAttribute("data-mod-name"):q;d.registerModule(l,b,c,e);q=null}else t={factory:c,config:e};else g?q=null:t=f,e=h(e,c),d.registerModule(l,b,c,e)};a.augment(j,{use:function(b){var c=a.Config.timeout,e=this.runtime,b=a.keys(this.calculate(b));d.createModulesInfo(e,b);b=this.getComboUrls(b);a.each(b.css,function(b){i(e,b,function(b,
c){a.each(b,function(b){a.each(b.mods,function(b){d.registerModule(e,b.name,a.noop);b.notifyAll()})});a.each(c,function(b){a.each(b.mods,function(a){a.status=m;a.notifyAll()})})},b.charset,c)});a.each(b.js,function(b){i(e,b,function(){a.each(b,function(b){a.each(b.mods,function(a){a.factory||(a.status=m);a.notifyAll()})})},b.charset,c)})},calculate:function(a,b,c){var f,g,h,i,l=this.waitingModules,j=this.runtime,c=c||{},b=b||{};for(f=0;f<a.length;f++)g=a[f],b[g]||(b[g]=1,h=d.createModuleInfo(j,g),
i=h.status,i>=k||(i!==o&&!l.contains(g)&&(i!==e&&(h.status=e,c[g]=1),h.wait(function(a){l.remove(a.name);l.notifyAll()}),l.add(g)),this.calculate(h.getNormalizedRequires(),b,c)));return c},getComboMods:function(b,e){for(var f={},g,h=this.runtime,i=0,l=b.length,j,k,m,n,q,o,t,F,H;i<l;++i){j=b[i];j=d.createModuleInfo(h,j);m=j.getType();H=j.getFullPath();k=j.getPackage();t=k.name;q=k.getCharset();n=k.getTag();F=k.getGroup();o=k.getPrefixUriForCombo();g=k.getPackageUri();var y=t;(j.canBeCombined=k.isCombine()&&
a.startsWith(H,o))&&F?(y=F+"_"+q+"_"+u,(k=e[y])?k.isSameOriginAs(g)?k.setPath(c(k.getPath(),g.getPath())):(y=t,e[t]=g):e[y]=g.clone()):e[t]=g;g=f[m]=f[m]||{};(m=g[y])?1===m.tags.length&&m.tags[0]===n||m.tags.push(n):(m=g[y]=[],m.charset=q,m.tags=[n]);m.push(j)}return f},getComboUrls:function(a){var b=this.runtime.Config,c=b.comboPrefix,d=b.comboSep,e=b.comboMaxFileNum,b=b.comboMaxUrlLength,f={},a=this.getComboMods(a,f),g={},h;for(h in a){g[h]={};for(var i in a[h]){var j=[],k=[],m=a[h][i],n=m.tags,
q=(n=1<n.length?l(n.join("")):n[0])?"?t="+encodeURIComponent(n)+"."+h:"",n=q.length,o=f[i].toString(),t=o.length,u=o+c,z=g[h][i]=[],o=u.length;z.charset=m.charset;z.mods=[];for(var I=function(){z.push({combine:1,fullpath:u+j.join(d)+q,mods:k})},B=0;B<m.length;B++){var A=m[B];z.mods.push(A);var C=A.getFullPath();if(A.canBeCombined){if(C=C.slice(t).replace(/\?.*$/,""),j.push(C),k.push(A),j.length>e||o+j.join(d).length+n>b)j.pop(),k.pop(),I(),j=[],k=[],B--}else z.push({combine:0,fullpath:C,mods:[A]})}j.length&&
I()}}return g}});n.ComboLoader=j})(KISSY);
(function(a,f){function i(b){a.mix(this,{fn:b,waitMods:{}})}var j=a.Loader,h=a.Env,c=j.Utils,g=a.setImmediate,n=j.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]}};j.WaitingModules=i;a.mix(a,{add:function(b,c,f){n.add(b,c,f,a,arguments.length)},use:function(b,d){function h(){++u;var b=[];a.now();
c.checkModsLoadRecursively(e,a,f,b)?(c.attachModsRecursively(e,a),d&&(m?t():g(t))):b.length?k&&(m?k.apply(a,b):g(function(){k.apply(a,b)})):(q.fn=h,j.use(e))}var e,j,k,m,u=0,t,q=new i(h);a.isPlainObject(d)&&(m=d.sync,k=d.error,d=d.success);t=function(){d.apply(a,c.getModules(a,b))};b=c.getModNamesAsArray(b);b=c.normalizeModNamesWithAlias(a,b);e=c.unalias(a,b);j=new n(a,q);m?q.notifyAll():g(function(){q.notifyAll()});return a},require:function(b,d){if(b){var f=c.unalias(a,c.normalizeModNamesWithAlias(a,
[b],d));c.attachModsRecursively(f,a);return c.getModules(a,f)[1]}}});h.mods={}})(KISSY);
(function(a){function f(f){var e=f.src||"";if(!e.match(d))return 0;var f=(f=f.getAttribute("data-config"))?(new Function("return "+f))():{},i=f.comboPrefix||g,j=f.comboSep||n,m,u=e.indexOf(i);-1===u?m=e.replace(b,"$1"):(m=e.substring(0,u),"/"!==m.charAt(m.length-1)&&(m+="/"),i=e.substring(u+i.length).split(j),a.each(i,function(a){if(a.match(d))return m+=a.replace(b,"$1"),!1}));"tag"in f||(i=e.lastIndexOf("?t="),-1!==i&&(e=e.substring(i+1),f.tag=h.getHash(c+e)));f.base=f.base||m;return f}function i(){var a=
j.getElementsByTagName("script"),b,c;for(b=a.length-1;0<=b;b--)if(c=f(a[b]))return c;return null}var j=a.Env.host&&a.Env.host.document,h=a.Loader.Utils,c="20140522123037",g="??",n=",",b=/^(.*)(seed|kissy)(?:-min)?\.js[^/]*/i,d=/(seed|kissy)(?:-min)?\.js/i;a.config({comboPrefix:g,comboSep:n,charset:"utf-8",lang:"zh-cn"});a.UA.nodejs?a.config({charset:"utf-8",base:__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"}):j&&j.getElementsByTagName&&a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40},i()))})(KISSY);
KISSY.add("i18n",{alias:function(a,f){return f+"/i18n/"+a.Config.lang}});
(function(a,f){function i(){if(!b){c&&!h.nodejs&&u(j,k,i);b=1;for(var e=0;e<d.length;e++)try{d[e](a)}catch(f){setTimeout(function(){throw f;},0)}}}var j=a.Env.host,h=a.UA,c=j.document,g=c&&c.documentElement,n=j.location,b=0,d=[],l=/^#?([\w-]+)$/,e=/\S/,o=!(!c||!c.addEventListener),k="load",m=o?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},u=o?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{j.DOMParser?b=(new DOMParser).parseFromString(a,"text/xml"):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async=!1,b.loadXML(a))}catch(c){b=f}!b||!b.documentElement||b.getElementsByTagName("parsererror");return b},globalEval:function(a){a&&e.test(a)&&(j.execScript?j.execScript(a):j.eval.call(j,a))},ready:function(c){if(b)try{c(a)}catch(e){setTimeout(function(){throw e;},0)}else d.push(c);return this},available:function(b,d){var b=
(b+"").match(l)[1],e=1,f=a.later(function(){if(500<++e)f.cancel();else{var a=c.getElementById(b);a&&(d(a),f.cancel())}},40,!0)}});if(n&&-1!==(n.search||"").indexOf("ks-debug"))a.Config.debug=!0;(function(){if(!c||"complete"===c.readyState)i();else if(m(j,k,i),o){var a=function(){u(c,"DOMContentLoaded",a);i()};m(c,"DOMContentLoaded",a)}else{var b=function(){"complete"===c.readyState&&(u(c,"readystatechange",b),i())};m(c,"readystatechange",b);var d,e=g&&g.doScroll;try{d=null===j.frameElement}catch(f){d=
!1}if(e&&d){var h=function(){try{e("left"),i()}catch(a){setTimeout(h,40)}};h()}}})();if(h.ie)try{c.execCommand("BackgroundImageCache",!1,!0)}catch(t){}})(KISSY,void 0);(function(a){a.config({modules:{core:{alias:"dom,event,io,anim,base,node,json,ua,cookie".split(",")},ajax:{alias:"io"},"rich-base":{alias:"base"}}});if("undefined"!==typeof location){var f=a.startsWith(location.href,"https")?"https://s.tbcdn.cn/s/kissy/":"http://a.tbcdn.cn/s/kissy/";a.config({packages:{gallery:{base:f},mobile:{base:f}}})}})(KISSY);
(function(a,f,i){a({"anim/transition?":{alias:KISSY.Features.isTransitionSupported()?"anim/transition":""}});a({anim:{requires:["anim/base","anim/timer","anim/transition?"]}});a({"anim/base":{requires:["dom","promise"]}});a({"anim/timer":{requires:["dom","anim/base"]}});a({"anim/transition":{requires:["dom","event/dom","anim/base"]}});a({attribute:{requires:["event/custom"]}});a({base:{requires:["attribute"]}});a({button:{requires:["node","component/control"]}});a({color:{requires:["attribute"]}});
a({combobox:{requires:["node","component/control","menu","attribute","io"]}});a({"component/container":{requires:["component/control","component/manager"]}});a({"component/control":{requires:["node","base","promise","component/manager","xtemplate/runtime"]}});a({"component/extension/align":{requires:["node"]}});a({"component/extension/content-render":{requires:["component/extension/content-xtpl"]}});a({"component/extension/delegate-children":{requires:["node","component/manager"]}});a({"component/plugin/drag":{requires:["dd"]}});
a({"component/plugin/resize":{requires:["resizable"]}});a({"date/format":{requires:["date/gregorian","i18n!date"]}});a({"date/gregorian":{requires:["i18n!date"]}});a({"date/picker":{requires:"node,date/gregorian,i18n!date/picker,component/control,date/format,date/picker-xtpl".split(",")}});a({"date/popup-picker":{requires:["date/picker-xtpl","date/picker","component/extension/shim","component/extension/align"]}});a({dd:{requires:["node","base"]}});a({"dd/plugin/constrain":{requires:["node","base"]}});
a({"dd/plugin/proxy":{requires:["node","dd","base"]}});a({"dd/plugin/scroll":{requires:["node","dd","base"]}});a({"dom/basic":{alias:["dom/base",f.isIELessThan(9)?"dom/ie":"",f.isClassListSupported()?"":"dom/class-list"]},dom:{alias:["dom/basic",!f.isQuerySelectorSupported()?"dom/selector":""]}});a({"dom/base":{requires:["ua"]}});a({"dom/class-list":{requires:["dom/base"]}});a({"dom/ie":{requires:["dom/base"]}});a({"dom/selector":{requires:["dom/basic"]}});a({editor:{requires:["node","html-parser",
"component/control","ua"]}});a({event:{requires:["event/dom","event/custom"]}});a({"event/custom":{requires:["event/base"]}});a({"event/dom":{alias:["event/dom/base",f.isTouchGestureSupported()?"event/dom/touch":"",f.isDeviceMotionSupported()?"event/dom/shake":"",f.isHashChangeSupported()?"":"event/dom/hashchange",f.isIELessThan(9)?"event/dom/ie":"",i.ie?"":"event/dom/focusin"]}});a({"event/dom/base":{requires:["event/base","dom"]}});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({"filter-menu":{requires:["menu","component/extension/content-xtpl","component/extension/content-render"]}});a({io:{requires:["dom","event/custom","promise","event/dom"]}});a({kison:{requires:["base"]}});a({menu:{requires:"node,component/container,component/extension/delegate-children,component/control,component/extension/content-render,component/extension/content-xtpl,component/extension/align,component/extension/shim".split(",")}});
a({menubutton:{requires:["node","button","component/extension/content-xtpl","component/extension/content-render","menu"]}});a({mvc:{requires:["io","json","attribute","node"]}});a({node:{requires:["dom","event/dom","anim"]}});a({overlay:{requires:"component/container,component/extension/shim,component/extension/align,node,component/extension/content-xtpl,component/extension/content-render".split(",")}});a({resizable:{requires:["node","base","dd"]}});a({"resizable/plugin/proxy":{requires:["node","base"]}});
a({"scroll-view":{alias:f.isTouchGestureSupported()?"scroll-view/drag":"scroll-view/base"}});a({"scroll-view/base":{requires:["node","anim","component/container","component/extension/content-render"]}});a({"scroll-view/drag":{requires:["scroll-view/base","node","anim"]}});a({"scroll-view/plugin/pull-to-refresh":{requires:["base"]}});a({"scroll-view/plugin/scrollbar":{requires:["base","node","component/control"]}});a({separator:{requires:["component/control"]}});a({"split-button":{requires:["component/container",
"button","menubutton"]}});a({stylesheet:{requires:["dom"]}});a({swf:{requires:["dom","json","attribute"]}});a({tabs:{requires:["component/container","toolbar","button"]}});a({toolbar:{requires:["component/container","component/extension/delegate-children","node"]}});a({tree:{requires:["node","component/container","component/extension/content-xtpl","component/extension/content-render","component/extension/delegate-children"]}});a({xtemplate:{requires:["xtemplate/runtime","xtemplate/compiler"]}});a({"xtemplate/compiler":{requires:["xtemplate/runtime"]}});
a({"xtemplate/runtime":{requires:["path"]}})})(function(a){KISSY.config("modules",a)},KISSY.Features,KISSY.UA);
(function(a){a.add("ua",function(){return a.UA});a.add("uri",function(){return a.Uri});a.add("path",function(){return a.Path});var f=a.UA,i=a.Env.host,j=(f.nodejs&&"object"===typeof global?global:i).JSON;9>f.ieMode&&(j=null);if(j)a.add("json",function(){return a.JSON=j}),a.parseJson=function(a){return j.parse(a)};else{var h=/^[\],:{}\s]*$/,c=/(?:^|:|,)(?:\s*\[)+/g,g=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,n=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g;a.parseJson=function(b){return null===
b?b:"string"===typeof b&&(b=a.trim(b))&&h.test(b.replace(g,"@").replace(n,"]").replace(c,""))?(new Function("return "+b))():a.error("Invalid Json: "+b)}}a.UA.nodejs&&(a.KISSY=a,module.exports=a)})(KISSY);
