JS百度百科明星投票遮罩效果特效代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 JS百度百科明星投票遮罩效果特效代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

JS百度百科明星投票遮罩效果特效代码

HTML代码(index.html):

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>JS百度百科明星投票遮罩效果</title>
<link rel="stylesheet" type="text/css" href="css/subRankings_06727bb.css">
<link rel="stylesheet" type="text/css" href="css/moments-2014_e764737.css">
</head>
<body>
<div class="zzsc">
<div class="subRankings-wrapper" style="overflow:hidden; height:486px;">
  <div class="layout">
    <div class="subRankings subRankings-tri subRankings-entertain" alog-group="subRankings-entertain">
      <ul class="subRankings_content">
        <li class="subRanking-0 actived" style="background-image:url(images/entertain-0.png)">
          <div class="detail detail-up detail-0">
            <div class="detail_title"><a href="#" target="_blank">周笔畅</a></div>
            <div class="detail_pv">浏览量:2.49亿</div>
            <a class="detail_vote cmn-inline-block" href="#">投票</a>
            <div class="detail_counts">199506</div>
          </div>
          <div class="detail detail-down detail-1">
            <div class="detail_title"><a href="#" target="_blank">张艺兴</a></div>
            <div class="detail_pv">浏览量:1.13亿</div>
            <a class="detail_vote cmn-inline-block" href="#">投票</a>
            <div class="detail_counts">1459932</div>
          </div>
          <div class="detail detail-up detail-2">
            <div class="detail_title"><a href="#" target="_blank">TFBOYS</a></div>
            <div class="detail_pv">浏览量:1297万</div>
            <a class="detail_vote cmn-inline-block" href="#">投票</a>
            <div class="detail_counts">1672974</div>
          </div>
          <div class="detail detail-down detail-3">
            <div class="detail_title"><a href="#" target="_blank">宋茜</a></div>
            <div class="detail_pv">浏览量:3122万</div>
            <a class="detail_vote cmn-inline-block" href="#">投票</a>
            <div class="detail_counts">445551</div>
          </div>
          <div class="detail detail-up detail-4">
            <div class="detail_title"><a href="#" target="_blank">陈伟霆</a></div>
            <div class="detail_pv">浏览量:2.34亿</div>
            <a class="detail_vote cmn-inline-block" href="#">投票</a>
            <div class="detail_counts">4298205</div>
          </div>
          <div class="detail detail-up detail-5">
            <div class="detail_title"><a href="#" target="_blank">邓紫棋</a></div>
            <div class="detail_pv">浏览量:1866万</div>
            <a class="detail_vote cmn-inline-block" href="#">投票</a>
            <div class="detail_counts">147881</div>
          </div>
          <div class="detail detail-up detail-6">
            <div class="detail_title"><a href="#" target="_blank">刘诗诗</a></div>
            <div class="detail_pv">浏览量:2.41亿</div>
            <a class="detail_vote cmn-inline-block" href="#">投票</a>
            <div class="detail_counts">180287</div>
          </div>
          <div class="detail detail-up detail-7">
            <div class="detail_title"><a href="#" target="_blank">鹿晗</a></div>
            <div class="detail_pv">浏览量:2.59亿</div>
            <a class="detail_vote cmn-inline-block" href="#">投票</a>
            <div class="detail_counts">3653553</div>
          </div>
          <div class="detail detail-down detail-8">
            <div class="detail_title"><a href="#" target="_blank">杨幂</a></div>
            <div class="detail_pv">浏览量:8277万</div>
            <a class="detail_vote cmn-inline-block" href="#">投票</a>
            <div class="detail_counts">37446</div>
          </div>
          <div class="detail detail-down detail-9">
            <div class="detail_title"><a href="#" target="_blank">李易峰</a></div>
            <div class="detail_pv">浏览量:1920万</div>
            <a class="detail_vote cmn-inline-block" href="#">投票</a>
            <div class="detail_counts">629319</div>
          </div>
          <svg class="svg" height="100%" width="100%">
          <path style="opacity: 0.01;" class="shape" d="M6,0 L310,0,158,152"></path>
          <path style="opacity: 0.01;" class="shape" d="M324,3 L476,155,172,155"></path>
          <path style="opacity: 0.01;" class="shape" d="M338,0 L642,0,490,152"></path>
          <path style="opacity: 0.01;" class="shape" d="M656,3 L808,155,504,155"></path>
          <path style="opacity: 0.01;" class="shape" d="M670,0 L974,0,822,152"></path>
          <path style="opacity: 0.01;" class="shape" d="M324,318 L476,165,172,165"></path>
          <path style="opacity: 0.01;" class="shape" d="M656,318 L808,165,504,165"></path>
          <path style="opacity: 0.01;" class="shape" d="M490,166 L649,325,490,484,331,325"></path>
          <path style="opacity: 0.01;" class="shape" d="M324,333 L476,485,172,485"></path>
          <path style="opacity: 0.01;" class="shape" d="M656,333 L808,485,504,485"></path>
          </svg></li>
      </ul>
    </div>
  </div>
</div>
<script type="text/javascript" src="js/wiki-common_sync_js_0_c71edc4.js"></script> 
<script type="text/javascript" src="js/wiki-common_sync_js_1_b8cc5ae.js"></script> 
<script type="text/javascript" src="js/wiki-activity_sync_js_0_92492a7.js"></script> 
<script type="text/javascript">!function(){  if (document.createElement('canvas').getContext) {
    require('wiki-activity:widget/moments-2014/guide/guide.js');
  } else {
    $('#momentsGuide').addClass('withImageBg');
  }; 
}();
!function(){  var $ = require('wiki-common:widget/lib/jquery/jquery.js'),
    mainRanking = require('wiki-activity:widget/moments-2014/subRankings/subRankings.js');
}();
!function(){  require('wiki-activity:widget/moments-2014/authorityComments/authorityComments.js');
}();
!function(){  require('wiki-activity:widget/moments-2014/sideNav/sideNav.js');
}();</script>
<div class="clear"></div>
</div>
</body>
</html>

JS代码(wiki-activity_sync_js_0_92492a7.js):

define("wiki-activity:widget/moments-2014/authorityComments/authorityComments.js",function(t){
	function i(t,i){
	var o=parseInt(n("#authorityComments .viewport .gallery").css("left")),e=101*(l-t);
	r({
	duration:100*Math.log(Math.abs(e)+1),easing:"easeIn",onStep:function(t){
	n("#authorityComments .viewport .gallery").css("left",o+e*t)}
,onComplete:function(){
	l=t,i&&i()}
}
)}
function o(t,i){
	var o=n("#authorityComments .viewport .gallery li").eq(u),e=n("#authorityComments .viewport .gallery li").eq(t);
	m.play(t),r({
	duration:500,easing:"easeInOut",onStep:function(i){
	t!==u&&(o.width(124-25*i).css(u+8!==l&&u!==l?{
	marginLeft:4-4*i,marginRight:6-4*i}
:{
	marginLeft:u+8===l?0:8-8*i,marginRight:u+8===l?10-8*i:2}
),e.width(99+25*i).css(t+8!==l&&t!==l?{
	marginLeft:0+4*i,marginRight:2+4*i}
:{
	marginLeft:0+(t+8===l?0:8)*i,marginRight:2+(t+8===l?8:0)*i}
),o.children(".authority_avator").css({
	marginTop:0+15*i,width:125-25*i,height:150-30*i}
),o.children(".authority_title").css({
	opacity:1*i}
),e.children(".authority_avator").css({
	marginTop:15-15*i,width:99+25*i,height:120+30*i}
),e.children(".authority_title").css({
	opacity:1-1*i}
),o.find(".authority_avator_shadow").css({
	width:116-25*i,height:142-30*i,opacity:1-1*i}
),e.find(".authority_avator_shadow").css({
	width:91+25*i,height:112+30*i,opacity:1*i}
))}
,onComplete:function(){
	u=t,"function"==typeof i&&i()}
}
)}
function e(){
	n("#authorityComments .viewport .button").on("click",function(){
	if(n(this).hasClass("button-next"))var t=h>l+9?l+9:h-1,r=l+1;
	else if(n(this).hasClass("button-prev"))var t=l-9>8?l-9:8,r=l-9;
	t!==l&&(n("#authorityComments .button").off("click"),n("#authorityComments .gallery li .authority_avator").off("click"),i(t,function(){
	e(),9>t?(n("#authorityComments .viewport .button-prev").addClass("button-hide"),n("#authorityComments .viewport .button-next").removeClass("button-hide")):t>=9&&h-1>t?(n("#authorityComments .viewport .button-prev").addClass("button-hide"),n("#authorityComments .viewport .button-next").addClass("button-hide")):t===h-1&&(n("#authorityComments .viewport .button-next").addClass("button-hide"),n("#authorityComments .viewport .button-prev").removeClass("button-hide")),t-9>=u||u>t?o(r,a):a()}
))}
)}
function a(){
	n("#authorityComments .viewport .gallery li .authority_avator").on("click",function(){
	var t=n(this).parent("li").index();
	t!==u&&(n("#authorityComments .gallery li .authority_avator").off("click"),o(t,a))}
)}
var n=t("wiki-common:widget/lib/jquery/jquery.js"),r=t("wiki-common:widget/util/animation.js"),s=t("wiki-common:widget/ui/carousel/carousel.js"),h=n("#authorityComments .viewport .gallery li").length,u=4,l=8;
	n("#authorityComments .viewport .gallery li").eq(u).children(".authority_title").css({
	opacity:0}
),n("#authorityComments .viewport .gallery li").eq(u).find(".authority_avator_shadow").css({
	opacity:1}
),n("#authorityComments .viewport .button-prev").addClass("button-hide");
	var m=new s({
	container:n("#authorityComments .screen .gallery"),aniUnitSize:{
	width:940,height:300}
,autoPlayInterval:0,aniConfig:{
	duration:500,direction:"left"}
}
);
	m.play(4),e(),a()}
);
	;
	define("wiki-activity:widget/moments-2014/guide/guideElements.js",function(t,e,i){
	function n(t,e){
	return{
	x:(e.width()-s)/2/e.scaleX()+t.x/e.scaleX(),y:(e.height()-c)/2/e.scaleX()+t.y/e.scaleX()}
}
var a=t("wiki-common:widget/lib/jquery/jquery.js"),o=t("wiki-common:widget/lib/kinetic/kinetic.js"),s=a("#momentsGuide").width(),c=a("#momentsGuide").height(),r=1.2,d={
}
;
	d.logo=new Image,d.logo.src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/logo_41b4313.png",d.slogan=new Image,d.slogan.src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/slogan_2916df6.png",d.text=[];
	for(var g=0;
	10>g;
	g++)d.text.push(new Image);
	d.text[0].src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/momentsGuide_title-0_6bf9fbc.png",d.text[1].src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/momentsGuide_title-1_4b141ac.png",d.text[2].src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/momentsGuide_title-2_60416b5.png",d.text[3].src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/momentsGuide_title-3_0f4e7d3.png",d.text[4].src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/momentsGuide_title-4_7aa3eba.png",d.text[5].src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/momentsGuide_title-5_afa3012.png",d.text[6].src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/momentsGuide_title-6_a26bea6.png",d.text[7].src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/momentsGuide_title-7_997aa21.png",d.text[8].src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/momentsGuide_title-8_bf80556.png",d.text[9].src="http://baike.bdimg.com/static/wiki-activity/widget/moments-2014/guide/resource/img/momentsGuide_title-9_998c0aa.png";
	var m=function(t){
	d.text[0].onload=t}
,u={
}
;
	u.layer=function(t){
	var e=t||{
}
,i=e.width/e.scale*r,n=e.height/e.scale*r,a=(e.width-i)/2,s=(e.height-n)/2;
	return new o.Layer({
	x:a,y:s,width:i,height:n,scale:{
	x:e.scale,y:e.scale}
}
)}
,u.logo=function(){
	var t=new o.Rect({
	x:1280*r-70,y:236,width:175,height:360,scale:{
	x:.8,y:.8}
,opacity:0,fillPatternImage:d.logo,fillPatternScale:{
	x:.5,y:.5}
}
),e=function(){
	new o.Tween({
	node:t,x:1280*r-81,y:200,scaleX:1,scaleY:1,opacity:1,duration:1.25,easing:o.Easings.EaseOut}
).play()}
;
	return t.startAni=e,t}
,u.slogan=function(){
	var t=new o.Rect({
	x:1500,y:572,width:258,height:70,opacity:0,fillPatternImage:d.slogan}
),e=function(){
	new o.Tween({
	node:t,x:1540,y:564,opacity:1,duration:1,easing:o.Easings.EaseOut}
).play()}
;
	return t.startAni=e,t}
,u.line=function(t){
	var e=t||{
}
;
	e.delay=e.delay||0,e.coor=n({
	x:e.x,y:e.y}
,e.layer),e.lineLength=Math.sqrt(Math.pow(e.width,2)+Math.pow(e.height,2)),e.rad=(e.degree+90)/180*Math.PI,e.end=[0,0,-e.lineLength*Math.cos(e.rad),-e.lineLength*Math.sin(e.rad)],e.strokeWidth=e.strokeWidth||.5;
	var i=new o.Line({
	x:e.coor.x,y:e.coor.y,points:[0,0,0,0],strokeWidth:e.strokeWidth,stroke:e.color,tension:1}
),a=function(){
	setTimeout(function(){
	new o.Tween({
	node:i,points:e.end,duration:2,easing:o.Easings.EaseIn}
).play()}
,e.delay)}
;
	return i.startAni=a,i}
,u.dot=function(t){
	var e=t||{
}
;
	e.textOffset=e.textOffset||{
	x:0,y:0}
,e.delay=e.delay||0,e.coor=n({
	x:e.x,y:e.y}
,e.layer),e.lineLength=Math.sqrt(Math.pow(e.width,2)+Math.pow(e.height,2)),e.rad=(e.degree+90)/180*Math.PI,e.end=[e.lineLength*Math.cos(e.rad),e.lineLength*Math.sin(e.rad),-e.lineLength*Math.cos(e.rad),-e.lineLength*Math.sin(e.rad)],e.strokeWidth=e.strokeWidth||.5,e.textLength=e.text.length,e.producedText="";
	for(var i=0;
	i<e.textLength;
	i++)e.producedText+=e.text.substr(i,1),i+1<e.textLength&&(e.producedText+="\n");
	var a=new o.Circle({
	x:e.coor.x,y:e.coor.y,radius:0,fill:"#397ddb",opacity:0}
),s=new o.Rect({
	x:e.coor.x+e.textOffset.x+5,y:e.coor.y+e.textOffset.y+30,width:20,height:120,scale:{
	x:.5,y:.5}
,opacity:0,fillPatternImage:d.text[e.textIdx],fillPatternRepeat:"no-repeat"}
),c=function(){
	setTimeout(function(){
	new o.Tween({
	node:a,radius:12,opacity:1,duration:.6,easing:o.Easings.EaseIn}
).play(),setTimeout(function(){
	new o.Tween({
	node:a,radius:3,opacity:1,duration:1.4,easing:o.Easings.EaseOut}
).play()}
,600),setTimeout(function(){
	new o.Tween({
	node:s,x:e.coor.x+e.textOffset.x-1,y:e.coor.y+e.textOffset.y-6,scaleX:1.1,scaleY:1.1,opacity:1,duration:.5,easing:o.Easings.Linear}
).play(),setTimeout(function(){
	new o.Tween({
	node:s,x:e.coor.x+e.textOffset.x,y:e.coor.y+e.textOffset.y,scaleX:1,scaleY:1,duration:.8,easing:o.Easings.EaseOut}
).play()}
,500)}
,2e3)}
,e.delay)}
,r=new o.Group;
	return r.add(a,s),r.startAni=c,r}
,i.exports={
	build:u,onload:m}
}
);
	;
	define("wiki-activity:widget/moments-2014/mainRanking/mainRanking.js",function(n,i,e){
	function t(n){
	var i=r("#mainRanking .viewport").offset().left,e=r(this).offset().left,t=e-i+n.offsetX,a=t-r("#mainRanking .viewport").width()/2,o=a/(r("#mainRanking .viewport").width()/2);
	return{
	left:t,extent:o}
}
function a(){
	var n=0;
	r("#mainRanking .gallery li").each(function(){
	n+=r(this).width()}
),n+=34;
	var i=[0,r("#mainRanking .viewport").width()-n],e=parseInt(r("#mainRanking .gallery").css("left"));
	if(Math.abs(c)>.6&&(0>c&&e<i[0]||c>0&&e>i[1])){
	var t=3*Math.pow(Math.abs(c)+.5,5)*(c>0?-1:1),o=e+t;
	o<i[1]?o=i[1]:o>i[0]&&(o=i[0]),r("#mainRanking .gallery").css("left",o)}
e<i[1]&&r("#mainRanking .gallery").css("left",i[1]),requestAnimationFrame(function(){
	a()}
)}
function o(){
	var n=r(window).width(),i=r("#mainRanking").width();
	if(n>=i)var e=i;
	else if(i>n&&n>980)var e=n;
	else var e=980;
	r("#mainRanking .viewport").width(e)}
function s(){
	var n=function(n,i){
	var e=n.width(),t="mouseenter"===i?514-e:170-e,a=Math.abs(t)/344*750,o=u({
	duration:a,easing:"easeInOut",onStep:function(i){
	n.css("width",e+i*t)}
}
);
	"mouseenter"===i?n.on("mouseleave",function(){
	o.stop()}
):n.on("mouseenter",function(){
	o.stop()}
)}
,i=function(n,i){
	var e=n.find(".title"),t=n.find(".shadow"),a=n.find(".cover"),o="",s="",r=parseFloat(t.css("opacity")),m="mouseenter"===i?0-r:.8-r,c=1e3*Math.abs(m),l=parseFloat(a.css("opacity")),w="mouseenter"===i?0-l:1-l,f=300*Math.abs(w);
	"mouseenter"===i&&(s=u({
	duration:f,easing:"easeInOut",onStep:function(n){
	var i=l+n*w;
	a.css("opacity",i),e.css("opacity",i)}
}
)),o=u({
	duration:c,easing:"easeInOut",onStep:function(n){
	var i=r+n*m;
	t.css("opacity",i)}
,onComplete:function(){
	"mouseleave"===i&&(s=u({
	duration:f,easing:"easeInOut",onStep:function(n){
	var i=l+n*w;
	a.css("opacity",i),e.css("opacity",i)}
}
))}
}
),"mouseenter"===i?n.on("mouseleave",function(){
	o.stop(),s.stop&&s.stop()}
):n.on("mouseenter",function(){
	o.stop(),s.stop&&s.stop()}
)}
;
	m("transition")?(r("#mainRanking .gallery").addClass("cssTransition"),r("#mainRanking .viewport li").on("mouseenter",function(){
	r(this).addClass("hover"),i(r(this),"mouseenter")}
),r("#mainRanking .viewport li").on("mouseleave",function(){
	r(this).removeClass("hover"),i(r(this),"mouseleave")}
)):(r("#mainRanking .viewport li").on("mouseenter",function(){
	n(r(this),"mouseenter"),i(r(this),"mouseenter")}
),r("#mainRanking .viewport li").on("mouseleave",function(){
	n(r(this),"mouseleave"),i(r(this),"mouseleave")}
)),r("#mainRanking .viewport").on("mousemove",function(n){
	var i=n.target,e=t.call(i,n);
	c=e.extent}
),r("#mainRanking .viewport").on("mouseleave",function(){
	c=0}
),a()}
var r=n("wiki-common:widget/lib/jquery/jquery.js"),m=n("wiki-common:widget/util/checkCSS.js"),u=n("wiki-common:widget/util/animation.js");
	!function(){
	for(var n=0,i=["webkit","moz"],e=0;
	e<i.length&&!window.requestAnimationFrame;
	++e)window.requestAnimationFrame=window[i[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i[e]+"CancelAnimationFrame"]||window[i[e]+"CancelRequestAnimationFrame"];
	window.requestAnimationFrame||(window.requestAnimationFrame=function(i){
	var e=(new Date).getTime(),t=Math.max(0,16.7-(e-n)),a=window.setTimeout(function(){
	i(e+t)}
,t);
	return n=e+t,a}
),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){
	clearTimeout(n)}
)}
(),o(),r(window).on("resize",function(){
	o()}
);
	var c=0,l={
	init:function(n){
	function i(n,i,e){
	var e=e||0;
	u({
	duration:i,easing:"easeIn",delay:e,onStep:function(i){
	n.css("opacity",1*i)}
,onComplete:function(){
	(0===e||601===e)&&s()}
}
)}
if(n){
	r("#mainRanking").css("opacity",1);
	var e=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19];
	e.sort(function(){
	return.5-Math.random()}
);
	for(var t=0;
	20>t;
	t++){
	i(r("#mainRanking .gallery li").eq(e[t]),800,50*t+1)}
}
else r("#mainRanking .gallery li").css("opacity",1),i(r("#mainRanking"),2e3,0)}
}
;
	e.exports=l}
);
	;
	define("wiki-activity:widget/moments-2014/scroll/scroll.js",function(o,e,n){
	var i=o("wiki-common:widget/lib/jquery/jquery.js"),l=o("wiki-common:widget/util/animation.js"),t={
}
;
	t.getScrollTop=function(o){
	if(o)var e=o.offset().top;
	else var e=i("body").scrollTop()?i("body").scrollTop():i("html").scrollTop();
	return e}
,t.scrollTo=function(o,e,n){
	t.isScrolling=!0;
	var r=t.getScrollTop(),c="undefined"!=typeof o?o:r,s=function(){
	return!1}
;
	i(window.document).on("mousewheel",s);
	l({
	duration:150*Math.log(Math.abs(c-r)+1),delay:e||0,easing:"easeInOut",onStep:function(o){
	i("html,body").scrollTop(r+(c-r)*o)}
,onComplete:function(){
	i(window.document).off("mousewheel",s),t.isScrolling=!1,n&&n()}
}
)}
,n.exports=t}
);
	;
	define("wiki-activity:widget/moments-2014/sideNav/sideNav.js",function(e){
	var o=e("wiki-common:widget/lib/jquery/jquery.js"),i=e("wiki-common:widget/component/userLogin/userLogin.js"),a=e("wiki-common:widget/component/share/share.js"),n={
	rules:"",share:""}
;
	o("#sideNav li").on("mouseenter",function(){
	o(this).hasClass("sideNav_item-rule")?(clearTimeout(n.rules),n.rules=setTimeout(function(){
	o("#rules").show()}
,300)):o(this).hasClass("sideNav_item-share")&&(clearTimeout(n.share),n.share=setTimeout(function(){
	o("#shareBar").addClass("expand")}
,300))}
),o("#sideNav li").on("mouseleave",function(){
	o(this).hasClass("sideNav_item-rule")?(clearTimeout(n.rules),n.rules=setTimeout(function(){
	o("#rules").hide()}
,300)):o(this).hasClass("sideNav_item-share")&&(clearTimeout(n.share),n.share=setTimeout(function(){
	o("#shareBar").removeClass("expand")}
,300))}
),o("#shareBar").on("mouseenter",function(){
	clearTimeout(n.share)}
),o("#shareBar").on("mouseleave",function(){
	clearTimeout(n.share),o(this).removeClass("expand")}
),o("#rules").on("mouseenter",function(){
	clearTimeout(n.rules)}
),o("#rules").on("mouseleave",function(){
	clearTimeout(n.rules),o(this).hide()}
),o("#shareBar").on("click","em",function(){
	function e(e){
	a.openShareLink(s,{
	pic:"http://baike.bdimg.com/cms/static/moments-2014/momemnts-2014-weibo.png",title:"2014年即将离去,站在新旧交替的十字路口回顾过去的一年,哪些关键词让你记忆犹新?哪些画面让你挥之不去?百度百科精心制作年度盘点#史记·2014#,溯古鉴今,记录时代点滴。特色榜单正在火热投票中,想让你的2014记忆铭刻在百度百科的大事记中吗?还等什么,和我一起投票吧→",url:e}
)}
var n=o(this).parent("#shareBar").attr("data-search"),s=o(this).attr("data-channel");
	if(s)if(n){
	var t=window.location.protocol+"//"+window.location.host+window.location.pathname+n;
	e(t)}
else i.checkIfLogin({
	onLogin:function(o){
	var i=window.location.protocol+"//"+window.location.host+window.location.pathname+"?uid="+o.id;
	e(i)}
,onUnlogin:function(){
	var o=window.location.protocol+"//"+window.location.host+window.location.pathname;
	e(o)}
}
)}
)}
);
	;
	define("wiki-activity:widget/moments-2014/subRankings/subRankings.js",function(n){
	function t(){
}
function e(){
	var n=parseInt(9*Math.random());
	i(".subRankings-tri .subRankings_content .detail").removeClass("show"),i(".subRankings-tri .subRankings_content .shape").css("opacity",.01),i(".subRankings-tri .subRankings_content").each(function(){
	i(this).find(".detail").eq(n).addClass("show"),i(this).find(".shape").eq(n).css("opacity",.65)}
),g&&setTimeout(function(){
	g&&e()}
,1500)}
var i=n("wiki-common:widget/lib/jquery/jquery.js"),s=n("wiki-common:widget/util/addStyleSheet.js"),a=n("wiki-common:widget/util/browser.js"),o=n("wiki-common:widget/ui/marquee/marquee.js"),r=n("wiki-common:widget/ui/pager/horPager/horPager.js"),c=n("wiki-common:widget/ui/bubble/bubble.js"),d=n("wiki-common:widget/ui/overlay/overlay.js"),l=n("wiki-common:widget/util/animation.js"),u=n("wiki-common:widget/component/userLogin/userLogin.js"),h=n("wiki-common:widget/component/share/share.js"),p=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");
	p||!a.ie()||document.namespaces.v||(document.namespaces.add("v","urn:schemas-microsoft-com:vml"),s({
	"v\\:shape,v\\:group":"behavior:url(#default#VML);
	display:inline-block"}
)),t.prototype={
	constructor:t,buildArea:function(n){
	if(p){
	var t=i(document.createElementNS("http://www.w3.org/2000/svg","path")),e="M"+n[0][0]+","+n[0][1]+" L";
	for(var s in n)0!==parseInt(s)&&(e+=n[s][0],e+=",",e+=n[s][1],parseInt(s)+1!==n.length&&(e+=","));
	t.attr({
	d:e}
).attr("class","shape")}
else{
	var t=i(document.createElement("<v:shape/>")),a="m"+n[0][0]+","+n[0][1]+" L";
	for(var s in n)0!==parseInt(s)&&(a+=n[s][0],a+=",",a+=n[s][1],parseInt(s)+1!==n.length&&(a+=","));
	t.attr({
	coordsize:"980,485",fillcolor:"black",stroked:"false",strokeweight:0,path:a}
).addClass("shape")}
return t}
,getNode:function(){
	if(p)var n=i(document.createElementNS("http://www.w3.org/2000/svg","svg")).attr({
	width:"100%",height:"100%","class":"svg"}
);
	else var n=i("<div>").addClass("vml");
	return n.append(this.buildArea([[6,0],[310,0],[158,152]])),n.append(this.buildArea([[324,3],[476,155],[172,155]])),n.append(this.buildArea([[338,0],[642,0],[490,152]])),n.append(this.buildArea([[656,3],[808,155],[504,155]])),n.append(this.buildArea([[670,0],[974,0],[822,152]])),n.append(this.buildArea([[324,318],[476,165],[172,165]])),n.append(this.buildArea([[656,318],[808,165],[504,165]])),n.append(this.buildArea([[490,166],[649,325],[490,484],[331,325]])),n.append(this.buildArea([[324,333],[476,485],[172,485]])),n.append(this.buildArea([[656,333],[808,485],[504,485]])),n}
}
,i(".subRankings-tri .subRankings_content li").each(function(){
	i(this).append((new t).getNode())}
);
	var m=new d({
	opacity:.5}
);
	i(".subRankings").each(function(){
	if(i(this).find(".subRankings_comments")[0]&&i(this).find(".subRankings_comments .viewport ul li").length>2){
	var n=Math.ceil(i(this).find(".subRankings_comments .viewport ul li").length/2),t=new o({
	container:i(this).find(".subRankings_comments .viewport ul"),viewportCap:2,unitSize:{
	width:460,height:80}
,isContinuous:!0,pausingTriggers:i(this).find(".pager"),onAniStart:function(){
	e.reset({
	curIndex:this.targetTick%n+1}
)}
,autoScrollInterval:4e3,duration:500}
),e=new r({
	pContainer:i(this).find(".subRankings_comments .pager"),template:"pagerTpl_dot",containsEndTags:!0,conTotalCount:n,conPerPage:1,onIndexChange:function(){
	t.scroll(this.curIndex-1)}
}
);
	e.show()}
}
);
	var g=!0;
	e(),i(".subRankings-tri .subRankings_content").on("mouseenter",".shape",function(){
	g=!1,i(".subRankings-tri .subRankings_content .detail").removeClass("show"),i(".subRankings-tri .subRankings_content .shape").css("opacity",.01);
	var n=i(this).index();
	i(this).parents("li").find(".detail").eq(n).addClass("show"),i(this).css("opacity",.65)}
),i(".subRankings-tri .subRankings_content").on("mouseenter",".detail",function(){
	g=!1,i(".subRankings-tri .subRankings_content .detail").removeClass("show"),i(".subRankings-tri .subRankings_content .shape").css("opacity",.01);
	var n=i(this).index();
	i(this).addClass("show"),i(this).parents("li").find(".shape").eq(n).css("opacity",.65)}
),i(".subRankings-tri .subRankings_content").on("mouseleave",".shape",function(){
	g=!1;
	var n=i(this).index();
	i(this).parents("li").find(".detail").eq(n).removeClass("show"),i(this).css("opacity",.01)}
),i(".subRankings-tri .subRankings_nav,.subRankings-sqr .subRankings_nav").on("mouseenter","li",function(){
	if(!i(this).hasClass("actived")){
	var n=i(this).index(),t=i(this).parents(".subRankings"),e=t.find(".subRankings_nav li"),s=t.find(".subRankings_content li");
	e.removeClass("actived"),s.removeClass("actived"),e.eq(n).addClass("actived"),s.eq(n).addClass("actived")}
}
),i(".detail_vote").on("click",function(){
	var n=i(this).offset(),t=i(this),e=i("<div>"),s=i(this).parents(".detail").find(".detail_counts"),a=i(this).attr("data-search"),o=i(this).attr("data-key");
	o&&i.ajax({
	type:"POST",url:"/operation/api/voteshiji2014",data:{
	key:o}
,dataType:"JSON",success:function(o){
	function r(n){
	m.show(500),i("#shareDialog").fadeIn(500),i("#shareDialog .dialog_share_icon").off("click"),i("#shareDialog .dialog_share_icon").on("click","em",function(){
	var t=i(this).attr("data-channel");
	h.openShareLink(t,{
	pic:"http://baike.bdimg.com/cms/static/moments-2014/momemnts-2014-weibo.png",title:"2014年即将离去,站在新旧交替的十字路口回顾过去的一年,哪些关键词让你记忆犹新?哪些画面让你挥之不去?百度百科精心制作年度盘点#史记·2014#,溯古鉴今,记录时代点滴。特色榜单正在火热投票中,想让你的2014记忆铭刻在百度百科的大事记中吗?还等什么,和我一起投票吧→",url:n}
)}
)}
switch(o.errno){
	case 0:if(e.css({
	position:"absolute","z-index":9,left:n.left+t.width()+5,top:n.top,color:"#fed30d",transform:"scale(0.5)",transformOrigin:"left"}
).html('<span style="font-size:14px">+</span><span style="font-size:20px">1</span>'),i("body").append(e),l({
	duration:750,easing:"easeIn",onStep:function(t){
	var i=.5+1.5*t;
	e.css({
	top:n.top-40*t,transform:"scale("+i+")"}
)}
,onComplete:function(){
	s.html(parseInt(s.html())+1)}
}
),l({
	duration:300,delay:500,easing:"easeIn",onStep:function(n){
	e.css({
	opacity:1-1*n}
)}
,onComplete:function(){
	e.remove()}
}
),o.restVotes<6){
	var d=new c({
	host:t,classNames:"vote-bubble",content:"<div>您今天还剩余 <span>"+o.restVotes+"</span> 票</div>",marginFromHost:9,pos:"ver-auto",showTail:!0,hideAfterDelay:3e3,animation:"FADE"}
).show();
	i(".detail_vote").on("mouseleave",function(){
	d.hide()}
)}
i(".detail_vote").attr("data-rest",o.restVotes);
	break;
	case 1:break;
	case 2:u.showLoginPop({
	onLoginSuccess:function(){
}
}
);
	break;
	case 3:if(a){
	var p=window.location.protocol+"//"+window.location.host+window.location.pathname+a;
	r(p)}
else u.checkIfLogin({
	onLogin:function(n){
	var t=window.location.protocol+"//"+window.location.host+window.location.pathname+"?uid="+n.id;
	r(t)}
,onUnlogin:function(){
	var n=window.location.protocol+"//"+window.location.host+window.location.pathname;
	r(n)}
}
);
	break;
	default:alert("未知错误,请稍后再试")}
}
,error:function(){
	alert("网络错误,请稍后再试")}
}
)}
),i(".detail_vote").on("mouseover",function(){
	var n=i(this).attr("data-rest");
	if(6>n){
	var t=new c({
	host:i(this),classNames:"vote-bubble",content:"<div>您今天还剩余 <span>"+n+"</span> 票</div>",marginFromHost:9,pos:"auto",showTail:!0,hideAfterDelay:3e3,animation:"FADE"}
).show();
	i(".detail_vote").on("mouseleave",function(){
	t.hide()}
)}
}
),i("#shareDialog .dialog_close").on("click",function(){
	m.hide(500),i("#shareDialog").fadeOut(500)}
)}
);
	;
	var $=require("wiki-common:widget/lib/jquery/jquery.js"),cookie=require("wiki-common:widget/util/cookie.js"),animation=require("wiki-common:widget/util/animation.js"),userLogin=require("wiki-common:widget/component/userLogin/userLogin.js"),scrollExt=require("wiki-activity:widget/moments-2014/scroll/scroll.js"),Overlay=require("wiki-common:widget/ui/overlay/overlay.js"),mainRanking=require("wiki-activity:widget/moments-2014/mainRanking/mainRanking.js"),isGuiding=!1,isTwinkleInit=!1,allowRulesGuide=!1,isRulesGuiding=!1;
	setTimeout(function(){
	function i(){
	return scrollExt.getScrollTop()}
function s(){
	var s=$(window).height(),e=i(),o=scrollExt.getScrollTop($("#process")),n=e+s/2;
	$("#sideNav li,#sideNav dd").removeClass("actived"),n>scrollExt.getScrollTop($(".subRankings-museum"))?($("#sideNav .sideNav_item-subRankings").addClass("actived"),$("#sideNav .sideNav_item-subRankings dl dd").eq(4).addClass("actived")):n>scrollExt.getScrollTop($(".subRankings-tech"))?($("#sideNav .sideNav_item-subRankings").addClass("actived"),$("#sideNav .sideNav_item-subRankings dl dd").eq(3).addClass("actived")):n>scrollExt.getScrollTop($(".subRankings-society"))?($("#sideNav .sideNav_item-subRankings").addClass("actived"),$("#sideNav .sideNav_item-subRankings dl dd").eq(2).addClass("actived")):n>scrollExt.getScrollTop($(".subRankings-net"))?($("#sideNav .sideNav_item-subRankings").addClass("actived"),$("#sideNav .sideNav_item-subRankings dl dd").eq(1).addClass("actived")):n>scrollExt.getScrollTop($(".subRankings-entertain"))?($("#sideNav .sideNav_item-subRankings").addClass("actived"),$("#sideNav .sideNav_item-subRankings dl dd").eq(0).addClass("actived")):$("#sideNav .sideNav_item-mainRanking").addClass("actived"),l||(l=!0,o>e?$("#sideNav").fadeOut(300,function(){
	l=!1}
):e>o-1&&$("#sideNav").fadeIn(300,function(){
	l=!1}
))}
function e(){
	if("1"!=cookie.get("moments2014_rules")){
	var e=new Overlay({
	opacity:.5,onShow:function(){
	$("#rulesGuide").fadeIn(500)}
}
);
	allowRulesGuide=!0,cookie.set("moments2014_rules","1",{
	expires:31536e6,path:"/"}
),$("#rulesGuide .rulesGuide_confirm").on("click",function(){
	isRulesGuiding=!1,$(this).parent("#rulesGuide").fadeOut(500),e.hide(500),$("body").css({
	overflow:"visible"}
)}
)}
$(window).on("scroll",function(){
	"0"!==$("#mainRanking").css("opacity")||isTwinkleInit||(clearTimeout(o),mainRanking.init()),i()+$(window).height()>scrollExt.getScrollTop($("#process"))?(isGuiding=!1,allowRulesGuide&&scrollExt.isScrolling&&(isRulesGuiding=!0,e.show(500),$("body").css({
	overflow:"hidden"}
)),allowRulesGuide=!1):i()<scrollExt.getScrollTop($("#process"))&&(isGuiding=!0),s()}
)}
var l=!1;
	if(s(),i()<500){
	isGuiding=!0;
	var o=setTimeout(function(){
	isTwinkleInit=!0,scrollExt.scrollTo(scrollExt.getScrollTop($("#process"))-$(window).height()>0?scrollExt.getScrollTop($("#process"))-$(window).height():0),setTimeout(function(){
	mainRanking.init(!0)}
,500)}
,7e3);
	scrollExt.scrollTo(0,0,e)}
else isGuiding=!1,mainRanking.init(),e();
	document.createElement("canvas").getContext||(mainRanking.init(),clearTimeout(o)),$(window.document).on("mousewheel",function(s){
	if(!isRulesGuiding){
	var e=$(window).height(),l=i(),o=scrollExt.getScrollTop($("#process"));
	!scrollExt.isScrolling&&isGuiding&&e+l+100>=o&&s.deltaY<0?scrollExt.scrollTo(o):!scrollExt.isScrolling&&!isGuiding&&o>=l-100&&s.deltaY>0&&scrollExt.scrollTo(o-e)}
}
),$("#sideNav li .sideNav_item_title").on("click",function(){
	var i=$(this).parent("li"),s=i.attr("data-scroll");
	if(!scrollExt.isScrolling&&s&&"momentsGuide"!==s);
	else if(!scrollExt.isScrolling&&s&&"momentsGuide"===s)isGuiding=!0,scrollExt.scrollTo(scrollExt.getScrollTop($("#process"))-$(window).height()>0?scrollExt.getScrollTop($("#process"))-$(window).height():0);
	else if(i.hasClass("sideNav_item-subRankings")){
	var e=i.height();
	if(65===e||210===e){
	var l=65===e?145:-145;
	animation({
	duration:200,easing:"easeIn",onStep:function(s){
	i.height(e+l*s)}
}
)}
}
}
),$("#sideNav .sideNav_item-subRankings dl").on("click","dd",function(){
	var i=$(this).attr("data-scroll");
	!scrollExt.isScrolling&&i&&scrollExt.scrollTo(scrollExt.getScrollTop($(".subRankings-"+i)))}
)}
,500);
	;
	define("wiki-activity:widget/moments-2014/guide/guide.js",function(e){
	var t=e("wiki-common:widget/lib/jquery/jquery.js"),i=e("wiki-common:widget/lib/kinetic/kinetic.js"),l=e("wiki-activity:widget/moments-2014/guide/guideElements.js"),d=t("#momentsGuide").width(),s=t("#momentsGuide").height(),o=[],h={
	lines:[[],[],[]],dots:[[],[],[]]}
;
	l.onload(function(){
	function e(e,t,i,l){
	var d={
	x:e-i/2,y:t-l/2}
,s={
	x:d.x/(i/2),y:d.y/(l/2)}
;
	return{
	point:d,extent:s}
}
function n(e){
	return Math.pow(e,15)}
function r(e){
	var i=30;
	t("#momentsGuide canvas").eq(2).css({
	left:e.extent.x*i*n(o[0].scaleX()),top:e.extent.y*i*n(o[0].scaleX())}
),t("#momentsGuide canvas").eq(1).css({
	left:e.extent.x*i*n(o[1].scaleX()),top:e.extent.y*i*n(o[1].scaleX())}
),t("#momentsGuide canvas").eq(0).css({
	left:e.extent.x*i*n(o[2].scaleX()),top:e.extent.y*i*n(o[2].scaleX())}
)}
var a=new i.Stage({
	container:"momentsGuide",width:d,height:s}
),y=l.build.layer({
	width:d,height:s,scale:1}
);
	o[0]=l.build.layer({
	width:d,height:s,scale:1}
),o[1]=l.build.layer({
	width:d,height:s,scale:.95}
),o[2]=l.build.layer({
	width:d,height:s,scale:.91}
),h.logo=l.build.logo(),h.slogan=l.build.slogan(),h.dots[0].push(l.build.dot({
	layer:o[0],x:1034,y:601,text:"马航失踪事件",textIdx:9,textOffset:{
	x:-10,y:-125}
,delay:500}
)),h.dots[0].push(l.build.dot({
	layer:o[0],x:1590,y:496,text:"埃博拉",textIdx:6,textOffset:{
	x:-10,y:-95}
,delay:650}
)),h.lines[0].push(l.build.line({
	layer:o[0],x:85,y:780,width:d,height:s,degree:79.3,strokeWidth:1.5,color:"#666",delay:800}
)),h.lines[0].push(l.build.line({
	layer:o[0],x:318,y:0,width:d,height:s,degree:130,strokeWidth:1.5,color:"#666",delay:950}
)),h.dots[1].push(l.build.dot({
	layer:o[1],x:1637,y:80,text:"打老虎",textIdx:2,textOffset:{
	x:-10,y:-25}
,delay:1100}
)),h.dots[1].push(l.build.dot({
	layer:o[1],x:880,y:140,text:"改革元年",textIdx:0,textOffset:{
	x:-10,y:-100}
,delay:1250}
)),h.dots[1].push(l.build.dot({
	layer:o[1],x:1120,y:52.5,text:"独立公投",textIdx:5,textOffset:{
	x:-10,y:-20}
,delay:1400}
)),h.dots[1].push(l.build.dot({
	layer:o[1],x:881,y:500,text:"真人秀",textIdx:7,textOffset:{
	x:-25,y:-60}
,delay:1550}
)),h.dots[1].push(l.build.dot({
	layer:o[1],x:960,y:299,text:"彭丽媛",textIdx:4,textOffset:{
	x:-10,y:-95}
,delay:1700}
)),h.dots[1].push(l.build.dot({
	layer:o[1],x:1460,y:241,text:"移动支付",textIdx:3,textOffset:{
	x:0,y:-100}
,delay:1850}
)),h.dots[1].push(l.build.dot({
	layer:o[1],x:1640,y:580,text:"霾",textIdx:8,textOffset:{
	x:-10,y:-40}
,delay:2e3}
)),h.dots[1].push(l.build.dot({
	layer:o[1],x:1240,y:640,text:"黄赌毒",textIdx:1,textOffset:{
	x:0,y:-85}
,delay:2150}
)),h.lines[1].push(l.build.line({
	layer:o[1],x:1400,y:-50,width:d,height:s,degree:250,strokeWidth:1,color:"#999",delay:1500}
)),h.lines[1].push(l.build.line({
	layer:o[1],x:1113.5,y:-50,width:d,height:s,degree:130,strokeWidth:1,color:"#ccc",delay:1500}
)),h.lines[1].push(l.build.line({
	layer:o[1],x:2560,y:915,width:d,height:s,degree:-70,strokeWidth:1,color:"#ccc",delay:1500}
)),h.lines[1].push(l.build.line({
	layer:o[1],x:810,y:900,width:d,height:s,degree:10,strokeWidth:1,color:"#ccc",delay:1500}
)),h.lines[1].push(l.build.line({
	layer:o[1],x:0,y:611,width:d,height:s,degree:72,strokeWidth:1,color:"#ccc",delay:1500}
)),h.lines[1].push(l.build.line({
	layer:o[1],x:2560,y:873,width:d,height:s,degree:-80,strokeWidth:1,color:"#ccc",delay:1500}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:1340,y:800,width:d,height:s,degree:25,color:"#ccc"}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:1440,y:800,width:d,height:s,degree:25,color:"#ccc"}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:1840,y:0,width:d,height:s,degree:190,color:"#ccc"}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:0,y:0,width:d,height:s,degree:115,color:"#ccc"}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:0,y:140,width:d,height:s,degree:115,color:"#ccc"}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:2560,y:240,width:d,height:s,degree:-80,color:"#ccc"}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:560,y:800,width:d,height:s,degree:40,color:"#ccc"}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:1240,y:0,width:d,height:s,degree:210,color:"#ccc"}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:1380,y:0,width:d,height:s,degree:175,color:"#ccc"}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:740,y:0,width:d,height:s,degree:240,color:"#ccc"}
)),h.lines[2].push(l.build.line({
	layer:o[2],x:180,y:800,width:d,height:s,degree:50,color:"#ccc"}
)),function(){
	for(var e in o){
	var t=o[e];
	for(var i in h.lines[e]){
	var l=h.lines[e][i];
	t.add(l)}
for(var i in h.dots[e]){
	var d=h.dots[e][i];
	t.add(d)}
}
y.add(h.logo),o[0].add(h.slogan),a.add(o[2],o[1],o[0],y);
	for(var e in h.lines)for(var i in h.lines[e])h.lines[e][i].startAni()&&h.lines[e][e].startAni();
	for(var e in h.dots)for(var i in h.dots[e])h.dots[e][i].startAni()&&h.dots[e][e].startAni();
	setTimeout(function(){
	h.logo.startAni()}
,5e3),setTimeout(function(){
	h.slogan.startAni()}
,6250)}
(),t("body").on("mousemove",function(i){
	var l=t(window).width(),d=t(window).height(),s=e(i.pageX,i.pageY,l,d);
	r(s)}
)}
)}
);
	

JS代码(wiki-common_sync_js_0_c71edc4.js):

var require,define;
	!function(e){
	function r(e,r){
	function t(){
	clearTimeout(o)}
if(!(e in u)){
	u[e]=!0;
	var i=document.createElement("script");
	if(r){
	var o=setTimeout(r,require.timeout);
	i.onerror=function(){
	clearTimeout(o),r()}
,"onload"in i?i.onload=t:i.onreadystatechange=function(){
	("loaded"==this.readyState||"complete"==this.readyState)&&t()}
}
return i.type="text/javascript",i.src=e,n.appendChild(i),i}
}
function t(e,t,n){
	var o=i[e]||(i[e]=[]);
	o.push(t);
	var a,u=s[e]||{
}
,f=u.pkg;
	a=f?c[f].url:u.url||e,r(a,n&&function(){
	n(e)}
)}
var n=document.getElementsByTagName("head")[0],i={
}
,o={
}
,a={
}
,u={
}
,s={
}
,c={
}
;
	define=function(e,r){
	o[e]=r;
	var t=i[e];
	if(t){
	for(var n=0,a=t.length;
	a>n;
	n++)t[n]();
	delete i[e]}
}
,require=function(e){
	e=require.alias(e);
	var r=a[e];
	if(r)return r.exports;
	var t=o[e];
	if(!t)throw"[ModJS] Cannot find module `"+e+"`";
	r=a[e]={
	exports:{
}
}
;
	var n="function"==typeof t?t.apply(r,[require,r.exports,r]):t;
	return n&&(r.exports=n),r.exports}
,require.async=function(r,n,i){
	function a(e){
	for(var r=0,n=e.length;
	n>r;
	r++){
	var c=e[r];
	if(!(c in o||c in l)){
	l[c]=!0,p++,t(c,u,i);
	var f=s[c];
	f&&"deps"in f&&a(f.deps)}
}
}
function u(){
	if(0==p--){
	for(var t=[],i=0,o=r.length;
	o>i;
	i++)t[i]=require(r[i]);
	n&&n.apply(e,t)}
}
"string"==typeof r&&(r=[r]);
	for(var c=0,f=r.length;
	f>c;
	c++)r[c]=require.alias(r[c]);
	var l={
}
,p=0;
	a(r),u()}
,require.resourceMap=function(e){
	var r,t;
	t=e.res;
	for(r in t)t.hasOwnProperty(r)&&(s[r]=t[r]);
	t=e.pkg;
	for(r in t)t.hasOwnProperty(r)&&(c[r]=t[r])}
,require.loadJs=function(e){
	r(e)}
,require.loadCss=function(e){
	if(e.content){
	var r=document.createElement("style");
	r.type="text/css",r.styleSheet?r.styleSheet.cssText=e.content:r.innerHTML=e.content,n.appendChild(r)}
else if(e.url){
	var t=document.createElement("link");
	t.href=e.url,t.rel="stylesheet",t.type="text/css",n.appendChild(t)}
}
,require.alias=function(e){
	return e}
,require.timeout=5e3}
(this);
	;
	define("wiki-common:widget/lib/jquery/jquery.mousewheel.js",function(e,t,i){
	!function(e){
	"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof t?i.exports=e:e(jQuery)}
(function(e){
	function t(t){
	var s=t||window.event,a=h.call(arguments,1),u=0,f=0,d=0,c=0,m=0,g=0;
	if(t=e.event.fix(s),t.type="mousewheel","detail"in s&&(d=-1*s.detail),"wheelDelta"in s&&(d=s.wheelDelta),"wheelDeltaY"in s&&(d=s.wheelDeltaY),"wheelDeltaX"in s&&(f=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(f=-1*d,d=0),u=0===d?f:d,"deltaY"in s&&(d=-1*s.deltaY,u=d),"deltaX"in s&&(f=s.deltaX,0===d&&(u=-1*f)),0!==d||0!==f){
	if(1===s.deltaMode){
	var w=e.data(this,"mousewheel-line-height");
	u*=w,d*=w,f*=w}
else if(2===s.deltaMode){
	var v=e.data(this,"mousewheel-page-height");
	u*=v,d*=v,f*=v}
if(c=Math.max(Math.abs(d),Math.abs(f)),(!l||l>c)&&(l=c,n(s,c)&&(l/=40)),n(s,c)&&(u/=40,f/=40,d/=40),u=Math[u>=1?"floor":"ceil"](u/l),f=Math[f>=1?"floor":"ceil"](f/l),d=Math[d>=1?"floor":"ceil"](d/l),r.settings.normalizeOffset&&this.getBoundingClientRect){
	var p=this.getBoundingClientRect();
	m=t.clientX-p.left,g=t.clientY-p.top}
return t.deltaX=f,t.deltaY=d,t.deltaFactor=l,t.offsetX=m,t.offsetY=g,t.deltaMode=0,a.unshift(t,u,f,d),o&&clearTimeout(o),o=setTimeout(i,200),(e.event.dispatch||e.event.handle).apply(this,a)}
}
function i(){
	l=null}
function n(e,t){
	return r.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}
var o,l,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice;
	if(e.event.fixHooks)for(var u=s.length;
	u;
	)e.event.fixHooks[s[--u]]=e.event.mouseHooks;
	var r=e.event.special.mousewheel={
	version:"3.1.12",setup:function(){
	if(this.addEventListener)for(var i=a.length;
	i;
	)this.addEventListener(a[--i],t,!1);
	else this.onmousewheel=t;
	e.data(this,"mousewheel-line-height",r.getLineHeight(this)),e.data(this,"mousewheel-page-height",r.getPageHeight(this))}
,teardown:function(){
	if(this.removeEventListener)for(var i=a.length;
	i;
	)this.removeEventListener(a[--i],t,!1);
	else this.onmousewheel=null;
	e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")}
,getLineHeight:function(t){
	var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();
	return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16}
,getPageHeight:function(t){
	return e(t).height()}
,settings:{
	adjustOldDeltas:!0,normalizeOffset:!0}
}
;
	e.fn.extend({
	mousewheel:function(e){
	return e?this.bind("mousewheel",e):this.trigger("mousewheel")}
,unmousewheel:function(e){
	return this.unbind("mousewheel",e)}
}
)}
)}
);
	;
	define("wiki-common:widget/lib/jquery/jquery_1.11.1.js",function(e,t,n){
	!function(e,t){
	"object"==typeof n&&"object"==typeof n.exports?n.exports=e.document?t(e,!0):function(e){
	if(!e.document)throw new Error("jQuery requires a window with a document");
	return t(e)}
:t(e)}
("undefined"!=typeof window?window:this,function(e,t){
	function n(e){
	var t=e.length,n=it.type(e);
	return"function"===n||it.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}
function r(e,t,n){
	if(it.isFunction(t))return it.grep(e,function(e,r){
	return!!t.call(e,r,e)!==n}
);
	if(t.nodeType)return it.grep(e,function(e){
	return e===t!==n}
);
	if("string"==typeof t){
	if(ft.test(t))return it.filter(t,e,n);
	t=it.filter(t,e)}
return it.grep(e,function(e){
	return it.inArray(e,t)>=0!==n}
)}
function i(e,t){
	do e=e[t];
	while(e&&1!==e.nodeType);
	return e}
function o(e){
	var t=xt[e]={
}
;
	return it.each(e.match(bt)||[],function(e,n){
	t[n]=!0}
),t}
function a(){
	ht.addEventListener?(ht.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(ht.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}
function s(){
	(ht.addEventListener||"load"===event.type||"complete"===ht.readyState)&&(a(),it.ready())}
function l(e,t,n){
	if(void 0===n&&1===e.nodeType){
	var r="data-"+t.replace(Et,"-$1").toLowerCase();
	if(n=e.getAttribute(r),"string"==typeof n){
	try{
	n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Nt.test(n)?it.parseJSON(n):n}
catch(i){
}
it.data(e,t,n)}
else n=void 0}
return n}
function u(e){
	var t;
	for(t in e)if(("data"!==t||!it.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;
	return!0}
function c(e,t,n,r){
	if(it.acceptData(e)){
	var i,o,a=it.expando,s=e.nodeType,l=s?it.cache:e,u=s?e[a]:e[a]&&a;
	if(u&&l[u]&&(r||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=J.pop()||it.guid++:a),l[u]||(l[u]=s?{
}
:{
	toJSON:it.noop}
),("object"==typeof t||"function"==typeof t)&&(r?l[u]=it.extend(l[u],t):l[u].data=it.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={
}
),o=o.data),void 0!==n&&(o[it.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[it.camelCase(t)])):i=o,i}
}
function d(e,t,n){
	if(it.acceptData(e)){
	var r,i,o=e.nodeType,a=o?it.cache:e,s=o?e[it.expando]:it.expando;
	if(a[s]){
	if(t&&(r=n?a[s]:a[s].data)){
	it.isArray(t)?t=t.concat(it.map(t,it.camelCase)):t in r?t=[t]:(t=it.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;
	for(;
	i--;
	)delete r[t[i]];
	if(n?!u(r):!it.isEmptyObject(r))return}
(n||(delete a[s].data,u(a[s])))&&(o?it.cleanData([e],!0):nt.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}
}
}
function f(){
	return!0}
function p(){
	return!1}
function h(){
	try{
	return ht.activeElement}
catch(e){
}
}
function m(e){
	var t=Ot.split("|"),n=e.createDocumentFragment();
	if(n.createElement)for(;
	t.length;
	)n.createElement(t.pop());
	return n}
function g(e,t){
	var n,r,i=0,o=typeof e.getElementsByTagName!==Ct?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Ct?e.querySelectorAll(t||"*"):void 0;
	if(!o)for(o=[],n=e.childNodes||e;
	null!=(r=n[i]);
	i++)!t||it.nodeName(r,t)?o.push(r):it.merge(o,g(r,t));
	return void 0===t||t&&it.nodeName(e,t)?it.merge([e],o):o}
function v(e){
	Dt.test(e.type)&&(e.defaultChecked=e.checked)}
function y(e,t){
	return it.nodeName(e,"table")&&it.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}
function b(e){
	return e.type=(null!==it.find.attr(e,"type"))+"/"+e.type,e}
function x(e){
	var t=Vt.exec(e.type);
	return t?e.type=t[1]:e.removeAttribute("type"),e}
function w(e,t){
	for(var n,r=0;
	null!=(n=e[r]);
	r++)it._data(n,"globalEval",!t||it._data(t[r],"globalEval"))}
function T(e,t){
	if(1===t.nodeType&&it.hasData(e)){
	var n,r,i,o=it._data(e),a=it._data(t,o),s=o.events;
	if(s){
	delete a.handle,a.events={
}
;
	for(n in s)for(r=0,i=s[n].length;
	i>r;
	r++)it.event.add(t,n,s[n][r])}
a.data&&(a.data=it.extend({
}
,a.data))}
}
function C(e,t){
	var n,r,i;
	if(1===t.nodeType){
	if(n=t.nodeName.toLowerCase(),!nt.noCloneEvent&&t[it.expando]){
	i=it._data(t);
	for(r in i.events)it.removeEvent(t,r,i.handle);
	t.removeAttribute(it.expando)}
"script"===n&&t.text!==e.text?(b(t).text=e.text,x(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),nt.html5Clone&&e.innerHTML&&!it.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Dt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}
}
function N(t,n){
	var r,i=it(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:it.css(i[0],"display");
	return i.detach(),o}
function E(e){
	var t=ht,n=Zt[e];
	return n||(n=N(e,t),"none"!==n&&n||(Kt=(Kt||it("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Kt[0].contentWindow||Kt[0].contentDocument).document,t.write(),t.close(),n=N(e,t),Kt.detach()),Zt[e]=n),n}
function k(e,t){
	return{
	get:function(){
	var n=e();
	if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}
}
}
function S(e,t){
	if(t in e)return t;
	for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=pn.length;
	i--;
	)if(t=pn[i]+n,t in e)return t;
	return r}
function A(e,t){
	for(var n,r,i,o=[],a=0,s=e.length;
	s>a;
	a++)r=e[a],r.style&&(o[a]=it._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&At(r)&&(o[a]=it._data(r,"olddisplay",E(r.nodeName)))):(i=At(r),(n&&"none"!==n||!i)&&it._data(r,"olddisplay",i?n:it.css(r,"display"))));
	for(a=0;
	s>a;
	a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));
	return e}
function j(e,t,n){
	var r=un.exec(t);
	return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}
function D(e,t,n,r,i){
	for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;
	4>o;
	o+=2)"margin"===n&&(a+=it.css(e,n+St[o],!0,i)),r?("content"===n&&(a-=it.css(e,"padding"+St[o],!0,i)),"margin"!==n&&(a-=it.css(e,"border"+St[o]+"Width",!0,i))):(a+=it.css(e,"padding"+St[o],!0,i),"padding"!==n&&(a+=it.css(e,"border"+St[o]+"Width",!0,i)));
	return a}
function L(e,t,n){
	var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=en(e),a=nt.boxSizing&&"border-box"===it.css(e,"boxSizing",!1,o);
	if(0>=i||null==i){
	if(i=tn(e,t,o),(0>i||null==i)&&(i=e.style[t]),rn.test(i))return i;
	r=a&&(nt.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}
return i+D(e,t,n||(a?"border":"content"),r,o)+"px"}
function H(e,t,n,r,i){
	return new H.prototype.init(e,t,n,r,i)}
function q(){
	return setTimeout(function(){
	hn=void 0}
),hn=it.now()}
function _(e,t){
	var n,r={
	height:e}
,i=0;
	for(t=t?1:0;
	4>i;
	i+=2-t)n=St[i],r["margin"+n]=r["padding"+n]=e;
	return t&&(r.opacity=r.width=e),r}
function M(e,t,n){
	for(var r,i=(xn[t]||[]).concat(xn["*"]),o=0,a=i.length;
	a>o;
	o++)if(r=i[o].call(n,t,e))return r}
function O(e,t,n){
	var r,i,o,a,s,l,u,c,d=this,f={
}
,p=e.style,h=e.nodeType&&At(e),m=it._data(e,"fxshow");
	n.queue||(s=it._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){
	s.unqueued||l()}
),s.unqueued++,d.always(function(){
	d.always(function(){
	s.unqueued--,it.queue(e,"fx").length||s.empty.fire()}
)}
)),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],u=it.css(e,"display"),c="none"===u?it._data(e,"olddisplay")||E(e.nodeName):u,"inline"===c&&"none"===it.css(e,"float")&&(nt.inlineBlockNeedsLayout&&"inline"!==E(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",nt.shrinkWrapBlocks()||d.always(function(){
	p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}
));
	for(r in t)if(i=t[r],gn.exec(i)){
	if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){
	if("show"!==i||!m||void 0===m[r])continue;
	h=!0}
f[r]=m&&m[r]||it.style(e,r)}
else u=void 0;
	if(it.isEmptyObject(f))"inline"===("none"===u?E(e.nodeName):u)&&(p.display=u);
	else{
	m?"hidden"in m&&(h=m.hidden):m=it._data(e,"fxshow",{
}
),o&&(m.hidden=!h),h?it(e).show():d.done(function(){
	it(e).hide()}
),d.done(function(){
	var t;
	it._removeData(e,"fxshow");
	for(t in f)it.style(e,t,f[t])}
);
	for(r in f)a=M(h?m[r]:0,r,d),r in m||(m[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}
}
function F(e,t){
	var n,r,i,o,a;
	for(n in e)if(r=it.camelCase(n),i=t[r],o=e[n],it.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=it.cssHooks[r],a&&"expand"in a){
	o=a.expand(o),delete e[r];
	for(n in o)n in e||(e[n]=o[n],t[n]=i)}
else t[r]=i}
function B(e,t,n){
	var r,i,o=0,a=bn.length,s=it.Deferred().always(function(){
	delete l.elem}
),l=function(){
	if(i)return!1;
	for(var t=hn||q(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;
	l>a;
	a++)u.tweens[a].run(o);
	return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)}
,u=s.promise({
	elem:e,props:it.extend({
}
,t),opts:it.extend(!0,{
	specialEasing:{
}
}
,n),originalProperties:t,originalOptions:n,startTime:hn||q(),duration:n.duration,tweens:[],createTween:function(t,n){
	var r=it.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);
	return u.tweens.push(r),r}
,stop:function(t){
	var n=0,r=t?u.tweens.length:0;
	if(i)return this;
	for(i=!0;
	r>n;
	n++)u.tweens[n].run(1);
	return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}
}
),c=u.props;
	for(F(c,u.opts.specialEasing);
	a>o;
	o++)if(r=bn[o].call(u,e,c,u.opts))return r;
	return it.map(c,M,u),it.isFunction(u.opts.start)&&u.opts.start.call(e,u),it.fx.timer(it.extend(l,{
	elem:e,anim:u,queue:u.opts.queue}
)),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}
function P(e){
	return function(t,n){
	"string"!=typeof t&&(n=t,t="*");
	var r,i=0,o=t.toLowerCase().match(bt)||[];
	if(it.isFunction(n))for(;
	r=o[i++];
	)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}
}
function R(e,t,n,r){
	function i(s){
	var l;
	return o[s]=!0,it.each(e[s]||[],function(e,s){
	var u=s(t,n,r);
	return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}
),l}
var o={
}
,a=e===In;
	return i(t.dataTypes[0])||!o["*"]&&i("*")}
function W(e,t){
	var n,r,i=it.ajaxSettings.flatOptions||{
}
;
	for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={
}
))[r]=t[r]);
	return n&&it.extend(!0,e,n),e}
function $(e,t,n){
	for(var r,i,o,a,s=e.contents,l=e.dataTypes;
	"*"===l[0];
	)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));
	if(i)for(a in s)if(s[a]&&s[a].test(i)){
	l.unshift(a);
	break}
if(l[0]in n)o=l[0];
	else{
	for(a in n){
	if(!l[0]||e.converters[a+" "+l[0]]){
	o=a;
	break}
r||(r=a)}
o=o||r}
return o?(o!==l[0]&&l.unshift(o),n[o]):void 0}
function z(e,t,n,r){
	var i,o,a,s,l,u={
}
,c=e.dataTypes.slice();
	if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];
	for(o=c.shift();
	o;
	)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;
	else if("*"!==l&&l!==o){
	if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){
	a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));
	break}
if(a!==!0)if(a&&e["throws"])t=a(t);
	else try{
	t=a(t)}
catch(d){
	return{
	state:"parsererror",error:a?d:"No conversion from "+l+" to "+o}
}
}
return{
	state:"success",data:t}
}
function I(e,t,n,r){
	var i;
	if(it.isArray(t))it.each(t,function(t,i){
	n||Jn.test(e)?r(e,i):I(e+"["+("object"==typeof i?t:"")+"]",i,n,r)}
);
	else if(n||"object"!==it.type(t))r(e,t);
	else for(i in t)I(e+"["+i+"]",t[i],n,r)}
function X(){
	try{
	return new e.XMLHttpRequest}
catch(t){
}
}
function U(){
	try{
	return new e.ActiveXObject("Microsoft.XMLHTTP")}
catch(t){
}
}
function V(e){
	return it.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}
var J=[],Y=J.slice,G=J.concat,Q=J.push,K=J.indexOf,Z={
}
,et=Z.toString,tt=Z.hasOwnProperty,nt={
}
,rt="1.11.1",it=function(e,t){
	return new it.fn.init(e,t)}
,ot=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,st=/-([\da-z])/gi,lt=function(e,t){
	return t.toUpperCase()}
;
	it.fn=it.prototype={
	jquery:rt,constructor:it,selector:"",length:0,toArray:function(){
	return Y.call(this)}
,get:function(e){
	return null!=e?0>e?this[e+this.length]:this[e]:Y.call(this)}
,pushStack:function(e){
	var t=it.merge(this.constructor(),e);
	return t.prevObject=this,t.context=this.context,t}
,each:function(e,t){
	return it.each(this,e,t)}
,map:function(e){
	return this.pushStack(it.map(this,function(t,n){
	return e.call(t,n,t)}
))}
,slice:function(){
	return this.pushStack(Y.apply(this,arguments))}
,first:function(){
	return this.eq(0)}
,last:function(){
	return this.eq(-1)}
,eq:function(e){
	var t=this.length,n=+e+(0>e?t:0);
	return this.pushStack(n>=0&&t>n?[this[n]]:[])}
,end:function(){
	return this.prevObject||this.constructor(null)}
,push:Q,sort:J.sort,splice:J.splice}
,it.extend=it.fn.extend=function(){
	var e,t,n,r,i,o,a=arguments[0]||{
}
,s=1,l=arguments.length,u=!1;
	for("boolean"==typeof a&&(u=a,a=arguments[s]||{
}
,s++),"object"==typeof a||it.isFunction(a)||(a={
}
),s===l&&(a=this,s--);
	l>s;
	s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],n=i[r],a!==n&&(u&&n&&(it.isPlainObject(n)||(t=it.isArray(n)))?(t?(t=!1,o=e&&it.isArray(e)?e:[]):o=e&&it.isPlainObject(e)?e:{
}
,a[r]=it.extend(u,o,n)):void 0!==n&&(a[r]=n));
	return a}
,it.extend({
	expando:"jQuery"+(rt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){
	throw new Error(e)}
,noop:function(){
}
,isFunction:function(e){
	return"function"===it.type(e)}
,isArray:Array.isArray||function(e){
	return"array"===it.type(e)}
,isWindow:function(e){
	return null!=e&&e==e.window}
,isNumeric:function(e){
	return!it.isArray(e)&&e-parseFloat(e)>=0}
,isEmptyObject:function(e){
	var t;
	for(t in e)return!1;
	return!0}
,isPlainObject:function(e){
	var t;
	if(!e||"object"!==it.type(e)||e.nodeType||it.isWindow(e))return!1;
	try{
	if(e.constructor&&!tt.call(e,"constructor")&&!tt.call(e.constructor.prototype,"isPrototypeOf"))return!1}
catch(n){
	return!1}
if(nt.ownLast)for(t in e)return tt.call(e,t);
	for(t in e);
	return void 0===t||tt.call(e,t)}
,type:function(e){
	return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[et.call(e)]||"object":typeof e}
,globalEval:function(t){
	t&&it.trim(t)&&(e.execScript||function(t){
	e.eval.call(e,t)}
)(t)}
,camelCase:function(e){
	return e.replace(at,"ms-").replace(st,lt)}
,nodeName:function(e,t){
	return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}
,each:function(e,t,r){
	var i,o=0,a=e.length,s=n(e);
	if(r){
	if(s)for(;
	a>o&&(i=t.apply(e[o],r),i!==!1);
	o++);
	else for(o in e)if(i=t.apply(e[o],r),i===!1)break}
else if(s)for(;
	a>o&&(i=t.call(e[o],o,e[o]),i!==!1);
	o++);
	else for(o in e)if(i=t.call(e[o],o,e[o]),i===!1)break;
	return e}
,trim:function(e){
	return null==e?"":(e+"").replace(ot,"")}
,makeArray:function(e,t){
	var r=t||[];
	return null!=e&&(n(Object(e))?it.merge(r,"string"==typeof e?[e]:e):Q.call(r,e)),r}
,inArray:function(e,t,n){
	var r;
	if(t){
	if(K)return K.call(t,e,n);
	for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;
	r>n;
	n++)if(n in t&&t[n]===e)return n}
return-1}
,merge:function(e,t){
	for(var n=+t.length,r=0,i=e.length;
	n>r;
	)e[i++]=t[r++];
	if(n!==n)for(;
	void 0!==t[r];
	)e[i++]=t[r++];
	return e.length=i,e}
,grep:function(e,t,n){
	for(var r,i=[],o=0,a=e.length,s=!n;
	a>o;
	o++)r=!t(e[o],o),r!==s&&i.push(e[o]);
	return i}
,map:function(e,t,r){
	var i,o=0,a=e.length,s=n(e),l=[];
	if(s)for(;
	a>o;
	o++)i=t(e[o],o,r),null!=i&&l.push(i);
	else for(o in e)i=t(e[o],o,r),null!=i&&l.push(i);
	return G.apply([],l)}
,guid:1,proxy:function(e,t){
	var n,r,i;
	return"string"==typeof t&&(i=e[t],t=e,e=i),it.isFunction(e)?(n=Y.call(arguments,2),r=function(){
	return e.apply(t||this,n.concat(Y.call(arguments)))}
,r.guid=e.guid=e.guid||it.guid++,r):void 0}
,now:function(){
	return+new Date}
,support:nt}
),it.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){
	Z["[object "+t+"]"]=t.toLowerCase()}
);
	var ut=function(e){
	function t(e,t,n,r){
	var i,o,a,s,l,u,d,p,h,m;
	if((t?t.ownerDocument||t:R)!==H&&L(t),t=t||H,n=n||[],!e||"string"!=typeof e)return n;
	if(1!==(s=t.nodeType)&&9!==s)return[];
	if(_&&!r){
	if(i=yt.exec(e))if(a=i[1]){
	if(9===s){
	if(o=t.getElementById(a),!o||!o.parentNode)return n;
	if(o.id===a)return n.push(o),n}
else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&B(t,o)&&o.id===a)return n.push(o),n}
else{
	if(i[2])return Z.apply(n,t.getElementsByTagName(e)),n;
	if((a=i[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(a)),n}
if(w.qsa&&(!M||!M.test(e))){
	if(p=d=P,h=t,m=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){
	for(u=E(e),(d=t.getAttribute("id"))?p=d.replace(xt,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",l=u.length;
	l--;
	)u[l]=p+f(u[l]);
	h=bt.test(e)&&c(t.parentNode)||t,m=u.join(",")}
if(m)try{
	return Z.apply(n,h.querySelectorAll(m)),n}
catch(g){
}
finally{
	d||t.removeAttribute("id")}
}
}
return S(e.replace(lt,"$1"),t,n,r)}
function n(){
	function e(n,r){
	return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=r}
var t=[];
	return e}
function r(e){
	return e[P]=!0,e}
function i(e){
	var t=H.createElement("div");
	try{
	return!!e(t)}
catch(n){
	return!1}
finally{
	t.parentNode&&t.parentNode.removeChild(t),t=null}
}
function o(e,t){
	for(var n=e.split("|"),r=e.length;
	r--;
	)T.attrHandle[n[r]]=t}
function a(e,t){
	var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||J)-(~e.sourceIndex||J);
	if(r)return r;
	if(n)for(;
	n=n.nextSibling;
	)if(n===t)return-1;
	return e?1:-1}
function s(e){
	return function(t){
	var n=t.nodeName.toLowerCase();
	return"input"===n&&t.type===e}
}
function l(e){
	return function(t){
	var n=t.nodeName.toLowerCase();
	return("input"===n||"button"===n)&&t.type===e}
}
function u(e){
	return r(function(t){
	return t=+t,r(function(n,r){
	for(var i,o=e([],n.length,t),a=o.length;
	a--;
	)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}
)}
)}
function c(e){
	return e&&typeof e.getElementsByTagName!==V&&e}
function d(){
}
function f(e){
	for(var t=0,n=e.length,r="";
	n>t;
	t++)r+=e[t].value;
	return r}
function p(e,t,n){
	var r=t.dir,i=n&&"parentNode"===r,o=$++;
	return t.first?function(t,n,o){
	for(;
	t=t[r];
	)if(1===t.nodeType||i)return e(t,n,o)}
:function(t,n,a){
	var s,l,u=[W,o];
	if(a){
	for(;
	t=t[r];
	)if((1===t.nodeType||i)&&e(t,n,a))return!0}
else for(;
	t=t[r];
	)if(1===t.nodeType||i){
	if(l=t[P]||(t[P]={
}
),(s=l[r])&&s[0]===W&&s[1]===o)return u[2]=s[2];
	if(l[r]=u,u[2]=e(t,n,a))return!0}
}
}
function h(e){
	return e.length>1?function(t,n,r){
	for(var i=e.length;
	i--;
	)if(!e[i](t,n,r))return!1;
	return!0}
:e[0]}
function m(e,n,r){
	for(var i=0,o=n.length;
	o>i;
	i++)t(e,n[i],r);
	return r}
function g(e,t,n,r,i){
	for(var o,a=[],s=0,l=e.length,u=null!=t;
	l>s;
	s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));
	return a}
function v(e,t,n,i,o,a){
	return i&&!i[P]&&(i=v(i)),o&&!o[P]&&(o=v(o,a)),r(function(r,a,s,l){
	var u,c,d,f=[],p=[],h=a.length,v=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?v:g(v,f,e,s,l),b=n?o||(r?e:h||i)?[]:a:y;
	if(n&&n(y,b,s,l),i)for(u=g(b,p),i(u,[],s,l),c=u.length;
	c--;
	)(d=u[c])&&(b[p[c]]=!(y[p[c]]=d));
	if(r){
	if(o||e){
	if(o){
	for(u=[],c=b.length;
	c--;
	)(d=b[c])&&u.push(y[c]=d);
	o(null,b=[],u,l)}
for(c=b.length;
	c--;
	)(d=b[c])&&(u=o?tt.call(r,d):f[c])>-1&&(r[u]=!(a[u]=d))}
}
else b=g(b===a?b.splice(h,b.length):b),o?o(null,a,b,l):Z.apply(a,b)}
)}
function y(e){
	for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,l=p(function(e){
	return e===t}
,a,!0),u=p(function(e){
	return tt.call(t,e)>-1}
,a,!0),c=[function(e,n,r){
	return!o&&(r||n!==A)||((t=n).nodeType?l(e,n,r):u(e,n,r))}
];
	i>s;
	s++)if(n=T.relative[e[s].type])c=[p(h(c),n)];
	else{
	if(n=T.filter[e[s].type].apply(null,e[s].matches),n[P]){
	for(r=++s;
	i>r&&!T.relative[e[r].type];
	r++);
	return v(s>1&&h(c),s>1&&f(e.slice(0,s-1).concat({
	value:" "===e[s-2].type?"*":""}
)).replace(lt,"$1"),n,r>s&&y(e.slice(s,r)),i>r&&y(e=e.slice(r)),i>r&&f(e))}
c.push(n)}
return h(c)}
function b(e,n){
	var i=n.length>0,o=e.length>0,a=function(r,a,s,l,u){
	var c,d,f,p=0,h="0",m=r&&[],v=[],y=A,b=r||o&&T.find.TAG("*",u),x=W+=null==y?1:Math.random()||.1,w=b.length;
	for(u&&(A=a!==H&&a);
	h!==w&&null!=(c=b[h]);
	h++){
	if(o&&c){
	for(d=0;
	f=e[d++];
	)if(f(c,a,s)){
	l.push(c);
	break}
u&&(W=x)}
i&&((c=!f&&c)&&p--,r&&m.push(c))}
if(p+=h,i&&h!==p){
	for(d=0;
	f=n[d++];
	)f(m,v,a,s);
	if(r){
	if(p>0)for(;
	h--;
	)m[h]||v[h]||(v[h]=Q.call(l));
	v=g(v)}
Z.apply(l,v),u&&!r&&v.length>0&&p+n.length>1&&t.uniqueSort(l)}
return u&&(W=x,A=y),m}
;
	return i?r(a):a}
var x,w,T,C,N,E,k,S,A,j,D,L,H,q,_,M,O,F,B,P="sizzle"+-new Date,R=e.document,W=0,$=0,z=n(),I=n(),X=n(),U=function(e,t){
	return e===t&&(D=!0),0}
,V="undefined",J=1<<31,Y={
}
.hasOwnProperty,G=[],Q=G.pop,K=G.push,Z=G.push,et=G.slice,tt=G.indexOf||function(e){
	for(var t=0,n=this.length;
	n>t;
	t++)if(this[t]===e)return t;
	return-1}
,nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",rt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ot=it.replace("w","w#"),at="\\["+rt+"*("+it+")(?:"+rt+"*([*^$|!~]?=)"+rt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ot+"))|)"+rt+"*\\]",st=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+at+")*)|.*)\\)|)",lt=new RegExp("^"+rt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+rt+"+$","g"),ut=new RegExp("^"+rt+"*,"+rt+"*"),ct=new RegExp("^"+rt+"*([>+~]|"+rt+")"+rt+"*"),dt=new RegExp("="+rt+"*([^\\]'\"]*?)"+rt+"*\\]","g"),ft=new RegExp(st),pt=new RegExp("^"+ot+"$"),ht={
	ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+rt+"*(even|odd|(([+-]|)(\\d*)n|)"+rt+"*(?:([+-]|)"+rt+"*(\\d+)|))"+rt+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+rt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+rt+"*((?:-\\d)?\\d*)"+rt+"*\\)|)(?=[^-]|$)","i")}
,mt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{
	]+\{
	\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,xt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{
	1,6}
"+rt+"?|("+rt+")|.)","ig"),Tt=function(e,t,n){
	var r="0x"+t-65536;
	return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}
;
	try{
	Z.apply(G=et.call(R.childNodes),R.childNodes),G[R.childNodes.length].nodeType}
catch(Ct){
	Z={
	apply:G.length?function(e,t){
	K.apply(e,et.call(t))}
:function(e,t){
	for(var n=e.length,r=0;
	e[n++]=t[r++];
	);
	e.length=n-1}
}
}
w=t.support={
}
,N=t.isXML=function(e){
	var t=e&&(e.ownerDocument||e).documentElement;
	return t?"HTML"!==t.nodeName:!1}
,L=t.setDocument=function(e){
	var t,n=e?e.ownerDocument||e:R,r=n.defaultView;
	return n!==H&&9===n.nodeType&&n.documentElement?(H=n,q=n.documentElement,_=!N(n),r&&r!==r.top&&(r.addEventListener?r.addEventListener("unload",function(){
	L()}
,!1):r.attachEvent&&r.attachEvent("onunload",function(){
	L()}
)),w.attributes=i(function(e){
	return e.className="i",!e.getAttribute("className")}
),w.getElementsByTagName=i(function(e){
	return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}
),w.getElementsByClassName=vt.test(n.getElementsByClassName)&&i(function(e){
	return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}
),w.getById=i(function(e){
	return q.appendChild(e).id=P,!n.getElementsByName||!n.getElementsByName(P).length}
),w.getById?(T.find.ID=function(e,t){
	if(typeof t.getElementById!==V&&_){
	var n=t.getElementById(e);
	return n&&n.parentNode?[n]:[]}
}
,T.filter.ID=function(e){
	var t=e.replace(wt,Tt);
	return function(e){
	return e.getAttribute("id")===t}
}
):(delete T.find.ID,T.filter.ID=function(e){
	var t=e.replace(wt,Tt);
	return function(e){
	var n=typeof e.getAttributeNode!==V&&e.getAttributeNode("id");
	return n&&n.value===t}
}
),T.find.TAG=w.getElementsByTagName?function(e,t){
	return typeof t.getElementsByTagName!==V?t.getElementsByTagName(e):void 0}
:function(e,t){
	var n,r=[],i=0,o=t.getElementsByTagName(e);
	if("*"===e){
	for(;
	n=o[i++];
	)1===n.nodeType&&r.push(n);
	return r}
return o}
,T.find.CLASS=w.getElementsByClassName&&function(e,t){
	return typeof t.getElementsByClassName!==V&&_?t.getElementsByClassName(e):void 0}
,O=[],M=[],(w.qsa=vt.test(n.querySelectorAll))&&(i(function(e){
	e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&M.push("[*^$]="+rt+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+rt+"*(?:value|"+nt+")"),e.querySelectorAll(":checked").length||M.push(":checked")}
),i(function(e){
	var t=n.createElement("input");
	t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+rt+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")}
)),(w.matchesSelector=vt.test(F=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){
	w.disconnectedMatch=F.call(e,"div"),F.call(e,"[s!='']:x"),O.push("!=",st)}
),M=M.length&&new RegExp(M.join("|")),O=O.length&&new RegExp(O.join("|")),t=vt.test(q.compareDocumentPosition),B=t||vt.test(q.contains)?function(e,t){
	var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;
	return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}
:function(e,t){
	if(t)for(;
	t=t.parentNode;
	)if(t===e)return!0;
	return!1}
,U=t?function(e,t){
	if(e===t)return D=!0,0;
	var r=!e.compareDocumentPosition-!t.compareDocumentPosition;
	return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!w.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===R&&B(R,e)?-1:t===n||t.ownerDocument===R&&B(R,t)?1:j?tt.call(j,e)-tt.call(j,t):0:4&r?-1:1)}
:function(e,t){
	if(e===t)return D=!0,0;
	var r,i=0,o=e.parentNode,s=t.parentNode,l=[e],u=[t];
	if(!o||!s)return e===n?-1:t===n?1:o?-1:s?1:j?tt.call(j,e)-tt.call(j,t):0;
	if(o===s)return a(e,t);
	for(r=e;
	r=r.parentNode;
	)l.unshift(r);
	for(r=t;
	r=r.parentNode;
	)u.unshift(r);
	for(;
	l[i]===u[i];
	)i++;
	return i?a(l[i],u[i]):l[i]===R?-1:u[i]===R?1:0}
,n):H}
,t.matches=function(e,n){
	return t(e,null,null,n)}
,t.matchesSelector=function(e,n){
	if((e.ownerDocument||e)!==H&&L(e),n=n.replace(dt,"='$1']"),!(!w.matchesSelector||!_||O&&O.test(n)||M&&M.test(n)))try{
	var r=F.call(e,n);
	if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}
catch(i){
}
return t(n,H,null,[e]).length>0}
,t.contains=function(e,t){
	return(e.ownerDocument||e)!==H&&L(e),B(e,t)}
,t.attr=function(e,t){
	(e.ownerDocument||e)!==H&&L(e);
	var n=T.attrHandle[t.toLowerCase()],r=n&&Y.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;
	return void 0!==r?r:w.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null}
,t.error=function(e){
	throw new Error("Syntax error,unrecognized expression:"+e)}
,t.uniqueSort=function(e){
	var t,n=[],r=0,i=0;
	if(D=!w.detectDuplicates,j=!w.sortStable&&e.slice(0),e.sort(U),D){
	for(;
	t=e[i++];
	)t===e[i]&&(r=n.push(i));
	for(;
	r--;
	)e.splice(n[r],1)}
return j=null,e}
,C=t.getText=function(e){
	var t,n="",r=0,i=e.nodeType;
	if(i){
	if(1===i||9===i||11===i){
	if("string"==typeof e.textContent)return e.textContent;
	for(e=e.firstChild;
	e;
	e=e.nextSibling)n+=C(e)}
else if(3===i||4===i)return e.nodeValue}
else for(;
	t=e[r++];
	)n+=C(t);
	return n}
,T=t.selectors={
	cacheLength:50,createPseudo:r,match:ht,attrHandle:{
}
,find:{
}
,relative:{
	">":{
	dir:"parentNode",first:!0}
," ":{
	dir:"parentNode"}
,"+":{
	dir:"previousSibling",first:!0}
,"~":{
	dir:"previousSibling"}
}
,preFilter:{
	ATTR:function(e){
	return e[1]=e[1].replace(wt,Tt),e[3]=(e[3]||e[4]||e[5]||"").replace(wt,Tt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)}
,CHILD:function(e){
	return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e}
,PSEUDO:function(e){
	var t,n=!e[6]&&e[2];
	return ht.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ft.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}
}
,filter:{
	TAG:function(e){
	var t=e.replace(wt,Tt).toLowerCase();
	return"*"===e?function(){
	return!0}
:function(e){
	return e.nodeName&&e.nodeName.toLowerCase()===t}
}
,CLASS:function(e){
	var t=z[e+" "];
	return t||(t=new RegExp("(^|"+rt+")"+e+"("+rt+"|$)"))&&z(e,function(e){
	return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==V&&e.getAttribute("class")||"")}
)}
,ATTR:function(e,n,r){
	return function(i){
	var o=t.attr(i,e);
	return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}
}
,CHILD:function(e,t,n,r,i){
	var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;
	return 1===r&&0===i?function(e){
	return!!e.parentNode}
:function(t,n,l){
	var u,c,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;
	if(g){
	if(o){
	for(;
	m;
	){
	for(d=t;
	d=d[m];
	)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;
	h=m="only"===e&&!h&&"nextSibling"}
return!0}
if(h=[a?g.firstChild:g.lastChild],a&&y){
	for(c=g[P]||(g[P]={
}
),u=c[e]||[],p=u[0]===W&&u[1],f=u[0]===W&&u[2],d=p&&g.childNodes[p];
	d=++p&&d&&d[m]||(f=p=0)||h.pop();
	)if(1===d.nodeType&&++f&&d===t){
	c[e]=[W,p,f];
	break}
}
else if(y&&(u=(t[P]||(t[P]={
}
))[e])&&u[0]===W)f=u[1];
	else for(;
	(d=++p&&d&&d[m]||(f=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++f||(y&&((d[P]||(d[P]={
}
))[e]=[W,f]),d!==t));
	);
	return f-=i,f===r||f%r===0&&f/r>=0}
}
}
,PSEUDO:function(e,n){
	var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo:"+e);
	return o[P]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){
	for(var r,i=o(e,n),a=i.length;
	a--;
	)r=tt.call(e,i[a]),e[r]=!(t[r]=i[a])}
):function(e){
	return o(e,0,i)}
):o}
}
,pseudos:{
	not:r(function(e){
	var t=[],n=[],i=k(e.replace(lt,"$1"));
	return i[P]?r(function(e,t,n,r){
	for(var o,a=i(e,null,r,[]),s=e.length;
	s--;
	)(o=a[s])&&(e[s]=!(t[s]=o))}
):function(e,r,o){
	return t[0]=e,i(t,null,o,n),!n.pop()}
}
),has:r(function(e){
	return function(n){
	return t(e,n).length>0}
}
),contains:r(function(e){
	return function(t){
	return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}
}
),lang:r(function(e){
	return pt.test(e||"")||t.error("unsupported lang:"+e),e=e.replace(wt,Tt).toLowerCase(),function(t){
	var n;
	do if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");
	while((t=t.parentNode)&&1===t.nodeType);
	return!1}
}
),target:function(t){
	var n=e.location&&e.location.hash;
	return n&&n.slice(1)===t.id}
,root:function(e){
	return e===q}
,focus:function(e){
	return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)}
,enabled:function(e){
	return e.disabled===!1}
,disabled:function(e){
	return e.disabled===!0}
,checked:function(e){
	var t=e.nodeName.toLowerCase();
	return"input"===t&&!!e.checked||"option"===t&&!!e.selected}
,selected:function(e){
	return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0}
,empty:function(e){
	for(e=e.firstChild;
	e;
	e=e.nextSibling)if(e.nodeType<6)return!1;
	return!0}
,parent:function(e){
	return!T.pseudos.empty(e)}
,header:function(e){
	return gt.test(e.nodeName)}
,input:function(e){
	return mt.test(e.nodeName)}
,button:function(e){
	var t=e.nodeName.toLowerCase();
	return"input"===t&&"button"===e.type||"button"===t}
,text:function(e){
	var t;
	return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())}
,first:u(function(){
	return[0]}
),last:u(function(e,t){
	return[t-1]}
),eq:u(function(e,t,n){
	return[0>n?n+t:n]}
),even:u(function(e,t){
	for(var n=0;
	t>n;
	n+=2)e.push(n);
	return e}
),odd:u(function(e,t){
	for(var n=1;
	t>n;
	n+=2)e.push(n);
	return e}
),lt:u(function(e,t,n){
	for(var r=0>n?n+t:n;
	--r>=0;
	)e.push(r);
	return e}
),gt:u(function(e,t,n){
	for(var r=0>n?n+t:n;
	++r<t;
	)e.push(r);
	return e}
)}
}
,T.pseudos.nth=T.pseudos.eq;
	for(x in{
	radio:!0,checkbox:!0,file:!0,password:!0,image:!0}
)T.pseudos[x]=s(x);
	for(x in{
	submit:!0,reset:!0}
)T.pseudos[x]=l(x);
	return d.prototype=T.filters=T.pseudos,T.setFilters=new d,E=t.tokenize=function(e,n){
	var r,i,o,a,s,l,u,c=I[e+" "];
	if(c)return n?0:c.slice(0);
	for(s=e,l=[],u=T.preFilter;
	s;
	){
	(!r||(i=ut.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=ct.exec(s))&&(r=i.shift(),o.push({
	value:r,type:i[0].replace(lt," ")}
),s=s.slice(r.length));
	for(a in T.filter)!(i=ht[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({
	value:r,type:a,matches:i}
),s=s.slice(r.length));
	if(!r)break}
return n?s.length:s?t.error(e):I(e,l).slice(0)}
,k=t.compile=function(e,t){
	var n,r=[],i=[],o=X[e+" "];
	if(!o){
	for(t||(t=E(e)),n=t.length;
	n--;
	)o=y(t[n]),o[P]?r.push(o):i.push(o);
	o=X(e,b(i,r)),o.selector=e}
return o}
,S=t.select=function(e,t,n,r){
	var i,o,a,s,l,u="function"==typeof e&&e,d=!r&&E(e=u.selector||e);
	if(n=n||[],1===d.length){
	if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){
	if(t=(T.find.ID(a.matches[0].replace(wt,Tt),t)||[])[0],!t)return n;
	u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}
for(i=ht.needsContext.test(e)?0:o.length;
	i--&&(a=o[i],!T.relative[s=a.type]);
	)if((l=T.find[s])&&(r=l(a.matches[0].replace(wt,Tt),bt.test(o[0].type)&&c(t.parentNode)||t))){
	if(o.splice(i,1),e=r.length&&f(o),!e)return Z.apply(n,r),n;
	break}
}
return(u||k(e,d))(r,t,!_,n,bt.test(e)&&c(t.parentNode)||t),n}
,w.sortStable=P.split("").sort(U).join("")===P,w.detectDuplicates=!!D,L(),w.sortDetached=i(function(e){
	return 1&e.compareDocumentPosition(H.createElement("div"))}
),i(function(e){
	return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}
)||o("type|href|height|width",function(e,t,n){
	return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}
),w.attributes&&i(function(e){
	return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}
)||o("value",function(e,t,n){
	return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}
),i(function(e){
	return null==e.getAttribute("disabled")}
)||o(nt,function(e,t,n){
	var r;
	return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}
),t}
(e);
	it.find=ut,it.expr=ut.selectors,it.expr[":"]=it.expr.pseudos,it.unique=ut.uniqueSort,it.text=ut.getText,it.isXMLDoc=ut.isXML,it.contains=ut.contains;
	var ct=it.expr.match.needsContext,dt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ft=/^.[^:#\[\.,]*$/;
	it.filter=function(e,t,n){
	var r=t[0];
	return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?it.find.matchesSelector(r,e)?[r]:[]:it.find.matches(e,it.grep(t,function(e){
	return 1===e.nodeType}
))}
,it.fn.extend({
	find:function(e){
	var t,n=[],r=this,i=r.length;
	if("string"!=typeof e)return this.pushStack(it(e).filter(function(){
	for(t=0;
	i>t;
	t++)if(it.contains(r[t],this))return!0}
));
	for(t=0;
	i>t;
	t++)it.find(e,r[t],n);
	return n=this.pushStack(i>1?it.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n}
,filter:function(e){
	return this.pushStack(r(this,e||[],!1))}
,not:function(e){
	return this.pushStack(r(this,e||[],!0))}
,is:function(e){
	return!!r(this,"string"==typeof e&&ct.test(e)?it(e):e||[],!1).length}
}
);
	var pt,ht=e.document,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,gt=it.fn.init=function(e,t){
	var n,r;
	if(!e)return this;
	if("string"==typeof e){
	if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:mt.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||pt).find(e):this.constructor(t).find(e);
	if(n[1]){
	if(t=t instanceof it?t[0]:t,it.merge(this,it.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:ht,!0)),dt.test(n[1])&&it.isPlainObject(t))for(n in t)it.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);
	return this}
if(r=ht.getElementById(n[2]),r&&r.parentNode){
	if(r.id!==n[2])return pt.find(e);
	this.length=1,this[0]=r}
return this.context=ht,this.selector=e,this}
return e.nodeType?(this.context=this[0]=e,this.length=1,this):it.isFunction(e)?"undefined"!=typeof pt.ready?pt.ready(e):e(it):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),it.makeArray(e,this))}
;
	gt.prototype=it.fn,pt=it(ht);
	var vt=/^(?:parents|prev(?:Until|All))/,yt={
	children:!0,contents:!0,next:!0,prev:!0}
;
	it.extend({
	dir:function(e,t,n){
	for(var r=[],i=e[t];
	i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!it(i).is(n));
	)1===i.nodeType&&r.push(i),i=i[t];
	return r}
,sibling:function(e,t){
	for(var n=[];
	e;
	e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);
	return n}
}
),it.fn.extend({
	has:function(e){
	var t,n=it(e,this),r=n.length;
	return this.filter(function(){
	for(t=0;
	r>t;
	t++)if(it.contains(this,n[t]))return!0}
)}
,closest:function(e,t){
	for(var n,r=0,i=this.length,o=[],a=ct.test(e)||"string"!=typeof e?it(e,t||this.context):0;
	i>r;
	r++)for(n=this[r];
	n&&n!==t;
	n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&it.find.matchesSelector(n,e))){
	o.push(n);
	break}
return this.pushStack(o.length>1?it.unique(o):o)}
,index:function(e){
	return e?"string"==typeof e?it.inArray(this[0],it(e)):it.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1}
,add:function(e,t){
	return this.pushStack(it.unique(it.merge(this.get(),it(e,t))))}
,addBack:function(e){
	return this.add(null==e?this.prevObject:this.prevObject.filter(e))}
}
),it.each({
	parent:function(e){
	var t=e.parentNode;
	return t&&11!==t.nodeType?t:null}
,parents:function(e){
	return it.dir(e,"parentNode")}
,parentsUntil:function(e,t,n){
	return it.dir(e,"parentNode",n)}
,next:function(e){
	return i(e,"nextSibling")}
,prev:function(e){
	return i(e,"previousSibling")}
,nextAll:function(e){
	return it.dir(e,"nextSibling")}
,prevAll:function(e){
	return it.dir(e,"previousSibling")}
,nextUntil:function(e,t,n){
	return it.dir(e,"nextSibling",n)}
,prevUntil:function(e,t,n){
	return it.dir(e,"previousSibling",n)}
,siblings:function(e){
	return it.sibling((e.parentNode||{
}
).firstChild,e)}
,children:function(e){
	return it.sibling(e.firstChild)}
,contents:function(e){
	return it.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:it.merge([],e.childNodes)}
}
,function(e,t){
	it.fn[e]=function(n,r){
	var i=it.map(this,t,n);
	return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=it.filter(r,i)),this.length>1&&(yt[e]||(i=it.unique(i)),vt.test(e)&&(i=i.reverse())),this.pushStack(i)}
}
);
	var bt=/\S+/g,xt={
}
;
	it.Callbacks=function(e){
	e="string"==typeof e?xt[e]||o(e):it.extend({
}
,e);
	var t,n,r,i,a,s,l=[],u=!e.once&&[],c=function(o){
	for(n=e.memory&&o,r=!0,a=s||0,s=0,i=l.length,t=!0;
	l&&i>a;
	a++)if(l[a].apply(o[0],o[1])===!1&&e.stopOnFalse){
	n=!1;
	break}
t=!1,l&&(u?u.length&&c(u.shift()):n?l=[]:d.disable())}
,d={
	add:function(){
	if(l){
	var r=l.length;
	!function o(t){
	it.each(t,function(t,n){
	var r=it.type(n);
	"function"===r?e.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==r&&o(n)}
)}
(arguments),t?i=l.length:n&&(s=r,c(n))}
return this}
,remove:function(){
	return l&&it.each(arguments,function(e,n){
	for(var r;
	(r=it.inArray(n,l,r))>-1;
	)l.splice(r,1),t&&(i>=r&&i--,a>=r&&a--)}
),this}
,has:function(e){
	return e?it.inArray(e,l)>-1:!(!l||!l.length)}
,empty:function(){
	return l=[],i=0,this}
,disable:function(){
	return l=u=n=void 0,this}
,disabled:function(){
	return!l}
,lock:function(){
	return u=void 0,n||d.disable(),this}
,locked:function(){
	return!u}
,fireWith:function(e,n){
	return!l||r&&!u||(n=n||[],n=[e,n.slice?n.slice():n],t?u.push(n):c(n)),this}
,fire:function(){
	return d.fireWith(this,arguments),this}
,fired:function(){
	return!!r}
}
;
	return d}
,it.extend({
	Deferred:function(e){
	var t=[["resolve","done",it.Callbacks("once memory"),"resolved"],["reject","fail",it.Callbacks("once memory"),"rejected"],["notify","progress",it.Callbacks("memory")]],n="pending",r={
	state:function(){
	return n}
,always:function(){
	return i.done(arguments).fail(arguments),this}
,then:function(){
	var e=arguments;
	return it.Deferred(function(n){
	it.each(t,function(t,o){
	var a=it.isFunction(e[t])&&e[t];
	i[o[1]](function(){
	var e=a&&a.apply(this,arguments);
	e&&it.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)}
)}
),e=null}
).promise()}
,promise:function(e){
	return null!=e?it.extend(e,r):r}
}
,i={
}
;
	return r.pipe=r.then,it.each(t,function(e,o){
	var a=o[2],s=o[3];
	r[o[1]]=a.add,s&&a.add(function(){
	n=s}
,t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){
	return i[o[0]+"With"](this===i?r:this,arguments),this}
,i[o[0]+"With"]=a.fireWith}
),r.promise(i),e&&e.call(i,i),i}
,when:function(e){
	var t,n,r,i=0,o=Y.call(arguments),a=o.length,s=1!==a||e&&it.isFunction(e.promise)?a:0,l=1===s?e:it.Deferred(),u=function(e,n,r){
	return function(i){
	n[e]=this,r[e]=arguments.length>1?Y.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}
}
;
	if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);
	a>i;
	i++)o[i]&&it.isFunction(o[i].promise)?o[i].promise().done(u(i,r,o)).fail(l.reject).progress(u(i,n,t)):--s;
	return s||l.resolveWith(r,o),l.promise()}
}
);
	var wt;
	it.fn.ready=function(e){
	return it.ready.promise().done(e),this}
,it.extend({
	isReady:!1,readyWait:1,holdReady:function(e){
	e?it.readyWait++:it.ready(!0)}
,ready:function(e){
	if(e===!0?!--it.readyWait:!it.isReady){
	if(!ht.body)return setTimeout(it.ready);
	it.isReady=!0,e!==!0&&--it.readyWait>0||(wt.resolveWith(ht,[it]),it.fn.triggerHandler&&(it(ht).triggerHandler("ready"),it(ht).off("ready")))}
}
}
),it.ready.promise=function(t){
	if(!wt)if(wt=it.Deferred(),"complete"===ht.readyState)setTimeout(it.ready);
	else if(ht.addEventListener)ht.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1);
	else{
	ht.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);
	var n=!1;
	try{
	n=null==e.frameElement&&ht.documentElement}
catch(r){
}
n&&n.doScroll&&!function i(){
	if(!it.isReady){
	try{
	n.doScroll("left")}
catch(e){
	return setTimeout(i,50)}
a(),it.ready()}
}
()}
return wt.promise(t)}
;
	var Tt,Ct="undefined";
	for(Tt in it(nt))break;
	nt.ownLast="0"!==Tt,nt.inlineBlockNeedsLayout=!1,it(function(){
	var e,t,n,r;
	n=ht.getElementsByTagName("body")[0],n&&n.style&&(t=ht.createElement("div"),r=ht.createElement("div"),r.style.cssText="position:absolute;
	border:0;
	width:0;
	height:0;
	top:0;
	left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==Ct&&(t.style.cssText="display:inline;
	margin:0;
	border:0;
	padding:1px;
	width:1px;
	zoom:1",nt.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}
),function(){
	var e=ht.createElement("div");
	if(null==nt.deleteExpando){
	nt.deleteExpando=!0;
	try{
	delete e.test}
catch(t){
	nt.deleteExpando=!1}
}
e=null}
(),it.acceptData=function(e){
	var t=it.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;
	return 1!==n&&9!==n?!1:!t||t!==!0&&e.getAttribute("classid")===t}
;
	var Nt=/^(?:\{
	[\w\W]*\}
|\[[\w\W]*\])$/,Et=/([A-Z])/g;
	it.extend({
	cache:{
}
,noData:{
	"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"}
,hasData:function(e){
	return e=e.nodeType?it.cache[e[it.expando]]:e[it.expando],!!e&&!u(e)}
,data:function(e,t,n){
	return c(e,t,n)}
,removeData:function(e,t){
	return d(e,t)}
,_data:function(e,t,n){
	return c(e,t,n,!0)}
,_removeData:function(e,t){
	return d(e,t,!0)}
}
),it.fn.extend({
	data:function(e,t){
	var n,r,i,o=this[0],a=o&&o.attributes;
	if(void 0===e){
	if(this.length&&(i=it.data(o),1===o.nodeType&&!it._data(o,"parsedAttrs"))){
	for(n=a.length;
	n--;
	)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=it.camelCase(r.slice(5)),l(o,r,i[r])));
	it._data(o,"parsedAttrs",!0)}
return i}
return"object"==typeof e?this.each(function(){
	it.data(this,e)}
):arguments.length>1?this.each(function(){
	it.data(this,e,t)}
):o?l(o,e,it.data(o,e)):void 0}
,removeData:function(e){
	return this.each(function(){
	it.removeData(this,e)}
)}
}
),it.extend({
	queue:function(e,t,n){
	var r;
	return e?(t=(t||"fx")+"queue",r=it._data(e,t),n&&(!r||it.isArray(n)?r=it._data(e,t,it.makeArray(n)):r.push(n)),r||[]):void 0}
,dequeue:function(e,t){
	t=t||"fx";
	var n=it.queue(e,t),r=n.length,i=n.shift(),o=it._queueHooks(e,t),a=function(){
	it.dequeue(e,t)}
;
	"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()}
,_queueHooks:function(e,t){
	var n=t+"queueHooks";
	return it._data(e,n)||it._data(e,n,{
	empty:it.Callbacks("once memory").add(function(){
	it._removeData(e,t+"queue"),it._removeData(e,n)}
)}
)}
}
),it.fn.extend({
	queue:function(e,t){
	var n=2;
	return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?it.queue(this[0],e):void 0===t?this:this.each(function(){
	var n=it.queue(this,e,t);
	it._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&it.dequeue(this,e)}
)}
,dequeue:function(e){
	return this.each(function(){
	it.dequeue(this,e)}
)}
,clearQueue:function(e){
	return this.queue(e||"fx",[])}
,promise:function(e,t){
	var n,r=1,i=it.Deferred(),o=this,a=this.length,s=function(){
	--r||i.resolveWith(o,[o])}
;
	for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";
	a--;
	)n=it._data(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));
	return s(),i.promise(t)}
}
);
	var kt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,St=["Top","Right","Bottom","Left"],At=function(e,t){
	return e=t||e,"none"===it.css(e,"display")||!it.contains(e.ownerDocument,e)}
,jt=it.access=function(e,t,n,r,i,o,a){
	var s=0,l=e.length,u=null==n;
	if("object"===it.type(n)){
	i=!0;
	for(s in n)it.access(e,t,s,n[s],!0,o,a)}
else if(void 0!==r&&(i=!0,it.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){
	return u.call(it(e),n)}
)),t))for(;
	l>s;
	s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));
	return i?e:u?t.call(e):l?t(e[0],n):o}
,Dt=/^(?:checkbox|radio)$/i;
	!function(){
	var e=ht.createElement("input"),t=ht.createElement("div"),n=ht.createDocumentFragment();
	if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",nt.leadingWhitespace=3===t.firstChild.nodeType,nt.tbody=!t.getElementsByTagName("tbody").length,nt.htmlSerialize=!!t.getElementsByTagName("link").length,nt.html5Clone="<:nav></:nav>"!==ht.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),nt.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",nt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",nt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,nt.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){
	nt.noCloneEvent=!1}
),t.cloneNode(!0).click()),null==nt.deleteExpando){
	nt.deleteExpando=!0;
	try{
	delete t.test}
catch(r){
	nt.deleteExpando=!1}
}
}
(),function(){
	var t,n,r=ht.createElement("div");
	for(t in{
	submit:!0,change:!0,focusin:!0}
)n="on"+t,(nt[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),nt[t+"Bubbles"]=r.attributes[n].expando===!1);
	r=null}
();
	var Lt=/^(?:input|select|textarea)$/i,Ht=/^key/,qt=/^(?:mouse|pointer|contextmenu)|click/,_t=/^(?:focusinfocus|focusoutblur)$/,Mt=/^([^.]*)(?:\.(.+)|)$/;
	it.event={
	global:{
}
,add:function(e,t,n,r,i){
	var o,a,s,l,u,c,d,f,p,h,m,g=it._data(e);
	if(g){
	for(n.handler&&(l=n,n=l.handler,i=l.selector),n.guid||(n.guid=it.guid++),(a=g.events)||(a=g.events={
}
),(c=g.handle)||(c=g.handle=function(e){
	return typeof it===Ct||e&&it.event.triggered===e.type?void 0:it.event.dispatch.apply(c.elem,arguments)}
,c.elem=e),t=(t||"").match(bt)||[""],s=t.length;
	s--;
	)o=Mt.exec(t[s])||[],p=m=o[1],h=(o[2]||"").split(".").sort(),p&&(u=it.event.special[p]||{
}
,p=(i?u.delegateType:u.bindType)||p,u=it.event.special[p]||{
}
,d=it.extend({
	type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&it.expr.match.needsContext.test(i),namespace:h.join(".")}
,l),(f=a[p])||(f=a[p]=[],f.delegateCount=0,u.setup&&u.setup.call(e,r,h,c)!==!1||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,d):f.push(d),it.event.global[p]=!0);
	e=null}
}
,remove:function(e,t,n,r,i){
	var o,a,s,l,u,c,d,f,p,h,m,g=it.hasData(e)&&it._data(e);
	if(g&&(c=g.events)){
	for(t=(t||"").match(bt)||[""],u=t.length;
	u--;
	)if(s=Mt.exec(t[u])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){
	for(d=it.event.special[p]||{
}
,p=(r?d.delegateType:d.bindType)||p,f=c[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;
	o--;
	)a=f[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));
	l&&!f.length&&(d.teardown&&d.teardown.call(e,h,g.handle)!==!1||it.removeEvent(e,p,g.handle),delete c[p])}
else for(p in c)it.event.remove(e,p+t[u],n,r,!0);
	it.isEmptyObject(c)&&(delete g.handle,it._removeData(e,"events"))}
}
,trigger:function(t,n,r,i){
	var o,a,s,l,u,c,d,f=[r||ht],p=tt.call(t,"type")?t.type:t,h=tt.call(t,"namespace")?t.namespace.split("."):[];
	if(s=c=r=r||ht,3!==r.nodeType&&8!==r.nodeType&&!_t.test(p+it.event.triggered)&&(p.indexOf(".")>=0&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[it.expando]?t:new it.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:it.makeArray(n,[t]),u=it.event.special[p]||{
}
,i||!u.trigger||u.trigger.apply(r,n)!==!1)){
	if(!i&&!u.noBubble&&!it.isWindow(r)){
	for(l=u.delegateType||p,_t.test(l+p)||(s=s.parentNode);
	s;
	s=s.parentNode)f.push(s),c=s;
	c===(r.ownerDocument||ht)&&f.push(c.defaultView||c.parentWindow||e)}
for(d=0;
	(s=f[d++])&&!t.isPropagationStopped();
	)t.type=d>1?l:u.bindType||p,o=(it._data(s,"events")||{
}
)[t.type]&&it._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&it.acceptData(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());
	if(t.type=p,!i&&!t.isDefaultPrevented()&&(!u._default||u._default.apply(f.pop(),n)===!1)&&it.acceptData(r)&&a&&r[p]&&!it.isWindow(r)){
	c=r[a],c&&(r[a]=null),it.event.triggered=p;
	try{
	r[p]()}
catch(m){
}
it.event.triggered=void 0,c&&(r[a]=c)}
return t.result}
}
,dispatch:function(e){
	e=it.event.fix(e);
	var t,n,r,i,o,a=[],s=Y.call(arguments),l=(it._data(this,"events")||{
}
)[e.type]||[],u=it.event.special[e.type]||{
}
;
	if(s[0]=e,e.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,e)!==!1){
	for(a=it.event.handlers.call(this,e,l),t=0;
	(i=a[t++])&&!e.isPropagationStopped();
	)for(e.currentTarget=i.elem,o=0;
	(r=i.handlers[o++])&&!e.isImmediatePropagationStopped();
	)(!e.namespace_re||e.namespace_re.test(r.namespace))&&(e.handleObj=r,e.data=r.data,n=((it.event.special[r.origType]||{
}
).handle||r.handler).apply(i.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));
	return u.postDispatch&&u.postDispatch.call(this,e),e.result}
}
,handlers:function(e,t){
	var n,r,i,o,a=[],s=t.delegateCount,l=e.target;
	if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;
	l!=this;
	l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){
	for(i=[],o=0;
	s>o;
	o++)r=t[o],n=r.selector+" ",void 0===i[n]&&(i[n]=r.needsContext?it(n,this).index(l)>=0:it.find(n,this,null,[l]).length),i[n]&&i.push(r);
	i.length&&a.push({
	elem:l,handlers:i}
)}
return s<t.length&&a.push({
	elem:this,handlers:t.slice(s)}
),a}
,fix:function(e){
	if(e[it.expando])return e;
	var t,n,r,i=e.type,o=e,a=this.fixHooks[i];
	for(a||(this.fixHooks[i]=a=qt.test(i)?this.mouseHooks:Ht.test(i)?this.keyHooks:{
}
),r=a.props?this.props.concat(a.props):this.props,e=new it.Event(o),t=r.length;
	t--;
	)n=r[t],e[n]=o[n];
	return e.target||(e.target=o.srcElement||ht),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e}
,props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{
}
,keyHooks:{
	props:"char charCode key keyCode".split(" "),filter:function(e,t){
	return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}
}
,mouseHooks:{
	props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){
	var n,r,i,o=t.button,a=t.fromElement;
	return null==e.pageX&&null!=t.clientX&&(r=e.target.ownerDocument||ht,i=r.documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}
}
,special:{
	load:{
	noBubble:!0}
,focus:{
	trigger:function(){
	if(this!==h()&&this.focus)try{
	return this.focus(),!1}
catch(e){
}
}
,delegateType:"focusin"}
,blur:{
	trigger:function(){
	return this===h()&&this.blur?(this.blur(),!1):void 0}
,delegateType:"focusout"}
,click:{
	trigger:function(){
	return it.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0}
,_default:function(e){
	return it.nodeName(e.target,"a")}
}
,beforeunload:{
	postDispatch:function(e){
	void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}
}
}
,simulate:function(e,t,n,r){
	var i=it.extend(new it.Event,n,{
	type:e,isSimulated:!0,originalEvent:{
}
}
);
	r?it.event.trigger(i,null,t):it.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}
}
,it.removeEvent=ht.removeEventListener?function(e,t,n){
	e.removeEventListener&&e.removeEventListener(t,n,!1)}
:function(e,t,n){
	var r="on"+t;
	e.detachEvent&&(typeof e[r]===Ct&&(e[r]=null),e.detachEvent(r,n))}
,it.Event=function(e,t){
	return this instanceof it.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?f:p):this.type=e,t&&it.extend(this,t),this.timeStamp=e&&e.timeStamp||it.now(),void(this[it.expando]=!0)):new it.Event(e,t)}
,it.Event.prototype={
	isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){
	var e=this.originalEvent;
	this.isDefaultPrevented=f,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}
,stopPropagation:function(){
	var e=this.originalEvent;
	this.isPropagationStopped=f,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)}
,stopImmediatePropagation:function(){
	var e=this.originalEvent;
	this.isImmediatePropagationStopped=f,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}
}
,it.each({
	mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"}
,function(e,t){
	it.event.special[e]={
	delegateType:t,bindType:t,handle:function(e){
	var n,r=this,i=e.relatedTarget,o=e.handleObj;
	return(!i||i!==r&&!it.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}
}
}
),nt.submitBubbles||(it.event.special.submit={
	setup:function(){
	return it.nodeName(this,"form")?!1:void it.event.add(this,"click._submit keypress._submit",function(e){
	var t=e.target,n=it.nodeName(t,"input")||it.nodeName(t,"button")?t.form:void 0;
	n&&!it._data(n,"submitBubbles")&&(it.event.add(n,"submit._submit",function(e){
	e._submit_bubble=!0}
),it._data(n,"submitBubbles",!0))}
)}
,postDispatch:function(e){
	e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&it.event.simulate("submit",this.parentNode,e,!0))}
,teardown:function(){
	return it.nodeName(this,"form")?!1:void it.event.remove(this,"._submit")}
}
),nt.changeBubbles||(it.event.special.change={
	setup:function(){
	return Lt.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(it.event.add(this,"propertychange._change",function(e){
	"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}
),it.event.add(this,"click._change",function(e){
	this._just_changed&&!e.isTrigger&&(this._just_changed=!1),it.event.simulate("change",this,e,!0)}
)),!1):void it.event.add(this,"beforeactivate._change",function(e){
	var t=e.target;
	Lt.test(t.nodeName)&&!it._data(t,"changeBubbles")&&(it.event.add(t,"change._change",function(e){
	!this.parentNode||e.isSimulated||e.isTrigger||it.event.simulate("change",this.parentNode,e,!0)}
),it._data(t,"changeBubbles",!0))}
)}
,handle:function(e){
	var t=e.target;
	return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0}
,teardown:function(){
	return it.event.remove(this,"._change"),!Lt.test(this.nodeName)}
}
),nt.focusinBubbles||it.each({
	focus:"focusin",blur:"focusout"}
,function(e,t){
	var n=function(e){
	it.event.simulate(t,e.target,it.event.fix(e),!0)}
;
	it.event.special[t]={
	setup:function(){
	var r=this.ownerDocument||this,i=it._data(r,t);
	i||r.addEventListener(e,n,!0),it._data(r,t,(i||0)+1)}
,teardown:function(){
	var r=this.ownerDocument||this,i=it._data(r,t)-1;
	i?it._data(r,t,i):(r.removeEventListener(e,n,!0),it._removeData(r,t))}
}
}
),it.fn.extend({
	on:function(e,t,n,r,i){
	var o,a;
	if("object"==typeof e){
	"string"!=typeof t&&(n=n||t,t=void 0);
	for(o in e)this.on(o,t,n,e[o],i);
	return this}
if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),r===!1)r=p;
	else if(!r)return this;
	return 1===i&&(a=r,r=function(e){
	return it().off(e),a.apply(this,arguments)}
,r.guid=a.guid||(a.guid=it.guid++)),this.each(function(){
	it.event.add(this,e,r,n,t)}
)}
,one:function(e,t,n,r){
	return this.on(e,t,n,r,1)}
,off:function(e,t,n){
	var r,i;
	if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,it(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;
	if("object"==typeof e){
	for(i in e)this.off(i,t,e[i]);
	return this}
return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=p),this.each(function(){
	it.event.remove(this,e,n,t)}
)}
,trigger:function(e,t){
	return this.each(function(){
	it.event.trigger(e,t,this)}
)}
,triggerHandler:function(e,t){
	var n=this[0];
	return n?it.event.trigger(e,t,n,!0):void 0}
}
);
	var Ot="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Ft=/ jQuery\d+="(?:null|\d+)"/g,Bt=new RegExp("<(?:"+Ot+")[\\s/>]","i"),Pt=/^\s+/,Rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Wt=/<([\w:]+)/,$t=/<tbody/i,zt=/<|&#?\w+;
	/,It=/<(?:script|style|link)/i,Xt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ut=/^$|\/(?:java|ecma)script/i,Vt=/^true\/(.*)/,Jt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Yt={
	option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:nt.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]}
,Gt=m(ht),Qt=Gt.appendChild(ht.createElement("div"));
	Yt.optgroup=Yt.option,Yt.tbody=Yt.tfoot=Yt.colgroup=Yt.caption=Yt.thead,Yt.th=Yt.td,it.extend({
	clone:function(e,t,n){
	var r,i,o,a,s,l=it.contains(e.ownerDocument,e);
	if(nt.html5Clone||it.isXMLDoc(e)||!Bt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Qt.innerHTML=e.outerHTML,Qt.removeChild(o=Qt.firstChild)),!(nt.noCloneEvent&&nt.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||it.isXMLDoc(e)))for(r=g(o),s=g(e),a=0;
	null!=(i=s[a]);
	++a)r[a]&&C(i,r[a]);
	if(t)if(n)for(s=s||g(e),r=r||g(o),a=0;
	null!=(i=s[a]);
	a++)T(i,r[a]);
	else T(e,o);
	return r=g(o,"script"),r.length>0&&w(r,!l&&g(e,"script")),r=s=i=null,o}
,buildFragment:function(e,t,n,r){
	for(var i,o,a,s,l,u,c,d=e.length,f=m(t),p=[],h=0;
	d>h;
	h++)if(o=e[h],o||0===o)if("object"===it.type(o))it.merge(p,o.nodeType?[o]:o);
	else if(zt.test(o)){
	for(s=s||f.appendChild(t.createElement("div")),l=(Wt.exec(o)||["",""])[1].toLowerCase(),c=Yt[l]||Yt._default,s.innerHTML=c[1]+o.replace(Rt,"<$1></$2>")+c[2],i=c[0];
	i--;
	)s=s.lastChild;
	if(!nt.leadingWhitespace&&Pt.test(o)&&p.push(t.createTextNode(Pt.exec(o)[0])),!nt.tbody)for(o="table"!==l||$t.test(o)?"<table>"!==c[1]||$t.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;
	i--;
	)it.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);
	for(it.merge(p,s.childNodes),s.textContent="";
	s.firstChild;
	)s.removeChild(s.firstChild);
	s=f.lastChild}
else p.push(t.createTextNode(o));
	for(s&&f.removeChild(s),nt.appendChecked||it.grep(g(p,"input"),v),h=0;
	o=p[h++];
	)if((!r||-1===it.inArray(o,r))&&(a=it.contains(o.ownerDocument,o),s=g(f.appendChild(o),"script"),a&&w(s),n))for(i=0;
	o=s[i++];
	)Ut.test(o.type||"")&&n.push(o);
	return s=null,f}
,cleanData:function(e,t){
	for(var n,r,i,o,a=0,s=it.expando,l=it.cache,u=nt.deleteExpando,c=it.event.special;
	null!=(n=e[a]);
	a++)if((t||it.acceptData(n))&&(i=n[s],o=i&&l[i])){
	if(o.events)for(r in o.events)c[r]?it.event.remove(n,r):it.removeEvent(n,r,o.handle);
	l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!==Ct?n.removeAttribute(s):n[s]=null,J.push(i))}
}
}
),it.fn.extend({
	text:function(e){
	return jt(this,function(e){
	return void 0===e?it.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ht).createTextNode(e))}
,null,e,arguments.length)}
,append:function(){
	return this.domManip(arguments,function(e){
	if(1===this.nodeType||11===this.nodeType||9===this.nodeType){
	var t=y(this,e);
	t.appendChild(e)}
}
)}
,prepend:function(){
	return this.domManip(arguments,function(e){
	if(1===this.nodeType||11===this.nodeType||9===this.nodeType){
	var t=y(this,e);
	t.insertBefore(e,t.firstChild)}
}
)}
,before:function(){
	return this.domManip(arguments,function(e){
	this.parentNode&&this.parentNode.insertBefore(e,this)}
)}
,after:function(){
	return this.domManip(arguments,function(e){
	this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}
)}
,remove:function(e,t){
	for(var n,r=e?it.filter(e,this):this,i=0;
	null!=(n=r[i]);
	i++)t||1!==n.nodeType||it.cleanData(g(n)),n.parentNode&&(t&&it.contains(n.ownerDocument,n)&&w(g(n,"script")),n.parentNode.removeChild(n));
	return this}
,empty:function(){
	for(var e,t=0;
	null!=(e=this[t]);
	t++){
	for(1===e.nodeType&&it.cleanData(g(e,!1));
	e.firstChild;
	)e.removeChild(e.firstChild);
	e.options&&it.nodeName(e,"select")&&(e.options.length=0)}
return this}
,clone:function(e,t){
	return e=null==e?!1:e,t=null==t?e:t,this.map(function(){
	return it.clone(this,e,t)}
)}
,html:function(e){
	return jt(this,function(e){
	var t=this[0]||{
}
,n=0,r=this.length;
	if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ft,""):void 0;
	if(!("string"!=typeof e||It.test(e)||!nt.htmlSerialize&&Bt.test(e)||!nt.leadingWhitespace&&Pt.test(e)||Yt[(Wt.exec(e)||["",""])[1].toLowerCase()])){
	e=e.replace(Rt,"<$1></$2>");
	try{
	for(;
	r>n;
	n++)t=this[n]||{
}
,1===t.nodeType&&(it.cleanData(g(t,!1)),t.innerHTML=e);
	t=0}
catch(i){
}
}
t&&this.empty().append(e)}
,null,e,arguments.length)}
,replaceWith:function(){
	var e=arguments[0];
	return this.domManip(arguments,function(t){
	e=this.parentNode,it.cleanData(g(this)),e&&e.replaceChild(t,this)}
),e&&(e.length||e.nodeType)?this:this.remove()}
,detach:function(e){
	return this.remove(e,!0)}
,domManip:function(e,t){
	e=G.apply([],e);
	var n,r,i,o,a,s,l=0,u=this.length,c=this,d=u-1,f=e[0],p=it.isFunction(f);
	if(p||u>1&&"string"==typeof f&&!nt.checkClone&&Xt.test(f))return this.each(function(n){
	var r=c.eq(n);
	p&&(e[0]=f.call(this,n,r.html())),r.domManip(e,t)}
);
	if(u&&(s=it.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){
	for(o=it.map(g(s,"script"),b),i=o.length;
	u>l;
	l++)r=s,l!==d&&(r=it.clone(r,!0,!0),i&&it.merge(o,g(r,"script"))),t.call(this[l],r,l);
	if(i)for(a=o[o.length-1].ownerDocument,it.map(o,x),l=0;
	i>l;
	l++)r=o[l],Ut.test(r.type||"")&&!it._data(r,"globalEval")&&it.contains(a,r)&&(r.src?it._evalUrl&&it._evalUrl(r.src):it.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Jt,"")));
	s=n=null}
return this}
}
),it.each({
	appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"}
,function(e,t){
	it.fn[e]=function(e){
	for(var n,r=0,i=[],o=it(e),a=o.length-1;
	a>=r;
	r++)n=r===a?this:this.clone(!0),it(o[r])[t](n),Q.apply(i,n.get());
	return this.pushStack(i)}
}
);
	var Kt,Zt={
}
;
	!function(){
	var e;
	nt.shrinkWrapBlocks=function(){
	if(null!=e)return e;
	e=!1;
	var t,n,r;
	return n=ht.getElementsByTagName("body")[0],n&&n.style?(t=ht.createElement("div"),r=ht.createElement("div"),r.style.cssText="position:absolute;
	border:0;
	width:0;
	height:0;
	top:0;
	left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==Ct&&(t.style.cssText="-webkit-box-sizing:content-box;
	-moz-box-sizing:content-box;
	box-sizing:content-box;
	display:block;
	margin:0;
	border:0;
	padding:1px;
	width:1px;
	zoom:1",t.appendChild(ht.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}
}
();
	var en,tn,nn=/^margin/,rn=new RegExp("^("+kt+")(?!px)[a-z%]+$","i"),on=/^(top|right|bottom|left)$/;
	e.getComputedStyle?(en=function(e){
	return e.ownerDocument.defaultView.getComputedStyle(e,null)}
,tn=function(e,t,n){
	var r,i,o,a,s=e.style;
	return n=n||en(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||it.contains(e.ownerDocument,e)||(a=it.style(e,t)),rn.test(a)&&nn.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}
):ht.documentElement.currentStyle&&(en=function(e){
	return e.currentStyle}
,tn=function(e,t,n){
	var r,i,o,a,s=e.style;
	return n=n||en(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),rn.test(a)&&!on.test(t)&&(r=s.left,i=e.runtimeStyle,o=i&&i.left,o&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}
),function(){
	function t(){
	var t,n,r,i;
	n=ht.getElementsByTagName("body")[0],n&&n.style&&(t=ht.createElement("div"),r=ht.createElement("div"),r.style.cssText="position:absolute;
	border:0;
	width:0;
	height:0;
	top:0;
	left:-9999px",n.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	display:block;
	margin-top:1%;
	top:1%;
	border:1px;
	padding:1px;
	width:4px;
	position:absolute",o=a=!1,l=!0,e.getComputedStyle&&(o="1%"!==(e.getComputedStyle(t,null)||{
}
).top,a="4px"===(e.getComputedStyle(t,null)||{
	width:"4px"}
).width,i=t.appendChild(ht.createElement("div")),i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;
	-moz-box-sizing:content-box;
	box-sizing:content-box;
	display:block;
	margin:0;
	border:0;
	padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((e.getComputedStyle(i,null)||{
}
).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;
	border:0;
	padding:0;
	display:none",s=0===i[0].offsetHeight,s&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),n.removeChild(r))}
var n,r,i,o,a,s,l;
	n=ht.createElement("div"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=n.getElementsByTagName("a")[0],r=i&&i.style,r&&(r.cssText="float:left;
	opacity:.5",nt.opacity="0.5"===r.opacity,nt.cssFloat=!!r.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",nt.clearCloneStyle="content-box"===n.style.backgroundClip,nt.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,it.extend(nt,{
	reliableHiddenOffsets:function(){
	return null==s&&t(),s}
,boxSizingReliable:function(){
	return null==a&&t(),a}
,pixelPosition:function(){
	return null==o&&t(),o}
,reliableMarginRight:function(){
	return null==l&&t(),l}
}
))}
(),it.swap=function(e,t,n,r){
	var i,o,a={
}
;
	for(o in t)a[o]=e.style[o],e.style[o]=t[o];
	i=n.apply(e,r||[]);
	for(o in t)e.style[o]=a[o];
	return i}
;
	var an=/alpha\([^)]*\)/i,sn=/opacity\s*=\s*([^)]*)/,ln=/^(none|table(?!-c[ea]).+)/,un=new RegExp("^("+kt+")(.*)$","i"),cn=new RegExp("^([+-])=("+kt+")","i"),dn={
	position:"absolute",visibility:"hidden",display:"block"}
,fn={
	letterSpacing:"0",fontWeight:"400"}
,pn=["Webkit","O","Moz","ms"];
	it.extend({
	cssHooks:{
	opacity:{
	get:function(e,t){
	if(t){
	var n=tn(e,"opacity");
	return""===n?"1":n}
}
}
}
,cssNumber:{
	columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0}
,cssProps:{
	"float":nt.cssFloat?"cssFloat":"styleFloat"}
,style:function(e,t,n,r){
	if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){
	var i,o,a,s=it.camelCase(t),l=e.style;
	if(t=it.cssProps[s]||(it.cssProps[s]=S(l,s)),a=it.cssHooks[t]||it.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];
	if(o=typeof n,"string"===o&&(i=cn.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(it.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||it.cssNumber[s]||(n+="px"),nt.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{
	l[t]=n}
catch(u){
}
}
}
,css:function(e,t,n,r){
	var i,o,a,s=it.camelCase(t);
	return t=it.cssProps[s]||(it.cssProps[s]=S(e.style,s)),a=it.cssHooks[t]||it.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=tn(e,t,r)),"normal"===o&&t in fn&&(o=fn[t]),""===n||n?(i=parseFloat(o),n===!0||it.isNumeric(i)?i||0:o):o}
}
),it.each(["height","width"],function(e,t){
	it.cssHooks[t]={
	get:function(e,n,r){
	return n?ln.test(it.css(e,"display"))&&0===e.offsetWidth?it.swap(e,dn,function(){
	return L(e,t,r)}
):L(e,t,r):void 0}
,set:function(e,n,r){
	var i=r&&en(e);
	return j(e,n,r?D(e,t,r,nt.boxSizing&&"border-box"===it.css(e,"boxSizing",!1,i),i):0)}
}
}
),nt.opacity||(it.cssHooks.opacity={
	get:function(e,t){
	return sn.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""}
,set:function(e,t){
	var n=e.style,r=e.currentStyle,i=it.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";
	n.zoom=1,(t>=1||""===t)&&""===it.trim(o.replace(an,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=an.test(o)?o.replace(an,i):o+" "+i)}
}
),it.cssHooks.marginRight=k(nt.reliableMarginRight,function(e,t){
	return t?it.swap(e,{
	display:"inline-block"}
,tn,[e,"marginRight"]):void 0}
),it.each({
	margin:"",padding:"",border:"Width"}
,function(e,t){
	it.cssHooks[e+t]={
	expand:function(n){
	for(var r=0,i={
}
,o="string"==typeof n?n.split(" "):[n];
	4>r;
	r++)i[e+St[r]+t]=o[r]||o[r-2]||o[0];
	return i}
}
,nn.test(e)||(it.cssHooks[e+t].set=j)}
),it.fn.extend({
	css:function(e,t){
	return jt(this,function(e,t,n){
	var r,i,o={
}
,a=0;
	if(it.isArray(t)){
	for(r=en(e),i=t.length;
	i>a;
	a++)o[t[a]]=it.css(e,t[a],!1,r);
	return o}
return void 0!==n?it.style(e,t,n):it.css(e,t)}
,e,t,arguments.length>1)}
,show:function(){
	return A(this,!0)}
,hide:function(){
	return A(this)}
,toggle:function(e){
	return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){
	At(this)?it(this).show():it(this).hide()}
)}
}
),it.Tween=H,H.prototype={
	constructor:H,init:function(e,t,n,r,i,o){
	this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(it.cssNumber[n]?"":"px")}
,cur:function(){
	var e=H.propHooks[this.prop];
	return e&&e.get?e.get(this):H.propHooks._default.get(this)}
,run:function(e){
	var t,n=H.propHooks[this.prop];
	return this.pos=t=this.options.duration?it.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}
}
,H.prototype.init.prototype=H.prototype,H.propHooks={
	_default:{
	get:function(e){
	var t;
	return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=it.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]}
,set:function(e){
	it.fx.step[e.prop]?it.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[it.cssProps[e.prop]]||it.cssHooks[e.prop])?it.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}
}
}
,H.propHooks.scrollTop=H.propHooks.scrollLeft={
	set:function(e){
	e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}
}
,it.easing={
	linear:function(e){
	return e}
,swing:function(e){
	return.5-Math.cos(e*Math.PI)/2}
}
,it.fx=H.prototype.init,it.fx.step={
}
;
	var hn,mn,gn=/^(?:toggle|show|hide)$/,vn=new RegExp("^(?:([+-])=|)("+kt+")([a-z%]*)$","i"),yn=/queueHooks$/,bn=[O],xn={
	"*":[function(e,t){
	var n=this.createTween(e,t),r=n.cur(),i=vn.exec(t),o=i&&i[3]||(it.cssNumber[e]?"":"px"),a=(it.cssNumber[e]||"px"!==o&&+r)&&vn.exec(it.css(n.elem,e)),s=1,l=20;
	if(a&&a[3]!==o){
	o=o||a[3],i=i||[],a=+r||1;
	do s=s||".5",a/=s,it.style(n.elem,e,a+o);
	while(s!==(s=n.cur()/r)&&1!==s&&--l)}
return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}
]}
;
	it.Animation=it.extend(B,{
	tweener:function(e,t){
	it.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");
	for(var n,r=0,i=e.length;
	i>r;
	r++)n=e[r],xn[n]=xn[n]||[],xn[n].unshift(t)}
,prefilter:function(e,t){
	t?bn.unshift(e):bn.push(e)}
}
),it.speed=function(e,t,n){
	var r=e&&"object"==typeof e?it.extend({
}
,e):{
	complete:n||!n&&t||it.isFunction(e)&&e,duration:e,easing:n&&t||t&&!it.isFunction(t)&&t}
;
	return r.duration=it.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in it.fx.speeds?it.fx.speeds[r.duration]:it.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){
	it.isFunction(r.old)&&r.old.call(this),r.queue&&it.dequeue(this,r.queue)}
,r}
,it.fn.extend({
	fadeTo:function(e,t,n,r){
	return this.filter(At).css("opacity",0).show().end().animate({
	opacity:t}
,e,n,r)}
,animate:function(e,t,n,r){
	var i=it.isEmptyObject(e),o=it.speed(t,n,r),a=function(){
	var t=B(this,it.extend({
}
,e),o);
	(i||it._data(this,"finish"))&&t.stop(!0)}
;
	return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)}
,stop:function(e,t,n){
	var r=function(e){
	var t=e.stop;
	delete e.stop,t(n)}
;
	return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){
	var t=!0,i=null!=e&&e+"queueHooks",o=it.timers,a=it._data(this);
	if(i)a[i]&&a[i].stop&&r(a[i]);
	else for(i in a)a[i]&&a[i].stop&&yn.test(i)&&r(a[i]);
	for(i=o.length;
	i--;
	)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));
	(t||!n)&&it.dequeue(this,e)}
)}
,finish:function(e){
	return e!==!1&&(e=e||"fx"),this.each(function(){
	var t,n=it._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=it.timers,a=r?r.length:0;
	for(n.finish=!0,it.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;
	t--;
	)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));
	for(t=0;
	a>t;
	t++)r[t]&&r[t].finish&&r[t].finish.call(this);
	delete n.finish}
)}
}
),it.each(["toggle","show","hide"],function(e,t){
	var n=it.fn[t];
	it.fn[t]=function(e,r,i){
	return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(_(t,!0),e,r,i)}
}
),it.each({
	slideDown:_("show"),slideUp:_("hide"),slideToggle:_("toggle"),fadeIn:{
	opacity:"show"}
,fadeOut:{
	opacity:"hide"}
,fadeToggle:{
	opacity:"toggle"}
}
,function(e,t){
	it.fn[e]=function(e,n,r){
	return this.animate(t,e,n,r)}
}
),it.timers=[],it.fx.tick=function(){
	var e,t=it.timers,n=0;
	for(hn=it.now();
	n<t.length;
	n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);
	t.length||it.fx.stop(),hn=void 0}
,it.fx.timer=function(e){
	it.timers.push(e),e()?it.fx.start():it.timers.pop()}
,it.fx.interval=13,it.fx.start=function(){
	mn||(mn=setInterval(it.fx.tick,it.fx.interval))}
,it.fx.stop=function(){
	clearInterval(mn),mn=null}
,it.fx.speeds={
	slow:600,fast:200,_default:400}
,it.fn.delay=function(e,t){
	return e=it.fx?it.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){
	var r=setTimeout(t,e);
	n.stop=function(){
	clearTimeout(r)}
}
)}
,function(){
	var e,t,n,r,i;
	t=ht.createElement("div"),t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=t.getElementsByTagName("a")[0],n=ht.createElement("select"),i=n.appendChild(ht.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",nt.getSetAttribute="t"!==t.className,nt.style=/top/.test(r.getAttribute("style")),nt.hrefNormalized="/a"===r.getAttribute("href"),nt.checkOn=!!e.value,nt.optSelected=i.selected,nt.enctype=!!ht.createElement("form").enctype,n.disabled=!0,nt.optDisabled=!i.disabled,e=ht.createElement("input"),e.setAttribute("value",""),nt.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),nt.radioValue="t"===e.value}
();
	var wn=/\r/g;
	it.fn.extend({
	val:function(e){
	var t,n,r,i=this[0];
	{
	if(arguments.length)return r=it.isFunction(e),this.each(function(n){
	var i;
	1===this.nodeType&&(i=r?e.call(this,n,it(this).val()):e,null==i?i="":"number"==typeof i?i+="":it.isArray(i)&&(i=it.map(i,function(e){
	return null==e?"":e+""}
)),t=it.valHooks[this.type]||it.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}
);
	if(i)return t=it.valHooks[i.type]||it.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(wn,""):null==n?"":n)}
}
}
),it.extend({
	valHooks:{
	option:{
	get:function(e){
	var t=it.find.attr(e,"value");
	return null!=t?t:it.trim(it.text(e))}
}
,select:{
	get:function(e){
	for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;
	s>l;
	l++)if(n=r[l],!(!n.selected&&l!==i||(nt.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&it.nodeName(n.parentNode,"optgroup"))){
	if(t=it(n).val(),o)return t;
	a.push(t)}
return a}
,set:function(e,t){
	for(var n,r,i=e.options,o=it.makeArray(t),a=i.length;
	a--;
	)if(r=i[a],it.inArray(it.valHooks.option.get(r),o)>=0)try{
	r.selected=n=!0}
catch(s){
	r.scrollHeight}
else r.selected=!1;
	return n||(e.selectedIndex=-1),i}
}
}
}
),it.each(["radio","checkbox"],function(){
	it.valHooks[this]={
	set:function(e,t){
	return it.isArray(t)?e.checked=it.inArray(it(e).val(),t)>=0:void 0}
}
,nt.checkOn||(it.valHooks[this].get=function(e){
	return null===e.getAttribute("value")?"on":e.value}
)}
);
	var Tn,Cn,Nn=it.expr.attrHandle,En=/^(?:checked|selected)$/i,kn=nt.getSetAttribute,Sn=nt.input;
	it.fn.extend({
	attr:function(e,t){
	return jt(this,it.attr,e,t,arguments.length>1)}
,removeAttr:function(e){
	return this.each(function(){
	it.removeAttr(this,e)}
)}
}
),it.extend({
	attr:function(e,t,n){
	var r,i,o=e.nodeType;
	if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===Ct?it.prop(e,t,n):(1===o&&it.isXMLDoc(e)||(t=t.toLowerCase(),r=it.attrHooks[t]||(it.expr.match.bool.test(t)?Cn:Tn)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=it.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void it.removeAttr(e,t))}
,removeAttr:function(e,t){
	var n,r,i=0,o=t&&t.match(bt);
	if(o&&1===e.nodeType)for(;
	n=o[i++];
	)r=it.propFix[n]||n,it.expr.match.bool.test(n)?Sn&&kn||!En.test(n)?e[r]=!1:e[it.camelCase("default-"+n)]=e[r]=!1:it.attr(e,n,""),e.removeAttribute(kn?n:r)}
,attrHooks:{
	type:{
	set:function(e,t){
	if(!nt.radioValue&&"radio"===t&&it.nodeName(e,"input")){
	var n=e.value;
	return e.setAttribute("type",t),n&&(e.value=n),t}
}
}
}
}
),Cn={
	set:function(e,t,n){
	return t===!1?it.removeAttr(e,n):Sn&&kn||!En.test(n)?e.setAttribute(!kn&&it.propFix[n]||n,n):e[it.camelCase("default-"+n)]=e[n]=!0,n}
}
,it.each(it.expr.match.bool.source.match(/\w+/g),function(e,t){
	var n=Nn[t]||it.find.attr;
	Nn[t]=Sn&&kn||!En.test(t)?function(e,t,r){
	var i,o;
	return r||(o=Nn[t],Nn[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,Nn[t]=o),i}
:function(e,t,n){
	return n?void 0:e[it.camelCase("default-"+t)]?t.toLowerCase():null}
}
),Sn&&kn||(it.attrHooks.value={
	set:function(e,t,n){
	return it.nodeName(e,"input")?void(e.defaultValue=t):Tn&&Tn.set(e,t,n)}
}
),kn||(Tn={
	set:function(e,t,n){
	var r=e.getAttributeNode(n);
	return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}
}
,Nn.id=Nn.name=Nn.coords=function(e,t,n){
	var r;
	return n?void 0:(r=e.getAttributeNode(t))&&""!==r.value?r.value:null}
,it.valHooks.button={
	get:function(e,t){
	var n=e.getAttributeNode(t);
	return n&&n.specified?n.value:void 0}
,set:Tn.set}
,it.attrHooks.contenteditable={
	set:function(e,t,n){
	Tn.set(e,""===t?!1:t,n)}
}
,it.each(["width","height"],function(e,t){
	it.attrHooks[t]={
	set:function(e,n){
	return""===n?(e.setAttribute(t,"auto"),n):void 0}
}
}
)),nt.style||(it.attrHooks.style={
	get:function(e){
	return e.style.cssText||void 0}
,set:function(e,t){
	return e.style.cssText=t+""}
}
);
	var An=/^(?:input|select|textarea|button|object)$/i,jn=/^(?:a|area)$/i;
	it.fn.extend({
	prop:function(e,t){
	return jt(this,it.prop,e,t,arguments.length>1)}
,removeProp:function(e){
	return e=it.propFix[e]||e,this.each(function(){
	try{
	this[e]=void 0,delete this[e]}
catch(t){
}
}
)}
}
),it.extend({
	propFix:{
	"for":"htmlFor","class":"className"}
,prop:function(e,t,n){
	var r,i,o,a=e.nodeType;
	if(e&&3!==a&&8!==a&&2!==a)return o=1!==a||!it.isXMLDoc(e),o&&(t=it.propFix[t]||t,i=it.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]}
,propHooks:{
	tabIndex:{
	get:function(e){
	var t=it.find.attr(e,"tabindex");
	return t?parseInt(t,10):An.test(e.nodeName)||jn.test(e.nodeName)&&e.href?0:-1}
}
}
}
),nt.hrefNormalized||it.each(["href","src"],function(e,t){
	it.propHooks[t]={
	get:function(e){
	return e.getAttribute(t,4)}
}
}
),nt.optSelected||(it.propHooks.selected={
	get:function(e){
	var t=e.parentNode;
	return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}
}
),it.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){
	it.propFix[this.toLowerCase()]=this}
),nt.enctype||(it.propFix.enctype="encoding");
	var Dn=/[\t\r\n\f]/g;
	it.fn.extend({
	addClass:function(e){
	var t,n,r,i,o,a,s=0,l=this.length,u="string"==typeof e&&e;
	if(it.isFunction(e))return this.each(function(t){
	it(this).addClass(e.call(this,t,this.className))}
);
	if(u)for(t=(e||"").match(bt)||[];
	l>s;
	s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dn," "):" ")){
	for(o=0;
	i=t[o++];
	)r.indexOf(" "+i+" ")<0&&(r+=i+" ");
	a=it.trim(r),n.className!==a&&(n.className=a)}
return this}
,removeClass:function(e){
	var t,n,r,i,o,a,s=0,l=this.length,u=0===arguments.length||"string"==typeof e&&e;
	if(it.isFunction(e))return this.each(function(t){
	it(this).removeClass(e.call(this,t,this.className))}
);
	if(u)for(t=(e||"").match(bt)||[];
	l>s;
	s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dn," "):"")){
	for(o=0;
	i=t[o++];
	)for(;
	r.indexOf(" "+i+" ")>=0;
	)r=r.replace(" "+i+" "," ");
	a=e?it.trim(r):"",n.className!==a&&(n.className=a)}
return this}
,toggleClass:function(e,t){
	var n=typeof e;
	return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(it.isFunction(e)?function(n){
	it(this).toggleClass(e.call(this,n,this.className,t),t)}
:function(){
	if("string"===n)for(var t,r=0,i=it(this),o=e.match(bt)||[];
	t=o[r++];
	)i.hasClass(t)?i.removeClass(t):i.addClass(t);
	else(n===Ct||"boolean"===n)&&(this.className&&it._data(this,"__className__",this.className),this.className=this.className||e===!1?"":it._data(this,"__className__")||"")}
)}
,hasClass:function(e){
	for(var t=" "+e+" ",n=0,r=this.length;
	r>n;
	n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Dn," ").indexOf(t)>=0)return!0;
	return!1}
}
),it.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){
	it.fn[t]=function(e,n){
	return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}
}
),it.fn.extend({
	hover:function(e,t){
	return this.mouseenter(e).mouseleave(t||e)}
,bind:function(e,t,n){
	return this.on(e,null,t,n)}
,unbind:function(e,t){
	return this.off(e,null,t)}
,delegate:function(e,t,n,r){
	return this.on(t,e,n,r)}
,undelegate:function(e,t,n){
	return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}
}
);
	var Ln=it.now(),Hn=/\?/,qn=/(,)|(\[|{
	)|(}
|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{
	4}
)*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
	it.parseJSON=function(t){
	if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");
	var n,r=null,i=it.trim(t+"");
	return i&&!it.trim(i.replace(qn,function(e,t,i,o){
	return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}
))?Function("return "+i)():it.error("Invalid JSON:"+t)}
,it.parseXML=function(t){
	var n,r;
	if(!t||"string"!=typeof t)return null;
	try{
	e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}
catch(i){
	n=void 0}
return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||it.error("Invalid XML:"+t),n}
;
	var _n,Mn,On=/#.*$/,Fn=/([?&])_=[^&]*/
,Bn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Pn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Rn=/^(?:GET|HEAD)$/,Wn=/^\/\//,$n=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,zn={
}
,In={
}
,Xn="*/
".concat("*");
	try{
	Mn=location.href}
catch(Un){
	Mn=ht.createElement("a"),Mn.href="",Mn=Mn.href}
_n=$n.exec(Mn.toLowerCase())||[],it.extend({
	active:0,lastModified:{
}
,etag:{
}
,ajaxSettings:{
	url:Mn,type:"GET",isLocal:Pn.test(_n[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded;
	charset=UTF-8",accepts:{
	"*":Xn,text:"text/plain",html:"text/html",xml:"application/xml,text/xml",json:"application/json,text/javascript"}
,contents:{
	xml:/xml/,html:/html/,json:/json/}
,responseFields:{
	xml:"responseXML",text:"responseText",json:"responseJSON"}
,converters:{
	"* text":String,"text html":!0,"text json":it.parseJSON,"text xml":it.parseXML}
,flatOptions:{
	url:!0,context:!0}
}
,ajaxSetup:function(e,t){
	return t?W(W(e,it.ajaxSettings),t):W(it.ajaxSettings,e)}
,ajaxPrefilter:P(zn),ajaxTransport:P(In),ajax:function(e,t){
	function n(e,t,n,r){
	var i,c,v,y,x,T=t;
	2!==b&&(b=2,s&&clearTimeout(s),u=void 0,a=r||"",w.readyState=e>0?4:0,i=e>=200&&300>e||304===e,n&&(y=$(d,w,n)),y=z(d,y,w,i),i?(d.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(it.lastModified[o]=x),x=w.getResponseHeader("etag"),x&&(it.etag[o]=x)),204===e||"HEAD"===d.type?T="nocontent":304===e?T="notmodified":(T=y.state,c=y.data,v=y.error,i=!v)):(v=T,(e||!T)&&(T="error",0>e&&(e=0))),w.status=e,w.statusText=(t||T)+"",i?h.resolveWith(f,[c,T,w]):h.rejectWith(f,[w,T,v]),w.statusCode(g),g=void 0,l&&p.trigger(i?"ajaxSuccess":"ajaxError",[w,d,i?c:v]),m.fireWith(f,[w,T]),l&&(p.trigger("ajaxComplete",[w,d]),--it.active||it.event.trigger("ajaxStop")))}
"object"==typeof e&&(t=e,e=void 0),t=t||{
}
;
	var r,i,o,a,s,l,u,c,d=it.ajaxSetup({
}
,t),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?it(f):it.event,h=it.Deferred(),m=it.Callbacks("once memory"),g=d.statusCode||{
}
,v={
}
,y={
}
,b=0,x="canceled",w={
	readyState:0,getResponseHeader:function(e){
	var t;
	if(2===b){
	if(!c)for(c={
}
;
	t=Bn.exec(a);
	)c[t[1].toLowerCase()]=t[2];
	t=c[e.toLowerCase()]}
return null==t?null:t}
,getAllResponseHeaders:function(){
	return 2===b?a:null}
,setRequestHeader:function(e,t){
	var n=e.toLowerCase();
	return b||(e=y[n]=y[n]||e,v[e]=t),this}
,overrideMimeType:function(e){
	return b||(d.mimeType=e),this}
,statusCode:function(e){
	var t;
	if(e)if(2>b)for(t in e)g[t]=[g[t],e[t]];
	else w.always(e[w.status]);
	return this}
,abort:function(e){
	var t=e||x;
	return u&&u.abort(t),n(0,t),this}
}
;
	if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,d.url=((e||d.url||Mn)+"").replace(On,"").replace(Wn,_n[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=it.trim(d.dataType||"*").toLowerCase().match(bt)||[""],null==d.crossDomain&&(r=$n.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]===_n[1]&&r[2]===_n[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(_n[3]||("http:"===_n[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=it.param(d.data,d.traditional)),R(zn,d,t,w),2===b)return w;
	l=d.global,l&&0===it.active++&&it.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Rn.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(Hn.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Fn.test(o)?o.replace(Fn,"$1_="+Ln++):o+(Hn.test(o)?"&":"?")+"_="+Ln++)),d.ifModified&&(it.lastModified[o]&&w.setRequestHeader("If-Modified-Since",it.lastModified[o]),it.etag[o]&&w.setRequestHeader("If-None-Match",it.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",d.contentType),w.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?","+Xn+";
	q=0.01":""):d.accepts["*"]);
	for(i in d.headers)w.setRequestHeader(i,d.headers[i]);
	if(d.beforeSend&&(d.beforeSend.call(f,w,d)===!1||2===b))return w.abort();
	x="abort";
	for(i in{
	success:1,error:1,complete:1}
)w[i](d[i]);
	if(u=R(In,d,t,w)){
	w.readyState=1,l&&p.trigger("ajaxSend",[w,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){
	w.abort("timeout")}
,d.timeout));
	try{
	b=1,u.send(v,n)}
catch(T){
	if(!(2>b))throw T;
	n(-1,T)}
}
else n(-1,"No Transport");
	return w}
,getJSON:function(e,t,n){
	return it.get(e,t,n,"json")}
,getScript:function(e,t){
	return it.get(e,void 0,t,"script")}
}
),it.each(["get","post"],function(e,t){
	it[t]=function(e,n,r,i){
	return it.isFunction(n)&&(i=i||r,r=n,n=void 0),it.ajax({
	url:e,type:t,dataType:i,data:n,success:r}
)}
}
),it.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){
	it.fn[t]=function(e){
	return this.on(t,e)}
}
),it._evalUrl=function(e){
	return it.ajax({
	url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}
)}
,it.fn.extend({
	wrapAll:function(e){
	if(it.isFunction(e))return this.each(function(t){
	it(this).wrapAll(e.call(this,t))}
);
	if(this[0]){
	var t=it(e,this[0].ownerDocument).eq(0).clone(!0);
	this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){
	for(var e=this;
	e.firstChild&&1===e.firstChild.nodeType;
	)e=e.firstChild;
	return e}
).append(this)}
return this}
,wrapInner:function(e){
	return this.each(it.isFunction(e)?function(t){
	it(this).wrapInner(e.call(this,t))}
:function(){
	var t=it(this),n=t.contents();
	n.length?n.wrapAll(e):t.append(e)}
)}
,wrap:function(e){
	var t=it.isFunction(e);
	return this.each(function(n){
	it(this).wrapAll(t?e.call(this,n):e)}
)}
,unwrap:function(){
	return this.parent().each(function(){
	it.nodeName(this,"body")||it(this).replaceWith(this.childNodes)}
).end()}
}
),it.expr.filters.hidden=function(e){
	return e.offsetWidth<=0&&e.offsetHeight<=0||!nt.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||it.css(e,"display"))}
,it.expr.filters.visible=function(e){
	return!it.expr.filters.hidden(e)}
;
	var Vn=/%20/g,Jn=/\[\]$/,Yn=/\r?\n/g,Gn=/^(?:submit|button|image|reset|file)$/i,Qn=/^(?:input|select|textarea|keygen)/i;
	it.param=function(e,t){
	var n,r=[],i=function(e,t){
	t=it.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}
;
	if(void 0===t&&(t=it.ajaxSettings&&it.ajaxSettings.traditional),it.isArray(e)||e.jquery&&!it.isPlainObject(e))it.each(e,function(){
	i(this.name,this.value)}
);
	else for(n in e)I(n,e[n],t,i);
	return r.join("&").replace(Vn,"+")}
,it.fn.extend({
	serialize:function(){
	return it.param(this.serializeArray())}
,serializeArray:function(){
	return this.map(function(){
	var e=it.prop(this,"elements");
	return e?it.makeArray(e):this}
).filter(function(){
	var e=this.type;
	return this.name&&!it(this).is(":disabled")&&Qn.test(this.nodeName)&&!Gn.test(e)&&(this.checked||!Dt.test(e))}
).map(function(e,t){
	var n=it(this).val();
	return null==n?null:it.isArray(n)?it.map(n,function(e){
	return{
	name:t.name,value:e.replace(Yn,"\r\n")}
}
):{
	name:t.name,value:n.replace(Yn,"\r\n")}
}
).get()}
}
),it.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){
	return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&X()||U()}
:X;
	var Kn=0,Zn={
}
,er=it.ajaxSettings.xhr();
	e.ActiveXObject&&it(e).on("unload",function(){
	for(var e in Zn)Zn[e](void 0,!0)}
),nt.cors=!!er&&"withCredentials"in er,er=nt.ajax=!!er,er&&it.ajaxTransport(function(e){
	if(!e.crossDomain||nt.cors){
	var t;
	return{
	send:function(n,r){
	var i,o=e.xhr(),a=++Kn;
	if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];
	e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");
	for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");
	o.send(e.hasContent&&e.data||null),t=function(n,i){
	var s,l,u;
	if(t&&(i||4===o.readyState))if(delete Zn[a],t=void 0,o.onreadystatechange=it.noop,i)4!==o.readyState&&o.abort();
	else{
	u={
}
,s=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);
	try{
	l=o.statusText}
catch(c){
	l=""}
s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=u.text?200:404}
u&&r(s,l,u,o.getAllResponseHeaders())}
,e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Zn[a]=t:t()}
,abort:function(){
	t&&t(void 0,!0)}
}
}
}
),it.ajaxSetup({
	accepts:{
	script:"text/javascript,application/javascript,application/ecmascript,application/x-ecmascript"}
,contents:{
	script:/(?:java|ecma)script/}
,converters:{
	"text script":function(e){
	return it.globalEval(e),e}
}
}
),it.ajaxPrefilter("script",function(e){
	void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}
),it.ajaxTransport("script",function(e){
	if(e.crossDomain){
	var t,n=ht.head||it("head")[0]||ht.documentElement;
	return{
	send:function(r,i){
	t=ht.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){
	(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))}
,n.insertBefore(t,n.firstChild)}
,abort:function(){
	t&&t.onload(void 0,!0)}
}
}
}
);
	var tr=[],nr=/(=)\?(?=&|$)|\?\?/;
	it.ajaxSetup({
	jsonp:"callback",jsonpCallback:function(){
	var e=tr.pop()||it.expando+"_"+Ln++;
	return this[e]=!0,e}
}
),it.ajaxPrefilter("json jsonp",function(t,n,r){
	var i,o,a,s=t.jsonp!==!1&&(nr.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nr.test(t.data)&&"data");
	return s||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=it.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(nr,"$1"+i):t.jsonp!==!1&&(t.url+=(Hn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){
	return a||it.error(i+" was not called"),a[0]}
,t.dataTypes[0]="json",o=e[i],e[i]=function(){
	a=arguments}
,r.always(function(){
	e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,tr.push(i)),a&&it.isFunction(o)&&o(a[0]),a=o=void 0}
),"script"):void 0}
),it.parseHTML=function(e,t,n){
	if(!e||"string"!=typeof e)return null;
	"boolean"==typeof t&&(n=t,t=!1),t=t||ht;
	var r=dt.exec(e),i=!n&&[];
	return r?[t.createElement(r[1])]:(r=it.buildFragment([e],t,i),i&&i.length&&it(i).remove(),it.merge([],r.childNodes))}
;
	var rr=it.fn.load;
	it.fn.load=function(e,t,n){
	if("string"!=typeof e&&rr)return rr.apply(this,arguments);
	var r,i,o,a=this,s=e.indexOf(" ");
	return s>=0&&(r=it.trim(e.slice(s,e.length)),e=e.slice(0,s)),it.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&it.ajax({
	url:e,type:o,dataType:"html",data:t}
).done(function(e){
	i=arguments,a.html(r?it("<div>").append(it.parseHTML(e)).find(r):e)}
).complete(n&&function(e,t){
	a.each(n,i||[e.responseText,t,e])}
),this}
,it.expr.filters.animated=function(e){
	return it.grep(it.timers,function(t){
	return e===t.elem}
).length}
;
	var ir=e.document.documentElement;
	it.offset={
	setOffset:function(e,t,n){
	var r,i,o,a,s,l,u,c=it.css(e,"position"),d=it(e),f={
}
;
	"static"===c&&(e.style.position="relative"),s=d.offset(),o=it.css(e,"top"),l=it.css(e,"left"),u=("absolute"===c||"fixed"===c)&&it.inArray("auto",[o,l])>-1,u?(r=d.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),it.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):d.css(f)}
}
,it.fn.extend({
	offset:function(e){
	if(arguments.length)return void 0===e?this:this.each(function(t){
	it.offset.setOffset(this,e,t)}
);
	var t,n,r={
	top:0,left:0}
,i=this[0],o=i&&i.ownerDocument;
	if(o)return t=o.documentElement,it.contains(t,i)?(typeof i.getBoundingClientRect!==Ct&&(r=i.getBoundingClientRect()),n=V(o),{
	top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}
):r}
,position:function(){
	if(this[0]){
	var e,t,n={
	top:0,left:0}
,r=this[0];
	return"fixed"===it.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),it.nodeName(e[0],"html")||(n=e.offset()),n.top+=it.css(e[0],"borderTopWidth",!0),n.left+=it.css(e[0],"borderLeftWidth",!0)),{
	top:t.top-n.top-it.css(r,"marginTop",!0),left:t.left-n.left-it.css(r,"marginLeft",!0)}
}
}
,offsetParent:function(){
	return this.map(function(){
	for(var e=this.offsetParent||ir;
	e&&!it.nodeName(e,"html")&&"static"===it.css(e,"position");
	)e=e.offsetParent;
	return e||ir}
)}
}
),it.each({
	scrollLeft:"pageXOffset",scrollTop:"pageYOffset"}
,function(e,t){
	var n=/Y/.test(t);
	it.fn[e]=function(r){
	return jt(this,function(e,r,i){
	var o=V(e);
	return void 0===i?o?t in o?o[t]:o.document.documentElement[r]:e[r]:void(o?o.scrollTo(n?it(o).scrollLeft():i,n?i:it(o).scrollTop()):e[r]=i)}
,e,r,arguments.length,null)}
}
),it.each(["top","left"],function(e,t){
	it.cssHooks[t]=k(nt.pixelPosition,function(e,n){
	return n?(n=tn(e,t),rn.test(n)?it(e).position()[t]+"px":n):void 0}
)}
),it.each({
	Height:"height",Width:"width"}
,function(e,t){
	it.each({
	padding:"inner"+e,content:t,"":"outer"+e}
,function(n,r){
	it.fn[r]=function(r,i){
	var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");
	return jt(this,function(t,n,r){
	var i;
	return it.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?it.css(t,n,a):it.style(t,n,r,a)}
,t,o?r:void 0,o,null)}
}
)}
),it.fn.size=function(){
	return this.length}
,it.fn.andSelf=it.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){
	return it}
);
	var or=e.jQuery,ar=e.$;
	return it.noConflict=function(t){
	return e.$===it&&(e.$=ar),t&&e.jQuery===it&&(e.jQuery=or),it}
,typeof t===Ct&&(e.jQuery=e.$=it),it}
)}
);
	;
	define("wiki-common:widget/lib/jsmart/jsmart.js",function(require,exports,module){
	function obMerge(e){
	for(var r=1;
	r<arguments.length;
	++r)for(var t in arguments[r])e[t]=arguments[r][t];
	return e}
function countProperties(e){
	var r=0;
	for(var t in e)e.hasOwnProperty(t)&&r++;
	return r}
function findInArray(e,r){
	if(Array.prototype.indexOf)return e.indexOf(r);
	for(var t=0;
	t<e.length;
	++t)if(e[t]===r)return t;
	return-1}
function evalString(e){
	return e.replace(/\\t/,"").replace(/\\n/,"\n").replace(/\\(['"\\])/g,"$1")}
function trimQuotes(e){
	return evalString(e.replace(/^['"](.*)['"]$/,"$1")).replace(/^\s+|\s+$/g,"")}
function findTag(e,r){
	for(var t=0,a=0,n=jSmart.prototype.left_delimiter,s=jSmart.prototype.right_delimiter,i=jSmart.prototype.auto_literal,o=/^\s*(.+)\s*$/i,p=e?new RegExp("^\\s*("+e+")\\s*$","i"):o,l=0;
	l<r.length;
	++l)if(r.substr(l,n.length)==n){
	if(i&&l+1<r.length&&r.substr(l+1,1).match(/\s/))continue;
	t||(r=r.slice(l),a+=parseInt(l),l=0),++t}
else if(r.substr(l,s.length)==s){
	if(i&&l-1>=0&&r.substr(l-1,1).match(/\s/))continue;
	if(!--t){
	var c=r.slice(n.length,l).replace(/[\r\n]/g," "),u=c.match(p);
	if(u)return u.index=a,u[0]=r.slice(0,l+s.length),u}
0>t&&(t=0)}
return null}
function findCloseTag(e,r,t){
	var a="",n=null,s=null,i=0;
	do{
	if(n&&(i+=n[0].length),n=findTag(e,t),!n)throw new Error("Unclosed{
	"+r+"}
");
	a+=t.slice(0,n.index),i+=n.index,t=t.slice(n.index+n[0].length),s=findTag(r,a),s&&(a=a.slice(s.index+s[0].length))}
while(s);
	return n.index=i,n}
function findElseTag(e,r,t,a){
	for(var n=0,s=findTag(t,a);
	s;
	s=findTag(t,a)){
	var i=findTag(e,a);
	if(!i||i.index>s.index)return s.index+=n,s;
	a=a.slice(i.index+i[0].length),n+=i.index+i[0].length;
	var o=findCloseTag(r,e,a);
	a=a.slice(o.index+o[0].length),n+=o.index+o[0].length}
return null}
function execute(code,data){
	if("string"==typeof code)with({
	__code:code}
)with(modifiers)with(data)try{
	return eval(__code)}
catch(e){
	throw new Error(e.message+" in \n"+code)}
return code}
function assignVar(e,r,t){
	e.match(/\[\]$/)?t[e.replace(/\[\]$/,"")].push(r):t[e]=r}
function parse(e,r){
	for(var t=findTag("",e);
	t;
	t=findTag("",e)){
	t.index&&parseText(e.slice(0,t.index),r),e=e.slice(t.index+t[0].length);
	var a=t[1].match(/^\s*(\w+)(.*)$/);
	if(a){
	var n=a[1],s=a.length>2?a[2].replace(/^\s+|\s+$/g,""):"";
	if(n in buildInFunctions){
	var i=buildInFunctions[n],o=("parseParams"in i?i.parseParams:parseParams)(s);
	if("block"==i.type){
	e=e.replace(/^\n/,"");
	var p=findCloseTag("/"+n,n+" +[^}
]*",e);
	i.parse(o,r,e.slice(0,p.index)),e=e.slice(p.index+p[0].length)}
else i.parse(o,r),"extends"==n&&(r=[]);
	e=e.replace(/^\n/,"")}
else if(n in plugins){
	var l=plugins[n];
	if("block"==l.type){
	var p=findCloseTag("/"+n,n+" +[^}
]*",e);
	parsePluginBlock(n,parseParams(s),r,e.slice(0,p.index)),e=e.slice(p.index+p[0].length)}
else"function"==l.type&&parsePluginFunc(n,parseParams(s),r);
	("append"==n||"assign"==n||"capture"==n||"eval"==n||"include"==n)&&(e=e.replace(/^\n/,""))}
else buildInFunctions.expression.parse(t[1],r)}
else{
	var c=buildInFunctions.expression.parse(t[1],r);
	"build-in"==c.type&&"operator"==c.name&&"="==c.op&&(e=e.replace(/^\n/,""))}
}
return e&&parseText(e,r),r}
function parseText(e,r){
	if(parseText.parseEmbeddedVars)for(var t=/([$][\w@]+)|`([^`]*)`/,a=t.exec(e);
	a;
	a=t.exec(e))r.push({
	type:"text",data:e.slice(0,a.index)}
),r.push(parseExpression(a[1]?a[1]:a[2]).tree),e=e.slice(a.index+a[0].length);
	return r.push({
	type:"text",data:e}
),r}
function parseFunc(e,r,t){
	return r.__parsed.name=parseText(e,[])[0],t.push({
	type:"plugin",name:"__func",params:r}
),t}
function parseOperator(e,r,t,a){
	a.push({
	type:"build-in",name:"operator",op:e,optype:r,precedence:t,params:{
}
}
)}
function parseVar(e,r,t){
	for(var a=r.token,n=[{
	type:"text",data:t.replace(/^(\w+)@(key|index|iteration|first|last|show|total)/gi,"$1__$2")}
],s=/^(?:\.|\s*->\s*|\[\s*)/,i=e.match(s);
	i;
	i=e.match(s)){
	r.token+=i[0],e=e.slice(i[0].length);
	var o={
	value:"",tree:[]}
;
	if(i[0].match(/\[/)){
	o=parseExpression(e),o&&(r.token+=o.value,n.push(o.tree),e=e.slice(o.value.length));
	var p=e.match(/\s*\]/);
	p&&(r.token+=p[0],e=e.slice(p[0].length))}
else{
	var l=parseModifiers.stop;
	if(parseModifiers.stop=!0,lookUp(e,o)){
	r.token+=o.value;
	var c=o.tree[0];
	"plugin"==c.type&&"__func"==c.name&&(c.hasOwner=!0),n.push(c),e=e.slice(o.value.length)}
else o=!1;
	parseModifiers.stop=l}
o||n.push({
	type:"text",data:""}
)}
return r.tree.push({
	type:"var",parts:n}
),r.value+=r.token.substr(a.length),onParseVar(r.token),e}
function onParseVar(){
}
function parseModifiers(e,r){
	if(!parseModifiers.stop){
	var t=e.match(/^\|(\w+)/);
	if(t){
	r.value+=t[0];
	var a="default"==t[1]?"defaultValue":t[1];
	e=e.slice(t[0].length).replace(/^\s+/,""),parseModifiers.stop=!0;
	for(var n=[],s=e.match(/^\s*:\s*/
);
	s;
	s=e.match(/^\s*:\s*/
)){
	r.value+=e.slice(0,s[0].length),e=e.slice(s[0].length);
	var i={
	value:"",tree:[]}
;
	lookUp(e,i)?(r.value+=i.value,n.push(i.tree[0]),e=e.slice(i.value.length)):parseText("",n)}
parseModifiers.stop=!1,n.unshift(r.tree.pop()),r.tree.push(parseFunc(a,{
	__parsed:n}
,[])[0]),parseModifiers(e,r)}
}
}
function lookUp(e,r){
	if(!e)return!1;
	if(e.substr(0,jSmart.prototype.left_delimiter.length)==jSmart.prototype.left_delimiter){
	var t=findTag("",e);
	if(t)return r.token=t[0],r.value+=t[0],parse(t[0],r.tree),parseModifiers(e.slice(r.value.length),r),!0}
for(var a=0;
	a<tokens.length;
	++a)if(e.match(tokens[a].re))return r.token=RegExp.lastMatch,r.value+=RegExp.lastMatch,tokens[a].parse(r,e.slice(r.token.length)),!0;
	return!1}
function bundleOp(e,r,t){
	var a=r[e];
	if("operator"==a.name&&a.precedence==t&&!a.params.__parsed){
	if("binary"==a.optype)return a.params.__parsed=[r[e-1],r[e+1]],r.splice(e-1,3,a),!0;
	if("post-unary"==a.optype)return a.params.__parsed=[r[e-1]],r.splice(e-1,2,a),!0;
	a.params.__parsed=[r[e+1]],r.splice(e,2,a)}
return!1}
function composeExpression(e){
	var r=0;
	for(r=0;
	r<e.length;
	++r)e[r]instanceof Array&&(e[r]=composeExpression(e[r]));
	for(var t=1;
	14>t;
	++t)if(2==t||10==t)for(r=e.length;
	r>0;
	--r)r-=bundleOp(r-1,e,t);
	else for(r=0;
	r<e.length;
	++r)r-=bundleOp(r,e,t);
	return e[0]}
function parseExpression(e){
	for(var r={
	value:"",tree:[]}
;
	lookUp(e.slice(r.value.length),r);
	);
	return r.tree.length?(r.tree=composeExpression(r.tree),r):!1}
function parseParams(e,r,t){
	var a=e.replace(/\n/g," ").replace(/^\s+|\s+$/g,""),n=[];
	n.__parsed=[];
	var e="";
	if(!a)return n;
	for(r||(r=/^\s+/,t=/^(\w+)\s*=\s*/
);
	a;
	){
	var s=null;
	if(t){
	var i=a.match(t);
	i&&(s=trimQuotes(i[1]),e+=a.slice(0,i[0].length),a=a.slice(i[0].length))}
var o=parseExpression(a);
	if(!o)break;
	s?(n[s]=o.value,n.__parsed[s]=o.tree):(n.push(o.value),n.__parsed.push(o.tree)),e+=a.slice(0,o.value.length),a=a.slice(o.value.length);
	var p=a.match(r);
	if(!p)break;
	e+=a.slice(0,p[0].length),a=a.slice(p[0].length)}
return n.toString=function(){
	return e}
,n}
function parsePluginBlock(e,r,t,a){
	t.push({
	type:"plugin",name:e,params:r,subTree:parse(a,[])}
)}
function parsePluginFunc(e,r,t){
	t.push({
	type:"plugin",name:e,params:r}
)}
function getActualParamValues(e,r){
	var t=[];
	for(var a in e.__parsed)if(e.__parsed.hasOwnProperty(a)){
	var n=process([e.__parsed[a]],r);
	t[a]=n}
return t.__get=function(e,r,a){
	if(e in t&&"undefined"!=typeof t[e])return t[e];
	if("undefined"!=typeof a&&"undefined"!=typeof t[a])return t[a];
	if(null===r)throw new Error("The required attribute '"+e+"' is missing");
	return r}
,t}
function getVarValue(e,r,t){
	for(var a=r,n="",s=0;
	s<e.parts.length;
	++s){
	var i=e.parts[s];
	if("plugin"==i.type&&"__func"==i.name&&i.hasOwner)r.__owner=a,a=process([e.parts[s]],r),delete r.__owner;
	else if(n=process([i],r),n in r.smarty.section&&"text"==i.type&&"smarty"!=process([e.parts[0]],r)&&(n=r.smarty.section[n].index),!n&&"undefined"!=typeof t&&a instanceof Array&&(n=a.length),"undefined"!=typeof t&&s==e.parts.length-1&&(a[n]=t),"object"==typeof a&&null!==a&&n in a)a=a[n];
	else{
	if("undefined"==typeof t)return t;
	a[n]={
}
,a=a[n]}
}
return a}
function process(e,r){
	for(var t="",a=0;
	a<e.length;
	++a){
	var n="",s=e[a];
	if("text"==s.type)n=s.data;
	else if("var"==s.type)n=getVarValue(s,r);
	else if("build-in"==s.type)n=buildInFunctions[s.name].process(s,r);
	else if("plugin"==s.type){
	var i=plugins[s.name];
	if("block"==i.type){
	var o={
	value:!0}
;
	for(i.process(getActualParamValues(s.params,r),"",r,o);
	o.value;
	)o.value=!1,n+=i.process(getActualParamValues(s.params,r),process(s.subTree,r),r,o)}
else"function"==i.type&&(n=i.process(getActualParamValues(s.params,r),r))}
if("boolean"==typeof n&&(n=n?"1":""),1==e.length)return n;
	if(t+=n,r.smarty["continue"]||r.smarty["break"])return t}
return t}
function getTemplate(e,r,t){
	if(!t&&e in files)r=files[e];
	else{
	var a=jSmart.prototype.getTemplate(e);
	if("string"!=typeof a)throw new Error("No template for "+e);
	parse(applyFilters(jSmart.prototype.filters_global.pre,stripComments(a.replace(/\r\n/g,"\n"))),r),files[e]=r}
return r}
function stripComments(e){
	for(var r="",t=e.match(/{
	\*/
);
	t;
	t=e.match(/{
	\*/
)){
	r+=e.slice(0,t.index),e=e.slice(t.index+t[0].length);
	var a=e.match(/\*}
/);
	if(!a)throw new Error("Unclosed{
	*");
	e=e.slice(a.index+a[0].length)}
return r+e}
function applyFilters(e,r){
	for(var t=0;
	t<e.length;
	++t)r=e[t](r);
	return r}
var buildInFunctions={
	expression:{
	parse:function(e,r){
	var t=parseExpression(e);
	return r.push({
	type:"build-in",name:"expression",expression:t.tree,params:parseParams(e.slice(t.value.length).replace(/^\s+|\s+$/g,""))}
),t.tree}
,process:function(e,r){
	var t=getActualParamValues(e.params,r),a=process([e.expression],r);
	if(findInArray(t,"nofilter")<0){
	for(var n=0;
	n<default_modifiers.length;
	++n){
	var s=default_modifiers[n];
	s.params.__parsed[0]={
	type:"text",data:a}
,a=process([s],r)}
escape_html&&(a=modifiers.escape(a)),a=applyFilters(varFilters,a),tpl_modifiers.length&&(__t=function(){
	return a}
,a=process(tpl_modifiers,r))}
return a}
}
,operator:{
	process:function(e,r){
	var t=getActualParamValues(e.params,r),a=t[0];
	if("binary"!=e.optype){
	if("!"==e.op)return!a;
	var n="var"==e.params.__parsed[0].type;
	n&&(a=getVarValue(e.params.__parsed[0],r));
	var s=a;
	if("pre-unary"==e.optype){
	switch(e.op){
	case"-":s=-a;
	break;
	case"++":s=++a;
	break;
	case"--":s=--a}
n&&getVarValue(e.params.__parsed[0],r,a)}
else{
	switch(e.op){
	case"++":a++;
	break;
	case"--":a--}
getVarValue(e.params.__parsed[0],r,a)}
return s}
var i=t[1];
	if("="==e.op)return getVarValue(e.params.__parsed[0],r,i),"";
	if(e.op.match(/(\+=|-=|\*=|\/=|%=)/)){
	switch(a=getVarValue(e.params.__parsed[0],r),e.op){
	case"+=":a+=i;
	break;
	case"-=":a-=i;
	break;
	case"*=":a*=i;
	break;
	case"/=":a/=i;
	break;
	case"%=":a%=i}
return getVarValue(e.params.__parsed[0],r,a)}
if(e.op.match(/div/))return"div"!=e.op^a%i==0;
	if(e.op.match(/even/))return"even"!=e.op^a/i%2==0;
	if(e.op.match(/xor/))return(a||i)&&!(a&&i);
	switch(e.op){
	case"==":return a==i;
	case"!=":return a!=i;
	case"+":return parseInt(a,10)+parseInt(i,10);
	case"-":return parseInt(a,10)-parseInt(i,10);
	case"*":return parseInt(a,10)*parseInt(i,10);
	case"/":return parseInt(a,10)/parseInt(i,10);
	case"%":return parseInt(a,10)%parseInt(i,10);
	case"&&":return a&&i;
	case"||":return a||i;
	case"<":return i>a;
	case"<=":return i>=a;
	case">":return a>i;
	case">=":return a>=i;
	case"===":return a===i;
	case"!==":return a!==i}
}
}
,section:{
	type:"block",parse:function(e,r,t){
	var a=[],n=[];
	r.push({
	type:"build-in",name:"section",params:e,subTree:a,subTreeElse:n}
);
	var s=findElseTag("section [^}
]+","/section","sectionelse",t);
	s?(parse(t.slice(0,s.index),a),parse(t.slice(s.index+s[0].length).replace(/^[\r\n]/,""),n)):parse(t,a)}
,process:function(e,r){
	var t=getActualParamValues(e.params,r),a={
}
;
	r.smarty.section[t.__get("name",null,0)]=a;
	var n=t.__get("show",!0);
	if(a.show=n,!n)return process(e.subTreeElse,r);
	var s=parseInt(t.__get("start",0)),i=t.loop instanceof Object?countProperties(t.loop):isNaN(t.loop)?0:parseInt(t.loop),o=parseInt(t.__get("step",1)),p=parseInt(t.__get("max"));
	isNaN(p)&&(p=Number.MAX_VALUE),0>s?(s+=i,0>s&&(s=0)):s>=i&&(s=i?i-1:0);
	for(var l=0,c=0,u=s;
	u>=0&&i>u&&p>l;
	u+=o,++l)c=u;
	a.total=l,a.loop=l,l=0;
	var f="";
	for(u=s;
	u>=0&&i>u&&p>l&&!r.smarty["break"];
	u+=o,++l)a.first=u==s,a.last=0>u+o||u+o>=i,a.index=u,a.index_prev=u-o,a.index_next=u+o,a.iteration=a.rownum=l+1,f+=process(e.subTree,r),r.smarty["continue"]=!1;
	return r.smarty["break"]=!1,l?f:process(e.subTreeElse,r)}
}
,setfilter:{
	type:"block",parseParams:function(e){
	return[parseExpression("__t()|"+e).tree]}
,parse:function(e,r,t){
	r.push({
	type:"build-in",name:"setfilter",params:e,subTree:parse(t,[])}
)}
,process:function(e,r){
	tpl_modifiers=e.params;
	var t=process(e.subTree,r);
	return tpl_modifiers=[],t}
}
,"for":{
	type:"block",parseParams:function(e){
	var r=e.match(/^\s*\$(\w+)\s*=\s*([^\s]+)\s*to\s*([^\s]+)\s*(?:step\s*([^\s]+))?\s*(.*)$/);
	if(!r)throw new Error("Invalid{
	for}
parameters:"+e);
	return parseParams("varName='"+r[1]+"' from="+r[2]+" to="+r[3]+" step="+(r[4]?r[4]:"1")+" "+r[5])}
,parse:function(e,r,t){
	var a=[],n=[];
	r.push({
	type:"build-in",name:"for",params:e,subTree:a,subTreeElse:n}
);
	var s=findElseTag("for\\s[^}
]+","/for","forelse",t);
	s?(parse(t.slice(0,s.index),a),parse(t.slice(s.index+s[0].length),n)):parse(t,a)}
,process:function(e,r){
	var t=getActualParamValues(e.params,r),a=parseInt(t.__get("from")),n=parseInt(t.__get("to")),s=parseInt(t.__get("step"));
	isNaN(s)&&(s=1);
	var i=parseInt(t.__get("max"));
	isNaN(i)&&(i=Number.MAX_VALUE);
	for(var o=0,p="",l=Math.min(Math.ceil(((s>0?n-a:a-n)+1)/Math.abs(s)),i),c=parseInt(t.from);
	l>o&&!r.smarty["break"];
	c+=s,++o)r[t.varName]=c,p+=process(e.subTree,r),r.smarty["continue"]=!1;
	return r.smarty["break"]=!1,o||(p=process(e.subTreeElse,r)),p}
}
,"if":{
	type:"block",parse:function(e,r,t){
	var a=[],n=[];
	r.push({
	type:"build-in",name:"if",params:e,subTreeIf:a,subTreeElse:n}
);
	var s=findElseTag("if\\s+[^}
]+","/if","else[^}
]*",t);
	if(s){
	parse(t.slice(0,s.index),a),t=t.slice(s.index+s[0].length);
	var i=s[1].match(/^else\s*if(.*)/);
	i?buildInFunctions["if"].parse(parseParams(i[1]),n,t.replace(/^\n/,"")):parse(t.replace(/^\n/,""),n)}
else parse(t,a)}
,process:function(e,r){
	return getActualParamValues(e.params,r)[0]?process(e.subTreeIf,r):process(e.subTreeElse,r)}
}
,foreach:{
	type:"block",parseParams:function(e){
	var r=e.match(/^\s*([$].+)\s*as\s*[$](\w+)\s*(=>\s*[$](\w+))?\s*$/i);
	return r&&(e="from="+r[1]+" item="+(r[4]||r[2]),r[4]&&(e+=" key="+r[2])),parseParams(e)}
,parse:function(e,r,t){
	var a=[],n=[];
	r.push({
	type:"build-in",name:"foreach",params:e,subTree:a,subTreeElse:n}
);
	var s=findElseTag("foreach\\s[^}
]+","/foreach","foreachelse",t);
	s?(parse(t.slice(0,s.index),a),parse(t.slice(s.index+s[0].length).replace(/^[\r\n]/,""),n)):parse(t,a)}
,process:function(e,r){
	var t=getActualParamValues(e.params,r),a=t.from;
	if(void 0==a)return"";
	a instanceof Object||(a=[a]);
	var n=countProperties(a);
	r[t.item+"__total"]=n,"name"in t&&(r.smarty.foreach[t.name]={
}
,r.smarty.foreach[t.name].total=n);
	var s="",i=0;
	for(var o in a)if(a.hasOwnProperty(o)){
	if(r.smarty["break"])break;
	r[t.item+"__key"]=isNaN(o)?o:parseInt(o),"key"in t&&(r[t.key]=r[t.item+"__key"]),r[t.item]=a[o],r[t.item+"__index"]=parseInt(i),r[t.item+"__iteration"]=parseInt(i+1),r[t.item+"__first"]=0===i,r[t.item+"__last"]=i==n-1,"name"in t&&(r.smarty.foreach[t.name].index=parseInt(i),r.smarty.foreach[t.name].iteration=parseInt(i+1),r.smarty.foreach[t.name].first=0===i?1:"",r.smarty.foreach[t.name].last=i==n-1?1:""),++i,s+=process(e.subTree,r),r.smarty["continue"]=!1}
return r.smarty["break"]=!1,r[t.item+"__show"]=i>0,t.name&&(r.smarty.foreach[t.name].show=i>0?1:""),i>0?s:process(e.subTreeElse,r)}
}
,"function":{
	type:"block",parse:function(e,r,t){
	var a=[];
	plugins[trimQuotes(e.name?e.name:e[0])]={
	type:"function",subTree:a,defautParams:e,process:function(e,r){
	var t=getActualParamValues(this.defautParams,r);
	return delete t.name,process(this.subTree,obMerge({
}
,r,t,e))}
}
,parse(t,a)}
}
,php:{
	type:"block",parse:function(){
}
}
,"extends":{
	type:"function",parse:function(e,r){
	r.splice(0,r.length),getTemplate(trimQuotes(e.file?e.file:e[0]),r)}
}
,block:{
	type:"block",parse:function(e,r,t){
	r.push({
	type:"build-in",name:"block",params:e}
),e.append=findInArray(e,"append")>=0,e.prepend=findInArray(e,"prepend")>=0,e.hide=findInArray(e,"hide")>=0,e.hasChild=e.hasParent=!1,onParseVar=function(r){
	r.match(/^\s*[$]smarty.block.child\s*$/)&&(e.hasChild=!0),r.match(/^\s*[$]smarty.block.parent\s*$/)&&(e.hasParent=!0)}
;
	var r=parse(t,[]);
	onParseVar=function(){
}
;
	var a=trimQuotes(e.name?e.name:e[0]);
	a in blocks||(blocks[a]=[]),blocks[a].push({
	tree:r,params:e}
)}
,process:function(e,r){
	r.smarty.block.parent=r.smarty.block.child="";
	var t=trimQuotes(e.params.name?e.params.name:e.params[0]);
	return this.processBlocks(blocks[t],blocks[t].length-1,r),r.smarty.block.child}
,processBlocks:function(e,r,t){
	if(!r&&e[r].params.hide)return void(t.smarty.block.child="");
	for(var a=!0,n=!1;
	r>=0;
	--r){
	if(e[r].params.hasParent){
	var s=t.smarty.block.child;
	t.smarty.block.child="",this.processBlocks(e,r-1,t),t.smarty.block.parent=t.smarty.block.child,t.smarty.block.child=s}
var s=t.smarty.block.child,i=process(e[r].tree,t);
	t.smarty.block.child=s,e[r].params.hasChild?t.smarty.block.child=i:a?t.smarty.block.child=i+t.smarty.block.child:n&&(t.smarty.block.child+=i),a=e[r].params.append,n=e[r].params.prepend}
}
}
,strip:{
	type:"block",parse:function(e,r,t){
	parse(t.replace(/[ \t]*[\r\n]+[ \t]*/
g,""),r)}
}
,literal:{
	type:"block",parse:function(e,r,t){
	parseText(t,r)}
}
,ldelim:{
	type:"function",parse:function(e,r){
	parseText(jSmart.prototype.left_delimiter,r)}
}
,rdelim:{
	type:"function",parse:function(e,r){
	parseText(jSmart.prototype.right_delimiter,r)}
}
,"while":{
	type:"block",parse:function(e,r,t){
	r.push({
	type:"build-in",name:"while",params:e,subTree:parse(t,[])}
)}
,process:function(e,r){
	for(var t="";
	getActualParamValues(e.params,r)[0]&&!r.smarty["break"];
	)t+=process(e.subTree,r),r.smarty["continue"]=!1;
	return r.smarty["break"]=!1,t}
}
}
,plugins={
}
,modifiers={
}
,files={
}
,blocks=null,scripts=null,tpl_modifiers=[],tokens=[{
	re:/^\$([\w@]+)/,parse:function(e,r){
	parseModifiers(parseVar(r,e,RegExp.$1),e)}
}
,{
	re:/^(true|false)/i,parse:function(e){
	parseText(e.token.match(/true/i)?"1":"",e.tree)}
}
,{
	re:/^'([^'\\]*(?:\\.[^'\\]*)*)'/,parse:function(e,r){
	parseText(evalString(RegExp.$1),e.tree),parseModifiers(r,e)}
}
,{
	re:/^"([^"\\]*(?:\\.[^"\\]*)*)"/,parse:function(e,r){
	var t=evalString(RegExp.$1),a=t.match(tokens[0].re);
	if(a){
	var n={
	token:a[0],tree:[]}
;
	if(parseVar(t,n,a[1]),n.token.length==t.length)return void e.tree.push(n.tree[0])}
parseText.parseEmbeddedVars=!0,e.tree.push({
	type:"plugin",name:"__quoted",params:{
	__parsed:parse(t,[])}
}
),parseText.parseEmbeddedVars=!1,parseModifiers(r,e)}
}
,{
	re:/^(\w+)\s*[(]([)]?)/,parse:function(e,r){
	var t=RegExp.$1,a=RegExp.$2,n=parseParams(a?"":r,/^\s*,\s*/
);
	parseFunc(t,n,e.tree),e.value+=n.toString(),parseModifiers(r.slice(n.toString().length),e)}
}
,{
	re:/^\s*\(\s*/
,parse:function(e){
	var r=[];
	e.tree.push(r),r.parent=e.tree,e.tree=r}
}
,{
	re:/^\s*\)\s*/
,parse:function(e){
	e.tree.parent&&(e.tree=e.tree.parent)}
}
,{
	re:/^\s*(\+\+|--)\s*/
,parse:function(e){
	e.tree.length&&"var"==e.tree[e.tree.length-1].type?parseOperator(RegExp.$1,"post-unary",1,e.tree):parseOperator(RegExp.$1,"pre-unary",1,e.tree)}
}
,{
	re:/^\s*(===|!==|==|!=)\s*/
,parse:function(e){
	parseOperator(RegExp.$1,"binary",6,e.tree)}
}
,{
	re:/^\s+(eq|ne|neq)\s+/i,parse:function(e){
	var r=RegExp.$1.replace(/ne(q)?/,"!=").replace(/eq/,"==");
	parseOperator(r,"binary",6,e.tree)}
}
,{
	re:/^\s*!\s*/
,parse:function(e){
	parseOperator("!","pre-unary",2,e.tree)}
}
,{
	re:/^\s+not\s+/i,parse:function(e){
	parseOperator("!","pre-unary",2,e.tree)}
}
,{
	re:/^\s*(=|\+=|-=|\*=|\/=|%=)\s*/
,parse:function(e){
	parseOperator(RegExp.$1,"binary",10,e.tree)}
}
,{
	re:/^\s*(\*|\/|%)\s*/
,parse:function(e){
	parseOperator(RegExp.$1,"binary",3,e.tree)}
}
,{
	re:/^\s+mod\s+/i,parse:function(e){
	parseOperator("%","binary",3,e.tree)}
}
,{
	re:/^\s*(\+|-)\s*/
,parse:function(e){
	e.tree.length&&"operator"!=e.tree[e.tree.length-1].name?parseOperator(RegExp.$1,"binary",4,e.tree):parseOperator(RegExp.$1,"pre-unary",4,e.tree)}
}
,{
	re:/^\s*(<=|>=|<>|<|>)\s*/
,parse:function(e){
	parseOperator(RegExp.$1.replace(/<>/,"!="),"binary",5,e.tree)}
}
,{
	re:/^\s+(lt|lte|le|gt|gte|ge)\s+/i,parse:function(e){
	var r=RegExp.$1.replace(/lt/,"<").replace(/l(t)?e/,"<=").replace(/gt/,">").replace(/g(t)?e/,">=");
	parseOperator(r,"binary",5,e.tree)}
}
,{
	re:/^\s+(is\s+(not\s+)?div\s+by)\s+/i,parse:function(e){
	parseOperator(RegExp.$2?"div_not":"div","binary",7,e.tree)}
}
,{
	re:/^\s+is\s+(not\s+)?(even|odd)(\s+by\s+)?\s*/
i,parse:function(e){
	var r=RegExp.$1?"odd"==RegExp.$2?"even":"even_not":"odd"==RegExp.$2?"even_not":"even";
	parseOperator(r,"binary",7,e.tree),RegExp.$3||parseText("1",e.tree)}
}
,{
	re:/^\s*(&&)\s*/
,parse:function(e){
	parseOperator(RegExp.$1,"binary",8,e.tree)}
}
,{
	re:/^\s*(\|\|)\s*/
,parse:function(e){
	parseOperator(RegExp.$1,"binary",9,e.tree)}
}
,{
	re:/^\s+and\s+/i,parse:function(e){
	parseOperator("&&","binary",11,e.tree)}
}
,{
	re:/^\s+xor\s+/i,parse:function(e){
	parseOperator("xor","binary",12,e.tree)}
}
,{
	re:/^\s+or\s+/i,parse:function(e){
	parseOperator("||","binary",13,e.tree)}
}
,{
	re:/^#(\w+)#/,parse:function(e,r){
	var t={
	token:"$smarty",tree:[]}
;
	parseVar(".config."+RegExp.$1,t,"smarty"),e.tree.push(t.tree[0]),parseModifiers(r,e)}
}
,{
	re:/^\s*\[\s*/
,parse:function(e,r){
	var t=parseParams(r,/^\s*,\s*/
,/^('[^'\\]*(?:\\.[^'\\]*)*'|"[^"\\]*(?:\\.[^"\\]*)*"|\w+)\s*=>\s*/
);
	parsePluginFunc("__array",t,e.tree),e.value+=t.toString();
	var a=r.slice(t.toString().length).match(/\s*\]/);
	a&&(e.value+=a[0])}
}
,{
	re:/^[\d.]+/,parse:function(e,r){
	e.token=e.token.indexOf(".")>-1?parseFloat(e.token):parseInt(e.token,10),parseText(e.token,e.tree),parseModifiers(r,e)}
}
,{
	re:/^\w+/,parse:function(e,r){
	parseText(e.token,e.tree),parseModifiers(r,e)}
}
],jSmart=function(e){
	this.tree=[],this.tree.blocks={
}
,this.scripts={
}
,this.default_modifiers=[],this.filters={
	variable:[],post:[]}
,this.smarty={
	smarty:{
	block:{
}
,"break":!1,capture:{
}
,"continue":!1,counter:{
}
,cycle:{
}
,foreach:{
}
,section:{
}
,now:Math.floor((new Date).getTime()/1e3),"const":{
}
,config:{
}
,current_dir:"/",template:"",ldelim:jSmart.prototype.left_delimiter,rdelim:jSmart.prototype.right_delimiter,version:"2.13.1"}
}
,blocks=this.tree.blocks,parse(applyFilters(jSmart.prototype.filters_global.pre,stripComments(new String(e?e:"").replace(/\|f_escape_\w+/g,"").replace(/\r\n/g,"\n"))),this.tree)}
;
	jSmart.prototype.fetch=function(e){
	blocks=this.tree.blocks,scripts=this.scripts,escape_html=this.escape_html,default_modifiers=jSmart.prototype.default_modifiers_global.concat(this.default_modifiers),this.data=obMerge("object"==typeof e?e:{
}
,this.smarty),varFilters=jSmart.prototype.filters_global.variable.concat(this.filters.variable);
	var r=process(this.tree,this.data);
	return jSmart.prototype.debugging&&plugins.debug.process([],this.data),applyFilters(jSmart.prototype.filters_global.post.concat(this.filters.post),r)}
,jSmart.prototype.escape_html=!1,jSmart.prototype.registerPlugin=function(e,r,t){
	"modifier"==e?modifiers[r]=t:plugins[r]={
	type:e,process:t}
}
,jSmart.prototype.registerFilter=function(e,r){
	(this.tree?this.filters:jSmart.prototype.filters_global)["output"==e?"post":e].push(r)}
,jSmart.prototype.filters_global={
	pre:[],variable:[],post:[]}
,jSmart.prototype.configLoad=function(e,r,t){
	t=t?t:this.data;
	for(var a=e.replace(/\r\n/g,"\n").replace(/^\s+|\s+$/g,""),n=/^\s*(?:\[([^\]]+)\]|(?:(\w+)[ \t]*=[ \t]*("""|'[^'\\\n]*(?:\\.[^'\\\n]*)*'|"[^"\\\n]*(?:\\.[^"\\\n]*)*"|[^\n]*)))/m,s="",i=a.match(n);
	i;
	i=a.match(n)){
	if(a=a.slice(i.index+i[0].length),i[1])s=i[1];
	else if((!s||s==r)&&"."!=s.substr(0,1))if('"""'==i[3]){
	var o=a.match(/"""/);
	o&&(t.smarty.config[i[2]]=a.slice(0,o.index),a=a.slice(o.index+o[0].length))}
else t.smarty.config[i[2]]=trimQuotes(i[3]);
	var p=a.match(/\n+/);
	if(!p)break;
	a=a.slice(p.index+p[0].length)}
}
,jSmart.prototype.clearConfig=function(e){
	e?delete this.data.smarty.config[e]:this.data.smarty.config={
}
}
,jSmart.prototype.addDefaultModifier=function(e){
	e instanceof Array||(e=[e]);
	for(var r=0;
	r<e.length;
	++r){
	var t={
	value:"",tree:[0]}
;
	parseModifiers("|"+e[r],t),(this.tree?this.default_modifiers:this.default_modifiers_global).push(t.tree[0])}
}
,jSmart.prototype.default_modifiers_global=[],jSmart.prototype.getTemplate=function(e){
	return __inline(e)}
,jSmart.prototype.getFile=function(e){
	return __inline(e)}
,jSmart.prototype.getJavascript=function(e){
	return __inline(e)}
,jSmart.prototype.getConfig=function(e){
	return __inline(e)}
,jSmart.prototype.auto_literal=!0,jSmart.prototype.left_delimiter="{
	%",jSmart.prototype.right_delimiter="%}
",jSmart.prototype.debugging=!1,jSmart.prototype.PHPJS=function(fnm,modifier){
	if("function"==eval("typeof "+fnm))return"object"==typeof window?window:global;
	if("function"==typeof PHP_JS)return new PHP_JS;
	throw new Error("Modifier '"+modifier+"' uses JavaScript port of PHP function '"+fnm+"'. You can find one at http://phpjs.org")}
,jSmart.prototype.makeTimeStamp=function(e){
	if(!e)return Math.floor((new Date).getTime()/1e3);
	if(isNaN(e)){
	var r=jSmart.prototype.PHPJS("strtotime","date_format").strtotime(e);
	return-1==r||r===!1?Math.floor((new Date).getTime()/1e3):r}
return e=new String(e),14==e.length?Math.floor(new Date(e.substr(0,4),e.substr(4,2)-1,e.substr(6,2),e.substr(8,2),e.substr(10,2)).getTime()/1e3):parseInt(e)}
,jSmart.prototype.registerPlugin("function","__array",function(e){
	var r=[];
	for(var t in e)e.hasOwnProperty(t)&&e[t]&&"function"!=typeof e[t]&&(r[t]=e[t]);
	return r}
),jSmart.prototype.registerPlugin("function","__func",function(e,r){
	for(var t=[],a={
}
,n=0;
	n<e.length;
	++n)t.push(e.name+"__p"+n),a[e.name+"__p"+n]=e[n];
	var s="__owner"in r&&e.name in r.__owner?"__owner."+e.name:e.name;
	return execute(s+"("+t.join(",")+")",obMerge({
}
,r,a))}
),jSmart.prototype.registerPlugin("function","__quoted",function(e){
	return e.join("")}
),jSmart.prototype.registerPlugin("function","append",function(e,r){
	var t=e.__get("var",null,0);
	t in r&&r[t]instanceof Array||(r[t]=[]);
	var a=e.__get("index",!1),n=e.__get("value",null,1);
	return a===!1?r[t].push(n):r[t][a]=n,""}
),jSmart.prototype.registerPlugin("function","assign",function(e,r){
	return assignVar(e.__get("var",null,0),e.__get("value",null,1),r),""}
),jSmart.prototype.registerPlugin("function","break",function(e,r){
	return r.smarty["break"]=!0,""}
),jSmart.prototype.registerPlugin("function","call",function(e,r){
	var t=e.__get("name",null,0);
	delete e.name;
	var a=e.__get("assign",!1);
	delete e.assign;
	var n=plugins[t].process(e,r);
	return a?(assignVar(a,n,r),""):n}
),jSmart.prototype.registerPlugin("block","capture",function(e,r,t){
	if(r){
	r=r.replace(/^\n/,""),t.smarty.capture[e.__get("name","default",0)]=r,"assign"in e&&assignVar(e.assign,r,t);
	var a=e.__get("append",!1);
	a&&(a in t?t[a]instanceof Array&&t[a].push(r):t[a]=[r])}
return""}
),jSmart.prototype.registerPlugin("function","continue",function(e,r){
	return r.smarty["continue"]=!0,""}
),jSmart.prototype.registerPlugin("function","counter",function(e,r){
	var t=e.__get("name","default");
	if(t in r.smarty.counter){
	var a=r.smarty.counter[t];
	"start"in e?a.value=parseInt(e.start):(a.value=parseInt(a.value),a.skip=parseInt(a.skip),"down"==a.direction?a.value-=a.skip:a.value+=a.skip),a.skip=e.__get("skip",a.skip),a.direction=e.__get("direction",a.direction),a.assign=e.__get("assign",a.assign)}
else r.smarty.counter[t]={
	value:parseInt(e.__get("start",1)),skip:parseInt(e.__get("skip",1)),direction:e.__get("direction","up"),assign:e.__get("assign",!1)}
;
	return r.smarty.counter[t].assign?(r[r.smarty.counter[t].assign]=r.smarty.counter[t].value,""):e.__get("print",!0)?r.smarty.counter[t].value:""}
),jSmart.prototype.registerPlugin("function","cycle",function(e,r){
	var t=e.__get("name","default"),a=e.__get("reset",!1);
	t in r.smarty.cycle||(r.smarty.cycle[t]={
	arr:[""],delimiter:e.__get("delimiter",","),index:0}
,a=!0),e.__get("delimiter",!1)&&(r.smarty.cycle[t].delimiter=e.delimiter);
	var n=e.__get("values",!1);
	if(n){
	var s=[];
	if(n instanceof Object)for(nm in n)s.push(n[nm]);
	else s=n.split(r.smarty.cycle[t].delimiter);
	(s.length!=r.smarty.cycle[t].arr.length||s[0]!=r.smarty.cycle[t].arr[0])&&(r.smarty.cycle[t].arr=s,r.smarty.cycle[t].index=0,a=!0)}
return e.__get("advance","true")&&(r.smarty.cycle[t].index+=1),(r.smarty.cycle[t].index>=r.smarty.cycle[t].arr.length||a)&&(r.smarty.cycle[t].index=0),e.__get("assign",!1)?(assignVar(e.assign,r.smarty.cycle[t].arr[r.smarty.cycle[t].index],r),""):e.__get("print",!0)?r.smarty.cycle[t].arr[r.smarty.cycle[t].index]:""}
),jSmart.prototype.print_r=function(e,r){
	if(e instanceof Object){
	var t=(e instanceof Array?"Array["+e.length+"]":"Object")+"<br>";
	for(var a in e)e.hasOwnProperty(a)&&(t+=r+"&nbsp;
	&nbsp;
	<strong>"+a+"</strong>:"+jSmart.prototype.print_r(e[a],r+"&nbsp;
	&nbsp;
	&nbsp;
	")+"<br>");
	return t}
return e}
,jSmart.prototype.registerPlugin("function","debug",function(e,r){
	"undefined"!=typeof dbgWnd&&dbgWnd.close(),dbgWnd=window.open("","","width=680,height=600,resizable,scrollbars=yes");
	var t="",a=0;
	for(var n in r)t+="<tr class="+(++a%2?"odd":"even")+"><td><strong>"+n+"</strong></td><td>"+jSmart.prototype.print_r(r[n],"")+"</td></tr>";
	return dbgWnd.document.write(" <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'> <head> <title>jSmart Debug Console</title> <style type='text/css'> table{
	width:100%;
}
td{
	vertical-align:top;
	width:50%;
}
.even td{
	background-color:#fafafa;
}
</style> </head> <body> <h1>jSmart Debug Console</h1> <h2>assigned template variables</h2> <table>"+t+"</table> </body> </html> "),""}
),jSmart.prototype.registerPlugin("function","eval",function(e,r){
	var t=[];
	parse(e.__get("var","",0),t);
	var a=process(t,r);
	return"assign"in e?(assignVar(e.assign,a,r),""):a}
),jSmart.prototype.registerPlugin("function","fetch",function(e,r){
	var t=jSmart.prototype.getFile(e.__get("file",null,0));
	return"assign"in e?(assignVar(e.assign,t,r),""):t}
),jSmart.prototype.registerPlugin("function","html_checkboxes",function(e,r){
	var t,a,n,s=e.__get("type","checkbox"),i=e.__get("name",s),o=e.__get("name",s),p=e.__get("values",e.options),l=e.__get("options",[]),c="options"in e,u=e.__get("selected",!1),f=e.__get("separator",""),g=Boolean(e.__get("labels",!0)),m=Boolean(e.__get("label_ids",!1)),d=[],h=0,y="";
	if("checkbox"==s&&(i+="[]"),!c)for(t in e.output)l.push(e.output[t]);
	for(t in p)p.hasOwnProperty(t)&&(a=c?t:p[t],n=o+"_"+a,y=g?m?'<label for="'+n+'">':"<label>":"",y+='<input type="'+s+'" name="'+i+'" value="'+a+'" ',m&&(y+='id="'+n+'" '),u==(c?t:p[t])&&(y+='checked="checked" '),y+="/>"+l[c?t:h++],y+=g?"</label>":"",y+=f,d.push(y));
	return"assign"in e?(assignVar(e.assign,d,r),""):d.join("\n")}
),jSmart.prototype.registerPlugin("function","html_image",function(e){
	var r,t=e.__get("file",null),a=e.__get("width",!1),n=e.__get("height",!1),s=e.__get("alt",""),i=e.__get("href",e.__get("link",!1)),o=e.__get("path_prefix",""),p={
	file:1,width:1,height:1,alt:1,href:1,basedir:1,path_prefix:1,link:1}
,l='<img src="'+o+t+'" alt="'+s+'"'+(a?' width="'+a+'"':"")+(n?' height="'+n+'"':"");
	for(r in e)e.hasOwnProperty(r)&&"string"==typeof e[r]&&(r in p||(l+=" "+r+'="'+e[r]+'"'));
	return l+=" />",i?'<a href="'+i+'">'+l+"</a>":l}
),jSmart.prototype.registerPlugin("function","html_options",function(e){
	var r,t=e.__get("values",e.options),a=e.__get("options",[]),n="options"in e;
	if(!n)for(r in e.output)a.push(e.output[r]);
	var s=e.__get("selected",!1),i=[],o="",p=0;
	for(r in t)t.hasOwnProperty(r)&&(o='<option value="'+(n?r:t[r])+'"',s==(n?r:t[r])&&(o+=' selected="selected"'),o+=">"+a[n?r:p++]+"</option>",i.push(o));
	var l=e.__get("name",!1);
	return(l?'<select name="'+l+'">\n'+i.join("\n")+"\n</select>":i.join("\n"))+"\n"}
),jSmart.prototype.registerPlugin("function","html_radios",function(e,r){
	return e.type="radio",plugins.html_checkboxes.process(e,r)}
),jSmart.prototype.registerPlugin("function","html_select_date",function(e){
	var r=e.__get("prefix","Date_"),t=["January","February","March","April","May","June","July","August","September","October","November","December"],a="";
	a+='<select name="'+r+'Month">\n';
	var n=0;
	for(n=0;
	n<t.length;
	++n)a+='<option value="'+n+'">'+t[n]+"</option>\n";
	for(a+="</select>\n",a+='<select name="'+r+'Day">\n',n=0;
	31>n;
	++n)a+='<option value="'+n+'">'+n+"</option>\n";
	return a+="</select>\n"}
),jSmart.prototype.registerPlugin("function","html_table",function(e){
	var r,t=[];
	if(e.loop instanceof Array)t=e.loop;
	else for(r in e.loop)e.loop.hasOwnProperty(r)&&t.push(e.loop[r]);
	var a=e.__get("rows",!1),n=e.__get("cols",!1);
	n||(n=a?Math.ceil(t.length/a):3);
	var s=[];
	if(isNaN(n)){
	if("object"==typeof n)for(r in n)n.hasOwnProperty(r)&&s.push(n[r]);
	else s=n.split(/\s*,\s*/
);
	n=s.length}
a=a?a:Math.ceil(t.length/n);
	var i=e.__get("inner","cols"),o=e.__get("caption",""),p=e.__get("table_attr",'border="1"'),l=e.__get("th_attr",!1);
	l&&"object"!=typeof l&&(l=[l]);
	var c=e.__get("tr_attr",!1);
	c&&"object"!=typeof c&&(c=[c]);
	var u=e.__get("td_attr",!1);
	u&&"object"!=typeof u&&(u=[u]);
	for(var f=e.__get("trailpad","&nbsp;
	"),g=e.__get("hdir","right"),m=e.__get("vdir","down"),d="",h=0;
	a>h;
	++h){
	d+="<tr"+(c?" "+c[h%c.length]:"")+">\n";
	for(var y=0;
	n>y;
	++y){
	var _="cols"==i?("down"==m?h:a-1-h)*n+("right"==g?y:n-1-y):("right"==g?y:n-1-y)*a+("down"==m?h:a-1-h);
	d+="<td"+(u?" "+u[y%u.length]:"")+">"+(_<t.length?t[_]:f)+"</td>\n"}
d+="</tr>\n"}
var v="";
	if(s.length){
	v="\n<thead><tr>";
	for(var b=0;
	b<s.length;
	++b)v+="\n<th"+(l?" "+l[b%l.length]:"")+">"+s["right"==g?b:s.length-1-b]+"</th>";
	v+="\n</tr></thead>"}
return"<table "+p+">"+(o?"\n<caption>"+o+"</caption>":"")+v+"\n<tbody>\n"+d+"</tbody>\n</table>\n"}
),jSmart.prototype.registerPlugin("function","include",function(e,r){
	var t=e.__get("file",null,0),a=obMerge({
}
,r,e);
	a.smarty.template=t;
	var n=process(getTemplate(t,[],findInArray(e,"nocache")>=0),a);
	return"assign"in e?(assignVar(e.assign,n,r),""):n}
),jSmart.prototype.registerPlugin("function","include_javascript",function(e,r){
	var t=e.__get("file",null,0);
	if(e.__get("once",!0)&&t in scripts)return"";
	scripts[t]=!0;
	var a=execute(jSmart.prototype.getJavascript(t),{
	$this:r}
);
	return"assign"in e?(assignVar(e.assign,a,r),""):a}
),jSmart.prototype.registerPlugin("function","include_php",function(e,r){
	return plugins.include_javascript.process(e,r)}
),jSmart.prototype.registerPlugin("function","insert",function(params,data){
	var fparams={
}
;
	for(var nm in params)params.hasOwnProperty(nm)&&isNaN(nm)&&params[nm]&&"string"==typeof params[nm]&&"name"!=nm&&"assign"!=nm&&"script"!=nm&&(fparams[nm]=params[nm]);
	var prefix="insert_";
	"script"in params&&(eval(jSmart.prototype.getJavascript(params.script)),prefix="smarty_insert_");
	var func=eval(prefix+params.__get("name",null,0)),s=func(fparams,data);
	return"assign"in params?(assignVar(params.assign,s,data),""):s}
),jSmart.prototype.registerPlugin("block","javascript",function(e,r,t){
	return t.$this=t,execute(r,t),delete t.$this,""}
),jSmart.prototype.registerPlugin("function","config_load",function(e,r){
	return jSmart.prototype.configLoad(jSmart.prototype.getConfig(e.__get("file",null,0)),e.__get("section","",1),r),""}
),jSmart.prototype.registerPlugin("function","mailto",function(e){
	var r=e.__get("address",null),t=e.__get("encode","none"),a=e.__get("text",r),n=jSmart.prototype.PHPJS("rawurlencode","mailto").rawurlencode(e.__get("cc","")).replace("%40","@"),i=jSmart.prototype.PHPJS("rawurlencode","mailto").rawurlencode(e.__get("bcc","")).replace("%40","@"),o=jSmart.prototype.PHPJS("rawurlencode","mailto").rawurlencode(e.__get("followupto","")).replace("%40","@"),p=jSmart.prototype.PHPJS("rawurlencode","mailto").rawurlencode(e.__get("subject","")),l=jSmart.prototype.PHPJS("rawurlencode","mailto").rawurlencode(e.__get("newsgroups","")),c=e.__get("extra","");
	if(r+=n?"?cc="+n:"",r+=i?(n?"&":"?")+"bcc="+i:"",r+=p?(n||i?"&":"?")+"subject="+p:"",r+=l?(n||i||p?"&":"?")+"newsgroups="+l:"",r+=o?(n||i||p||l?"&":"?")+"followupto="+o:"",s='<a href="mailto:'+r+'" '+c+">"+a+"</a>","javascript"==t){
	s="document.write('"+s+"');
	";
	for(var u="",f=0;
	f<s.length;
	++f)u+="%"+jSmart.prototype.PHPJS("bin2hex","mailto").bin2hex(s.substr(f,1));
	return'<script type="text/javascript">eval(unescape(\''+u+"'))</script>"}
if("javascript_charcode"==t){
	for(var g=[],f=0;
	f<s.length;
	++f)g.push(jSmart.prototype.PHPJS("ord","mailto").ord(s.substr(f,1)));
	return'<script type="text/javascript" language="javascript">\n<!--\n{
	document.write(String.fromCharCode('+g.join(",")+"))}
\n//-->\n</script>\n"}
if("hex"==t){
	if(r.match(/^.+\?.+$/))throw new Error("mailto:hex encoding does not work with extra attributes. Try javascript.");
	for(var m="",f=0;
	f<r.length;
	++f)m+=r.substr(f,1).match(/\w/)?"%"+jSmart.prototype.PHPJS("bin2hex","mailto").bin2hex(r.substr(f,1)):r.substr(f,1);
	for(var d="",f=0;
	f<a.length;
	++f)d+="&#x"+jSmart.prototype.PHPJS("bin2hex","mailto").bin2hex(a.substr(f,1))+";
	";
	return'<a href="&#109;
	&#97;
	&#105;
	&#108;
	&#116;
	&#111;
	&#58;
	'+m+'" '+c+">"+d+"</a>"}
return s}
),jSmart.prototype.registerPlugin("function","math",function(params,data){
	with(Math)with(params)var res=eval(params.__get("equation",null).replace(/pi\(\s*\)/g,"PI"));
	return"format"in params&&(res=jSmart.prototype.PHPJS("sprintf","math").sprintf(params.format,res)),"assign"in params?(assignVar(params.assign,res,data),""):res}
),jSmart.prototype.registerPlugin("block","nocache",function(e,r){
	return r}
),jSmart.prototype.registerPlugin("block","textformat",function(e,r,t){
	if(!r)return"";
	var a=e.__get("wrap",80),n=e.__get("wrap_char","\n"),s=e.__get("wrap_cut",!1),i=e.__get("indent_char"," "),o=e.__get("indent",0),p=new Array(o+1).join(i),l=e.__get("indent_first",0),c=new Array(l+1).join(i),u=e.__get("style","");
	"email"==u&&(a=72);
	for(var f=r.split(/[\r\n]{
	2}
/),g=0;
	g<f.length;
	++g){
	var m=f[g];
	m&&(m=m.replace(/^\s+|\s+$/,"").replace(/\s+/g," "),l>0&&(m=c+m),m=modifiers.wordwrap(m,a-o,n,s),o>0&&(m=m.replace(/^/gm,p)),f[g]=m)}
var d=f.join(n+n);
	return"assign"in e?(assignVar(e.assign,d,t),""):d}
),jSmart.prototype.registerPlugin("modifier","capitalize",function(e,r){
	var t=new RegExp(r?"[\\W\\d]+":"\\W+"),a=null,n="";
	for(a=e.match(t);
	a;
	a=e.match(t)){
	var s=e.slice(0,a.index);
	n+=s.match(/\d/)?s:s.charAt(0).toUpperCase()+s.slice(1),n+=e.slice(a.index,a.index+a[0].length),e=e.slice(a.index+a[0].length)}
return e.match(/\d/)?n+e:n+e.charAt(0).toUpperCase()+e.slice(1)}
),jSmart.prototype.registerPlugin("modifier","cat",function(e,r){
	return r=r?r:"",e+r}
),jSmart.prototype.registerPlugin("modifier","count",function(e,r){
	if(null===e||"undefined"==typeof e)return 0;
	if(e.constructor!==Array&&e.constructor!==Object)return 1;
	r=Boolean(r);
	var t,a=0;
	for(t in e)e.hasOwnProperty(t)&&(a++,r&&e[t]&&(e[t].constructor===Array||e[t].constructor===Object)&&(a+=modifiers.count(e[t],!0)));
	return a}
),jSmart.prototype.registerPlugin("modifier","count_characters",function(e,r){
	return r?e.length:e.replace(/\s/g,"").length}
),jSmart.prototype.registerPlugin("modifier","count_paragraphs",function(e){
	var r=e.match(/\n+/g);
	return r?r.length+1:1}
),jSmart.prototype.registerPlugin("modifier","count_sentences",function(e){
	var r=e.match(/[^\s]\.(?!\w)/g);
	return r?r.length:0}
),jSmart.prototype.registerPlugin("modifier","count_words",function(e){
	var r=e.match(/\w+/g);
	return r?r.length:0}
),jSmart.prototype.registerPlugin("modifier","date_format",function(e,r,t){
	return jSmart.prototype.PHPJS("strftime","date_format").strftime(r?r:"%b %e,%Y",jSmart.prototype.makeTimeStamp(e?e:t))}
),jSmart.prototype.registerPlugin("modifier","defaultValue",function(e,r){
	return void 0==e||""===e||"array"==typeof e&&0==e.length?void 0==r||""===r||"array"==typeof r&&0==e.length?"":r.toString():e.toString()}
),jSmart.prototype.registerPlugin("modifier","unescape",function(e,r,t){
	switch(e=new String(e),r=r||"html",t=t||"UTF-8",r){
	case"html":return e.replace(/&lt;
	/g,"<").replace(/&gt;
	/g,">").replace(/&#039;
	/g,"'").replace(/&quot;
	/g,'"');
	case"entity":case"htmlall":return jSmart.prototype.PHPJS("html_entity_decode","unescape").html_entity_decode(e,t);
	case"url":return jSmart.prototype.PHPJS("rawurldecode","unescape").rawurldecode(e)}
return e}
),jSmart.prototype.registerPlugin("modifier","escape",function(e,r,t,a){
	switch(e=new String(e),r=r||"html",t=t||"UTF-8",a="undefined"!=typeof a?Boolean(a):!0,r){
	case"html":return a&&(e=e.replace(/&/g,"&amp;
	")),e.replace(/</g,"&lt;
	").replace(/>/g,"&gt;
	").replace(/'/g,"&#039;
	").replace(/"/g,"&quot;
	");
	case"htmlall":return jSmart.prototype.PHPJS("htmlentities","escape").htmlentities(e,3,t);
	case"url":return jSmart.prototype.PHPJS("rawurlencode","escape").rawurlencode(e);
	case"urlpathinfo":return jSmart.prototype.PHPJS("rawurlencode","escape").rawurlencode(e).replace(/%2F/g,"/");
	case"quotes":return e.replace(/(^|[^\\])'/g,"$1\\'");
	case"hex":for(var n="",s=0;
	s<e.length;
	++s)n+="%"+jSmart.prototype.PHPJS("bin2hex","escape").bin2hex(e.substr(s,1));
	return n;
	case"hexentity":for(var n="",s=0;
	s<e.length;
	++s)n+="&#x"+jSmart.prototype.PHPJS("bin2hex","escape").bin2hex(e.substr(s,1)).toUpperCase()+";
	";
	return n;
	case"decentity":for(var n="",s=0;
	s<e.length;
	++s)n+="&#"+jSmart.prototype.PHPJS("ord","escape").ord(e.substr(s,1))+";
	";
	return n;
	case"mail":return e.replace(/@/g," [AT] ").replace(/[.]/g," [DOT] ");
	case"nonstd":for(var n="",s=0;
	s<e.length;
	++s){
	var i=jSmart.prototype.PHPJS("ord","escape").ord(e.substr(s,1));
	n+=i>=126?"&#"+i+";
	":e.substr(s,1)}
return n;
	case"javascript":return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/"/g,'\\"').replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/<\//g,"</");
	case"none":return e}
return e}
),jSmart.prototype.registerPlugin("modifier","indent",function(e,r,t){
	r=r?r:4,t=t?t:" ";
	for(var a="";
	r--;
	)a+=t;
	var n=e.match(/\n+$/);
	return a+e.replace(/\n+$/,"").replace(/\n/g,"\n"+a)+(n?n[0]:"")}
),jSmart.prototype.registerPlugin("modifier","lower",function(e){
	return e.toLowerCase()}
),jSmart.prototype.registerPlugin("modifier","nl2br",function(e){
	return e.replace(/\n/g,"<br />\n")}
),jSmart.prototype.registerPlugin("modifier","regex_replace",function(e,r,t){
	var a=r.match(/^ *\/(.*)\/(.*) *$/);
	return new String(e).replace(new RegExp(a[1],"g"+(a.length>1?a[2]:"")),t)}
),jSmart.prototype.registerPlugin("modifier","replace",function(e,r,t){
	if(!r)return e;
	e=new String(e),r=new String(r),t=new String(t);
	var a="",n=-1;
	for(n=e.indexOf(r);
	n>=0;
	n=e.indexOf(r))a+=e.slice(0,n)+t,n+=r.length,e=e.slice(n);
	return a+e}
),jSmart.prototype.registerPlugin("modifier","spacify",function(e,r){
	return r||(r=" "),e.replace(/(\n|.)(?!$)/g,"$1"+r)}
),jSmart.prototype.registerPlugin("modifier","noprint",function(){
	return""}
),jSmart.prototype.registerPlugin("modifier","string_format",function(e,r){
	return jSmart.prototype.PHPJS("sprintf","string_format").sprintf(r,e)}
),jSmart.prototype.registerPlugin("modifier","strip",function(e,r){
	return r=r?r:" ",new String(e).replace(/[\s]+/g,r)}
),jSmart.prototype.registerPlugin("modifier","strip_tags",function(e,r){
	return r=null==r?!0:r,new String(e).replace(/<[^>]*?>/g,r?" ":"")}
),jSmart.prototype.registerPlugin("modifier","truncate",function(e,r,t,a,n){
	return r=r?r:80,t=null!=t?t:"...",e.length<=r?e:(r-=Math.min(r,t.length),n?e.slice(0,Math.floor(r/2))+t+e.slice(e.length-Math.floor(r/2)):(a||(e=e.slice(0,r+1).replace(/\s+?(\S+)?$/,"")),e.slice(0,r)+t))}
),jSmart.prototype.registerPlugin("modifier","upper",function(e){
	return e.toUpperCase()}
),jSmart.prototype.registerPlugin("modifier","wordwrap",function(e,r,t,a){
	r=r||80,t=t||"\n";
	for(var n=e.split("\n"),s=0;
	s<n.length;
	++s){
	for(var i=n[s],o="";
	i.length>r;
	){
	for(var p=0,l=i.slice(p).match(/\s+/);
	l&&p+l.index<=r;
	l=i.slice(p).match(/\s+/))p+=l.index+l[0].length;
	p=p||(a?r:l?l.index+l[0].length:i.length),o+=i.slice(0,p).replace(/\s+$/,""),p<i.length&&(o+=t),i=i.slice(p)}
n[s]=o+i}
return n.join("\n")}
),String.prototype.fetch=function(e){
	var r=new jSmart(this);
	return r.fetch(e)}
,"undefined"!=typeof module&&module.exports?module.exports=jSmart:window.jSmart=jSmart}
);
	;
	define("wiki-common:widget/lib/sparkMD5/sparkMD5.js",function(t,r,n){
	!function(t){
	if("object"==typeof r)n.exports=t();
	else if("function"==typeof define&&define.amd)define(t);
	else{
	var e;
	try{
	e=window}
catch(i){
	e=self}
e.SparkMD5=t()}
}
(function(){
	"use strict";
	var t=function(t,r){
	return t+r&4294967295}
,r=function(r,n,e,i,f,o){
	return n=t(t(n,r),t(i,o)),t(n<<f|n>>>32-f,e)}
,n=function(t,n,e,i,f,o,s){
	return r(n&e|~n&i,t,n,f,o,s)}
,e=function(t,n,e,i,f,o,s){
	return r(n&i|e&~i,t,n,f,o,s)}
,i=function(t,n,e,i,f,o,s){
	return r(n^e^i,t,n,f,o,s)}
,f=function(t,n,e,i,f,o,s){
	return r(e^(n|~i),t,n,f,o,s)}
,o=function(r,o){
	var s=r[0],u=r[1],a=r[2],h=r[3];
	s=n(s,u,a,h,o[0],7,-680876936),h=n(h,s,u,a,o[1],12,-389564586),a=n(a,h,s,u,o[2],17,606105819),u=n(u,a,h,s,o[3],22,-1044525330),s=n(s,u,a,h,o[4],7,-176418897),h=n(h,s,u,a,o[5],12,1200080426),a=n(a,h,s,u,o[6],17,-1473231341),u=n(u,a,h,s,o[7],22,-45705983),s=n(s,u,a,h,o[8],7,1770035416),h=n(h,s,u,a,o[9],12,-1958414417),a=n(a,h,s,u,o[10],17,-42063),u=n(u,a,h,s,o[11],22,-1990404162),s=n(s,u,a,h,o[12],7,1804603682),h=n(h,s,u,a,o[13],12,-40341101),a=n(a,h,s,u,o[14],17,-1502002290),u=n(u,a,h,s,o[15],22,1236535329),s=e(s,u,a,h,o[1],5,-165796510),h=e(h,s,u,a,o[6],9,-1069501632),a=e(a,h,s,u,o[11],14,643717713),u=e(u,a,h,s,o[0],20,-373897302),s=e(s,u,a,h,o[5],5,-701558691),h=e(h,s,u,a,o[10],9,38016083),a=e(a,h,s,u,o[15],14,-660478335),u=e(u,a,h,s,o[4],20,-405537848),s=e(s,u,a,h,o[9],5,568446438),h=e(h,s,u,a,o[14],9,-1019803690),a=e(a,h,s,u,o[3],14,-187363961),u=e(u,a,h,s,o[8],20,1163531501),s=e(s,u,a,h,o[13],5,-1444681467),h=e(h,s,u,a,o[2],9,-51403784),a=e(a,h,s,u,o[7],14,1735328473),u=e(u,a,h,s,o[12],20,-1926607734),s=i(s,u,a,h,o[5],4,-378558),h=i(h,s,u,a,o[8],11,-2022574463),a=i(a,h,s,u,o[11],16,1839030562),u=i(u,a,h,s,o[14],23,-35309556),s=i(s,u,a,h,o[1],4,-1530992060),h=i(h,s,u,a,o[4],11,1272893353),a=i(a,h,s,u,o[7],16,-155497632),u=i(u,a,h,s,o[10],23,-1094730640),s=i(s,u,a,h,o[13],4,681279174),h=i(h,s,u,a,o[0],11,-358537222),a=i(a,h,s,u,o[3],16,-722521979),u=i(u,a,h,s,o[6],23,76029189),s=i(s,u,a,h,o[9],4,-640364487),h=i(h,s,u,a,o[12],11,-421815835),a=i(a,h,s,u,o[15],16,530742520),u=i(u,a,h,s,o[2],23,-995338651),s=f(s,u,a,h,o[0],6,-198630844),h=f(h,s,u,a,o[7],10,1126891415),a=f(a,h,s,u,o[14],15,-1416354905),u=f(u,a,h,s,o[5],21,-57434055),s=f(s,u,a,h,o[12],6,1700485571),h=f(h,s,u,a,o[3],10,-1894986606),a=f(a,h,s,u,o[10],15,-1051523),u=f(u,a,h,s,o[1],21,-2054922799),s=f(s,u,a,h,o[8],6,1873313359),h=f(h,s,u,a,o[15],10,-30611744),a=f(a,h,s,u,o[6],15,-1560198380),u=f(u,a,h,s,o[13],21,1309151649),s=f(s,u,a,h,o[4],6,-145523070),h=f(h,s,u,a,o[11],10,-1120210379),a=f(a,h,s,u,o[2],15,718787259),u=f(u,a,h,s,o[9],21,-343485551),r[0]=t(s,r[0]),r[1]=t(u,r[1]),r[2]=t(a,r[2]),r[3]=t(h,r[3])}
,s=function(t){
	var r,n=[];
	for(r=0;
	64>r;
	r+=4)n[r>>2]=t.charCodeAt(r)+(t.charCodeAt(r+1)<<8)+(t.charCodeAt(r+2)<<16)+(t.charCodeAt(r+3)<<24);
	return n}
,u=function(t){
	var r,n=[];
	for(r=0;
	64>r;
	r+=4)n[r>>2]=t[r]+(t[r+1]<<8)+(t[r+2]<<16)+(t[r+3]<<24);
	return n}
,a=function(t){
	var r,n,e,i,f,u,a=t.length,h=[1732584193,-271733879,-1732584194,271733878];
	for(r=64;
	a>=r;
	r+=64)o(h,s(t.substring(r-64,r)));
	for(t=t.substring(r-64),n=t.length,e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0;
	n>r;
	r+=1)e[r>>2]|=t.charCodeAt(r)<<(r%4<<3);
	if(e[r>>2]|=128<<(r%4<<3),r>55)for(o(h,e),r=0;
	16>r;
	r+=1)e[r]=0;
	return i=8*a,i=i.toString(16).match(/(.*?)(.{
	0,8}
)$/),f=parseInt(i[2],16),u=parseInt(i[1],16)||0,e[14]=f,e[15]=u,o(h,e),h}
,h=function(t){
	var r,n,e,i,f,s,a=t.length,h=[1732584193,-271733879,-1732584194,271733878];
	for(r=64;
	a>=r;
	r+=64)o(h,u(t.subarray(r-64,r)));
	for(t=a>r-64?t.subarray(r-64):new Uint8Array(0),n=t.length,e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0;
	n>r;
	r+=1)e[r>>2]|=t[r]<<(r%4<<3);
	if(e[r>>2]|=128<<(r%4<<3),r>55)for(o(h,e),r=0;
	16>r;
	r+=1)e[r]=0;
	return i=8*a,i=i.toString(16).match(/(.*?)(.{
	0,8}
)$/),f=parseInt(i[2],16),s=parseInt(i[1],16)||0,e[14]=f,e[15]=s,o(h,e),h}
,c=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],p=function(t){
	var r,n="";
	for(r=0;
	4>r;
	r+=1)n+=c[t>>8*r+4&15]+c[t>>8*r&15];
	return n}
,y=function(t){
	var r;
	for(r=0;
	r<t.length;
	r+=1)t[r]=p(t[r]);
	return t.join("")}
,_=function(t){
	return y(a(t))}
,d=function(){
	this.reset()}
;
	return"5d41402abc4b2a76b9719d911017c592"!==_("hello")&&(t=function(t,r){
	var n=(65535&t)+(65535&r),e=(t>>16)+(r>>16)+(n>>16);
	return e<<16|65535&n}
),d.prototype.append=function(t){
	return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),this.appendBinary(t),this}
,d.prototype.appendBinary=function(t){
	this._buff+=t,this._length+=t.length;
	var r,n=this._buff.length;
	for(r=64;
	n>=r;
	r+=64)o(this._state,s(this._buff.substring(r-64,r)));
	return this._buff=this._buff.substr(r-64),this}
,d.prototype.end=function(t){
	var r,n,e=this._buff,i=e.length,f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
	for(r=0;
	i>r;
	r+=1)f[r>>2]|=e.charCodeAt(r)<<(r%4<<3);
	return this._finish(f,i),n=t?this._state:y(this._state),this.reset(),n}
,d.prototype._finish=function(t,r){
	var n,e,i,f=r;
	if(t[f>>2]|=128<<(f%4<<3),f>55)for(o(this._state,t),f=0;
	16>f;
	f+=1)t[f]=0;
	n=8*this._length,n=n.toString(16).match(/(.*?)(.{
	0,8}
)$/),e=parseInt(n[2],16),i=parseInt(n[1],16)||0,t[14]=e,t[15]=i,o(this._state,t)}
,d.prototype.reset=function(){
	return this._buff="",this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this}
,d.prototype.destroy=function(){
	delete this._state,delete this._buff,delete this._length}
,d.hash=function(t,r){
	/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t)));
	var n=a(t);
	return r?n:y(n)}
,d.hashBinary=function(t,r){
	var n=a(t);
	return r?n:y(n)}
,d.ArrayBuffer=function(){
	this.reset()}
,d.ArrayBuffer.prototype.append=function(t){
	var r,n=this._concatArrayBuffer(this._buff,t),e=n.length;
	for(this._length+=t.byteLength,r=64;
	e>=r;
	r+=64)o(this._state,u(n.subarray(r-64,r)));
	return this._buff=e>r-64?n.subarray(r-64):new Uint8Array(0),this}
,d.ArrayBuffer.prototype.end=function(t){
	var r,n,e=this._buff,i=e.length,f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
	for(r=0;
	i>r;
	r+=1)f[r>>2]|=e[r]<<(r%4<<3);
	return this._finish(f,i),n=t?this._state:y(this._state),this.reset(),n}
,d.ArrayBuffer.prototype._finish=d.prototype._finish,d.ArrayBuffer.prototype.reset=function(){
	return this._buff=new Uint8Array(0),this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this}
,d.ArrayBuffer.prototype.destroy=d.prototype.destroy,d.ArrayBuffer.prototype._concatArrayBuffer=function(t,r){
	var n=t.length,e=new Uint8Array(n+r.byteLength);
	return e.set(t),e.set(new Uint8Array(r),n),e}
,d.ArrayBuffer.hash=function(t,r){
	var n=h(new Uint8Array(t));
	return r?n:y(n)}
,d}
)}
);
	;
	define("wiki-common:widget/lib/swfObject/swfObject.js",function(e,t,n){
	var i=function(){
	function e(){
	if(!X&&document.getElementsByTagName("body")[0]){
	try{
	var e,t=g("span");
	t.style.display="none",e=R.getElementsByTagName("body")[0].appendChild(t),e.parentNode.removeChild(e),e=null,t=null}
catch(n){
	return}
X=!0;
	for(var i=H.length,a=0;
	i>a;
	a++)H[a]()}
}
function t(e){
	X?e():H[H.length]=e}
function n(e){
	if(typeof P.addEventListener!==O)P.addEventListener("load",e,!1);
	else if(typeof R.addEventListener!==O)R.addEventListener("load",e,!1);
	else if(typeof P.attachEvent!==O)b(P,"onload",e);
	else if("function"==typeof P.onload){
	var t=P.onload;
	P.onload=function(){
	t(),e()}
}
else P.onload=e}
function a(){
	var e=R.getElementsByTagName("body")[0],t=g(x);
	t.setAttribute("style","visibility:hidden;
	"),t.setAttribute("type",j);
	var n=e.appendChild(t);
	if(n){
	var i=0;
	!function a(){
	if(typeof n.GetVariable!==O)try{
	var o=n.GetVariable("$version");
	o&&(o=o.split(" ")[1].split(","),q.pv=[w(o[0]),w(o[1]),w(o[2])])}
catch(l){
	q.pv=[8,0,0]}
else if(10>i)return i++,void setTimeout(a,10);
	e.removeChild(t),n=null,r()}
()}
else r()}
function r(){
	var e=W.length;
	if(e>0)for(var t=0;
	e>t;
	t++){
	var n=W[t].id,i=W[t].callbackFn,a={
	success:!1,id:n}
;
	if(q.pv[0]>0){
	var r=m(n);
	if(r)if(!E(W[t].swfVersion)||q.wk&&q.wk<312)if(W[t].expressInstall&&l()){
	var f={
}
;
	f.data=W[t].expressInstall,f.width=r.getAttribute("width")||"0",f.height=r.getAttribute("height")||"0",r.getAttribute("class")&&(f.styleclass=r.getAttribute("class")),r.getAttribute("align")&&(f.align=r.getAttribute("align"));
	for(var c={
}
,u=r.getElementsByTagName("param"),p=u.length,v=0;
	p>v;
	v++)"movie"!==u[v].getAttribute("name").toLowerCase()&&(c[u[v].getAttribute("name")]=u[v].getAttribute("value"));
	s(f,c,n,i)}
else d(r),i&&i(a);
	else A(n,!0),i&&(a.success=!0,a.ref=o(n),a.id=n,i(a))}
else if(A(n,!0),i){
	var y=o(n);
	y&&typeof y.SetVariable!==O&&(a.success=!0,a.ref=y,a.id=y.id),i(a)}
}
}
function o(e){
	var t=null,n=m(e);
	return n&&"OBJECT"===n.nodeName.toUpperCase()&&(t=typeof n.SetVariable!==O?n:n.getElementsByTagName(x)[0]||n),t}
function l(){
	return!z&&E("6.0.65")&&(q.win||q.mac)&&!(q.wk&&q.wk<312)}
function s(e,t,n,i){
	var a=m(n);
	if(n=h(n),z=!0,k=i||null,B={
	success:!1,id:n}
,a){
	"OBJECT"===a.nodeName.toUpperCase()?(T=f(a),N=null):(T=a,N=n),e.id=M,(typeof e.width===O||!/%$/.test(e.width)&&w(e.width)<310)&&(e.width="310"),(typeof e.height===O||!/%$/.test(e.height)&&w(e.height)<137)&&(e.height="137");
	var r=q.ie?"ActiveX":"PlugIn",o="MMredirectURL="+encodeURIComponent(P.location.toString().replace(/&/g,"%26"))+"&MMplayerType="+r+"&MMdoctitle="+encodeURIComponent(R.title.slice(0,47)+" - Flash Player Installation");
	if(typeof t.flashvars!==O?t.flashvars+="&"+o:t.flashvars=o,q.ie&&4!=a.readyState){
	var l=g("div");
	n+="SWFObjectNew",l.setAttribute("id",n),a.parentNode.insertBefore(l,a),a.style.display="none",v(a)}
u(e,t,n)}
}
function d(e){
	if(q.ie&&4!=e.readyState){
	e.style.display="none";
	var t=g("div");
	e.parentNode.insertBefore(t,e),t.parentNode.replaceChild(f(e),t),v(e)}
else e.parentNode.replaceChild(f(e),e)}
function f(e){
	var t=g("div");
	if(q.win&&q.ie)t.innerHTML=e.innerHTML;
	else{
	var n=e.getElementsByTagName(x)[0];
	if(n){
	var i=n.childNodes;
	if(i)for(var a=i.length,r=0;
	a>r;
	r++)1==i[r].nodeType&&"PARAM"===i[r].nodeName||8==i[r].nodeType||t.appendChild(i[r].cloneNode(!0))}
}
return t}
function c(e,t){
	var n=g("div");
	return n.innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='"+e+"'>"+t+"</object>",n.firstChild}
function u(e,t,n){
	var i,a=m(n);
	if(n=h(n),q.wk&&q.wk<312)return i;
	if(a){
	var r,o,l,s=g(q.ie?"div":x);
	typeof e.id===O&&(e.id=n);
	for(l in t)t.hasOwnProperty(l)&&"movie"!==l.toLowerCase()&&p(s,l,t[l]);
	q.ie&&(s=c(e.data,s.innerHTML));
	for(r in e)e.hasOwnProperty(r)&&(o=r.toLowerCase(),"styleclass"===o?s.setAttribute("class",e[r]):"classid"!==o&&"data"!==o&&s.setAttribute(r,e[r]));
	q.ie?G[G.length]=e.id:(s.setAttribute("type",j),s.setAttribute("data",e.data)),a.parentNode.replaceChild(s,a),i=s}
return i}
function p(e,t,n){
	var i=g("param");
	i.setAttribute("name",t),i.setAttribute("value",n),e.appendChild(i)}
function v(e){
	var t=m(e);
	t&&"OBJECT"===t.nodeName.toUpperCase()&&(q.ie?(t.style.display="none",function n(){
	if(4==t.readyState){
	for(var e in t)"function"==typeof t[e]&&(t[e]=null);
	t.parentNode.removeChild(t)}
else setTimeout(n,10)}
()):t.parentNode.removeChild(t))}
function y(e){
	return e&&e.nodeType&&1===e.nodeType}
function h(e){
	return y(e)?e.id:e}
function m(e){
	if(y(e))return e;
	var t=null;
	try{
	t=R.getElementById(e)}
catch(n){
}
return t}
function g(e){
	return R.createElement(e)}
function w(e){
	return parseInt(e,10)}
function b(e,t,n){
	e.attachEvent(t,n),J[J.length]=[e,t,n]}
function E(e){
	e+="";
	var t=q.pv,n=e.split(".");
	return n[0]=w(n[0]),n[1]=w(n[1])||0,n[2]=w(n[2])||0,t[0]>n[0]||t[0]==n[0]&&t[1]>n[1]||t[0]==n[0]&&t[1]==n[1]&&t[2]>=n[2]?!0:!1}
function C(e,t,n,i){
	var a=R.getElementsByTagName("head")[0];
	if(a){
	var r="string"==typeof n?n:"screen";
	if(i&&(I=null,L=null),!I||L!=r){
	var o=g("style");
	o.setAttribute("type","text/css"),o.setAttribute("media",r),I=a.appendChild(o),q.ie&&typeof R.styleSheets!==O&&R.styleSheets.length>0&&(I=R.styleSheets[R.styleSheets.length-1]),L=r}
I&&(typeof I.addRule!==O?I.addRule(e,t):typeof R.createTextNode!==O&&I.appendChild(R.createTextNode(e+"{
	"+t+"}
")))}
}
function A(e,t){
	if(Z){
	var n=t?"visible":"hidden",i=m(e);
	X&&i?i.style.visibility=n:"string"==typeof e&&C("#"+e,"visibility:"+n)}
}
function S(e){
	var t=/[\\\"<>\.;
	]/,n=null!==t.exec(e);
	return n&&typeof encodeURIComponent!==O?encodeURIComponent(e):e}
{
	var T,N,k,B,I,L,O="undefined",x="object",F="Shockwave Flash",$="ShockwaveFlash.ShockwaveFlash",j="application/x-shockwave-flash",M="SWFObjectExprInst",U="onreadystatechange",P=window,R=document,V=navigator,D=!1,H=[],W=[],G=[],J=[],X=!1,z=!1,Z=!0,Q=!1,q=function(){
	var e=typeof R.getElementById!==O&&typeof R.getElementsByTagName!==O&&typeof R.createElement!==O,t=V.userAgent.toLowerCase(),n=V.platform.toLowerCase(),i=/win/.test(n?n:t),a=/mac/.test(n?n:t),r=/webkit/.test(t)?parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,o="Microsoft Internet Explorer"===V.appName,l=[0,0,0],s=null;
	if(typeof V.plugins!==O&&typeof V.plugins[F]===x)s=V.plugins[F].description,s&&typeof V.mimeTypes!==O&&V.mimeTypes[j]&&V.mimeTypes[j].enabledPlugin&&(D=!0,o=!1,s=s.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),l[0]=w(s.replace(/^(.*)\..*$/,"$1")),l[1]=w(s.replace(/^.*\.(.*)\s.*$/,"$1")),l[2]=/[a-zA-Z]/.test(s)?w(s.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0);
	else if(typeof P.ActiveXObject!==O)try{
	var d=new ActiveXObject($);
	d&&(s=d.GetVariable("$version"),s&&(o=!0,s=s.split(" ")[1].split(","),l=[w(s[0]),w(s[1]),w(s[2])]))}
catch(f){
}
return{
	w3:e,pv:l,wk:r,ie:o,win:i,mac:a}
}
();
	!function(){
	q.w3&&((typeof R.readyState!==O&&("complete"===R.readyState||"interactive"===R.readyState)||typeof R.readyState===O&&(R.getElementsByTagName("body")[0]||R.body))&&e(),X||(typeof R.addEventListener!==O&&R.addEventListener("DOMContentLoaded",e,!1),q.ie&&(R.attachEvent(U,function t(){
	"complete"===R.readyState&&(R.detachEvent(U,t),e())}
),P==top&&!function n(){
	if(!X){
	try{
	R.documentElement.doScroll("left")}
catch(t){
	return void setTimeout(n,0)}
e()}
}
()),q.wk&&!function i(){
	return X?void 0:/loaded|complete/.test(R.readyState)?void e():void setTimeout(i,0)}
()))}
()}
H[0]=function(){
	D?a():r()}
;
	!function(){
	q.ie&&window.attachEvent("onunload",function(){
	for(var e=J.length,t=0;
	e>t;
	t++)J[t][0].detachEvent(J[t][1],J[t][2]);
	for(var n=G.length,a=0;
	n>a;
	a++)v(G[a]);
	for(var r in q)q[r]=null;
	q=null;
	for(var o in i)i[o]=null;
	i=null}
)}
();
	return{
	registerObject:function(e,t,n,i){
	if(q.w3&&e&&t){
	var a={
}
;
	a.id=e,a.swfVersion=t,a.expressInstall=n,a.callbackFn=i,W[W.length]=a,A(e,!1)}
else i&&i({
	success:!1,id:e}
)}
,getObjectById:function(e){
	return q.w3?o(e):void 0}
,embedSWF:function(e,n,i,a,r,o,d,f,c,p){
	var v=h(n),y={
	success:!1,id:v}
;
	q.w3&&!(q.wk&&q.wk<312)&&e&&n&&i&&a&&r?(A(v,!1),t(function(){
	i+="",a+="";
	var t={
}
;
	if(c&&typeof c===x)for(var h in c)t[h]=c[h];
	t.data=e,t.width=i,t.height=a;
	var m={
}
;
	if(f&&typeof f===x)for(var g in f)m[g]=f[g];
	if(d&&typeof d===x)for(var w in d)if(d.hasOwnProperty(w)){
	var b=Q?encodeURIComponent(w):w,C=Q?encodeURIComponent(d[w]):d[w];
	typeof m.flashvars!==O?m.flashvars+="&"+b+"="+C:m.flashvars=b+"="+C}
if(E(r)){
	var S=u(t,m,n);
	t.id==v&&A(v,!0),y.success=!0,y.ref=S,y.id=S.id}
else{
	if(o&&l())return t.data=o,void s(t,m,n,p);
	A(v,!0)}
p&&p(y)}
)):p&&p(y)}
,switchOffAutoHideShow:function(){
	Z=!1}
,enableUriEncoding:function(e){
	Q=typeof e===O?!0:e}
,ua:q,getFlashPlayerVersion:function(){
	return{
	major:q.pv[0],minor:q.pv[1],release:q.pv[2]}
}
,hasFlashPlayerVersion:E,createSWF:function(e,t,n){
	return q.w3?u(e,t,n):void 0}
,showExpressInstall:function(e,t,n,i){
	q.w3&&l()&&s(e,t,n,i)}
,removeSWF:function(e){
	q.w3&&v(e)}
,createCSS:function(e,t,n,i){
	q.w3&&C(e,t,n,i)}
,addDomLoadEvent:t,addLoadEvent:n,getQueryParamValue:function(e){
	var t=R.location.search||R.location.hash;
	if(t){
	if(/\?/.test(t)&&(t=t.split("?")[1]),!e)return S(t);
	for(var n=t.split("&"),i=0;
	i<n.length;
	i++)if(n[i].substring(0,n[i].indexOf("="))==e)return S(n[i].substring(n[i].indexOf("=")+1))}
return""}
,expressInstallCallback:function(){
	if(z){
	var e=m(M);
	e&&T&&(e.parentNode.replaceChild(T,e),N&&(A(N,!0),q.ie&&(T.style.display="block")),k&&k(B)),z=!1}
}
,version:"2.3"}
}
();
	n.exports=i}
);
	;
	define("wiki-common:widget/util/checkCSS.js",function(e,r,t){
	t.exports=function(e){
	var r=document.createElement("div"),t=["webkit","moz","o","ms"],n="";
	e=("string"==typeof e?e:"").replace(/[A-Z]/g,function(e){
	return"-"+e.toLowerCase()}
);
	for(var o=[e,e.replace(/-(\w)/g,function(e,r){
	return r.toUpperCase()}
)],i=0;
	i<t.length;
	++i){
	var c="-"+t[i]+"-"+e,a=c.replace(/-(\w)/g,function(e,r){
	return r.toUpperCase()}
);
	o.push(c,a)}
for(var i=0;
	i<o.length;
	++i)if(o[i]in r.style){
	n=o[i];
	break}
return n}
}
);
	;
	define("wiki-common:widget/util/cookie.js",function(e,n,t){
	var i={
}
;
	i._isValidKey=function(e){
	return new RegExp('^[^\\x00-\\x20\\x7f\\(\\)<>@,;
	:\\\\\\"\\[\\]\\?=\\{
	\\}
\\/\\u0080-\\uffff]+$').test(e)}
,i.setRaw=function(e,n,t){
	if(i._isValidKey(e)){
	t=t||{
}
;
	var o=t.expires;
	"number"==typeof t.expires&&(o=new Date,o.setTime(o.getTime()+t.expires)),document.cookie=e+"="+n+(t.path?";
	path="+t.path:"")+(o?";
	expires="+o.toGMTString():"")+(t.domain?";
	domain="+t.domain:"")+(t.secure?";
	secure":"")}
}
,i.getRaw=function(e){
	if(i._isValidKey(e)){
	var n=new RegExp("(^| )"+e+"=([^;
	]*)(;
	|$)"),t=n.exec(document.cookie);
	if(t)return t[2]||null}
return null}
,i.get=function(e){
	var n=i.getRaw(e);
	return"string"==typeof n?n=decodeURIComponent(n):null}
,i.set=function(e,n,t){
	i.setRaw(e,encodeURIComponent(n),t)}
,i.remove=function(e,n){
	n=n||{
}
,n.expires=new Date(0),i.setRaw(e,"",n)}
,t.exports=i}
);
	;
	define("wiki-common:widget/util/guid.js",function(i,a,n){
	var t=i("wiki-common:widget/lib/sparkMD5/sparkMD5.js"),e=i("wiki-common:widget/util/cookie.js");
	n.exports=function(i){
	i=isNaN(parseInt(i))?7:Math.max(Math.min(parseInt(i),32),1);
	var a=[navigator.platform||"",navigator.appName||"",navigator.userAgent||"",window.screen.availWidth||0,window.screen.availHeight||0,e.get("BAIDUID")||"",+new Date,Math.random()];
	return t.hashBinary(a.join("-")).substr(0,i)}
}
);
	;
	define("wiki-common:widget/util/number.js",function(r,e,t){
	function n(r){
	if("number"==typeof r&&Math.abs(r)>(Number.MAX_SAFE_INTEGER||9007199254740991))throw new Error("[Util.number Exception]:Input number out of range.");
	var e=(r+"").replace(/^\s+|\s+$/g,"")||"0";
	if(/^[+-]?(?:[\da-f]+\.?|[\da-f]*\.[\da-f]+)$/i.test(e))return e;
	throw new Error("[Util.number Exception]:Invalid input number.")}
t.exports={
	split:function(r,e,t){
	var i=n(r),a=i.split(".");
	return a[0]=a[0].replace(new RegExp("(\\d)(?=(?:\\d{
	"+(t||3)+"}
)+$)","g"),"$1"+(e||",")),a[1]?a.join("."):a[0]}
,pad:function(r,e,t){
	var i=n(r),a=i.split(".");
	return a[0]=a[0].replace(/([+-]?)([\da-f]*)/i,function(){
	var r=Math.max((e||0)-i.length,0);
	return arguments[1]+Array(r+1).join(t||"0").substr(0,r)+arguments[2]}
),a[1]?a.join("."):a[0]}
,toCN:function(r,e){
	for(var e="boolean"==typeof e?e:!1,t=[["零","一","二","三","四","五","六","七","八","九"],["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"]][e?1:0],i=[["","十","百","千"],["","拾","佰","仟"]][e?1:0],a=n(r).replace(/^([+-]?)0*(?=\d)/,"$1"),o=a.split("."),s="",u=o[0].substr(0,1),p="-"==u,l=o[0].substr(/\d/.test(u)?0:1).replace(/(\d)(?=(?:\d{
	4}
)+$)/g,"$1,").split(","),f=l.length,c=f;
	c>0;
	--c){
	for(var d=l[f-c].split("").reverse(),b=0;
	b<d.length;
	++b){
	var g=d[b];
	d[b]=(!e&&1==g&&1==b&&d.length<3||!parseInt(l[f-c].substr(-b-1))||0==g&&0==d[b+1]?"":t[g])+(g>0?i[b]:"")}
s+=d.reverse().join("")+(c>1?c%2?"亿":parseInt(l[f-c])?"万":"":"")}
if(s=s||"零",o[1]){
	l=o[1].split(""),s+="点";
	for(var c=0;
	c<l.length;
	++c)s+=t[parseInt(l[c])]}
return s=(p?"负":"")+s}
}
}
);
	;
	define("wiki-common:widget/util/timeFormater.js",function(e,t,r){
	function n(e,t,r){
	switch(r){
	case"zh":return c(e+1)+"月";
	case"en":return["January","February","March","April","May","June","July","August","September","October","November","December"][e].substr(0,t?3:void 0);
	default:return""}
}
function a(e,t,r){
	switch(r){
	case"zh":return(t?"周":"星期")+(e?c(e):"日");
	case"en":return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e].substr(0,t?3:void 0);
	default:return""}
}
function u(e,t){
	switch(t){
	case"zh":return c(e)+"日";
	case"en":return e+(4>e%10&&1!=Math.floor(e/10)?["th","st","nd","rd"][e%10]:"th");
	default:return""}
}
function o(e){
	return e.replace(/\\([yMdwhHmsf])/g,"$1\x00")}
function i(e){
	return e.replace(/([yMdwhHmsf])\0/g,"$1")}
var l=e("wiki-common:widget/util/number.js"),s=l.pad,c=l.toCN,g={
	build:function(e){
	var t;
	switch(typeof e){
	case"number":t=new Date(parseInt(e));
	break;
	case"string":if(Number(e))t=arguments.callee(parseInt(e));
	else{
	e=e.replace(/-/g,"/").replace("/+d+/","");
	var r=e.match(/^(.+?)\.(\d+)$/);
	t=new Date(r&&r[2]?+new Date(r[1])+parseInt(r[2]):e)}
break;
	default:t=e instanceof Date?e:new Date}
if("Invalid Date"==t)throw new Error("[TimeFormater Exception]:Invalid Date!");
	return t}
,format:function(e,t,r,l){
	e=g.build(e),t=o(t||"yyyy/MM/dd HH:mm:ss"),r=/^(zh|en)$/i.test(r||(navigator.browserLanguage||navigator.language).substr(0,2))?RegExp.$1.toLowerCase():"en",l="boolean"==typeof l?l:!1;
	var c={
	year:l?e.getUTCFullYear():e.getFullYear(),month:l?e.getUTCMonth():e.getMonth(),date:l?e.getUTCDate():e.getDate(),day:l?e.getUTCDay():e.getDay(),hour:l?e.getUTCHours():e.getHours(),minute:l?e.getUTCMinutes():e.getMinutes(),second:l?e.getUTCSeconds():e.getSeconds(),millisecond:l?e.getUTCMilliseconds():e.getMilliseconds()}
,d={
	"(?:h(?!\x00))+":c.hour>12?c.hour-12:c.hour,"(?:H(?!\x00))+":c.hour,"(?:m(?!\x00))+":c.minute,"(?:s(?!\x00))+":c.second}
;
	for(var h in d)t=t.replace(new RegExp(h,"g"),function(e){
	return s(d[h],Math.min(2,e.length))}
);
	return t=t.replace(/(?:f(?!\0))+/g,function(e){
	return s(c.millisecond,3).substr(0,Math.min(e.length,3))}
),t=t.replace(/(?:y(?!\0))+/g,function(e){
	return e.length<3?s(c.year%1e3,Math.min(e.length,2)):s(c.year,e.length)}
),t=t.replace(/(?:M(?!\0))+/g,function(e){
	return e.length<3?s(c.month+1,e.length):n(c.month,3==e.length,r)}
),t=t.replace(/(?:d(?!\0))+/g,function(e){
	return e.length<3?s(c.date,e.length):u(c.date,r)}
),t=t.replace(/(?:w(?!\0))+/g,function(e){
	return a(c.day,e.length<2,r)}
),i(t)}
,span:function(e,t,r,n,a){
	e=g.build(e),t=g.build(t),r=o(r||"d天h小时m分s秒f毫秒"),a="boolean"==typeof a?a:!1,n="boolean"==typeof n?n:!1;
	for(var u=Math.abs(t.getTime()-e.getTime()),l=[{
	pattern:/(?:d(?!\0))+/g,rate:864e5}
,{
	pattern:/(?:h(?!\0))+/g,rate:36e5}
,{
	pattern:/(?:m(?!\0))+/g,rate:6e4}
,{
	pattern:/(?:s(?!\0))+/g,rate:1e3}
,{
	pattern:/(?:f(?!\0))+/g,rate:1}
],c=0;
	c<l.length;
	++c){
	l[c].value=u;
	for(var d=0;
	c>d;
	++d)r.match(l[d].pattern)&&(l[c].value-=l[d].value*l[d].rate);
	l[c].value=Math.floor(l[c].value/l[c].rate)}
for(var c=0;
	c<l.length;
	++c)r=r.replace(l[c].pattern,function(e){
	var t=Math.min(e.length,0==c?1/0:4==c?3:2);
	return s(l[c].value,t)}
);
	return a||(r=r.replace(/(\d+)\D+/g,function(e,t){
	return Number(t)?e:""}
)),n&&(r=r.match(/\d+\D+/g)[0]),(t>=e?"":"-")+i(r)}
,diff:function(e,t,r,n){
	if(void 0==e)throw new Error("[TimeFormater Exception]:Invalid arguments!");
	return g.span(0,e,t,r,n)}
,startEnd:function(e,t,r,n,a,u,o){
	return e=g.build(e),t=g.build(t),a=(void 0==a?"-":a)+"",r=r||"yyyy/MM/dd HH:mm:ss",n=n||r,g.format(e,r,u,o)+a+g.format(t,n,u,o)}
}
;
	r.exports=g}
);
	;
	define("wiki-common:widget/util/tween.js",function(n,t,e){
	var u={
	linear:function(n,t,e,u,a){
	return u*t/a+e}
,easeInSine:function(n,t,e,u,a){
	return-u*Math.cos(t/a*(Math.PI/2))+u+e}
,easeOutSine:function(n,t,e,u,a){
	return u*Math.sin(t/a*(Math.PI/2))+e}
,easeInOutSine:function(n,t,e,u,a){
	return-u/2*(Math.cos(Math.PI*t/a)-1)+e}
,easeInQuad:function(n,t,e,u,a){
	return u*(t/=a)*t+e}
,easeOutQuad:function(n,t,e,u,a){
	return-u*(t/=a)*(t-2)+e}
,easeInOutQuad:function(n,t,e,u,a){
	return(t/=a/2)<1?u/2*t*t+e:-u/2*(--t*(t-2)-1)+e}
,easeInCubic:function(n,t,e,u,a){
	return u*(t/=a)*t*t+e}
,easeOutCubic:function(n,t,e,u,a){
	return u*((t=t/a-1)*t*t+1)+e}
,easeInOutCubic:function(n,t,e,u,a){
	return(t/=a/2)<1?u/2*t*t*t+e:u/2*((t-=2)*t*t+2)+e}
,easeInQuart:function(n,t,e,u,a){
	return u*(t/=a)*t*t*t+e}
,easeOutQuart:function(n,t,e,u,a){
	return-u*((t=t/a-1)*t*t*t-1)+e}
,easeInOutQuart:function(n,t,e,u,a){
	return(t/=a/2)<1?u/2*t*t*t*t+e:-u/2*((t-=2)*t*t*t-2)+e}
,easeInQuint:function(n,t,e,u,a){
	return u*(t/=a)*t*t*t*t+e}
,easeOutQuint:function(n,t,e,u,a){
	return u*((t=t/a-1)*t*t*t*t+1)+e}
,easeInOutQuint:function(n,t,e,u,a){
	return(t/=a/2)<1?u/2*t*t*t*t*t+e:u/2*((t-=2)*t*t*t*t+2)+e}
,easeInExpo:function(n,t,e,u,a){
	return 0==t?e:u*Math.pow(2,10*(t/a-1))+e}
,easeOutExpo:function(n,t,e,u,a){
	return t==a?e+u:u*(-Math.pow(2,-10*t/a)+1)+e}
,easeInOutExpo:function(n,t,e,u,a){
	return 0==t?e:t==a?e+u:(t/=a/2)<1?u/2*Math.pow(2,10*(t-1))+e:u/2*(-Math.pow(2,-10*--t)+2)+e}
,easeInCirc:function(n,t,e,u,a){
	return-u*(Math.sqrt(1-(t/=a)*t)-1)+e}
,easeOutCirc:function(n,t,e,u,a){
	return u*Math.sqrt(1-(t=t/a-1)*t)+e}
,easeInOutCirc:function(n,t,e,u,a){
	return(t/=a/2)<1?-u/2*(Math.sqrt(1-t*t)-1)+e:u/2*(Math.sqrt(1-(t-=2)*t)+1)+e}
,easeInBack:function(n,t,e,u,a,r){
	return void 0==r&&(r=1.70158),u*(t/=a)*t*((r+1)*t-r)+e}
,easeOutBack:function(n,t,e,u,a,r){
	return void 0==r&&(r=1.70158),u*((t=t/a-1)*t*((r+1)*t+r)+1)+e}
,easeInOutBack:function(n,t,e,u,a,r){
	return void 0==r&&(r=1.70158),(t/=a/2)<1?u/2*t*t*(((r*=1.525)+1)*t-r)+e:u/2*((t-=2)*t*(((r*=1.525)+1)*t+r)+2)+e}
,easeInElastic:function(n,t,e,u,a){
	var r=1.70158,i=0,s=u;
	if(0==t)return e;
	if(1==(t/=a))return e+u;
	if(i||(i=.3*a),s<Math.abs(u)){
	s=u;
	var r=i/4}
else var r=i/(2*Math.PI)*Math.asin(u/s);
	return-(s*Math.pow(2,10*(t-=1))*Math.sin(2*(t*a-r)*Math.PI/i))+e}
,easeOutElastic:function(n,t,e,u,a){
	var r=1.70158,i=0,s=u;
	if(0==t)return e;
	if(1==(t/=a))return e+u;
	if(i||(i=.3*a),s<Math.abs(u)){
	s=u;
	var r=i/4}
else var r=i/(2*Math.PI)*Math.asin(u/s);
	return s*Math.pow(2,-10*t)*Math.sin(2*(t*a-r)*Math.PI/i)+u+e}
,easeInOutElastic:function(n,t,e,u,a){
	var r=1.70158,i=0,s=u;
	if(0==t)return e;
	if(2==(t/=a/2))return e+u;
	if(i||(i=.3*a*1.5),s<Math.abs(u)){
	s=u;
	var r=i/4}
else var r=i/(2*Math.PI)*Math.asin(u/s);
	return 1>t?-.5*s*Math.pow(2,10*(t-=1))*Math.sin(2*(t*a-r)*Math.PI/i)+e:s*Math.pow(2,-10*(t-=1))*Math.sin(2*(t*a-r)*Math.PI/i)*.5+u+e}
,easeInBounce:function(n,t,e,a,r){
	return a-u.easeOutBounce(n,r-t,0,a,r)+e}
,easeOutBounce:function(n,t,e,u,a){
	return(t/=a)<1/2.75?7.5625*u*t*t+e:2/2.75>t?u*(7.5625*(t-=1.5/2.75)*t+.75)+e:2.5/2.75>t?u*(7.5625*(t-=2.25/2.75)*t+.9375)+e:u*(7.5625*(t-=2.625/2.75)*t+.984375)+e}
,easeInOutBounce:function(n,t,e,a,r){
	return r/2>t?.5*u.easeInBounce(n,2*t,0,a,r)+e:.5*u.easeOutBounce(n,2*t-r,0,a,r)+.5*a+e}
}
;
	e.exports=u}
);
	;
	define("wiki-common:widget/lib/jquery/jquery.js",function(e,i,j){
	var o=e("wiki-common:widget/lib/jquery/jquery_1.11.1.js");
	e("wiki-common:widget/lib/jquery/jquery.mousewheel.js")(o),j.exports=o}
);
	;
	define("wiki-common:widget/util/animation.js",function(t,n,e){
	function i(t){
	1==arguments.length&&"object"==o.type(arguments[0])?(this.duration=isNaN(parseInt(t.duration))?400:Math.abs(parseInt(t.duration)),this.delay=isNaN(parseInt(t.delay))?0:Math.abs(parseInt(t.delay)),this.easing="function"==o.type(t.easing)?t.easing:"function"==o.type(r[t.easing])?r[t.easing]:r.easeOutQuad,this.onStart="function"==o.type(t.onStart)?t.onStart:null,this.onStep="function"==o.type(t.onStep)?t.onStep:null,this.onComplete="function"==o.type(t.onComplete)?t.onComplete:null):(this.duration=isNaN(parseInt(arguments[0]))?400:Math.abs(parseInt(arguments[0])),this.delay=0,this.onStep="function"==o.type(arguments[1])?arguments[1]:null,this.easing=arguments[2]&&"function"==o.type(arguments[2])?arguments[2]:"function"==o.type(r[arguments[2]])?r[arguments[2]]:r.easeOutQuad,this.onComplete="function"==o.type(arguments[3])?arguments[3]:null),this.elapsedTime=0,this.progress=0,this.curDuration=0,this.hasAniStarted=!1,this.aniState="STOP",this.resume()}
function a(){
	return i.apply(this,arguments[0])}
var o=t("wiki-common:widget/lib/jquery/jquery.js"),r=t("wiki-common:widget/util/tween.js"),s=t("wiki-common:widget/util/safeCall.js"),u=["webkit","moz"],m=1e3/60,p=+new Date,l=window.performance&&"function"==o.type(window.performance.now),c={
}
;
	if(c.raf=window.requestAnimationFrame,c.caf=window.cancelAnimationFrame,!c.raf)for(var d=0;
	d<u.length&&(c.raf=window[u+"RequestAnimationFrame"],c.caf=window[u+"CancelAnimationFrame"]||window[u+"CancelRequestAnimationFrame"],!c.raf);
	++d);
	c.raf&&l||(c.raf=function(t){
	return setTimeout(function(){
	t(l?window.performance.now():new Date-p)}
,m)}
),c.caf||(c.caf=function(t){
	clearTimeout(t)}
),i.prototype={
	constructor:i,stop:function(){
	return"PLAY"==this.aniState?(this.aniState=this.progress<1?"PAUSED":"STOP",this.elapsedTime=this.curDuration,c.caf.call(window,this.aniRollId),this.progress):void 0}
,resume:function(){
	if("PLAY"!=this.aniState){
	var t=this;
	this.aniState="PLAY",this.startTick=l?window.performance.now():new Date-p,this.elapsedTime>0&&(this.delay=0),(this.aniRoll=function(n){
	var e=n-t.startTick;
	e>=t.delay&&(t.hasAniStarted?(t.curDuration=t.elapsedTime+e-t.delay,t.curDuration<t.duration&&(t.progress=t.easing(null,t.curDuration,0,1,t.duration),s(t.onStep,t.progress,t))):(t.hasAniStarted=!0,s(t.onStart,0,t),s(t.onStep,0,t))),t.curDuration<t.duration?t.aniRollId=c.raf.call(window,t.aniRoll):(t.progress<1&&s(t.onStep,1,t),t.elapsedTime=0,t.curDuration=0,t.hasAniStarted=!1,t.progress=0,t.aniState="STOP",s(t.onComplete,1,t))}
)(this.startTick)}
}
}
,a.prototype=i.prototype,e.exports=function(){
	if(arguments.length<1)throw new Error("[Animation Exception]:No arguments.");
	return new a(arguments)}
}
);
	;
	define("wiki-common:widget/util/safeCall.js",function(i,t,e){
	var n=i("wiki-common:widget/lib/jquery/jquery.js");
	e.exports=function(i,t,e){
	"use strict";
	return i&&"function"==n.type(i)?i.apply("object"==n.type(e)?e:null,void 0!==t?[].concat(t):[]):void 0}
}
);
	;
	define("wiki-common:widget/util/string.js",function(e,t,n){
	function r(e){
	return e?e+"":""}
function a(e,t){
	return e.substr(0,t).replace(/([^\x00-\xff])/g,"$1 ").substr(0,t).replace(/[^\x00-\xff]$/,"").replace(/([^\x00-\xff]) /g,"$1")}
function i(e,t){
	return e?Array(t+1).join(e):""}
var u=e("wiki-common:widget/lib/jquery/jquery.js"),o=e("wiki-common:widget/util/timeFormater.js"),c={
	getByteLen:function(e){
	return r(e).replace(/[^\x00-\xff]/g,"**").length}
,getSubStr:function(e,t,n){
	var i=r(e);
	if(Math.max(Math.floor(t),0)){
	n=void 0==n?"…":n+"";
	var u=this.getByteLen(n);
	this.getByteLen(e)>t&&(u>=t&&(n="",u=0),i=a(e,t-u)+n)}
return i}
,encodeHTML:function(e){
	return r(e).replace(/&/g,"&amp;
	").replace(/</g,"&lt;
	").replace(/>/g,"&gt;
	").replace(/"/g,"&quot;
	").replace(/'/g,"&#39;
	")}
,decodeHTML:function(e){
	var e=r(e).replace(/&quot;
	/g,'"').replace(/&lt;
	/g,"<").replace(/&gt;
	/g,">").replace(/&amp;
	/g,"&");
	return e.replace(/&#([\d]+);
	/g,function(){
	return String.fromCharCode(parseInt(arguments[1],10))}
)}
,toHalfWidth:function(e){
	return r(e).replace(/[\uFF01-\uFF5E]/g,function(e){
	return String.fromCharCode(e.charCodeAt(0)-65248)}
).replace(/\u3000/g," ")}
,encodeJSON:function(e){
	function t(e){
	return e.replace(/["\\\b\f\n\r\t]/g,function(e){
	return a[e]}
)}
var n,r=/^string|number|boolean$/,a={
	'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","":"\\t"}
;
	return r.test(u.type(e))?n=t(e+""):u.isPlainObject(e)?(n={
}
,u.each(e,function(e,r){
	n[t(e+"")]="string"==u.type(r)?t(r):r}
)):n=null,n}
,jsonStringify:function(e,t,n){
	function r(e,n){
	var r="",f=u.type(e),y=i(s,n);
	if(void 0===e||"function"==f)r=void 0;
	else if(null===e)r="null";
	else switch(f){
	case"string":r='"'+c.encodeJSON(e)+'"';
	break;
	case"number":r=isFinite(e)?e+"":"null";
	break;
	case"boolean":r=e+"";
	break;
	case"date":r='"'+(e.toJSON?e.toJSON():o.format(e,"yyyy-MM-ddTHH:mm:ss.fffZ",null,!0))+'"';
	break;
	case"array":for(var p="",d=0;
	d<e.length;
	++d){
	var m=t?t.call(e,d+"",e[d]):e[d];
	p+=i(s,n+1)+(void 0==m||"function"==u.type(m)?"null":arguments.callee(m,n+1))+","+g}
p=p.substr(0,p.length-(g?2:1)),r="["+(p?g+p+g+y:"")+"]";
	break;
	default:var b=!0,p="";
	for(key in e){
	var h=key+"",m="object"==u.type(e[key])&&"function"==u.type(e[key].toJSON)?e[key].toJSON():e[key];
	m=t?t.call(e,h,m):m,a.test(u.type(key))&&e.hasOwnProperty(key)&&void 0!==m&&"function"!=u.type(m)&&(!l||~u.inArray(h,l))&&(b=!1,p+=i(s,n+1)+'"'+c.encodeJSON(key)+'":'+(s?" ":"")+arguments.callee(m,n+1)+","+g)}
r=b?"{
}
":"{
	"+g+p.substr(0,p.length-(g?2:1))+g+y+"}
"}
return r}
var a=/^string|number|boolean$/,e={
	"":e}
,l="array"==u.type(t)?u.map(t,function(e){
	return e+""}
):null,t="function"==u.type(t)?t:null,f=u.type(n),s="number"==f?i(" ",Math.max(Math.min(n,10),0)):"string"==f?n.substr(0,10):null,g=s?"\n":"";
	return r(t?t.call(e,"",e[""]):e[""],0)}
,pad:function(e,t,n){
	e=r(e),n=r(n)||" ";
	var a=Math.max((t||0)-e.length,0);
	return i(n,a).substr(0,a)+e}
}
;
	window.JSON&&"function"==typeof window.JSON.stringify&&(c.jsonStringify=JSON.stringify),n.exports=c}
);
	;
	define("wiki-common:widget/component/cmsModuleLoader/cmsModuleLoader.js",function(e,i,o){
	var n=e("wiki-common:widget/lib/jquery/jquery.js"),t=e("wiki-common:widget/lib/jsmart/jsmart.js"),c=function(i,o){
	var c=i;
	n.ajax({
	type:"GET",url:c,dataType:"JSON",success:function(i){
	for(var n in o)i[n]&&e.async(o[n].script,function(e){
	e(new t(o[n].tpl).fetch(i[n]),i[n])}
)}
}
)}
;
	o.exports=c}
);
	;
	define("wiki-common:widget/component/searchbar/searchbar.js",function(e,t,i){
	function s(e){
	function t(e){
	window.baidu=window.baidu||{
}
,window.baidu.sug=function(t){
	var i=t.q||"",n=("bollean"==typeof t.p?req.p:!1,t.s||[]);
	n.unshift(i),s.list=n,s.renderSuggestion(e)}
}
var i="",s={
	selected:0,list:[],searchInOtherProducts:function(e,t,i){
	var s=n.trim(e.find("#query").val());
	location.href=s?t+encodeURIComponent(s):i}
,requestSuggestion:function(e){
	e&&""!=n.trim(e)?n.ajax({
	url:"http://nssug.baidu.com/su?wd="+encodeURIComponent(e)+"&prod=baike",dataType:"script",scriptCharset:"GBK"}
):window.baidu.sug({
	q:"",p:!1,s:[]}
)}
,renderSuggestion:function(e){
	if(s.list.length<=1)e.find("#suggestion").hide();
	else{
	for(var t="",i=1;
	i<s.list.length;
	i++)t+=s.list[i].match(s.list[0])?'<li class="matched">'+s.list[i].replace(s.list[0],'<span class="highlight">'+s.list[0]+"</span>")+"</li>":"<li>"+s.list[i]+"</li>";
	e.find("#suggestion > div").html(t),e.find("#suggestion").show()}
s.selected=0}
,hoverSuggestion:function(e){
	s.list.length>0?(e.find("#suggestion div li").removeClass("selected"),s.selected-1>=0&&e.find("#suggestion div li").eq(s.selected-1).addClass("selected")):s.requestSuggestion(n.trim(e.find("#query").val()))}
,selectSuggestion:function(e){
	s.list.length>0&&e.find("#query").val(s.list[s.selected])}
,closeSuggestion:function(e){
	s.selected=0,s.list=[],e.find("#suggestion > div").html(""),e.find("#suggestion").hide()}
,input:function(e){
	clearTimeout(i);
	var t=n.trim(e.find("#query").val());
	i=setTimeout(function(){
	s.requestSuggestion(t)}
,200)}
,search:function(e){
	var t=n.trim(e.find("#query").val());
	""==t&&e.find("#query").val("百度百科"),e.find("#searchForm").submit(),s.closeSuggestion()}
,searchLemma:function(e){
	var t=n.trim(e.find("#query").val());
	""==t&&e.find("#query").val("百度百科"),e.find("#searchLemmaQuery").val(e.find("#query").val()),e.find("#searchLemmaForm").submit()}
}
;
	e.find("#query").focus(),e.on("searchInOtherProducts",function(e,t){
	var i=t.attr("data-href"),o=t.attr("href");
	i&&o&&s.searchInOtherProducts(n(this),i,o)}
),e.on("suggestion:shiftUp",function(){
	s.selected=(s.selected-1)%s.list.length>=0?(s.selected-1)%s.list.length:(s.selected-1)%s.list.length+s.list.length,s.hoverSuggestion(n(this)),s.selectSuggestion(n(this))}
),e.on("suggestion:shiftDown",function(){
	s.selected=(s.selected+1)%s.list.length<s.list.length?(s.selected+1)%s.list.length:(s.selected+1)%s.list.length-s.list.length,s.hoverSuggestion(n(this)),s.selectSuggestion(n(this))}
),e.on("suggestion:hover",function(e,t){
	s.selected=t.index()+1,s.hoverSuggestion(n(this))}
),e.on("suggestion:leave",function(){
	s.selected=0,s.hoverSuggestion(n(this))}
),e.on("suggestion:close",function(){
	s.closeSuggestion(n(this))}
),e.on("suggestion:select",function(){
	s.selectSuggestion(n(this))}
),e.on("searchbar:input",function(){
	t(n(this)),s.input(n(this))}
),e.on("searchbar:search",function(){
	s.search(n(this))}
),e.on("searchbar:searchLemma",function(){
	s.searchLemma(n(this))}
),e.find(".search .nav a").on("click",function(){
	return n(this).trigger("searchInOtherProducts",[n(this)]),!1}
),e.find("#query").on("keydown",function(e){
	switch(e.keyCode){
	case 38:n(this).trigger("suggestion:shiftUp"),e.preventDefault();
	break;
	case 40:n(this).trigger("suggestion:shiftDown"),e.preventDefault();
	break;
	case 9:case 27:n(this).trigger("suggestion:close");
	break;
	case 13:$$(this).trigger("searchbar:search"),e.preventDefault()}
}
),e.find("#query").on("keyup",function(e){
	var t=e.keyCode;
	(t>=48&&57>=t||t>=65&&90>=t||t>=186&&192>=t||8==t||32==t||220==t)&&n(this).trigger("searchbar:input")}
),e.find("#suggestion div").on("mouseover","li",function(){
	n(this).trigger("suggestion:hover",[n(this)])}
),e.find("#suggestion div").on("mouseleave",function(){
	n(this).trigger("suggestion:leave")}
),e.find("#suggestion div").on("click","li",function(){
	n(this).trigger("suggestion:select"),n(this).trigger("searchbar:search")}
),e.find("#suggestion #close").on("click",function(){
	n(this).trigger("suggestion:close")}
),e.find("#search").on("click",function(){
	n(this).trigger("searchbar:search")}
),e.find("#searchLemma").on("click",function(){
	n(this).trigger("searchbar:searchLemma")}
),n("*").on("click",function(t){
	n(this).parents(".wgt-searchbar")===e?t.stopPropagation():e.trigger("suggestion:close")}
)}
var n=e("wiki-common:widget/lib/jquery/jquery.js");
	i.exports=s}
);
	;
	define("wiki-common:widget/component/userLogin/userLogin.js",function(o,n,i){
	var t=o("wiki-common:widget/lib/jquery/jquery.js"),e={
	onLogin:function(){
}
,onUnlogin:function(){
}
,onLoginSuccess:function(){
	window.location.href=window.location.href.replace(/#.*$/g,"")}
,onLoginFail:function(){
}
}
,p={
	api:{
	login:function(o,n){
	t.ajax({
	type:"GET",url:"/api/login/?t="+(new Date).getTime()+"&fr="+(o.patchment?o.patchment:""),dataType:"JSON",success:function(o){
	n(o)}
}
)}
,loginPop:function(o,n){
	t.getScript("http://passport.baidu.com/passApi/js/uni_login_wrapper.js?cdnversion="+(new Date).getTime(),function(){
	n()}
)}
}
}
,s={
	checkIfLogin:function(o){
	var n=o||{
}
,i=n.onLogin||e.onLogin,s=n.onUnlogin||e.onUnlogin;
	p.api.login(o,function(o){
	0==t.trim(o)?s():i(o)}
)}
,showLoginPop:function(o){
	var n=o||{
}
,i=n.onLoginSuccess||e.onLoginSuccess,t=n.onLoginFail||e.onLoginFail,s=function(){
	window.passport._loginPop=window.passport.pop.init({
	tangram:!0,apiOpt:{
	product:"wk",staticPage:"http://baike.baidu.com/static/common/html/v3Jump.html",memberPass:!0,safeFlag:0,u:window.location.href.replace(/#.*$/g,"")}
,authsiteCfg:{
	act:"implicit"}
,cache:!0,authsite:["renren","tsina","tqq","qzone","fetion"],registerLink:"https://passport.baidu.com/v2/?reg&regType=1&tpl=wk",onLoginSuccess:function(o){
	i(),window.passport._loginPop.hide(),o.returnValue=!1}
,onSubmitedErr:function(){
	t()}
}
),window.passport._loginPop.show()}
,a=function(){
	window.passport.hook.login.loginSuccess=function(o,n){
	i(),window.passport._loginPop.hide(),n.returnValue=!1}
,window.passport.hook.login.loginErr=function(){
	t()}
,window.passport._loginPop.show()}
;
	window.passport?a():p.api.loginPop({
}
,s)}
,logout:function(){
	window.location.href="https://passport.baidu.com/?logout&u="+encodeURIComponent(window.location.href)}
}
;
	i.exports=s}
);
	;
	define("wiki-common:widget/component/userMsg/userMsg.js",function(n,e,t){
	var s=n("wiki-common:widget/lib/jquery/jquery.js"),r=n("wiki-common:widget/component/userLogin/userLogin.js"),m={
	api:{
	msg:function(n,e){
	s.when(s.getScript("http://msg.baidu.com/ms?ct=18&cm=3&tn=bmSelfUsrStat&mpn=13227114&un="+n.username),s.ajax({
	type:"GET",url:"/ajax/getmessage?msg=1&events=1&r="+Math.random(),dataType:"JSON"}
)).done(function(){
	var n=redmsg?{
	redmsg:redmsg,msgnum:msgnum,sysnum:sysnum}
:{
	redmsg:0,msgnum:0,sysnum:0}
,t=0==arguments[1][0].errno?arguments[1][0].data:{
	msg:null,events:[],noticeNum:0,tousuNum:0}
;
	e(n,t)}
)}
}
}
,u={
	getUserMsg:function(){
	if("object"==typeof arguments[0]){
	var n=arguments[0];
	if("function"!=typeof arguments[1])throw new Error('[userMsg Exception]:Invalid argument "callback".');
	var e=arguments[1]}
else{
	if("function"!=typeof arguments[0])throw new Error('[userMsg Exception]:Invalid argument "callback".');
	var e=arguments[0]}
var t=function(n){
	m.api.msg({
	username:n.nameEnc}
,function(n,t){
	e(n,t)}
)}
;
	n?t(n):r.checkIfLogin({
}
,function(){
	return!1}
,function(n){
	t(n)}
)}
}
;
	t.exports=u}
);
	;
	define("wiki-common:widget/ui/bubble/bubble.js",function(t,i,e){
	function o(t){
	if(!t)throw new Error("[Bubble Exception]:No arguments.");
	if(!n(t.host).length)throw new Error('[Bubble Exception]:Invalid argument "host".');
	if(this.host=n(t.host),this.extClassNames=t.classNames||"",this.showTail="boolean"==n.type(t.showTail)?t.showTail:!1,this.marginFromHost=isNaN(parseInt(t.marginFromHost))?this.showTail?10:0:parseInt(t.marginFromHost),this.offset=n.extend({
	top:0,left:0}
,this.marginFromHost?null:t.offset),this.hideWhenBlur="boolean"==n.type(t.hideWhenBlur)?t.hideWhenBlur:!0,this.animation=/^FADE|SLIDE$/i.test(t.animation)?t.animation:"",this.hideAfterDelay=isNaN(parseInt(t.hideAfterDelay))?0:parseInt(t.hideAfterDelay)+(this.animation?200:0),this.content=t.content||"",this.onShow="function"==n.type(t.onShow)?t.onShow:null,this.onHide="function"==n.type(t.onHide)?t.onHide:null,this.isVisible=!1,this.blurProtect=[this.host[0]],t.blurProtect){
	t.blurProtect=[].concat(t.blurProtect);
	var i=this;
	n(t.blurProtect).each(function(t,e){
	var o=n(e);
	o.length&&o[0]!=i.host[0]&&!n.contains(i.host[0],o[0])&&i.blurProtect.push(o[0])}
)}
var e=t.pos&&t.pos.match(/^auto|(?:(top|right|bottom|left|hor|ver)(?:[- |]?(top|right|bottom|left|center|auto))?)$/i);
	this.pos=e?(e[1]||e[0]).toLowerCase():"auto",this.align="auto"==this.pos?"auto":e&&e[2]&&e[2]!=e[1]?e[2].toLowerCase():/ver|hor/.test(this.pos)?"auto":"center","hor"==this.pos&&(this.align=/^top|center|bottom|auto$/.test(this.align)?RegExp.$_:"auto"),"ver"==this.pos&&(this.align=/^left|center|right|auto$/.test(this.align)?RegExp.$_:"auto")}
function s(t){
	var i=n.extend("http://www.w3.org/2000/svg"==this.host[0].namespaceURI?this.host[0].getBBox():{
	width:this.host.outerWidth(),height:this.host.outerHeight()}
,this.host.offset()),e=n(document),o=n(window);
	n.extend(i,{
	viewTop:i.top-e.scrollTop(),viewRight:o.width()-(i.left-e.scrollLeft()+i.width),viewBottom:o.height()-(i.top-e.scrollTop()+i.height),viewLeft:i.left-e.scrollLeft()}
);
	var s={
	width:this.node.outerWidth(),height:this.node.outerHeight()}
,h=[o.width()*i.viewTop,o.height()*i.viewRight,o.width()*i.viewBottom,o.height()*i.viewLeft],l=[h[1],h[3]],a=[h[0],h[2]];
	~this.pos.indexOf("auto")?this.pos="auto-"+["top","right","bottom","left"][n(h).index(Math.max.apply(null,h))]:~this.pos.indexOf("hor")?this.pos="hor-"+["right","left"][n(l).index(Math.max.apply(null,l))]:~this.pos.indexOf("ver")&&(this.pos="ver-"+["top","bottom"][n(a).index(Math.max.apply(null,a))]);
	var r={
}
,d="SLIDE"==this.animation,u=this.pos.replace(/(?:auto|ver|hor)-/,""),p="pos_"+(u||"bottom");
	switch(u){
	case"top":this.aniSlide={
	direction:"top",len:d?-20:0}
,r.top=i.top-s.height-this.marginFromHost+(t?0:this.aniSlide.len);
	break;
	case"right":this.aniSlide={
	direction:"left",len:d?20:0}
,r.left=i.left+i.width+this.marginFromHost+(t?0:this.aniSlide.len);
	break;
	case"left":this.aniSlide={
	direction:"left",len:d?-20:0}
,r.left=i.left-s.width-this.marginFromHost+(t?0:this.aniSlide.len);
	break;
	default:this.aniSlide={
	direction:"top",len:d?20:0}
,r.top=i.top+i.height+this.marginFromHost+(t?0:this.aniSlide.len)}
~this.align.indexOf("auto")&&(this.align="auto-",this.align+=/top|bottom/.test(this.pos)?i.viewLeft*i.viewRight<0?i.viewLeft<i.viewRight?"right":"left":((i.width-s.width)/2+i.viewLeft)*((i.width-s.width)/2+i.viewRight)>0?"center":i.viewLeft>i.viewRight?"right":"left":i.viewTop*i.viewBottom<0?i.viewTop<i.viewBottom?"bottom":"top":((i.height-s.height)/2+i.viewTop)*((i.height-s.height)/2+i.viewBottom)>0?"center":i.viewTop>i.viewBottom?"bottom":"top");
	var c=this.align.replace(/auto-/,"");
	switch(p+=" align_"+(c||"center"),c){
	case"top":r.top=i.top;
	break;
	case"right":r.left=i.left+i.width-s.width;
	break;
	case"bottom":r.top=i.top+i.height-s.height;
	break;
	case"left":r.left=i.left;
	break;
	default:isNaN(parseInt(r.left))?r.left=i.left+(i.width-s.width)/2:r.top=i.top+(i.height-s.height)/2}
this.node.css({
	top:r.top+this.offset.top,left:r.left+this.offset.left}
).removeClass("pos_top pos_right pos_bottom pos_left align_top align_right align_bottom align_left align_center").addClass(p)}
function h(t){
	o.call(this,t),this.node=n('<div class="wgt_bubble"></div>').append(this.content).append(this.showTail?'<em class="tail">&#x25C6;
	</em>':"").addClass(this.extClassNames).appendTo(n("body")).hide(),this.blurProtect.push(this.node[0]);
	var i=this;
	this.hideWhenBlur&&n("body").on("click.bubble",function(t){
	var e=!1;
	n.each(i.blurProtect,function(i,o){
	try{
	if(t.target==o||n.contains(o,t.target))return e=!0,!1}
catch(s){
}
}
),!e&&i.hide()}
),n(window).on("resize.bubble",function(){
	i.resetPos()}
).on("scroll.bubble",function(){
	i.resetPos()}
)}
var n=t("wiki-common:widget/lib/jquery/jquery.js"),l=t("wiki-common:widget/util/safeCall.js");
	h.prototype={
	constructor:h,setHost:function(t){
	return n(t).length?(this.blurProtect.splice(n.inArray(this.host[0],this.blurProtect),1),this.host=n(t),this.blurProtect.push(this.host[0]),this):void 0}
,setContent:function(t){
	return this.content=t,this.node.empty().append(this.content),this.showTail&&this.node.append('<em class="tail">&#x25C6;
	</em>'),this}
,resetPos:function(){
	return this.isVisible&&s.call(this,!0),this}
,getNode:function(){
	return this.node}
,show:function(t){
	if(!this.isVisible){
	var i=this;
	if(this.isVisible=!0,this.node.show(),s.call(i),i.animation){
	var e={
	opacity:1}
;
	e[i.aniSlide.direction]="-="+i.aniSlide.len,i.node.css("opacity",0).animate(e,{
	duration:200,queue:!1,complete:function(){
	i.node.show(),l(t,null,i),l(i.onShow,null,i)}
}
)}
else l(t,null,i),l(i.onShow,null,i);
	return clearTimeout(i.hideDelayTimer),i.hideAfterDelay&&(i.hideDelayTimer=setTimeout(function(){
	i.hide()}
,i.hideAfterDelay)),this}
s.call(this,!0)}
,hide:function(t){
	if(this.isVisible){
	var i=this;
	if(this.isVisible=!1,this.animation){
	var e={
	opacity:0}
;
	e[this.aniSlide.direction]="+="+this.aniSlide.len,this.node.animate(e,{
	duration:200,queue:!1,complete:function(){
	i.node.hide(),l(t,null,i),l(i.onHide,null,i)}
}
)}
else this.node.hide(),l(t,null,i),l(this.onHide,null,i);
	return this}
}
}
,e.exports=h}
);
	;
	define("wiki-common:widget/ui/carousel/aniTypes/aniType_fade.js",function(i,n,t){
	var e=i("wiki-common:widget/lib/jquery/jquery.js"),s=i("wiki-common:widget/util/safeCall.js"),a=i("wiki-common:widget/util/animation.js");
	t.exports={
	name:"fade",init:function(){
	e.each(this.aniUnits,function(i,n){
	e(n).css({
	position:"absolute",left:"0",top:"0"}
)}
),/^relative|absolute|fixed$/.test(this.container.css("position"))||this.container.css("position","relative"),this.container.empty().append(e(this.aniUnits[this.ani.curIndex||0]))}
,playAni:function(i){
	var n=this;
	this.container.prepend(this.aniUnits[this.ani.targetIndex]),this.ani.engine?this.ani.engine.resume():this.ani.engine=a({
	duration:this.aniConfig.duration,easing:this.aniConfig.easing,onStart:function(){
	s(i.onStart,null,n)}
,onStep:function(i){
	n.ani.prevAniUnit.css("opacity",1-i)}
,onComplete:function(){
	n.ani.prevAniUnit.css("opacity",""),s(i.onComplete,null,n)}
}
)}
}
}
);
	;
	define("wiki-common:widget/ui/carousel/aniTypes/aniType_slide.js",function(i,t,n){
	var e=i("wiki-common:widget/lib/jquery/jquery.js"),s=i("wiki-common:widget/util/safeCall.js"),o=i("wiki-common:widget/util/animation.js");
	n.exports={
	name:"slide",checkAniConfig:function(){
	this.aniConfig.direction=/^(?:top|right|bottom|left)$/i.test(this.aniConfig.direction)?RegExp.$_.toLowerCase():"left",this.aniConfig.isPositive=/^(?:left|top)$/.test(this.aniConfig.direction),this.aniConfig.isVertical=/^(?:top|bottom)$/.test(this.aniConfig.direction)}
,init:function(){
	e.each(this.aniUnits,function(i,t){
	e(t).css({
	"float":"left",position:""}
)}
),this.container.css("position","absolute").css(this.aniConfig.isVertical?{
	width:this.aniUnitSize.width+"px",height:2*this.aniUnitSize.height+"px",top:"",left:""}
:{
	width:2*this.aniUnitSize.width+"px",height:this.aniUnitSize.height+"px",top:"",left:""}
).empty().append(e(this.aniUnits[this.ani.curIndex||0]))}
,playAni:function(i){
	var t=this;
	this.ani.shouldPrependAniUnit=!!(this.aniConfig.isPositive^(!this.aniConfig.autoReverse||this.ani.curTick<this.ani.targetTick)),this.ani.shouldPrependAniUnit&&this.container.css(this.aniConfig.isVertical?{
	top:"-"+this.aniUnitSize.height+"px"}
:{
	left:"-"+this.aniUnitSize.width+"px"}
),this.container[this.ani.shouldPrependAniUnit?"prepend":"append"].call(this.container,this.aniUnits[this.ani.targetIndex]),this.ani.engine?this.ani.engine.resume():this.ani.engine=o({
	duration:this.aniConfig.duration,easing:this.aniConfig.easing,onStart:function(){
	s(i.onStart,null,t)}
,onStep:function(i){
	t.container.css(t.aniConfig.isVertical?"top":"left",(t.ani.shouldPrependAniUnit?i-1:-i)*(t.aniConfig.isVertical?t.aniUnitSize.height:t.aniUnitSize.width)+"px")}
,onComplete:function(){
	t.container.css(t.aniConfig.isVertical?"top":"left","0"),s(i.onComplete,null,t)}
}
)}
}
}
);
	;
	define("wiki-common:widget/ui/carousel/carousel.js",function(i,t,n){
	function a(i){
	var t=void 0!=i&&"object"==h.type(i)&&!h.isEmptyObject(i);
	if(t&&(t=!i.requiredCSS||"array"==h.type(i.requiredCSS)&&i.requiredCSS.length>0,i.requiredCSS))for(var n=0;
	t&&n<i.requiredCSS.length;
	++n)t=!!c(i.requiredCSS[n]);
	return t}
function e(i,t){
	return h('<div class="img-slice"></div>').css({
	left:i+"px",top:t+"px","background-position":"-"+i+"px -"+t+"px"}
)}
function s(i,t,n){
	var a=[],s=[],r=this.aniUnitSize.width/i,o=this.aniUnitSize.height/t;
	switch(n){
	case"left":case"right":for(var u=0;
	i>u;
	++u){
	for(var c=[],l=0;
	t>l;
	++l){
	var g=e(u*r,l*o);
	c.push(g),a.push(g)}
s.push(c)}
"right"==n&&s.reverse();
	break;
	case"top":case"bottom":for(var u=0;
	t>u;
	++u){
	for(var c=[],l=0;
	i>l;
	++l){
	var g=e(l*r,u*o);
	c.push(g),a.push(g)}
s.push(c)}
"bottom"==n&&s.reverse();
	break;
	case"left top":case"bottom right":for(var u=0,p=i+t-1;
	p>u;
	++u){
	for(var c=[],l=Math.min(0,i),f=Math.min(u,i);
	f>=l;
	++l){
	var g=e((u-l)*r,l*o);
	c.push(g),a.push(g)}
s.push(c)}
~n.indexOf("bottom")&&s.reverse();
	break;
	case"right top":case"bottom left":for(var u=1-t;
	i>u;
	++u){
	for(var c=[],l=Math.max(0,u),f=Math.min(u+t,i);
	f>l;
	++l){
	var g=e(l*r,(l-u)*o);
	c.push(g),a.push(g)}
s.push(c)}
~n.indexOf("top")&&s.reverse();
	break;
	default:for(var T=h.map(new Array(i*t),function(i,t){
	return t}
);
	T.length;
	){
	var v=T.splice(Math.floor(Math.random()*T.length),1),g=e(v%i*r,Math.floor(v/i)*o);
	a.push(g),s.push(g)}
}
return{
	slices:a,sliceGroups:s}
}
function r(){
	var i=null,t=!1,n=this;
	h(this.pausingTriggers).on("mouseenter.carousel",function(){
	i=setTimeout(function(){
	t=!(!n.autoPlayTimer||!n.autoPlayInterval),i=null,n.stop()}
,200)}
).on("mouseleave.carousel",function(){
	!i&&t&&n.autoPlay(),clearTimeout(i),i=null}
)}
function o(i){
	if(!i)throw new Error("[Carousel Exception]:No arguments.");
	if(!h(i.container).length)throw new Error('[Carousel Exception]:Invalid argument "container".');
	if(this.container=h(i.container),this.aniUnits=h(".wgt_carousel_aniUnit",this.container).toArray(),this.aniUnitCount=this.aniUnits.length,this.aniQueue=[],this.aniType=a(i.aniType)?i.aniType:g,this.pausingTriggers=[this.container[0]],i.pausingTriggers){
	i.pausingTriggers=[].concat(i.pausingTriggers);
	var t=this,n=!1;
	h(i.pausingTriggers).each(function(i,a){
	var e=h(a);
	e.length&&e[0]!=t.container[0]&&(h.contains(t.container[0],e[0])||h.contains(e[0],t.container[0])?h.contains(e[0],t.container[0])&&(t.pausingTriggers.push(e[0]),n=!0):t.pausingTriggers.push(e[0]))}
),n&&t.pausingTriggers.splice(0,1)}
var e=h(this.aniUnits[0]);
	this.aniUnitSize=h.extend({
	width:e.outerWidth(),height:e.outerHeight()}
,"object"!=h.type(i.aniUnitSize)||h.isEmptyObject(i.aniUnitSize)?null:i.aniUnitSize),this.autoPlayInterval=isNaN(parseInt(i.autoPlayInterval))?4e3:Math.abs(parseInt(i.autoPlayInterval)),this.autoPlayTimer=null,this.onAniStart="function"==h.type(i.onAniStart)?i.onAniStart:null,this.onAniComplete="function"==h.type(i.onAniComplete)?i.onAniComplete:null,this.aniConfig=h.extend({
}
,i.aniConfig),this.aniConfig.duration=isNaN(parseInt(this.aniConfig.duration))?2e3:Math.abs(parseInt(this.aniConfig.duration)),this.aniConfig.autoReverse="boolean"==typeof this.aniConfig.autoReverse?this.aniConfig.autoReverse:!0,this.ani={
	engine:null,curTick:0,targetTick:0,curIndex:0,targetIndex:0,prevAniUnit:null,state:"STOP"}
,l(this.aniType.checkAniConfig,null,this)}
function u(i){
	this.sliceImg=s,o.call(this,i),r.call(this),l(this.aniType.init,null,this),this.autoPlayInterval&&this.autoPlay()}
var h=i("wiki-common:widget/lib/jquery/jquery.js"),c=i("wiki-common:widget/util/checkCSS.js"),l=i("wiki-common:widget/util/safeCall.js"),g=i("wiki-common:widget/ui/carousel/aniTypes/aniType_slide.js");
	u.prototype={
	constructor:u,autoPlay:function(){
	var i=this;
	this.autoPlayTimer=setTimeout(function(){
	i.play()}
,this.autoPlayInterval)}
,play:function(i){
	var t=this;
	if(i!==!1&&this.aniQueue.push(i),"STOP"==this.ani.state){
	clearTimeout(this.autoPlayTimer);
	var i=this.aniQueue.shift();
	i=isNaN(parseInt(i))?this.ani.curTick+1:0>i?this.ani.curTick-1:Math.floor(this.ani.curTick/this.aniUnitCount)*this.aniUnitCount+i%this.aniUnitCount,this.ani.targetTick=i,this.ani.curIndex=(this.ani.curTick%this.aniUnitCount+this.aniUnitCount)%this.aniUnitCount,this.ani.targetIndex=(this.ani.targetTick%this.aniUnitCount+this.aniUnitCount)%this.aniUnitCount,this.ani.curIndex!=this.ani.targetIndex&&(this.ani.prevAniUnit=h(".wgt_carousel_aniUnit",this.container),l(this.aniType.playAni,{
	onStart:function(){
	t.ani.state="PLAY",l(t.onAniStart,[t.ani.curIndex,t.ani.targetIndex],t)}
,onComplete:function(){
	t.ani.state="STOP",t.ani.curTick=t.ani.targetTick,t.ani.curIndex=t.ani.targetIndex,t.ani.prevAniUnit.remove(),l(t.onAniComplete,t.ani.curIndex,t),t.aniQueue.length?t.play(!1):t.autoPlayTimer&&t.autoPlayInterval&&t.autoPlay()}
}
,this))}
}
,stop:function(i){
	var t=this;
	if(clearTimeout(this.autoPlayTimer),this.autoPlayTimer=null,"PLAY"==this.ani.state&&i){
	var n=this.onAniComplete;
	this.onAniComplete=function(a){
	l(n,a,t),l(i,a,t),t.onAniComplete=n,n=null}
}
else l(i,t.ani.curIndex,t)}
,reset:function(i,t){
	var n=this;
	if(i){
	if(t="boolean"==typeof t?t:!0,this.aniQueue=[],this.aniType=a(i.aniType)?i.aniType:this.aniType,h.each(this.pausingTriggers,function(i,t){
	i=h(i),i.length?i.off(".carousel"):n.pausingTriggers.splice(t,1)}
),i.pausingTriggers){
	i.pausingTriggers=[].concat(i.pausingTriggers);
	var n=this,e=!1;
	h(i.pausingTriggers).each(function(i,t){
	var a=h(t);
	a.length&&a[0]!=n.container[0]&&(h.contains(n.container[0],a[0])||h.contains(a[0],n.container[0])?h.contains(a[0],n.container[0])&&(n.pausingTriggers.push(a[0]),e=!0):n.pausingTriggers.push(a[0]))}
),e&&n.pausingTriggers[0]==n.container[0]&&n.pausingTriggers.splice(0,1)}
r.call(this),this.autoPlayInterval=isNaN(parseInt(i.autoPlayInterval))?this.autoPlayInterval:Math.abs(parseInt(i.autoPlayInterval)),this.autoPlayTimer=null,this.onAniStart="function"==h.type(i.onAniStart)?i.onAniStart:this.onAniStart,this.onAniComplete="function"==h.type(i.onAniComplete)?i.onAniComplete:this.onAniComplete,this.aniConfig=h.extend(this.aniConfig,i.aniConfig),this.aniConfig.duration=isNaN(parseInt(this.aniConfig.duration))?2e3:Math.abs(parseInt(this.aniConfig.duration)),this.aniConfig.autoReverse="boolean"==typeof this.aniConfig.autoReverse?this.aniConfig.autoReverse:!0,this.ani={
	engine:null,curTick:t?this.ani.curTick:0,targetTick:t?this.ani.targetTick:0,curIndex:t?this.ani.curIndex:0,targetIndex:t?this.ani.targetIndex:0,prevAniUnit:t?this.ani.prevAniUnit:null,state:"STOP"}
;
	var s=h(this.aniUnits[this.ani.curIndex]);
	this.aniUnitSize=h.extend({
	width:s.outerWidth(),height:s.outerHeight()}
,"object"!=h.type(i.aniUnitSize)||h.isEmptyObject(i.aniUnitSize)?this.aniUnitSize:i.aniUnitSize),l(this.aniType.checkAniConfig,null,this),l(this.aniType.init,null,this)}
}
,destroy:function(){
	h(this.pausingTriggers).off(".carousel"),this.container.empty().append(this.aniUnits)}
}
,n.exports=u}
);
	;
	define("wiki-common:widget/ui/counter/counter.js",function(t,i,n){
	var s=t("wiki-common:widget/lib/jquery/jquery.js"),e=t("wiki-common:widget/util/safeCall.js"),l=t("wiki-common:widget/util/animation.js"),a=t("wiki-common:widget/util/number.js"),r=t("wiki-common:widget/util/checkCSS.js"),o={
	INCREASE:{
	init:function(t){
	this.container.html(this.numSplit(a.pad(t,this.numLen)))}
,countUpTo:function(t){
	var i=this,n=parseInt(t-this.value);
	n&&l(this.duration,function(t){
	i.init(parseInt(i.value+n*t))}
,"linear",function(){
	i.value=parseInt(t),i.init(i.value),e(i.onCountComplete,null,i)}
)}
}
,ROLLER:{
	init:function(t){
	var i=this,n=this.numSplit(a.pad(Math.abs(t),this.numLen)),e=s('<ul class="wgt_counter_roller cmn-clearfix">');
	s.each(n.split(""),function(t,n){
	var l=s("<li>");
	switch(n){
	case",":l.text(n).addClass("symbol");
	break;
	default:l.append('<ol style="top:'+(n-10)*i.numHeight+'px"><li>0</li><li>9</li><li>8</li><li>7</li><li>6</li><li>5</li><li>4</li><li>3</li><li>2</li><li>1</li><li>0</li></ol>')}
e.append(l)}
),this.rollers=s("ol",e),this.container.empty().append(e)}
,countUpTo:function(t){
	if(t=((Math.abs(parseInt(t))||this.value)+"").substr(-this.numLen),t!=this.value){
	for(var i=[],n=s.map(a.pad(t,this.numLen).split(""),function(t){
	return parseInt(t)}
),r=s.map(a.pad(this.value,this.numLen).split(""),function(t){
	return parseInt(t)}
),o=t-this.value,u=o/Math.abs(o),c=0;
	c<this.numLen;
	++c)i[c]=((n[c]-r[c])*u+10)%10*u;
	var h=this;
	l(this.duration,function(t){
	s.each(h.rollers,function(n,e){
	s(e).css("top",((r[n]+i[n]*t)%10-10)%10*h.numHeight+"px")}
)}
,null,function(){
	h.value=parseInt(t),e(h.onCountComplete,null,h)}
)}
}
}
,CARD:{
	init:function(t){
	var i=this.numSplit(a.pad(Math.abs(t),this.numLen)),n=s('<ul class="wgt_counter_card cmn-clearfix">');
	s.each(i.split(""),function(t,i){
	var e=s("<li>");
	switch(i){
	case",":e.text(i).addClass("symbol");
	break;
	default:e.append("<ol><li>"+i+"</li><li>"+i+"</li></ol><ol><li>"+i+"</li><li>"+i+"</li></ol>")}
n.append(e)}
),this.cards=s("ol",n),this.container.empty().append(n)}
,countUpTo:function(t){
	if(t=((Math.abs(parseInt(t))||this.value)+"").substr(-this.numLen),t!=this.value){
	var i=s.map(a.pad(t,this.numLen).split(""),function(t){
	return parseInt(t)}
),n=s.map(a.pad(this.value,this.numLen).split(""),function(t){
	return parseInt(t)}
),o=this;
	if(t>this.value){
	for(var u=0;
	u<this.numLen;
	++u)s("li:first-child",this.cards[2*u]).text(i[u]),s("li:last-child",this.cards[2*u+1]).text(i[u]);
	l(this.duration,function(t){
	for(var e=0;
	e<o.numLen;
	++e)i[e]!=n[e]&&(s(o.cards[2*e+1]).css(r("transform"),"rotateX("+-180*t+"deg)"),s("li:last-child",o.cards[2*e]).css("-webkit-filter","brightness("+(100-20*t)+"%)"),s("li:last-child",o.cards[2*e+1]).css("-webkit-filter","brightness("+(20*t+80)+"%)"))}
,null,function(){
	for(var n=0;
	n<o.numLen;
	++n)s("li:last-child",o.cards[2*n]).text(i[n]).css("-webkit-filter","brightness(100%)"),s("li:first-child",o.cards[2*n+1]).text(i[n]),s(o.cards[2*n+1]).css(r("transform"),"none"),o.value=parseInt(t),e(o.onCountComplete,null,o)}
)}
else for(var u=0;
	u<this.numLen;
	++u)s("li:first-child",this.cards[2*u+1]).text(i[u]),s(this.cards[2*u+1]).css(r("transform"),"rotateX(-180deg)"),s("li:last-child",this.cards[2*u]).text(i[u]),l(this.duration,function(t){
	for(var e=0;
	e<o.numLen;
	++e)i[e]!=n[e]&&(s(o.cards[2*e+1]).css(r("transform"),"rotateX("+-180*(1-t)+"deg)"),s("li:first-child",o.cards[2*e]).css("-webkit-filter","brightness("+(120-40*t)+"%)"),s("li:last-child",o.cards[2*e]).css("-webkit-filter","brightness("+(40*t+60)+"%)"))}
,null,function(){
	for(var n=0;
	n<o.numLen;
	++n)s("li:first-child",o.cards[2*n]).text(i[n]).css("-webkit-filter","brightness(100%)"),s("li:last-child",o.cards[2*n+1]).text(i[n]),s(o.cards[2*n+1]).css(r("transform"),"none"),o.value=parseInt(t),e(o.onCountComplete,null,o)}
)}
}
}
}
,u=function(t){
	if(!t)throw new Error("[Counter Exception]:No arguments.");
	if(!s(t.container).length)throw new Error('[Counter Exception]:Invalid argument "container".');
	this.container=s(t.container),this.value=parseInt(t.value)||0,this.numStyle=/^ROLLER|CARD$/i.test(t.numStyle)?t.numStyle:"INCREASE",this.numSplit=("boolean"==s.type(t.useSplit)?t.useSplit:!0)?a.split:String,this.numLen=parseInt(t.numLen)||(/^ROLLER|CARD$/i.test(this.numStyle)?(this.value+"").length:0),this.numHeight=parseInt(t.numHeight)||0,this.duration=parseInt(t.duration)||500,this.onCountComplete="function"==s.type(t.onCountComplete)?t.onCountComplete:null,this.init=o[this.numStyle].init,this.countUpTo=o[this.numStyle].countUpTo,this.init.call(this,this.value)}
;
	n.exports=u}
);
	;
	define("wiki-common:widget/ui/iqiyiPlayer/iqiyiPlayer.js",function(i,e,t){
	function a(){
	var i=n('<em class="swf-place-holder" id="swfPlaceHolder_'+this.idSuffix+'"></em>').appendTo(this.container.empty()),e=this;
	o.embedSWF("http://dispatcher.video.qiyi.com/disp/shareplayer.swf",i[0],"100%","100%",10,"http://www.macromedia.com/go/getflashplayer",n.extend({
	autoPlay:0,autoChainPlay:0,showSearch:0,showSearchBox:0,showControl:1,autoHideControl:1,showRecommend:0,showFocus:0,showShare:0,showLogo:1,isLoop:0,cyclePlay:0,coop:"coop_baiduBaike",cid:"qc_100001_300089",bd:1,showDock:0}
,this.initArgs.playerConfig||{
}
),n.extend({
	allowscriptaccess:"always",wmode:"Opaque",allowfullscreen:"false",bgcolor:"#000000"}
,this.initArgs.swfConfig||{
}
),{
	"class":"wgt_iqiyiplayer",id:"wgtIqiyiPlayer_"+this.idSuffix}
,function(i){
	i&&i.success&&(e.player=i.ref)}
)}
var n=i("wiki-common:widget/lib/jquery/jquery.js"),o=i("wiki-common:widget/lib/swfObject/swfObject.js"),l=i("wiki-common:widget/util/safeCall.js"),s=i("wiki-common:widget/util/guid.js"),r=i("wiki-common:widget/util/string.js").jsonStringify,y=function(i){
	if(!i)throw new Error("[IqiyiPlayer Exception]:No arguments.");
	if(!n(i.container).length)throw new Error('[IqiyiPlayer Exception]:Invalid argument "container".');
	var e=this;
	this.container=n(i.container),this.idSuffix=s(),this.playState="STOP",this.initArgs=i,this.onPlayerReady="function"==n.type(i.onPlayerReady)?i.onPlayerReady:null,this.onPlayStart="function"==n.type(i.onPlayStart)?i.onPlayStart:null,this.onPlayPause="function"==n.type(i.onPlayPause)?i.onPlayPause:null,this.onPlayEnd="function"==n.type(i.onPlayEnd)?i.onPlayEnd:null,this.onPlayerStateChange="function"==n.type(i.onPlayerStateChange)?i.onPlayerStateChange:null,a.call(this),window.lib={
	swf:{
	notice:function(i){
	if(i)if(i=n.parseJSON(i),"playerLoadSuccess"==i.type)l(e.onPlayerReady,null,e);
	else if("playerStateChange"==i.type){
	switch(i.data.state){
	case"Playing":e.playState="PLAY",l(e.onPlayStart,null,e);
	break;
	case"Paused":e.playState="PAUSE",l(e.onPlayPause,null,e);
	break;
	case"EndPlay":e.playState="STOP",l(e.onPlayEnd,null,e)}
l(e.onPlayerStateChange,i.data.state,e)}
}
}
}
}
;
	y.prototype={
	constructor:y,play:function(i,e){
	if(i&&e){
	var t={
	vid:i,tvId:e}
;
	this.initArgs.playerConfig=this.initArgs.playerConfig||{
}
,n.extend(this.initArgs.playerConfig,t),this.player&&this.player.loadQiyiVideo(r(t))}
else"PAUSE"==this.playState?this.player&&this.player.resumeQiyiVideo():"STOP"==this.playState&&this.initArgs.playerConfig&&(this.initArgs.playerConfig.autoPlay=1,a.call(this))}
,pause:function(){
	this.player&&this.player.pauseQiyiVideo()}
}
,t.exports=y}
);
	;
	define("wiki-common:widget/ui/marquee/marquee.js",function(t,i,e){
	function s(t,i){
	for(var e=Math.max(t,i),s=Math.min(t,i),n=e;
	n%s;
	)n+=e;
	return n}
function n(){
	var t=null,i=!1,e=this;
	a(this.pausingTriggers).on("mouseenter.marquee",function(){
	t=setTimeout(function(){
	i=!(!e.autoScrollTimer||!e.autoScrollInterval),t=null,e.stop()}
,200)}
).on("mouseleave.marquee",function(){
	!t&&i&&e.autoScroll(),clearTimeout(t),t=null}
)}
function o(t){
	if(!t)throw new Error("[Marquee Exception]:No arguments.");
	if(!a(t.container).length)throw new Error('[Marquee Exception]:Invalid argument "container".');
	if(this.container=a(t.container),this.units=a(".wgt_marquee_unit",this.container),this.unitCount=this.units.length,this.direction=/^(?:top|right|bottom|left)$/i.test(t.direction)?RegExp.$_.toLowerCase():"left",this.isPositive=/^(?:left|top)$/.test(this.direction),this.isVertical=/^(?:top|bottom)$/.test(this.direction),this.keyProperty=this.isPositive?this.isVertical?"top":"left":this.isVertical?"bottom":"right",this.isVarWidth="boolean"==typeof t.isVarWidth?t.isVarWidth:!1,this.isVarWidth){
	if("object"!=a.type(t.viewportSize))throw new Error('[Marquee Exception]:Invalid argument "viewportSize".');
	this.viewportSize=t.viewportSize,this.unitSize="array"==a.type(t.unitSize)&&t.unitSize.length==this.unitCount?t.unitSize:[]}
else{
	var i=a(this.units[0]);
	this.unitSize=a.extend({
	width:i.outerWidth(),height:i.outerHeight()}
,"object"!=a.type(t.unitSize)||a.isEmptyObject(t.unitSize)?null:t.unitSize),this.viewportCap=isNaN(parseInt(t.viewportCap))?1:Math.abs(parseInt(t.viewportCap)),this.scrollStep=isNaN(parseInt(t.scrollStep))?this.viewportCap:Math.max(Math.min(parseInt(t.scrollStep),this.viewportCap),1),this.scrollLen=(this.isVertical?this.unitSize.height:this.unitSize.width)*this.scrollStep,this.isContinuous="boolean"==typeof t.isContinuous?t.isContinuous:!1}
if(this.endBehavior=/^REVERSE|RESUME$/i.test(t.endBehavior)?RegExp.$_.toUpperCase():"REVERSE",this.isBackward=!1,this.pausingTriggers=[this.container[0]],t.pausingTriggers){
	t.pausingTriggers=[].concat(t.pausingTriggers);
	var e=this,s=!1;
	a(t.pausingTriggers).each(function(t,i){
	var n=a(i);
	n.length&&n[0]!=e.container[0]&&(a.contains(e.container[0],n[0])||a.contains(n[0],e.container[0])?a.contains(n[0],e.container[0])&&(e.pausingTriggers.push(n[0]),s=!0):e.pausingTriggers.push(n[0]))}
),s&&e.pausingTriggers.splice(0,1)}
this.autoScrollInterval=isNaN(parseInt(t.autoScrollInterval))?4e3:Math.abs(parseInt(t.autoScrollInterval)),this.autoScrollTimer=null,this.onAniStart="function"==a.type(t.onAniStart)?t.onAniStart:null,this.onAniComplete="function"==a.type(t.onAniComplete)?t.onAniComplete:null,this.duration=isNaN(parseInt(t.duration))?2e3:Math.abs(parseInt(t.duration)),this.easing=void 0,this.aniQueue=[],this.aniState="STOP",this.tick=0,this.maxTick=0,this.targetTick=0,this.aniEngine=null}
function r(t){
	o.call(this,t),this.isVertical||this.units.each(this.isPositive?function(){
	a(this).css("float","left")}
:function(){
	a(this).css("float","right")}
);
	var i=[];
	if(this.isVarWidth){
	if(!this.unitSize.length){
	var e=this;
	this.units.each(function(){
	var t=a(this);
	e.unitSize.push({
	width:t.outerWidth(),height:t.outerHeight()}
)}
)}
var r=0,h=0,l=this.isVertical?"height":"width";
	for(this.keySizePropertySum=0,this.scrollStops=[0];
	h<this.unitSize.length;
	)this.keySizePropertySum+=this.unitSize[h][l],r+this.unitSize[h][l]<=this.viewportSize[l]?r+=this.unitSize[h++][l]:(this.scrollStops.push(this.scrollStops[this.scrollStops.length-1]+r),r=0);
	this.maxTick=this.scrollStops.length-1,i=i.concat(this.units),this.container.css(this.isVertical?{
	width:this.unitSize[0].width+"px",height:this.keySizePropertySum+"px"}
:{
	width:this.keySizePropertySum+"px",height:this.unitSize[0].height+"px"}
)}
else{
	if(this.isContinuous){
	for(var u=s(this.scrollStep,this.unitCount)+this.viewportCap;
	i.length<u;
	)i=i.concat(this.units.clone().toArray());
	i.splice(u)}
else i=this.units.toArray();
	this.unitCount=i.length,this.maxTick=Math.ceil((this.unitCount-this.viewportCap)/this.scrollStep),this.container.css(this.isVertical?{
	width:this.unitSize.width+"px",height:this.unitSize.height*this.unitCount+"px"}
:{
	width:this.unitSize.width*this.unitCount+"px",height:this.unitSize.height+"px"}
)}
this.isVertical&&!this.isPositive&&i.reverse(),n.call(this),this.container.css(this.keyProperty,0).css("position","absolute").empty().append(i),this.autoScrollInterval&&this.autoScroll()}
var a=t("wiki-common:widget/lib/jquery/jquery.js"),h=t("wiki-common:widget/util/safeCall.js"),l=t("wiki-common:widget/util/animation.js");
	r.prototype={
	constructor:r,autoScroll:function(){
	var t=this;
	this.autoScrollTimer=setTimeout(function(){
	t.scroll(t.isBackward?-1:void 0)}
,this.autoScrollInterval)}
,scroll:function(t){
	var i=this;
	if(t!==!1&&!(this.autoScrollTimer&&this.autoScrollInterval&&0==this.aniQueue[0])&&this.aniQueue.push(t),"STOP"==this.aniState){
	clearTimeout(this.autoScrollTimer);
	var t=this.aniQueue.shift();
	this.targetTick=isNaN(parseInt(t))?this.tick+1:0>t?this.tick-1:t,this.targetTick<0&&(this.isContinuous?(this.tick=this.maxTick,this.targetTick=this.maxTick-1,this.container.css(this.keyProperty,-this.maxTick*this.scrollLen+"px")):this.targetTick=0),this.targetTick>this.maxTick&&(this.isContinuous?(this.tick=0,this.targetTick=1,this.container.css(this.keyProperty,0)):this.targetTick=this.maxTick),this.targetTick!=this.tick&&(this.aniEngine?this.aniEngine.resume():this.aniEngine=l({
	duration:this.duration,easing:this.easing,onStart:function(){
	i.aniState="SCROLL",h(i.onAniStart,null,i)}
,onStep:function(t){
	i.isVarWidth?i.container.css(i.keyProperty,-(i.scrollStops[i.tick]+t*(i.scrollStops[i.targetTick]-i.scrollStops[i.tick]))+"px"):i.container.css(i.keyProperty,-(i.tick+t*(i.targetTick-i.tick))*i.scrollLen+"px")}
,onComplete:function(){
	i.aniState="STOP",i.tick=i.targetTick,h(i.onAniComplete,null,i),i.aniQueue.length?i.scroll(!1):i.isContinuous?i.autoScrollTimer&&i.autoScrollInterval&&i.autoScroll():"RESUME"==i.endBehavior&&i.tick==i.maxTick?(i.aniQueue.push(0),setTimeout(function(){
	i.autoScrollTimer&&i.autoScrollInterval&&i.scroll(!1)}
,i.autoScrollInterval)):"REVERSE"==i.endBehavior&&(i.isBackward&&0==i.tick||!i.isBackward&&i.tick==i.maxTick)?(i.isBackward=!i.isBackward,i.autoScrollTimer&&i.autoScrollInterval&&i.autoScroll()):i.autoScrollTimer&&i.autoScrollInterval&&i.autoScroll()}
}
))}
}
,stop:function(t){
	var i=this;
	if(clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null,"SCROLL"==this.aniState&&t){
	var e=this.onAniComplete;
	this.onAniComplete=function(){
	h(e,null,i),h(t,null,i),i.onAniComplete=e,e=null}
}
else h(t,null,i)}
,destroy:function(){
	a(this.pausingTriggers).off(".marquee"),this.container.empty().append(this.units)}
}
,e.exports=r}
);
	;
	define("wiki-common:widget/ui/overlay/overlay.js",function(o,i,t){
	var s=o("wiki-common:widget/lib/jquery/jquery.js"),n=o("wiki-common:widget/util/safeCall.js"),e=o("wiki-common:widget/util/animation.js"),a=function(o){
	o=o||{
}
,this.host=s(s(o.host).length?o.host:"body"),this.opacity=isNaN(parseFloat(o.opacity))?.6:Math.min(Math.max(parseFloat(o.opacity),0),1),this.onShow="function"==s.type(o.onShow)?o.onShow:null,this.onHide="function"==s.type(o.onHide)?o.onHide:null,this.isShown=!1,this.node=s(".wgt_overlay",this.host).length?s(".wgt_overlay"):s('<div class="wgt_overlay"></div>').css("opacity",0).appendTo(this.host),"body"==this.host[0].tagName.toLowerCase()?this.node.css("position","fixed"):(this.node.css("position","absolute"),/^relative|absolute$/.test(this.host.css("position"))||this.host.css("position","relative"))}
;
	a.prototype={
	constructor:a,getNode:function(){
	return this.node}
,show:function(o,i){
	if(!this.isShown){
	var t=this;
	o=isNaN(parseInt(o))?200:Math.abs(parseInt(o)),this.node.css("opacity",0).show(),e(o,function(o){
	t.node.css("opacity",o*t.opacity)}
,"linear",function(){
	t.node.css("opacity",t.opacity),n(i,null,t),n(t.onShow,null,t)}
),this.isShown=!0}
}
,hide:function(o,i){
	if(this.isShown){
	var t=this;
	o=isNaN(parseInt(o))?200:Math.abs(parseInt(o)),e(o,function(o){
	t.node.css("opacity",(1-o)*t.opacity)}
,"linear",function(){
	t.node.hide(),n(i,null,t),n(t.onHide,null,t)}
),this.isShown=!1}
}
}
,t.exports=a}
);
	;
	define("wiki-common:widget/ui/pager/pagerBase.js",function(t,n,o){
	function e(t){
	if(!s(t.pContainer).length)throw new Error('[PagerBase Exception]:Invalid argument "pContainer".');
	if(isNaN(parseInt(t.conTotalCount))||parseInt(t.conTotalCount)<1)throw new Error('[PagerBase Exception]:Invalid argument "conTotalCount".');
	if(t.onIndexChange&&"function"!=typeof t.onIndexChange)throw new Error('[PagerBase Exception]:Invalid argument "onIndexChange".');
	this.conTotalCount=parseInt(t.conTotalCount)||0,this.pContainer=s(t.pContainer),this.conPerPage=parseInt(t.conPerPage)||this.conTotalCount,this.pTotalCount=Math.ceil(this.conTotalCount/this.conPerPage)||0,this.pMaxCount=parseInt(t.pMaxCount)||this.pTotalCount,this.containsEndTags="boolean"==typeof t.containsEndTags?t.containsEndTags:!0,this.pCount=Math.min(t.pMaxCount,this.pTotalCount)||this.pTotalCount,this.curIndex=parseInt(t.curIndex)||1,this.stopEvt="boolean"==typeof t.stopEvt?t.stopEvt:!1}
function a(){
	this.curIndex=isNaN(parseInt(this.curIndex))?1:Math.max(1,Math.min(parseInt(this.curIndex),this.pTotalCount));
	var t,n;
	switch(this.pCount){
	case 1:t=n=this.curIndex;
	break;
	case 2:t=this.curIndex==this.pTotalCount?this.pTotalCount-1:this.curIndex,n=t+1;
	break;
	default:t=this.curIndex-Math.ceil(this.pCount/2)+1,this.containsEndTags?(t=Math.max(1,Math.min(t,this.pTotalCount-this.pCount+1)),n=Math.min(t+this.pCount-1,this.pTotalCount)):(t=Math.max(2,Math.min(t,this.pTotalCount-this.pCount)),n=Math.min(t+this.pCount-1,this.pTotalCount-1))}
var o={
	curIndex:this.curIndex,pTotalCount:this.pTotalCount,pCount:this.pCount,pagers:{
}
}
;
	if(o.pagers.prev={
	index:Math.max(this.curIndex-1,1),state:1==this.curIndex?"disabled":"normal"}
,o.pagers.next={
	index:Math.min(this.curIndex+1,this.pTotalCount),state:this.curIndex==this.pTotalCount?"disabled":"normal"}
,o.pagers.first={
	index:1,state:1==this.curIndex?"cur":"normal"}
,o.pagers.last={
	index:this.pTotalCount,state:this.curIndex==this.pTotalCount?"cur":"normal"}
,this.containsEndTags||!(this.pCount<3)){
	o.pagers.normal=[];
	for(var e=t;
	n>=e;
	++e)o.pagers.normal.push({
	index:e,state:this.curIndex==e?"cur":"normal"}
)}
return o}
function i(t){
	var n=this;
	t&&(e.call(this,t),s(this.pContainer).on("click.pagerBase","[p-index]",function(t){
	n.curIndex=parseInt(s(this).attr("p-index")),n.stopEvt&&s.stopPropagation(),n.onIndexChange&&r(n.onIndexChange,[a.call(n),t],n)}
))}
var s=t("wiki-common:widget/lib/jquery/jquery.js"),r=t("wiki-common:widget/util/safeCall.js");
	i.prototype={
	constructor:i,getPagers:function(t){
	return this.curIndex=isNaN(parseInt(t))?this.curIndex:parseInt(t),a.call(this)}
,getCurIndex:function(){
	return this.curIndex}
,getPTotalCount:function(){
	return this.pTotalCount}
,baseReset:function(t){
	if(!t)throw new Error("[PagerBase Exception]:Invalid reset arguments.");
	t.pContainer=this.pContainer,t.conTotalCount="undefined"==typeof t.conTotalCount?this.conTotalCount:t.conTotalCount,t.conPerPage="undefined"==typeof t.conPerPage?this.conPerPage:t.conPerPage,t.pMaxCount="undefined"==typeof t.pMaxCount?this.pMaxCount:t.pMaxCount,t.containsEndTags="boolean"==typeof t.containsEndTags?t.containsEndTags:this.containsEndTags,t.curIndex="undefined"==typeof t.curIndex?this.curIndex:t.curIndex,t.stopEvt="boolean"==typeof t.stopEvt?t.stopEvt:this.stopEvt,t.onIndexChange="function"==s.type(t.onIndexChange)?t.onIndexChange:this.onIndexChange,e(this,t),this.curIndex=Math.min(t.curIndex,this.pTotalCount)}
,baseDestroy:function(){
	s(this.pContainer).off("click.pagerBase")}
}
,o.exports=i}
);
	;
	define("wiki-common:widget/component/userbar/userbar.js",function(e,a,n){
	var t=e("wiki-common:widget/lib/jquery/jquery.js"),i=e("wiki-common:widget/component/userLogin/userLogin.js"),s=e("wiki-common:widget/component/userMsg/userMsg.js"),l=e("wiki-common:widget/lib/jsmart/jsmart.js"),r=e("wiki-common:widget/ui/bubble/bubble.js"),o={
	userbar:{
	unlogin:new l('<li>\n<a href="http://www.baidu.com/">百度首页</a>\n</li>\n<li>\n<a data-event=\'login\' href="javascript:;
	">登录</a>\n</li>\n<li>\n<a href="https://passport.baidu.com/v2/?reg&regType=1&tpl=wk">注册<a>\n</li>'),login:new l('<li data-event="showUserMenu">\n<a href="javascript:;
	"><span class="bold">{
	%$user.name|f_escape_xml%}
</span></a>\n</li>\n<li>\n<a href="/mall/" target="_blank">商城</a>\n</li>\n<li data-event="showUserMsg">\n<a href="javascript:;
	">消息</a>\n</li>\n<li class="split">|</li>\n<li>\n<a href="http://www.baidu.com/">百度首页</a>\n</li>')}
,menu:{
	userMenu:new l('<ul>\n<li><a href="/uc/home" target="_blank">我的百科</a></li>\n<li><a href="/uc/task" target="_blank">我的任务</a></li>\n<li><a href="/uc/effort" target="_blank">我的词条</a></li>\n<li><a href="http://passport.baidu.com/center" target="_blank">账号设置</a></li>\n<li><a data-event="logout" href="javascript:;
	">退出</a></li>\n</ul>'),userMsg:new l('<ul>\n<li><a href="http://msg.baidu.com/" target="_blank">私信{
	%if $msg.baiduMsg.msgnum > 0%}
<span class="red">({
	%if $msg.baiduMsg.msgnum < 10%}
{
	%$msg.baiduMsg.msgnum|f_escape_xml%}
{
	%else%}
多条{
	%/if%}
)</span>{
	%/if%}
</a></li>\n<li><a href="messages" target="_blank">通知{
	%if $msg.baikeMsg.noticeNum > 0%}
<span class="red">({
	%if $msg.baikeMsg.noticeNum < 10%}
{
	%$msg.baikeMsg.noticeNum|f_escape_xml%}
{
	%else%}
多条{
	%/if%}
)</span>{
	%/if%}
</a></li>\n</ul>')}
,bubble:{
	lemmaMsg:new l('<ul>\n{
	%foreach $msg.baikeMsg.msg as $item%}
\n{
	%if $item.type == "passedVersion"%}
\n<li><a href="/uc/effort#1" target="_blank">{
	%$item.num|f_escape_xml%}
个版本已经通过</a></li>\n{
	%else if $item.type == "failedVersion"%}
\n<li><a href="/uc/effort#3" target="_blank">{
	%$item.num|f_escape_xml%}
个版本未能通过</a></li>\n{
	%else if $item.type == "midqualityVersion"%}
\n<li><a href="/uc/effort#7" target="_blank">{
	%$item.num|f_escape_xml%}
个版本被评为中级优质</a></li>\n{
	%else if $item.type == "HQVersion"%}
\n<li><a href="/uc/effort#8" target="_blank">{
	%$item.num|f_escape_xml%}
个版本被评为初级优质</a></li>\n{
	%else if $item.type == "modifiedVersion"%}
\n<li><a href="javascript:;
	" data-msgType="4" target="_blank">{
	%$item.num|f_escape_xml%}
个版本被修改</a></li>\n{
	%else if $item.type == "upperScoreLimit"%}
\n<li><a href="javascript:;
	" data-msgType="7" target="_blank">{
	%$item.num|f_escape_xml%}
个积分上限</a></li>\n{
	%else if $item.type == "lemmaDel"%}
\n<li><a href="/uc/effort#3" target="_blank">{
	%$item.num|f_escape_xml%}
个词条被删除</a></li>\n{
	%/if%}
\n{
	%/foreach%}
\n{
	%if $msg.baikeMsg.tousuNum%}
\n<li><a href="/messages" target="_blank">{
	%$msg.baikeMsg.tousuNum|f_escape_xml%}
个投诉处理结果</a></li>\n{
	%/if%}
\n<li class="cancelAlarm"><a href="/uc/usercard#msg" target="_blank">不再接收此类消息</a></li>\n</ul>\n<em class="cmn-icon cmn-icons cmn-icons_close close" data-event="close"></em>')}
}
,m={
	render:{
	userbar:function(e,a,n){
	e.html(o.userbar[a].fetch(n))}
,menu:function(e,a,n){
	var s=new r({
	host:e,content:o.menu[a].fetch(n),marginFromHost:7,pos:"bottomAuto",showTail:!0,classNames:"wgt-bubble-"+a}
),l=t(s.getNode());
	return e.mouseover(function(){
	s.show(function(){
	var a="";
	e.on("mouseleave",function(){
	a=setTimeout(function(){
	s.hide()}
,100)}
),l.on("mouseenter",function(){
	clearTimeout(a),l.on("mouseleave",function(){
	s.hide()}
)}
)}
)}
),l.on("click","a",function(){
	switch(t(this).attr("data-event")){
	case"logout":i.logout()}
}
),l}
,bubble:function(e,a,n){
	var i=new r({
	host:e,content:o.bubble[a].fetch(n),pos:"bottomAuto",showTail:!0,hideWhenBlur:!1,classNames:"wgt-bubble-"+a,offset:{
	top:7,left:-80}
}
),s=t(i.getNode());
	return i.show(),s}
}
}
,u={
	buildUserbar:function(e){
	i.checkIfLogin({
	onUnlogin:function(){
	m.render.userbar(e,"unlogin")}
,onLogin:function(a){
	s.getUserMsg(a,function(n,i){
	var s={
	user:a,msg:{
	baiduMsg:n,baikeMsg:i}
}
;
	if(m.render.userbar(e,"login",s),m.render.menu(e.find('li[data-event="showUserMenu"]'),"userMenu"),m.render.menu(e.find('li[data-event="showUserMsg"]'),"userMsg",s),null!=s.msg.baikeMsg.msg||s.msg.baikeMsg.tousuNum){
	var l=m.render.bubble(e.find('li[data-event="showUserMenu"]'),"lemmaMsg",s);
	l.on("click","a",function(){
	switch(t(this).attr("data-event")){
	case"readMessage":var e=t(this).attr("data-msgType");
	t.ajax({
	type:"GET",url:"/ajax/messageread",data:{
	type:e}
,dataType:"JSON",complete:function(){
	l.remove()}
}
)}
}
),l.find('[data-event="close"]').on("click",function(){
	t.ajax({
	type:"GET",url:"/ajax/messageread",data:{
	type:0}
,dataType:"JSON",complete:function(){
	l.remove()}
}
)}
)}
}
)}
}
),e.on("click","a",function(){
	switch(t(this).attr("data-event")){
	case"login":i.showLoginPop()}
}
)}
}
;
	n.exports=u}
);
	;
	define("wiki-common:widget/ui/pager/horPager/horPager.js",function(e,a,s){
	function t(e){
	return e.replace(/\s*<!--[\s\S]*?-->\s*/
g,"")}
function i(e){
	if(!e)throw new Error("[HorPager Exception]:No arguments.");
	if(e.onIndexChange&&"function"!=typeof e.onIndexChange)throw new Error('[HorPager Exception]:Invalid argument "onIndexChange".');
	this.showSinglePage="boolean"==typeof e.showSinglePage?e.showSinglePage:!0,this.autoRefresh="boolean"==typeof e.autoRefresh?e.autoRefresh:!0,this.template=new p(e.template?/^pagerTpl_(.+)$/.test(e.template)?f[RegExp.$1]||f["default"]:e.template:f["default"]),this.onIndexChange=function(a,s){
	this.autoRefresh&&this.show(),o(e.onIndexChange,[this.curIndex,s],this)}
}
function n(e){
	i.call(this,e),r.call(this,e),this.pContainer.addClass("wgt_horPager"),this.pContainer.addClass(e.template?/^pagerTpl_(.+)$/.test(e.template)?"wgt_horPager_tpl_"+(f[RegExp.$1]?RegExp.$1:"default"):"":"wgt_horPager_tpl_default"),this.show=function(){
	var e=this;
	setTimeout(function(){
	1!=e.pTotalCount||e.showSinglePage?(e.pContainer.show(),e.pContainer.html(e.template.fetch(e.getPagers(e.curIndex)))):e.hide()}
,0)}
,this.hide=function(){
	this.pContainer.hide()}
,this.getHTML=function(e){
	return 1!=this.pTotalCount||this.showSinglePage?this.template.fetch(this.getPagers(e)):""}
,this.reset=function(e){
	if(e){
	if(e.onIndexChange&&"function"!=typeof e.onIndexChange)throw new Error('[HorPager Exception]:Invalid reset argument "onIndexChange".');
	e.pContainer=this.pContainer,e.conTotalCount="undefined"==typeof e.conTotalCount?this.conTotalCount:e.conTotalCount,e.conPerPage="undefined"==typeof e.conPerPage?this.conPerPage:e.conPerPage,e.pMaxCount="undefined"==typeof e.pMaxCount?this.pMaxCount:e.pMaxCount,e.curIndex="undefined"==typeof e.curIndex?this.curIndex:e.curIndex,e.showSinglePage="undefined"==typeof e.showSinglePage?this.showSinglePage:"boolean"==typeof e.showSinglePage?e.showSinglePage:!0,e.stopEvt="boolean"==typeof e.stopEvt?e.stopEvt:this.stopEvt,e.autoRefresh="boolean"==typeof e.autoRefresh?e.autoRefresh:this.autoRefresh,this.template=e.template||this.template,this.onIndexChange=e.onIndexChange?function(a,s){
	this.autoRefresh&&this.show(),o(e.onIndexChange,[this.curIndex,s],this)}
:this.onIndexChange,this.baseReset(e),this.autoRefresh&&this.show()}
}
,this.destroy=function(){
	this.pContainer.empty(),this.baseDestroy()}
}
var r=(e("wiki-common:widget/lib/jquery/jquery.js"),e("wiki-common:widget/ui/pager/pagerBase.js")),p=e("wiki-common:widget/lib/jsmart/jsmart.js"),o=e("wiki-common:widget/util/safeCall.js"),f={
	"default":t('\n<a href="javascript:;
	" class="pTag prev{
	%if $pagers.prev.state == "disabled"%}
disabled{
	%/if%}
"{
	%if $pagers.prev.state != "disabled"%}
p-index="{
	%$pagers.prev.index|f_escape_xml%}
"{
	%/if%}
>上一页</a>\n<a href="javascript:;
	" class="pTag{
	%if $pagers.first.state == "cur"%}
cur{
	%/if%}
"{
	%if $pagers.first.state != "cur"%}
p-index="{
	%$pagers.first.index|f_escape_xml%}
"{
	%/if%}
>{
	%$pagers.first.index|f_escape_xml%}
</a>\n{
	%if $pagers.normal && $pagers.normal[0].index > 2%}
\n<span class="ellipsis">&hellip;
	</span>\n{
	%/if%}
\n{
	%foreach $pagers.normal as $pager%}
\n{
	%if $pager.index > 1 && $pager.index < $pTotalCount%}
\n<a href="javascript:;
	" class="pTag{
	%if $pager.state == "cur"%}
cur{
	%/if%}
"{
	%if $pager.state != "cur"%}
p-index="{
	%$pager.index|f_escape_xml%}
"{
	%/if%}
>{
	%$pager.index|f_escape_xml%}
</a>\n{
	%/if%}
\n{
	%/foreach%}
\n{
	%if $pagers.normal && $pagers.normal[$pagers.normal|count - 1].index < $pTotalCount - 1%}
\n<span class="ellipsis">&hellip;
	</span>\n{
	%/if%}
\n{
	%if $pCount > 1%}
\n<a href="javascript:;
	" class="pTag{
	%if $pagers.last.state == "cur"%}
cur{
	%/if%}
"{
	%if $pagers.last.state != "cur"%}
p-index="{
	%$pagers.last.index|f_escape_xml%}
"{
	%/if%}
>{
	%$pagers.last.index|f_escape_xml%}
</a>\n{
	%/if%}
\n<a href="javascript:;
	" class="pTag next{
	%if $pagers.next.state == "disabled"%}
disabled{
	%/if%}
"{
	%if $pagers.next.state != "disabled"%}
p-index="{
	%$pagers.next.index|f_escape_xml%}
"{
	%/if%}
>下一页</a>'),noEllipsis:t('\n<a href="javascript:;
	" class="pTag first{
	%if $pagers.first.state == "cur"%}
disabled{
	%/if%}
"{
	%if $pagers.first.state != "cur"%}
p-index="{
	%$pagers.first.index|f_escape_xml%}
"{
	%/if%}
>首页</a>\n<span class="separator{
	%if $pagers.first.state == "cur"%}
disabled{
	%/if%}
"></span>\n<a href="javascript:;
	" class="pTag prev{
	%if $pagers.prev.state == "disabled"%}
disabled{
	%/if%}
"{
	%if $pagers.prev.state != "disabled"%}
p-index="{
	%$pagers.prev.index|f_escape_xml%}
"{
	%/if%}
><em>&lt;
	</em>上一页</a>\n<span class="separator{
	%if $pagers.prev.state == "disabled"%}
disabled{
	%/if%}
"></span>\n{
	%foreach $pagers.normal as $pager%}
\n<a href="javascript:;
	" class="pTag{
	%if $pager.state == "cur"%}
cur{
	%/if%}
"{
	%if $pager.state != "cur"%}
p-index="{
	%$pager.index|f_escape_xml%}
"{
	%/if%}
>{
	%$pager.index|f_escape_xml%}
</a>\n{
	%/foreach%}
\n<span class="separator{
	%if $pagers.next.state == "disabled"%}
disabled{
	%/if%}
"></span>\n<a href="javascript:;
	" class="pTag next{
	%if $pagers.next.state == "disabled"%}
disabled{
	%/if%}
"{
	%if $pagers.next.state != "disabled"%}
p-index="{
	%$pagers.next.index|f_escape_xml%}
"{
	%/if%}
>下一页<em>&gt;
	</em></a>\n<span class="separator{
	%if $pagers.last.state == "cur"%}
disabled{
	%/if%}
"></span>\n<a href="javascript:;
	" class="pTag last{
	%if $pagers.last.state == "cur"%}
disabled{
	%/if%}
"{
	%if $pagers.last.state != "cur"%}
p-index="{
	%$pagers.last.index|f_escape_xml%}
"{
	%/if%}
>尾页</a>'),arrowOnly:t('\n<span class="pNum"><em>{
	%$curIndex|f_escape_xml%}
</em>/{
	%$pTotalCount|f_escape_xml%}
</span>\n<span class="pTagBox">\n<a href="javascript:;
	" class="pTag prev{
	%if $pagers.prev.state == "disabled"%}
disabled{
	%/if%}
"{
	%if $pagers.prev.state != "disabled"%}
p-index="{
	%$pagers.prev.index|f_escape_xml%}
"{
	%/if%}
>&lt;
	</a>\n<a href="javascript:;
	" class="pTag next{
	%if $pagers.next.state == "disabled"%}
disabled{
	%/if%}
"{
	%if $pagers.next.state != "disabled"%}
p-index="{
	%$pagers.next.index|f_escape_xml%}
"{
	%/if%}
>&gt;
	</a>\n</span>'),dot:t('\n{
	%foreach $pagers.normal as $pager%}
\n<a href="javascript:;
	" class="pTag{
	%if $pager.state == "cur"%}
cur{
	%/if%}
"{
	%if $pager.state != "cur"%}
p-index="{
	%$pager.index|f_escape_xml%}
"{
	%/if%}
><em class="cmn-icon cmn-icons cmn-icons_circle"></em></a>\n{
	%/foreach%}
')}
;
	n.prototype=new r,s.exports=n}
);
	

JS代码(wiki-common_sync_js_1_b8cc5ae.js):

define("wiki-common:widget/lib/kinetic/kinetic.js",function(t,e,i){
	var n={
}
;
	!function(t){
	var e=Math.PI/180;
	n={
	version:"5.1.0",stages:[],idCounter:0,ids:{
}
,names:{
}
,shapes:{
}
,listenClickTap:!1,inDblClickWindow:!1,enableTrace:!1,traceArrMax:100,dblClickWindow:400,pixelRatio:void 0,dragDistance:0,angleDeg:!0,UA:function(){
	var e=t.navigator&&t.navigator.userAgent||"",i=e.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(i)||/(webkit)[ \/]([\w.]+)/.exec(i)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(i)||/(msie) ([\w.]+)/.exec(i)||i.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(i)||[],a=!!e.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i);
	return{
	browser:n[1]||"",version:n[2]||"0",mobile:a}
}
(),Filters:{
}
,Node:function(t){
	this._init(t)}
,Shape:function(t){
	this.__init(t)}
,Container:function(t){
	this.__init(t)}
,Stage:function(t){
	this.___init(t)}
,BaseLayer:function(t){
	this.___init(t)}
,Layer:function(t){
	this.____init(t)}
,FastLayer:function(t){
	this.____init(t)}
,Group:function(t){
	this.___init(t)}
,isDragging:function(){
	var t=n.DD;
	return t?t.isDragging:!1}
,isDragReady:function(){
	var t=n.DD;
	return t?!!t.node:!1}
,_addId:function(t,e){
	void 0!==e&&(this.ids[e]=t)}
,_removeId:function(t){
	void 0!==t&&delete this.ids[t]}
,_addName:function(t,e){
	void 0!==e&&(void 0===this.names[e]&&(this.names[e]=[]),this.names[e].push(t))}
,_removeName:function(t,e){
	if(void 0!==t){
	var i=this.names[t];
	if(void 0!==i){
	for(var n=0;
	n<i.length;
	n++){
	var a=i[n];
	a._id===e&&i.splice(n,1)}
0===i.length&&delete this.names[t]}
}
}
,getAngle:function(t){
	return this.angleDeg?t*e:t}
}
}
(this),function(t,e){
	"function"==typeof define&&define.amd&&define(e),n.document=document,n.window=window,n.root=t}
((1,eval)("this"),function(){
	return n}
),function(){
	n.Collection=function(){
	var t=[].slice.call(arguments),e=t.length,i=0;
	for(this.length=e;
	e>i;
	i++)this[i]=t[i];
	return this}
,n.Collection.prototype=[],n.Collection.prototype.each=function(t){
	for(var e=0;
	e<this.length;
	e++)t(this[e],e)}
,n.Collection.prototype.toArray=function(){
	var t,e=[],i=this.length;
	for(t=0;
	i>t;
	t++)e.push(this[t]);
	return e}
,n.Collection.toCollection=function(t){
	var e,i=new n.Collection,a=t.length;
	for(e=0;
	a>e;
	e++)i.push(t[e]);
	return i}
,n.Collection._mapMethod=function(t){
	n.Collection.prototype[t]=function(){
	var e,i=this.length,n=[].slice.call(arguments);
	for(e=0;
	i>e;
	e++)this[e][t].apply(this[e],n);
	return this}
}
,n.Collection.mapMethods=function(t){
	var e=t.prototype;
	for(var i in e)n.Collection._mapMethod(i)}
,n.Transform=function(t){
	this.m=t&&t.slice()||[1,0,0,1,0,0]}
,n.Transform.prototype={
	copy:function(){
	return new n.Transform(this.m)}
,point:function(t){
	var e=this.m;
	return{
	x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}
}
,translate:function(t,e){
	return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this}
,scale:function(t,e){
	return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this}
,rotate:function(t){
	var e=Math.cos(t),i=Math.sin(t),n=this.m[0]*e+this.m[2]*i,a=this.m[1]*e+this.m[3]*i,r=this.m[0]*-i+this.m[2]*e,s=this.m[1]*-i+this.m[3]*e;
	return this.m[0]=n,this.m[1]=a,this.m[2]=r,this.m[3]=s,this}
,getTranslation:function(){
	return{
	x:this.m[4],y:this.m[5]}
}
,skew:function(t,e){
	var i=this.m[0]+this.m[2]*e,n=this.m[1]+this.m[3]*e,a=this.m[2]+this.m[0]*t,r=this.m[3]+this.m[1]*t;
	return this.m[0]=i,this.m[1]=n,this.m[2]=a,this.m[3]=r,this}
,multiply:function(t){
	var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],i=this.m[1]*t.m[0]+this.m[3]*t.m[1],n=this.m[0]*t.m[2]+this.m[2]*t.m[3],a=this.m[1]*t.m[2]+this.m[3]*t.m[3],r=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],s=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];
	return this.m[0]=e,this.m[1]=i,this.m[2]=n,this.m[3]=a,this.m[4]=r,this.m[5]=s,this}
,invert:function(){
	var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,i=-this.m[1]*t,n=-this.m[2]*t,a=this.m[0]*t,r=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),s=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);
	return this.m[0]=e,this.m[1]=i,this.m[2]=n,this.m[3]=a,this.m[4]=r,this.m[5]=s,this}
,getMatrix:function(){
	return this.m}
,setAbsolutePosition:function(t,e){
	var i=this.m[0],n=this.m[1],a=this.m[2],r=this.m[3],s=this.m[4],o=this.m[5],h=(i*(e-o)-n*(t-s))/(i*r-n*a),c=(t-s-a*h)/i;
	return this.translate(c,h)}
}
;
	var t="2d",i="[object Array]",a="[object Number]",r="[object String]",s=Math.PI/180,o=180/Math.PI,h="#",c="",l="0",d="Kinetic warning:",u="Kinetic error:",f="rgb(",g={
	aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]}
,p=/rgb\((\d{
	1,3}
),(\d{
	1,3}
),(\d{
	1,3}
)\)/;
	n.Util={
	_isElement:function(t){
	return!(!t||1!=t.nodeType)}
,_isFunction:function(t){
	return!!(t&&t.constructor&&t.call&&t.apply)}
,_isObject:function(t){
	return!!t&&t.constructor==Object}
,_isArray:function(t){
	return Object.prototype.toString.call(t)==i}
,_isNumber:function(t){
	return Object.prototype.toString.call(t)==a}
,_isString:function(t){
	return Object.prototype.toString.call(t)==r}
,_throttle:function(t,e,i){
	var n,a,r,s=null,o=0;
	i||(i={
}
);
	var h=function(){
	o=i.leading===!1?0:(new Date).getTime(),s=null,r=t.apply(n,a),n=a=null}
;
	return function(){
	var c=(new Date).getTime();
	o||i.leading!==!1||(o=c);
	var l=e-(c-o);
	return n=this,a=arguments,0>=l?(clearTimeout(s),s=null,o=c,r=t.apply(n,a),n=a=null):s||i.trailing===!1||(s=setTimeout(h,l)),r}
}
,_hasMethods:function(t){
	var e,i=[];
	for(e in t)this._isFunction(t[e])&&i.push(e);
	return i.length>0}
,createCanvasElement:function(){
	var t=n.document.createElement("canvas");
	return t.style=t.style||{
}
,t}
,isBrowser:function(){
	return"object"!=typeof e}
,_isInDocument:function(t){
	for(;
	t=t.parentNode;
	)if(t==n.document)return!0;
	return!1}
,_simplifyArray:function(t){
	var e,i,a=[],r=t.length,s=n.Util;
	for(e=0;
	r>e;
	e++)i=t[e],s._isNumber(i)?i=Math.round(1e3*i)/1e3:s._isString(i)||(i=i.toString()),a.push(i);
	return a}
,_getImage:function(e,i){
	var a,r;
	if(e)if(this._isElement(e))i(e);
	else if(this._isString(e))a=new n.window.Image,a.onload=function(){
	i(a)}
,a.src=e;
	else if(e.data){
	r=n.Util.createCanvasElement(),r.width=e.width,r.height=e.height;
	var s=r.getContext(t);
	s.putImageData(e,0,0),this._getImage(r.toDataURL(),i)}
else i(null);
	else i(null)}
,_getRGBAString:function(t){
	var e=t.red||0,i=t.green||0,n=t.blue||0,a=t.alpha||1;
	return["rgba(",e,",",i,",",n,",",a,")"].join(c)}
,_rgbToHex:function(t,e,i){
	return((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)}
,_hexToRgb:function(t){
	t=t.replace(h,c);
	var e=parseInt(t,16);
	return{
	r:e>>16&255,g:e>>8&255,b:255&e}
}
,getRandomColor:function(){
	for(var t=(16777215*Math.random()<<0).toString(16);
	t.length<6;
	)t=l+t;
	return h+t}
,get:function(t,e){
	return void 0===t?e:t}
,getRGB:function(t){
	var e;
	return t in g?(e=g[t],{
	r:e[0],g:e[1],b:e[2]}
):t[0]===h?this._hexToRgb(t.substring(1)):t.substr(0,4)===f?(e=p.exec(t.replace(/ /g,"")),{
	r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}
):{
	r:0,g:0,b:0}
}
,_merge:function(t,e){
	var i=this._clone(e);
	for(var n in t)i[n]=this._isObject(t[n])?this._merge(t[n],i[n]):t[n];
	return i}
,cloneObject:function(t){
	var e={
}
;
	for(var i in t)e[i]=this._isObject(t[i])?this.cloneObject(t[i]):this._isArray(t[i])?this.cloneArray(t[i]):t[i];
	return e}
,cloneArray:function(t){
	return t.slice(0)}
,_degToRad:function(t){
	return t*s}
,_radToDeg:function(t){
	return t*o}
,_capitalize:function(t){
	return t.charAt(0).toUpperCase()+t.slice(1)}
,error:function(t){
	throw new Error(u+t)}
,warn:function(t){
	n.root.console&&console.warn&&console.warn(d+t)}
,extend:function(t,e){
	for(var i in e.prototype)i in t.prototype||(t.prototype[i]=e.prototype[i])}
,addMethods:function(t,e){
	var i;
	for(i in e)t.prototype[i]=e[i]}
,_getControlPoints:function(t,e,i,n,a,r,s){
	var o=Math.sqrt(Math.pow(i-t,2)+Math.pow(n-e,2)),h=Math.sqrt(Math.pow(a-i,2)+Math.pow(r-n,2)),c=s*o/(o+h),l=s*h/(o+h),d=i-c*(a-t),u=n-c*(r-e),f=i+l*(a-t),g=n+l*(r-e);
	return[d,u,f,g]}
,_expandPoints:function(t,e){
	var i,a,r=t.length,s=[];
	for(i=2;
	r-2>i;
	i+=2)a=n.Util._getControlPoints(t[i-2],t[i-1],t[i],t[i+1],t[i+2],t[i+3],e),s.push(a[0]),s.push(a[1]),s.push(t[i]),s.push(t[i+1]),s.push(a[2]),s.push(a[3]);
	return s}
,_removeLastLetter:function(t){
	return t.substring(0,t.length-1)}
}
}
(),function(){
	var t=n.Util.createCanvasElement(),e=t.getContext("2d"),i=n.UA.mobile?function(){
	var t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;
	return t/i}
():1;
	n.Canvas=function(t){
	this.init(t)}
,n.Canvas.prototype={
	init:function(t){
	t=t||{
}
;
	var e=t.pixelRatio||n.pixelRatio||i;
	this.pixelRatio=e,this._canvas=n.Util.createCanvasElement(),this._canvas.style.padding=0,this._canvas.style.margin=0,this._canvas.style.border=0,this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top=0,this._canvas.style.left=0}
,getContext:function(){
	return this.context}
,getPixelRatio:function(){
	return this.pixelRatio}
,setPixelRatio:function(t){
	this.pixelRatio=t,this.setSize(this.getWidth(),this.getHeight())}
,setWidth:function(t){
	this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px"}
,setHeight:function(t){
	this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px"}
,getWidth:function(){
	return this.width}
,getHeight:function(){
	return this.height}
,setSize:function(t,e){
	this.setWidth(t),this.setHeight(e)}
,toDataURL:function(t,e){
	try{
	return this._canvas.toDataURL(t,e)}
catch(i){
	try{
	return this._canvas.toDataURL()}
catch(a){
	return n.Util.warn("Unable to get data URL. "+a.message),""}
}
}
}
,n.SceneCanvas=function(t){
	t=t||{
}
;
	var e=t.width||0,i=t.height||0;
	n.Canvas.call(this,t),this.context=new n.SceneContext(this),this.setSize(e,i)}
,n.SceneCanvas.prototype={
	setWidth:function(t){
	var e=this.pixelRatio,i=this.getContext()._context;
	n.Canvas.prototype.setWidth.call(this,t),i.scale(e,e)}
,setHeight:function(t){
	var e=this.pixelRatio,i=this.getContext()._context;
	n.Canvas.prototype.setHeight.call(this,t),i.scale(e,e)}
}
,n.Util.extend(n.SceneCanvas,n.Canvas),n.HitCanvas=function(t){
	t=t||{
}
;
	var e=t.width||0,i=t.height||0;
	n.Canvas.call(this,t),this.context=new n.HitContext(this),this.setSize(e,i)}
,n.Util.extend(n.HitCanvas,n.Canvas)}
(),function(){
	var t=",",e="(",i=")",a="([",r="])",s=";
	",o="()",h="=",c=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"];
	n.Context=function(t){
	this.init(t)}
,n.Context.prototype={
	init:function(t){
	this.canvas=t,this._context=t._canvas.getContext("2d"),n.enableTrace&&(this.traceArr=[],this._enableTrace())}
,fillShape:function(t){
	t.getFillEnabled()&&this._fill(t)}
,strokeShape:function(t){
	t.getStrokeEnabled()&&this._stroke(t)}
,fillStrokeShape:function(t){
	var e=t.getFillEnabled();
	e&&this._fill(t),t.getStrokeEnabled()&&this._stroke(t)}
,getTrace:function(c){
	var l,d,u,f,g=this.traceArr,p=g.length,v="";
	for(l=0;
	p>l;
	l++)d=g[l],u=d.method,u?(f=d.args,v+=u,v+=c?o:n.Util._isArray(f[0])?a+f.join(t)+r:e+f.join(t)+i):(v+=d.property,c||(v+=h+d.val)),v+=s;
	return v}
,clearTrace:function(){
	this.traceArr=[]}
,_trace:function(t){
	var e,i=this.traceArr;
	i.push(t),e=i.length,e>=n.traceArrMax&&i.shift()}
,reset:function(){
	var t=this.getCanvas().getPixelRatio();
	this.setTransform(1*t,0,0,1*t,0,0)}
,getCanvas:function(){
	return this.canvas}
,clear:function(t){
	var e=this.getCanvas();
	t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth(),e.getHeight())}
,_applyLineCap:function(t){
	var e=t.getLineCap();
	e&&this.setAttr("lineCap",e)}
,_applyOpacity:function(t){
	var e=t.getAbsoluteOpacity();
	1!==e&&this.setAttr("globalAlpha",e)}
,_applyLineJoin:function(t){
	var e=t.getLineJoin();
	e&&this.setAttr("lineJoin",e)}
,setAttr:function(t,e){
	this._context[t]=e}
,arc:function(){
	var t=arguments;
	this._context.arc(t[0],t[1],t[2],t[3],t[4],t[5])}
,beginPath:function(){
	this._context.beginPath()}
,bezierCurveTo:function(){
	var t=arguments;
	this._context.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5])}
,clearRect:function(){
	var t=arguments;
	this._context.clearRect(t[0],t[1],t[2],t[3])}
,clip:function(){
	this._context.clip()}
,closePath:function(){
	this._context.closePath()}
,createImageData:function(){
	var t=arguments;
	return 2===t.length?this._context.createImageData(t[0],t[1]):1===t.length?this._context.createImageData(t[0]):void 0}
,createLinearGradient:function(){
	var t=arguments;
	return this._context.createLinearGradient(t[0],t[1],t[2],t[3])}
,createPattern:function(){
	var t=arguments;
	return this._context.createPattern(t[0],t[1])}
,createRadialGradient:function(){
	var t=arguments;
	return this._context.createRadialGradient(t[0],t[1],t[2],t[3],t[4],t[5])}
,drawImage:function(){
	var t=arguments,e=this._context;
	3===t.length?e.drawImage(t[0],t[1],t[2]):5===t.length?e.drawImage(t[0],t[1],t[2],t[3],t[4]):9===t.length&&e.drawImage(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}
,fill:function(){
	this._context.fill()}
,fillText:function(){
	var t=arguments;
	this._context.fillText(t[0],t[1],t[2])}
,getImageData:function(){
	var t=arguments;
	return this._context.getImageData(t[0],t[1],t[2],t[3])}
,lineTo:function(){
	var t=arguments;
	this._context.lineTo(t[0],t[1])}
,moveTo:function(){
	var t=arguments;
	this._context.moveTo(t[0],t[1])}
,rect:function(){
	var t=arguments;
	this._context.rect(t[0],t[1],t[2],t[3])}
,putImageData:function(){
	var t=arguments;
	this._context.putImageData(t[0],t[1],t[2])}
,quadraticCurveTo:function(){
	var t=arguments;
	this._context.quadraticCurveTo(t[0],t[1],t[2],t[3])}
,restore:function(){
	this._context.restore()}
,rotate:function(){
	var t=arguments;
	this._context.rotate(t[0])}
,save:function(){
	this._context.save()}
,scale:function(){
	var t=arguments;
	this._context.scale(t[0],t[1])}
,setLineDash:function(){
	var t=arguments,e=this._context;
	this._context.setLineDash?e.setLineDash(t[0]):"mozDash"in e?e.mozDash=t[0]:"webkitLineDash"in e&&(e.webkitLineDash=t[0])}
,setTransform:function(){
	var t=arguments;
	this._context.setTransform(t[0],t[1],t[2],t[3],t[4],t[5])}
,stroke:function(){
	this._context.stroke()}
,strokeText:function(){
	var t=arguments;
	this._context.strokeText(t[0],t[1],t[2])}
,transform:function(){
	var t=arguments;
	this._context.transform(t[0],t[1],t[2],t[3],t[4],t[5])}
,translate:function(){
	var t=arguments;
	this._context.translate(t[0],t[1])}
,_enableTrace:function(){
	var t,e,i=this,a=c.length,r=n.Util._simplifyArray,s=this.setAttr,o=function(t){
	var n,a=i[t];
	i[t]=function(){
	return e=r(Array.prototype.slice.call(arguments,0)),n=a.apply(i,arguments),i._trace({
	method:t,args:e}
),n}
}
;
	for(t=0;
	a>t;
	t++)o(c[t]);
	i.setAttr=function(){
	s.apply(i,arguments),i._trace({
	property:arguments[0],val:arguments[1]}
)}
}
}
,n.SceneContext=function(t){
	n.Context.call(this,t)}
,n.SceneContext.prototype={
	_fillColor:function(t){
	var e=t.fill()||n.Util._getRGBAString({
	red:t.fillRed(),green:t.fillGreen(),blue:t.fillBlue(),alpha:t.fillAlpha()}
);
	this.setAttr("fillStyle",e),t._fillFunc(this)}
,_fillPattern:function(t){
	var e=t.getFillPatternImage(),i=t.getFillPatternX(),a=t.getFillPatternY(),r=t.getFillPatternScale(),s=n.getAngle(t.getFillPatternRotation()),o=t.getFillPatternOffset(),h=t.getFillPatternRepeat();
	(i||a)&&this.translate(i||0,a||0),s&&this.rotate(s),r&&this.scale(r.x,r.y),o&&this.translate(-1*o.x,-1*o.y),this.setAttr("fillStyle",this.createPattern(e,h||"repeat")),this.fill()}
,_fillLinearGradient:function(t){
	var e=t.getFillLinearGradientStartPoint(),i=t.getFillLinearGradientEndPoint(),n=t.getFillLinearGradientColorStops(),a=this.createLinearGradient(e.x,e.y,i.x,i.y);
	if(n){
	for(var r=0;
	r<n.length;
	r+=2)a.addColorStop(n[r],n[r+1]);
	this.setAttr("fillStyle",a),this.fill()}
}
,_fillRadialGradient:function(t){
	for(var e=t.getFillRadialGradientStartPoint(),i=t.getFillRadialGradientEndPoint(),n=t.getFillRadialGradientStartRadius(),a=t.getFillRadialGradientEndRadius(),r=t.getFillRadialGradientColorStops(),s=this.createRadialGradient(e.x,e.y,n,i.x,i.y,a),o=0;
	o<r.length;
	o+=2)s.addColorStop(r[o],r[o+1]);
	this.setAttr("fillStyle",s),this.fill()}
,_fill:function(t){
	var e=t.fill()||t.fillRed()||t.fillGreen()||t.fillBlue(),i=t.getFillPatternImage(),n=t.getFillLinearGradientColorStops(),a=t.getFillRadialGradientColorStops(),r=t.getFillPriority();
	e&&"color"===r?this._fillColor(t):i&&"pattern"===r?this._fillPattern(t):n&&"linear-gradient"===r?this._fillLinearGradient(t):a&&"radial-gradient"===r?this._fillRadialGradient(t):e?this._fillColor(t):i?this._fillPattern(t):n?this._fillLinearGradient(t):a&&this._fillRadialGradient(t)}
,_stroke:function(t){
	var e=t.dash(),i=t.getStrokeScaleEnabled();
	t.hasStroke()&&(i||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(t),e&&t.dashEnabled()&&this.setLineDash(e),this.setAttr("lineWidth",t.strokeWidth()),this.setAttr("strokeStyle",t.stroke()||n.Util._getRGBAString({
	red:t.strokeRed(),green:t.strokeGreen(),blue:t.strokeBlue(),alpha:t.strokeAlpha()}
)),t._strokeFunc(this),i||this.restore())}
,_applyShadow:function(t){
	var e=n.Util,i=t.getAbsoluteOpacity(),a=e.get(t.getShadowColor(),"black"),r=e.get(t.getShadowBlur(),5),s=e.get(t.getShadowOpacity(),1),o=e.get(t.getShadowOffset(),{
	x:0,y:0}
);
	s&&this.setAttr("globalAlpha",s*i),this.setAttr("shadowColor",a),this.setAttr("shadowBlur",r),this.setAttr("shadowOffsetX",o.x),this.setAttr("shadowOffsetY",o.y)}
}
,n.Util.extend(n.SceneContext,n.Context),n.HitContext=function(t){
	n.Context.call(this,t)}
,n.HitContext.prototype={
	_fill:function(t){
	this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}
,_stroke:function(t){
	t.hasStroke()&&(this._applyLineCap(t),this.setAttr("lineWidth",t.strokeWidth()),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this))}
}
,n.Util.extend(n.HitContext,n.Context)}
(),function(){
	var t="get",e="set";
	n.Factory={
	addGetterSetter:function(t,e,i,n,a){
	this.addGetter(t,e,i),this.addSetter(t,e,n,a),this.addOverloadedGetterSetter(t,e)}
,addGetter:function(e,i,a){
	var r=t+n.Util._capitalize(i);
	e.prototype[r]=function(){
	var t=this.attrs[i];
	return void 0===t?a:t}
}
,addSetter:function(t,i,a,r){
	var s=e+n.Util._capitalize(i);
	t.prototype[s]=function(t){
	return a&&(t=a.call(this,t)),this._setAttr(i,t),r&&r.call(this),this}
}
,addComponentsGetterSetter:function(i,a,r,s,o){
	var h,c,l=r.length,d=n.Util._capitalize,u=t+d(a),f=e+d(a);
	i.prototype[u]=function(){
	var t={
}
;
	for(h=0;
	l>h;
	h++)c=r[h],t[c]=this.getAttr(a+d(c));
	return t}
,i.prototype[f]=function(t){
	var e,i=this.attrs[a];
	s&&(t=s.call(this,t));
	for(e in t)this._setAttr(a+d(e),t[e]);
	return this._fireChangeEvent(a,i,t),o&&o.call(this),this}
,this.addOverloadedGetterSetter(i,a)}
,addOverloadedGetterSetter:function(i,a){
	var r=n.Util._capitalize(a),s=e+r,o=t+r;
	i.prototype[a]=function(){
	return arguments.length?(this[s](arguments[0]),this):this[o]()}
}
,backCompat:function(t,e){
	var i;
	for(i in e)t.prototype[i]=t.prototype[e[i]]}
,afterSetFilter:function(){
	this._filterUpToDate=!1}
}
,n.Validators={
	RGBComponent:function(t){
	return t>255?255:0>t?0:Math.round(t)}
,alphaComponent:function(t){
	return t>1?1:1e-4>t?1e-4:t}
}
}
(),function(){
	var t="absoluteOpacity",e="absoluteTransform",i="Change",a="children",r=".",s="",o="get",h="id",c="kinetic",l="listening",d="mouseenter",u="mouseleave",f="name",g="set",p="Shape",v=" ",m="stage",_="transform",y="Stage",S="visible",C=["id"],x=["xChange.kinetic","yChange.kinetic","scaleXChange.kinetic","scaleYChange.kinetic","skewXChange.kinetic","skewYChange.kinetic","rotationChange.kinetic","offsetXChange.kinetic","offsetYChange.kinetic","transformsEnabledChange.kinetic"].join(v);
	n.Util.addMethods(n.Node,{
	_init:function(i){
	var a=this;
	this._id=n.idCounter++,this.eventListeners={
}
,this.attrs={
}
,this._cache={
}
,this._filterUpToDate=!1,this.setAttrs(i),this.on(x,function(){
	this._clearCache(_),a._clearSelfAndDescendantCache(e)}
),this.on("visibleChange.kinetic",function(){
	a._clearSelfAndDescendantCache(S)}
),this.on("listeningChange.kinetic",function(){
	a._clearSelfAndDescendantCache(l)}
),this.on("opacityChange.kinetic",function(){
	a._clearSelfAndDescendantCache(t)}
)}
,_clearCache:function(t){
	t?delete this._cache[t]:this._cache={
}
}
,_getCache:function(t,e){
	var i=this._cache[t];
	return void 0===i&&(this._cache[t]=e.call(this)),this._cache[t]}
,_clearSelfAndDescendantCache:function(t){
	this._clearCache(t),this.children&&this.getChildren().each(function(e){
	e._clearSelfAndDescendantCache(t)}
)}
,clearCache:function(){
	return delete this._cache.canvas,this._filterUpToDate=!1,this}
,cache:function(t){
	{
	var e=t||{
}
,i=e.x||0,a=e.y||0,r=e.width||this.width(),s=e.height||this.height(),o=e.drawBorder||!1;
	this.getLayer()}
if(0===r||0===s)return void n.Util.warn("Width or height of caching configuration equals 0. Cache is ignored.");
	var h=new n.SceneCanvas({
	pixelRatio:1,width:r,height:s}
),c=new n.SceneCanvas({
	pixelRatio:1,width:r,height:s}
),l=new n.HitCanvas({
	width:r,height:s}
),d=(this.transformsEnabled(),this.x(),this.y(),h.getContext()),u=l.getContext();
	return this.clearCache(),d.save(),u.save(),o&&(d.save(),d.beginPath(),d.rect(0,0,r,s),d.closePath(),d.setAttr("strokeStyle","red"),d.setAttr("lineWidth",5),d.stroke(),d.restore()),d.translate(-1*i,-1*a),u.translate(-1*i,-1*a),"Shape"===this.nodeType&&(d.translate(-1*this.x(),-1*this.y()),u.translate(-1*this.x(),-1*this.y())),this.drawScene(h,this),this.drawHit(l,this),d.restore(),u.restore(),this._cache.canvas={
	scene:h,filter:c,hit:l}
,this}
,_drawCachedSceneCanvas:function(t){
	t.save(),this.getLayer()._applyTransform(this,t),t.drawImage(this._getCachedSceneCanvas()._canvas,0,0),t.restore()}
,_getCachedSceneCanvas:function(){
	var t,e,i,a,r=this.filters(),s=this._cache.canvas,o=s.scene,h=s.filter,c=h.getContext();
	if(r){
	if(!this._filterUpToDate){
	try{
	for(t=r.length,c.clear(),c.drawImage(o._canvas,0,0),e=c.getImageData(0,0,h.getWidth(),h.getHeight()),i=0;
	t>i;
	i++)a=r[i],a.call(this,e),c.putImageData(e,0,0)}
catch(l){
	n.Util.warn("Unable to apply filter. "+l.message)}
this._filterUpToDate=!0}
return h}
return o}
,_drawCachedHitCanvas:function(t){
	var e=this._cache.canvas,i=e.hit;
	t.save(),this.getLayer()._applyTransform(this,t),t.drawImage(i._canvas,0,0),t.restore()}
,on:function(t,e){
	var i,n,a,o,h,c=t.split(v),l=c.length;
	for(i=0;
	l>i;
	i++)n=c[i],a=n.split(r),o=a[0],h=a[1]||s,this.eventListeners[o]||(this.eventListeners[o]=[]),this.eventListeners[o].push({
	name:h,handler:e}
);
	return this}
,off:function(t){
	var e,i,n,a,s,o,h=t.split(v),c=h.length;
	for(e=0;
	c>e;
	e++)if(n=h[e],a=n.split(r),s=a[0],o=a[1],s)this.eventListeners[s]&&this._off(s,o);
	else for(i in this.eventListeners)this._off(i,o);
	return this}
,dispatchEvent:function(t){
	var e={
	target:this,type:t.type,evt:t}
;
	this.fire(t.type,e)}
,addEventListener:function(t,e){
	this.on(t,function(t){
	e.call(this,t.evt)}
)}
,remove:function(){
	var i=this.getParent();
	return i&&i.children&&(i.children.splice(this.index,1),i._setChildrenIndices(),delete this.parent),this._clearSelfAndDescendantCache(m),this._clearSelfAndDescendantCache(e),this._clearSelfAndDescendantCache(S),this._clearSelfAndDescendantCache(l),this._clearSelfAndDescendantCache(t),this}
,destroy:function(){
	n._removeId(this.getId()),n._removeName(this.getName(),this._id),this.remove()}
,getAttr:function(t){
	var e=o+n.Util._capitalize(t);
	return n.Util._isFunction(this[e])?this[e]():this.attrs[t]}
,getAncestors:function(){
	for(var t=this.getParent(),e=new n.Collection;
	t;
	)e.push(t),t=t.getParent();
	return e}
,getAttrs:function(){
	return this.attrs||{
}
}
,setAttrs:function(t){
	var e,i;
	if(t)for(e in t)e===a||(i=g+n.Util._capitalize(e),n.Util._isFunction(this[i])?this[i](t[e]):this._setAttr(e,t[e]));
	return this}
,isListening:function(){
	return this._getCache(l,this._isListening)}
,_isListening:function(){
	var t=this.getListening(),e=this.getParent();
	return"inherit"===t?e?e.isListening():!0:t}
,isVisible:function(){
	return this._getCache(S,this._isVisible)}
,_isVisible:function(){
	var t=this.getVisible(),e=this.getParent();
	return"inherit"===t?e?e.isVisible():!0:t}
,shouldDrawHit:function(){
	var t=this.getLayer();
	return t&&t.hitGraphEnabled()&&this.isListening()&&this.isVisible()&&!n.isDragging()}
,show:function(){
	return this.setVisible(!0),this}
,hide:function(){
	return this.setVisible(!1),this}
,getZIndex:function(){
	return this.index||0}
,getAbsoluteZIndex:function(){
	function t(h){
	for(e=[],i=h.length,n=0;
	i>n;
	n++)a=h[n],o++,a.nodeType!==p&&(e=e.concat(a.getChildren().toArray())),a._id===s._id&&(n=i);
	e.length>0&&e[0].getDepth()<=r&&t(e)}
var e,i,n,a,r=this.getDepth(),s=this,o=0;
	return s.nodeType!==y&&t(s.getStage().getChildren()),o}
,getDepth:function(){
	for(var t=0,e=this.parent;
	e;
	)t++,e=e.parent;
	return t}
,setPosition:function(t){
	return this.setX(t.x),this.setY(t.y),this}
,getPosition:function(){
	return{
	x:this.getX(),y:this.getY()}
}
,getAbsolutePosition:function(){
	var t=this.getAbsoluteTransform().getMatrix(),e=new n.Transform,i=this.offset();
	return e.m=t.slice(),e.translate(i.x,i.y),e.getTranslation()}
,setAbsolutePosition:function(t){
	var e,i=this._clearTransform();
	return this.attrs.x=i.x,this.attrs.y=i.y,delete i.x,delete i.y,e=this.getAbsoluteTransform(),e.invert(),e.translate(t.x,t.y),t={
	x:this.attrs.x+e.getTranslation().x,y:this.attrs.y+e.getTranslation().y}
,this.setPosition({
	x:t.x,y:t.y}
),this._setTransform(i),this}
,_setTransform:function(t){
	var i;
	for(i in t)this.attrs[i]=t[i];
	this._clearCache(_),this._clearSelfAndDescendantCache(e)}
,_clearTransform:function(){
	var t={
	x:this.getX(),y:this.getY(),rotation:this.getRotation(),scaleX:this.getScaleX(),scaleY:this.getScaleY(),offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),skewX:this.getSkewX(),skewY:this.getSkewY()}
;
	return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,this._clearCache(_),this._clearSelfAndDescendantCache(e),t}
,move:function(t){
	var e=t.x,i=t.y,n=this.getX(),a=this.getY();
	return void 0!==e&&(n+=e),void 0!==i&&(a+=i),this.setPosition({
	x:n,y:a}
),this}
,_eachAncestorReverse:function(t,e){
	var i,n,a=[],r=this.getParent();
	if(e&&e._id===this._id)return t(this),!0;
	for(a.unshift(this);
	r&&(!e||r._id!==e._id);
	)a.unshift(r),r=r.parent;
	for(i=a.length,n=0;
	i>n;
	n++)t(a[n])}
,rotate:function(t){
	return this.setRotation(this.getRotation()+t),this}
,moveToTop:function(){
	if(!this.parent)return void n.Util.warn("Node has no parent. moveToTop function is ignored.");
	var t=this.index;
	return this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0}
,moveUp:function(){
	if(!this.parent)return void n.Util.warn("Node has no parent. moveUp function is ignored.");
	var t=this.index,e=this.parent.getChildren().length;
	return e-1>t?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}
,moveDown:function(){
	if(!this.parent)return void n.Util.warn("Node has no parent. moveDown function is ignored.");
	var t=this.index;
	return t>0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}
,moveToBottom:function(){
	if(!this.parent)return void n.Util.warn("Node has no parent. moveToBottom function is ignored.");
	var t=this.index;
	return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}
,setZIndex:function(t){
	if(!this.parent)return void n.Util.warn("Node has no parent. zIndex parameter is ignored.");
	var e=this.index;
	return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}
,getAbsoluteOpacity:function(){
	return this._getCache(t,this._getAbsoluteOpacity)}
,_getAbsoluteOpacity:function(){
	var t=this.getOpacity();
	return this.getParent()&&(t*=this.getParent().getAbsoluteOpacity()),t}
,moveTo:function(t){
	return n.Node.prototype.remove.call(this),t.add(this),this}
,toObject:function(){
	var t,e,i,a,r=n.Util,s={
}
,o=this.getAttrs();
	s.attrs={
}
;
	for(t in o)e=o[t],r._isFunction(e)||r._isElement(e)||r._isObject(e)&&r._hasMethods(e)||(i=this[t],delete o[t],a=i?i.call(this):null,o[t]=e,a!==e&&(s.attrs[t]=e));
	return s.className=this.getClassName(),s}
,toJSON:function(){
	return JSON.stringify(this.toObject())}
,getParent:function(){
	return this.parent}
,getLayer:function(){
	var t=this.getParent();
	return t?t.getLayer():null}
,getStage:function(){
	return this._getCache(m,this._getStage)}
,_getStage:function(){
	var t=this.getParent();
	return t?t.getStage():void 0}
,fire:function(t,e,i){
	return i?this._fireAndBubble(t,e||{
}
):this._fire(t,e||{
}
),this}
,getAbsoluteTransform:function(t){
	return t?this._getAbsoluteTransform(t):this._getCache(e,this._getAbsoluteTransform)}
,_getAbsoluteTransform:function(t){
	var e,i,a=new n.Transform;
	return this._eachAncestorReverse(function(t){
	e=t.transformsEnabled(),i=t.getTransform(),"all"===e?a.multiply(i):"position"===e&&a.translate(t.x(),t.y())}
,t),a}
,getTransform:function(){
	return this._getCache(_,this._getTransform)}
,_getTransform:function(){
	var t=new n.Transform,e=this.getX(),i=this.getY(),a=n.getAngle(this.getRotation()),r=this.getScaleX(),s=this.getScaleY(),o=this.getSkewX(),h=this.getSkewY(),c=this.getOffsetX(),l=this.getOffsetY();
	return(0!==e||0!==i)&&t.translate(e,i),0!==a&&t.rotate(a),(0!==o||0!==h)&&t.skew(o,h),(1!==r||1!==s)&&t.scale(r,s),(0!==c||0!==l)&&t.translate(-1*c,-1*l),t}
,clone:function(t){
	var e,i,a,r,s,o=this.getClassName(),h=n.Util.cloneObject(this.attrs);
	for(var l in C){
	var d=C[l];
	delete h[d]}
for(e in t)h[e]=t[e];
	var u=new n[o](h);
	for(e in this.eventListeners)for(i=this.eventListeners[e],a=i.length,r=0;
	a>r;
	r++)s=i[r],s.name.indexOf(c)<0&&(u.eventListeners[e]||(u.eventListeners[e]=[]),u.eventListeners[e].push(s));
	return u}
,toDataURL:function(t){
	t=t||{
}
;
	var e=t.mimeType||null,i=t.quality||null,a=this.getStage(),r=t.x||0,s=t.y||0,o=new n.SceneCanvas({
	width:t.width||this.getWidth()||(a?a.getWidth():0),height:t.height||this.getHeight()||(a?a.getHeight():0),pixelRatio:1}
),h=o.getContext();
	return h.save(),(r||s)&&h.translate(-1*r,-1*s),this.drawScene(o),h.restore(),o.toDataURL(e,i)}
,toImage:function(t){
	n.Util._getImage(this.toDataURL(t),function(e){
	t.callback(e)}
)}
,setSize:function(t){
	return this.setWidth(t.width),this.setHeight(t.height),this}
,getSize:function(){
	return{
	width:this.getWidth(),height:this.getHeight()}
}
,getWidth:function(){
	return this.attrs.width||0}
,getHeight:function(){
	return this.attrs.height||0}
,getClassName:function(){
	return this.className||this.nodeType}
,getType:function(){
	return this.nodeType}
,getDragDistance:function(){
	return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():n.dragDistance}
,_get:function(t){
	return this.nodeType===t?[this]:[]}
,_off:function(t,e){
	var i,n,a=this.eventListeners[t];
	for(i=0;
	i<a.length;
	i++)if(n=a[i].name,!("kinetic"===n&&"kinetic"!==e||e&&n!==e)){
	if(a.splice(i,1),0===a.length){
	delete this.eventListeners[t];
	break}
i--}
}
,_fireChangeEvent:function(t,e,n){
	this._fire(t+i,{
	oldVal:e,newVal:n}
)}
,setId:function(t){
	var e=this.getId();
	return n._removeId(e),n._addId(this,t),this._setAttr(h,t),this}
,setName:function(t){
	var e=this.getName();
	return n._removeName(e,this._id),n._addName(this,t),this._setAttr(f,t),this}
,setAttr:function(){
	var t=Array.prototype.slice.call(arguments),e=t[0],i=t[1],a=g+n.Util._capitalize(e),r=this[a];
	return n.Util._isFunction(r)?r.call(this,i):this._setAttr(e,i),this}
,_setAttr:function(t,e){
	var i;
	void 0!==e&&(i=this.attrs[t],this.attrs[t]=e,this._fireChangeEvent(t,i,e))}
,_setComponentAttr:function(t,e,i){
	var n;
	void 0!==i&&(n=this.attrs[t],n||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=i,this._fireChangeEvent(t,n,i))}
,_fireAndBubble:function(t,e,i){
	var n=!0;
	e&&this.nodeType===p&&(e.target=this),t===d&&i&&this._id===i._id?n=!1:t===u&&i&&this._id===i._id&&(n=!1),n&&(this._fire(t,e),e&&!e.cancelBubble&&this.parent&&(i&&i.parent?this._fireAndBubble.call(this.parent,t,e,i.parent):this._fireAndBubble.call(this.parent,t,e)))}
,_fire:function(t,e){
	var i,n=this.eventListeners[t];
	if(e.type=t,n)for(i=0;
	i<n.length;
	i++)n[i].handler.call(this,e)}
,draw:function(){
	return this.drawScene(),this.drawHit(),this}
}
),n.Node.create=function(t,e){
	return this._createNode(JSON.parse(t),e)}
,n.Node._createNode=function(t,e){
	var i,a,r,s=n.Node.prototype.getClassName.call(t),o=t.children;
	if(e&&(t.attrs.container=e),i=new n[s](t.attrs),o)for(a=o.length,r=0;
	a>r;
	r++)i.add(this._createNode(o[r]));
	return i}
,n.Factory.addOverloadedGetterSetter(n.Node,"position"),n.Factory.addGetterSetter(n.Node,"x",0),n.Factory.addGetterSetter(n.Node,"y",0),n.Factory.addGetterSetter(n.Node,"opacity",1),n.Factory.addGetter(n.Node,"name"),n.Factory.addOverloadedGetterSetter(n.Node,"name"),n.Factory.addGetter(n.Node,"id"),n.Factory.addOverloadedGetterSetter(n.Node,"id"),n.Factory.addGetterSetter(n.Node,"rotation",0),n.Factory.addComponentsGetterSetter(n.Node,"scale",["x","y"]),n.Factory.addGetterSetter(n.Node,"scaleX",1),n.Factory.addGetterSetter(n.Node,"scaleY",1),n.Factory.addComponentsGetterSetter(n.Node,"skew",["x","y"]),n.Factory.addGetterSetter(n.Node,"skewX",0),n.Factory.addGetterSetter(n.Node,"skewY",0),n.Factory.addComponentsGetterSetter(n.Node,"offset",["x","y"]),n.Factory.addGetterSetter(n.Node,"offsetX",0),n.Factory.addGetterSetter(n.Node,"offsetY",0),n.Factory.addSetter(n.Node,"dragDistance"),n.Factory.addOverloadedGetterSetter(n.Node,"dragDistance"),n.Factory.addSetter(n.Node,"width",0),n.Factory.addOverloadedGetterSetter(n.Node,"width"),n.Factory.addSetter(n.Node,"height",0),n.Factory.addOverloadedGetterSetter(n.Node,"height"),n.Factory.addGetterSetter(n.Node,"listening","inherit"),n.Factory.addGetterSetter(n.Node,"filters",void 0,function(t){
	return this._filterUpToDate=!1,t}
),n.Factory.addGetterSetter(n.Node,"visible","inherit"),n.Factory.addGetterSetter(n.Node,"transformsEnabled","all"),n.Factory.addOverloadedGetterSetter(n.Node,"size"),n.Factory.backCompat(n.Node,{
	rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}
),n.Collection.mapMethods(n.Node)}
(),function(){
	n.Filters.Grayscale=function(t){
	var e,i,n=t.data,a=n.length;
	for(e=0;
	a>e;
	e+=4)i=.34*n[e]+.5*n[e+1]+.16*n[e+2],n[e]=i,n[e+1]=i,n[e+2]=i}
}
(),function(){
	n.Filters.Brighten=function(t){
	var e,i=255*this.brightness(),n=t.data,a=n.length;
	for(e=0;
	a>e;
	e+=4)n[e]+=i,n[e+1]+=i,n[e+2]+=i}
,n.Factory.addGetterSetter(n.Node,"brightness",0,null,n.Factory.afterSetFilter)}
(),function(){
	n.Filters.Invert=function(t){
	var e,i=t.data,n=i.length;
	for(e=0;
	n>e;
	e+=4)i[e]=255-i[e],i[e+1]=255-i[e+1],i[e+2]=255-i[e+2]}
}
(),function(){
	function t(){
	this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}
function e(e,n){
	var r,s,o,h,c,l,d,u,f,g,p,v,m,_,y,S,C,x,F,w,b,P,T,A,G=e.data,k=e.width,D=e.height,L=n+n+1,M=k-1,R=D-1,I=n+1,N=I*(I+1)/2,B=new t,U=null,E=B,O=null,H=null,W=i[n],z=a[n];
	for(o=1;
	L>o;
	o++)E=E.next=new t,o==I&&(U=E);
	for(E.next=B,d=l=0,s=0;
	D>s;
	s++){
	for(S=C=x=F=u=f=g=p=0,v=I*(w=G[l]),m=I*(b=G[l+1]),_=I*(P=G[l+2]),y=I*(T=G[l+3]),u+=N*w,f+=N*b,g+=N*P,p+=N*T,E=B,o=0;
	I>o;
	o++)E.r=w,E.g=b,E.b=P,E.a=T,E=E.next;
	for(o=1;
	I>o;
	o++)h=l+((o>M?M:o)<<2),u+=(E.r=w=G[h])*(A=I-o),f+=(E.g=b=G[h+1])*A,g+=(E.b=P=G[h+2])*A,p+=(E.a=T=G[h+3])*A,S+=w,C+=b,x+=P,F+=T,E=E.next;
	for(O=B,H=U,r=0;
	k>r;
	r++)G[l+3]=T=p*W>>z,0!==T?(T=255/T,G[l]=(u*W>>z)*T,G[l+1]=(f*W>>z)*T,G[l+2]=(g*W>>z)*T):G[l]=G[l+1]=G[l+2]=0,u-=v,f-=m,g-=_,p-=y,v-=O.r,m-=O.g,_-=O.b,y-=O.a,h=d+((h=r+n+1)<M?h:M)<<2,S+=O.r=G[h],C+=O.g=G[h+1],x+=O.b=G[h+2],F+=O.a=G[h+3],u+=S,f+=C,g+=x,p+=F,O=O.next,v+=w=H.r,m+=b=H.g,_+=P=H.b,y+=T=H.a,S-=w,C-=b,x-=P,F-=T,H=H.next,l+=4;
	d+=k}
for(r=0;
	k>r;
	r++){
	for(C=x=F=S=f=g=p=u=0,l=r<<2,v=I*(w=G[l]),m=I*(b=G[l+1]),_=I*(P=G[l+2]),y=I*(T=G[l+3]),u+=N*w,f+=N*b,g+=N*P,p+=N*T,E=B,o=0;
	I>o;
	o++)E.r=w,E.g=b,E.b=P,E.a=T,E=E.next;
	for(c=k,o=1;
	n>=o;
	o++)l=c+r<<2,u+=(E.r=w=G[l])*(A=I-o),f+=(E.g=b=G[l+1])*A,g+=(E.b=P=G[l+2])*A,p+=(E.a=T=G[l+3])*A,S+=w,C+=b,x+=P,F+=T,E=E.next,R>o&&(c+=k);
	for(l=r,O=B,H=U,s=0;
	D>s;
	s++)h=l<<2,G[h+3]=T=p*W>>z,T>0?(T=255/T,G[h]=(u*W>>z)*T,G[h+1]=(f*W>>z)*T,G[h+2]=(g*W>>z)*T):G[h]=G[h+1]=G[h+2]=0,u-=v,f-=m,g-=_,p-=y,v-=O.r,m-=O.g,_-=O.b,y-=O.a,h=r+((h=s+I)<R?h:R)*k<<2,u+=S+=O.r=G[h],f+=C+=O.g=G[h+1],g+=x+=O.b=G[h+2],p+=F+=O.a=G[h+3],O=O.next,v+=w=H.r,m+=b=H.g,_+=P=H.b,y+=T=H.a,S-=w,C-=b,x-=P,F-=T,H=H.next,l+=k}
}
var i=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],a=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];
	n.Filters.Blur=function(t){
	var i=Math.round(this.blurRadius());
	i>0&&e(t,i)}
,n.Factory.addGetterSetter(n.Node,"blurRadius",0,null,n.Factory.afterSetFilter)}
(),function(){
	function t(t,e,i){
	var n=4*(i*t.width+e),a=[];
	return a.push(t.data[n++],t.data[n++],t.data[n++],t.data[n++]),a}
function e(t,e){
	return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}
function i(t){
	for(var e=[0,0,0],i=0;
	i<t.length;
	i++)e[0]+=t[i][0],e[1]+=t[i][1],e[2]+=t[i][2];
	return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}
function a(n,a){
	var r=t(n,0,0),s=t(n,n.width-1,0),o=t(n,0,n.height-1),h=t(n,n.width-1,n.height-1),c=a||10;
	if(e(r,s)<c&&e(s,h)<c&&e(h,o)<c&&e(o,r)<c){
	for(var l=i([s,r,h,o]),d=[],u=0;
	u<n.width*n.height;
	u++){
	var f=e(l,[n.data[4*u],n.data[4*u+1],n.data[4*u+2]]);
	d[u]=c>f?0:255}
return d}
}
function r(t,e){
	for(var i=0;
	i<t.width*t.height;
	i++)t.data[4*i+3]=e[i]}
function s(t,e,i){
	for(var n=[1,1,1,1,0,1,1,1,1],a=Math.round(Math.sqrt(n.length)),r=Math.floor(a/2),s=[],o=0;
	i>o;
	o++)for(var h=0;
	e>h;
	h++){
	for(var c=o*e+h,l=0,d=0;
	a>d;
	d++)for(var u=0;
	a>u;
	u++){
	var f=o+d-r,g=h+u-r;
	if(f>=0&&i>f&&g>=0&&e>g){
	var p=f*e+g,v=n[d*a+u];
	l+=t[p]*v}
}
s[c]=2040===l?255:0}
return s}
function o(t,e,i){
	for(var n=[1,1,1,1,1,1,1,1,1],a=Math.round(Math.sqrt(n.length)),r=Math.floor(a/2),s=[],o=0;
	i>o;
	o++)for(var h=0;
	e>h;
	h++){
	for(var c=o*e+h,l=0,d=0;
	a>d;
	d++)for(var u=0;
	a>u;
	u++){
	var f=o+d-r,g=h+u-r;
	if(f>=0&&i>f&&g>=0&&e>g){
	var p=f*e+g,v=n[d*a+u];
	l+=t[p]*v}
}
s[c]=l>=1020?255:0}
return s}
function h(t,e,i){
	for(var n=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],a=Math.round(Math.sqrt(n.length)),r=Math.floor(a/2),s=[],o=0;
	i>o;
	o++)for(var h=0;
	e>h;
	h++){
	for(var c=o*e+h,l=0,d=0;
	a>d;
	d++)for(var u=0;
	a>u;
	u++){
	var f=o+d-r,g=h+u-r;
	if(f>=0&&i>f&&g>=0&&e>g){
	var p=f*e+g,v=n[d*a+u];
	l+=t[p]*v}
}
s[c]=l}
return s}
n.Filters.Mask=function(t){
	var e=this.threshold(),i=a(t,e);
	return i&&(i=s(i,t.width,t.height),i=o(i,t.width,t.height),i=h(i,t.width,t.height),r(t,i)),t}
,n.Factory.addGetterSetter(n.Node,"threshold",0,null,n.Factory.afterSetFilter)}
(),function(){
	n.Filters.RGB=function(t){
	var e,i,n=t.data,a=n.length,r=this.red(),s=this.green(),o=this.blue();
	for(e=0;
	a>e;
	e+=4)i=(.34*n[e]+.5*n[e+1]+.16*n[e+2])/255,n[e]=i*r,n[e+1]=i*s,n[e+2]=i*o,n[e+3]=n[e+3]}
,n.Factory.addGetterSetter(n.Node,"red",0,function(t){
	return this._filterUpToDate=!1,t>255?255:0>t?0:Math.round(t)}
),n.Factory.addGetterSetter(n.Node,"green",0,function(t){
	return this._filterUpToDate=!1,t>255?255:0>t?0:Math.round(t)}
),n.Factory.addGetterSetter(n.Node,"blue",0,n.Validators.RGBComponent,n.Factory.afterSetFilter)}
(),function(){
	n.Filters.HSV=function(t){
	var e,i,n,a,r,s=t.data,o=s.length,h=Math.pow(2,this.value()),c=Math.pow(2,this.saturation()),l=Math.abs(this.hue()+360)%360,d=h*c*Math.cos(l*Math.PI/180),u=h*c*Math.sin(l*Math.PI/180),f=.299*h+.701*d+.167*u,g=.587*h-.587*d+.33*u,p=.114*h-.114*d-.497*u,v=.299*h-.299*d-.328*u,m=.587*h+.413*d+.035*u,_=.114*h-.114*d+.293*u,y=.299*h-.3*d+1.25*u,S=.587*h-.586*d-1.05*u,C=.114*h+.886*d-.2*u;
	for(e=0;
	o>e;
	e+=4)i=s[e+0],n=s[e+1],a=s[e+2],r=s[e+3],s[e+0]=f*i+g*n+p*a,s[e+1]=v*i+m*n+_*a,s[e+2]=y*i+S*n+C*a,s[e+3]=r}
,n.Factory.addGetterSetter(n.Node,"hue",0,null,n.Factory.afterSetFilter),n.Factory.addGetterSetter(n.Node,"saturation",0,null,n.Factory.afterSetFilter),n.Factory.addGetterSetter(n.Node,"value",0,null,n.Factory.afterSetFilter)}
(),function(){
	n.Factory.addGetterSetter(n.Node,"hue",0,null,n.Factory.afterSetFilter),n.Factory.addGetterSetter(n.Node,"saturation",0,null,n.Factory.afterSetFilter),n.Factory.addGetterSetter(n.Node,"luminance",0,null,n.Factory.afterSetFilter),n.Filters.HSL=function(t){
	var e,i,n,a,r,s=t.data,o=s.length,h=1,c=Math.pow(2,this.saturation()),l=Math.abs(this.hue()+360)%360,d=127*this.luminance(),u=h*c*Math.cos(l*Math.PI/180),f=h*c*Math.sin(l*Math.PI/180),g=.299*h+.701*u+.167*f,p=.587*h-.587*u+.33*f,v=.114*h-.114*u-.497*f,m=.299*h-.299*u-.328*f,_=.587*h+.413*u+.035*f,y=.114*h-.114*u+.293*f,S=.299*h-.3*u+1.25*f,C=.587*h-.586*u-1.05*f,x=.114*h+.886*u-.2*f;
	for(e=0;
	o>e;
	e+=4)i=s[e+0],n=s[e+1],a=s[e+2],r=s[e+3],s[e+0]=g*i+p*n+v*a+d,s[e+1]=m*i+_*n+y*a+d,s[e+2]=S*i+C*n+x*a+d,s[e+3]=r}
}
(),function(){
	n.Filters.Emboss=function(t){
	var e=10*this.embossStrength(),i=255*this.embossWhiteLevel(),n=this.embossDirection(),a=this.embossBlend(),r=0,s=0,o=t.data,h=t.width,c=t.height,l=4*h,d=c;
	switch(n){
	case"top-left":r=-1,s=-1;
	break;
	case"top":r=-1,s=0;
	break;
	case"top-right":r=-1,s=1;
	break;
	case"right":r=0,s=1;
	break;
	case"bottom-right":r=1,s=1;
	break;
	case"bottom":r=1,s=0;
	break;
	case"bottom-left":r=1,s=-1;
	break;
	case"left":r=0,s=-1}
do{
	var u=(d-1)*l,f=r;
	1>d+f&&(f=0),d+f>c&&(f=0);
	var g=(d-1+f)*h*4,p=h;
	do{
	var v=u+4*(p-1),m=s;
	1>p+m&&(m=0),p+m>h&&(m=0);
	var _=g+4*(p-1+m),y=o[v]-o[_],S=o[v+1]-o[_+1],C=o[v+2]-o[_+2],x=y,F=x>0?x:-x,w=S>0?S:-S,b=C>0?C:-C;
	if(w>F&&(x=S),b>F&&(x=C),x*=e,a){
	var P=o[v]+x,T=o[v+1]+x,A=o[v+2]+x;
	o[v]=P>255?255:0>P?0:P,o[v+1]=T>255?255:0>T?0:T,o[v+2]=A>255?255:0>A?0:A}
else{
	var G=i-x;
	0>G?G=0:G>255&&(G=255),o[v]=o[v+1]=o[v+2]=G}
}
while(--p)}
while(--d)}
,n.Factory.addGetterSetter(n.Node,"embossStrength",.5,null,n.Factory.afterSetFilter),n.Factory.addGetterSetter(n.Node,"embossWhiteLevel",.5,null,n.Factory.afterSetFilter),n.Factory.addGetterSetter(n.Node,"embossDirection","top-left",null,n.Factory.afterSetFilter),n.Factory.addGetterSetter(n.Node,"embossBlend",!1,null,n.Factory.afterSetFilter)}
(),function(){
	function t(t,e,i,n,a){
	var r,s=i-e,o=a-n;
	return 0===s?n+o/2:0===o?n:(r=(t-e)/s,r=o*r+n)}
n.Filters.Enhance=function(e){
	var i,n,a,r,s=e.data,o=s.length,h=s[0],c=h,l=s[1],d=l,u=s[2],f=u,g=s[3],p=g,v=this.enhance();
	if(0!==v){
	for(r=0;
	o>r;
	r+=4)i=s[r+0],h>i?h=i:i>c&&(c=i),n=s[r+1],l>n?l=n:n>d&&(d=n),a=s[r+2],u>a?u=a:a>f&&(f=a);
	c===h&&(c=255,h=0),d===l&&(d=255,l=0),f===u&&(f=255,u=0),p===g&&(p=255,g=0);
	var m,_,y,S,C,x,F,w,b,P,T,A;
	for(v>0?(_=c+v*(255-c),y=h-v*(h-0),C=d+v*(255-d),x=l-v*(l-0),w=f+v*(255-f),A=u-v*(u-0),T=p+v*(255-p),b=g-v*(g-0)):(m=.5*(c+h),_=c+v*(c-m),y=h+v*(h-m),S=.5*(d+l),C=d+v*(d-S),x=l+v*(l-S),F=.5*(f+u),w=f+v*(f-F),A=u+v*(u-F),P=.5*(p+g),T=p+v*(p-P),b=g+v*(g-P)),r=0;
	o>r;
	r+=4)s[r+0]=t(s[r+0],h,c,y,_),s[r+1]=t(s[r+1],l,d,x,C),s[r+2]=t(s[r+2],u,f,A,w)}
}
,n.Factory.addGetterSetter(n.Node,"enhance",0,null,n.Factory.afterSetFilter)}
(),function(){
	n.Filters.Posterize=function(t){
	var e,i=Math.round(254*this.levels())+1,n=t.data,a=n.length,r=255/i;
	for(e=0;
	a>e;
	e+=1)n[e]=Math.floor(n[e]/r)*r}
,n.Factory.addGetterSetter(n.Node,"levels",.5,null,n.Factory.afterSetFilter)}
(),function(){
	n.Filters.Noise=function(t){
	var e,i=255*this.noise(),n=t.data,a=n.length,r=i/2;
	for(e=0;
	a>e;
	e+=4)n[e+0]+=r-2*r*Math.random(),n[e+1]+=r-2*r*Math.random(),n[e+2]+=r-2*r*Math.random()}
,n.Factory.addGetterSetter(n.Node,"noise",.2,null,n.Factory.afterSetFilter)}
(),function(){
	n.Filters.Pixelate=function(t){
	var e,i,n,a,r,s,o,h,c,l,d,u,f,g,p=Math.ceil(this.pixelSize()),v=t.width,m=t.height,_=Math.ceil(v/p),y=Math.ceil(m/p);
	for(t=t.data,u=0;
	_>u;
	u+=1)for(f=0;
	y>f;
	f+=1){
	for(a=0,r=0,s=0,o=0,h=u*p,c=h+p,l=f*p,d=l+p,g=0,e=h;
	c>e;
	e+=1)if(!(e>=v))for(i=l;
	d>i;
	i+=1)i>=m||(n=4*(v*i+e),a+=t[n+0],r+=t[n+1],s+=t[n+2],o+=t[n+3],g+=1);
	for(a/=g,r/=g,s/=g,e=h;
	c>e;
	e+=1)if(!(e>=v))for(i=l;
	d>i;
	i+=1)i>=m||(n=4*(v*i+e),t[n+0]=a,t[n+1]=r,t[n+2]=s,t[n+3]=o)}
}
,n.Factory.addGetterSetter(n.Node,"pixelSize",8,null,n.Factory.afterSetFilter)}
(),function(){
	n.Filters.Threshold=function(t){
	var e,i=255*this.threshold(),n=t.data,a=n.length;
	for(e=0;
	a>e;
	e+=1)n[e]=n[e]<i?0:255}
,n.Factory.addGetterSetter(n.Node,"threshold",.5,null,n.Factory.afterSetFilter)}
(),function(){
	n.Filters.Sepia=function(t){
	var e,i,n,a,r,s,o,h,c,l=t.data,d=t.width,u=t.height,f=4*d;
	do{
	e=(u-1)*f,i=d;
	do n=e+4*(i-1),a=l[n],r=l[n+1],s=l[n+2],o=.393*a+.769*r+.189*s,h=.349*a+.686*r+.168*s,c=.272*a+.534*r+.131*s,l[n]=o>255?255:o,l[n+1]=h>255?255:h,l[n+2]=c>255?255:c,l[n+3]=l[n+3];
	while(--i)}
while(--u)}
}
(),function(){
	n.Filters.Solarize=function(t){
	var e=t.data,i=t.width,n=t.height,a=4*i,r=n;
	do{
	var s=(r-1)*a,o=i;
	do{
	var h=s+4*(o-1),c=e[h],l=e[h+1],d=e[h+2];
	c>127&&(c=255-c),l>127&&(l=255-l),d>127&&(d=255-d),e[h]=c,e[h+1]=l,e[h+2]=d}
while(--o)}
while(--r)}
}
(),function(){
	var t=function(t,e,i){
	var n,a,r,s,o=t.data,h=e.data,c=t.width,l=t.height,d=i.polarCenterX||c/2,u=i.polarCenterY||l/2,f=0,g=0,p=0,v=0,m=Math.sqrt(d*d+u*u);
	a=c-d,r=l-u,s=Math.sqrt(a*a+r*r),m=s>m?s:m;
	var _,y,S,C,x=l,F=c,w=360/F*Math.PI/180;
	for(y=0;
	F>y;
	y+=1)for(S=Math.sin(y*w),C=Math.cos(y*w),_=0;
	x>_;
	_+=1)a=Math.floor(d+m*_/x*C),r=Math.floor(u+m*_/x*S),n=4*(r*c+a),f=o[n+0],g=o[n+1],p=o[n+2],v=o[n+3],n=4*(y+_*c),h[n+0]=f,h[n+1]=g,h[n+2]=p,h[n+3]=v}
,e=function(t,e,i){
	var n,a,r,s,o,h,c=t.data,l=e.data,d=t.width,u=t.height,f=i.polarCenterX||d/2,g=i.polarCenterY||u/2,p=0,v=0,m=0,_=0,y=Math.sqrt(f*f+g*g);
	a=d-f,r=u-g,h=Math.sqrt(a*a+r*r),y=h>y?h:y;
	var S,C,x,F,w=u,b=d,P=i.polarRotation||0;
	for(a=0;
	d>a;
	a+=1)for(r=0;
	u>r;
	r+=1)s=a-f,o=r-g,S=Math.sqrt(s*s+o*o)*w/y,C=(180*Math.atan2(o,s)/Math.PI+360+P)%360,C=C*b/360,x=Math.floor(C),F=Math.floor(S),n=4*(F*d+x),p=c[n+0],v=c[n+1],m=c[n+2],_=c[n+3],n=4*(r*d+a),l[n+0]=p,l[n+1]=v,l[n+2]=m,l[n+3]=_}
,i=n.Util.createCanvasElement();
	n.Filters.Kaleidoscope=function(n){
	var a,r,s,o,h,c,l,d,u,f,g=n.width,p=n.height,v=Math.round(this.kaleidoscopePower()),m=Math.round(this.kaleidoscopeAngle()),_=Math.floor(g*(m%360)/360);
	if(!(1>v)){
	i.width=g,i.height=p;
	var y=i.getContext("2d").getImageData(0,0,g,p);
	t(n,y,{
	polarCenterX:g/2,polarCenterY:p/2}
);
	for(var S=g/Math.pow(2,v);
	8>=S;
	)S=2*S,v-=1;
	S=Math.ceil(S);
	var C=S,x=0,F=C,w=1;
	for(_+S>g&&(x=C,F=0,w=-1),r=0;
	p>r;
	r+=1)for(a=x;
	a!==F;
	a+=w)s=Math.round(a+_)%g,u=4*(g*r+s),h=y.data[u+0],c=y.data[u+1],l=y.data[u+2],d=y.data[u+3],f=4*(g*r+a),y.data[f+0]=h,y.data[f+1]=c,y.data[f+2]=l,y.data[f+3]=d;
	for(r=0;
	p>r;
	r+=1)for(C=Math.floor(S),o=0;
	v>o;
	o+=1){
	for(a=0;
	C+1>a;
	a+=1)u=4*(g*r+a),h=y.data[u+0],c=y.data[u+1],l=y.data[u+2],d=y.data[u+3],f=4*(g*r+2*C-a-1),y.data[f+0]=h,y.data[f+1]=c,y.data[f+2]=l,y.data[f+3]=d;
	C*=2}
e(y,n,{
	polarRotation:0}
)}
}
,n.Factory.addGetterSetter(n.Node,"kaleidoscopePower",2,null,n.Factory.afterSetFilter),n.Factory.addGetterSetter(n.Node,"kaleidoscopeAngle",0,null,n.Factory.afterSetFilter)}
(),function(){
	function t(t){
	n.root.setTimeout(t,1e3/60)}
function e(){
	return r.apply(n.root,arguments)}
var i=500,a=function(){
	return n.root.performance&&n.root.performance.now?function(){
	return n.root.performance.now()}
:function(){
	return(new Date).getTime()}
}
(),r=function(){
	return n.root.requestAnimationFrame||n.root.webkitRequestAnimationFrame||n.root.mozRequestAnimationFrame||n.root.oRequestAnimationFrame||n.root.msRequestAnimationFrame||t}
();
	n.Animation=function(t,e){
	var i=n.Animation;
	this.func=t,this.setLayers(e),this.id=i.animIdCounter++,this.frame={
	time:0,timeDiff:0,lastTime:a()}
}
,n.Animation.prototype={
	setLayers:function(t){
	var e=[];
	e=t?t.length>0?t:[t]:[],this.layers=e}
,getLayers:function(){
	return this.layers}
,addLayer:function(t){
	var e,i,n=this.layers;
	if(n){
	for(e=n.length,i=0;
	e>i;
	i++)if(n[i]._id===t._id)return!1}
else this.layers=[];
	return this.layers.push(t),!0}
,isRunning:function(){
	var t,e=n.Animation,i=e.animations,a=i.length;
	for(t=0;
	a>t;
	t++)if(i[t].id===this.id)return!0;
	return!1}
,start:function(){
	var t=n.Animation;
	this.stop(),this.frame.timeDiff=0,this.frame.lastTime=a(),t._addAnimation(this)}
,stop:function(){
	n.Animation._removeAnimation(this)}
,_updateFrameObject:function(t){
	this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}
}
,n.Animation.animations=[],n.Animation.animIdCounter=0,n.Animation.animRunning=!1,n.Animation._addAnimation=function(t){
	this.animations.push(t),this._handleAnimation()}
,n.Animation._removeAnimation=function(t){
	var e,i=t.id,n=this.animations,a=n.length;
	for(e=0;
	a>e;
	e++)if(n[e].id===i){
	this.animations.splice(e,1);
	break}
}
,n.Animation._runFrames=function(){
	var t,e,i,n,r,s,o,h,c={
}
,l=this.animations;
	for(n=0;
	n<l.length;
	n++){
	for(t=l[n],e=t.layers,i=t.func,t._updateFrameObject(a()),s=e.length,r=0;
	s>r;
	r++)o=e[r],void 0!==o._id&&(c[o._id]=o);
	i&&i.call(t,t.frame)}
for(h in c)c[h].draw()}
,n.Animation._animationLoop=function(){
	var t=n.Animation;
	t.animations.length?(e(t._animationLoop),t._runFrames()):t.animRunning=!1}
,n.Animation._handleAnimation=function(){
	var t=this;
	this.animRunning||(this.animRunning=!0,t._animationLoop())}
;
	var s=n.Node.prototype.moveTo;
	n.Node.prototype.moveTo=function(t){
	s.call(this,t)}
,n.Layer.prototype.batchDraw=function(){
	var t=this,e=n.Animation;
	this.batchAnim||(this.batchAnim=new e(function(){
	t.lastBatchDrawTime&&a()-t.lastBatchDrawTime>i&&t.batchAnim.stop()}
,this)),this.lastBatchDrawTime=a(),this.batchAnim.isRunning()||(this.draw(),this.batchAnim.start())}
,n.Stage.prototype.batchDraw=function(){
	this.getChildren().each(function(t){
	t.batchDraw()}
)}
}
((1,eval)("this")),function(){
	var t={
	node:1,duration:1,easing:1,onFinish:1,yoyo:1}
,e=1,i=2,a=3,r=0;
	n.Tween=function(e){
	var i,a=this,o=e.node,h=o._id,c=e.duration||1,l=e.easing||n.Easings.Linear,d=!!e.yoyo;
	this.node=o,this._id=r++,this.anim=new n.Animation(function(){
	a.tween.onEnterFrame()}
,o.getLayer()),this.tween=new s(i,function(t){
	a._tweenFunc(t)}
,l,0,1,1e3*c,d),this._addListeners(),n.Tween.attrs[h]||(n.Tween.attrs[h]={
}
),n.Tween.attrs[h][this._id]||(n.Tween.attrs[h][this._id]={
}
),n.Tween.tweens[h]||(n.Tween.tweens[h]={
}
);
	for(i in e)void 0===t[i]&&this._addAttr(i,e[i]);
	this.reset(),this.onFinish=e.onFinish,this.onReset=e.onReset}
,n.Tween.attrs={
}
,n.Tween.tweens={
}
,n.Tween.prototype={
	_addAttr:function(t,e){
	var i,a,r,s,o,h=this.node,c=h._id;
	if(r=n.Tween.tweens[c][t],r&&delete n.Tween.attrs[c][r][t],i=h.getAttr(t),n.Util._isArray(e))for(a=[],o=e.length,s=0;
	o>s;
	s++)a.push(e[s]-i[s]);
	else a=e-i;
	n.Tween.attrs[c][this._id][t]={
	start:i,diff:a}
,n.Tween.tweens[c][t]=this._id}
,_tweenFunc:function(t){
	var e,i,a,r,s,o,h,c=this.node,l=n.Tween.attrs[c._id][this._id];
	for(e in l){
	if(i=l[e],a=i.start,r=i.diff,n.Util._isArray(a))for(s=[],h=a.length,o=0;
	h>o;
	o++)s.push(a[o]+r[o]*t);
	else s=a+r*t;
	c.setAttr(e,s)}
}
,_addListeners:function(){
	var t=this;
	this.tween.onPlay=function(){
	t.anim.start()}
,this.tween.onReverse=function(){
	t.anim.start()}
,this.tween.onPause=function(){
	t.anim.stop()}
,this.tween.onFinish=function(){
	t.onFinish&&t.onFinish()}
,this.tween.onReset=function(){
	t.onReset&&t.onReset()}
}
,play:function(){
	return this.tween.play(),this}
,reverse:function(){
	return this.tween.reverse(),this}
,reset:function(){
	this.node;
	return this.tween.reset(),this}
,seek:function(t){
	this.node;
	return this.tween.seek(1e3*t),this}
,pause:function(){
	return this.tween.pause(),this}
,finish:function(){
	this.node;
	return this.tween.finish(),this}
,destroy:function(){
	var t,e=this.node._id,i=this._id,a=n.Tween.tweens[e];
	this.pause();
	for(t in a)delete n.Tween.tweens[e][t];
	delete n.Tween.attrs[e][i]}
}
;
	var s=function(t,e,i,n,a,r,s){
	this.prop=t,this.propFunc=e,this.begin=n,this._pos=n,this.duration=r,this._change=0,this.prevPos=0,this.yoyo=s,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=i,this._change=a-this.begin,this.pause()}
;
	s.prototype={
	fire:function(t){
	var e=this[t];
	e&&e()}
,setTime:function(t){
	t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():0>t?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())}
,getTime:function(){
	return this._time}
,setPosition:function(t){
	this.prevPos=this._pos,this.propFunc(t),this._pos=t}
,getPosition:function(t){
	return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}
,play:function(){
	this.state=i,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}
,reverse:function(){
	this.state=a,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}
,seek:function(t){
	this.pause(),this._time=t,this.update(),this.fire("onSeek")}
,reset:function(){
	this.pause(),this._time=0,this.update(),this.fire("onReset")}
,finish:function(){
	this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}
,update:function(){
	this.setPosition(this.getPosition(this._time))}
,onEnterFrame:function(){
	var t=this.getTimer()-this._startTime;
	this.state===i?this.setTime(t):this.state===a&&this.setTime(this.duration-t)}
,pause:function(){
	this.state=e,this.fire("onPause")}
,getTimer:function(){
	return(new Date).getTime()}
}
,n.Easings={
	BackEaseIn:function(t,e,i,n){
	var a=1.70158;
	return i*(t/=n)*t*((a+1)*t-a)+e}
,BackEaseOut:function(t,e,i,n){
	var a=1.70158;
	return i*((t=t/n-1)*t*((a+1)*t+a)+1)+e}
,BackEaseInOut:function(t,e,i,n){
	var a=1.70158;
	return(t/=n/2)<1?i/2*t*t*(((a*=1.525)+1)*t-a)+e:i/2*((t-=2)*t*(((a*=1.525)+1)*t+a)+2)+e}
,ElasticEaseIn:function(t,e,i,n,a,r){
	var s=0;
	return 0===t?e:1==(t/=n)?e+i:(r||(r=.3*n),!a||a<Math.abs(i)?(a=i,s=r/4):s=r/(2*Math.PI)*Math.asin(i/a),-(a*Math.pow(2,10*(t-=1))*Math.sin(2*(t*n-s)*Math.PI/r))+e)}
,ElasticEaseOut:function(t,e,i,n,a,r){
	var s=0;
	return 0===t?e:1==(t/=n)?e+i:(r||(r=.3*n),!a||a<Math.abs(i)?(a=i,s=r/4):s=r/(2*Math.PI)*Math.asin(i/a),a*Math.pow(2,-10*t)*Math.sin(2*(t*n-s)*Math.PI/r)+i+e)}
,ElasticEaseInOut:function(t,e,i,n,a,r){
	var s=0;
	return 0===t?e:2==(t/=n/2)?e+i:(r||(r=.3*n*1.5),!a||a<Math.abs(i)?(a=i,s=r/4):s=r/(2*Math.PI)*Math.asin(i/a),1>t?-.5*a*Math.pow(2,10*(t-=1))*Math.sin(2*(t*n-s)*Math.PI/r)+e:a*Math.pow(2,-10*(t-=1))*Math.sin(2*(t*n-s)*Math.PI/r)*.5+i+e)}
,BounceEaseOut:function(t,e,i,n){
	return(t/=n)<1/2.75?7.5625*i*t*t+e:2/2.75>t?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:2.5/2.75>t?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e}
,BounceEaseIn:function(t,e,i,a){
	return i-n.Easings.BounceEaseOut(a-t,0,i,a)+e}
,BounceEaseInOut:function(t,e,i,a){
	return a/2>t?.5*n.Easings.BounceEaseIn(2*t,0,i,a)+e:.5*n.Easings.BounceEaseOut(2*t-a,0,i,a)+.5*i+e}
,EaseIn:function(t,e,i,n){
	return i*(t/=n)*t+e}
,EaseOut:function(t,e,i,n){
	return-i*(t/=n)*(t-2)+e}
,EaseInOut:function(t,e,i,n){
	return(t/=n/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e}
,StrongEaseIn:function(t,e,i,n){
	return i*(t/=n)*t*t*t*t+e}
,StrongEaseOut:function(t,e,i,n){
	return i*((t=t/n-1)*t*t*t*t+1)+e}
,StrongEaseInOut:function(t,e,i,n){
	return(t/=n/2)<1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e}
,Linear:function(t,e,i,n){
	return i*t/n+e}
}
}
(),function(){
	n.DD={
	anim:new n.Animation,isDragging:!1,offset:{
	x:0,y:0}
,node:null,_drag:function(t){
	var e=n.DD,i=e.node;
	if(i){
	if(!e.isDragging){
	var a=i.getStage().getPointerPosition(),r=i.dragDistance(),s=Math.max(Math.abs(a.x-e.startPointerPos.x),Math.abs(a.y-e.startPointerPos.y));
	if(r>s)return}
i._setDragPosition(t),e.isDragging||(e.isDragging=!0,i.fire("dragstart",{
	type:"dragstart",target:i,evt:t}
,!0)),i.fire("dragmove",{
	type:"dragmove",target:i,evt:t}
,!0)}
}
,_endDragBefore:function(t){
	var e,i,a=n.DD,r=a.node;
	r&&(e=r.nodeType,i=r.getLayer(),a.anim.stop(),a.isDragging&&(a.isDragging=!1,n.listenClickTap=!1,t&&(t.dragEndNode=r)),delete a.node,(i||r).draw())}
,_endDragAfter:function(t){
	t=t||{
}
;
	var e=t.dragEndNode;
	t&&e&&e.fire("dragend",{
	type:"dragend",target:e,evt:t}
,!0)}
}
,n.Node.prototype.startDrag=function(){
	var t=n.DD,e=this.getStage(),i=this.getLayer(),a=e.getPointerPosition(),r=this.getAbsolutePosition();
	a&&(t.node&&t.node.stopDrag(),t.node=this,t.startPointerPos=a,t.offset.x=a.x-r.x,t.offset.y=a.y-r.y,t.anim.setLayers(i||this.getLayers()),t.anim.start(),this._setDragPosition())}
,n.Node.prototype._setDragPosition=function(t){
	var e=n.DD,i=this.getStage().getPointerPosition(),a=this.getDragBoundFunc();
	if(i){
	var r={
	x:i.x-e.offset.x,y:i.y-e.offset.y}
;
	void 0!==a&&(r=a.call(this,r,t)),this.setAbsolutePosition(r)}
}
,n.Node.prototype.stopDrag=function(){
	var t=n.DD,e={
}
;
	t._endDragBefore(e),t._endDragAfter(e)}
,n.Node.prototype.setDraggable=function(t){
	this._setAttr("draggable",t),this._dragChange()}
;
	var t=n.Node.prototype.destroy;
	n.Node.prototype.destroy=function(){
	var e=n.DD;
	e.node&&e.node._id===this._id&&this.stopDrag(),t.call(this)}
,n.Node.prototype.isDragging=function(){
	var t=n.DD;
	return t.node&&t.node._id===this._id&&t.isDragging}
,n.Node.prototype._listenDrag=function(){
	var t=this;
	this._dragCleanup(),"Stage"===this.getClassName()?this.on("contentMousedown.kinetic contentTouchstart.kinetic",function(e){
	n.DD.node||t.startDrag(e)}
):this.on("mousedown.kinetic touchstart.kinetic",function(e){
	n.DD.node||t.startDrag(e)}
)}
,n.Node.prototype._dragChange=function(){
	if(this.attrs.draggable)this._listenDrag();
	else{
	this._dragCleanup();
	var t=this.getStage(),e=n.DD;
	t&&e.node&&e.node._id===this._id&&e.node.stopDrag()}
}
,n.Node.prototype._dragCleanup=function(){
	"Stage"===this.getClassName()?(this.off("contentMousedown.kinetic"),this.off("contentTouchstart.kinetic")):(this.off("mousedown.kinetic"),this.off("touchstart.kinetic"))}
,n.Factory.addGetterSetter(n.Node,"dragBoundFunc"),n.Factory.addGetter(n.Node,"draggable",!1),n.Factory.addOverloadedGetterSetter(n.Node,"draggable");
	var e=n.document.documentElement;
	e.addEventListener("mouseup",n.DD._endDragBefore,!0),e.addEventListener("touchend",n.DD._endDragBefore,!0),e.addEventListener("mouseup",n.DD._endDragAfter,!1),e.addEventListener("touchend",n.DD._endDragAfter,!1)}
(),function(){
	n.Util.addMethods(n.Container,{
	__init:function(t){
	this.children=new n.Collection,n.Node.call(this,t)}
,getChildren:function(t){
	if(t){
	var e=new n.Collection;
	return this.children.each(function(i){
	t(i)&&e.push(i)}
),e}
return this.children}
,hasChildren:function(){
	return this.getChildren().length>0}
,removeChildren:function(){
	for(var t,e=n.Collection.toCollection(this.children),i=0;
	i<e.length;
	i++)t=e[i],delete t.parent,t.index=0,t.hasChildren()&&t.removeChildren(),t.remove();
	return e=null,this.children=new n.Collection,this}
,destroyChildren:function(){
	for(var t,e=n.Collection.toCollection(this.children),i=0;
	i<e.length;
	i++)t=e[i],delete t.parent,t.index=0,t.destroy();
	return e=null,this.children=new n.Collection,this}
,add:function(t){
	if(!(arguments.length>1)){
	if(t.getParent())return void t.moveTo(this);
	var e=this.children;
	return this._validateAdd(t),t.index=e.length,t.parent=this,e.push(t),this._fire("add",{
	child:t}
),this}
for(var i=0;
	i<arguments.length;
	i++)this.add(arguments[i])}
,destroy:function(){
	this.hasChildren()&&this.destroyChildren(),n.Node.prototype.destroy.call(this)}
,find:function(t){
	var e,i,a,r,s,o,h,c=[],l=t.replace(/ /g,"").split(","),d=l.length;
	for(e=0;
	d>e;
	e++)if(a=l[e],"#"===a.charAt(0))s=this._getNodeById(a.slice(1)),s&&c.push(s);
	else if("."===a.charAt(0))r=this._getNodesByName(a.slice(1)),c=c.concat(r);
	else for(o=this.getChildren(),h=o.length,i=0;
	h>i;
	i++)c=c.concat(o[i]._get(a));
	return n.Collection.toCollection(c)}
,_getNodeById:function(t){
	var e=n.ids[t];
	return void 0!==e&&this.isAncestorOf(e)?e:null}
,_getNodesByName:function(t){
	var e=n.names[t]||[];
	return this._getDescendants(e)}
,_get:function(t){
	for(var e=n.Node.prototype._get.call(this,t),i=this.getChildren(),a=i.length,r=0;
	a>r;
	r++)e=e.concat(i[r]._get(t));
	return e}
,toObject:function(){
	var t=n.Node.prototype.toObject.call(this);
	t.children=[];
	for(var e=this.getChildren(),i=e.length,a=0;
	i>a;
	a++){
	var r=e[a];
	t.children.push(r.toObject())}
return t}
,_getDescendants:function(t){
	for(var e=[],i=t.length,n=0;
	i>n;
	n++){
	var a=t[n];
	this.isAncestorOf(a)&&e.push(a)}
return e}
,isAncestorOf:function(t){
	for(var e=t.getParent();
	e;
	){
	if(e._id===this._id)return!0;
	e=e.getParent()}
return!1}
,clone:function(t){
	var e=n.Node.prototype.clone.call(this,t);
	return this.getChildren().each(function(t){
	e.add(t.clone())}
),e}
,getAllIntersections:function(t){
	var e=[];
	return this.find("Shape").each(function(i){
	i.isVisible()&&i.intersects(t)&&e.push(i)}
),e}
,_setChildrenIndices:function(){
	this.children.each(function(t,e){
	t.index=e}
)}
,drawScene:function(t,e){
	var i=this.getLayer(),n=t||i&&i.getCanvas(),a=n&&n.getContext(),r=this._cache.canvas,s=r&&r.scene;
	return this.isVisible()&&(s?this._drawCachedSceneCanvas(a):this._drawChildren(n,"drawScene",e)),this}
,drawHit:function(t,e){
	var i=this.getLayer(),n=t||i&&i.hitCanvas,a=n&&n.getContext(),r=this._cache.canvas,s=r&&r.hit;
	return this.shouldDrawHit()&&(s?this._drawCachedHitCanvas(a):this._drawChildren(n,"drawHit",e)),this}
,_drawChildren:function(t,e,i){
	var n,a,r=this.getLayer(),s=t&&t.getContext(),o=this.getClipWidth(),h=this.getClipHeight(),c=o&&h;
	c&&r&&(n=this.getClipX(),a=this.getClipY(),s.save(),r._applyTransform(this,s),s.beginPath(),s.rect(n,a,o,h),s.clip(),s.reset()),this.children.each(function(n){
	n[e](t,i)}
),c&&s.restore()}
}
),n.Util.extend(n.Container,n.Node),n.Container.prototype.get=n.Container.prototype.find,n.Factory.addComponentsGetterSetter(n.Container,"clip",["x","y","width","height"]),n.Factory.addGetterSetter(n.Container,"clipX"),n.Factory.addGetterSetter(n.Container,"clipY"),n.Factory.addGetterSetter(n.Container,"clipWidth"),n.Factory.addGetterSetter(n.Container,"clipHeight"),n.Collection.mapMethods(n.Container)}
(),function(){
	function t(t){
	t.fill()}
function e(t){
	t.stroke()}
function i(t){
	t.fill()}
function a(t){
	t.stroke()}
function r(){
	this._clearCache(s)}
var s="hasShadow";
	n.Util.addMethods(n.Shape,{
	__init:function(s){
	this.nodeType="Shape",this._fillFunc=t,this._strokeFunc=e,this._fillFuncHit=i,this._strokeFuncHit=a;
	for(var o,h=n.shapes;
	;
	)if(o=n.Util.getRandomColor(),o&&!(o in h))break;
	this.colorKey=o,h[o]=this,n.Node.call(this,s),this.on("shadowColorChange.kinetic shadowBlurChange.kinetic shadowOffsetChange.kinetic shadowOpacityChange.kinetic shadowEnabledChange.kinetic",r)}
,hasChildren:function(){
	return!1}
,getChildren:function(){
	return[]}
,getContext:function(){
	return this.getLayer().getContext()}
,getCanvas:function(){
	return this.getLayer().getCanvas()}
,hasShadow:function(){
	return this._getCache(s,this._hasShadow)}
,_hasShadow:function(){
	return this.getShadowEnabled()&&0!==this.getShadowOpacity()&&!!(this.getShadowColor()||this.getShadowBlur()||this.getShadowOffsetX()||this.getShadowOffsetY())}
,hasFill:function(){
	return!!(this.getFill()||this.getFillPatternImage()||this.getFillLinearGradientColorStops()||this.getFillRadialGradientColorStops())}
,hasStroke:function(){
	return!!(this.stroke()||this.strokeRed()||this.strokeGreen()||this.strokeBlue())}
,_get:function(t){
	return this.className===t||this.nodeType===t?[this]:[]}
,intersects:function(t){
	var e,i=this.getStage(),n=i.bufferHitCanvas;
	return n.getContext().clear(),this.drawScene(n),e=n.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,e[3]>0}
,destroy:function(){
	n.Node.prototype.destroy.call(this),delete n.shapes[this.colorKey]}
,_useBufferCanvas:function(){
	return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasFill()&&this.hasStroke()&&this.getStage()}
,drawScene:function(t,e){
	var i,n,a,r=this.getLayer(),s=t||r.getCanvas(),o=s.getContext(),h=this._cache.canvas,c=this.sceneFunc(),l=this.hasShadow();
	return this.isVisible()&&(h?this._drawCachedSceneCanvas(o):c&&(o.save(),this._useBufferCanvas()?(i=this.getStage(),n=i.bufferCanvas,a=n.getContext(),a.clear(),a.save(),a._applyLineJoin(this),r._applyTransform(this,a,e),c.call(this,a),a.restore(),l&&(o.save(),o._applyShadow(this),o.drawImage(n._canvas,0,0),o.restore()),o._applyOpacity(this),o.drawImage(n._canvas,0,0)):(o._applyLineJoin(this),r._applyTransform(this,o,e),l&&(o.save(),o._applyShadow(this),c.call(this,o),o.restore()),o._applyOpacity(this),c.call(this,o)),o.restore())),this}
,drawHit:function(t,e){
	var i=this.getLayer(),n=t||i.hitCanvas,a=n.getContext(),r=this.hitFunc()||this.sceneFunc(),s=this._cache.canvas,o=s&&s.hit;
	return this.shouldDrawHit()&&(o?this._drawCachedHitCanvas(a):r&&(a.save(),a._applyLineJoin(this),i._applyTransform(this,a,e),r.call(this,a),a.restore())),this}
,drawHitFromCache:function(t){
	var e,i,a,r,s,o,h,c,l=t||0,d=this._cache.canvas,u=this._getCachedSceneCanvas(),f=u.getContext(),g=d.hit,p=g.getContext(),v=u.getWidth(),m=u.getHeight();
	p.clear();
	try{
	for(e=f.getImageData(0,0,v,m),i=e.data,a=p.getImageData(0,0,v,m),r=a.data,s=i.length,o=n.Util._hexToRgb(this.colorKey),h=0;
	s>h;
	h+=4)c=i[h+3],c>l&&(r[h]=o.r,r[h+1]=o.g,r[h+2]=o.b,r[h+3]=255);
	p.putImageData(a,0,0)}
catch(_){
	n.Util.warn("Unable to draw hit graph from cached scene canvas. "+_.message)}
return this}
}
),n.Util.extend(n.Shape,n.Node),n.Factory.addGetterSetter(n.Shape,"stroke"),n.Factory.addGetterSetter(n.Shape,"strokeRed",0,n.Validators.RGBComponent),n.Factory.addGetterSetter(n.Shape,"strokeGreen",0,n.Validators.RGBComponent),n.Factory.addGetterSetter(n.Shape,"strokeBlue",0,n.Validators.RGBComponent),n.Factory.addGetterSetter(n.Shape,"strokeAlpha",1,n.Validators.alphaComponent),n.Factory.addGetterSetter(n.Shape,"strokeWidth",2),n.Factory.addGetterSetter(n.Shape,"lineJoin"),n.Factory.addGetterSetter(n.Shape,"lineCap"),n.Factory.addGetterSetter(n.Shape,"sceneFunc"),n.Factory.addGetterSetter(n.Shape,"hitFunc"),n.Factory.addGetterSetter(n.Shape,"dash"),n.Factory.addGetterSetter(n.Shape,"shadowColor"),n.Factory.addGetterSetter(n.Shape,"shadowRed",0,n.Validators.RGBComponent),n.Factory.addGetterSetter(n.Shape,"shadowGreen",0,n.Validators.RGBComponent),n.Factory.addGetterSetter(n.Shape,"shadowBlue",0,n.Validators.RGBComponent),n.Factory.addGetterSetter(n.Shape,"shadowAlpha",1,n.Validators.alphaComponent),n.Factory.addGetterSetter(n.Shape,"shadowBlur"),n.Factory.addGetterSetter(n.Shape,"shadowOpacity"),n.Factory.addComponentsGetterSetter(n.Shape,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(n.Shape,"shadowOffsetX",0),n.Factory.addGetterSetter(n.Shape,"shadowOffsetY",0),n.Factory.addGetterSetter(n.Shape,"fillPatternImage"),n.Factory.addGetterSetter(n.Shape,"fill"),n.Factory.addGetterSetter(n.Shape,"fillRed",0,n.Validators.RGBComponent),n.Factory.addGetterSetter(n.Shape,"fillGreen",0,n.Validators.RGBComponent),n.Factory.addGetterSetter(n.Shape,"fillBlue",0,n.Validators.RGBComponent),n.Factory.addGetterSetter(n.Shape,"fillAlpha",1,n.Validators.alphaComponent),n.Factory.addGetterSetter(n.Shape,"fillPatternX",0),n.Factory.addGetterSetter(n.Shape,"fillPatternY",0),n.Factory.addGetterSetter(n.Shape,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(n.Shape,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(n.Shape,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(n.Shape,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(n.Shape,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(n.Shape,"fillEnabled",!0),n.Factory.addGetterSetter(n.Shape,"strokeEnabled",!0),n.Factory.addGetterSetter(n.Shape,"shadowEnabled",!0),n.Factory.addGetterSetter(n.Shape,"dashEnabled",!0),n.Factory.addGetterSetter(n.Shape,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(n.Shape,"fillPriority","color"),n.Factory.addComponentsGetterSetter(n.Shape,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(n.Shape,"fillPatternOffsetX",0),n.Factory.addGetterSetter(n.Shape,"fillPatternOffsetY",0),n.Factory.addComponentsGetterSetter(n.Shape,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(n.Shape,"fillPatternScaleX",1),n.Factory.addGetterSetter(n.Shape,"fillPatternScaleY",1),n.Factory.addComponentsGetterSetter(n.Shape,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(n.Shape,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(n.Shape,"fillLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(n.Shape,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(n.Shape,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(n.Shape,"fillLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(n.Shape,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(n.Shape,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(n.Shape,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(n.Shape,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(n.Shape,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(n.Shape,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(n.Shape,"fillPatternRotation",0),n.Factory.backCompat(n.Shape,{
	dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"}
),n.Collection.mapMethods(n.Shape)}
(),function(){
	function t(t,e){
	t.content.addEventListener(e,function(i){
	t[I+e](i)}
,!1)}
var e="Stage",i="string",a="px",r="mouseout",s="mouseleave",o="mouseover",h="mouseenter",c="mousemove",l="mousedown",d="mouseup",u="click",f="dblclick",g="touchstart",p="touchend",v="tap",m="dbltap",_="touchmove",y="contentMouseout",S="contentMouseover",C="contentMousemove",x="contentMousedown",F="contentMouseup",w="contentClick",b="contentDblclick",P="contentTouchstart",T="contentTouchend",A="contentDbltap",G="contentTouchmove",k="div",D="relative",L="inline-block",M="kineticjs-content",R=" ",I="_",N="container",B="",U=[l,c,d,r,g,_,p,o],E=U.length;
	n.Util.addMethods(n.Stage,{
	___init:function(t){
	this.nodeType=e,n.Container.call(this,t),this._id=n.idCounter++,this._buildDOM(),this._bindContentEvents(),this._enableNestedTransforms=!1,n.stages.push(this)}
,_validateAdd:function(t){
	"Layer"!==t.getType()&&n.Util.error("You may only add layers to the stage.")}
,setContainer:function(t){
	if(typeof t===i){
	var e=t;
	if(t=n.document.getElementById(t),!t)throw"Can not find container in document with id "+e}
return this._setAttr(N,t),this}
,shouldDrawHit:function(){
	return!0}
,draw:function(){
	return n.Node.prototype.draw.call(this),this}
,setHeight:function(t){
	return n.Node.prototype.setHeight.call(this,t),this._resizeDOM(),this}
,setWidth:function(t){
	return n.Node.prototype.setWidth.call(this,t),this._resizeDOM(),this}
,clear:function(){
	var t,e=this.children,i=e.length;
	for(t=0;
	i>t;
	t++)e[t].clear();
	return this}
,clone:function(t){
	return t||(t={
}
),t.container=n.document.createElement(k),n.Container.prototype.clone.call(this,t)}
,destroy:function(){
	var t=this.content;
	n.Container.prototype.destroy.call(this),t&&n.Util._isInDocument(t)&&this.getContainer().removeChild(t);
	var e=n.stages.indexOf(this);
	e>-1&&n.stages.splice(e,1)}
,getPointerPosition:function(){
	return this.pointerPos}
,getStage:function(){
	return this}
,getContent:function(){
	return this.content}
,toDataURL:function(t){
	function e(r){
	var s=c[r],l=s.toDataURL(),d=new n.window.Image;
	d.onload=function(){
	h.drawImage(d,0,0),r<c.length-1?e(r+1):t.callback(o.toDataURL(i,a))}
,d.src=l}
t=t||{
}
;
	var i=t.mimeType||null,a=t.quality||null,r=t.x||0,s=t.y||0,o=new n.SceneCanvas({
	width:t.width||this.getWidth(),height:t.height||this.getHeight(),pixelRatio:1}
),h=o.getContext()._context,c=this.children;
	(r||s)&&h.translate(-1*r,-1*s),e(0)}
,toImage:function(t){
	var e=t.callback;
	t.callback=function(t){
	n.Util._getImage(t,function(t){
	e(t)}
)}
,this.toDataURL(t)}
,getIntersection:function(t){
	var e,i,n=this.getChildren(),a=n.length,r=a-1;
	for(e=r;
	e>=0;
	e--)if(i=n[e].getIntersection(t))return i;
	return null}
,_resizeDOM:function(){
	if(this.content){
	var t,e,i=this.getWidth(),n=this.getHeight(),r=this.getChildren(),s=r.length;
	for(this.content.style.width=i+a,this.content.style.height=n+a,this.bufferCanvas.setSize(i,n),this.bufferHitCanvas.setSize(i,n),t=0;
	s>t;
	t++)e=r[t],e.getCanvas().setSize(i,n),e.hitCanvas.setSize(i,n),e.draw()}
}
,add:function(t){
	if(!(arguments.length>1))return n.Container.prototype.add.call(this,t),t._setCanvasSize(this.width(),this.height()),t.draw(),this.content.appendChild(t.canvas._canvas),this;
	for(var e=0;
	e<arguments.length;
	e++)this.add(arguments[e])}
,getParent:function(){
	return null}
,getLayer:function(){
	return null}
,getLayers:function(){
	return this.getChildren()}
,_bindContentEvents:function(){
	for(var e=0;
	E>e;
	e++)t(this,U[e])}
,_mouseover:function(t){
	n.UA.mobile||(this._setPointerPosition(t),this._fire(S,{
	evt:t}
))}
,_mouseout:function(t){
	if(!n.UA.mobile){
	this._setPointerPosition(t);
	var e=this.targetShape;
	e&&!n.isDragging()&&(e._fireAndBubble(r,{
	evt:t}
),e._fireAndBubble(s,{
	evt:t}
),this.targetShape=null),this.pointerPos=void 0,this._fire(y,{
	evt:t}
)}
}
,_mousemove:function(t){
	if(!n.UA.mobile){
	this._setPointerPosition(t);
	var e=n.DD,i=this.getIntersection(this.getPointerPosition());
	i&&i.isListening()?n.isDragging()||this.targetShape&&this.targetShape._id===i._id?i._fireAndBubble(c,{
	evt:t}
):(this.targetShape&&(this.targetShape._fireAndBubble(r,{
	evt:t}
,i),this.targetShape._fireAndBubble(s,{
	evt:t}
,i)),i._fireAndBubble(o,{
	evt:t}
,this.targetShape),i._fireAndBubble(h,{
	evt:t}
,this.targetShape),this.targetShape=i):this.targetShape&&!n.isDragging()&&(this.targetShape._fireAndBubble(r,{
	evt:t}
),this.targetShape._fireAndBubble(s,{
	evt:t}
),this.targetShape=null),this._fire(C,{
	evt:t}
),e&&e._drag(t)}
t.preventDefault&&t.preventDefault()}
,_mousedown:function(t){
	if(!n.UA.mobile){
	this._setPointerPosition(t);
	var e=this.getIntersection(this.getPointerPosition());
	n.listenClickTap=!0,e&&e.isListening()&&(this.clickStartShape=e,e._fireAndBubble(l,{
	evt:t}
)),this._fire(x,{
	evt:t}
)}
t.preventDefault&&t.preventDefault()}
,_mouseup:function(t){
	if(!n.UA.mobile){
	this._setPointerPosition(t);
	var e=this.getIntersection(this.getPointerPosition()),i=this.clickStartShape,a=!1;
	n.inDblClickWindow?(a=!0,n.inDblClickWindow=!1):n.inDblClickWindow=!0,setTimeout(function(){
	n.inDblClickWindow=!1}
,n.dblClickWindow),e&&e.isListening()&&(e._fireAndBubble(d,{
	evt:t}
),n.listenClickTap&&i&&i._id===e._id&&(e._fireAndBubble(u,{
	evt:t}
),a&&e._fireAndBubble(f,{
	evt:t}
))),this._fire(F,{
	evt:t}
),n.listenClickTap&&(this._fire(w,{
	evt:t}
),a&&this._fire(b,{
	evt:t}
)),n.listenClickTap=!1}
t.preventDefault&&t.preventDefault()}
,_touchstart:function(t){
	this._setPointerPosition(t);
	var e=this.getIntersection(this.getPointerPosition());
	n.listenClickTap=!0,e&&e.isListening()&&(this.tapStartShape=e,e._fireAndBubble(g,{
	evt:t}
),e.isListening()&&t.preventDefault&&t.preventDefault()),this._fire(P,{
	evt:t}
)}
,_touchend:function(t){
	this._setPointerPosition(t);
	var e=this.getIntersection(this.getPointerPosition()),i=!1;
	n.inDblClickWindow?(i=!0,n.inDblClickWindow=!1):n.inDblClickWindow=!0,setTimeout(function(){
	n.inDblClickWindow=!1}
,n.dblClickWindow),e&&e.isListening()&&(e._fireAndBubble(p,{
	evt:t}
),n.listenClickTap&&e._id===this.tapStartShape._id&&(e._fireAndBubble(v,{
	evt:t}
),i&&e._fireAndBubble(m,{
	evt:t}
)),e.isListening()&&t.preventDefault&&t.preventDefault()),n.listenClickTap&&(this._fire(T,{
	evt:t}
),i&&this._fire(A,{
	evt:t}
)),n.listenClickTap=!1}
,_touchmove:function(t){
	this._setPointerPosition(t);
	var e=n.DD,i=this.getIntersection(this.getPointerPosition());
	i&&i.isListening()&&(i._fireAndBubble(_,{
	evt:t}
),i.isListening()&&t.preventDefault&&t.preventDefault()),this._fire(G,{
	evt:t}
),e&&e._drag(t)}
,_setPointerPosition:function(t){
	var e,i=this._getContentPosition(),a=t.offsetX,r=t.clientX,s=null,o=null;
	t=t?t:window.event,void 0!==t.touches?t.touches.length>0&&(e=t.touches[0],s=e.clientX-i.left,o=e.clientY-i.top):void 0!==a?(s=a,o=t.offsetY):"mozilla"===n.UA.browser?(s=t.layerX,o=t.layerY):void 0!==r&&i&&(s=r-i.left,o=t.clientY-i.top),null!==s&&null!==o&&(this.pointerPos={
	x:s,y:o}
)}
,_getContentPosition:function(){
	var t=this.content.getBoundingClientRect?this.content.getBoundingClientRect():{
	top:0,left:0}
;
	return{
	top:t.top,left:t.left}
}
,_buildDOM:function(){
	var t=this.getContainer();
	if(!t){
	if(n.Util.isBrowser())throw"Stage has not container. But container is required";
	t=n.document.createElement(k)}
t.innerHTML=B,this.content=n.document.createElement(k),this.content.style.position=D,this.content.style.display=L,this.content.className=M,this.content.setAttribute("role","presentation"),t.appendChild(this.content),this.bufferCanvas=new n.SceneCanvas({
	pixelRatio:1}
),this.bufferHitCanvas=new n.HitCanvas,this._resizeDOM()}
,_onContent:function(t,e){
	var i,n,a=t.split(R),r=a.length;
	for(i=0;
	r>i;
	i++)n=a[i],this.content.addEventListener(n,e,!1)}
,cache:function(){
	n.Util.warn("Cache function is not allowed for stage. You may use cache only for layers,groups and shapes.")}
,clearCache:function(){
}
}
),n.Util.extend(n.Stage,n.Container),n.Factory.addGetter(n.Stage,"container"),n.Factory.addOverloadedGetterSetter(n.Stage,"container")}
(),function(){
	n.Util.addMethods(n.BaseLayer,{
	___init:function(t){
	this.nodeType="Layer",n.Container.call(this,t)}
,createPNGStream:function(){
	return this.canvas._canvas.createPNGStream()}
,getCanvas:function(){
	return this.canvas}
,getHitCanvas:function(){
	return this.hitCanvas}
,getContext:function(){
	return this.getCanvas().getContext()}
,clear:function(t){
	return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}
,setZIndex:function(t){
	n.Node.prototype.setZIndex.call(this,t);
	var e=this.getStage();
	return e&&(e.content.removeChild(this.getCanvas()._canvas),t<e.getChildren().length-1?e.content.insertBefore(this.getCanvas()._canvas,e.getChildren()[t+1].getCanvas()._canvas):e.content.appendChild(this.getCanvas()._canvas)),this}
,moveToTop:function(){
	n.Node.prototype.moveToTop.call(this);
	var t=this.getStage();
	t&&(t.content.removeChild(this.getCanvas()._canvas),t.content.appendChild(this.getCanvas()._canvas))}
,moveUp:function(){
	if(n.Node.prototype.moveUp.call(this)){
	var t=this.getStage();
	t&&(t.content.removeChild(this.getCanvas()._canvas),this.index<t.getChildren().length-1?t.content.insertBefore(this.getCanvas()._canvas,t.getChildren()[this.index+1].getCanvas()._canvas):t.content.appendChild(this.getCanvas()._canvas))}
}
,moveDown:function(){
	if(n.Node.prototype.moveDown.call(this)){
	var t=this.getStage();
	if(t){
	var e=t.getChildren();
	t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[this.index+1].getCanvas()._canvas)}
}
}
,moveToBottom:function(){
	if(n.Node.prototype.moveToBottom.call(this)){
	var t=this.getStage();
	if(t){
	var e=t.getChildren();
	t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[1].getCanvas()._canvas)}
}
}
,getLayer:function(){
	return this}
,remove:function(){
	var t=this.getCanvas()._canvas;
	return n.Node.prototype.remove.call(this),t&&t.parentNode&&n.Util._isInDocument(t)&&t.parentNode.removeChild(t),this}
,getStage:function(){
	return this.parent}
}
),n.Util.extend(n.BaseLayer,n.Container),n.Factory.addGetterSetter(n.BaseLayer,"clearBeforeDraw",!0),n.Collection.mapMethods(n.BaseLayer)}
(),function(){
	var t="#",e="beforeDraw",i="draw",a=[{
	x:0,y:0}
,{
	x:-1,y:0}
,{
	x:-1,y:-1}
,{
	x:0,y:-1}
,{
	x:1,y:-1}
,{
	x:1,y:0}
,{
	x:1,y:1}
,{
	x:0,y:1}
,{
	x:-1,y:1}
],r=a.length;
	n.Util.addMethods(n.Layer,{
	____init:function(t){
	this.nodeType="Layer",this.canvas=new n.SceneCanvas,this.hitCanvas=new n.HitCanvas,n.BaseLayer.call(this,t)}
,_setCanvasSize:function(t,e){
	this.canvas.setSize(t,e),this.hitCanvas.setSize(t,e)}
,_validateAdd:function(t){
	var e=t.getType();
	"Group"!==e&&"Shape"!==e&&n.Util.error("You may only add groups and shapes to a layer.")}
,getIntersection:function(t){
	var e,i,n,s;
	if(!this.hitGraphEnabled()||!this.isVisible())return null;
	for(i=0;
	r>i;
	i++){
	if(n=a[i],e=this._getIntersection({
	x:t.x+n.x,y:t.y+n.y}
),s=e.shape)return s;
	if(!e.antialiased)return null}
}
,_getIntersection:function(e){
	var i,a,r=this.hitCanvas.context._context.getImageData(e.x,e.y,1,1).data,s=r[3];
	return 255===s?(i=n.Util._rgbToHex(r[0],r[1],r[2]),a=n.shapes[t+i],{
	shape:a}
):s>0?{
	antialiased:!0}
:{
}
}
,drawScene:function(t,a){
	var r=this.getLayer(),s=t||r&&r.getCanvas();
	return this._fire(e,{
	node:this}
),this.getClearBeforeDraw()&&s.getContext().clear(),n.Container.prototype.drawScene.call(this,s,a),this._fire(i,{
	node:this}
),this}
,_applyTransform:function(t,e,i){
	var n=t.getAbsoluteTransform(i).getMatrix();
	e.transform(n[0],n[1],n[2],n[3],n[4],n[5])}
,drawHit:function(t,e){
	var i=this.getLayer(),a=t||i&&i.hitCanvas;
	return i&&i.getClearBeforeDraw()&&i.getHitCanvas().getContext().clear(),n.Container.prototype.drawHit.call(this,a,e),this}
,clear:function(t){
	return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}
,setVisible:function(t){
	return n.Node.prototype.setVisible.call(this,t),t?(this.getCanvas()._canvas.style.display="block",this.hitCanvas._canvas.style.display="block"):(this.getCanvas()._canvas.style.display="none",this.hitCanvas._canvas.style.display="none"),this}
,enableHitGraph:function(){
	return this.setHitGraphEnabled(!0),this}
,disableHitGraph:function(){
	return this.setHitGraphEnabled(!1),this}
}
),n.Util.extend(n.Layer,n.BaseLayer),n.Factory.addGetterSetter(n.Layer,"hitGraphEnabled",!0),n.Collection.mapMethods(n.Layer)}
(),function(){
	n.Util.addMethods(n.FastLayer,{
	____init:function(t){
	this.nodeType="Layer",this.canvas=new n.SceneCanvas,n.BaseLayer.call(this,t)}
,_validateAdd:function(t){
	var e=t.getType();
	"Shape"!==e&&n.Util.error("You may only add shapes to a fast layer.")}
,_setCanvasSize:function(t,e){
	this.canvas.setSize(t,e)}
,hitGraphEnabled:function(){
	return!1}
,getIntersection:function(){
	return null}
,drawScene:function(t){
	var e=this.getLayer(),i=t||e&&e.getCanvas();
	return this.getClearBeforeDraw()&&i.getContext().clear(),n.Container.prototype.drawScene.call(this,i),this}
,_applyTransform:function(t,e,i){
	if(!i||i._id!==this._id){
	var n=t.getTransform().getMatrix();
	e.transform(n[0],n[1],n[2],n[3],n[4],n[5])}
}
,draw:function(){
	return this.drawScene(),this}
,clear:function(t){
	return this.getContext().clear(t),this}
,setVisible:function(t){
	return n.Node.prototype.setVisible.call(this,t),this.getCanvas()._canvas.style.display=t?"block":"none",this}
}
),n.Util.extend(n.FastLayer,n.BaseLayer),n.Collection.mapMethods(n.FastLayer)}
(),function(){
	n.Util.addMethods(n.Group,{
	___init:function(t){
	this.nodeType="Group",n.Container.call(this,t)}
,_validateAdd:function(t){
	var e=t.getType();
	"Group"!==e&&"Shape"!==e&&n.Util.error("You may only add groups and shapes to groups.")}
}
),n.Util.extend(n.Group,n.Container),n.Collection.mapMethods(n.Group)}
(),function(){
	n.Rect=function(t){
	this.___init(t)}
,n.Rect.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className="Rect",this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(t){
	var e=this.getCornerRadius(),i=this.getWidth(),n=this.getHeight();
	t.beginPath(),e?(t.moveTo(e,0),t.lineTo(i-e,0),t.arc(i-e,e,e,3*Math.PI/2,0,!1),t.lineTo(i,n-e),t.arc(i-e,n-e,e,0,Math.PI/2,!1),t.lineTo(e,n),t.arc(e,n-e,e,Math.PI/2,Math.PI,!1),t.lineTo(0,e),t.arc(e,e,e,Math.PI,3*Math.PI/2,!1)):t.rect(0,0,i,n),t.closePath(),t.fillStrokeShape(this)}
}
,n.Util.extend(n.Rect,n.Shape),n.Factory.addGetterSetter(n.Rect,"cornerRadius",0),n.Collection.mapMethods(n.Rect)}
(),function(){
	var t=2*Math.PI-1e-4,e="Circle";
	n.Circle=function(t){
	this.___init(t)}
,n.Circle.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className=e,this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(e){
	e.beginPath(),e.arc(0,0,this.getRadius(),0,t,!1),e.closePath(),e.fillStrokeShape(this)}
,getWidth:function(){
	return 2*this.getRadius()}
,getHeight:function(){
	return 2*this.getRadius()}
,setWidth:function(t){
	n.Node.prototype.setWidth.call(this,t),this.setRadius(t/2)}
,setHeight:function(t){
	n.Node.prototype.setHeight.call(this,t),this.setRadius(t/2)}
}
,n.Util.extend(n.Circle,n.Shape),n.Factory.addGetterSetter(n.Circle,"radius",0),n.Collection.mapMethods(n.Circle)}
(),function(){
	var t=2*Math.PI-1e-4,e="Ellipse";
	n.Ellipse=function(t){
	this.___init(t)}
,n.Ellipse.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className=e,this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(e){
	var i=this.getRadius(),n=i.x,a=i.y;
	e.beginPath(),e.save(),n!==a&&e.scale(1,a/n),e.arc(0,0,n,0,t,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}
,getWidth:function(){
	return 2*this.getRadius().x}
,getHeight:function(){
	return 2*this.getRadius().y}
,setWidth:function(t){
	n.Node.prototype.setWidth.call(this,t),this.setRadius({
	x:t/2}
)}
,setHeight:function(t){
	n.Node.prototype.setHeight.call(this,t),this.setRadius({
	y:t/2}
)}
}
,n.Util.extend(n.Ellipse,n.Shape),n.Factory.addComponentsGetterSetter(n.Ellipse,"radius",["x","y"]),n.Factory.addGetterSetter(n.Ellipse,"radiusX",0),n.Factory.addGetterSetter(n.Ellipse,"radiusY",0),n.Collection.mapMethods(n.Ellipse)}
(),function(){
	var t=2*Math.PI-1e-4;
	n.Ring=function(t){
	this.___init(t)}
,n.Ring.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className="Ring",this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(e){
	e.beginPath(),e.arc(0,0,this.getInnerRadius(),0,t,!1),e.moveTo(this.getOuterRadius(),0),e.arc(0,0,this.getOuterRadius(),t,0,!0),e.closePath(),e.fillStrokeShape(this)}
,getWidth:function(){
	return 2*this.getOuterRadius()}
,getHeight:function(){
	return 2*this.getOuterRadius()}
,setWidth:function(t){
	n.Node.prototype.setWidth.call(this,t),this.setOuterRadius(t/2)}
,setHeight:function(t){
	n.Node.prototype.setHeight.call(this,t),this.setOuterRadius(t/2)}
}
,n.Util.extend(n.Ring,n.Shape),n.Factory.addGetterSetter(n.Ring,"innerRadius",0),n.Factory.addGetterSetter(n.Ring,"outerRadius",0),n.Collection.mapMethods(n.Ring)}
(),function(){
	n.Wedge=function(t){
	this.___init(t)}
,n.Wedge.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className="Wedge",this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(t){
	t.beginPath(),t.arc(0,0,this.getRadius(),0,n.getAngle(this.getAngle()),this.getClockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}
}
,n.Util.extend(n.Wedge,n.Shape),n.Factory.addGetterSetter(n.Wedge,"radius",0),n.Factory.addGetterSetter(n.Wedge,"angle",0),n.Factory.addGetterSetter(n.Wedge,"clockwise",!1),n.Factory.backCompat(n.Wedge,{
	angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}
),n.Collection.mapMethods(n.Wedge)}
(),function(){
	Math.PI/180;
	n.Arc=function(t){
	this.___init(t)}
,n.Arc.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className="Arc",this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(t){
	var e=n.getAngle(this.angle()),i=this.clockwise();
	t.beginPath(),t.arc(0,0,this.getOuterRadius(),0,e,i),t.arc(0,0,this.getInnerRadius(),e,0,!i),t.closePath(),t.fillStrokeShape(this)}
}
,n.Util.extend(n.Arc,n.Shape),n.Factory.addGetterSetter(n.Arc,"innerRadius",0),n.Factory.addGetterSetter(n.Arc,"outerRadius",0),n.Factory.addGetterSetter(n.Arc,"angle",0),n.Factory.addGetterSetter(n.Arc,"clockwise",!1),n.Collection.mapMethods(n.Arc)}
(),function(){
	var t="Image";
	n.Image=function(t){
	this.___init(t)}
,n.Image.prototype={
	___init:function(e){
	n.Shape.call(this,e),this.className=t,this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)}
,_useBufferCanvas:function(){
	return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()}
,_sceneFunc:function(t){
	var e,i,n,a,r=this.getWidth(),s=this.getHeight(),o=this.getImage();
	o&&(e=this.getCrop(),i=e.width,n=e.height,a=i&&n?[o,e.x,e.y,i,n,0,0,r,s]:[o,0,0,r,s]),t.beginPath(),t.rect(0,0,r,s),t.closePath(),t.fillStrokeShape(this),o&&t.drawImage.apply(t,a)}
,_hitFunc:function(t){
	var e=this.getWidth(),i=this.getHeight();
	t.beginPath(),t.rect(0,0,e,i),t.closePath(),t.fillStrokeShape(this)}
,getWidth:function(){
	var t=this.getImage();
	return this.attrs.width||(t?t.width:0)}
,getHeight:function(){
	var t=this.getImage();
	return this.attrs.height||(t?t.height:0)}
}
,n.Util.extend(n.Image,n.Shape),n.Factory.addGetterSetter(n.Image,"image"),n.Factory.addComponentsGetterSetter(n.Image,"crop",["x","y","width","height"]),n.Factory.addGetterSetter(n.Image,"cropX",0),n.Factory.addGetterSetter(n.Image,"cropY",0),n.Factory.addGetterSetter(n.Image,"cropWidth",0),n.Factory.addGetterSetter(n.Image,"cropHeight",0),n.Collection.mapMethods(n.Image)}
(),function(){
	function t(t){
	t.fillText(this.partialText,0,0)}
function e(t){
	t.strokeText(this.partialText,0,0)}
var i="auto",a="center",r="Change.kinetic",s="2d",o="-",h="",c="left",l="text",d="Text",u="middle",f="normal",g="px ",p=" ",v="right",m="word",_="char",y="none",S=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","lineHeight","text","width","height","wrap"],C=S.length,x=n.Util.createCanvasElement().getContext(s);
	n.Text=function(t){
	this.___init(t)}
,n.Text.prototype={
	___init:function(a){
	var s=this;
	void 0===a.width&&(a.width=i),void 0===a.height&&(a.height=i),n.Shape.call(this,a),this._fillFunc=t,this._strokeFunc=e,this.className=d;
	for(var o=0;
	C>o;
	o++)this.on(S[o]+r,s._setTextData);
	this._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)}
,_sceneFunc:function(t){
	var e,i=this.getPadding(),n=this.getTextHeight(),r=this.getLineHeight()*n,s=this.textArr,o=s.length,h=this.getWidth();
	for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",u),t.setAttr("textAlign",c),t.save(),t.translate(i,0),t.translate(0,i+n/2),e=0;
	o>e;
	e++){
	var l=s[e],d=l.text,f=l.width;
	t.save(),this.getAlign()===v?t.translate(h-f-2*i,0):this.getAlign()===a&&t.translate((h-f-2*i)/2,0),this.partialText=d,t.fillStrokeShape(this),t.restore(),t.translate(0,r)}
t.restore()}
,_hitFunc:function(t){
	var e=this.getWidth(),i=this.getHeight();
	t.beginPath(),t.rect(0,0,e,i),t.closePath(),t.fillStrokeShape(this)}
,setText:function(t){
	var e=n.Util._isString(t)?t:t.toString();
	return this._setAttr(l,e),this}
,getWidth:function(){
	return this.attrs.width===i?this.getTextWidth()+2*this.getPadding():this.attrs.width}
,getHeight:function(){
	return this.attrs.height===i?this.getTextHeight()*this.textArr.length*this.getLineHeight()+2*this.getPadding():this.attrs.height}
,getTextWidth:function(){
	return this.textWidth}
,getTextHeight:function(){
	return this.textHeight}
,_getTextSize:function(t){
	var e,i=x,n=this.getFontSize();
	return i.save(),i.font=this._getContextFont(),e=i.measureText(t),i.restore(),{
	width:e.width,height:parseInt(n,10)}
}
,_getContextFont:function(){
	return this.getFontStyle()+p+this.getFontVariant()+p+this.getFontSize()+g+this.getFontFamily()}
,_addTextLine:function(t,e){
	return this.textArr.push({
	text:t,width:e}
)}
,_getTextWidth:function(t){
	return x.measureText(t).width}
,_setTextData:function(){
	var t=this.getText().split("\n"),e=+this.getFontSize(),n=0,a=this.getLineHeight()*e,r=this.attrs.width,s=this.attrs.height,h=r!==i,c=s!==i,l=this.getPadding(),d=r-2*l,u=s-2*l,f=0,g=this.getWrap(),v=g!==y,m=g!==_&&v;
	this.textArr=[],x.save(),x.font=this._getContextFont();
	for(var S=0,C=t.length;
	C>S;
	++S){
	var F=t[S],w=this._getTextWidth(F);
	if(h&&w>d)for(;
	F.length>0;
	){
	for(var b=0,P=F.length,T="",A=0;
	P>b;
	){
	var G=b+P>>>1,k=F.slice(0,G+1),D=this._getTextWidth(k);
	d>=D?(b=G+1,T=k,A=D):P=G}
if(!T)break;
	if(m){
	var L=Math.max(T.lastIndexOf(p),T.lastIndexOf(o))+1;
	L>0&&(b=L,T=T.slice(0,b),A=this._getTextWidth(T))}
if(this._addTextLine(T,A),n=Math.max(n,A),f+=a,!v||c&&f+a>u)break;
	if(F=F.slice(b),F.length>0&&(w=this._getTextWidth(F),d>=w)){
	this._addTextLine(F,w),f+=a,n=Math.max(n,w);
	break}
}
else this._addTextLine(F,w),f+=a,n=Math.max(n,w);
	if(c&&f+a>u)break}
x.restore(),this.textHeight=e,this.textWidth=n}
}
,n.Util.extend(n.Text,n.Shape),n.Factory.addGetterSetter(n.Text,"fontFamily","Arial"),n.Factory.addGetterSetter(n.Text,"fontSize",12),n.Factory.addGetterSetter(n.Text,"fontStyle",f),n.Factory.addGetterSetter(n.Text,"fontVariant",f),n.Factory.addGetterSetter(n.Text,"padding",0),n.Factory.addGetterSetter(n.Text,"align",c),n.Factory.addGetterSetter(n.Text,"lineHeight",1),n.Factory.addGetterSetter(n.Text,"wrap",m),n.Factory.addGetter(n.Text,"text",h),n.Factory.addOverloadedGetterSetter(n.Text,"text"),n.Collection.mapMethods(n.Text)}
(),function(){
	n.Line=function(t){
	this.___init(t)}
,n.Line.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className="Line",this.on("pointsChange.kinetic tensionChange.kinetic closedChange.kinetic",function(){
	this._clearCache("tensionPoints")}
),this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(t){
	var e,i,n,a=this.getPoints(),r=a.length,s=this.getTension(),o=this.getClosed();
	if(t.beginPath(),t.moveTo(a[0],a[1]),0!==s&&r>4){
	for(e=this.getTensionPoints(),i=e.length,n=o?0:4,o||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);
	i-2>n;
	)t.bezierCurveTo(e[n++],e[n++],e[n++],e[n++],e[n++],e[n++]);
	o||t.quadraticCurveTo(e[i-2],e[i-1],a[r-2],a[r-1])}
else for(n=2;
	r>n;
	n+=2)t.lineTo(a[n],a[n+1]);
	o?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}
,getTensionPoints:function(){
	return this._getCache("tensionPoints",this._getTensionPoints)}
,_getTensionPoints:function(){
	return this.getClosed()?this._getTensionPointsClosed():n.Util._expandPoints(this.getPoints(),this.getTension())}
,_getTensionPointsClosed:function(){
	var t=this.getPoints(),e=t.length,i=this.getTension(),a=n.Util,r=a._getControlPoints(t[e-2],t[e-1],t[0],t[1],t[2],t[3],i),s=a._getControlPoints(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],i),o=n.Util._expandPoints(t,i),h=[r[2],r[3]].concat(o).concat([s[0],s[1],t[e-2],t[e-1],s[2],s[3],r[0],r[1],t[0],t[1]]);
	return h}
}
,n.Util.extend(n.Line,n.Shape),n.Factory.addGetterSetter(n.Line,"closed",!1),n.Factory.addGetterSetter(n.Line,"tension",0),n.Factory.addGetterSetter(n.Line,"points"),n.Collection.mapMethods(n.Line)}
(),function(){
	n.Sprite=function(t){
	this.___init(t)}
,n.Sprite.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className="Sprite",this.anim=new n.Animation,this.on("animationChange.kinetic",function(){
	this.frameIndex(0)}
),this.on("frameRateChange.kinetic",function(){
	this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}
),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)}
,_sceneFunc:function(t){
	var e=this.getAnimation(),i=this.frameIndex(),n=4*i,a=this.getAnimations()[e],r=a[n+0],s=a[n+1],o=a[n+2],h=a[n+3],c=this.getImage();
	c&&t.drawImage(c,r,s,o,h,0,0,o,h)}
,_hitFunc:function(t){
	var e=this.getAnimation(),i=this.frameIndex(),n=4*i,a=this.getAnimations()[e],r=a[n+2],s=a[n+3];
	t.beginPath(),t.rect(0,0,r,s),t.closePath(),t.fillShape(this)}
,_useBufferCanvas:function(){
	return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()}
,_setInterval:function(){
	var t=this;
	this.interval=setInterval(function(){
	t._updateIndex()}
,1e3/this.getFrameRate())}
,start:function(){
	var t=this.getLayer();
	this.anim.setLayers(t),this._setInterval(),this.anim.start()}
,stop:function(){
	this.anim.stop(),clearInterval(this.interval)}
,isRunning:function(){
	return this.anim.isRunning()}
,_updateIndex:function(){
	var t=this.frameIndex(),e=this.getAnimation(),i=this.getAnimations(),n=i[e],a=n.length/4;
	this.frameIndex(a-1>t?t+1:0)}
}
,n.Util.extend(n.Sprite,n.Shape),n.Factory.addGetterSetter(n.Sprite,"animation"),n.Factory.addGetterSetter(n.Sprite,"animations"),n.Factory.addGetterSetter(n.Sprite,"image"),n.Factory.addGetterSetter(n.Sprite,"frameIndex",0),n.Factory.addGetterSetter(n.Sprite,"frameRate",17),n.Factory.backCompat(n.Sprite,{
	index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}
),n.Collection.mapMethods(n.Sprite)}
(),function(){
	n.Path=function(t){
	this.___init(t)}
,n.Path.prototype={
	___init:function(t){
	this.dataArray=[];
	var e=this;
	n.Shape.call(this,t),this.className="Path",this.dataArray=n.Path.parsePathData(this.getData()),this.on("dataChange.kinetic",function(){
	e.dataArray=n.Path.parsePathData(this.getData())}
),this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(t){
	var e=this.dataArray,i=!1;
	t.beginPath();
	for(var n=0;
	n<e.length;
	n++){
	var a=e[n].command,r=e[n].points;
	switch(a){
	case"L":t.lineTo(r[0],r[1]);
	break;
	case"M":t.moveTo(r[0],r[1]);
	break;
	case"C":t.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);
	break;
	case"Q":t.quadraticCurveTo(r[0],r[1],r[2],r[3]);
	break;
	case"A":var s=r[0],o=r[1],h=r[2],c=r[3],l=r[4],d=r[5],u=r[6],f=r[7],g=h>c?h:c,p=h>c?1:h/c,v=h>c?c/h:1;
	t.translate(s,o),t.rotate(u),t.scale(p,v),t.arc(0,0,g,l,l+d,1-f),t.scale(1/p,1/v),t.rotate(-u),t.translate(-s,-o);
	break;
	case"z":t.closePath(),i=!0}
}
i?t.fillStrokeShape(this):t.strokeShape(this)}
}
,n.Util.extend(n.Path,n.Shape),n.Path.getLineLength=function(t,e,i,n){
	return Math.sqrt((i-t)*(i-t)+(n-e)*(n-e))}
,n.Path.getPointOnLine=function(t,e,i,n,a,r,s){
	void 0===r&&(r=e),void 0===s&&(s=i);
	var o=(a-i)/(n-e+1e-8),h=Math.sqrt(t*t/(1+o*o));
	e>n&&(h*=-1);
	var c,l=o*h;
	if(n===e)c={
	x:r,y:s+l}
;
	else if((s-i)/(r-e+1e-8)===o)c={
	x:r+h,y:s+l}
;
	else{
	var d,u,f=this.getLineLength(e,i,n,a);
	if(1e-8>f)return void 0;
	var g=(r-e)*(n-e)+(s-i)*(a-i);
	g/=f*f,d=e+g*(n-e),u=i+g*(a-i);
	var p=this.getLineLength(r,s,d,u),v=Math.sqrt(t*t-p*p);
	h=Math.sqrt(v*v/(1+o*o)),e>n&&(h*=-1),l=o*h,c={
	x:d+h,y:u+l}
}
return c}
,n.Path.getPointOnCubicBezier=function(t,e,i,n,a,r,s,o,h){
	function c(t){
	return t*t*t}
function l(t){
	return 3*t*t*(1-t)}
function d(t){
	return 3*t*(1-t)*(1-t)}
function u(t){
	return(1-t)*(1-t)*(1-t)}
var f=o*c(t)+r*l(t)+n*d(t)+e*u(t),g=h*c(t)+s*l(t)+a*d(t)+i*u(t);
	return{
	x:f,y:g}
}
,n.Path.getPointOnQuadraticBezier=function(t,e,i,n,a,r,s){
	function o(t){
	return t*t}
function h(t){
	return 2*t*(1-t)}
function c(t){
	return(1-t)*(1-t)}
var l=r*o(t)+n*h(t)+e*c(t),d=s*o(t)+a*h(t)+i*c(t);
	return{
	x:l,y:d}
}
,n.Path.getPointOnEllipticalArc=function(t,e,i,n,a,r){
	var s=Math.cos(r),o=Math.sin(r),h={
	x:i*Math.cos(a),y:n*Math.sin(a)}
;
	return{
	x:t+(h.x*s-h.y*o),y:e+(h.x*o+h.y*s)}
}
,n.Path.parsePathData=function(t){
	if(!t)return[];
	var e=t,i=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];
	e=e.replace(new RegExp(" ","g"),",");
	for(var n=0;
	n<i.length;
	n++)e=e.replace(new RegExp(i[n],"g"),"|"+i[n]);
	var a=e.split("|"),r=[],s=0,o=0;
	for(n=1;
	n<a.length;
	n++){
	var h=a[n],c=h.charAt(0);
	h=h.slice(1),h=h.replace(new RegExp(",-","g"),"-"),h=h.replace(new RegExp("-","g"),",-"),h=h.replace(new RegExp("e,-","g"),"e-");
	var l=h.split(",");
	l.length>0&&""===l[0]&&l.shift();
	for(var d=0;
	d<l.length;
	d++)l[d]=parseFloat(l[d]);
	for(;
	l.length>0&&!isNaN(l[0]);
	){
	var u,f,g,p,v,m,_,y,S,C,x=null,F=[],w=s,b=o;
	switch(c){
	case"l":s+=l.shift(),o+=l.shift(),x="L",F.push(s,o);
	break;
	case"L":s=l.shift(),o=l.shift(),F.push(s,o);
	break;
	case"m":var P=l.shift(),T=l.shift();
	if(s+=P,o+=T,x="M",r.length>2&&"z"===r[r.length-1].command)for(var A=r.length-2;
	A>=0;
	A--)if("M"===r[A].command){
	s=r[A].points[0]+P,o=r[A].points[1]+T;
	break}
F.push(s,o),c="l";
	break;
	case"M":s=l.shift(),o=l.shift(),x="M",F.push(s,o),c="L";
	break;
	case"h":s+=l.shift(),x="L",F.push(s,o);
	break;
	case"H":s=l.shift(),x="L",F.push(s,o);
	break;
	case"v":o+=l.shift(),x="L",F.push(s,o);
	break;
	case"V":o=l.shift(),x="L",F.push(s,o);
	break;
	case"C":F.push(l.shift(),l.shift(),l.shift(),l.shift()),s=l.shift(),o=l.shift(),F.push(s,o);
	break;
	case"c":F.push(s+l.shift(),o+l.shift(),s+l.shift(),o+l.shift()),s+=l.shift(),o+=l.shift(),x="C",F.push(s,o);
	break;
	case"S":f=s,g=o,u=r[r.length-1],"C"===u.command&&(f=s+(s-u.points[2]),g=o+(o-u.points[3])),F.push(f,g,l.shift(),l.shift()),s=l.shift(),o=l.shift(),x="C",F.push(s,o);
	break;
	case"s":f=s,g=o,u=r[r.length-1],"C"===u.command&&(f=s+(s-u.points[2]),g=o+(o-u.points[3])),F.push(f,g,s+l.shift(),o+l.shift()),s+=l.shift(),o+=l.shift(),x="C",F.push(s,o);
	break;
	case"Q":F.push(l.shift(),l.shift()),s=l.shift(),o=l.shift(),F.push(s,o);
	break;
	case"q":F.push(s+l.shift(),o+l.shift()),s+=l.shift(),o+=l.shift(),x="Q",F.push(s,o);
	break;
	case"T":f=s,g=o,u=r[r.length-1],"Q"===u.command&&(f=s+(s-u.points[0]),g=o+(o-u.points[1])),s=l.shift(),o=l.shift(),x="Q",F.push(f,g,s,o);
	break;
	case"t":f=s,g=o,u=r[r.length-1],"Q"===u.command&&(f=s+(s-u.points[0]),g=o+(o-u.points[1])),s+=l.shift(),o+=l.shift(),x="Q",F.push(f,g,s,o);
	break;
	case"A":p=l.shift(),v=l.shift(),m=l.shift(),_=l.shift(),y=l.shift(),S=s,C=o,s=l.shift(),o=l.shift(),x="A",F=this.convertEndpointToCenterParameterization(S,C,s,o,_,y,p,v,m);
	break;
	case"a":p=l.shift(),v=l.shift(),m=l.shift(),_=l.shift(),y=l.shift(),S=s,C=o,s+=l.shift(),o+=l.shift(),x="A",F=this.convertEndpointToCenterParameterization(S,C,s,o,_,y,p,v,m)}
r.push({
	command:x||c,points:F,start:{
	x:w,y:b}
,pathLength:this.calcLength(w,b,x||c,F)}
)}
("z"===c||"Z"===c)&&r.push({
	command:"z",points:[],start:void 0,pathLength:0}
)}
return r}
,n.Path.calcLength=function(t,e,i,a){
	var r,s,o,h,c=n.Path;
	switch(i){
	case"L":return c.getLineLength(t,e,a[0],a[1]);
	case"C":for(r=0,s=c.getPointOnCubicBezier(0,t,e,a[0],a[1],a[2],a[3],a[4],a[5]),h=.01;
	1>=h;
	h+=.01)o=c.getPointOnCubicBezier(h,t,e,a[0],a[1],a[2],a[3],a[4],a[5]),r+=c.getLineLength(s.x,s.y,o.x,o.y),s=o;
	return r;
	case"Q":for(r=0,s=c.getPointOnQuadraticBezier(0,t,e,a[0],a[1],a[2],a[3]),h=.01;
	1>=h;
	h+=.01)o=c.getPointOnQuadraticBezier(h,t,e,a[0],a[1],a[2],a[3]),r+=c.getLineLength(s.x,s.y,o.x,o.y),s=o;
	return r;
	case"A":r=0;
	var l=a[4],d=a[5],u=a[4]+d,f=Math.PI/180;
	if(Math.abs(l-u)<f&&(f=Math.abs(l-u)),s=c.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],l,0),0>d)for(h=l-f;
	h>u;
	h-=f)o=c.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],h,0),r+=c.getLineLength(s.x,s.y,o.x,o.y),s=o;
	else for(h=l+f;
	u>h;
	h+=f)o=c.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],h,0),r+=c.getLineLength(s.x,s.y,o.x,o.y),s=o;
	return o=c.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],u,0),r+=c.getLineLength(s.x,s.y,o.x,o.y)}
return 0}
,n.Path.convertEndpointToCenterParameterization=function(t,e,i,n,a,r,s,o,h){
	var c=h*(Math.PI/180),l=Math.cos(c)*(t-i)/2+Math.sin(c)*(e-n)/2,d=-1*Math.sin(c)*(t-i)/2+Math.cos(c)*(e-n)/2,u=l*l/(s*s)+d*d/(o*o);
	u>1&&(s*=Math.sqrt(u),o*=Math.sqrt(u));
	var f=Math.sqrt((s*s*o*o-s*s*d*d-o*o*l*l)/(s*s*d*d+o*o*l*l));
	a===r&&(f*=-1),isNaN(f)&&(f=0);
	var g=f*s*d/o,p=f*-o*l/s,v=(t+i)/2+Math.cos(c)*g-Math.sin(c)*p,m=(e+n)/2+Math.sin(c)*g+Math.cos(c)*p,_=function(t){
	return Math.sqrt(t[0]*t[0]+t[1]*t[1])}
,y=function(t,e){
	return(t[0]*e[0]+t[1]*e[1])/(_(t)*_(e))}
,S=function(t,e){
	return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(y(t,e))}
,C=S([1,0],[(l-g)/s,(d-p)/o]),x=[(l-g)/s,(d-p)/o],F=[(-1*l-g)/s,(-1*d-p)/o],w=S(x,F);
	return y(x,F)<=-1&&(w=Math.PI),y(x,F)>=1&&(w=0),0===r&&w>0&&(w-=2*Math.PI),1===r&&0>w&&(w+=2*Math.PI),[v,m,s,o,C,w,c,r]}
,n.Factory.addGetterSetter(n.Path,"data"),n.Collection.mapMethods(n.Path)}
(),function(){
	function t(t){
	t.fillText(this.partialText,0,0)}
function e(t){
	t.strokeText(this.partialText,0,0)}
var i="",a="normal";
	n.TextPath=function(t){
	this.___init(t)}
,n.TextPath.prototype={
	___init:function(i){
	var a=this;
	this.dummyCanvas=n.Util.createCanvasElement(),this.dataArray=[],n.Shape.call(this,i),this._fillFunc=t,this._strokeFunc=e,this._fillFuncHit=t,this._strokeFuncHit=e,this.className="TextPath",this.dataArray=n.Path.parsePathData(this.attrs.data),this.on("dataChange.kinetic",function(){
	a.dataArray=n.Path.parsePathData(this.attrs.data)}
),this.on("textChange.kinetic textStroke.kinetic textStrokeWidth.kinetic",a._setTextData),a._setTextData(),this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(t){
	t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline","middle"),t.setAttr("textAlign","left"),t.save();
	for(var e=this.glyphInfo,i=0;
	i<e.length;
	i++){
	t.save();
	var n=e[i].p0;
	t.translate(n.x,n.y),t.rotate(e[i].rotation),this.partialText=e[i].text,t.fillStrokeShape(this),t.restore()}
t.restore()}
,getTextWidth:function(){
	return this.textWidth}
,getTextHeight:function(){
	return this.textHeight}
,setText:function(t){
	n.Text.prototype.setText.call(this,t)}
,_getTextSize:function(t){
	var e=this.dummyCanvas,i=e.getContext("2d");
	i.save(),i.font=this._getContextFont();
	var n=i.measureText(t);
	return i.restore(),{
	width:n.width,height:parseInt(this.attrs.fontSize,10)}
}
,_setTextData:function(){
	var t=this,e=this._getTextSize(this.attrs.text);
	this.textWidth=e.width,this.textHeight=e.height,this.glyphInfo=[];
	for(var i,a,r,s=this.attrs.text.split(""),o=-1,h=0,c=function(){
	h=0;
	for(var e=t.dataArray,n=o+1;
	n<e.length;
	n++){
	if(e[n].pathLength>0)return o=n,e[n];
	"M"==e[n].command&&(i={
	x:e[n].points[0],y:e[n].points[1]}
)}
return{
}
}
,l=function(e){
	var s=t._getTextSize(e).width,o=0,l=0;
	for(a=void 0;
	Math.abs(s-o)/s>.01&&25>l;
	){
	l++;
	for(var d=o;
	void 0===r;
	)r=c(),r&&d+r.pathLength<s&&(d+=r.pathLength,r=void 0);
	if(r==={
}
||void 0===i)return void 0;
	var u=!1;
	switch(r.command){
	case"L":n.Path.getLineLength(i.x,i.y,r.points[0],r.points[1])>s?a=n.Path.getPointOnLine(s,i.x,i.y,r.points[0],r.points[1],i.x,i.y):r=void 0;
	break;
	case"A":var f=r.points[4],g=r.points[5],p=r.points[4]+g;
	0===h?h=f+1e-8:s>o?h+=Math.PI/180*g/Math.abs(g):h-=Math.PI/360*g/Math.abs(g),(0>g&&p>h||g>=0&&h>p)&&(h=p,u=!0),a=n.Path.getPointOnEllipticalArc(r.points[0],r.points[1],r.points[2],r.points[3],h,r.points[6]);
	break;
	case"C":0===h?h=s>r.pathLength?1e-8:s/r.pathLength:s>o?h+=(s-o)/r.pathLength:h-=(o-s)/r.pathLength,h>1&&(h=1,u=!0),a=n.Path.getPointOnCubicBezier(h,r.start.x,r.start.y,r.points[0],r.points[1],r.points[2],r.points[3],r.points[4],r.points[5]);
	break;
	case"Q":0===h?h=s/r.pathLength:s>o?h+=(s-o)/r.pathLength:h-=(o-s)/r.pathLength,h>1&&(h=1,u=!0),a=n.Path.getPointOnQuadraticBezier(h,r.start.x,r.start.y,r.points[0],r.points[1],r.points[2],r.points[3])}
void 0!==a&&(o=n.Path.getLineLength(i.x,i.y,a.x,a.y)),u&&(u=!1,r=void 0)}
}
,d=0;
	d<s.length&&(l(s[d]),void 0!==i&&void 0!==a);
	d++){
	var u=n.Path.getLineLength(i.x,i.y,a.x,a.y),f=0,g=n.Path.getPointOnLine(f+u/2,i.x,i.y,a.x,a.y),p=Math.atan2(a.y-i.y,a.x-i.x);
	this.glyphInfo.push({
	transposeX:g.x,transposeY:g.y,text:s[d],rotation:p,p0:i,p1:a}
),i=a}
}
}
,n.TextPath.prototype._getContextFont=n.Text.prototype._getContextFont,n.Util.extend(n.TextPath,n.Shape),n.Factory.addGetterSetter(n.TextPath,"fontFamily","Arial"),n.Factory.addGetterSetter(n.TextPath,"fontSize",12),n.Factory.addGetterSetter(n.TextPath,"fontStyle",a),n.Factory.addGetterSetter(n.TextPath,"fontVariant",a),n.Factory.addGetter(n.TextPath,"text",i),n.Collection.mapMethods(n.TextPath)}
(),function(){
	n.RegularPolygon=function(t){
	this.___init(t)}
,n.RegularPolygon.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className="RegularPolygon",this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(t){
	var e,i,n,a=this.attrs.sides,r=this.attrs.radius;
	for(t.beginPath(),t.moveTo(0,0-r),e=1;
	a>e;
	e++)i=r*Math.sin(2*e*Math.PI/a),n=-1*r*Math.cos(2*e*Math.PI/a),t.lineTo(i,n);
	t.closePath(),t.fillStrokeShape(this)}
}
,n.Util.extend(n.RegularPolygon,n.Shape),n.Factory.addGetterSetter(n.RegularPolygon,"radius",0),n.Factory.addGetterSetter(n.RegularPolygon,"sides",0),n.Collection.mapMethods(n.RegularPolygon)}
(),function(){
	n.Star=function(t){
	this.___init(t)}
,n.Star.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className="Star",this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(t){
	var e=this.innerRadius(),i=this.outerRadius(),n=this.numPoints();
	t.beginPath(),t.moveTo(0,0-i);
	for(var a=1;
	2*n>a;
	a++){
	var r=a%2===0?i:e,s=r*Math.sin(a*Math.PI/n),o=-1*r*Math.cos(a*Math.PI/n);
	t.lineTo(s,o)}
t.closePath(),t.fillStrokeShape(this)}
}
,n.Util.extend(n.Star,n.Shape),n.Factory.addGetterSetter(n.Star,"numPoints",5),n.Factory.addGetterSetter(n.Star,"innerRadius",0),n.Factory.addGetterSetter(n.Star,"outerRadius",0),n.Collection.mapMethods(n.Star)}
(),function(){
	var t=["fontFamily","fontSize","fontStyle","padding","lineHeight","text"],e="Change.kinetic",i="none",a="up",r="right",s="down",o="left",h="Label",c=t.length;
	n.Label=function(t){
	this.____init(t)}
,n.Label.prototype={
	____init:function(t){
	var e=this;
	this.className=h,n.Group.call(this,t),this.on("add.kinetic",function(t){
	e._addListeners(t.child),e._sync()}
)}
,getText:function(){
	return this.find("Text")[0]}
,getTag:function(){
	return this.find("Tag")[0]}
,_addListeners:function(i){
	var n,a=this,r=function(){
	a._sync()}
;
	for(n=0;
	c>n;
	n++)i.on(t[n]+e,r)}
,getWidth:function(){
	return this.getText().getWidth()}
,getHeight:function(){
	return this.getText().getHeight()}
,_sync:function(){
	var t,e,i,n,h,c,l,d=this.getText(),u=this.getTag();
	if(d&&u){
	switch(t=d.getWidth(),e=d.getHeight(),i=u.getPointerDirection(),n=u.getPointerWidth(),l=u.getPointerHeight(),h=0,c=0,i){
	case a:h=t/2,c=-1*l;
	break;
	case r:h=t+n,c=e/2;
	break;
	case s:h=t/2,c=e+l;
	break;
	case o:h=-1*n,c=e/2}
u.setAttrs({
	x:-1*h,y:-1*c,width:t,height:e}
),d.setAttrs({
	x:-1*h,y:-1*c}
)}
}
}
,n.Util.extend(n.Label,n.Group),n.Collection.mapMethods(n.Label),n.Tag=function(t){
	this.___init(t)}
,n.Tag.prototype={
	___init:function(t){
	n.Shape.call(this,t),this.className="Tag",this.sceneFunc(this._sceneFunc)}
,_sceneFunc:function(t){
	var e=this.getWidth(),i=this.getHeight(),n=this.getPointerDirection(),h=this.getPointerWidth(),c=this.getPointerHeight();
	t.beginPath(),t.moveTo(0,0),n===a&&(t.lineTo((e-h)/2,0),t.lineTo(e/2,-1*c),t.lineTo((e+h)/2,0)),t.lineTo(e,0),n===r&&(t.lineTo(e,(i-c)/2),t.lineTo(e+h,i/2),t.lineTo(e,(i+c)/2)),t.lineTo(e,i),n===s&&(t.lineTo((e+h)/2,i),t.lineTo(e/2,i+c),t.lineTo((e-h)/2,i)),t.lineTo(0,i),n===o&&(t.lineTo(0,(i+c)/2),t.lineTo(-1*h,i/2),t.lineTo(0,(i-c)/2)),t.closePath(),t.fillStrokeShape(this)}
}
,n.Util.extend(n.Tag,n.Shape),n.Factory.addGetterSetter(n.Tag,"pointerDirection",i),n.Factory.addGetterSetter(n.Tag,"pointerWidth",0),n.Factory.addGetterSetter(n.Tag,"pointerHeight",0),n.Factory.addGetterSetter(n.Tag,"cornerRadius",0),n.Collection.mapMethods(n.Tag)}
(),i.exports=n}
);
	;
	define("wiki-common:widget/util/addStyleSheet.js",function(e,t,n){
	var i=e("wiki-common:widget/lib/jquery/jquery.js");
	n.exports=function(e){
	if("object"==i.type(e)&&!i.isEmptyObject(e)){
	var t=["\n"];
	for(var n in e)t.push(n,"{
	","object"==i.type(e[n])?i.map(e[n],function(e,t){
	return t+":"+e}
).join(";
	"):e[n],"}
\n");
	if(document.createStyleSheet)document.createStyleSheet().cssText=t.join("");
	else{
	var o=i('<style type="text/css"></style>');
	o.append(t.join("")).appendTo(i("head")[0])}
}
}
}
);
	;
	define("wiki-common:widget/util/browser.js",function(e,t,i){
	var o=navigator.userAgent;
	i.exports={
	chrome:function(){
	return/chrome\/(\d+\.\d+)/i.test(o)?+RegExp.$1:void 0}
,firefox:function(){
	return/firefox\/(\d+\.\d+)/i.test(o)?+RegExp.$1:void 0}
,ie:function(){
	return/(?:msie |rv:)(\d+\.\d+)/i.test(o)?document.documentMode||+RegExp.$1:void 0}
,safari:function(){
	return/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(o)&&!/chrome/i.test(o)?+(RegExp.$1||RegExp.$2):void 0}
,isStandard:function(){
	return"CSS1Compat"==document.compatMode}
,isGecko:function(){
	return/gecko/i.test(o)&&!/like gecko/i.test(o)}
,isWebkit:function(){
	return/webkit/i.test(o)}
}
}
);
	;
	define("wiki-common:widget/util/url.js",function(e,o,n){
	var r=e("wiki-common:widget/lib/jquery/jquery.js"),t={
	queryToJson:function(e,o){
	function n(e){
	var n=e;
	if(o)try{
	n=decodeURIComponent(e)}
catch(r){
}
return n}
e=(e||window.location.href.replace(window.location.hash,""))+"",o="boolean"==typeof o?o:!1;
	for(var t={
}
,a=e.substr(e.lastIndexOf("?")+1).split("&"),i=0;
	i<a.length;
	++i)if(a[i]){
	var c=a[i].split("=");
	if(c.length>1){
	var s=c[0],u=c[1];
	void 0===t[s]?t[s]=n(u):(r.isArray(t[s])||(t[s]=[t[s]]),t[s].push(n(u)))}
}
return t}
,jsonToQuery:function(e,o){
	function n(e,n){
	var t;
	switch(r.type(n)){
	case"boolean":case"number":case"string":t=e+"="+(o?encodeURIComponent(n):n);
	break;
	case"regexp":t=e+"="+(o?encodeURIComponent(n.source):n.source);
	break;
	case"date":t=e+"="+n.getTime();
	break;
	case"array":t=[];
	for(var a=0;
	a<n.length;
	++a)/^boolean|number|string|regexp|date$/.test(r.type(n[a]))&&t.push(arguments.callee(e,n[a]));
	break;
	default:t=void 0}
return t}
o="boolean"==typeof o?o:!1;
	var t=[];
	return"object"==r.type(e)&&r.isPlainObject(e)&&r.each(e,function(e,o){
	var r=n(e,o);
	r&&(t=t.concat(r))}
),t.join("&")}
,getQuery:function(e,o){
	e=e?e+"":"",o=o||window.location.href.replace(window.location.hash,"");
	var n=t.queryToJson(o);
	return n[e]||""}
,setQuery:function(e,o,n){
	var r="";
	if(e){
	e+="",n=(n||window.location.href)+"";
	var a="";
	/(#.+)$/i.test(n)&&(a=RegExp.$1,n=n.replace(a,""));
	var i=t.queryToJson(n);
	o&&(i[e]=o),r=t.jsonToQuery(i)+a}
return r}
}
;
	n.exports=t}
);
	;
	define("wiki-common:widget/component/share/share.js",function(e,r,i){
	var t=e("wiki-common:widget/lib/jquery/jquery.js"),a=e("wiki-common:widget/util/url.js"),n={
	weibo:{
	link:"http://service.weibo.com/share/share.php",params:{
	url:"url",title:"title",pic:"pic"}
,extra:[{
	appkey:3417820038}
,{
	searchPic:!1}
]}
,tqq:{
	link:"http://share.v.t.qq.com/index.php",params:{
	url:"url",title:"title",pic:"pic"}
,extra:[{
	c:"share"}
,{
	a:"index"}
,{
	appkey:801199450}
]}
,qzone:{
	link:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey",params:{
	url:"url",title:"title",pic:"pics"}
,extra:[{
	summary:" ",desc:"",site:""}
]}
,tieba:{
	link:"http://tieba.baidu.com/f/commit/share/openShareApi",params:{
	url:"url",title:"title",pic:"pic"}
,extra:[{
	comment:""}
]}
}
,o={
	openShareLink:function(e,r){
	if("string"!=typeof arguments[0])throw new Error('[share Exception]:Invalid argument "channel".');
	if("object"!=typeof arguments[1]&&"undefined"!=typeof arguments[1])throw new Error('[share Exception]:Invalid argument "params".');
	if(!n[e])throw new Error('[share Exception]:No Channel "'+e+'".');
	var r=r||{
}
;
	r.url=r.url||window.location.href,r.title=r.title||t("title").html(),r.pic=r.pic||"#";
	var i=n[e].link,o={
}
;
	for(var p in n[e].extra)for(var s in n[e].extra[p]){
	var c=n[e].extra[p][s];
	o[s]=c}
for(var l in n[e].params){
	var s=n[e].params[l];
	o[s]=r[l]}
var m=a.jsonToQuery(o,!0);
	window.open(i+"?"+m)}
}
;
	i.exports=o}
);
	

CSS代码(moments-2014_e764737.css):

body.w-small{min-width:980px}
body.w-large{min-width:1180px}
.layout{margin:0 auto}
body.w-small .layout,.layout{width:980px}
body.w-large .layout{width:1180px}
@media screen and (max-width:1280px){body.w-var .layout{width:980px}
}
@media screen and (min-width:1280px){body.w-var .layout{width:1180px}
}
h2{margin:0 0 30px;height:72px;line-height:72px;font-size:40px;font-weight:400;text-align:center;color:#373737}
@font-face{font-family:baikeFont_icons;src:url(http://baike.bdimg.com/static/wiki-activity/moments-2014/resource/icons/wiki-activity-moments2014-icons_097c710.eot);src:url(http://baike.bdimg.com/static/wiki-activity/moments-2014/resource/icons/wiki-activity-moments2014-icons_097c710.eot) format('embedded-opentype'),url(http://baike.bdimg.com/static/wiki-activity/moments-2014/resource/icons/wiki-activity-moments2014-icons_cbc5eb7.woff) format('woff'),url(http://baike.bdimg.com/static/wiki-activity/moments-2014/resource/icons/wiki-activity-moments2014-icons_7d1916c.ttf) format('truetype'),url(http://baike.bdimg.com/static/wiki-activity/moments-2014/resource/icons/wiki-activity-moments2014-icons_ddbfd98.svg) format('svg');font-weight:400;font-style:normal}
.wiki-activity-moments2014-icons{font-family:baikeFont_icons}
.wiki-activity-moments2014-icons_next{*zoom:expression(this.runtimeStyle["zoom"] = "1",this.innerHTML += "&#xe600;")}
.wiki-activity-moments2014-icons_next:before{content:'\e600'}
.wiki-activity-moments2014-icons_prev{*zoom:expression(this.runtimeStyle["zoom"] = "1",this.innerHTML += "&#xe601;")}
.wiki-activity-moments2014-icons_prev:before{content:'\e601'}
.momentsGuide-wrapper{position:relative;z-index:0;overflow:hidden;height:800px}
.mainRanking-wrapper{position:relative;z-index:1;overflow:hidden;margin:-140px 0 0 0}
.process-wrapper{margin:0 0 100px;height:250px}
.subRankings-wrapper{background:url(http://baike.bdimg.com/static/wiki-activity/moments-2014/resource/img/bg-subRankings_f4dfd6b.png) center 75px no-repeat}
.authorityComments-wrapper{padding:50px 0 100px;background:url(http://baike.bdimg.com/static/wiki-activity/moments-2014/resource/img/bg-authorityComments_91e429a.png) center 0 no-repeat}
.cooperation-wrapper{margin:0 0 50px}

CSS代码(subRankings_06727bb.css):

@charset "utf-8";div{text-align:left}
a img{border:0}
body{color:#333;text-align:center;font:12px "宋体";}
ul,ol,li{list-style-type:none;vertical-align:0}
a{outline-style:none;color:#535353;text-decoration:none}
a:hover{color:#D40000;text-decoration:none}
.clear{height:0;overflow:hidden;clear:both}
.zzsc{background:#FFF;padding:0px;}
.zzsc div{text-align:center;}
.w-small .vote-bubble{border-color:#ccc;font:14px "微软雅黑";}
.w-small .vote-bubble div{padding:3px 7px;background:#fff}
.w-small .vote-bubble div span{font-size:16px;font-weight:700;color:#397ddb}
.w-small .vote-bubble .tail{text-shadow:0 0 2px #ccc}
.subRankings .subRankings_nav-wrapper{position:relative;overflow:hidden;margin:0 0 50px;height:40px}
.subRankings .subRankings_nav-wrapper .subRankings_nav-container{position:absolute;left:50%}
.subRankings .subRankings_nav{white-space:nowrap;position:relative;left:-50%;border:1px solid #338de6;border-radius:3px;background:#fff}
.subRankings .subRankings_nav li{border-right:1px solid #338de6;width:164px;height:38px;line-height:38px;font-size:18px;text-align:center;color:#777;cursor:pointer}
.subRankings .subRankings_nav li.actived{background:#338de6;color:#fff}
.subRankings .subRankings_nav li:last-child{border-right:0}
.subRankings .subRankings_comments{position:relative;margin:0 auto;width:920px}
.subRankings .subRankings_comments .viewport{position:relative;overflow:hidden;margin:0 0 20px;height:80px}
.subRankings .subRankings_comments .viewport ul li{float:left;width:460px;height:80px;font-size:14px}
.subRankings .subRankings_comments .viewport ul li.eve{padding-left:41px;width:419px}
.subRankings .subRankings_comments .viewport ul li .comment_avator{float:left;margin:0 20px 0 0;border:1px solid #338de6;width:60px;height:60px;border-radius:31px}
.subRankings .subRankings_comments .viewport ul li .comment_title{float:left;width:300px;height:20px;line-height:20px}
.subRankings .subRankings_comments .viewport ul li .comment_title a{color:#338de6;text-decoration:none}
.subRankings .subRankings_comments .viewport ul li .comment_title a:hover{text-decoration:underline}
.subRankings .subRankings_comments .viewport ul li .comment_content{float:left;overflow:hidden;margin:5px 0 0;border:1px solid #ccc;padding:5px 10px;width:315px;height:40px;line-height:20px;color:#565656;border-radius:5px;background:#fff}
.subRankings .subRankings_comments .viewport ul li .comment_content a{color:#397ddb;text-decoration:none}
.subRankings .subRankings_comments .viewport ul li .comment_content a:hover{color:#397ddb;text-decoration:underline}
.subRankings .subRankings_comments .pager{height:18px;text-align:center}
.subRankings .subRankings_comments .pager a{margin:0 5px;font-size:12px;color:#c9c9c9;text-shadow:0 0 0}
.subRankings .subRankings_comments .pager a.cur{color:#397ddb}
.subRankings-tri{position:relative;margin:0 0 50px}
.subRankings-tri .subRankings_content{position:relative;margin:0 0 25px;height:485px}
.subRankings-tri .subRankings_content li{position:absolute;display:none;left:0;top:0;width:100%;height:485px;background:no-repeat 100% 100%}
.subRankings-tri .subRankings_content li.actived{display:block}
.subRankings-tri .subRankings_content li .svg{position:relative;z-index:0}
.subRankings-tri .subRankings_content li .svg .shape{filter:alpha(opacity=1);opacity:.01;-webkit-transition:.2s linear;transition:.2s linear}
.subRankings-tri .subRankings_content li .svg .show{filter:alpha(opacity=65);opacity:.65}
.subRankings-tri .subRankings_content li .vml{position:relative;z-index:0;height:485px}
.subRankings-tri .subRankings_content li .vml .shape{position:absolute;width:100%;height:100%;filter:alpha(opacity=1);opacity:.01;-webkit-transition:.2s linear;transition:.2s linear}
.subRankings-tri .subRankings_content li .vml .show{filter:alpha(opacity=65);opacity:.65}
.subRankings-tri .subRankings_content li .detail{position:absolute;z-index:1;width:90px;height:90px;text-align:center;color:#fff;cursor:default;filter:alpha(opacity=0);opacity:0;-webkit-transition:.2s linear;transition:.2s linear}
.subRankings-tri .subRankings_content li .detail .detail_title{position:relative;margin:3px 0 5px;height:24px;line-height:24px;font-size:18px;filter:alpha(opacity=0);opacity:0}
.subRankings-tri .subRankings_content li .detail .detail_title a{color:#fff;text-decoration:none;border-bottom:1px solid #fff}
.subRankings-tri .subRankings_content li .detail .detail_pv{margin:0 0 3px;height:20px;line-height:20px;font-size:12px}
.subRankings-tri .subRankings_content li .detail .detail_vote{margin:0 0 3px;outline:0;width:76px;height:30px;line-height:30px;font-size:16px;text-decoration:none;color:#fff;border-radius:3px;background:#338de6;display:inline-block}
.subRankings-tri .subRankings_content li .detail .detail_counts{height:20px;line-height:20px;font-size:14px;color:#ffbd20}
.subRankings-tri .subRankings_content li .detail-up .detail_title{left:-55px;width:200px}
.subRankings-tri .subRankings_content li .detail-down .detail_title{margin-top:-15px;margin-bottom:3px}
.subRankings-tri .subRankings_content li .detail-0{left:113px;top:7px}
.subRankings-tri .subRankings_content li .detail-2{left:445px;top:7px}
.subRankings-tri .subRankings_content li .detail-4{left:777px;top:7px}
.subRankings-tri .subRankings_content li .detail-1{left:279px;top:60px}
.subRankings-tri .subRankings_content li .detail-3{left:611px;top:60px}
.subRankings-tri .subRankings_content li .detail-5{left:279px;top:171px}
.subRankings-tri .subRankings_content li .detail-6{left:611px;top:171px}
.subRankings-tri .subRankings_content li .detail-7{left:445px;top:285px}
.subRankings-tri .subRankings_content li .detail-8{left:279px;top:390px}
.subRankings-tri .subRankings_content li .detail-9{left:611px;top:390px}
.subRankings-tri .subRankings_content li .show{filter:alpha(opacity=100);opacity:1;font-family:"微软雅黑";}
.subRankings-tri .subRankings_content li .show .detail_title{filter:alpha(opacity=100);opacity:1}
.subRankings-sqr{position:relative;margin:0 auto 50px;padding:90px 0 0;width:940px}
.subRankings-sqr .subRankings_content{position:relative;margin:0 0 15px}
.subRankings-sqr .subRankings_content li{display:none}
.subRankings-sqr .subRankings_content li.actived{display:block}
.subRankings-sqr .subRankings_content li .subRanking_candidate{position:relative;float:left;border:0;margin:0 10px 10px 0;width:227px;height:175px}
.subRankings-sqr .subRankings_content li .subRanking_candidate.noMargin{margin-right:0}
.subRankings-sqr .subRankings_content li .subRanking_candidate.hasPaddingLeft{margin-left:237px}
.subRankings-sqr .subRankings_content li .subRanking_candidate:hover .shadow{filter:alpha(opacity=65);opacity:.65}
.subRankings-sqr .subRankings_content li .subRanking_candidate:hover .detail{filter:alpha(opacity=100);opacity:1}
.subRankings-sqr .subRankings_content li .subRanking_candidate .pic{display:block;width:227px;height:175px}
.subRankings-sqr .subRankings_content li .subRanking_candidate .shadow{position:absolute;left:0;top:0;width:100%;height:100%;background:#000;filter:alpha(opacity=0);opacity:0;-webkit-transition:.2s linear;transition:.2s linear}
.subRankings-sqr .subRankings_content li .subRanking_candidate .detail{position:absolute;left:0;top:35px;width:100%;color:#fff;text-align:center;filter:alpha(opacity=0);opacity:0;-webkit-transition:.2s linear;transition:.2s linear}
.subRankings-sqr .subRankings_content li .subRanking_candidate .detail .detail_title{margin:0 0 5px;font-size:18px}
.subRankings-sqr .subRankings_content li .subRanking_candidate .detail .detail_title a{color:#fff;text-decoration:none;border-bottom:1px solid #fff}
.subRankings-sqr .subRankings_content li .subRanking_candidate .detail .detail_pv{margin:0 0 5px;height:20px;line-height:20px;font-size:12px}
.subRankings-sqr .subRankings_content li .subRanking_candidate .detail .detail_vote{margin:0 0 5px;outline:0;width:76px;height:30px;line-height:30px;font-size:16px;text-decoration:none;color:#fff;border-radius:3px;background:#338de6}
.subRankings-sqr .subRankings_content li .subRanking_candidate .detail .detail_counts{height:24px;line-height:24px;font-size:16px;color:#ffbd20}
.subRankings-text{position:relative;margin:0 auto 50px;padding:90px 0 0;width:940px}
.subRankings-text .subRankings_content{margin:0 0 25px}
.subRankings-text .subRankings_content li{overflow:hidden;float:left;margin:0 29px 0 0;border:1px solid #b5b5b5;width:292px;height:486px;border-radius:5px;background:#fff}
.subRankings-text .subRankings_content li.last{margin-right:0}
.subRankings-text .subRankings_content li .subRanking_title{height:47px;line-height:47px;font-size:24px;text-align:center;color:#fff;background:#397ddb}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
227.33 KB
html5特效
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章