function dianji(){$(".bottomXFK").hide()}!function(e,t){"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(m,e){function t(e,t){return t.toUpperCase()}var d=[],u=d.slice,f=d.concat,r=d.push,a=d.indexOf,i={},n=i.toString,v=i.hasOwnProperty,g={},s="1.11.1",x=function(e,t){return new x.fn.init(e,t)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,c=/-([\da-z])/gi;function p(e){var t=e.length,i=x.type(e);return"function"!==i&&!x.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||0===t||"number"==typeof t&&0>10|55296,1023&n|56320)}var e,p,b,s,t,h,m,f,x,c,u,v,T,n,g,y,a,o,w,C="sizzle"+-new Date,S=i.document,E=0,k=0,r=ae(),D=ae(),l=ae(),M=function(e,t){return e===t&&(u=!0),0},P="undefined",I={}.hasOwnProperty,A=[],N=A.pop,z=A.push,L=A.push,F=A.slice,$=A.indexOf||function(e){for(var t=0,i=this.length;t+~]|"+_+")"+_+"*"),Y=new RegExp("="+_+"*([^\\]'\"]*?)"+_+"*\\]","g"),V=new RegExp(R),G=new RegExp("^"+B+"$"),U={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H.replace("w","w*")+")"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ie=new RegExp("\\\\([\\da-f]{1,6}"+_+"?|("+_+")|.)","ig");try{L.apply(A=F.call(S.childNodes),S.childNodes),A[S.childNodes.length].nodeType}catch(e){L={apply:A.length?function(e,t){z.apply(e,F.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ne(e,t,i,n){var a,s,o,r,l,c,u;if((t?t.ownerDocument||t:S)!==T&&v(t),i=i||[],!e||"string"!=typeof e)return i;if(1!==(a=(t=t||T).nodeType)&&9!==a)return[];if(g&&!n){if(c=J.exec(e))if(u=c[1]){if(9===a){if(!(r=t.getElementById(u))||!r.parentNode)return i;if(r.id===u)return i.push(r),i}else if(t.ownerDocument&&(r=t.ownerDocument.getElementById(u))&&w(t,r)&&r.id===u)return i.push(r),i}else{if(c[2])return L.apply(i,t.getElementsByTagName(e)),i;if((u=c[3])&&p.getElementsByClassName&&t.getElementsByClassName)return L.apply(i,t.getElementsByClassName(u)),i}if(p.qsa&&(!y||!y.test(e))){if(l=r=C,c=t,u=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(o=h(e),(r=t.getAttribute("id"))?l=r.replace(te,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",s=o.length;s--;)o[s]=l+pe(o[s]);c=ee.test(e)&&ue(t.parentNode)||t,u=o.join(",")}if(u)try{return L.apply(i,c.querySelectorAll(u)),i}catch(e){}finally{r||t.removeAttribute("id")}}}return f(e.replace(q,"$1"),t,i,n)}function ae(){var i=[];function n(e,t){return i.push(e+" ")>b.cacheLength&&delete n[i.shift()],n[e+" "]=t}return n}function se(e){return e[C]=!0,e}function oe(e){var t=T.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e,t){for(var i=e.split("|"),n=e.length;n--;)b.attrHandle[i[n]]=t}function le(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ce(o){return se(function(s){return s=+s,se(function(e,t){for(var i,n=o([],e.length,s),a=n.length;a--;)e[i=n[a]]&&(e[i]=!(t[i]=e[i]))})})}function ue(e){return e&&typeof e.getElementsByTagName!==P&&e}for(e in p=ne.support={},t=ne.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},v=ne.setDocument=function(e){var l=e?e.ownerDocument||e:S,e=l.defaultView;return l!==T&&9===l.nodeType&&l.documentElement?(n=(T=l).documentElement,g=!t(l),e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",function(){v()},!1):e.attachEvent&&e.attachEvent("onunload",function(){v()})),p.attributes=oe(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=oe(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=K.test(l.getElementsByClassName)&&oe(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),p.getById=oe(function(e){return n.appendChild(e).id=C,!l.getElementsByName||!l.getElementsByName(C).length}),p.getById?(b.find.ID=function(e,t){if(typeof t.getElementById!==P&&g){e=t.getElementById(e);return e&&e.parentNode?[e]:[]}},b.filter.ID=function(e){var t=e.replace(ie,d);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var t=e.replace(ie,d);return function(e){e=typeof e.getAttributeNode!==P&&e.getAttributeNode("id");return e&&e.value===t}}),b.find.TAG=p.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==P?t.getElementsByTagName(e):void 0}:function(e,t){var i,n=[],a=0,s=t.getElementsByTagName(e);if("*"!==e)return s;for(;i=s[a++];)1===i.nodeType&&n.push(i);return n},b.find.CLASS=p.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==P&&g?t.getElementsByClassName(e):void 0},a=[],y=[],(p.qsa=K.test(l.querySelectorAll))&&(oe(function(e){e.innerHTML="",e.querySelectorAll("[msallowclip^='']").length&&y.push("[*^$]="+_+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+_+"*(?:value|"+O+")"),e.querySelectorAll(":checked").length||y.push(":checked")}),oe(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+_+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(p.matchesSelector=K.test(o=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&oe(function(e){p.disconnectedMatch=o.call(e,"div"),o.call(e,"[s!='']:x"),a.push("!=",R)}),y=y.length&&new RegExp(y.join("|")),a=a.length&&new RegExp(a.join("|")),e=K.test(n.compareDocumentPosition),w=e||K.test(n.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(i.contains?i.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},M=e?function(e,t){if(e===t)return u=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===i?e===l||e.ownerDocument===S&&w(S,e)?-1:t===l||t.ownerDocument===S&&w(S,t)?1:c?$.call(c,e)-$.call(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,n=0,a=e.parentNode,s=t.parentNode,o=[e],r=[t];if(!a||!s)return e===l?-1:t===l?1:a?-1:s?1:c?$.call(c,e)-$.call(c,t):0;if(a===s)return le(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)r.unshift(i);for(;o[n]===r[n];)n++;return n?le(o[n],r[n]):o[n]===S?-1:r[n]===S?1:0},l):T},ne.matches=function(e,t){return ne(e,null,null,t)},ne.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&v(e),t=t.replace(Y,"='$1']"),!(!p.matchesSelector||!g||a&&a.test(t)||y&&y.test(t)))try{var i=o.call(e,t);if(i||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,d),"~="===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]||ne.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]&&ne.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&V.test(i)&&(t=h(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=r[e+" "];return t||(t=new RegExp("(^|"+_+")"+e+"("+_+"|$)"))&&r(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==P&&e.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(e){e=ne.attr(e,t);return null==e?"!="===i:!i||(e+="","="===i?e===n:"!="===i?e!==n:"^="===i?n&&0===e.indexOf(n):"*="===i?n&&-1(?:<\/\1>|)$/,b=/^.[^:#\[\.,]*$/;function T(e,i,n){if(x.isFunction(i))return x.grep(e,function(e,t){return!!i.call(e,t,e)!==n});if(i.nodeType)return x.grep(e,function(e){return e===i!==n});if("string"==typeof i){if(b.test(i))return x.filter(i,e,n);i=x.filter(i,e)}return x.grep(e,function(e){return 0<=x.inArray(e,i)!==n})}x.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?x.find.matchesSelector(n,e)?[n]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,i=[],n=this,a=n.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t)[^>]*|#([\w-]*))$/;(x.fn.init=function(e,t){var i,n;if(!e)return this;if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?void 0!==E.ready?E.ready(e):e(x):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this));if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:S.exec(e))||!i[1]&&t)return(!t||t.jquery?t||E:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(i[1])&&x.isPlainObject(t))for(i in t)x.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((n=C.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return E.find(e);this.length=1,this[0]=n}return this.context=C,this.selector=e,this}).prototype=x.fn;var E=x(C),k=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.extend({dir:function(e,t,i){for(var n=[],a=e[t];a&&9!==a.nodeType&&(void 0===i||1!==a.nodeType||!x(a).is(i));)1===a.nodeType&&n.push(a),a=a[t];return n},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),x.fn.extend({has:function(e){var t,i=x(e,this),n=i.length;return this.filter(function(){for(t=0;t
a",g.leadingWhitespace=3===t.firstChild.nodeType,g.tbody=!t.getElementsByTagName("tbody").length,g.htmlSerialize=!!t.getElementsByTagName("link").length,g.html5Clone="<:nav>"!==C.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,i.appendChild(e),g.appendChecked=e.checked,t.innerHTML="",g.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,i.appendChild(t),t.innerHTML="",g.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,g.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){g.noCloneEvent=!1}),t.cloneNode(!0).click()),null==g.deleteExpando){g.deleteExpando=!0;try{delete t.test}catch(e){g.deleteExpando=!1}}}(),function(){var e,t,i=C.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(g[e+"Bubbles"]=t in m)||(i.setAttribute(t,"t"),g[e+"Bubbles"]=!1===i.attributes[t].expando);i=null}();var V=/^(?:input|select|textarea)$/i,G=/^key/,U=/^(?:mouse|pointer|contextmenu)|click/,Z=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function K(){return!0}function J(){return!1}function ee(){try{return C.activeElement}catch(e){}}function te(e){var t=ie.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}x.event={global:{},add:function(e,t,i,n,a){var s,o,r,l,c,u,d,p,h,m=x._data(e);if(m){for(i.handler&&(i=(r=i).handler,a=r.selector),i.guid||(i.guid=x.guid++),(s=m.events)||(s=m.events={}),(c=m.handle)||((c=m.handle=function(e){return typeof x===F||e&&x.event.triggered===e.type?void 0:x.event.dispatch.apply(c.elem,arguments)}).elem=e),o=(t=(t||"").match(I)||[""]).length;o--;)d=h=(u=Q.exec(t[o])||[])[1],p=(u[2]||"").split(".").sort(),d&&(l=x.event.special[d]||{},d=(a?l.delegateType:l.bindType)||d,l=x.event.special[d]||{},u=x.extend({type:d,origType:h,data:n,handler:i,guid:i.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:p.join(".")},r),(h=s[d])||((h=s[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,n,p,c)||(e.addEventListener?e.addEventListener(d,c,!1):e.attachEvent&&e.attachEvent("on"+d,c))),l.add&&(l.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),a?h.splice(h.delegateCount++,0,u):h.push(u),x.event.global[d]=!0);e=null}},remove:function(e,t,i,n,a){var s,o,r,l,c,u,d,p,h,m,f,v=x.hasData(e)&&x._data(e);if(v&&(u=v.events)){for(c=(t=(t||"").match(I)||[""]).length;c--;)if(h=f=(r=Q.exec(t[c])||[])[1],m=(r[2]||"").split(".").sort(),h){for(d=x.event.special[h]||{},p=u[h=(n?d.delegateType:d.bindType)||h]||[],r=r[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=p.length;s--;)o=p[s],!a&&f!==o.origType||i&&i.guid!==o.guid||r&&!r.test(o.namespace)||n&&n!==o.selector&&("**"!==n||!o.selector)||(p.splice(s,1),o.selector&&p.delegateCount--,d.remove&&d.remove.call(e,o));l&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,m,v.handle)||x.removeEvent(e,h,v.handle),delete u[h])}else for(h in u)x.event.remove(e,h+t[c],i,n,!0);x.isEmptyObject(u)&&(delete v.handle,x._removeData(e,"events"))}},trigger:function(e,t,i,n){var a,s,o,r,l,c,u=[i||C],d=v.call(e,"type")?e.type:e,p=v.call(e,"namespace")?e.namespace.split("."):[],h=l=i=i||C;if(3!==i.nodeType&&8!==i.nodeType&&!Z.test(d+x.event.triggered)&&(0<=d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),s=d.indexOf(":")<0&&"on"+d,(e=e[x.expando]?e:new x.Event(d,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:x.makeArray(t,[e]),r=x.event.special[d]||{},n||!r.trigger||!1!==r.trigger.apply(i,t))){if(!n&&!r.noBubble&&!x.isWindow(i)){for(o=r.delegateType||d,Z.test(o+d)||(h=h.parentNode);h;h=h.parentNode)u.push(h),l=h;l===(i.ownerDocument||C)&&u.push(l.defaultView||l.parentWindow||m)}for(c=0;(h=u[c++])&&!e.isPropagationStopped();)e.type=1]","i"),se=/^\s+/,oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,re=/<([\w:]+)/,le=/\s*$/g,fe={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:g.htmlSerialize?[0,"",""]:[1,"X
","
"]},ve=te(C).appendChild(C.createElement("div"));function ge(e,t){var i,n,a=0,s=typeof e.getElementsByTagName!==F?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==F?e.querySelectorAll(t||"*"):void 0;if(!s)for(s=[],i=e.childNodes||e;null!=(n=i[a]);a++)!t||x.nodeName(n,t)?s.push(n):x.merge(s,ge(n,t));return void 0===t||t&&x.nodeName(e,t)?x.merge([e],s):s}function ye(e){Y.test(e.type)&&(e.defaultChecked=e.checked)}function we(e,t){return x.nodeName(e,"table")&&x.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function be(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function xe(e){var t=he.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Te(e,t){for(var i,n=0;null!=(i=e[n]);n++)x._data(i,"globalEval",!t||x._data(t[n],"globalEval"))}function Ce(e,t){if(1===t.nodeType&&x.hasData(e)){var i,n,a,s=x._data(e),e=x._data(t,s),o=s.events;if(o)for(i in delete e.handle,e.events={},o)for(n=0,a=o[i].length;n")?s=e.cloneNode(!0):(ve.innerHTML=e.outerHTML,ve.removeChild(s=ve.firstChild)),!(g.noCloneEvent&&g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(n=ge(s),r=ge(e),o=0;null!=(a=r[o]);++o)n[o]&&function(e,t){var i,n,a;if(1===t.nodeType){if(i=t.nodeName.toLowerCase(),!g.noCloneEvent&&t[x.expando]){for(n in(a=x._data(t)).events)x.removeEvent(t,n,a.handle);t.removeAttribute(x.expando)}"script"===i&&t.text!==e.text?(be(t).text=e.text,xe(t)):"object"===i?(t.parentNode&&(t.outerHTML=e.outerHTML),g.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===i&&Y.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===i?t.defaultSelected=t.selected=e.defaultSelected:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}}(a,n[o]);if(t)if(i)for(r=r||ge(e),n=n||ge(s),o=0;null!=(a=r[o]);o++)Ce(a,n[o]);else Ce(e,s);return 0<(n=ge(s,"script")).length&&Te(n,!l&&ge(e,"script")),n=r=a=null,s},buildFragment:function(e,t,i,n){for(var a,s,o,r,l,c,u,d=e.length,p=te(t),h=[],m=0;m")+u[2],a=u[0];a--;)r=r.lastChild;if(!g.leadingWhitespace&&se.test(s)&&h.push(t.createTextNode(se.exec(s)[0])),!g.tbody)for(a=(s="table"!==l||le.test(s)?""!==u[1]||le.test(s)?0:r:r.firstChild)&&s.childNodes.length;a--;)x.nodeName(c=s.childNodes[a],"tbody")&&!c.childNodes.length&&s.removeChild(c);for(x.merge(h,r.childNodes),r.textContent="";r.firstChild;)r.removeChild(r.firstChild);r=p.lastChild}else h.push(t.createTextNode(s));for(r&&p.removeChild(r),g.appendChecked||x.grep(ge(h,"input"),ye),m=0;s=h[m++];)if((!n||-1===x.inArray(s,n))&&(o=x.contains(s.ownerDocument,s),r=ge(p.appendChild(s),"script"),o&&Te(r),i))for(a=0;s=r[a++];)pe.test(s.type||"")&&i.push(s);return r=null,p},cleanData:function(e,t){for(var i,n,a,s,o=0,r=x.expando,l=x.cache,c=g.deleteExpando,u=x.event.special;null!=(i=e[o]);o++)if((t||x.acceptData(i))&&(s=(a=i[r])&&l[a])){if(s.events)for(n in s.events)u[n]?x.event.remove(i,n):x.removeEvent(i,n,s.handle);l[a]&&(delete l[a],c?delete i[r]:typeof i.removeAttribute!==F?i.removeAttribute(r):i[r]=null,d.push(a))}}}),x.fn.extend({text:function(e){return X(this,function(e){return void 0===e?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||C).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||we(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=we(this,e)).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 i,n=e?x.filter(e,this):this,a=0;null!=(i=n[a]);a++)t||1!==i.nodeType||x.cleanData(ge(i)),i.parentNode&&(t&&x.contains(i.ownerDocument,i)&&Te(ge(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&x.cleanData(ge(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return X(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ne,""):void 0;if(!("string"!=typeof e||ue.test(e)||!g.htmlSerialize&&ae.test(e)||!g.leadingWhitespace&&se.test(e)||fe[(re.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(oe,"<$1>");try{for(;i")).appendTo(t.documentElement))[0].contentWindow||Se[0].contentDocument).document).write(),t.close(),i=De(e,t),Se.detach()),ke[e]=i),i}g.shrinkWrapBlocks=function(){return null!=Ee?Ee:(Ee=!1,(t=C.getElementsByTagName("body")[0])&&t.style?(e=C.createElement("div"),(i=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(i).appendChild(e),typeof e.style.zoom!==F&&(e.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",e.appendChild(C.createElement("div")).style.width="5px",Ee=3!==e.offsetWidth),t.removeChild(i),Ee):void 0);var e,t,i};var Pe,Ie,Ae,Ne,ze,Le,Fe=/^margin/,$e=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),Oe=/^(top|right|bottom|left)$/;function _e(t,i){return{get:function(){var e=t();if(null!=e)return e?void delete this.get:(this.get=i).apply(this,arguments)}}}function He(){var e,t,i,n=C.getElementsByTagName("body")[0];n&&n.style&&(e=C.createElement("div"),(t=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(t).appendChild(e),e.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",Ae=Ne=!1,Le=!0,m.getComputedStyle&&(Ae="1%"!==(m.getComputedStyle(e,null)||{}).top,Ne="4px"===(m.getComputedStyle(e,null)||{width:"4px"}).width,(i=e.appendChild(C.createElement("div"))).style.cssText=e.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",e.style.width="1px",Le=!parseFloat((m.getComputedStyle(i,null)||{}).marginRight)),e.innerHTML="
t
",(i=e.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(ze=0===i[0].offsetHeight)&&(i[0].style.display="",i[1].style.display="none",ze=0===i[0].offsetHeight),n.removeChild(t))}m.getComputedStyle?(Pe=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},Ie=function(e,t,i){var n,a=e.style,s=(i=i||Pe(e))?i.getPropertyValue(t)||i[t]:void 0;return i&&(""!==s||x.contains(e.ownerDocument,e)||(s=x.style(e,t)),$e.test(s)&&Fe.test(t)&&(n=a.width,e=a.minWidth,t=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=e,a.maxWidth=t)),void 0===s?s:s+""}):C.documentElement.currentStyle&&(Pe=function(e){return e.currentStyle},Ie=function(e,t,i){var n,a,s,o=e.style;return null==(s=(i=i||Pe(e))?i[t]:void 0)&&o&&o[t]&&(s=o[t]),$e.test(s)&&!Oe.test(t)&&(n=o.left,(i=(a=e.runtimeStyle)&&a.left)&&(a.left=e.currentStyle.left),o.left="fontSize"===t?"1em":s,s=o.pixelLeft+"px",o.left=n,i&&(a.left=i)),void 0===s?s:s+""||"auto"}),(it=C.createElement("div")).innerHTML="
a",(nt=(nt=it.getElementsByTagName("a")[0])&&nt.style)&&(nt.cssText="float:left;opacity:.5",g.opacity="0.5"===nt.opacity,g.cssFloat=!!nt.cssFloat,it.style.backgroundClip="content-box",it.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===it.style.backgroundClip,g.boxSizing=""===nt.boxSizing||""===nt.MozBoxSizing||""===nt.WebkitBoxSizing,x.extend(g,{reliableHiddenOffsets:function(){return null==ze&&He(),ze},boxSizingReliable:function(){return null==Ne&&He(),Ne},pixelPosition:function(){return null==Ae&&He(),Ae},reliableMarginRight:function(){return null==Le&&He(),Le}})),x.swap=function(e,t,i,n){var a,s={};for(a in t)s[a]=e.style[a],e.style[a]=t[a];for(a in n=i.apply(e,n||[]),t)e.style[a]=s[a];return n};var Be=/alpha\([^)]*\)/i,We=/opacity\s*=\s*([^)]*)/,Re=/^(none|table(?!-c[ea]).+)/,qe=new RegExp("^("+q+")(.*)$","i"),je=new RegExp("^([+-])=("+q+")","i"),Xe={position:"absolute",visibility:"hidden",display:"block"},Ye={letterSpacing:"0",fontWeight:"400"},Ve=["Webkit","O","Moz","ms"];function Ge(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,a=Ve.length;a--;)if((t=Ve[a]+i)in e)return t;return n}function Ue(e,t){for(var i,n,a,s=[],o=0,r=e.length;o
a",h=s.getElementsByTagName("a")[0],nt=(it=C.createElement("select")).appendChild(C.createElement("option")),q=s.getElementsByTagName("input")[0],h.style.cssText="top:1px",g.getSetAttribute="t"!==s.className,g.style=/top/.test(h.getAttribute("style")),g.hrefNormalized="/a"===h.getAttribute("href"),g.checkOn=!!q.value,g.optSelected=nt.selected,g.enctype=!!C.createElement("form").enctype,it.disabled=!0,g.optDisabled=!nt.disabled,(q=C.createElement("input")).setAttribute("value",""),g.input=""===q.getAttribute("value"),q.value="t",q.setAttribute("type","radio"),g.radioValue="t"===q.value;var ht=/\r/g;x.fn.extend({val:function(t){var i,e,n,a=this[0];return arguments.length?(n=x.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=n?t.call(this,e,x(this).val()):t)?e="":"number"==typeof e?e+="":x.isArray(e)&&(e=x.map(e,function(e){return null==e?"":e+""})),(i=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):a?(i=x.valHooks[a.type]||x.valHooks[a.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(a,"value"))?e:"string"==typeof(e=a.value)?e.replace(ht,""):null==e?"":e:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:x.trim(x.text(e))}},select:{get:function(e){for(var t,i=e.options,n=e.selectedIndex,a="select-one"===e.type||n<0,s=a?null:[],o=a?n+1:i.length,r=n<0?o:a?n:0;r").append(x.parseHTML(e)).find(n):e)}).complete(i&&function(e,t){o.each(i,a||[e.responseText,t,e])}),this},x.expr.filters.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length};var Qt=m.document.documentElement;function Kt(e){return x.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}x.offset={setOffset:function(e,t,i){var n,a,s,o,r=x.css(e,"position"),l=x(e),c={};"static"===r&&(e.style.position="relative"),s=l.offset(),n=x.css(e,"top"),o=x.css(e,"left"),o=("absolute"===r||"fixed"===r)&&-1=a&&s-t.topOffset<=a+o.height()&&e+i.width()>=n&&e-t.leftOffset<=n+o.width()},p.utils.parseOptions=p.utils.options=function(e){if(d.isPlainObject(e))return e;var t=e?e.indexOf("{"):-1,i={};if(-1!=t)try{i=new Function("","var json = "+e.substr(t)+"; return JSON.parse(JSON.stringify(json));")()}catch(e){}return i},p.utils.generateGUID=function(e){for(var t=e+"-"||"am-";t+=Math.random().toString(36).substring(2,7),document.getElementById(t););return t},p.utils.getAbsoluteUrl=function(e){return(n=n||document.createElement("a")).href=e,n.href},p.plugin=function(l,c,u){var e=d.fn[l];u=u||{},d.fn[l]=function(a){var s,o=Array.prototype.slice.call(arguments,0),r=o.slice(1),e=this.each(function(){var e=d(this),t="amui."+l,i=u.dataOptions||"data-am-"+l,n=e.data(t),i=d.extend({},p.utils.parseOptions(e.attr(i)),"object"==typeof a&&a);!n&&"destroy"===a||(n||e.data(t,n=new c(this,i)),u.methodCall?u.methodCall.call(e,o,n):(u.before&&u.before.call(e,o,n),"string"==typeof a&&(s="function"==typeof n[a]?n[a].apply(n,r):n[a]),u.after&&u.after.call(e,o,n)))});return void 0===s?e:s},d.fn[l].Constructor=c,d.fn[l].noConflict=function(){return d.fn[l]=e,this},p[l]=c},d.fn.emulateTransitionEnd=function(e){var t=!1,i=this;d(this).one(p.support.transition.end,function(){t=!0});return this.transitionEndTimmer=setTimeout(function(){t||d(i).trigger(p.support.transition.end),i.transitionEndTimmer=void 0},e),this},d.fn.redraw=function(){return this.each(function(){this.offsetHeight})},d.fn.transitionEnd=function(i){var n=p.support.transition.end,a=this;return i&&n&&a.on(n,function e(t){i.call(this,t),n&&a.off(n,e)}),this},d.fn.removeClassRegEx=function(){return this.each(function(e){var t=d(this).attr("class");if(!t||!e)return!1;for(var i=[],n=0,a=(t=t.split(" ")).length;n=window.innerWidth)return 0;var e=d('
');d(document.body).append(e);var t=e[0].offsetWidth-e[0].clientWidth;return e.remove(),t},p.utils.imageLoader=function(e,t){function i(){t(e[0])}return e.attr("src")?void(e[0].complete||4===e[0].readyState?i():function(){var e,t;this.one("load",i),/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&(t=(e=this.attr("src")).match(/\?/)?"&":"?",t+="random="+(new Date).getTime(),this.attr("src",e+t))}.call(e)):void i()},p.template=function(e,t){var i,n,a,s,o,r=p.template;return r.cache[e]||(r.cache[e]=(n=/^[\w\-]+$/.test(i=e)?r.get(e):(i="template(string)",e),a=1,i=("try { "+(r.variable?"var "+r.variable+" = this.stash;":"with (this.stash) { ")+"this.ret += '"+n.replace(/<%/g,"").replace(/%>/g,"").replace(/'(?![^\x11\x13]+?\x13)/g,"\\x27").replace(/^\s*|\s*$/g,"").replace(/\n/g,function(){return"';\nthis.line = "+ ++a+"; this.ret += '\\n"}).replace(/\x11-(.+?)\x13/g,"' + ($1) + '").replace(/\x11=(.+?)\x13/g,"' + this.escapeHTML($1) + '").replace(/\x11(.+?)\x13/g,"'; $1; this.ret += '")+"'; "+(r.variable?"":"}")+"return this.ret;} catch (e) { throw 'TemplateError: ' + e + ' (on "+i+"' + ' line ' + this.line + ')'; } //@ sourceURL="+i+"\n").replace(/this\.ret \+= '';/g,""),s=new Function(i),o={"&":"&","<":"<",">":">",'"':""","'":"'"},function(e){return s.call(r.context={escapeHTML:l,line:1,ret:"",stash:e})})),t?r.cache[e](t):r.cache[e];function l(e){return(""+e).replace(/[&<>\'\"]/g,function(e){return o[e]})}},p.template.cache={},p.template.get=function(e){if(e){e=document.getElementById(e);return e&&e.innerHTML||""}},p.DOMWatchers=[],p.DOMReady=!1,p.ready=function(e){p.DOMWatchers.push(e),p.DOMReady&&e(document)},p.DOMObserve=function(e,t,a){var s=p.support.mutationobserver;s&&(t=d.isPlainObject(t)?t:{childList:!0,subtree:!0},a="function"==typeof a&&a||function(){},d(e).each(function(){var i=this,n=d(i);if(!n.data("am.observer"))try{var e=new s(p.utils.debounce(function(e,t){a.call(i,e,t),n.trigger("changed.dom.amui")},50));e.observe(i,t),n.data("am.observer",e)}catch(e){}}))},d.fn.DOMObserve=function(e,t){return this.each(function(){p.DOMObserve(this,e,t)})},p.support.touch&&s.addClass("am-touch"),d(document).on("changed.dom.amui",function(e){var i=e.target;d.each(p.DOMWatchers,function(e,t){t(i)})}),d(function(){var e=d(document.body);p.DOMReady=!0,d.each(p.DOMWatchers,function(e,t){t(document)}),p.DOMObserve("[data-am-observe]"),s.removeClass("no-js").addClass("js"),p.support.animation&&s.addClass("cssanimations"),window.navigator.standalone&&s.addClass("am-standalone"),d(".am-topbar-fixed-top").length&&e.addClass("am-with-topbar-fixed-top"),d(".am-topbar-fixed-bottom").length&&e.addClass("am-with-topbar-fixed-bottom");e=d(".am-layout");e.find('[class*="md-block-grid"]').alterClass("md-block-grid-*"),e.find('[class*="lg-block-grid"]').alterClass("lg-block-grid"),d("[data-am-widget]").each(function(){var e=d(this);0===e.parents(".am-layout").length&&e.addClass("am-no-layout")})}),e.exports=p},function(e,t,i){"use strict";function s(e,t,i){return setTimeout(l(e,i),t)}function n(e,t,i){return Array.isArray(e)&&(o(e,i[t],i),1)}function o(e,t,i){if(e)if(e.forEach)e.forEach(t,i);else if(void 0!==e.length)for(n=0;n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",e=window.console&&(window.console.warn||window.console.log);return e&&e.call(window.console,n,t),i.apply(this,arguments)}}function r(e,t,i){var n=t.prototype,t=e.prototype=Object.create(n);t.constructor=e,t._super=n,i&&ae(t,i)}function l(e,t){return function(){return e.apply(t,arguments)}}function c(e,t){return typeof e==ee?e.apply(t&&t[0]||void 0,t):e}function u(e,t){return void 0===e?t:e}function d(t,e,i){o(f(e),function(e){t.addEventListener(e,i,!1)})}function p(t,e,i){o(f(e),function(e){t.removeEventListener(e,i,!1)})}function h(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function m(e,t){return-1t[i]}):n.sort():n}function w(e,t){for(var i,n=t[0].toUpperCase()+t.slice(1),a=0;aie(a.y)?a.x:a.y,t.scale=o?function(e,t){return D(t[0],t[1],Ee)/D(e[0],e[1],Ee)}(o.pointers,n):1,t.rotation=o?function(e,t){return M(t[1],t[0],Ee)+M(e[1],e[0],Ee)}(o.pointers,n):0,t.maxPointers=!i.prevInput||t.pointers.length>i.prevInput.maxPointers?t.pointers.length:i.prevInput.maxPointers,function(e,t){var i,n,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;{var o,r,l;t.eventType!=ve&&(heie(l.y)?l.x:l.y,r=k(o,r),e.lastInterval=t):(l=a.velocity,i=a.velocityX,n=a.velocityY,r=a.direction)}t.velocity=l,t.velocityX=i,t.velocityY=n,t.direction=r}(i,t);e=e.element;h(t.srcEvent.target,e)&&(e=t.srcEvent.target),t.target=e}(e,i),e.emit("hammer.input",i),e.recognize(i),e.session.prevInput=i}function C(e){for(var t=[],i=0;i=ie(t)?e<0?ye:we:t<0?be:xe}function D(e,t,i){var n=t[(i=i||Se)[0]]-e[i[0]],i=t[i[1]]-e[i[1]];return Math.sqrt(n*n+i*i)}function M(e,t,i){var n=t[(i=i||Se)[0]]-e[i[0]],i=t[i[1]]-e[i[1]];return 180*Math.atan2(i,n)/Math.PI}function P(){this.evEl=De,this.evWin=Me,this.pressed=!1,x.apply(this,arguments)}function I(){this.evEl=Ae,this.evWin=Ne,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function A(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,x.apply(this,arguments)}function N(){this.evTarget=Fe,this.targetIds={},x.apply(this,arguments)}function z(){x.apply(this,arguments);var e=l(this.handler,this);this.touch=new N(this.manager,e),this.mouse=new P(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function L(e){var t,i,e=e.changedPointers[0];e.identifier===this.primaryTouch&&(t={x:e.clientX,y:e.clientY},this.lastTouches.push(t),i=this.lastTouches,setTimeout(function(){var e=i.indexOf(t);-1t.threshold&&a&t.direction},attrTest:function(e){return B.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=_(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),r(R,B,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[We]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){var t;1!==e.scale&&(t=e.scale<1?"in":"out",e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),r(q,$,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,i=e.pointers.length===t.pointers,n=e.distancet.time;if(this._input=e,!n||!i||e.eventType&(fe|ve)&&!a)this.reset();else if(e.eventType&me)this.reset(),this._timer=s(function(){this.state=8,this.tryEmit()},t.time,this);else if(e.eventType&fe)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&fe?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=ne(),this.manager.emit(this.options.event,this._input)))}}),r(j,B,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[We]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),r(X,B,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Te|Ce,pointers:1},getTouchAction:function(){return W.prototype.getTouchAction.call(this)},attrTest:function(e){var t,i=this.options.direction;return i&(Te|Ce)?t=e.overallVelocity:i&Te?t=e.overallVelocityX:i&Ce&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&ie(t)>this.options.velocity&&e.eventType&fe},emit:function(e){var t=_(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),r(Y,$,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Be]},process:function(e){var t=this.options,i=e.pointers.length===t.pointers,n=e.distanceAdd to Home Screen.",android:'To add this web app to the home screen open the browser option menu and tap on Add to homescreen. The menu can be accessed by pressing the menu hardware button if your device has one, or by tapping the top right menu icon icon.'},zh_cn:{ios:"如要把应用程式加至主屏幕,请点击%icon, 然后加至主屏幕",android:'To add this web app to the home screen open the browser option menu and tap on Add to homescreen. The menu can be accessed by pressing the menu hardware button if your device has one, or by tapping the top right menu icon icon.'},zh_tw:{ios:"如要把應用程式加至主屏幕, 請點擊%icon, 然後加至主屏幕.",android:'To add this web app to the home screen open the browser option menu and tap on Add to homescreen. The menu can be accessed by pressing the menu hardware button if your device has one, or by tapping the top right menu icon icon.'}},n.intl)n.intl[u.substr(0,2)]=n.intl[u];n.defaults={appID:"org.cubiq.addtohome",fontSize:15,debug:!1,logging:!1,modal:!1,mandatory:!1,autostart:!0,skipFirstVisit:!1,startDelay:1,lifespan:15,displayPace:1440,maxDisplayCount:0,icon:!0,message:"",validLocation:[],onInit:null,onShow:null,onRemove:null,onAdd:null,onPrivate:null,privateModeOverride:!1,detectHomescreen:!1};var h=window.navigator.userAgent,i=window.navigator;a(n,{hasToken:"#ath"==document.location.hash||d.test(document.location.href)||p.test(document.location.search),isRetina:window.devicePixelRatio&&1=this.options.maxDisplayCount)return void this.doLog("Add to homescreen: not displaying callout because displayed too many times already")}this.shown=!0,this.session.lastDisplayTime=t,this.session.displayCount++,this.updateSession(),this.applicationIcon||("ios"==n.OS?this.applicationIcon=document.querySelector('head link[rel^=apple-touch-icon][sizes="152x152"],head link[rel^=apple-touch-icon][sizes="144x144"],head link[rel^=apple-touch-icon][sizes="120x120"],head link[rel^=apple-touch-icon][sizes="114x114"],head link[rel^=apple-touch-icon]'):this.applicationIcon=document.querySelector('head link[rel^="shortcut icon"][sizes="196x196"],head link[rel^=apple-touch-icon]'));t="";"object"==typeof this.options.message&&n.language in this.options.message?t=this.options.message[n.language][n.OS]:"object"==typeof this.options.message&&n.OS in this.options.message?t=this.options.message[n.OS]:this.options.message in n.intl?t=n.intl[this.options.message][n.OS]:""!==this.options.message?t=this.options.message:n.OS in n.intl[n.language]&&(t=n.intl[n.language][n.OS]),t="

"+t.replace("%icon",'icon')+"

",this.viewport=document.createElement("div"),this.viewport.className="ath-viewport",this.options.modal&&(this.viewport.className+=" ath-modal"),this.options.mandatory&&(this.viewport.className+=" ath-mandatory"),this.viewport.style.position="absolute",this.element=document.createElement("div"),this.element.className="ath-container ath-"+n.OS+" ath-"+n.OS+(n.OSVersion+"").substr(0,1)+" ath-"+(n.isTablet?"tablet":"phone"),this.element.style.cssText="-webkit-transition-property:-webkit-transform,opacity;-webkit-transition-duration:0s;-webkit-transition-timing-function:ease-out;transition-property:transform,opacity;transition-duration:0s;transition-timing-function:ease-out;",this.element.style.webkitTransform="translate3d(0,-"+window.innerHeight+"px,0)",this.element.style.transform="translate3d(0,-"+window.innerHeight+"px,0)",this.options.icon&&this.applicationIcon&&(this.element.className+=" ath-icon",this.img=document.createElement("img"),this.img.className="ath-application-icon",this.img.addEventListener("load",this,!1),this.img.addEventListener("error",this,!1),this.img.src=this.applicationIcon.href,this.element.appendChild(this.img)),this.element.innerHTML+=t,this.viewport.style.left="-99999em",this.viewport.appendChild(this.element),this.container.appendChild(this.viewport),this.img?this.doLog("Add to homescreen: not displaying callout because waiting for img to load"):this._delayedShow()}else setTimeout(this.show.bind(this),50)},_delayedShow:function(e){setTimeout(this._show.bind(this),1e3*this.options.startDelay+500)},_show:function(){var e=this;this.updateViewport(),window.addEventListener("resize",this,!1),window.addEventListener("scroll",this,!1),window.addEventListener("orientationchange",this,!1),this.options.modal&&document.addEventListener("touchmove",this,!0),this.options.mandatory||setTimeout(function(){e.element.addEventListener("click",e,!0)},1e3),setTimeout(function(){e.element.style.webkitTransitionDuration="1.2s",e.element.style.transitionDuration="1.2s",e.element.style.webkitTransform="translate3d(0,0,0)",e.element.style.transform="translate3d(0,0,0)"},0),this.options.lifespan&&(this.removeTimer=setTimeout(this.remove.bind(this),1e3*this.options.lifespan)),this.options.onShow&&this.options.onShow.call(this)},remove:function(){clearTimeout(this.removeTimer),this.img&&(this.img.removeEventListener("load",this,!1),this.img.removeEventListener("error",this,!1)),window.removeEventListener("resize",this,!1),window.removeEventListener("scroll",this,!1),window.removeEventListener("orientationchange",this,!1),document.removeEventListener("touchmove",this,!0),this.element.removeEventListener("click",this,!0),this.element.addEventListener("transitionend",this,!1),this.element.addEventListener("webkitTransitionEnd",this,!1),this.element.addEventListener("MSTransitionEnd",this,!1),this.element.style.webkitTransitionDuration="0.3s",this.element.style.opacity="0"},_removeElements:function(){this.element.removeEventListener("transitionend",this,!1),this.element.removeEventListener("webkitTransitionEnd",this,!1),this.element.removeEventListener("MSTransitionEnd",this,!1),this.container.removeChild(this.viewport),this.shown=!1,this.options.onRemove&&this.options.onRemove.call(this)},updateViewport:function(){var e,t;this.shown&&(this.viewport.style.width=window.innerWidth+"px",this.viewport.style.height=window.innerHeight+"px",this.viewport.style.left=window.scrollX+"px",this.viewport.style.top=window.scrollY+"px",e=document.documentElement.clientWidth,this.orientation=e>document.documentElement.clientHeight?"landscape":"portrait",t="ios"!=n.OS||"portrait"==this.orientation?screen.width:screen.height,this.scale=screen.width>e?1:t/window.innerWidth,this.element.style.fontSize=this.options.fontSize/this.scale+"px")},resize:function(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this.updateViewport.bind(this),100)},updateSession:function(){!1!==n.hasLocalStorage&&localStorage&&localStorage.setItem(this.options.appID,JSON.stringify(this.session))},clearSession:function(){this.session=m,this.updateSession()},getItem:function(e){try{if(!localStorage)throw new Error("localStorage is not defined");return localStorage.getItem(e)}catch(e){n.hasLocalStorage=!1}},optOut:function(){this.session.optedout=!0,this.updateSession()},optIn:function(){this.session.optedout=!1,this.updateSession()},clearDisplayCount:function(){this.session.displayCount=0,this.updateSession()},_preventDefault:function(e){e.preventDefault(),e.stopPropagation()}},n.VERSION="3.2.2",e.exports=o.addToHomescreen=n},function(e,t,i){"use strict";var n=i(1),a=i(2),s=function(e,t){var i=this;this.options=n.extend({},s.DEFAULTS,t),this.$element=n(e),this.$element.addClass("am-fade am-in").on("click.alert.amui",".am-close",function(){i.close()})};s.DEFAULTS={removeElement:!0},s.prototype.close=function(){function e(){t.trigger("closed.alert.amui").remove()}var t=this.$element;t.trigger("close.alert.amui").removeClass("am-in"),a.support.transition&&t.hasClass("am-fade")?t.one(a.support.transition.end,e).emulateTransitionEnd(200):e()},a.plugin("alert",s),n(document).on("click.alert.amui.data-api","[data-am-alert]",function(e){n(e.target).is(".am-close")&&n(this).alert("close")}),e.exports=s},function(e,t,i){"use strict";var l=i(1),c=i(2),s=function(e,t){this.$element=l(e),this.options=l.extend({},s.DEFAULTS,t),this.isLoading=!1,this.hasSpinner=!1};s.DEFAULTS={loadingText:"loading...",disabledClassName:"am-disabled",activeClassName:"am-active",spinner:void 0},s.prototype.setState=function(e,t){var i=this.$element,n="disabled",a=i.data(),s=this.options,o=i.is("input")?"val":"html",r="am-btn-"+e+" "+s.disabledClassName;e+="Text",s.resetText||(s.resetText=i[o]()),c.support.animation&&s.spinner&&"html"==o&&!this.hasSpinner&&(s.loadingText=''+s.loadingText,this.hasSpinner=!0),t=t||(void 0===a[e]?s:a)[e],i[o](t),setTimeout(l.proxy(function(){"loadingText"===e?(i.addClass(r).attr(n,n),this.isLoading=!0):this.isLoading&&(i.removeClass(r).removeAttr(n),this.isLoading=!1)},this),0)},s.prototype.toggle=function(){var e,t=!0,i=this.$element,n=this.$element.parent('[class*="am-btn-group"]'),a=s.DEFAULTS.activeClassName;n.length&&("radio"==(e=this.$element.find("input")).prop("type")&&(e.prop("checked")&&i.hasClass(a)?t=!1:n.find("."+a).removeClass(a)),t&&e.prop("checked",!i.hasClass(a)).trigger("change")),t&&(i.toggleClass(a),i.hasClass(a)||i.blur())},c.plugin("button",s,{dataOptions:"data-am-loading",methodCall:function(e,t){"toggle"===e[0]?t.toggle():"string"==typeof e[0]&&t.setState.apply(t,e)}}),l(document).on("click.button.amui.data-api","[data-am-button]",function(e){e.preventDefault();e=l(e.target);(e=!e.hasClass("am-btn")?e.closest(".am-btn"):e).button("toggle")}),c.ready(function(e){l("[data-am-loading]",e).button(),l("[data-am-button]",e).find("input:checked").each(function(){l(this).parent("label").addClass(s.DEFAULTS.activeClassName)})}),e.exports=c.button=s},function(e,t,i){"use strict";function s(n){return this.each(function(){var e=o(this),t=e.data("amui.collapse"),i=o.extend({},a.DEFAULTS,r.utils.options(e.attr("data-am-collapse")),"object"==typeof n&&n);!t&&i.toggle&&"open"===n&&(n=!n),t||e.data("amui.collapse",t=new a(this,i)),"string"==typeof n&&t[n]()})}var o=i(1),r=i(2),a=function(e,t){this.$element=o(e),this.options=o.extend({},a.DEFAULTS,t),this.transitioning=null,this.options.parent&&(this.$parent=o(this.options.parent)),this.options.toggle&&this.toggle()};a.DEFAULTS={toggle:!0},a.prototype.open=function(){if(!this.transitioning&&!this.$element.hasClass("am-in")){var e=o.Event("open.collapse.amui");if(this.$element.trigger(e),!e.isDefaultPrevented()){e=this.$parent&&this.$parent.find("> .am-panel > .am-in");if(e&&e.length){var t=e.data("amui.collapse");if(t&&t.transitioning)return;s.call(e,"close"),t||e.data("amui.collapse",null)}this.$element.removeClass("am-collapse").addClass("am-collapsing").height(0),this.transitioning=1;t=function(){this.$element.removeClass("am-collapsing").addClass("am-collapse am-in").height("").trigger("opened.collapse.amui"),this.transitioning=0};if(!r.support.transition)return t.call(this);e=this.$element[0].scrollHeight;this.$element.one(r.support.transition.end,o.proxy(t,this)).emulateTransitionEnd(300).css({height:e})}}},a.prototype.close=function(){if(!this.transitioning&&this.$element.hasClass("am-in")){var e=o.Event("close.collapse.amui");if(this.$element.trigger(e),!e.isDefaultPrevented()){this.$element.height(this.$element.height()).redraw(),this.$element.addClass("am-collapsing").removeClass("am-collapse am-in"),this.transitioning=1;e=function(){this.transitioning=0,this.$element.trigger("closed.collapse.amui").removeClass("am-collapsing").addClass("am-collapse")};return r.support.transition?void this.$element.height(0).one(r.support.transition.end,o.proxy(e,this)).emulateTransitionEnd(300):e.call(this)}}},a.prototype.toggle=function(){this[this.$element.hasClass("am-in")?"close":"open"]()},o.fn.collapse=s,o(document).on("click.collapse.amui.data-api","[data-am-collapse]",function(e){var t=o(this),i=r.utils.options(t.attr("data-am-collapse")),n=i.target||e.preventDefault()||(a=t.attr("href"))&&a.replace(/.*(?=#[^\s]+$)/,""),e=o(n),a=e.data("amui.collapse"),n=a?"toggle":i,i=i.parent,i=i&&o(i);a&&a.transitioning||(i&&i.find("[data-am-collapse]").not(t).addClass("am-collapsed"),t[e.hasClass("am-in")?"addClass":"removeClass"]("am-collapsed")),s.call(e,n)}),e.exports=r.collapse=a},function(e,t,i){"use strict";var r=i(1),i=i(2),s=r(document),g=function(e,t){if(this.$element=r(e),this.options=r.extend({},g.DEFAULTS,t),this.format=y.parseFormat(this.options.format),this.$element.data("date",this.options.date),this.language=this.getLocale(this.options.locale),this.theme=this.options.theme,this.$picker=r(y.template).appendTo("body").on({click:r.proxy(this.click,this)}),this.isInput=this.$element.is("input"),this.component=!!this.$element.is(".am-datepicker-date")&&this.$element.find(".am-datepicker-add-on"),this.isInput?this.$element.on({"click.datepicker.amui":r.proxy(this.open,this),"keyup.datepicker.amui":r.proxy(this.update,this)}):(this.component||this.$element).on("click.datepicker.amui",r.proxy(this.open,this)),this.minViewMode=this.options.minViewMode,"string"==typeof this.minViewMode)switch(this.minViewMode){case"months":this.minViewMode=1;break;case"years":this.minViewMode=2;break;default:this.minViewMode=0}if(this.viewMode=this.options.viewMode,"string"==typeof this.viewMode)switch(this.viewMode){case"months":this.viewMode=1;break;case"years":this.viewMode=2;break;default:this.viewMode=0}this.startViewMode=this.viewMode,this.weekStart=(this.options.weekStart||g.locales[this.language].weekStart||0)%7,this.weekEnd=(this.weekStart+6)%7,this.onRender=this.options.onRender,this.setTheme(),this.fillDow(),this.fillMonths(),this.update(),this.showMode()};g.DEFAULTS={locale:"zh_CN",format:"yyyy-mm-dd",weekStart:void 0,viewMode:0,minViewMode:0,date:"",theme:"",autoClose:1,onRender:function(e){return""}},g.prototype.open=function(e){this.$picker.show(),this.height=(this.component||this.$element).outerHeight(),this.place(),r(window).on("resize.datepicker.amui",r.proxy(this.place,this)),e&&(e.stopPropagation(),e.preventDefault());var t=this;s.on("mousedown.datapicker.amui touchstart.datepicker.amui",function(e){0===r(e.target).closest(".am-datepicker").length&&t.close()}),this.$element.trigger({type:"open.datepicker.amui",date:this.date})},g.prototype.close=function(){this.$picker.hide(),r(window).off("resize.datepicker.amui",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||r(document).off("mousedown.datapicker.amui touchstart.datepicker.amui",this.close),this.$element.trigger({type:"close.datepicker.amui",date:this.date})},g.prototype.set=function(){var e,t=y.formatDate(this.date,this.format);this.isInput?e=this.$element.attr("value",t):(this.component&&(e=this.$element.find("input").attr("value",t)),this.$element.data("date",t)),e&&e.trigger("change")},g.prototype.setValue=function(e){this.date="string"==typeof e?y.parseDate(e,this.format):new Date(e),this.set(),this.viewDate=new Date(this.date.getFullYear(),this.date.getMonth(),1,0,0,0,0),this.fill()},g.prototype.place=function(){var e=(this.component||this.$element).offset(),t=(this.component||this.$element).width(),i=e.top+this.height,n=e.left,a=s.width()-e.left-t,t=this.isOutView();if(this.$picker.removeClass("am-datepicker-right"),this.$picker.removeClass("am-datepicker-up"),640";e'+g.locales[this.language].daysMin[e++%7]+"";t+="",this.$picker.find(".am-datepicker-days thead").append(t)},g.prototype.fillMonths=function(){for(var e="",t=0;t<12;)e+=''+g.locales[this.language].monthsShort[t++]+"";this.$picker.find(".am-datepicker-months td").append(e)},g.prototype.fill=function(){var e=new Date(this.viewDate),t=e.getFullYear(),i=e.getMonth(),n=this.date.valueOf(),a=new Date(t,i-1,28,0,0,0,0),s=y.getDaysInMonth(a.getFullYear(),a.getMonth()),o=this.$picker.find(".am-datepicker-days .am-datepicker-select");"zh_CN"===this.language?o.text(t+g.locales[this.language].year[0]+" "+g.locales[this.language].months[i]):o.text(g.locales[this.language].months[i]+" "+t),a.setDate(s),a.setDate(s-(a.getDay()-this.weekStart+7)%7),(u=new Date(a)).setDate(u.getDate()+42);for(var r,l,c,u=u.valueOf(),d=[];a.valueOf()"),r=this.onRender(a,0),l=a.getFullYear(),(c=a.getMonth())'+a.getDate()+""),a.getDay()===this.weekEnd&&d.push(""),a.setDate(a.getDate()+1);this.$picker.find(".am-datepicker-days tbody").empty().append(d.join(""));for(var p=this.date.getFullYear(),h=(h=this.$picker.find(".am-datepicker-months").find(".am-datepicker-select").text(t)).end().find("span").removeClass("am-active").removeClass("am-disabled"),m=0;m<12;)this.onRender(e.setFullYear(t,m),1)&&h.eq(m).addClass("am-disabled"),m++;p===t&&h.eq(this.date.getMonth()).removeClass("am-disabled").addClass("am-active");var d="",t=10*parseInt(t/10,10),s=this.$picker.find(".am-datepicker-years").find(".am-datepicker-select").text(t+"-"+(t+9)).end().find("td"),f=new Date(this.viewDate);--t;for(var v=-1;v<11;v++)d+=''+t+"",t+=1;s.html(d)},g.prototype.click=function(e){e.stopPropagation(),e.preventDefault();var t,i,n,a=this.$picker.find(".am-datepicker-days").find(".am-active"),s=this.$picker.find(".am-datepicker-months").find(".am-active").index(),o=r(e.target).closest("span, td, th");if(1===o.length)switch(o[0].nodeName.toLowerCase()){case"th":switch(o[0].className){case"am-datepicker-switch":this.showMode(1);break;case"am-datepicker-prev":case"am-datepicker-next":this.viewDate["set"+y.modes[this.viewMode].navFnc].call(this.viewDate,this.viewDate["get"+y.modes[this.viewMode].navFnc].call(this.viewDate)+y.modes[this.viewMode].navStep*("am-datepicker-prev"===o[0].className?-1:1)),this.fill(),this.set()}break;case"span":if(o.is(".am-disabled"))return;o.is(".am-datepicker-month")?(n=o.parent().find("span").index(o),o.is(".am-active")?this.viewDate.setMonth(n,a.text()):this.viewDate.setMonth(n)):(t=parseInt(o.text(),10)||0,o.is(".am-active")?this.viewDate.setFullYear(t,s,a.text()):this.viewDate.setFullYear(t)),0!==this.viewMode&&(this.date=new Date(this.viewDate),this.$element.trigger({type:"changeDate.datepicker.amui",date:this.date,viewMode:y.modes[this.viewMode].clsName})),this.showMode(-1),this.fill(),this.set();break;case"td":o.is(".am-datepicker-day")&&!o.is(".am-disabled")&&(i=parseInt(o.text(),10)||1,n=this.viewDate.getMonth(),o.is(".am-datepicker-old")?--n:o.is(".am-datepicker-new")&&(n+=1),t=this.viewDate.getFullYear(),this.date=new Date(t,n,i,0,0,0,0),this.viewDate=new Date(t,n,Math.min(28,i),0,0,0,0),this.fill(),this.set(),this.$element.trigger({type:"changeDate.datepicker.amui",date:this.date,viewMode:y.modes[this.viewMode].clsName}),this.options.autoClose&&this.close())}},g.prototype.mousedown=function(e){e.stopPropagation(),e.preventDefault()},g.prototype.showMode=function(e){e&&(this.viewMode=Math.max(this.minViewMode,Math.min(2,this.viewMode+e))),this.$picker.find(">div").hide().filter(".am-datepicker-"+y.modes[this.viewMode].clsName).show()},g.prototype.isOutView=function(){var e=(this.component||this.$element).offset(),t={outRight:!1,outBottom:!1},i=this.$picker,n=e.left+i.outerWidth(!0),i=e.top+i.outerHeight(!0)+this.$element.innerHeight();return n>s.width()&&(t.outRight=!0),i>s.height()&&(t.outBottom=!0),t},g.prototype.getLocale=function(e){return e||((e=navigator.language&&navigator.language.split("-"))[1]=e[1].toUpperCase(),e=e.join("_")),e=!g.locales[e]?"en_US":e},g.prototype.setTheme=function(){this.theme&&this.$picker.addClass("am-datepicker-"+this.theme)},g.locales={en_US:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekStart:0},zh_CN:{days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],daysShort:["周日","周一","周二","周三","周四","周五","周六"],daysMin:["日","一","二","三","四","五","六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],weekStart:1,year:["年"]}};var y={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(e){return e%4==0&&e%100!=0||e%400==0},getDaysInMonth:function(e,t){return[31,y.isLeapYear(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},parseFormat:function(e){var t=e.match(/[.\/\-\s].*?/),e=e.split(/\W+/);if(!t||!e||0===e.length)throw new Error("Invalid date format.");return{separator:t,parts:e}},parseDate:function(e,t){var i,n=e.split(t.separator);if((e=new Date).setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),n.length===t.parts.length){for(var a=e.getFullYear(),s=e.getDate(),o=e.getMonth(),r=0,l=t.parts.length;r
',contTemplate:''};y.template='
'+y.headTemplate+'
'+y.headTemplate+y.contTemplate+'
'+y.headTemplate+y.contTemplate+"
",i.plugin("datepicker",g),i.ready(function(e){r("[data-am-datepicker]").datepicker()}),e.exports=i.datepicker=g},function(e,t,i){"use strict";var n=i(1),a=i(2),s=n(document),o=a.support.transition,r=function(){this.id=a.utils.generateGUID("am-dimmer"),this.$element=n(r.DEFAULTS.tpl,{id:this.id}),this.inited=!1,this.scrollbarWidth=0,this.$used=n([])};r.DEFAULTS={tpl:'
'},r.prototype.init=function(){return this.inited||(n(document.body).append(this.$element),this.inited=!0,s.trigger("init.dimmer.amui"),this.$element.on("touchmove.dimmer.amui",function(e){e.preventDefault()})),this},r.prototype.open=function(e){this.inited||this.init();var t=this.$element;return e&&(this.$used=this.$used.add(n(e))),this.checkScrollbar().setScrollbar(),t.show().trigger("open.dimmer.amui"),o&&t.off(o.end),setTimeout(function(){t.addClass("am-active")},0),this},r.prototype.close=function(e,t){if(this.$used=this.$used.not(n(e)),!t&&this.$used.length)return this;var i=this.$element;return i.removeClass("am-active").trigger("close.dimmer.amui"),function(){i.hide(),this.resetScrollbar()}.call(this),this},r.prototype.checkScrollbar=function(){return this.scrollbarWidth=a.utils.measureScrollbar(),this},r.prototype.setScrollbar=function(){var e=n(document.body),t=parseInt(e.css("padding-right")||0,10);return this.scrollbarWidth&&e.css("padding-right",t+this.scrollbarWidth),e.addClass("am-dimmer-active"),this},r.prototype.resetScrollbar=function(){return n(document.body).css("padding-right","").removeClass("am-dimmer-active"),this},e.exports=a.dimmer=new r},function(e,t,i){"use strict";var s=i(1),i=i(2),o=i.support.animation,n=function(e,t){this.options=s.extend({},n.DEFAULTS,t),t=this.options,this.$element=s(e),this.$toggle=this.$element.find(t.selector.toggle),this.$dropdown=this.$element.find(t.selector.dropdown),this.$boundary=t.boundary===window?s(window):this.$element.closest(t.boundary),this.$justify=t.justify&&s(t.justify).length&&s(t.justify)||void 0,this.$boundary.length||(this.$boundary=s(window)),this.active=!!this.$element.hasClass("am-active"),this.animating=null,this.events()};n.DEFAULTS={animation:"am-animation-slide-top-fixed",boundary:window,justify:void 0,selector:{dropdown:".am-dropdown-content",toggle:".am-dropdown-toggle"},trigger:"click"},n.prototype.toggle=function(){this.clear(),this.animating||this[this.active?"close":"open"]()},n.prototype.open=function(e){var t,i=this.$toggle,n=this.$element,a=this.$dropdown;i.is(".am-disabled, :disabled")||this.active||(n.trigger("open.dropdown.amui").addClass("am-active"),i.trigger("focus"),this.checkDimensions(e),t=s.proxy(function(){n.trigger("opened.dropdown.amui"),this.active=!0,this.animating=0},this),o?(this.animating=1,a.addClass(this.options.animation).on(o.end+".open.dropdown.amui",s.proxy(function(){t(),a.removeClass(this.options.animation)},this))):t())},n.prototype.close=function(){var e,t,i,n;this.active&&(e="am-dropdown-animation",t=this.$element,i=this.$dropdown,t.trigger("close.dropdown.amui"),n=s.proxy(function(){t.removeClass("am-active").trigger("closed.dropdown.amui"),this.active=!1,this.animating=0,this.$toggle.blur()},this),o?(i.removeClass(this.options.animation),i.addClass(e),this.animating=1,i.one(o.end+".close.dropdown.amui",function(){i.removeClass(e),n()})):n())},n.prototype.enable=function(){this.$toggle.prop("disabled",!1)},n.prototype.disable=function(){this.$toggle.prop("disabled",!0)},n.prototype.checkDimensions=function(e){var t,i,n,a;this.$dropdown.length&&(t=this.$dropdown,e&&e.offset&&t.offset(e.offset),i=t.offset(),n=t.outerWidth(),a=this.$boundary.width(),e=s.isWindow(this.boundary)&&this.$boundary.offset()?this.$boundary.offset().left:0,this.$justify&&t.css({"min-width":this.$justify.css("width")}),n+(i.left-e)>a&&this.$element.addClass("am-dropdown-flip"))},n.prototype.clear=function(){s("[data-am-dropdown]").not(this.$element).each(function(){var e=s(this).data("amui.dropdown");e&&e.close()})},n.prototype.events=function(){this.$toggle.on("click.dropdown.amui",s.proxy(function(e){e.preventDefault(),this.toggle()},this)),s(document).on("keydown.dropdown.amui",s.proxy(function(e){27===e.keyCode&&this.active&&this.close()},this)).on("click.outer.dropdown.amui",s.proxy(function(e){!this.active||this.$element[0]!==e.target&&this.$element.find(e.target).length||this.close()},this))},i.plugin("dropdown",n),i.ready(function(e){s("[data-am-dropdown]",e).dropdown()}),s(document).on("click.dropdown.amui.data-api",".am-dropdown form",function(e){e.stopPropagation()}),e.exports=i.dropdown=n},function(e,t,a){!function(b){var p=a(1),n=a(2),i=!0;p.flexslider=function(h,e){var m=p(h);m.vars=p.extend({},p.flexslider.defaults,e);var t,o=m.vars.namespace,f=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,r=("ontouchstart"in window||f||window.DocumentTouch&&document instanceof DocumentTouch)&&m.vars.touch,l="click touchend MSPointerUp keyup",c="",v="vertical"===m.vars.direction,g=m.vars.reverse,y=0'),1":''+i+"";"thumbnails"===m.vars.controlNav&&!0===m.vars.thumbCaptions&&""!==(a=e.attr("data-thumbcaption"))&&void 0!==a&&(s+=''+a+""),m.controlNavScaffold.append("
  • "+s+"
  • "),i++}(m.controlsContainer?p(m.controlsContainer):m).append(m.controlNavScaffold),d.controlNav.set(),d.controlNav.active(),m.controlNavScaffold.delegate("a, img",l,function(e){var t,i;e.preventDefault(),""!==c&&c!==e.type||(t=p(this),i=m.controlNav.index(t),t.hasClass(o+"active")||(m.direction=i>m.currentSlide?"next":"prev",m.flexAnimate(i,m.vars.pauseOnAction))),""===c&&(c=e.type),d.setToClearWatchedEvent()})},setupManual:function(){m.controlNav=m.manualControls,d.controlNav.active(),m.controlNav.bind(l,function(e){var t,i;e.preventDefault(),""!==c&&c!==e.type||(t=p(this),i=m.controlNav.index(t),t.hasClass(o+"active")||(i>m.currentSlide?m.direction="next":m.direction="prev",m.flexAnimate(i,m.vars.pauseOnAction))),""===c&&(c=e.type),d.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===m.vars.controlNav?"img":"a";m.controlNav=p("."+o+"control-nav li "+e,m.controlsContainer||m)},active:function(){m.controlNav.removeClass(o+"active").eq(m.animatingTo).addClass(o+"active")},update:function(e,t){1'+m.count+"")):(1===m.pagingCount?m.controlNavScaffold.find("li"):m.controlNav.eq(t).closest("li")).remove(),d.controlNav.set(),1
  • '+m.vars.prevText+'
  • '+m.vars.nextText+"
  • ");m.customDirectionNav?m.directionNav=m.customDirectionNav:m.controlsContainer?(p(m.controlsContainer).append(e),m.directionNav=p("."+o+"direction-nav li a",m.controlsContainer)):(m.append(e),m.directionNav=p("."+o+"direction-nav li a",m)),d.directionNav.update(),m.directionNav.bind(l,function(e){var t;e.preventDefault(),""!==c&&c!==e.type||(t=p(this).hasClass(o+"next")?m.getTarget("next"):m.getTarget("prev"),m.flexAnimate(t,m.vars.pauseOnAction)),""===c&&(c=e.type),d.setToClearWatchedEvent()})},update:function(){var e=o+"disabled";1===m.pagingCount?m.directionNav.addClass(e).attr("tabindex","-1"):m.vars.animationLoop?m.directionNav.removeClass(e).removeAttr("tabindex"):0===m.animatingTo?m.directionNav.removeClass(e).filter("."+o+"prev").addClass(e).attr("tabindex","-1"):m.animatingTo===m.last?m.directionNav.removeClass(e).filter("."+o+"next").addClass(e).attr("tabindex","-1"):m.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=p('
    ');m.controlsContainer?(m.controlsContainer.append(e),m.pausePlay=p("."+o+"pauseplay a",m.controlsContainer)):(m.append(e),m.pausePlay=p("."+o+"pauseplay a",m)),d.pausePlay.update(m.vars.slideshow?o+"pause":o+"play"),m.pausePlay.bind(l,function(e){e.preventDefault(),""!==c&&c!==e.type||(p(this).hasClass(o+"pause")?(m.manualPause=!0,m.manualPlay=!1,m.pause()):(m.manualPause=!1,m.manualPlay=!0,m.play())),""===c&&(c=e.type),d.setToClearWatchedEvent()})},update:function(e){"play"===e?m.pausePlay.removeClass(o+"pause").addClass(o+"play").html(m.vars.playText):m.pausePlay.removeClass(o+"play").addClass(o+"pause").html(m.vars.pauseText)}},touch:function(){var n,a,s,o,r,l,e,c,u,d=!1,t=0,i=0,p=0;f?(h.style.msTouchAction="none",h._gesture=new MSGesture,(h._gesture.target=h).addEventListener("MSPointerDown",function(e){e.stopPropagation(),m.animating?e.preventDefault():(m.pause(),h._gesture.addPointer(e.pointerId),p=0,o=v?m.h:m.w,l=Number(new Date),s=y&&g&&m.animatingTo===m.last?0:y&&g?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:y&&m.currentSlide===m.last?m.limit:y?(m.itemW+m.vars.itemMargin)*m.move*m.currentSlide:g?(m.last-m.currentSlide+m.cloneOffset)*o:(m.currentSlide+m.cloneOffset)*o)},!1),h._slider=m,h.addEventListener("MSGestureChange",function(e){e.stopPropagation();var t=e.target._slider;if(t){var i=-e.translationX,n=-e.translationY;return r=p+=v?n:i,d=v?Math.abs(p)o/2)?i.flexAnimate(e,i.vars.pauseOnAction):w||i.flexAnimate(i.currentSlide,i.vars.pauseOnAction,!0)),s=r=a=n=null,p=0)},!1)):(e=function(e){m.animating?e.preventDefault():!window.navigator.msPointerEnabled&&1!==e.touches.length||(m.pause(),o=v?m.h:m.w,l=Number(new Date),t=e.touches[0].pageX,i=e.touches[0].pageY,s=y&&g&&m.animatingTo===m.last?0:y&&g?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:y&&m.currentSlide===m.last?m.limit:y?(m.itemW+m.vars.itemMargin)*m.move*m.currentSlide:g?(m.last-m.currentSlide+m.cloneOffset)*o:(m.currentSlide+m.cloneOffset)*o,n=v?i:t,a=v?t:i,h.addEventListener("touchmove",c,!1),h.addEventListener("touchend",u,!1))},u=function(e){var t,i;h.removeEventListener("touchmove",c,!1),m.animatingTo!==m.currentSlide||d||null===r||(i=0<(t=g?-r:r)?m.getTarget("next"):m.getTarget("prev"),m.canAdvance(i)&&(Number(new Date)-l<550&&50o/2)?m.flexAnimate(i,m.vars.pauseOnAction):w||m.flexAnimate(m.currentSlide,m.vars.pauseOnAction,!0)),h.removeEventListener("touchend",u,!1),s=r=a=n=null},h.addEventListener("touchstart",e,!(c=function(e){t=e.touches[0].pageX,i=e.touches[0].pageY,r=v?n-i:n-t;(!(d=v?Math.abs(r)m.currentSlide?"next":"prev"),u&&1===m.pagingCount&&(m.direction=m.currentItemm.limit&&1!==m.visible?m.limit:a):0===m.currentSlide&&e===m.count-1&&m.vars.animationLoop&&"next"!==m.direction?g?(m.count+m.cloneOffset)*s:0:m.currentSlide===m.last&&0===e&&m.vars.animationLoop&&"prev"!==m.direction?g?0:(m.count+1)*s:g?(m.count-1-e+m.cloneOffset)*s:(e+m.cloneOffset)*s,m.setProps(e,"",m.vars.animationSpeed),m.transitions?(m.vars.animationLoop&&m.atEnd||(m.animating=!1,m.currentSlide=m.animatingTo),m.container.unbind("webkitTransitionEnd transitionend"),m.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(m.ensureAnimationEnd),m.wrapup(s)}),clearTimeout(m.ensureAnimationEnd),m.ensureAnimationEnd=setTimeout(function(){m.wrapup(s)},m.vars.animationSpeed+100)):m.container.animate(m.args,m.vars.animationSpeed,m.vars.easing,function(){m.wrapup(s)})),m.vars.smoothHeight&&d.smoothHeight(m.vars.animationSpeed)}},m.wrapup=function(e){w||y||(0===m.currentSlide&&m.animatingTo===m.last&&m.vars.animationLoop?m.setProps(e,"jumpEnd"):m.currentSlide===m.last&&0===m.animatingTo&&m.vars.animationLoop&&m.setProps(e,"jumpStart")),m.animating=!1,m.currentSlide=m.animatingTo,m.vars.after(m)},m.animateSlides=function(){!m.animating&&i&&m.flexAnimate(m.getTarget("next"))},m.pause=function(){clearInterval(m.animatedSlides),m.animatedSlides=null,m.playing=!1,m.vars.pausePlay&&d.pausePlay.update("play"),m.syncExists&&d.sync("pause")},m.play=function(){m.playing&&clearInterval(m.animatedSlides),m.animatedSlides=m.animatedSlides||setInterval(m.animateSlides,m.vars.slideshowSpeed),m.started=m.playing=!0,m.vars.pausePlay&&d.pausePlay.update("pause"),m.syncExists&&d.sync("play")},m.stop=function(){m.pause(),m.stopped=!0},m.canAdvance=function(e,t){var i=u?m.pagingCount-1:m.last;return!(!t&&(!u||m.currentItem!==m.count-1||0!==e||"prev"!==m.direction)&&(u&&0===m.currentItem&&e===m.pagingCount-1&&"next"!==m.direction||e===m.currentSlide&&!u||!m.vars.animationLoop&&(m.atEnd&&0===m.currentSlide&&e===i&&"next"!==m.direction||m.atEnd&&m.currentSlide===i&&0===e&&"next"===m.direction)))},m.getTarget=function(e){return"next"===(m.direction=e)?m.currentSlide===m.last?0:m.currentSlide+1:0===m.currentSlide?m.last:m.currentSlide-1},m.setProps=function(e,t,i){var n,a=(n=e||(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo,-1*function(){if(y)return"setTouch"===t?e:g&&m.animatingTo===m.last?0:g?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:m.animatingTo===m.last?m.limit:n;switch(t){case"setTotal":return g?(m.count-1-m.currentSlide+m.cloneOffset)*e:(m.currentSlide+m.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return g?e:m.count*e;case"jumpStart":return g?m.count*e:e;default:return e}}()+"px");m.transitions&&(a=v?"translate3d(0,"+a+",0)":"translate3d("+a+",0,0)",m.container.css("-"+m.pfx+"-transition-duration",i=void 0!==i?i/1e3+"s":"0s"),m.container.css("transition-duration",i)),m.args[m.prop]=a,!m.transitions&&void 0!==i||m.container.css(m.args),m.container.css("transform",a)},m.setup=function(e){var t,i;w?(m.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(r?m.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+m.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(m.currentSlide).css({opacity:1,zIndex:2}):0==m.vars.fadeFirstSlide?m.slides.css({opacity:0,display:"block",zIndex:1}).eq(m.currentSlide).css({zIndex:2}).css({opacity:1}):m.slides.css({opacity:0,display:"block",zIndex:1}).eq(m.currentSlide).css({zIndex:2}).animate({opacity:1},m.vars.animationSpeed,m.vars.easing)),m.vars.smoothHeight&&d.smoothHeight()):("init"===e&&(m.viewport=p('
    ').css({overflow:"hidden",position:"relative"}).appendTo(m).append(m.container),m.cloneCount=0,m.cloneOffset=0,g&&(i=p.makeArray(m.slides).reverse(),m.slides=p(i),m.container.empty().append(m.slides))),m.vars.animationLoop&&!y&&(m.cloneCount=2,m.cloneOffset=1,"init"!==e&&m.container.find(".clone").remove(),m.container.append(d.uniqueID(m.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(d.uniqueID(m.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),m.newSlides=p(m.vars.selector,m),t=g?m.count-1-m.currentSlide+m.cloneOffset:m.currentSlide+m.cloneOffset,v&&!y?(m.container.height(200*(m.count+m.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){m.newSlides.css({display:"block"}),m.doMath(),m.viewport.height(m.h),m.setProps(t*m.h,"init")},"init"===e?100:0)):(m.container.width(200*(m.count+m.cloneCount)+"%"),m.setProps(t*m.computedW,"init"),setTimeout(function(){m.doMath(),m.newSlides.css({width:m.computedW,marginRight:m.computedM,float:"left",display:"block"}),m.vars.smoothHeight&&d.smoothHeight()},"init"===e?100:0))),y||m.slides.removeClass(o+"active-slide").eq(m.currentSlide).addClass(o+"active-slide"),m.vars.init(m)},m.doMath=function(){var e=m.slides.first(),t=m.vars.itemMargin,i=m.vars.minItems,n=m.vars.maxItems;m.w=(void 0===m.viewport?m:m.viewport).width(),m.h=e.height(),m.boxPadding=e.outerWidth()-e.width(),y?(m.itemT=m.vars.itemWidth+t,m.itemM=t,m.minW=i?i*m.itemT:m.w,m.maxW=n?n*m.itemT-t:m.w,m.itemW=m.minW>m.w?(m.w-t*(i-1))/i:m.maxWm.w?m.w:m.vars.itemWidth,m.visible=Math.floor(m.w/m.itemW),m.move=0m.w?m.itemW*(m.count-1)+t*(m.count-1):(m.itemW+t)*m.count-m.w-t):(m.itemW=m.w,m.itemM=t,m.pagingCount=m.count,m.last=m.count-1),m.computedW=m.itemW-m.boxPadding,m.computedM=m.itemM},m.update=function(e,t){m.doMath(),y||(em.controlNav.length?d.controlNav.update("add"):("remove"===t&&!y||m.pagingCountm.last&&(--m.currentSlide,--m.animatingTo),d.controlNav.update("remove",m.last))),m.vars.directionNav&&d.directionNav.update()},m.addSlide=function(e,t){e=p(e);m.count+=1,m.last=m.count-1,v&&g?void 0!==t?m.slides.eq(m.count-t).after(e):m.container.prepend(e):void 0!==t?m.slides.eq(t).before(e):m.container.append(e),m.update(t,"add"),m.slides=p(m.vars.selector+":not(.clone)",m),m.setup(),m.vars.added(m)},m.removeSlide=function(e){var t=isNaN(e)?m.slides.index(p(e)):e;--m.count,m.last=m.count-1,(isNaN(e)?p(e,m.slides):v&&g?m.slides.eq(m.last):m.slides.eq(e)).remove(),m.doMath(),m.update(t,"remove"),m.slides=p(m.vars.selector+":not(.clone)",m),m.setup(),m.vars.removed(m)},d.init()},p(window).blur(function(e){i=!1}).focus(function(e){i=!0}),p.flexslider.defaults={namespace:"am-",selector:".am-slides > li",animation:"slide",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:5e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:" ",nextText:" ",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},p.fn.flexslider=function(i){var e=Array.prototype.slice.call(arguments,1);if("object"==typeof(i=void 0===i?{}:i))return this.each(function(){var e=p(this),t=i.selector||".am-slides > li",t=e.find(t);1===t.length&&!1===i.allowOneSlide||0===t.length?(t.fadeIn(400),i.start&&i.start(e)):void 0===e.data("flexslider")&&new p.flexslider(this,i)});var t,n=p(this).data("flexslider");switch(i){case"next":n.flexAnimate(n.getTarget("next"),!0);break;case"prev":case"previous":n.flexAnimate(n.getTarget("prev"),!0);break;default:"number"==typeof i?n.flexAnimate(i,!0):"string"==typeof i&&(t="function"==typeof n[i]?n[i].apply(n,e):n[i])}return void 0===t?this:t},n.ready(function(e){p("[data-am-flexslider]",e).each(function(e,t){var i=p(t),t=n.utils.parseOptions(i.data("amFlexslider"));t.before=function(e){e._pausedTimer&&(window.clearTimeout(e._pausedTimer),e._pausedTimer=null)},t.after=function(e){var t=e.vars.playAfterPaused;!t||isNaN(t)||e.playing||e.manualPause||e.manualPlay||e.stopped||(e._pausedTimer=window.setTimeout(function(){e.play()},t))},i.flexslider(t)})}),e.exports=p.flexslider}.call(t,a(12).setImmediate)},function(e,l,c){!function(e,t){function i(e,t){this._id=e,this._clearFn=t}var n=c(13).nextTick,a=Function.prototype.apply,s=Array.prototype.slice,o={},r=0;l.setTimeout=function(){return new i(a.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new i(a.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof e?e:function(e){var t=r++,i=!(arguments.length<2)&&s.call(arguments,1);return o[t]=!0,n(function(){o[t]&&(i?e.apply(null,i):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof t?t:function(e){delete o[e]}}.call(l,c(12).setImmediate,c(12).clearImmediate)},function(e,t){function n(t){if(r===setTimeout)return setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}function i(){d&&c&&(d=!1,c.length?u=c.concat(u):p=-1,u.length&&a())}function a(){if(!d){var e=n(i);d=!0;for(var t=u.length;t;){for(c=u,u=[];++pi+this.options.directionLockThreshold?this.directionLocked="h":i>=t+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)e.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);a=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)e.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);n=0}n=this.hasHorizontalScroll?n:0,a=this.hasVerticalScroll?a:0,t=this.x+n,e=this.y+a,(0Math.abs(e.y-t.y)?this.addOffset({x:-(e.x-t.x),y:0}):this.addOffset({y:-(e.y-t.y),x:0}):this.addOffset({y:-(e.y-t.y),x:-(e.x-t.x)}))},getTouchCenter:function(e){return this.getVectorAvg(e)},getVectorAvg:function(e){return{x:e.map(function(e){return e.x}).reduce(t)/e.length,y:e.map(function(e){return e.y}).reduce(t)/e.length}},addOffset:function(e){this.offset={x:this.offset.x+e.x,y:this.offset.y+e.y}},sanitize:function(){this.zoomFactor'),this.el.before(this.container),this.container.append(this.el),this.container.css({overflow:"hidden",position:"relative"}),this.el.css({"-webkit-transform-origin":"0% 0%","-moz-transform-origin":"0% 0%","-ms-transform-origin":"0% 0%","-o-transform-origin":"0% 0%","transform-origin":"0% 0%",position:"absolute"})},end:function(){this.hasInteraction=!1,this.sanitize(),this.update()},bindEvents:function(){n(this.container.get(0),this),i(window).on("resize",this.update.bind(this)),i(this.el).find("img").on("load",this.update.bind(this))},update:function(){this.updatePlaned||(this.updatePlaned=!0,setTimeout(function(){this.updatePlaned=!1,this.updateAspectRatio();var e=this.getInitialZoomFactor()*this.zoomFactor,t=-this.offset.x/e,i=-this.offset.y/e,n="scale3d("+e+", "+e+",1) translate3d("+t+"px,"+i+"px,0px)",t="scale("+e+", "+e+") translate("+t+"px,"+i+"px)",i=function(){this.clone&&(this.clone.remove(),delete this.clone)}.bind(this);!this.options.use2d||this.hasInteraction||this.inAnimation?(this.is3d=!0,i(),this.el.css({"-webkit-transform":n,"-o-transform":t,"-ms-transform":t,"-moz-transform":t,transform:n})):(this.is3d&&(this.clone=this.el.clone(),this.clone.css("pointer-events","none"),this.clone.appendTo(this.container),setTimeout(i,200)),this.el.css({"-webkit-transform":t,"-o-transform":t,"-ms-transform":t,"-moz-transform":t,transform:t}),this.is3d=!1)}.bind(this),0))},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1}};var n=function(e,i){function t(e,t){if(r!==e){if(r&&!e)switch(r){case"zoom":i.handleZoomEnd(t);break;case"drag":i.handleDragEnd(t)}switch(e){case"zoom":i.handleZoomStart(t);break;case"drag":i.handleDragStart(t)}}r=e}function n(e){2===l?t("zoom"):1===l&&i.canDrag()?t("drag",e):t(null,e)}function a(e){return Array.prototype.slice.call(e).map(function(e){return{x:e.pageX,y:e.pageY}})}function s(e,t){var i=e.x-t.x,t=e.y-t.y;return Math.sqrt(i*i+t*t)}function o(e){e.stopPropagation(),e.preventDefault()}var r=null,l=0,c=null,u=null,d=!0;e.addEventListener("touchstart",function(e){i.enabled&&(d=!0,l=e.touches.length,function(e){var t=(new Date).getTime();if(t-(c=1
    '},a.prototype.init=function(){function e(){t.sizePopover()}var t=this,i=this.$element;this.options.target||(this.$popover=this.getPopover(),this.setContent()),this.$popover.appendTo(s("body")),this.sizePopover(),i.on("open.popover.amui",function(){s(window).on("resize.popover.amui",n.utils.debounce(e,50))}),i.on("close.popover.amui",function(){s(window).off("resize.popover.amui",e)}),this.options.open&&this.open()},a.prototype.sizePopover=function(){var e,t,i,n,a,s,o,r,l,c,u,d,p=this.$element,h=this.$popover;h&&h.length&&(e=h.outerWidth(),t=h.outerHeight(),i=h.find(".am-popover-caret").outerWidth()/2||8,n=t+8,a=p.outerWidth(),s=p.outerHeight(),o=p.offset(),r=p[0].getBoundingClientRect(),l=m.height(),c=m.width(),d=u=0,p="top",h.css({left:"",top:""}).removeClass("am-popover-left am-popover-right am-popover-top am-popover-bottom"),u=n-2
    '};u.configure=function(e){var t,i;for(t in e)i=e[t],void 0!==i&&e.hasOwnProperty(t)&&(d[t]=i);return this},u.status=null,u.set=function(a){var e=u.isStarted();a=i(a,d.minimum,1),u.status=1===a?null:a;var s=u.render(!e),o=s.querySelector(d.barSelector),r=d.speed,l=d.easing;return s.offsetWidth,f(function(e){var t,i,n;""===d.positionUsing&&(d.positionUsing=u.getPositioningCSS()),v(o,(t=a,i=r,n=l,(t="translate3d"===d.positionUsing?{transform:"translate3d("+c(t)+"%,0,0)"}:"translate"===d.positionUsing?{transform:"translate("+c(t)+"%,0)"}:{"margin-left":c(t)+"%"}).transition="all "+i+"ms "+n,t)),1===a?(v(s,{transition:"none",opacity:1}),s.offsetWidth,setTimeout(function(){v(s,{transition:"all "+r+"ms linear",opacity:0}),setTimeout(function(){u.remove(),e()},r)},r)):setTimeout(e,r)}),this},u.isStarted=function(){return"number"==typeof u.status},u.start=function(){u.status||u.set(0);var e=function(){setTimeout(function(){u.status&&(u.trickle(),e())},d.trickleSpeed)};return d.trickle&&e(),this},u.done=function(e){return e||u.status?u.inc(.3+.5*Math.random()).set(1):this},u.inc=function(e){var t=u.status;return t?("number"!=typeof e&&(e=(1-t)*i(Math.random()*t,.1,.95)),t=i(t+e,0,.994),u.set(t)):u.start()},u.trickle=function(){return u.inc(Math.random()*d.trickleRate)},l=n=0,u.promise=function(e){return e&&"resolved"!==e.state()&&(0===l&&u.start(),n++,l++,e.always(function(){0===--l?(n=0,u.done()):u.set((n-l)/n)})),this},u.render=function(e){if(u.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=d.template;var i=t.querySelector(d.barSelector),n=e?"-100":c(u.status||0),e=document.querySelector(d.parent);return v(i,{transition:"all 0 linear",transform:"translate3d("+n+"%,0,0)"}),d.showSpinner||(n=t.querySelector(d.spinnerSelector))&&r(n),e!=document.body&&s(e,"nprogress-custom-parent"),e.appendChild(t),t},u.remove=function(){t(document.documentElement,"nprogress-busy"),t(document.querySelector(d.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&r(e)},u.isRendered=function(){return!!document.getElementById("nprogress")},u.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var p,h,m,f=(m=[],function(e){m.push(e),1==m.length&&w()}),v=(p=["Webkit","O","Moz","ms"],h={},function(e,t){var i,n,a=arguments;if(2==a.length)for(i in t)n=t[i],void 0!==n&&t.hasOwnProperty(i)&&y(e,i,n);else y(e,a[1],a[2])});function g(e){return e=e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()}),h[e]||(h[e]=function(e){var t=document.body.style;if(e in t)return e;for(var i,n=p.length,a=e.charAt(0).toUpperCase()+e.slice(1);n--;)if((i=p[n]+a)in t)return i;return e}(e))}function y(e,t,i){t=g(t),e.style[t]=i}function w(){var e=m.shift();e&&e(w)}return u}();e.exports=n.progress=i},function(e,t,i){"use strict";var l=i(1),c=i(2),n=i(17),a=i(3),s=c.support.animation,o=c.support.transition,r=function(e,t){this.$element=l(e),this.$body=l(document.body),this.options=l.extend({},r.DEFAULTS,t),this.$pureview=l(this.options.tpl).attr("id",c.utils.generateGUID("am-pureview")),this.$slides=null,this.transitioning=null,this.scrollbarWidth=0,this.init()};r.DEFAULTS={tpl:'
        /
        ',className:{prevSlide:"am-pureview-slide-prev",nextSlide:"am-pureview-slide-next",onlyOne:"am-pureview-only",active:"am-active",barActive:"am-pureview-bar-active",activeBody:"am-pureview-active"},selector:{slider:".am-pureview-slider",close:'[data-am-close="pureview"]',total:".am-pureview-total",current:".am-pureview-current",title:".am-pureview-title",actions:".am-pureview-actions",bar:".am-pureview-bar",pinchZoom:".am-pinch-zoom",nav:".am-pureview-nav"},shareBtn:!1,toggleToolbar:!0,target:"img",weChatImagePreview:!0},r.prototype.init=function(){var t=this,i=this.options,e=this.$element,n=this.$pureview;this.refreshSlides(),l("body").append(n),this.$title=n.find(i.selector.title),this.$current=n.find(i.selector.current),this.$bar=n.find(i.selector.bar),this.$actions=n.find(i.selector.actions),i.shareBtn&&this.$actions.append(''),this.$element.on("click.pureview.amui",i.target,function(e){e.preventDefault();e=t.$images.index(this);i.weChatImagePreview&&window.WeixinJSBridge?window.WeixinJSBridge.invoke("imagePreview",{current:t.imgUrls[e],urls:t.imgUrls}):t.open(e)}),n.find(".am-pureview-direction").on("click.direction.pureview.amui","li",function(e){e.preventDefault(),l(this).is(".am-pureview-prev")?t.prevSlide():t.nextSlide()}),n.find(i.selector.nav).on("click.nav.pureview.amui","li",function(){var e=t.$navItems.index(l(this));t.activate(t.$slides.eq(e))}),n.find(i.selector.close).on("click.close.pureview.amui",function(e){e.preventDefault(),t.close()}),this.$slider.hammer().on("swipeleft.pureview.amui",function(e){e.preventDefault(),t.nextSlide()}).on("swiperight.pureview.amui",function(e){e.preventDefault(),t.prevSlide()}).on("press.pureview.amui",function(e){e.preventDefault(),i.toggleToolbar&&t.toggleToolBar()}),this.$slider.data("hammer").get("swipe").set({direction:a.DIRECTION_HORIZONTAL,velocity:.35}),e.DOMObserve({childList:!0,subtree:!0},function(e,t){}),e.on("changed.dom.amui",function(e){e.stopPropagation(),t.refreshSlides()}),l(document).on("keydown.pureview.amui",l.proxy(function(e){e=e.keyCode;37==e?this.prevSlide():39==e?this.nextSlide():27==e&&this.close()},this))},r.prototype.refreshSlides=function(){this.$images=this.$element.find(this.options.target);var a=this,e=this.options,t=this.$pureview,s=l([]),o=l([]),i=this.$images,n=i.length;this.$slider=t.find(e.selector.slider),this.$nav=t.find(e.selector.nav);var r="data-am-pureviewed";this.imgUrls=this.imgUrls||[],n&&(1===n&&t.addClass(e.className.onlyOne),i.not("["+r+"]").each(function(e,t){var i,n="A"===t.nodeName?(i=t.href,t.title||""):(i=l(t).data("rel")||t.src,i=c.utils.getAbsoluteUrl(i),l(t).attr("alt")||"");t.setAttribute(r,"1"),a.imgUrls.push(i),s=s.add(l('
      1. ')),o=o.add(l("
      2. "+(e+1)+"
      3. "))}),t.find(e.selector.total).text(n),this.$slider.append(s),this.$nav.append(o),this.$navItems=this.$nav.find("li"),this.$slides=this.$slider.find("li"))},r.prototype.loadImage=function(e,t){var i;e.data("image-appended")||(i=l("",{src:e.data("src"),alt:e.data("title")}),e.html(i).wrapInner('
        ').redraw(),(i=e.find(this.options.selector.pinchZoom)).data("amui.pinchzoom",new n(i[0],{})),e.data("image-appended",!0)),t&&t.call(this)},r.prototype.activate=function(t){var e=this.options,i=this.$slides,n=i.index(t),a=t.data("title")||"",s=e.className.active;i.find("."+s).is(t)||this.transitioning||(this.loadImage(t,function(){c.utils.imageLoader(t.find("img"),function(e){t.find(".am-pinch-zoom").addClass("am-pureview-loaded"),l(e).addClass("am-img-loaded")})}),this.transitioning=1,this.$title.text(a),this.$current.text(n+1),i.removeClass(),t.addClass(s),i.eq(n-1).addClass(e.className.prevSlide),i.eq(n+1).addClass(e.className.nextSlide),this.$navItems.removeClass().eq(n).addClass(e.className.active),o?t.one(o.end,l.proxy(function(){this.transitioning=0},this)).emulateTransitionEnd(300):this.transitioning=0)},r.prototype.nextSlide=function(){var e,t,i,n;1!==this.$slides.length&&(e=this.$slides,t=e.filter(".am-active"),i=e.index(t),n="am-animation-right-spring",i+1>=e.length?s&&t.addClass(n).on(s.end,function(){t.removeClass(n)}):this.activate(e.eq(i+1)))},r.prototype.prevSlide=function(){var e,t,i,n;1!==this.$slides.length&&(e=this.$slides,t=e.filter(".am-active"),i=this.$slides.index(t),n="am-animation-left-spring",0===i?s&&t.addClass(n).on(s.end,function(){t.removeClass(n)}):this.activate(e.eq(i-1)))},r.prototype.toggleToolBar=function(){this.$pureview.toggleClass(this.options.className.barActive)},r.prototype.open=function(e){e=e||0;this.checkScrollbar(),this.setScrollbar(),this.activate(this.$slides.eq(e)),this.$pureview.show().redraw().addClass(this.options.className.active),this.$body.addClass(this.options.className.activeBody)},r.prototype.close=function(){function e(){this.$pureview.hide(),this.$body.removeClass(t.className.activeBody),this.resetScrollbar()}var t=this.options;this.$pureview.removeClass(t.className.active),this.$slides.removeClass(),o?this.$pureview.one(o.end,l.proxy(e,this)).emulateTransitionEnd(300):e.call(this)},r.prototype.checkScrollbar=function(){this.scrollbarWidth=c.utils.measureScrollbar()},r.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",e+this.scrollbarWidth)},r.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},c.plugin("pureview",r),c.ready(function(e){l("[data-am-pureview]",e).pureview()}),e.exports=r},function(e,t,i){"use strict";var n=i(1),a=i(2),s=function(e,t){a.support.animation&&(this.options=n.extend({},s.DEFAULTS,t),this.$element=n(e),e=function(){a.utils.rAF.call(window,n.proxy(this.checkView,this))}.bind(this),this.$window=n(window).on("scroll.scrollspy.amui",e).on("resize.scrollspy.amui orientationchange.scrollspy.amui",a.utils.debounce(e,50)),this.timer=this.inViewState=this.initInView=null,e())};s.DEFAULTS={animation:"fade",className:{inView:"am-scrollspy-inview",init:"am-scrollspy-init"},repeat:!0,delay:0,topOffset:0,leftOffset:0},s.prototype.checkView=function(){var e=this.$element,t=this.options,i=a.utils.isInView(e,t),n=t.animation?" am-animation-"+t.animation:"";i&&!this.inViewState&&(this.timer&&clearTimeout(this.timer),this.initInView||(e.addClass(t.className.init),this.offset=e.offset(),this.initInView=!0,e.trigger("init.scrollspy.amui")),this.timer=setTimeout(function(){i&&e.addClass(t.className.inView+n).width()},t.delay),this.inViewState=!0,e.trigger("inview.scrollspy.amui")),!i&&this.inViewState&&t.repeat&&(e.removeClass(t.className.inView+n),this.inViewState=!1,e.trigger("outview.scrollspy.amui"))},s.prototype.check=function(){a.utils.rAF.call(window,n.proxy(this.checkView,this))},a.plugin("scrollspy",s),a.ready(function(e){n("[data-am-scrollspy]",e).scrollspy()}),e.exports=s},function(e,t,i){"use strict";var o=i(1),r=i(2);i(23);var n=function(e,t){this.options=o.extend({},n.DEFAULTS,t),this.$element=o(e),this.anchors=[],this.$links=this.$element.find('a[href^="#"]').each(function(e,t){this.anchors.push(o(t).attr("href"))}.bind(this)),this.$targets=o(this.anchors.join(", "));e=function(){r.utils.rAF.call(window,o.proxy(this.process,this))}.bind(this);this.$window=o(window).on("scroll.scrollspynav.amui",e).on("resize.scrollspynav.amui orientationchange.scrollspynav.amui",r.utils.debounce(e,50)),e(),this.scrollProcess()};n.DEFAULTS={className:{active:"am-active"},closest:!1,smooth:!0,offsetTop:0},n.prototype.process=function(){var i,n=this.$window.scrollTop(),a=this.options,s=[],e=this.$links;this.$targets.each(function(e,t){r.utils.isInView(t,a)&&s.push(t)}),s.length&&(o.each(s,function(e,t){if(o(t).offset().top>=n)return i=o(t),!1}),i&&(a.closest?(e.closest(a.closest).removeClass(a.className.active),e.filter('a[href="#'+i.attr("id")+'"]').closest(a.closest).addClass(a.className.active)):e.removeClass(a.className.active).filter('a[href="#'+i.attr("id")+'"]').addClass(a.className.active)))},n.prototype.scrollProcess=function(){var e=this.$links,i=this.options;i.smooth&&o.fn.smoothScroll&&e.on("click",function(e){e.preventDefault();var t=o(this),e=o(t.attr("href"));e&&(t=i.offsetTop&&!isNaN(parseInt(i.offsetTop))&&parseInt(i.offsetTop)||0,o(window).smoothScroll({position:e.offset().top-t}))})},r.plugin("scrollspynav",n),r.ready(function(e){o("[data-am-scrollspynav]",e).scrollspynav()}),e.exports=n},function(e,t,i){"use strict";var m=i(1),n=i(2),f=n.utils.rAF,v=n.utils.cancelAF,g=!1,y=function(e,t){function i(){r.off("touchstart.smoothscroll.amui",h),g=!1}function n(e){g&&(a=a||e,s=Math.min(1,Math.max((e-a)/p,0)),s=Math.round(c+d*(e=s,(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2))),0

        返回

        <% if (searchBox) { %> <% } %>
          <% for (var i = 0; i < options.length; i++) { %> <% var option = options[i] %> <% if (option.header) { %>
        • <%= option.text %>
        • <% } else { %>
        • <%= option.text %>
        • <% } %> <% } %>
        ',listTpl:'<% for (var i = 0; i < options.length; i++) { %> <% var option = options[i] %> <% if (option.header) { %>
      4. <%= option.text %>
      5. <% } else { %>
      6. <%= option.text %>
      7. <% } %> <% } %>'},n.prototype.init=function(){var e=this,t=this.$element,i=this.options;t.hide();var n={id:r.utils.generateGUID("am-selected"),multiple:this.multiple,options:[],searchBox:i.searchBox,dropUp:i.dropUp,placeholder:i.placeholder};this.$selector=o(r.template(this.options.tpl,n)),this.$selector.css({width:this.options.btnWidth}),this.$list=this.$selector.find(".am-selected-list"),this.$searchField=this.$selector.find(".am-selected-search input"),this.$hint=this.$selector.find(".am-selected-hint");var a=this.$selector.find(".am-selected-btn"),n=[];i.btnSize&&n.push("am-btn-"+i.btnSize),i.btnStyle&&n.push("am-btn-"+i.btnStyle),a.addClass(n.join(" ")),this.$selector.dropdown({justify:a}),t[0].disabled&&this.disable(),i.maxHeight&&this.$selector.find(".am-selected-list").css({"max-height":i.maxHeight,"overflow-y":"scroll"});n=[],a=t.attr("minchecked"),i=t.attr("maxchecked")||i.maxChecked;this.maxChecked=i||1/0,t[0].required&&n.push("必选"),(a||i)&&(a&&n.push("至少选择 "+a+" 项"),i&&n.push("至多选择 "+i+" 项")),this.$hint.text(n.join(",")),this.renderOptions(),this.$element.after(this.$selector),this.dropdown=this.$selector.data("amui.dropdown"),this.$status=this.$selector.find(".am-selected-status"),setTimeout(function(){e.syncData(),e.initialized=!0},0),this.bindEvents()},n.prototype.renderOptions=function(){function n(e,t,i){if(""===t.value)return 1;var n="";t.disabled&&(n+=a.disabledClass),!t.disabled&&t.selected&&(n+=a.selectedClass),s.push({group:i,index:e,classNames:n,text:t.text,value:t.value})}var e=this.$element,a=this.options,s=[],t=e.find("optgroup");this.$originalOptions=this.$element.find("option"),this.multiple||null!==e.val()||this.$originalOptions.length&&(this.$originalOptions.get(0).selected=!0),t.length?t.each(function(i){s.push({header:!0,group:i+1,text:this.label}),t.eq(i).find("option").each(function(e,t){n(e,t,i)})}):this.$originalOptions.each(function(e,t){n(e,t,null)}),this.$list.html(r.template(a.listTpl,{options:s})),this.$shadowOptions=this.$list.find("> li").not(".am-selected-list-header")},n.prototype.setChecked=function(e){var t=this.options,i=o(e),n=i.hasClass(t.selectedClass);if(this.multiple){var a=this.$list.find("."+t.selectedClass).length;if(!n&&this.maxChecked<=a)return this.$element.trigger("checkedOverflow.selected.amui",{selected:this}),!1}else{if(this.dropdown.close(),n)return!1;this.$shadowOptions.not(i).removeClass(t.selectedClass)}i.toggleClass(t.selectedClass),this.syncData(e)},n.prototype.syncData=function(t){var e,i=this,n=this.options,a=[],s=o([]);this.$shadowOptions.filter("."+n.selectedClass).each(function(){var e=o(this);a.push(e.find(".am-selected-text").text()),t||(s=s.add(i.$originalOptions.filter('[value="'+e.data("value")+'"]').prop("selected",!0)))}),t?(e=o(t),this.$originalOptions.filter('[value="'+e.data("value")+'"]').prop("selected",e.hasClass(n.selectedClass))):this.$originalOptions.not(s).prop("selected",!1),this.$element.val()||(a=[n.placeholder]),this.$status.text(a.join(", ")),this.initialized&&this.$element.trigger("change")},n.prototype.bindEvents=function(){var i=this,n="am-selected-list-header",e=r.utils.debounce(function(e){i.$shadowOptions.not("."+n).hide().filter(':containsNC("'+e.target.value+'")').show()},100);this.$list.on("click","> li",function(e){var t=o(this);t.hasClass(i.options.disabledClass)||t.hasClass(n)||i.setChecked(this)}),this.$searchField.on("keyup.selected.amui",e),this.$selector.on("closed.dropdown.amui",function(){i.$searchField.val(""),i.$shadowOptions.css({display:""})}),this.$element.on("validated.field.validator.amui",function(e){e.validity&&(e=e.validity.valid,i.$selector[(e?"remove":"add")+"Class"]("am-invalid"))}),r.support.mutationobserver&&(this.observer=new r.support.mutationobserver(function(){i.$element.trigger("changed.selected.amui")}),this.observer.observe(this.$element[0],{childList:!0,subtree:!0,characterData:!0})),this.$element.on("changed.selected.amui",function(){i.renderOptions(),i.syncData()})},n.prototype.select=function(e){("number"==typeof e?this.$list.find("> li").not(".am-selected-list-header").eq(e):"string"==typeof e?this.$list.find(e):o(e)).trigger("click")},n.prototype.enable=function(){this.$element.prop("disable",!1),this.$selector.dropdown("enable")},n.prototype.disable=function(){this.$element.prop("disable",!0),this.$selector.dropdown("disable")},n.prototype.destroy=function(){this.$element.removeData("amui.selected").show(),this.$selector.remove()},r.plugin("selected",n),r.ready(function(e){o("[data-am-selected]",e).selected()}),e.exports=n},function(e,t,i){"use strict";i(15);var l=i(1),c=i(2),n=i(26),u=document,a=l(u),d=function(e){this.options=l.extend({},d.DEFAULTS,e||{}),this.$element=null,this.$wechatQr=null,this.pics=null,this.inited=!1,this.active=!1};d.DEFAULTS={sns:["weibo","qq","qzone","tqq","wechat","renren"],title:"分享到",cancel:"取消",closeOnShare:!0,id:c.utils.generateGUID("am-share"),desc:"Hi,孤夜观天象,发现一个不错的西西,分享一下下 ;-)",via:"Amaze UI",tpl:''},d.SNS={weibo:{title:"新浪微博",url:"http://service.weibo.com/share/share.php",width:620,height:450,icon:"weibo"},qq:{title:"QQ 好友",url:"http://connect.qq.com/widget/shareqq/index.html",icon:"qq"},qzone:{title:"QQ 空间",url:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey",icon:"star"},tqq:{title:"腾讯微博",url:"http://v.t.qq.com/share/share.php",icon:"tencent-weibo"},wechat:{title:"微信",url:"[qrcode]",icon:"wechat"},renren:{title:"人人网",url:"http://widget.renren.com/dialog/share",icon:"renren"},douban:{title:"豆瓣",url:"http://www.douban.com/recommend/",icon:"share-alt"},mail:{title:"邮件分享",url:"mailto:",icon:"envelope-o"},sms:{title:"短信分享",url:"sms:",icon:"comment"}},d.prototype.render=function(){var n=this.options,a=[],s=encodeURIComponent(u.title),o=encodeURIComponent(u.location),r="?body="+s+o;return n.sns.forEach(function(e,t){var i;d.SNS[e]&&(e="mail"===((i=d.SNS[e]).id=e)?r+"&subject="+n.desc:"sms"===e?r:"?url="+o+"&title="+s,i.shareUrl=i.url+e,a.push(i))}),c.template(n.tpl,l.extend({},n,{sns:a}))},d.prototype.init=function(){var e,i;this.inited||(i="[data-am-share-to]",a.ready(l.proxy(function(){l("body").append(this.render()),this.$element=l("#"+this.options.id),this.$element.find("[data-am-share-close]").on("click.share.amui",function(){e.close()})},e=this)),a.on("click.share.amui",i,l.proxy(function(e){var t=l(e.target),t=(t.is(i)&&t||t.parent(i)).attr("data-am-share-to");"mail"!==t&&"sms"!==t&&(e.preventDefault(),this.shareTo(t,this.setData(t))),this.close()},this)),this.inited=!0)},d.prototype.open=function(){this.inited||this.init(),this.$element&&this.$element.modal("open"),this.$element.trigger("open.share.amui"),this.active=!0},d.prototype.close=function(){this.$element&&this.$element.modal("close"),this.$element.trigger("close.share.amui"),this.active=!1},d.prototype.toggle=function(){this.active?this.close():this.open()},d.prototype.setData=function(e){if(e){var t={url:u.location,title:u.title},i=this.options.desc,n=this.pics||[];if(/^(qzone|qq|tqq)$/.test(e)&&!n.length){for(var a=u.images,s=0;s