!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.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(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===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]||I.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]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(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(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},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):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({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)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF)};function rol(num,cnt){return(num<>>(32-cnt))};function AlignSHA1(str){var nblk=((str.length+8)>>6)+1,blks=new Array(nblk*16);for(var i=0;i>2]|=str.charCodeAt(i)<<(24-(i&3)*8);blks[i>>2]|=0x80<<(24-(i&3)*8);blks[nblk*16-1]=str.length*8;return blks};function binb2hex(binarray){var hex_tab=hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i>2]>>((3-i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((3-i%4)*8))&0xF)};return str};function toUtf8(str){var out,i,len,c;out='';len=str.length;for(i=0;i=0x0001)&&(c<=0x007F)){out+=str.charAt(i)}else if(c>0x07FF){out+=String.fromCharCode(0xE0|((c>>12)&0x0F));out+=String.fromCharCode(0x80|((c>>6)&0x3F));out+=String.fromCharCode(0x80|((c>>0)&0x3F))}else{out+=String.fromCharCode(0xC0|((c>>6)&0x1F));out+=String.fromCharCode(0x80|((c>>0)&0x3F))}};return out};function base64_encode(string){var str=toUtf8(string);var bec='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-';var out,i,len;var c1,c2,c3;len=str.length;i=0;out='';while(i>2);out+=bec.charAt((c1&0x3)<<4);break};c2=str.charCodeAt(i++);if(i==len){out+=bec.charAt(c1>>2);out+=bec.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=bec.charAt((c2&0xF)<<2);break};c3=str.charCodeAt(i++);out+=bec.charAt(c1>>2);out+=bec.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=bec.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=bec.charAt(c3&0x3F)};return out};var ntao={'body':function(){var dd=document.documentElement,db=document.body;return{t:dd.scrollTop||db.scrollTop,l:dd.scrollLeft||db.scrollLeft,w:dd.scrollWidth||db.scrollWidth,h:dd.scrollHeight||db.scrollHeight,cw:dd.clientWidth||db.clientWidth,ch:dd.clientHeight||db.clientHeight};},'body_backward':function(){$('body').css({'filter':'blur(9px)'});},'body_forward':function(){$('body').css({'filter':'none'});},'loading':function(msg,loadKeep,timer){document.getElementById('ntao_ceng')&&ntao.closeWindow();if(!document.getElementById('ntao_window')){ntao.body_backward();$('html').append('
');} window.sessionStorage['loadKeep']=loadKeep;if(msg===undefined){$('#ntao_window').append('');}else{$('#ntao_window').append('');timer&&(timer<100&&(timer*=1000),$('#ntao_window_style').append('#ntao_window:before{content: ""; width: 50%; height: 1px; background-color: rgba(255,255,255,.6); position: fixed; left: 0; top: 2px; animation: loading '+timer+'ms infinite;}'));document.getElementById('ntao_window_message')?$('#ntao_window_message').html(msg):$('#ntao_window').append('
'+msg+'
');}},'window':function(opt,fn){ntao.loading();(typeof(opt)==='object'&&opt['url']===undefined)&&(opt={'url':$(opt).data('url')});(typeof(opt)==='string')&&(opt={'url':opt});$('#ntao_window').html('
');opt.width!==undefined&&$('#ntao_ceng').css('max-width',opt.width);opt.height!==undefined&&$('#ntao_ceng').css('max-height',opt.height);},'closeWindow':function(fn){document.getElementById('ntao_window')&&ntao.body_forward(),$('#ntao_window, #ntao_window_style').remove();fn&&fn();},'tips':function(msg,timer,fn){(timer===undefined)&&(timer=3000);timer&&(timer<100)&&(timer*=1000);ntao.tips_waitimer&&clearTimeout(ntao.tips_waitimer);ntao.loading(msg,false,timer);timer?ntao.tips_waitimer=setTimeout(function(){ntao.closeWindow();fn&&fn();},timer):($('#ntao_window').click(function(){ntao.closeWindow();}),fn&&fn());},'prevent':function(){var ev=window.event||arguments.callee.caller.arguments[0];if(window.event){ev.cancelBubble=true;}else{ev.stopPropagation();}},'tips_waitimer':false,'loaded':function(obj,cbk){obj.attachEvent?obj.attachEvent('onload',cbk):obj.onload=cbk;},'save':function(fn){document.addEventListener('keydown',function(e){if(e.keyCode==83&&(navigator.platform.match('Mac')?e.metaKey:e.ctrlKey)){e.preventDefault();fn&&fn();}});},'date':function(str,sjc){var t=sjc?new Date(isNaN(sjc)?sjc.replace(/([\d]+)年([\d]+)月([\d]+)日/,'$1-$2-$3'):parseInt(sjc)*1000):new Date(),arr={'stamp':Date.parse(t)/1000,'year':t.getFullYear(),'month':t.getMonth()+1,'date':t.getDate(),'hour':t.getHours(),'minute':t.getMinutes(),'second':t.getSeconds(),'week':t.getDay()};arr['lastDay']=new Date(arr['year'],arr['month'],0).getDate();if(str){var fillArr=['month','date','hour','minute','second'];for(var i=0;i=1&&i<9){number/=1024;i++;} return parseFloat(number.toFixed(2))+unit[i];},'b2a':function(str){return window.btoa(str).replace(/(\=)/g,'');},'usize':function(str){if(!str||!isNaN(str)){return str;} var info=str.match(/(^[0-9\.]+)([b-tB-T]+)/),map={'B':0,'K':1,'M':2,'G':3,'T':4,'P':5};return Math.floor(info[1]*Math.pow(1024,map[info[2].toUpperCase().substr(0,1)]));},'resData':function(res,succFn,errFn){if((res.substr(0,1)==='{'&&res.substr(-1)==='}')||(res.substr(0,1)==='['&&res.substr(-1)===']')){var data=JSON.parse(res);if(data['state']===undefined){errFn&&errFn(res);}else if(data['state']==='SUCCESS'){succFn&&succFn(data);}else{errFn&&errFn(data['state']);}}else{errFn&&errFn(res);}},'kwdFormat':function(obj,symbol){var kwds=[];(symbol===undefined)&&(symbol=',');$.each($(obj).val().replace(/(\ |,|、|;|\||\,|\t|\r|\n|\r\n)/g,symbol).split(symbol),function(i,str){(str!==''&&$.inArray(str,kwds)===-1)&&kwds.push(str);});obj.tagName==='TEXTAREA'?$(obj).html(kwds.join(symbol)):$(obj).val(kwds.join(symbol));},'strCopy':function(str,fn){document.getElementById('copy_str_ipt')||$('body').append('');var ipt=document.getElementById('copy_str_ipt');ipt.value=str;ipt.select();ipt.setSelectionRange(0,ipt.value.length);document.execCommand('copy');$('#copy_str_ipt').remove();fn&&fn();},'rand':function(min,max){!min&&!max&&(min=1000,max=9999);return parseInt(Math.random()*(max-min+1)+min,10);},'randStr':function(len,hex){var str='',code='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\~\!\@\#\$\%\^\&\*\_\+\/\?\\\=';len===undefined&&(len=16);hex===undefined&&(hex=62);hex===true&&(hex=code.length);var min=hex,max=0;while(len){idx=parseInt(Math.random()*hex,10);idx>max&&(max=idx);idx62&&max<62&&(idx=parseInt(Math.random()*(hex-62)+62,10));len===1&&min>9&&(idx=parseInt(Math.random()*10,10));str+=String(code[idx]);--len;} return str;},'num2cny':function(num){var cnNums=['零','壹','贰','叁','肆','伍','陆','柒','捌','玖'],cnIntRadice=['','拾','佰','仟'],cnIntUnits=['','万','亿','兆'],cnDecUnits=['角','分','毫','厘'],cnInteger='整',cnIntLast='元',maxNum=999999999999999.9999,integerNum,decimalNum,parts,cny='';if(num===''){return'';} num=parseFloat(num);if(num>=maxNum){return'';} if(num==0){return cnNums[0]+cnIntLast+cnInteger;} num=num.toString();if(num.indexOf('.')===-1){integerNum=num;decimalNum='';}else{parts=num.split('.');integerNum=parts[0];decimalNum=parts[1].substr(0,4);} if(parseInt(integerNum,10)>0){var zeroCount=0;var IntLen=integerNum.length;for(var i=0;i0&&(cny+=cnNums[0]);zeroCount=0;cny+=cnNums[parseInt(n)]+cnIntRadice[m];} (m==0&&zeroCount<4)&&(cny+=cnIntUnits[q]);} cny+=cnIntLast;} if(decimalNum!=''){var decLen=decimalNum.length;for(var i=0;i0){flag=true;break;}} return flag&&window.screen.width<=640;} function addFav(url,title){var url=url||window.location,title=title||document.title;url=encodeURI(url);try{window.external.addFavorite(url,title)}catch(e){try{window.sidebar.addPanel(title,url,"")}catch(e){alert("请使用Ctrl+D进行添加")}}} function setHome(url){var url=url||window.location;if(document.all){document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(url)}else{alert("您的浏览器不支持自动设置首页,请手动设置")}} function gotoHash(deduct,fn){window.onhashchange=function(){gotoHash(deduct,fn);} if(!location.hash||!(obj=$('[data-hash="'+(hash=location.hash.substr(1))+'"]')).length){return false;} var goTop=obj.offset().top;deduct&&(goTop-=deduct);$('html, body').animate({'scrollTop':goTop});fn&&fn(hash);} function ntaoBaiduMap_load(id,opts,fn){var obj=$("#"+id),coor=obj.attr("data-coor").split(","),info=obj.html();opts||(opts={});opts.width||(opts.width=300);opts.height||(opts.height=100);opts.zoom||(opts.zoom=15);opts.title||(opts.title="");opts.enableMessage===undefined||(opts.enableMessage=false);opts.overlay===undefined&&(opts.overlay=true);opts.control===undefined&&(opts.control=true);opts.style===undefined&&(opts.style=false);opts.anima===undefined&&(opts.anima=false);if(IS_HTTPS){window.HOST_TYPE="2"} var loadMap=function(){var map=new BMap.Map(id),point=new BMap.Point(coor[0],coor[1]),marker=new BMap.Marker(point);map.centerAndZoom(point,opts.zoom);opts.overlay&&map.addOverlay(marker);opts.control&&map.addControl(new BMap.NavigationControl());opts.style&&map.setMapStyle({style:opts.style});opts.overlay&&opts.anima&&marker.setAnimation(BMAP_ANIMATION_BOUNCE);if(info){var win="map.openInfoWindow(new BMap.InfoWindow(info,opts),point);";opts.open&&eval(win);marker.addEventListener("click",function(){eval(win)})} fn&&fn(map,marker);};typeof(BMap)==='object'?loadMap():$.getScript(HTTP_PREFIX+"api.map.baidu.com/getscript?v=2.0&ak=Gy4KEmD2CkhdY5KIR7Rio4Tl",function(){loadMap();});} function ntaoForm_iptCheck(form,e){var chked=true,attr=e.ipt.match(/\[([\w\-]+)\]/);$(form).find(e.ipt).each(function(){if($(this).val().length===0){chked=false;$(this).focus();e.alt&&alert($(this).attr(attr.length===0?"placeholder":attr[1]));return false}});return chked} function ntaoForm_setValue(form){$(form).find('input[type="text"]').attr("value",function(){return this.value});$(form).find('input[type="checkbox"],input[type="radio"]').attr("checked",function(){return this.checked});$(form).find("option").attr("selected",function(){return this.selected});$(form).find("textarea").html(function(){return this.value})} function ntaoForm_iptReadonly(form,readonly){$(form).find('input[type="text"],textarea').attr("readonly",readonly);$(form).find('input[type="checkbox"],input[type="radio"],select').attr("disabled",readonly)} function ntaoForm_submit(form,action,ext,fn,fn2){ntao_submit(action,form.substr(1),ext,fn,fn2)} function ntao_submit(url,obj,ext,succFn,errFn,compFn){var isH5=(-[1,])?true:false;if(isH5&&window.sessionStorage[url]!==undefined&&((new Date()).valueOf()-window.sessionStorage[url]<30000)){return false;} if(url.indexOf("//")!==-1){alert("ntao_submit: url contains //");return false} if(typeof(obj)==="object"){if(isH5){var data=new FormData();$.each(obj,function(key,val){data.append(key,val)})}else{var data=obj}}else{if(typeof(obj)==="string"){if(!window.document.getElementById(obj)){alert("ntao_submit: obj("+obj+") is not id");return false} if(ext.iptCheck&&!ntaoForm_iptCheck("#"+obj,ext.iptCheck)){return false} if(ext.passEncode){if(typeof(ntao_sha1)!=="function"){alert("ntao_submit: [passEncode] needs to load [ntao_sha1]");return false} $("#"+obj).find('input[type="password"]').val(function(){if(val=$(this).val()){return val.length===40?val:ntao_sha1(val)}})} var data=isH5?new FormData(window.document.getElementById(obj)):$("#"+obj).serialize();if(ext.html){if(typeof(compress)!=='function'){alert("ntao_submit: [html] needs to load [compress]");return false;} ntaoForm_setValue("#"+obj);ntaoForm_iptReadonly("#"+obj,true);var html=compress($("#"+obj).html());isH5?data.append("html",html):data+="&html="+html;}} isH5&&(window.sessionStorage[url]=(new Date()).valueOf());} $.ajax({url:url,type:obj?"POST":"GET",data:data,processData:isH5?false:true,contentType:isH5?false:"application/x-www-form-urlencoded",success:function(res){isH5&&window.sessionStorage.removeItem(url);(typeof(res)==="object")&&(res=res["status"]+"."+res["statusText"]);compFn&&compFn(res);ext.passEncode&&$("#"+obj).find('input[type="password"]').val("");if((res.substr(0,1)==="{"&&res.substr(-1)==="}")||(res.substr(0,1)==="["&&res.substr(-1)==="]")){var resData=JSON.parse(res);if(resData["state"]===undefined){errFn&&errFn(res)}else{if(resData["state"]==="SUCCESS"){succFn&&succFn(resData)}else{ext.html&&ntaoForm_iptReadonly("#"+obj,false);errFn&&errFn(resData["state"])}}}else{errFn&&errFn(res)}},error:function(res){(typeof(res)==="object")&&(res=res["status"]+"."+res["statusText"]);errFn&&errFn(res)},timeout:function(res){(typeof(res)==="object")&&(res=res["status"]+"."+res["statusText"]);errFn&&errFn(res)}});return false} function ntaoEnter(fn){var event=event||window.event;if(event.keyCode==13){fn()}} function ntaoVisLoad(attr,fn){var onLoad=function(){var winScrollTop=$(window).scrollTop(),winHeight=$(window).height();$("[data-"+attr+"]").each(function(){var obj=this,objOffsetTop=$(obj).offset().top,objHeight=$(obj).height(),visHeight=objHeight/5objOffsetTop+visHeight&&(fn&&fn(obj),$(obj).addClass($(obj).data(attr)).removeAttr("data-"+attr));})};onLoad();$(window).scroll(function(){onLoad()})};function ntaoScrollLock(obj,top,fn1,fn2){top===undefined&&(top=0);var lockTop=$(obj).offset().top,onLoad=function(){$(window).scrollTop()+top>=lockTop?(fn1&&fn1(obj)):(fn2&&fn2(obj));};onLoad();$(window).scroll(function(){onLoad()})};$.fn.touchswipe=function(fn1,fn2,xy){if($(this).data('touchdire')){return false;} var obj=$(this),start,end,pull,late,local;xy=xy===undefined?'X':xy.toUpperCase();obj.data('touchdire',xy).on('touchstart',function(e){late=(matrix=obj.css('transform').match(/^matrix\((.*?)\)$/))?matrix[1].split(', ')[xy==='X'?4:5]*-1:0;(local=obj.data('local'))||(local='none');start=e.originalEvent.targetTouches[0]['client'+xy];pull=0;}).on('touchmove',function(e){end=e.originalEvent.targetTouches[0]['client'+xy];pull=end-start;if(xy==='X'){late===0&&pull>0&&(pull=0);pull&&obj.css({'transform':'translate'+xy+'('+((late-pull)*-1)+'px)','transition':'transform .4s'});} (pull>5||pull<-5)&&e.preventDefault();}).on('touchend',function(e){returnFn=function(){xy==='X'&&obj.css({'transform':'translate'+xy+'('+(late*-1)+'px)'});};if((local==='first'&&-30<=pull)||(local==='last'&&30>=pull)){returnFn();}else if(pull>30){fn1&&fn1(pull);}else if(pull<-30){fn2&&fn2(pull);}else{returnFn();} e.stopPropagation();});};if(typeof(ntao)==='undefined'){var ntaoLoading_open=ntaoLoading_close=false;}else{ntaoLoading_open=ntao.loading;ntaoLoading_close=ntao.closeWindow;}$(function(){var a=document.body.innerHTML;document.body.innerHTML=a.replace(/\ufeff/g,'');document.getElementById('inbox')&&allbox();document.getElementById('gp')&&gp();document.getElementById('curtain')&&curtain();document.getElementById('banner')&&banner();document.getElementById('innews')&&innews();document.getElementById('inprod')&&inprod();document.getElementById('cyys')&&cyys();document.getElementById('webul')&&webul();document.getElementById('insmallnav')&&insmallnav();document.getElementById('nr_banner')&&nr_banner();document.getElementById('inver')&&inver();$('[data-nvc]').length&&ntaoVisLoad('nvc');}) $(document).ready(function(){  $('body').addClass('loaded');$('#loader-wrapper .load_title').remove(); });function nr_banner(){$('html,body').animate({scrollTop:400},500);} function allbox(){$('.inall_box .box:first').addClass('on');$('.in_smllnav li:first').addClass('on');var len=$('.in_smllnav li').length;screen_change(function(){var onIdx=$('.in_smllnav li.on').index();((onIdx-=1)<0)&&(onIdx=0);$('.in_smllnav li').eq(onIdx).click();},function(){var onIdx=$('.in_smllnav li.on').index();((onIdx+=1)>len)&&(onIdx=len-1);$('.in_smllnav li').eq(onIdx).click();});} function insmallnav(){$('.in_smllnav li').click(function(){var myIdx=$(this).index();if($(this).hasClass('on')){return false;} $('.inall_box .box').eq(myIdx).prevAll().addClass('hide');$('.inall_box .box').eq(myIdx).removeClass('hide').nextAll().removeClass('hide');$('.in_smllnav li').removeClass('on').eq(myIdx).addClass('on');if(myIdx==0){$('.in_smllnav').removeClass('on');}else{$('.in_smllnav').addClass('on');}});} var bnAutoLoad;function banner(){$('.banner_list li:first').addClass('seton');var onIdx=0,lengthc=$('.banner li').length,liwidth=$('.banner li').width();aLoad=function(){onIdx++;(onIdx>=lengthc)&&(onIdx=0);$('.banner_list li').eq(onIdx).click();};$('.banner_list li').click(function(){onIdx=$(this).index();liwidth=$('.banner li').width();$('.banner').animate({'scrollLeft':onIdx*liwidth});$('.banner li').removeClass("seton").eq(onIdx).addClass('seton');$('.banner_list li').removeClass("seton").eq(onIdx).addClass('seton');clearInterval(bnAutoLoad);bnAutoLoad=setInterval('aLoad()',8000);}).eq(onIdx).click();setInterval('bnAutoLoad',8000);} function inprod(){$('.in_prod_ukl li:first').addClass('on');var prodleng=$('.in_prod_ukl li').length,onIdx=$('.in_prod_ukl li.on').index(),dataurl=$('.in_prod_ukl li').eq(0).attr("dataurl");$('.prod_more').attr('href',dataurl);$('.prodgtf').click(function(){((onIdx-=1)<0)&&(onIdx=prodleng-1);dataurl=$('.in_prod_ukl li').eq(onIdx).attr("dataurl");$('.prod_more').attr('href',dataurl);}) $('.prodgtt').click(function(){((onIdx+=1)>=prodleng)&&(onIdx=0);dataurl=$('.in_prod_ukl li').eq(onIdx).attr("dataurl");$('.prod_more').attr('href',dataurl);})} function innews(){$('.in_newsbox li:first').addClass('on');var innewshieght=$('.in_newsbox li').height(),innewslen=$('.in_newsbox li').length onIdx=$('.in_newsbox li.on').index();$('.inone_s').click(function(){((onIdx-=1)<0)&&(onIdx=innewslen-1);$('.in_newsbox li').removeClass("on").eq(onIdx).addClass('on');$('.in_newsbox').animate({'margin-top':-(innewshieght*onIdx)});}) $('.inone_x').click(function(){((onIdx+=1)>=innewslen)&&(onIdx=0);$('.in_newsbox li').removeClass("on").eq(onIdx).addClass('on');$('.in_newsbox').animate({'margin-top':-(innewshieght*onIdx)});}) setInterval(function(){$(".inone_x").click()},5000);} function cyys(){$('.cyyslist li:first').addClass('on');var liwidth=$('.cyys_imgul li').width(),innewslen=$('.cyys_imgul li').length,ptulli=$('.cyys_ptul li').width(),onIdx=$('.cyyslist li.on').index();$('.cyyslist li').click(function(){onIdx=$(this).index();$('.cyyslist li').removeClass("on").eq(onIdx).addClass('on');$('.cyys_imgul').animate({'scrollLeft':onIdx*liwidth});}) $('.lz_l').click(function(){((onIdx-=1)<0)&&(onIdx=innewslen-1);$('.cyyslist li').removeClass("on").eq(onIdx).addClass('on');$('.cyys_imgul').animate({'scrollLeft':onIdx*liwidth});$('.cyys_ptul').animate({'scrollLeft':onIdx*ptulli});}) $('.lz_r').click(function(){((onIdx+=1)>=innewslen)&&(onIdx=0);$('.cyyslist li').removeClass("on").eq(onIdx).addClass('on');$('.cyys_imgul').animate({'scrollLeft':onIdx*liwidth});$('.cyys_ptul').animate({'scrollLeft':onIdx*ptulli});})} function gp(){var ele=v_sz000788.split('~'),data={'name':ele[1],'code':'000788','curPrice':ele[3],'lastPrice':ele[4],'volume':ele[36],'subPrice':(parseFloat(ele[3])-parseFloat(ele[4])).toFixed(2),'subPricePercent':((parseFloat(ele[3])-parseFloat(ele[4]))*100/parseFloat(ele[4])).toFixed(2)+'%'};if(data['subPrice']>0){data['color']='red';data['subpr']='';}else if(data['subPrice']<0){data['color']='green';data['subpr']='';}else if(data['subPrice']==0){data['color']='black';data['subpr']='';} if(ele[1]=='0.000'){data['curPrice']='--';data['subpr']='';data['subPrice']='0.00';data['subPricePercent']='0.00%';} $('.gp_box').prepend('

'+data['name']+'

证券代码

[ SZ.'+data['code']+' ]

'+data['curPrice']+''+data['subpr']+'

涨跌:'+data['subPrice']+'

涨跌:'+data['subPricePercent']+'

成交量:'+data['volume']+'

');} function curtain(){$('.curtain').addClass('seton');touch.on('.curtain','swipeleft swiperight',function(ev){if(ev.type==='swipeleft'){$('.page').click();}else{$('.reve').click();}})} function jion_goto(gotoIdx){scroll_left({'box':'.curtain','sub':'.curtain_boxone','return':true},gotoIdx);} function prod_goto(gotoIdx){scroll_left({'box':'.in_prod_ukl','sub':'li','return':true},gotoIdx);} function lc_goto(gotoIdx){scroll_left({'box':'.lc_ul','sub':'li','return':true},gotoIdx);} function retu(){window.history.back(-1);} function invideo(){$('.invideo').addClass('seton');$('.invideo').trigger('play');$('.videoclose').addClass('seton');} function slide(){$('.page').click();} function videoclos(){$('.invideo').removeClass('seton');$('.invideo').trigger('pause');$('.videoclose').removeClass('seton');} function web_nav(){$('.webul').toggleClass('webseton');} function webul(){$('.webul li').click(function(){$(this).addClass("seton").siblings().removeClass("seton");})} function block(){ntao_submit(rootPath+'action/message','form_msgdata',{iptCheck:{ipt:'[placeholder]',alt:true}},function(e){alert('提交成功,我们将尽快与您取得联系!');window.location.reload()},function(res){alert(res);})} function jobs_submit(){ntao_submit(rootPath+'action/table','form_jobs',{html:true,iptCheck:{ipt:'input[placeholder]',alt:true}},function(e){alert('提交成功,我们将尽快与您取得联系!');location.href=rootPath;},function(res){alert(res);})} function inver(){$(window).scroll(function(){var nrboxheight=$('.nr_navul').offset().top,nrbox=$('.nr_navul').height(),navheight=$('.nr_navul').height();if($(this).scrollTop()>nrboxheight){$('.inver_right').addClass('seton');}else{$('.inver_right').removeClass('seton');}})} var scrollLock=false;function scroll_left(ele,gotoIdx,fn){if(scrollLock===true){return false;} var box=$(ele['box']),sub=box.find(ele['sub']),onIdx=typeof gotoIdx==='number'?gotoIdx:(box.data('onidx')?box.data('onidx'):0),subLen=sub.length,subWidth=sub.eq(0).outerWidth(true),visLen=Math.ceil(box.width()/subWidth);if(typeof gotoIdx==='number'){onIdx=gotoIdx;}else if(gotoIdx===true){onIdx+=1;}else if(gotoIdx===false){onIdx-=1;}else{alert('参数 gotoIdx 有误');} var visIdx=onIdx;if(ele['on']){visIdx=(visIdx<=parseInt(visLen/2))?0:(visIdx-parseInt(visLen/2));sub.eq(onIdx).addClass('on').siblings().removeClass('on');}else if(ele['return']){if(onIdx<0||visIdx===subLen-1){visIdx=onIdx=(subLen-visLen);}else if(onIdx>=subLen||visIdx>subLen-visLen){visIdx=onIdx=0;}}else if(onIdx>subLen-visLen){return false;} if(onIdx<0||onIdx>=subLen){return false;} scrollLock=true;setTimeout('scrollLock=false',400);(visIdx>=subLen-visLen)&&(visIdx=subLen-visLen);box.stop().data('onidx',onIdx).animate({'scrollLeft':visIdx*subWidth},380);fn&&fn();} var wheelLock=false,startY,endY;function screen_change(upFn,downFn){var scrollFn=function(event){event=event||window.event;if(wheelLock===true){return false;} ((event.wheelDelta!==undefined&&event.wheelDelta>=10)||(event.detail!==undefined&&event.detail>=3))&&upFn&&upFn();((event.wheelDelta!==undefined&&event.wheelDelta<=-10)||(event.detail!==undefined&&event.detail<=-3))&&downFn&&downFn();wheelLock=true;setTimeout('wheelLock=false',600);return false;} var touchFn=function(event){event=event||window.event;switch(event.type){case'touchstart':startY=endY=event.touches[0].screenY;break;case'touchmove':event.preventDefault();endY=event.touches[0].screenY;break;case'touchend':(endY-startY>20)&&upFn&&upFn();(endY-startY<-30)&&downFn&&downFn();wheelLock=true;setTimeout('wheelLock=false',600);break;} return false;} if(isMobile){document.addEventListener('touchstart',touchFn,false);document.addEventListener('touchmove',touchFn,false);document.addEventListener('touchend',touchFn,false);}else{document.addEventListener&&document.addEventListener('DOMMouseScroll',scrollFn,false);window.onmousewheel=document.onmousewheel=scrollFn;}}"use strict";!function(a,b){"function"==typeof define&&(define.amd||define.cmd)?define(b):a.touch=b()}(this,function(){function a(){var a="mouseup mousedown mousemove mouseout",c="touchstart touchmove touchend touchcancel",d=b.hasTouch?c:a;d.split(" ").forEach(function(a){document.addEventListener(a,A,!1)})}var b={};b.PCevts={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",touchcancel:"mouseout"},b.hasTouch="ontouchstart"in window,b.getType=function(a){return Object.prototype.toString.call(a).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()},b.getSelector=function(a){if(a.id)return"#"+a.id;if(a.className){var b=a.className.split(/\s+/);return"."+b.join(".")}return a===document?"body":a.tagName.toLowerCase()},b.matchSelector=function(a,b){return a.webkitMatchesSelector(b)},b.getEventListeners=function(a){return a.listeners},b.getPCevts=function(a){return this.PCevts[a]||a},b.forceReflow=function(){var a="reflowDivBlock",b=document.getElementById(a);b||(b=document.createElement("div"),b.id=a,document.body.appendChild(b));var c=b.parentNode,d=b.nextSibling;c.removeChild(b),c.insertBefore(b,d)},b.simpleClone=function(a){return Object.create(a)},b.getPosOfEvent=function(a){if(this.hasTouch){for(var b=[],c=null,d=0,e=a.touches.length;e>d;d++)c=a.touches[d],b.push({x:c.pageX,y:c.pageY});return b}return[{x:a.pageX,y:a.pageY}]},b.getDistance=function(a,b){var c=b.x-a.x,d=b.y-a.y;return Math.sqrt(c*c+d*d)},b.getFingers=function(a){return a.touches?a.touches.length:1},b.calScale=function(a,b){if(a.length>=2&&b.length>=2){var c=this.getDistance(a[1],a[0]),d=this.getDistance(b[1],b[0]);return d/c}return 1},b.getAngle=function(a,b){return 180*Math.atan2(b.y-a.y,b.x-a.x)/Math.PI},b.getAngle180=function(a,b){var c=Math.atan(-1*(b.y-a.y)/(b.x-a.x))*(180/Math.PI);return 0>c?c+180:c},b.getDirectionFromAngle=function(a){var b={up:-45>a&&a>-135,down:a>=45&&135>a,left:a>=135||-135>=a,right:a>=-45&&45>=a};for(var c in b)if(b[c])return c;return null},b.getXYByElement=function(a){for(var b=0,c=0;a.offsetParent;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return{left:b,top:c}},b.reset=function(){h=i=j=null,q=o=k=l=!1,m=!1,f={},t=!1},b.isTouchMove=function(a){return"touchmove"===a.type||"mousemove"===a.type},b.isTouchEnd=function(a){return"touchend"===a.type||"mouseup"===a.type||"touchcancel"===a.type},b.env=function(){var a={},b=navigator.userAgent,c=b.match(/(Android)[\s\/]+([\d\.]+)/),d=b.match(/(iPad|iPhone|iPod)\s+OS\s([\d_\.]+)/),e=b.match(/(Windows\s+Phone)\s([\d\.]+)/),f=/WebKit\/[\d.]+/i.test(b),g=d?navigator.standalone?f:/Safari/i.test(b)&&!/CriOS/i.test(b)&&!/MQQBrowser/i.test(b):!1;return c&&(a.android=!0,a.version=c[2]),d&&(a.ios=!0,a.version=d[2].replace(/_/g,"."),a.ios7=/^7/.test(a.version),"iPad"===d[1]?a.ipad=!0:"iPhone"===d[1]?(a.iphone=!0,a.iphone5=568==screen.height):"iPod"===d[1]&&(a.ipod=!0)),e&&(a.wp=!0,a.version=e[2],a.wp8=/^8/.test(a.version)),f&&(a.webkit=!0),g&&(a.safari=!0),a}();var c={proxyid:0,proxies:[],trigger:function(a,b,c){c=c||{};var d,e={bubbles:!0,cancelable:!0,detail:c};try{"undefined"!=typeof CustomEvent?(d=new CustomEvent(b,e),a&&a.dispatchEvent(d)):(d=document.createEvent("CustomEvent"),d.initCustomEvent(b,!0,!0,c),a&&a.dispatchEvent(d))}catch(f){console.warn("Touch.js is not supported by environment.")}},bind:function(a,c,d){a.listeners=a.listeners||{},a.listeners[c]?a.listeners[c].push(d):a.listeners[c]=[d];var e=function(a){b.env.ios7&&b.forceReflow(),a.originEvent=a;for(var c in a.detail)"type"!==c&&(a[c]=a.detail[c]);a.startRotate=function(){t=!0};var e=d.call(a.target,a);"undefined"==typeof e||e||(a.stopPropagation(),a.preventDefault())};d.proxy=d.proxy||{},d.proxy[c]?d.proxy[c].push(this.proxyid++):d.proxy[c]=[this.proxyid++],this.proxies.push(e),a.addEventListener&&a.addEventListener(c,e,!1)},unbind:function(a,b,c){if(c){var d=c.proxy[b];d&&d.length&&d.forEach(function(){a.removeEventListener&&a.removeEventListener(b,this.proxies[this.proxyid],!1)})}else{var e=a.listeners[b];e&&e.length&&e.forEach(function(c){a.removeEventListener(b,c,!1)})}},delegate:function(a,c,d,e){var f=function(c){var f,g;c.originEvent=c;for(var h in c.detail)"type"!==h&&(c[h]=c.detail[h]);c.startRotate=function(){t=!0};var i=b.getSelector(a)+" "+d,j=b.matchSelector(c.target,i),k=b.matchSelector(c.target,i+" "+c.target.nodeName);if(!j&&k){for(b.env.ios7&&b.forceReflow(),f=c.target;!b.matchSelector(f,i);)f=f.parentNode;g=e.call(c.target,c),"undefined"==typeof g||g||(c.stopPropagation(),c.preventDefault())}else b.env.ios7&&b.forceReflow(),(j||k)&&(g=e.call(c.target,c),"undefined"==typeof g||g||(c.stopPropagation(),c.preventDefault()))};e.proxy=e.proxy||{},e.proxy[c]?e.proxy[c].push(this.proxyid++):e.proxy[c]=[this.proxyid++],this.proxies.push(f),a.listeners=a.listeners||{},a.listeners[c]?a.listeners[c].push(f):a.listeners[c]=[f],a.addEventListener&&a.addEventListener(c,f,!1)},undelegate:function(a,b,c,d){if(d){var e=d.proxy[b];e.length&&e.forEach(function(){a.removeEventListener&&a.removeEventListener(b,this.proxies[this.proxyid],!1)})}else{var f=a.listeners[b];f.forEach(function(c){a.removeEventListener(b,c,!1)})}}},d={tap:!0,doubleTap:!0,tapMaxDistance:10,hold:!0,tapTime:200,holdTime:650,maxDoubleTapInterval:300,swipe:!0,swipeTime:300,swipeMinDistance:18,swipeFactor:5,drag:!0,pinch:!0,minScaleRate:0,minRotationAngle:0},e={TOUCH_START:"touchstart",TOUCH_MOVE:"touchmove",TOUCH_END:"touchend",TOUCH_CANCEL:"touchcancel",MOUSE_DOWN:"mousedown",MOUSE_MOVE:"mousemove",MOUSE_UP:"mouseup",CLICK:"click",PINCH_START:"pinchstart",PINCH_END:"pinchend",PINCH:"pinch",PINCH_IN:"pinchin",PINCH_OUT:"pinchout",ROTATION_LEFT:"rotateleft",ROTATION_RIGHT:"rotateright",ROTATION:"rotate",SWIPE_START:"swipestart",SWIPING:"swiping",SWIPE_END:"swipeend",SWIPE_LEFT:"swipeleft",SWIPE_RIGHT:"swiperight",SWIPE_UP:"swipeup",SWIPE_DOWN:"swipedown",SWIPE:"swipe",DRAG:"drag",DRAGSTART:"dragstart",DRAGEND:"dragend",HOLD:"hold",TAP:"tap",DOUBLE_TAP:"doubletap"},f={start:null,move:null,end:null},g=0,h=null,i=null,j=null,k=!1,l=!1,m=!1,n={},o=!1,p=null,q=!1,r=null,s=1,t=!1,u=[],v=0,w=0,x=0,y=null,z={getAngleDiff:function(a){for(var c=parseInt(v-b.getAngle180(a[0],a[1]),10),d=0;Math.abs(c-w)>90&&d++<50;)0>w?c-=180:c+=180;return w=parseInt(c,10)},pinch:function(a){var g=a.target;if(d.pinch){if(!o)return;if(b.getFingers(a)<2&&!b.isTouchEnd(a))return;var h=b.calScale(f.start,f.move),i=this.getAngleDiff(f.move),j={type:"",originEvent:a,scale:h,rotation:i,direction:i>0?"right":"left",fingersCount:b.getFingers(a)};if(l?b.isTouchMove(a)?(j.fingerStatus="move",c.trigger(g,e.PINCH,j)):b.isTouchEnd(a)&&(j.fingerStatus="end",c.trigger(g,e.PINCH_END,j),b.reset()):(l=!0,j.fingerStatus="start",c.trigger(g,e.PINCH_START,j)),Math.abs(1-h)>d.minScaleRate){var k=b.simpleClone(j),m=1e-11;h>s?(s=h-m,c.trigger(g,e.PINCH_OUT,k,!1)):s>h&&(s=h+m,c.trigger(g,e.PINCH_IN,k,!1)),b.isTouchEnd(a)&&(s=1)}if(Math.abs(i)>d.minRotationAngle){var n,p=b.simpleClone(j);n=i>0?e.ROTATION_RIGHT:e.ROTATION_LEFT,c.trigger(g,n,p,!1),c.trigger(g,e.ROTATION,j)}}},rotateSingleFinger:function(a){var d=a.target;if(t&&b.getFingers(a)<2){if(!f.move)return;if(u.length<2){var g=b.getXYByElement(d);u=[{x:g.left+d.offsetWidth/2,y:g.top+d.offsetHeight/2},f.move[0]],v=parseInt(b.getAngle180(u[0],u[1]),10)}var h=[u[0],f.move[0]],i=this.getAngleDiff(h),j={type:"",originEvent:a,rotation:i,direction:i>0?"right":"left",fingersCount:b.getFingers(a)};b.isTouchMove(a)?j.fingerStatus="move":(b.isTouchEnd(a)||"mouseout"===a.type)&&(j.fingerStatus="end",c.trigger(d,e.PINCH_END,j),b.reset());var k=i>0?e.ROTATION_RIGHT:e.ROTATION_LEFT;c.trigger(d,k,j),c.trigger(d,e.ROTATION,j)}},swipe:function(a){var h=a.target;if(o&&f.move&&!(b.getFingers(a)>1)){var i=Date.now(),j=i-g,l=b.getDistance(f.start[0],f.move[0]),p={x:f.move[0].x-n.left,y:f.move[0].y-n.top},q=b.getAngle(f.start[0],f.move[0]),r=b.getDirectionFromAngle(q),s=j/1e3,t=10*(10-d.swipeFactor)*s*s,u={type:e.SWIPE,originEvent:a,position:p,direction:r,distance:l,distanceX:f.move[0].x-f.start[0].x,distanceY:f.move[0].y-f.start[0].y,x:f.move[0].x-f.start[0].x,y:f.move[0].y-f.start[0].y,angle:q,duration:j,fingersCount:b.getFingers(a),factor:t};if(d.swipe){var v=function(){var a=e;switch(r){case"up":c.trigger(h,a.SWIPE_UP,u);break;case"down":c.trigger(h,a.SWIPE_DOWN,u);break;case"left":c.trigger(h,a.SWIPE_LEFT,u);break;case"right":c.trigger(h,a.SWIPE_RIGHT,u)}};k?b.isTouchMove(a)?(u.fingerStatus=u.swipe="move",c.trigger(h,e.SWIPING,u),j>d.swipeTime&&jd.swipeMinDistance&&(v(),c.trigger(h,e.SWIPE,u,!1))):(b.isTouchEnd(a)||"mouseout"===a.type)&&(u.fingerStatus=u.swipe="end",c.trigger(h,e.SWIPE_END,u),d.swipeTime>j&&l>d.swipeMinDistance&&(v(),c.trigger(h,e.SWIPE,u,!1))):(u.fingerStatus=u.swipe="start",k=!0,c.trigger(h,e.SWIPE_START,u))}d.drag&&(m?b.isTouchMove(a)?(u.fingerStatus=u.swipe="move",c.trigger(h,e.DRAG,u)):b.isTouchEnd(a)&&(u.fingerStatus=u.swipe="end",c.trigger(h,e.DRAGEND,u)):(u.fingerStatus=u.swipe="start",m=!0,c.trigger(h,e.DRAGSTART,u)))}},tap:function(a){var h=a.target;if(d.tap){var i=Date.now(),j=i-g,k=b.getDistance(f.start[0],f.move?f.move[0]:f.start[0]);clearTimeout(p);var l=function(){if(y&&d.doubleTap&&g-xa)return!0}return!1}();if(l)return clearTimeout(r),void c.trigger(h,e.DOUBLE_TAP,{type:e.DOUBLE_TAP,originEvent:a,position:f.start[0]});if(d.tapMaxDistancej&&b.getFingers(a)<=1&&(q=!0,x=i,y=f.start[0],r=setTimeout(function(){c.trigger(h,e.TAP,{type:e.TAP,originEvent:a,fingersCount:b.getFingers(a),position:y})},d.tapTime))}},hold:function(a){var e=a.target;d.hold&&(clearTimeout(p),p=setTimeout(function(){if(f.start){var g=b.getDistance(f.start[0],f.move?f.move[0]:f.start[0]);d.tapMaxDistance=2&&(v=parseInt(b.getAngle180(f.start[0],f.start[1]),10)),g=Date.now(),h=a,n={};var d=c.getBoundingClientRect(),e=document.documentElement;n={top:d.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||0),left:d.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},z.hold(a);break;case"touchmove":case"mousemove":if(!o||!f.start)return;f.move=b.getPosOfEvent(a),b.getFingers(a)>=2?z.pinch(a):t?z.rotateSingleFinger(a):z.swipe(a);break;case"touchend":case"touchcancel":case"mouseup":case"mouseout":if(!o)return;j=a,l?z.pinch(a):t?z.rotateSingleFinger(a):k?z.swipe(a):z.tap(a),b.reset(),v=0,w=0,a.touches&&1===a.touches.length&&(o=!0,t=!0)}},B=function(){function a(a){b.hasTouch||(a=b.getPCevts(a)),j.forEach(function(b){c.delegate(b,a,h,g[a])})}function d(a){b.hasTouch||(a=b.getPCevts(a)),j.forEach(function(b){c.bind(b,a,g[a])})}var e,f,g,h,i=arguments;if(i.length<2||i>4)return console.error("unexpected arguments!");var j="string"===b.getType(i[0])?document.querySelectorAll(i[0]):i[0];if(j=j.length?Array.prototype.slice.call(j):[j],3===i.length&&"string"===b.getType(i[1]))return e=i[1].split(" "),f=i[2],void e.forEach(function(a){b.hasTouch||(a=b.getPCevts(a)),j.forEach(function(b){c.bind(b,a,f)})});if(3!==i.length||"object"!==b.getType(i[1]))if(2!==i.length||"object"!==b.getType(i[1])){if(4===i.length&&"object"===b.getType(i[2]))return e=i[1].split(" "),f=i[3],void e.forEach(function(a){b.hasTouch||(a=b.getPCevts(a)),j.forEach(function(b){c.bind(b,a,f)})});if(4===i.length){var k=j[0];return e=i[1].split(" "),h=i[2],f=i[3],void e.forEach(function(a){b.hasTouch||(a=b.getPCevts(a)),c.delegate(k,a,h,f)})}}else{g=i[1];for(var l in g)d(l)}else{g=i[1],h=i[2];for(var m in g)a(m)}},C=function(){var a,d,e=arguments;if(e.length<1||e.length>4)return console.error("unexpected arguments!");var f="string"===b.getType(e[0])?document.querySelectorAll(e[0]):e[0];if(f=f.length?Array.prototype.slice.call(f):[f],1===e.length||2===e.length)return void f.forEach(function(d){a=e[1]?e[1].split(" "):Object.keys(d.listeners),a.length&&a.forEach(function(a){b.hasTouch||(a=b.getPCevts(a)),c.unbind(d,a),c.undelegate(d,a)})});if(3===e.length&&"function"===b.getType(e[2]))return d=e[2],void f.forEach(function(f){a=e[1].split(" "),a.forEach(function(a){b.hasTouch||(a=b.getPCevts(a)),c.unbind(f,a,d)})});if(3===e.length&&"string"===b.getType(e[2])){var g=e[2];return void f.forEach(function(d){a=e[1].split(" "),a.forEach(function(a){b.hasTouch||(a=b.getPCevts(a)),c.undelegate(d,a,g)})})}return 4===e.length?(d=e[3],void f.forEach(function(f){a=e[1].split(" "),a.forEach(function(a){b.hasTouch||(a=b.getPCevts(a)),c.undelegate(f,a,g,d)})})):void 0},D=function(a,d,e){var f=arguments;b.hasTouch||(d=b.getPCevts(d));var g="string"===b.getType(f[0])?document.querySelectorAll(f[0]):f[0];g=g.length?Array.prototype.call(g):[g],g.forEach(function(a){c.trigger(a,d,e)})};a();var E={};return E.on=E.bind=E.live=B,E.off=E.unbind=E.die=C,E.config=d,E.trigger=D,E});