var script=document.createElement("script");  
script.type="text/javascript";  
script.src="/static/js/jquery-1.12.3.min.js";  
document.getElementsByTagName('head')[0].appendChild(script); 
var price = document.getElementById('jsset').getAttribute('price');
if(!price){
price = "";	
}
var title = $("h1").text();
document.writeln("<link href=\"/static/css/down.css?t=77\" rel=\"stylesheet\" type=\"text/css\" /><a class=\'download_card\' style=\"z-index:1000\"><img class=\'download_card_pic \'src=\'/static/img/icon_word.png\'alt=\'\'><div class=\'download_card_msg\'><div class=\'download_card_tip\'><span style=\"font-size:18px;color:#1c52a1;font-weight:bold\">《"+title+"》</span><br>将本页正文导出为word文档下载,方便收藏打印</div><div class=\'download_card_tj\'><span>推荐度：</span><img src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAY1BMVEUAAAD/mAD/mgD/mQD/mQD/mQD/mQD/mAD/mQD/mQD/mQD//wD/mQD/mAD/nwD/mQD/mAD/mQD/mQD/mgD/mAD/mQD/mAD/mAD/mQD/mgD/mQD/mgD/lwD/mQD/lQD/mwD/mQAl+fFuAAAAIHRSTlMA7ytS5M++uGk2JAGqjAzr1ZKFR/agl005MMxiYF8YF49KoKIAAAC9SURBVDjLlZJZCsMwDETl2vEWZ9+76v6nrAkhYCUR7fsyzGNgsOBP8mHIWUEiSragRqxzvoBW0IJIxhdEpkshQ2QrJtzomIKritK9WoM7pni6EjZm22iFJyjdWAcgkUWCF1wuPMAimPwGkZvgcmrQnDOqmFOD5pxReUiwVLCQUlChIIKhgiGCooIiv4kHykSYj4I7HdG3bb89H4nQ4Mr4AXiPZzM0RoKHFR/WGXSEXmDHaToj3Mkld1mA3/gCrXs1vl7stYYAAAAASUVORK5CYII=\'><img src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAY1BMVEUAAAD/mAD/mgD/mQD/mQD/mQD/mQD/mAD/mQD/mQD/mQD//wD/mQD/mAD/nwD/mQD/mAD/mQD/mQD/mgD/mA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D/nwD/mQD/mAD/mQD/mQD/mgD/mAD/mQD/mAD/mAD/mQD/mgD/mQD/mgD/lwD/mQD/lQD/mwD/mQAl+fFuAAAAIHRSTlMA7ytS5M++uGk2JAGqjAzr1ZKFR/agl005MMxiYF8YF49KoKIAAAC9SURBVDjLlZJZCsMwDETl2vEWZ9+76v6nrAkhYCUR7fsyzGNgsOBP8mHIWUEiSragRqxzvoBW0IJIxhdEpkshQ2QrJtzomIKritK9WoM7pni6EjZm22iFJyjdWAcgkUWCF1wuPMAimPwGkZvgcmrQnDOqmFOD5pxReUiwVLCQUlChIIKhgiGCooIiv4kHykSYj4I7HdG3bb89H4nQ4Mr4AXiPZzM0RoKHFR/WGXSEXmDHaToj3Mkld1mA3/gCrXs1vl7stYYAAAAASUVORK5CYII=\'><img src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAY1BMVEUAAAD/mAD/mgD/mQD/mQD/mQD/mQD/mAD/mQD/mQD/mQD//wD/mQD/mAD/nwD/mQD/mAD/mQD/mQD/mgD/mAD/mQD/mAD/mAD/mQD/mgD/mQD/mgD/lwD/mQD/lQD/mwD/mQAl+fFuAAAAIHRSTlMA7ytS5M++uGk2JAGqjAzr1ZKFR/agl005MMxiYF8YF49KoKIAAAC9SURBVDjLlZJZCsMwDETl2vEWZ9+76v6nrAkhYCUR7fsyzGNgsOBP8mHIWUEiSragRqxzvoBW0IJIxhdEpkshQ2QrJtzomIKritK9WoM7pni6EjZm22iFJyjdWAcgkUWCF1wuPMAimPwGkZvgcmrQnDOqmFOD5pxReUiwVLCQUlChIIKhgiGCooIiv4kHykSYj4I7HdG3bb89H4nQ4Mr4AXiPZzM0RoKHFR/WGXSEXmDHaToj3Mkld1mA3/gCrXs1vl7stYYAAAAASUVORK5CYII=\'></div></div><div class=\'download_card_btn\'><img style=\'border-radius: unset;\'src=\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJ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NDAtNDB6IiBmaWxsPSIjZmZmZmZmIiBwLWlkPSI2NDA4Ij48L3BhdGg+PC9zdmc+\'alt=\'\'><div class=\'downlod_btn_right\'><div>点击下载文档</div></div></div></a>");	


setTimeout(function(){  
$(document).ready(function(){	
(function ($) {	      
	var ispaying = false, buystate = null;				
	var payKey = escape(window.location.href+'exap'), expires = 7;			
	var is_weixin = (function() {
	    return navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1
    })();
    var u = navigator.userAgent;    
    var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);   
	if (isIOS) {var is = 'ios';}else{var is = 'anzhuo';} 
	if(is_weixin){	
	var payurl = '/weixinpay/index/info?link='+window.location.href+'&type=wx&mod=downpay&price='+price+'&is='+is;	
	}else{
	var payurl = '/weixinpay/index/info?link='+window.location.href+'&type=h5&mod=downpay&price='+price+'&is='+is;		
	}
	if( 'ontouchstart' in window ){		    
		$("head").append('<link href="/static/css/m-style.css?t=88" rel="stylesheet" type="text/css" />');
		$("body").append('<div class="copy_masksd masksd"><div class="masksd_box alert-bounceIn"><div class="copy_title">付费下载</div><div class="copy_tip">付费获得该文章的文档下载权限.</div><img src="/static/img/pay.jpg" class="pay_img" alt=""><div class="copy_price">限时特价：<si style="color:#ff6600" id="money"></si>元/篇<span>原价:<si id="price"></si>元</span></div><a href="'+payurl+'" class="one_pay_btn">微信支付</a><div class="copy-free"><div class="houhao_top"><span>免费下载</span><span>仅需3秒</span></div><div class="copy-free-description"><p>微信搜索关注公众号：<span class="text-icofuzhi"></span>  获取验证码 即可下载</p></div><div class="houhao_search"><input type="number" name="q" placeholder="请在这里输入验证码" class="houhao_bar"><input style="-webkit-appearance: none;border-radius:0;" type="button" value="确认" class="houhaoresults"></div></div><div class="b_box"><span class="customer-service">常见问题</span></div><div class="close" data-alert="copy_masksd"></div></div></div><div class="customer_masksd masksd"><div class="service-box"><div class="zxkf">常见问题 <div class="close" data-alert="customer_masksd">×</div></div><div class="que_box"><div class="cj_title"><span>常见问题</span></div><ul><li><div class="que">1、支付成功后，为何无法下载内容？<img src="/static/img/open.png" alt=""></div><div >付费后下载不了，请核对下微信账单信息，确保付费成功；已付费成功了还是下载不了，有可能是电脑的浏览器兼容性问题或者手机机型不支持的问题。请联系客服人工发送文档给您，客服<span id="kefu"></span></div></li><li><div class="que">2、付费后能否更换浏览器或者清理浏览器缓存后进行下载操作？<img src="/static/img/open.png" alt=""></div><div class="ans">更换浏览器或者清理浏览器缓存会导致下载不成功，请不要更换浏览器和清理浏览器缓存。</div></li><li><div class="que">3、如何联系客服？<img src="/static/img/open.png" alt=""></div><span id="kefu2"></span></li></ul></div></div></div><div class="my_wxpay masksd"><div class="wx_pic_img"><div class="close" data-alert="my_wxpay"></div><div class="wx_top"><span>微信支付中，请勿关闭窗口</span></div><div class="payqr_box"><div class="hc" style="display: block;"><img src="/static/img/loading.gif"></div><div class="zhifu"><div class="sm">微信支付中，请勿关闭窗口</span></div></div></div></div></div><div class="pay_success_masksd masksd"><div class="pay_success_box"><div class="payqr_success_text"><svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1629"><path d="M511.993344 0.002048C229.260838 0.002048 0 229.261862 0 511.998464c0 282.732506 229.259814 511.990272 511.993344 511.990272C794.73097 1023.987712 1023.988736 794.73097 1023.988736 511.998464c0-282.736602-229.257766-511.996416-511.995392-511.996416zM788.582942 397.083376L475.699087 709.96723C464.321548 721.341697 449.189043 727.145665 434.1702 727.145665c-15.018843 0-30.036662-5.687233-41.527863-17.177411l-157.23859-157.241662c-22.982403-22.865668-22.982403-60.072299 0-83.054702 22.982403-22.982403 60.074347-22.86874 83.05675 0l115.823366 115.710727 271.352919-271.357015c22.871812-22.86874 60.074347-22.86874 83.05675 0 22.871812 22.983427 22.871812 60.189034-0.11059 83.057774z" fill="" p-id="1630"></path></svg><p class="pay_success_tip1">支付成功</p><p class="pay_success_tip2">已获得该文章下载权限</p><button class="buy-btn buy_btn_qr">确定</button></div></div></div>');	
		$.getJSON('/?m=downpay&a=cha&cc=1&price='+price+'&link='+window.location.href,function(rs){
					  if(rs.status == 0){								  
					  if(price){
						$('#money').text(price);
						$('#price').text(parseInt(price*3));    
					  }else{
						$('#price').text(rs.data.yuanjia);  
						$('#money').text(rs.data.xianjia);
					  }	
					  $('#kefu,#kefu2').text(rs.data.kefu);	
					  $('.text-icofuzhi').text(rs.data.gzh);
					  }else if(rs.status == 1){						  
					  ispaying=false,Cookies.set(payKey, 1, {expires: expires,path: "/"})
					  }
		})
		var _time = null;
		window.ontouchstart = function(){			    
		    if( !ispaying ){
				_time = setTimeout(function(){
					var b = Cookies.get(payKey);
					void 0 === b  && $(".copy_masksd").show();
				}, 400);
			}else{
				
				_time = setTimeout(function(){
					var b = Cookies.get(payKey);
					if(b==1){						
					$.ajax({
				url: '/?m=downword&c=index',				
				data: {
					link: window.location.href,						
				},
				method: "POST",
				dataType: "JSON",
				timeout: 4000,
				success: function(res) {
					$(".masksd").hide();
					if(res.status==0){
						alert(res.msg); 
					}else{							
					    ispaying=true,Cookies.set(payKey, 1, {expires: expires,path: "/"})
						window.location.href = res.data
					}
				},				
			});	
					}
				}, 400);
				
			}	
		}
		window.ontouchmove = function(){
			clearTimeout(_time);
		}
		window.ontouchend = function(){
			clearTimeout(_time);
		}		
		window.location.href.indexOf("order=") > -1 && (
			$(".my_wxpay").css("display", "block"), ispaying=true, payTimer = setInterval(function() {
			$.getJSON('/?m=downpay&a=cha&price='+price+'&link='+window.location.href,function(rs){
		    if(rs.status == 1){			
			$(".masksd").hide(),
			$(".pay_success_masksd").show(),	
			Cookies.set(payKey, 1, {expires: expires,path: "/"}),clearInterval(payTimer)
			}
		});
				
			}, 1500)
		);			
	}else{			    
		$("head").append('<link href="/static/css/pc-style.css?t=198" rel="stylesheet" type="text/css" />');
		$("body").append('<div class="copy_masksd masksd"><div class="copy-alert alert-bounceIn"><div class="close" data-alert="copy_masksd"></div><div class="paybox"><div class="paybox-title">付费下载</div><div class="paybox-art">付费获得该文章的文档下载权限</div><div class="paybox-img"><img src="/static/img/pay.jpg" /></div><div class="paybox-money"><h2>限时特价：<si style="color:#ff6600" id="money"></si>元/篇</h2><span>原价:<si id="price"></si>元</span></div><div class="paybox-bottom online-pay">微信支付</div><div class="paybox-service"><span class="customer-service">常见问题</span></div></div><div class="codebox"><div class="codebox_title">免费下载</div><div class="codebox_tip">微信扫码关注，免费获得验证码</div><div class="codebox_tip codebox_tip_2">快至5秒</div><img loading="lazy" class="codebox_qrcode" src=""><div class="codebox_search"><input type="text" name="q" placeholder="请在这里输入验证码" class="houhao_bar"><input type="button" value="确认" class="houhaoresults"></div>   <div class="codebox_tips">输入验证码后可免费下载</div></div></div></div><div class="pay_masksd masksd"><div class="masksd_box"><div class="pay_masksd_top">欢迎使用微信支付</div><div class="pay_qrcode"><img src="/static/img/loading.gif" alt=""></div><div class="pay_tip"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUBAMAAAB/pwA+AAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMA1ncNunNiOTUTSsYRYQAAAENJREFUCNdjiFq1armxcdWqVUsZligpKTMwGCkpeTEsY4CCLIZFMKYWYWYnjDmDAQkIwgEyEwGQtJFkG8KRyE5HeAgAREcaCU+naWkAAAAASUVORK5CYII=" alt="">扫一扫微信支付</div><div class="pay_price">微信支付：<span></span></div><div class="close" data-alert="pay_masksd"></div></div></div><div class="buy_success masksd"><div class="masksd_box"><svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1629"><path d="M511.993344 0.002048C229.260838 0.002048 0 229.261862 0 511.998464c0 282.732506 229.259814 511.990272 511.993344 511.990272C794.73097 1023.987712 1023.988736 794.73097 1023.988736 511.998464c0-282.736602-229.257766-511.996416-511.995392-511.996416zM788.582942 397.083376L475.699087 709.96723C464.321548 721.341697 449.189043 727.145665 434.1702 727.145665c-15.018843 0-30.036662-5.687233-41.527863-17.177411l-157.23859-157.241662c-22.982403-22.865668-22.982403-60.072299 0-83.054702 22.982403-22.982403 60.074347-22.86874 83.05675 0l115.823366 115.710727 271.352919-271.357015c22.871812-22.86874 60.074347-22.86874 83.05675 0 22.871812 22.983427 22.871812 60.189034-0.11059 83.057774z" fill="" p-id="1630"></path></svg><div class="buy_success_tip1">支付成功</div><div class="buy_success_tip2">已获得文章下载权限</div><div class="buy_btn_qr">确定</div></div></div><div class="customer_masksd masksd"><div class="customer_service_box" style="margin: 112px auto 0;width:730px;"><div class="close" data-alert="customer_masksd"></div><div class="cj_title"><span>常见问题</span></div><ul><li><div class="que">1、支付成功后，为何无法下载内容？</div><div class="ans">付费后下载不了，请核对下微信账单信息，确保付费成功；已付费成功了还是下载不了，有可能是电脑的浏览器兼容性问题或者手机机型不支持的问题。请联系客服人工发送文档给您，客服<span id="kefu"></span></div></li><li><div class="que">2、付费后能否更换浏览器或者清理浏览器缓存后进行下载操作？</div><div class="ans">更换浏览器或者清理浏览器缓存会导致下载不成功，请不要更换浏览器和清理浏览器缓存。</div></li><li><div class="que">3、如何联系客服？</div><div class="ans">客服<span id="kefu2"></span></div></li>');		
	}
	$(document).on("click", ".houhaoresults", function() {		
		        var code = $('.houhao_bar').val();		
				if(!code){
				alert("请输入验证码！");
				return false;
				}
				$.getJSON('/?m=downpay&a=yz&code='+code+'&link=' + window.location.href , function(a) {
					if(a.status == 1){	
					     $(".masksd").hide();						 
						 Cookies.set(payKey, 1, {
								expires: expires,
								path: "/"
							});
						ispaying = false;	
						alert("验证成功！");
						$.ajax({
				url: '/?m=downword&c=index',				
				data: {
					link: window.location.href,	
					isb:1
				},
				method: "POST",
				dataType: "JSON",
				timeout: 4000,
				success: function(res) {
					$(".masksd").hide();
					if(res.status==0){
						alert(res.msg); 
					}else{		
					    ispaying=true,Cookies.set(payKey, 1, {expires: expires,path: "/"})
						window.open(res.data)
					}
				},				
			});
					}
					if(a.status == 0){	
					    alert("验证码错误！");						
					}
				});
			
	});
	$(document).on("click", ".copy_masksd .customer-service", function(){
		$(".customer_masksd").show();
	});
	$(document).on("click", ".service-box li", function() {
		$(this).find(".ans").toggle();
	});
	$(document).on("click", ".masksd .close", function(){		
        ispaying = false;	
		$("." + $(this).data("alert")).css("display", "none");
		window.clearInterval(buystate);
	});
	$(document).on("click", ".buy_btn_qr", function() {		
		$.ajax({
				url: '/?m=downword&c=index',				
				data: {
					link: window.location.href,	
				},
				method: "POST",
				dataType: "JSON",
				timeout: 4000,
				success: function(res) {
					$(".masksd").hide();
					if(res.status==0){
						alert(res.msg); 
					}else{		
					    ispaying=true,Cookies.set(payKey, 1, {expires: expires,path: "/"})
						window.open(res.data)
					}
				},				
			});	
	});	 
	document.addEventListener("copy", function(a){
		var b = Cookies.get(payKey);
		if(b==1){
		$.ajax({
				url: '/?m=downword&c=index',				
				data: {
					link: window.location.href,						
					price:price,
					isb:b
				},
				method: "POST",
				dataType: "JSON",
				timeout: 4000,
				success: function(res) {
					if(res.status==0){
						alert(res.msg); 
					}else{				
					   ispaying=true,Cookies.set(payKey, 1, {expires: expires,path: "/"})
						window.open(res.data)
					}
				},				
			});	    
		}else{
		    a.preventDefault();	
		$.getJSON('/?m=downpay&a=cha&price='+price+'&link='+window.location.href,function(rs){
		    if(rs.status == 0){					
			if(price){
			$('#money').text(price);
			$('#price').text(parseInt(price*3));  
			}else{
			$('#price').text(rs.data.yuanjia);  
			$('#money').text(rs.data.xianjia);
			}				
			$('#kefu,#kefu2').text(rs.data.kefu);
			$('.codebox_qrcode').attr('src',rs.data.ecode);
			$('.text-icofuzhi').text(rs.data.gzh);
		    $(".copy_masksd").show();	
			}else if(rs.status == 2){
			alert(rs.msg); 	
			}else{
			$.ajax({
				url: '/?m=downword&c=index',				
				data: {
					link: window.location.href,							
				},
				method: "POST",
				dataType: "JSON",
				timeout: 4000,
				success: function(res) {
					if(res.status==0){
						alert(res.msg); 
					}else{				
					    ispaying=true,Cookies.set(payKey, 1, {expires: expires,path: "/"})
						window.open(res.data)
					}
				},				
			});		
			}
		})
		}
	})
	$(document).on("click", ".download_card,.common_det__more", function(a) {	
	    var b = Cookies.get(payKey);
		if(b==1){
		$.ajax({
				url: '/?m=downword&c=index',				
				data: {
					link: window.location.href,	
					isb:b
				},
				method: "POST",
				dataType: "JSON",
				timeout: 4000,
				success: function(res) {
					if(res.status==0){
						alert(res.msg); 
					}else{				
					   ispaying=true,Cookies.set(payKey, 1, {expires: expires,path: "/"})
						window.open(res.data)
					}
				},				
			});	    
		}else{
		$.getJSON('/?m=downpay&a=cha&price='+price+'&link='+window.location.href,function(rs){
		    if(rs.status == 0){			
			a.preventDefault();	
			if(price){
			$('#money').text(price);
			$('#price').text(parseInt(price*3));  
			}else{
			$('#price').text(rs.data.yuanjia);  
			$('#money').text(rs.data.xianjia);
			}
			$('#kefu,#kefu2').text(rs.data.kefu);
			$('.codebox_qrcode').attr('src',rs.data.ecode);
			$('.text-icofuzhi').text(rs.data.gzh);
		    $(".copy_masksd").show();	
			}else if(rs.status == 2){
			alert(rs.msg); 	
			}else{
			$.ajax({
				url: '/?m=downword&c=index',				
				data: {
					link: window.location.href,	
				},
				method: "POST",
				dataType: "JSON",
				timeout: 4000,
				success: function(res) {
					if(res.status==0){
						alert(res.msg); 
					}else{				
					   ispaying=true,Cookies.set(payKey, 1, {expires: expires,path: "/"})
						window.open(res.data)
					}
				},				
			});		
			}
		})
		}
	});	
	
	$(document).on("click", ".paybox-bottom.online-pay", function() {	
	    if( !ispaying ){
			$(".pay_masksd .pay_qrcode img").attr("src", "/static/img/loading.gif");
			$(".pay_masksd").show();
			$.ajax({
				url: '/?m=downpay&c=index',				
				data: {
					link: window.location.href,						
					price:price
				},
				method: "GET",
				dataType: "JSON",
				timeout: 4000,
				success: function(res) {
					$(".pay_masksd .pay_qrcode img").attr("src", res.data.image),
					$(".pay_masksd .pay_price span").text(res.data.price + "元"),
					$(".pay_masksd").show(),
					buystate = setInterval(function() {
						$.getJSON('/?m=downpay&a=cx&order='+res.data.order,function(rs){
							rs.status && ( $(".masksd").hide(),$(".buy_success").show(),Cookies.set(payKey, 1, {
								expires: expires,
								path: "/"
							}),  ispaying = false, clearInterval(buystate));
						})
					}, 1500);
				},
				complete: function(){
					
				}
			});	
		}	
	});	
	
})(jQuery);
"js.cookie";
!function(e) {
    var n = !1;
    if ("function" == typeof define && define.amd && (define(e),
    n = !0),
    "object" == typeof exports && (module.exports = e(),
    n = !0),
    !n) {
        var o = window.Cookies
          , t = window.Cookies = e();
        t.noConflict = function() {
            return window.Cookies = o,
            t
        }
    }
}
(function() {
    function e() {
        for (var e = 0, n = {}; e < arguments.length; e++) {
            var o = arguments[e];
            for (var t in o)
                n[t] = o[t]
        }
        return n
    }
    function n(o) {
        function t(n, r, i) {
            var c;
            if ("undefined" != typeof document) {
                if (arguments.length > 1) {
                    if ("number" == typeof (i = e({
                        path: "/"
                    }, t.defaults, i)).expires) {
                        var a = new Date;
                        a.setMilliseconds(a.getMilliseconds() + 864e5 * i.expires),
                        i.expires = a
                    }
                    i.expires = i.expires ? i.expires.toUTCString() : "";
                    try {
                        c = JSON.stringify(r),
                        /^[\{\[]/.test(c) && (r = c)
                    } catch (e) {}
                    r = o.write ? o.write(r, n) : encodeURIComponent(r + "").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent),
                    n = (n = (n = encodeURIComponent(n + "")).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)).replace(/[\(\)]/g, escape);
                    var s = "";
                    for (var f in i)
                        i[f] && (s += "; " + f,
                        !0 !== i[f] && (s += "=" + i[f]));
                    return document.cookie = n + "=" + r + s
                }
                n || (c = {});
                for (var p = document.cookie ? document.cookie.split("; ") : [], d = /(%[0-9A-Z]{2})+/g, u = 0; u < p.length; u++) {
                    var l = p[u].split("=")
                      , C = l.slice(1).join("=");
                    this.json || '"' !== C.charAt(0) || (C = C.slice(1, -1));
                    try {
                        var m = l[0].replace(d, decodeURIComponent);
                        if (C = o.read ? o.read(C, m) : o(C, m) || C.replace(d, decodeURIComponent),
                        this.json)
                            try {
                                C = JSON.parse(C)
                            } catch (e) {}
                        if (n === m) {
                            c = C;
                            break
                        }
                        n || (c[m] = C)
                    } catch (e) {}
                }
                return c
            }
        }
        return t.set = t,
        t.get = function(e) {
            return t.call(t, e)
        }
        ,
        t.getJSON = function() {
            return t.apply({
                json: !0
            }, [].slice.call(arguments))
        }
        ,
        t.defaults = {},
        t.remove = function(n, o) {
            t(n, "", e(o, {
                expires: -1
            }))
        }
        ,
        t.withConverter = n,
        t
    }
    return n(function() {})
});
});  
},200);