!function(){function _classCallCheck(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function parseCookieString(t,n){var e={};if(isString(t)&&t.length>0)for(var r,o,i,a=n?decode:same,c=t.split(/;\s/g),u=0,l=c.length;l>u;u++){if(i=c[u].match(/([^=]+)=/i),i instanceof Array)try{r=decode(i[1]),o=a(c[u].substring(i[1].length+1))}catch(s){}else r=decode(c[u]),o="";r&&(e[r]=o)}return e}function isString(t){return"string"==typeof t}function isNonEmptyString(t){return isString(t)&&""!==t}function validateCookieName(t){if(!isNonEmptyString(t))throw new TypeError("Cookie name must be a non-empty string")}function same(t){return t}var _createClass=function(){function t(t,n){for(var e=0;e=0&&a>i;i+=t){var c=o?o[i]:i;r=e(r,n[c],c,n)}return r}return function(e,r,o,i){r=v(r,i,4);var a=!k(e)&&_.keys(e),c=(a||e).length,u=t>0?0:c-1;return arguments.length<3&&(o=e[a?a[u]:u],u+=t),n(e,r,o,a,u,c)}}function n(t){return function(n,e,r){e=b(e,r);for(var o=null!=n&&n.length,i=t>0?0:o-1;i>=0&&o>i;i+=t)if(e(n[i],i,n))return i;return-1}}function e(t,n){var e=D.length,r=t.constructor,o=_.isFunction(r)&&r.prototype||a,i="constructor";for(_.has(t,i)&&!_.contains(n,i)&&n.push(i);e--;)i=D[e],i in t&&t[i]!==o[i]&&!_.contains(n,i)&&n.push(i)}var r=this,o=r._,i=Array.prototype,a=Object.prototype,c=Function.prototype,u=i.push,l=i.slice,s=a.toString,m=a.hasOwnProperty,f=Array.isArray,d=Object.keys,p=c.bind,h=Object.create,g=function(){},_=function z(t){return t instanceof z?t:this instanceof z?void(this._wrapped=t):new z(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=_),exports._=_):r._=_,_.VERSION="1.8.2";var v=function(t,n,e){if(void 0===n)return t;switch(null==e?3:e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)};case 4:return function(e,r,o,i){return t.call(n,e,r,o,i)}}return function(){return t.apply(n,arguments)}},b=function(t,n,e){return null==t?_.identity:_.isFunction(t)?v(t,n,e):_.isObject(t)?_.matcher(t):_.property(t)};_.iteratee=function(t,n){return b(t,n,1/0)};var y=function(t,n){return function(e){var r=arguments.length;if(2>r||null==e)return e;for(var o=1;r>o;o++)for(var i=arguments[o],a=t(i),c=a.length,u=0;c>u;u++){var l=a[u];n&&void 0!==e[l]||(e[l]=i[l])}return e}},w=function(t){if(!_.isObject(t))return{};if(h)return h(t);g.prototype=t;var n=new g;return g.prototype=null,n},x=Math.pow(2,53)-1,k=function(t){var n=null!=t&&t.length;return"number"==typeof n&&n>=0&&x>=n};_.each=_.forEach=function(t,n,e){n=v(n,e);var r,o;if(k(t))for(r=0,o=t.length;o>r;r++)n(t[r],r,t);else{var i=_.keys(t);for(r=0,o=i.length;o>r;r++)n(t[i[r]],i[r],t)}return t},_.map=_.collect=function(t,n,e){n=b(n,e);for(var r=!k(t)&&_.keys(t),o=(r||t).length,i=Array(o),a=0;o>a;a++){var c=r?r[a]:a;i[a]=n(t[c],c,t)}return i},_.reduce=_.foldl=_.inject=t(1),_.reduceRight=_.foldr=t(-1),_.find=_.detect=function(t,n,e){var r;return r=k(t)?_.findIndex(t,n,e):_.findKey(t,n,e),void 0!==r&&-1!==r?t[r]:void 0},_.filter=_.select=function(t,n,e){var r=[];return n=b(n,e),_.each(t,function(t,e,o){n(t,e,o)&&r.push(t)}),r},_.reject=function(t,n,e){return _.filter(t,_.negate(b(n)),e)},_.every=_.all=function(t,n,e){n=b(n,e);for(var r=!k(t)&&_.keys(t),o=(r||t).length,i=0;o>i;i++){var a=r?r[i]:i;if(!n(t[a],a,t))return!1}return!0},_.some=_.any=function(t,n,e){n=b(n,e);for(var r=!k(t)&&_.keys(t),o=(r||t).length,i=0;o>i;i++){var a=r?r[i]:i;if(n(t[a],a,t))return!0}return!1},_.contains=_.includes=_.include=function(t,n,e){return k(t)||(t=_.values(t)),_.indexOf(t,n,"number"==typeof e&&e)>=0},_.invoke=function(t,n){var e=l.call(arguments,2),r=_.isFunction(n);return _.map(t,function(t){var o=r?n:t[n];return null==o?o:o.apply(t,e)})},_.pluck=function(t,n){return _.map(t,_.property(n))},_.where=function(t,n){return _.filter(t,_.matcher(n))},_.findWhere=function(t,n){return _.find(t,_.matcher(n))},_.max=function(t,n,e){var r,o,i=-1/0,a=-1/0;if(null==n&&null!=t){t=k(t)?t:_.values(t);for(var c=0,u=t.length;u>c;c++)r=t[c],r>i&&(i=r)}else n=b(n,e),_.each(t,function(t,e,r){o=n(t,e,r),(o>a||o===-1/0&&i===-1/0)&&(i=t,a=o)});return i},_.min=function(t,n,e){var r,o,i=1/0,a=1/0;if(null==n&&null!=t){t=k(t)?t:_.values(t);for(var c=0,u=t.length;u>c;c++)r=t[c],i>r&&(i=r)}else n=b(n,e),_.each(t,function(t,e,r){o=n(t,e,r),(a>o||1/0===o&&1/0===i)&&(i=t,a=o)});return i},_.shuffle=function(t){for(var n,e=k(t)?t:_.values(t),r=e.length,o=Array(r),i=0;r>i;i++)n=_.random(0,i),n!==i&&(o[i]=o[n]),o[n]=e[i];return o},_.sample=function(t,n,e){return null==n||e?(k(t)||(t=_.values(t)),t[_.random(t.length-1)]):_.shuffle(t).slice(0,Math.max(0,n))},_.sortBy=function(t,n,e){return n=b(n,e),_.pluck(_.map(t,function(t,e,r){return{value:t,index:e,criteria:n(t,e,r)}}).sort(function(t,n){var e=t.criteria,r=n.criteria;if(e!==r){if(e>r||void 0===e)return 1;if(r>e||void 0===r)return-1}return t.index-n.index}),"value")};var A=function(t){return function(n,e,r){var o={};return e=b(e,r),_.each(n,function(r,i){var a=e(r,i,n);t(o,r,a)}),o}};_.groupBy=A(function(t,n,e){_.has(t,e)?t[e].push(n):t[e]=[n]}),_.indexBy=A(function(t,n,e){t[e]=n}),_.countBy=A(function(t,n,e){_.has(t,e)?t[e]++:t[e]=1}),_.toArray=function(t){return t?_.isArray(t)?l.call(t):k(t)?_.map(t,_.identity):_.values(t):[]},_.size=function(t){return null==t?0:k(t)?t.length:_.keys(t).length},_.partition=function(t,n,e){n=b(n,e);var r=[],o=[];return _.each(t,function(t,e,i){(n(t,e,i)?r:o).push(t)}),[r,o]},_.first=_.head=_.take=function(t,n,e){return null==t?void 0:null==n||e?t[0]:_.initial(t,t.length-n)},_.initial=function(t,n,e){return l.call(t,0,Math.max(0,t.length-(null==n||e?1:n)))},_.last=function(t,n,e){return null==t?void 0:null==n||e?t[t.length-1]:_.rest(t,Math.max(0,t.length-n))},_.rest=_.tail=_.drop=function(t,n,e){return l.call(t,null==n||e?1:n)},_.compact=function(t){return _.filter(t,_.identity)};var C=function N(t,n,e,r){for(var o=[],i=0,a=r||0,c=t&&t.length;c>a;a++){var u=t[a];if(k(u)&&(_.isArray(u)||_.isArguments(u))){n||(u=N(u,n,e));var l=0,s=u.length;for(o.length+=s;s>l;)o[i++]=u[l++]}else e||(o[i++]=u)}return o};_.flatten=function(t,n){return C(t,n,!1)},_.without=function(t){return _.difference(t,l.call(arguments,1))},_.uniq=_.unique=function(t,n,e,r){if(null==t)return[];_.isBoolean(n)||(r=e,e=n,n=!1),null!=e&&(e=b(e,r));for(var o=[],i=[],a=0,c=t.length;c>a;a++){var u=t[a],l=e?e(u,a,t):u;n?(a&&i===l||o.push(u),i=l):e?_.contains(i,l)||(i.push(l),o.push(u)):_.contains(o,u)||o.push(u)}return o},_.union=function(){return _.uniq(C(arguments,!0,!0))},_.intersection=function(t){if(null==t)return[];for(var n=[],e=arguments.length,r=0,o=t.length;o>r;r++){var i=t[r];if(!_.contains(n,i)){for(var a=1;e>a&&_.contains(arguments[a],i);a++);a===e&&n.push(i)}}return n},_.difference=function(t){var n=C(arguments,!0,!0,1);return _.filter(t,function(t){return!_.contains(n,t)})},_.zip=function(){return _.unzip(arguments)},_.unzip=function(t){for(var n=t&&_.max(t,"length").length||0,e=Array(n),r=0;n>r;r++)e[r]=_.pluck(t,r);return e},_.object=function(t,n){for(var e={},r=0,o=t&&t.length;o>r;r++)n?e[t[r]]=n[r]:e[t[r][0]]=t[r][1];return e},_.indexOf=function(t,n,e){var r=0,o=t&&t.length;if("number"==typeof e)r=0>e?Math.max(0,o+e):e;else if(e&&o)return r=_.sortedIndex(t,n),t[r]===n?r:-1;if(n!==n)return _.findIndex(l.call(t,r),_.isNaN);for(;o>r;r++)if(t[r]===n)return r;return-1},_.lastIndexOf=function(t,n,e){var r=t?t.length:0;if("number"==typeof e&&(r=0>e?r+e+1:Math.min(r,e+1)),n!==n)return _.findLastIndex(l.call(t,0,r),_.isNaN);for(;--r>=0;)if(t[r]===n)return r;return-1},_.findIndex=n(1),_.findLastIndex=n(-1),_.sortedIndex=function(t,n,e,r){e=b(e,r,1);for(var o=e(n),i=0,a=t.length;a>i;){var c=Math.floor((i+a)/2);e(t[c])i;i++,t+=e)o[i]=t;return o};var j=function(t,n,e,r,o){if(!(r instanceof n))return t.apply(e,o);var i=w(t.prototype),a=t.apply(i,o);return _.isObject(a)?a:i};_.bind=function(t,n){if(p&&t.bind===p)return p.apply(t,l.call(arguments,1));if(!_.isFunction(t))throw new TypeError("Bind must be called on a function");var e=l.call(arguments,2),r=function o(){return j(t,o,n,this,e.concat(l.call(arguments)))};return r},_.partial=function(t){var n=l.call(arguments,1),e=function r(){for(var e=0,o=n.length,i=Array(o),a=0;o>a;a++)i[a]=n[a]===_?arguments[e++]:n[a];for(;e=r)throw new Error("bindAll must be passed function names");for(n=1;r>n;n++)e=arguments[n],t[e]=_.bind(t[e],t);return t},_.memoize=function(t,n){var e=function r(e){var o=r.cache,i=""+(n?n.apply(this,arguments):e);return _.has(o,i)||(o[i]=t.apply(this,arguments)),o[i]};return e.cache={},e},_.delay=function(t,n){var e=l.call(arguments,2);return setTimeout(function(){return t.apply(null,e)},n)},_.defer=_.partial(_.delay,_,1),_.throttle=function(t,n,e){var r,o,i,a=null,c=0;e||(e={});var u=function(){c=e.leading===!1?0:_.now(),a=null,i=t.apply(r,o),a||(r=o=null)};return function(){var l=_.now();c||e.leading!==!1||(c=l);var s=n-(l-c);return r=this,o=arguments,0>=s||s>n?(a&&(clearTimeout(a),a=null),c=l,i=t.apply(r,o),a||(r=o=null)):a||e.trailing===!1||(a=setTimeout(u,s)),i}},_.debounce=function(t,n,e){var r,o,i,a,c,u=function l(){var u=_.now()-a;n>u&&u>=0?r=setTimeout(l,n-u):(r=null,e||(c=t.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,a=_.now();var l=e&&!r;return r||(r=setTimeout(u,n)),l&&(c=t.apply(i,o),i=o=null),c}},_.wrap=function(t,n){return _.partial(n,t)},_.negate=function(t){return function(){return!t.apply(this,arguments)}},_.compose=function(){var t=arguments,n=t.length-1;return function(){for(var e=n,r=t[n].apply(this,arguments);e--;)r=t[e].call(this,r);return r}},_.after=function(t,n){return function(){return--t<1?n.apply(this,arguments):void 0}},_.before=function(t,n){var e;return function(){return--t>0&&(e=n.apply(this,arguments)),1>=t&&(n=null),e}},_.once=_.partial(_.before,2);var $=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];_.keys=function(t){if(!_.isObject(t))return[];if(d)return d(t);var n=[];for(var r in t)_.has(t,r)&&n.push(r);return $&&e(t,n),n},_.allKeys=function(t){if(!_.isObject(t))return[];var n=[];for(var r in t)n.push(r);return $&&e(t,n),n},_.values=function(t){for(var n=_.keys(t),e=n.length,r=Array(e),o=0;e>o;o++)r[o]=t[n[o]];return r},_.mapObject=function(t,n,e){n=b(n,e);for(var r,o=_.keys(t),i=o.length,a={},c=0;i>c;c++)r=o[c],a[r]=n(t[r],r,t);return a},_.pairs=function(t){for(var n=_.keys(t),e=n.length,r=Array(e),o=0;e>o;o++)r[o]=[n[o],t[n[o]]];return r},_.invert=function(t){for(var n={},e=_.keys(t),r=0,o=e.length;o>r;r++)n[t[e[r]]]=e[r];return n},_.functions=_.methods=function(t){var n=[];for(var e in t)_.isFunction(t[e])&&n.push(e);return n.sort()},_.extend=y(_.allKeys),_.extendOwn=_.assign=y(_.keys),_.findKey=function(t,n,e){n=b(n,e);for(var r,o=_.keys(t),i=0,a=o.length;a>i;i++)if(r=o[i],n(t[r],r,t))return r},_.pick=function(t,n,e){var r,o,i={},a=t;if(null==a)return i;_.isFunction(n)?(o=_.allKeys(a),r=v(n,e)):(o=C(arguments,!1,!1,1),r=function(t,n,e){return n in e},a=Object(a));for(var c=0,u=o.length;u>c;c++){var l=o[c],s=a[l];r(s,l,a)&&(i[l]=s)}return i},_.omit=function(t,n,e){if(_.isFunction(n))n=_.negate(n);else{var r=_.map(C(arguments,!1,!1,1),String);n=function(t,n){return!_.contains(r,n)}}return _.pick(t,n,e)},_.defaults=y(_.allKeys,!0),_.create=function(t,n){var e=w(t);return n&&_.extendOwn(e,n),e},_.clone=function(t){return _.isObject(t)?_.isArray(t)?t.slice():_.extend({},t):t},_.tap=function(t,n){return n(t),t},_.isMatch=function(t,n){var e=_.keys(n),r=e.length;if(null==t)return!r;for(var o=Object(t),i=0;r>i;i++){var a=e[i];if(n[a]!==o[a]||!(a in o))return!1}return!0};var S=function F(t,n,e,r){if(t===n)return 0!==t||1/t===1/n;if(null==t||null==n)return t===n;t instanceof _&&(t=t._wrapped),n instanceof _&&(n=n._wrapped);var o=s.call(t);if(o!==s.call(n))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!==+t?+n!==+n:0===+t?1/+t===1/n:+t===+n;case"[object Date]":case"[object Boolean]":return+t===+n}var i="[object Array]"===o;if(!i){if("object"!=typeof t||"object"!=typeof n)return!1;var a=t.constructor,c=n.constructor;if(a!==c&&!(_.isFunction(a)&&a instanceof a&&_.isFunction(c)&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1}e=e||[],r=r||[];for(var u=e.length;u--;)if(e[u]===t)return r[u]===n;if(e.push(t),r.push(n),i){if(u=t.length,u!==n.length)return!1;for(;u--;)if(!F(t[u],n[u],e,r))return!1}else{var l,m=_.keys(t);if(u=m.length,_.keys(n).length!==u)return!1;for(;u--;)if(l=m[u],!_.has(n,l)||!F(t[l],n[l],e,r))return!1}return e.pop(),r.pop(),!0};_.isEqual=function(t,n){return S(t,n)},_.isEmpty=function(t){return null==t?!0:k(t)&&(_.isArray(t)||_.isString(t)||_.isArguments(t))?0===t.length:0===_.keys(t).length},_.isElement=function(t){return!(!t||1!==t.nodeType)},_.isArray=f||function(t){return"[object Array]"===s.call(t)},_.isObject=function(t){var n=typeof t;return"function"===n||"object"===n&&!!t},_.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){_["is"+t]=function(n){return s.call(n)==="[object "+t+"]"}}),_.isArguments(arguments)||(_.isArguments=function(t){return _.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(_.isFunction=function(t){return"function"==typeof t||!1}),_.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},_.isNaN=function(t){return _.isNumber(t)&&t!==+t},_.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===s.call(t)},_.isNull=function(t){return null===t},_.isUndefined=function(t){return void 0===t},_.has=function(t,n){return null!=t&&m.call(t,n)},_.noConflict=function(){return r._=o,this},_.identity=function(t){return t},_.constant=function(t){return function(){return t}},_.noop=function(){},_.property=function(t){return function(n){return null==n?void 0:n[t]}},_.propertyOf=function(t){return null==t?function(){}:function(n){return t[n]}},_.matcher=_.matches=function(t){return t=_.extendOwn({},t),function(n){return _.isMatch(n,t)}},_.times=function(t,n,e){var r=Array(Math.max(0,t));n=v(n,e,1);for(var o=0;t>o;o++)r[o]=n(o);return r},_.random=function(t,n){return null==n&&(n=t,t=0),t+Math.floor(Math.random()*(n-t+1))},_.now=Date.now||function(){return(new Date).getTime()};var U={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},I=_.invert(U),B=function(t){var n=function(n){return t[n]},e="(?:"+_.keys(t).join("|")+")",r=RegExp(e),o=RegExp(e,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(o,n):t}};_.escape=B(U),_.unescape=B(I),_.result=function(t,n,e){var r=null==t?void 0:t[n];return void 0===r&&(r=e),_.isFunction(r)?r.call(t):r};var T=0;_.uniqueId=function(t){var n=++T+"";return t?t+n:n},_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var E=/(.)^/,R={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,L=function(t){return"\\"+R[t]};_.template=function(t,n,e){!n&&e&&(n=e),n=_.defaults({},n,_.templateSettings);var r=RegExp([(n.escape||E).source,(n.interpolate||E).source,(n.evaluate||E).source].join("|")+"|$","g"),o=0,i="__p+='";t.replace(r,function(n,e,r,a,c){return i+=t.slice(o,c).replace(q,L),o=c+n.length,e?i+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),n}),i+="';\n",n.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(n.variable||"obj","_",i)}catch(c){throw c.source=i,c}var u=function(t){return a.call(this,t,_)},l=n.variable||"obj";return u.source="function("+l+"){\n"+i+"}",u},_.chain=function(t){var n=_(t);return n._chain=!0,n};var O=function(t,n){return t._chain?_(n).chain():n};_.mixin=function(t){_.each(_.functions(t),function(n){var e=_[n]=t[n];_.prototype[n]=function(){var t=[this._wrapped];return u.apply(t,arguments),O(this,e.apply(_,t))}})},_.mixin(_),_.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];_.prototype[t]=function(){var e=this._wrapped;return n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],O(this,e)}}),_.each(["concat","join","slice"],function(t){var n=i[t];_.prototype[t]=function(){return O(this,n.apply(this._wrapped,arguments))}}),_.prototype.value=function(){return this._wrapped},_.prototype.valueOf=_.prototype.toJSON=_.prototype.value,_.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return _})}).call(this);var Cookie={},decode=decodeURIComponent,encode=encodeURIComponent;Cookie.get=function(t,n){validateCookieName(t),n="function"==typeof n?{converter:n}:n||{};var e=parseCookieString(document.cookie,!n.raw);return(n.converter||same)(e[t])},Cookie.set=function(t,n,e){validateCookieName(t),e=e||{};var r=e.expires,o=e.domain,i=e.path;e.raw||(n=encode(String(n)));var a=t+"="+n,c=r;return"number"==typeof c&&(c=new Date,c.setDate(c.getDate()+r)),c instanceof Date&&(a+="; expires="+c.toUTCString()),isNonEmptyString(o)&&(a+="; domain="+o),isNonEmptyString(i)&&(a+="; path="+i),e.secure&&(a+="; secure"),document.cookie=a,a},Cookie.remove=function(t,n){return n=n||{},n.expires=new Date(0),this.set(t,"",n)};var agreePrefix="cmtagr",disagreePrefix="cmtdagr",RequestComment=function(){function t(n){_classCallCheck(this,t),this.domain=n.domain,this.url=n.url}return _createClass(t,[{key:"getData",value:function(t,n){{var e=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r="//comment3.duowan.com/index.php";window.location}n||(n={}),n.domain=e.domain||this.domain,n.url=e.url||this.url;var o=$.Deferred();return $.ajax({url:r+"?r="+t,data:n,dataType:"jsonp"}).done(function(){o.resolveWith(this,arguments)}).fail(function(){o.rejectWith(this,arguments)}),setTimeout(function(){o.notify("timeout")},1e4),o}},{key:"totaljson",value:function(t){return this.getData("comment/totaljson",t?{uniqid:t}:null)}},{key:"getLoginInfo",value:function(){return this.getData("default/login",null)}},{key:"setNickname",value:function(t){return this.getData("default/nickname",{nickname:t},{domain:!0})}},{key:"addComment",value:function(t,n,e,r){var o={uniqid:t};return o[n]=e,r&&(o.parent_id=r),o.title=document.title,this.getData("comment/add",o)}},{key:"preaudit",value:function(t){return this.getData("comment/peraudit",{uniqid:t},{domain:!0,url:!0})}},{key:"comments",value:function(t,n,e){var r={order:n||"time",noimg:!0};return t&&(r.uniqid=t),e&&(r.num=e),this.getData("comment/comment",r).then(function(t){return t=t||[],t.length&&_.each(t,function(t){Cookie.get(agreePrefix+t.comment_id)&&(t.agreed=!0),Cookie.get(disagreePrefix+t.comment_id)&&(t.disagreed=!0)}),t})}},{key:"moreReplies",value:function(t,n,e,r){return this.getData("comment/reply",{parent_id:n,uniqid:t,create:e,flag_id:r})}},{key:"agree",value:function(t,n){return this.getData("comment/support",{uniqid:t,cid:n}).then(function(t){return t.vote>0?Cookie.set(agreePrefix+n,1,{expires:Util.getDateTomorrow()}):t.vote<0&&Cookie.remove(agreePrefix+n),t})}},{key:"disagree",value:function(t,n){return this.getData("comment/oppose",{uniqid:t,cid:n},{domain:!0,url:!0}).then(function(t){return t.vote>0?Cookie.set(disagreePrefix+n,1,{expires:Util.getDateTomorrow()}):t.vote<0&&Cookie.remove(disagreePrefix+n),t})}},{key:"tuCao",value:function(t){return this.getData("comment/tucao",{uniqid:t})}},{key:"addTuCao",value:function(t,n,e){var r={uniqid:t};return r[n]=e,r.title=document.title,this.getData("comment/addtucao",r)}},{key:"tuCaoVote",value:function(t,n){return this.getData("comment/tucaovote",{uniqid:t,tucao_id:n},{domain:!0,url:!0})}},{key:"del",value:function(t,n){return this.getData("default/delComment",{id:t,uniqid:n},{domain:!0,url:!0})}}]),t}(),Util=function(){function _isEmptyStr(t){return String.prototype.trim?""===t.trim():""===t.replace(/^\s+/,"").replace(/\s+$/,"")}function _udb_decorateURL(t){if(_isEmptyStr(t)){t=top.location.href;var n=t.indexOf("#");return-1!=n&&(t=t.substring(0,n)),t}if(t.startsWith("http"))return t;var e="http://";return top.location.href.startsWith("https")&&(e="https://"),e+document.domain+t}function ensureUDBSDK(t){window.dwUDBProxy?t(window.dwUDBProxy):$.getScript(location.protocol+"//assets.dwstatic.com/common/js/dwudbproxy.js",function(){setTimeout(function(){t(window.dwUDBProxy)},500)})}function getParam(t){var n=function(t,n){var e=new RegExp("(^|!|&|\\?)"+t+"=([^&]*)(&|$)");if(r=n.match(e),null!=r)try{return decodeURIComponent(r[2])}catch(o){return console.log(o+"r[2]:"+r[2]),null}return null},e=document.location.hash.substr(2),o=n(t,e);return null==o&&(e=document.location.search.substr(1),o=n(t,e)),o}function secondToTime(t){var n=function(t){return 10>t?"0"+t:""+t},e=parseInt(t/60),r=parseInt(t-60*e);return n(e)+":"+n(r)}function browserVersion(){var BROWSER={},types={ie:"msie",firefox:"",chrome:"",opera:"",safari:"",mozilla:"",webkit:"",maxthon:"",qq:"qqbrowser"},USERAGENT=navigator.userAgent.toLowerCase(),other=1;for(i in types){var v=types[i]?types[i]:i;if(-1!=USERAGENT.indexOf(v)){var re=new RegExp(v+"(\\/|\\s)([\\d\\.]+)","ig"),matches=re.exec(USERAGENT),ver=null!=matches?matches[2]:0;other=0!==ver&&"mozilla"!=v?0:other}else var ver=0;eval("BROWSER."+i+"= ver")}BROWSER.other=other}var loggedIn=!1,isLoggedIn=function(){return loggedIn||(loggedIn=Cookie.get("username")&&Cookie.get("password")&&Cookie.get("osinfo")),loggedIn},login=function(t){ensureUDBSDK(function(n){try{n.login(t||"")}catch(e){}})},logout=function(t){ensureUDBSDK(function(n){try{n.logout(t||"")}catch(e){}})},_isAdmin=null,REG_ADMIN=/^dw_[a-z]+/,_isAdmin=function(){return null==_isAdmin&&isLoggedIn()&&(_isAdmin=REG_ADMIN.test(Cookie.get("username")||"")),_isAdmin||!1},parseDate=function(t){return new Date(1e3*parseInt(t,10))},getFriendlyDateStr=function(t){var n=(new Date).getTime()-t.getTime(),e=6e4,r=60*e,o=24*r,i=30*o,a=12*i,c="";return e>n?c="刚刚":r>n?c=Math.floor(n/e)+"分钟前":o>n?c=Math.floor(n/r)+"小时前":i>n?c=Math.floor(n/o)+"天前":a>n?c=Math.floor(n/i)+"个月前":n>=a&&(c=Math.floor(n/a)+"年前"),c},getDateTomorrow=function(){var t=new Date;return t.setHours(0,0,0,0),new Date(t.getTime()+864e5)},getUserLink=function(t){return t&&"0"!=t?"//bbs.duowan.com/space-uid-"+t+".html":"#"},jqWindow=$(window),scrollIntoView=function(t){var n=$(t);if(n.is(":visible")){var e,r=36,o=n.offset().top,i=jqWindow.scrollTop();i+r>o&&(e=o-r),null!=e&&jqWindow.scrollTop(e)}},isInView=function(t){var n=36,e=t.offsetParent(),r=e.scrollTop()||0;return t.offset().top>16)+(n>>16)+(e>>16);return r<<16|65535&e}function e(t,n){return t<>>32-n}function r(t,r,o,i,a,c){return n(e(n(n(r,t),n(i,c)),a),o)}function o(t,n,e,o,i,a,c){return r(n&e|~n&o,t,n,i,a,c)}function i(t,n,e,o,i,a,c){return r(n&o|e&~o,t,n,i,a,c)}function a(t,n,e,o,i,a,c){return r(n^e^o,t,n,i,a,c)}function c(t,n,e,o,i,a,c){return r(e^(n|~o),t,n,i,a,c)}function u(t,e){t[e>>5]|=128<>>9<<4)+14]=e;var r,u,l,s,m,f=1732584193,d=-271733879,p=-1732584194,h=271733878;for(r=0;rn;n+=8)e+=String.fromCharCode(t[n>>5]>>>n%32&255);return e}function s(t){var n,e=[];for(e[(t.length>>2)-1]=void 0,n=0;nn;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<16&&(o=u(o,8*t.length)),e=0;16>e;e+=1)i[e]=909522486^o[e],a[e]=1549556828^o[e];return r=u(i.concat(s(n)),512+8*n.length),l(u(a.concat(r),640))}function d(t){var n,e,r="0123456789abcdef",o="";for(e=0;e>>4&15)+r.charAt(15&n);return o}function p(t){return unescape(encodeURIComponent(t))}function h(t){return m(p(t))}function g(t){return d(h(t))}function _(t,n){return f(p(t),p(n))}function v(t,n){return d(_(t,n))}function b(t,n,e){return n?e?_(n,t):v(n,t):e?h(t):g(t)}t.md5=b}(this);var articleCommentTpl=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='\r\n
\r\n \r\n \r\n
\r\n\r\n
';return __p},articleCommentNumTpl=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='

\r\n 评论\r\n \r\n ',hasCmtBtn||(__p+='\r\n 评论一下\r\n '),__p+="\r\n

";return __p},commentListTmp=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{}){if(__p+='\r\n","undefined"==typeof minLength)var minLength=10;cmtList.length==minLength?__p+='\r\n \r\n '+(null==(__t="undefined"==typeof isCommentPge?"发表或查看更多评论":"展开更多评论")?"":__t)+" \r\n\r\n":0==cmtList.length&&(__p+='\r\n

暂无评论,抢个沙发吧~

\r\n'),__p+="" }return __p},commentHeaderTmp=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+='

\r\n 评论\r\n \r\n \r\n

';return __p},oneLevelCmtTmp=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+='
  • \r\n
    \r\n \r\n
    \r\n '+(null==(__t=cmt.content)?"":__t)+'\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
      \r\n
    \r\n
  • ';return __p},twoLevelCmtTmp=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+='
  • \r\n
    \r\n \r\n
    \r\n '+(null==(__t=cmt.content)?"":__t)+'\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
  • ';return __p},loadMoreRepliesTmp=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+="",_.each(moreReplies,function(t,n){2>=n||(__p+='\r\n
  • \r\n
    \r\n \r\n
    \r\n '+(null==(__t=t.contents)?"":__t)+'\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
  • \r\n ')}),__p+="";return __p},_css_="@charset \"UTF-8\";.common-comment{margin-top:.42667rem}.common-comment .comment-type-nav{padding:0 .53333rem .64rem}.common-comment .comment-type-nav .comment-type{line-height:.93867rem;padding:0 .32rem;background-color:transparent}.common-comment .comment-type-nav .comment-type.active{color:#fff;background-color:#e94647}.common-comment .comment-list-wrap{display:none}.common-comment .comment-list-wrap.active{display:block}.common-comment .no-comment{text-align:center;line-height:1.70667rem}.common-comment .comment-num{display:block;margin-left:.64rem;color:#e94647;font-size:12px}.common-comment .comment-list__item{padding-bottom:.42667rem;border-bottom:1px solid #e9e9e9}.common-comment .comment-list__item:last-child{border-bottom:0}.common-comment .comment-list__item .comment-wrap{overflow:hidden}.common-comment .self-comment{padding:0 .53333rem}.common-comment .other-comment{padding:0 .53333rem;margin:.53333rem .53333rem 0 1.74933rem;background-color:#f7f7f7}.common-comment .show-more-comments{display:block;margin:0 .53333rem 0 1.74933rem;line-height:1.06667rem;border-top:1px solid #e9e9e9;background-color:#f7f7f7;text-align:center}.common-comment .user-info__wrap{display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-pack:justify;-webkit-box-align:center;padding:.42667rem 0;color:#666}.common-comment .user-info__wrap .user-info{display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:center}.common-comment .user-info__wrap .user-icon{display:block;width:1.152rem;height:1.152rem;border-radius:50%}.common-comment .user-info__wrap .user-name{margin-left:.55467rem}.common-comment .user-info__wrap .comment-time{display:block}.common-comment .comment-content{padding-left:1.70667rem;line-height:1.4}.common-comment .op-btn{display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-pack:end;-webkit-box-align:center}.common-comment .op-btn button{display:block;height:.93867rem;box-sizing:content-box;padding:0 .21333rem;border:1px solid #e9e9e9;border-radius:2px;background-color:transparent;outline:0;line-height:.93867rem;margin-left:.64rem;font-size:12px;color:#999}.common-comment .op-btn button:before{content:'';display:inline-block;vertical-align:top;height:100%}.common-comment .op-btn button.have-agree{background:#e94647;color:#fff}.common-comment .op-btn.one-level{margin:.42667rem 0 .53333rem}.common-comment .op-btn.one-level .btn-reply:before{width:.64rem;margin-right:.21333rem;background:url(//pub.dwstatic.com/p/2017dwh5/1.1.0/img/reply_icon_9abf804.png) no-repeat center;background-size:100% auto}.common-comment .op-btn.two-level{margin:.42667rem 0 .21333rem}.common-comment .op-btn.two-level .btn-reply{border:0;color:#e94647}.common-comment .op-btn .btn-agree:before{width:.53333rem;margin-right:.32rem;background:url(//pub.dwstatic.com/p/2017dwh5/1.1.0/img/agree_icon_77543b6.png) no-repeat center;background-size:100% auto}.sec-common-header{position:relative;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:center;height:1.92rem;padding:0 .512rem;border-bottom:1px solid #e9e9e9;color:#333;font-size:15px;line-height:1.92rem}.sec-common-header:before{content:'';display:block;width:2px;height:.59733rem;margin-right:.21333rem;background:#e94647}.sec-common-header a{position:absolute;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:center;-webkit-box-pack:end;left:.512rem;top:0;right:.512rem;color:#999}.sec-common-header a.remove-arrow::after{display:none}.sec-common-header a:after{content:'';display:block;margin-left:.21333rem;width:8px;height:8px;border:1px solid #999;border-width:1px 1px 0 0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sec-common-header .towrite-comment{position:absolute;right:.512rem;top:0;padding-left:.85333rem;color:#737373;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAfBAMAAAB0eNK/AAAABGdBTUEAALGPC/xhBQAAABtQTFRFmZmZmZmZmZmZmZmZmZmZmZmZmZmZAAAAmZmZfxByfQAAAAh0Uk5TIQwNIOBycwC93LH0AAAAhElEQVQoz4XRwQmAMAyF4Y7hBo7gVXCILiDo2UPjACoZ26Ta5qUezKGQjx96SKA6W36DwTx4SDx5WPkYEBIzjwirwNEbaMAXFBrwYlCDAjV4wYIXLHgAggcgyIBBBgwUXKDgAgEfCPiAQhNQ6BQiwC77SQ3EBjDIEB2UiwHQD+gvOB+4AUoC651Y9KO4AAAAAElFTkSuQmCC) left center no-repeat;background-size:.68267rem}.common-look-more{display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:center;-webkit-box-pack:center;height:1.87733rem;border-top:1px solid #e9e9e9;line-height:1.87733rem;color:#999}.common-look-more.is-loading:after{border-width:1px;-webkit-animation:turn-around .8s linear infinite;animation:turn-around .8s linear infinite}.common-look-more:after{content:'';display:block;margin-left:.32rem;width:8px;height:8px;border:1px solid #999;border-width:1px 1px 0 0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.fixed-comment-area{position:fixed;left:0;top:0;width:100%;padding:.42667rem .42667rem 1.57867rem;border:1px solid #e9e9e9;background-color:#fff;font-size:14px;line-height:18px;z-index:1000;-webkit-transform:translateY(-100%);transform:translateY(-100%);transition:-webkit-transform .3s ease;transition:transform .3s ease}.fixed-comment-area.show{-webkit-transform:translateY(0);transform:translateY(0)}.fixed-comment-area.bottom{bottom:0}.fixed-comment-area .comment-textarea{-webkit-appearance:none;-webkit-tap-highlight-color:transparent;display:block;width:100%;height:2.304rem;padding:0;box-sizing:content-box;resize:none;border:1px solid #e9e9e9;outline:0;font-size:14px;line-height:24px;color:#333;border-radius:3px;background-color:#f4f4f4}.fixed-comment-area .emit-comment{position:absolute;right:0;bottom:.32rem;height:.93867rem;padding:0 .64rem;margin-right:.42667rem;background-color:#e94647;color:#fff}.fixed-shade{position:fixed;left:0;right:0;top:0;height:5000px;background-color:rgba(0,0,0,.35);z-index:999;display:none}.fixed-shade.active{display:block}",prevent=function(t){t.preventDefault()},plainFunction=function(){},DwArticleComment=function(){function t(){if(!$("#writeCommentArea").length){var n=this;_classCallCheck(this,t),this.urlParam={domain:location.hostname.replace("cn","com"),url:location.pathname},this.ReqComment=new RequestComment(this.urlParam),this.userInfo={},this.totalJson,this.$comment=$(".common-comment"),this.$currentCmtBtn,this.ts=$("#uniq_article_title").eq(0).text()||document.title;this.renderComment(function(){n.$fixedCommentArea=$(".fixed-comment-area"),n.$writeComment=n.$fixedCommentArea.children(".comment-textarea"),n.$emitComment=n.$fixedCommentArea.children(".emit-comment"),n.$fixedShade=$(".fixed-shade"),n.init()})}}return _createClass(t,[{key:"init",value:function(){var t=this,n=this.ReqComment,e=this;this.setReplyBtn().setAgreeBtn().setInputFit().loadMoreReplies().getUserinfo();var r=window.comment3Uniqid||void 0;$.when(n.totaljson(r)).done(function(t){return t.show&&1==t.show.exist?(e.totalJson=t.show,void(window.comment3Uniqid=t.show.uniqid)):!1}).done(function(){n.comments(comment3Uniqid,"hot").done(function(t){t instanceof Array&&(t=t.slice(0,3),e.render(e.totalJson,t))})}),this.$fixedShade.on("click",function(){t.$fixedShade.removeClass("active"),t.$fixedShade[0].$curEle.removeClass("show"),t.$writeComment.val(""),$("body").off("touchmove",prevent)}),this.$fixedShade.on("touchmove",prevent)}},{key:"renderComment",value:function(t){var n=$("