!
function(e, t, s) {
function a() {
return c.short_name ? g + "//" + c.short_name + "." + S.DOMAIN: S.REMOTE
}
function i() {
function t() {
for (var t; t = y.shift();) {
var a = t.url,
i = new s(t.title, {
dir: "auto",
icon: t.iconUrl,
body: t.body
});
try {
i.onclick = function() {
e.focus(),
h.href = a,
i.close()
}
} catch(r) {}
setTimeout(function() {
i.close && i.close()
},
8e3)
}
}
var s = e.Notification;
"Notification" in e && "denied" !== s.permission && ("granted" === s.permission && t(), s.requestPermission(function(e) {
"granted" === e && t()
}))
}
function r() {
return 0 == nt.data.user_id
}
function n(e) {
S.theme = e,
"none" != e && o.injectStylesheet(S.STATIC_URL + "/styles/embed" + (e ? "." + e + ".css?" + U[e] : "." + short_name) + ".css")
}
var o = {},
d = t.getElementsByTagName("head")[0] || t.getElementsByTagName("body")[0];
if (o.extend = function(e, t) {
for (var s in t) e[s] = t[s];
return e
},
o.injectScript = function(a, i) {
var r = t.createElement("script"),
n = t.head || t.getElementsByTagName("head")[0] || t.documentElement;
r.type = "text/javascript",
r.src = a,
r.async = "async",
r.charset = "utf-8",
i && (r.onload = r.onreadystatechange = function(t, a) {
var o = a || !r.readyState || /loaded|complete/.test(r.readyState);
o && (r.onload = r.onreadystatechange = null, n && r.parentNode && n.removeChild(r), r = s, a || i.call(e))
}),
n.insertBefore(r, n.firstChild)
},
o.injectStylesheet = function(e) {
var s = t.createElement("link");
s.type = "text/css",
s.rel = "stylesheet",
s.href = e,
d.appendChild(s)
},
o.injectStyle = function(e) {
var s = t.createElement("style");
return s.type = "text/css",
d.appendChild(s),
e = e.replace(/\}/g, "}\n"),
s.styleSheet ? s.styleSheet.cssText = e: s.appendChild(t.createTextNode(e)),
s
},
o.getCookie = function(e) {
for (var a, i, r, n = " " + e + "=",
o = t.cookie.split(";"), d = 0; d < o.length; d++) if (a = " " + o[d], i = a.indexOf(n), i >= 0 && i + n.length == (r = a.indexOf("=") + 1)) return decodeURIComponent(a.substring(r, a.length).replace(/\+/g, ""));
return s
},
o.param = function(e) {
var t = [];
for (var a in e) e[a] != s && t.push(a + "=" + encodeURIComponent(e[a]));
return t.join("&")
},
o.cssProperty = function(e, s) {
var a = (t.body || t.documentElement).style;
if ("undefined" == typeof a) return ! 1;
if ("string" == typeof a[e]) return s ? e: !0;
for (var i = ["Moz", "Webkit", "ms"], e = e.charAt(0).toUpperCase() + e.substr(1), r = 0; r < i.length; r++) if ("string" == typeof a[i[r] + e]) return s ? i[r] + e: !0
},
!e.DUOSHUO) {
for (var l in Object.prototype) return alert("Object.prototype 不为空,请不要给 Object.prototype 设置方法");
var c, u, p = e.JSON,
h = e.location,
f = e.XMLHttpRequest,
m = p && p.stringify && e.localStorage,
v = e.navigator.userAgent,
g = "https:" == t.location.protocol ? "https:": "http:",
b = 0,
y = [],
_ = u = function() {
function e(e) {
return t[e] || "&"
}
var t = {
"<": "<",
">": ">",
'"': """,
"'": "'",
"`": "`"
},
s = /&(?!\w+;)|[<>"'`]/g,
a = /[&<>"'`]/;
return function(t) {
return null == t || t === !1 ? "": a.test(t) ? t.replace(s, e) : t
}
} (),
k = function(e) {
if (e.match(/^(http|https):/)) return e;
var s = t.createElement("a");
return s.href = e,
P.hrefNormalized ? s.href: s.getAttribute("href", 4)
},
w = function(e) {
return function() {
return e
}
},
x = function() {
for (var e = {},
t = 0; t < arguments.length; t++) arguments[t] && o.extend(e, arguments[t]);
var s = o.param(e);
return s ? "?" + s: ""
},
T = function() {
var e = o.getCookie("duoshuo_token");
return e ? {
jwt: e
}: c.remote_auth ? {
short_name: c.short_name,
remote_auth: c.remote_auth
}: s
},
q = function() {
if (!c && (c = e.duoshuoQuery)) {
if (!c.short_name || "your_duoshuo_short_name" === c.short_name) return c = s,
void alert("你还没有设置多说域名(duoshuoQuery.short_name),填入已有域名或创建新站点:http://duoshuo.com/create-site/");
it.trigger("queryDefined")
}
return c
},
C = function(e) {
return e && e.error && e.warn ? e: {
error: function() {},
log: function() {},
warn: function() {}
}
} (e.console),
S = e.DUOSHUO = {
sourceName: {
weibo: "新浪微博",
qq: "QQ",
qzone: "QQ空间",
qqt: "腾讯微博",
renren: "人人网",
douban: "豆瓣网",
kaixin: "开心网",
sohu: "搜狐微博",
baidu: "百度",
google: "谷歌",
wechat: "微信",
weixin: "微信",
facebook: "Facebook",
twitter: "Twitter",
linkedin: "Linkedin"
},
serviceNames: {
weibo: "微博",
qq: "QQ",
douban: "豆瓣",
renren: "人人",
kaixin: "开心",
baidu: "百度",
google: "谷歌",
wechat: "微信",
weixin: "微信",
facebook: "Facebook",
twitter: "Twitter",
linkedin: "Linkedin"
},
parseDate: function(e) {
return e.parse("2011-10-28T00:00:00+08:00") &&
function(t) {
return new e(t)
} || e.parse("2011/10/28T00:00:00+0800") &&
function(t) {
return new e(t.replace(/-/g, "/").replace(/:(\d\d)$/, "$1"))
} || e.parse("2011/10/28 00:00:00+0800") &&
function(t) {
return new e(t.replace(/-/g, "/").replace(/:(\d\d)$/, "$1").replace("T", " "))
} ||
function(t) {
return new e(t)
}
} (Date),
fullTime: function(e) {
var t = S.parseDate(e);
return t.getFullYear() + "年" + (t.getMonth() + 1) + "月" + t.getDate() + "日 " + t.toLocaleTimeString()
},
elapsedTime: function(e) {
var t = S.parseDate(e),
s = new Date,
a = (s - b - t) / 1e3;
return 10 > a ? "刚刚": 60 > a ? Math.round(a) + "秒前": 3600 > a ? Math.round(a / 60) + "分钟前": 86400 > a ? Math.round(a / 3600) + "小时前": (s.getFullYear() == t.getFullYear() ? "": t.getFullYear() + "年") + (t.getMonth() + 1) + "月" + t.getDate() + "日"
},
compileStyle: function(e) {
var t = "",
s = {};
if (s.textbox = "#ds-thread #ds-reset .ds-replybox .ds-textarea-wrapper", !e) return t;
for (var a in e) t += s[a] + "{" + e[a] + "}\n";
return t
},
init: function(e, t) {
e && !O[e] && (O[e] = t || {
type: "EmbedThread"
}),
S.initView && S.initView()
}
},
j = t.all,
P = S.support = function() {
var s = t.createElement("div");
s.innerHTML = 'a';
var a = s.getElementsByTagName("a")[0],
i = s.getElementsByTagName("input")[0],
r = {
placeholder: "placeholder" in i,
touch: "ontouchstart" in e || "onmsgesturechange" in e,
opacity: /^0.55$/.test(a.style.opacity),
hrefNormalized: "/a" === a.getAttribute("href"),
iOS: v.match(/ \((iPad|iPhone|iPod);( U;)? CPU( iPhone)? OS /),
android: v.match(/ \(Linux; U; Android /)
};
return r.ie6 = !f && "undefined" == typeof s.style.maxHeight,
r.authInWin = e.postMessage && e.screen.width > 800 && !r.iOS && !r.android && h.origin,
r
} (),
O = S.selectors = {
".ds-thread": {
type: "EmbedThread"
},
".ds-recent-comments": {
type: "RecentComments"
},
".ds-recent-visitors": {
type: "RecentVisitors"
},
".ds-top-users": {
type: "TopUsers"
},
".ds-top-threads": {
type: "TopThreads"
},
".ds-login": {
type: "LoginWidget"
},
".ds-thread-count": {
type: "ThreadCount"
},
".ds-share": {
type: "ShareWidget"
}
},
E = S.openDialog = function(e) {
return S.dialog !== s && S.dialog.el.remove(),
S.dialog = new st.Dialog(et.dialog(e)).open()
},
L = S.smilies = {};
S.require = function() {
function t(e) {
var t = R[e] ? "?" + R[e] + ".js": "";
return S.STATIC_URL + "/libs/" + e + ".js" + t
}
var s = {
mzadxN: "undefined" != typeof mzadxN
};
return "undefined" != typeof jQuery && jQuery.fn.jquery >= "1.5" && (s["embed.compat"] = !0, S.jQuery = e.jQuery),
function(e, a) {
if ("string" == typeof e) s[e] ? a() : o.injectScript(t(e),
function() {
s[e] = !0,
a()
});
else if ("object" == typeof e) {
var i, r = !0;
for (i = 0; i < e.length; i++)(function(n) {
s[e[i]] || (r = !1, o.injectScript(t(n),
function() {
s[n] = !0;
for (var t = 0; t < e.length; t++) if (!s[e[t]]) return;
a()
}))
})(e[i]);
r && a()
}
}
} ();
for (var N = 0,
I = ["EmbedThread", "RecentComments", "RecentVisitors", "TopUsers", "TopThreads", "LoginWidget", "ThreadCount"]; N < I.length; N++) S[I[N]] = function(e) {
return function(t, s) {
s = s || {},
s.type = e,
t && !O[t] && (O[t] = s),
S.initSelector && S.initSelector(t, s)
}
} (I[N]),
S["create" + I[N]] = function(e) {
return function(s, a) {
var i = t.createElement(s);
for (var r in a) i.setAttribute("data-" + r, a[r]);
return S[e](i),
i
}
} (I[N]);
S.RecentCommentsWidget = S.RecentComments;
var A = S.API = {
ajax: function(e, t, i, r, n) {
function d(e) {
var t = e.getResponseHeader("Date");
t && (b = new Date - new Date(t))
}
function l(e, t, s) {
var a, i, o, l = t;
if (e >= 200 && 300 > e || 304 === e) if (304 === e) l = "notmodified",
o = !0;
else try {
a = p.parse(s),
l = "success",
o = !0
} catch(c) {
l = "parsererror",
i = c
} else {
i = l,
(!l || e) && (l = "error", 0 > e && (e = 0));
try {
a = p.parse(s)
} catch(c) {
l = "parsererror",
i = c
}
}
o ? r && r(a) : "parseerror" === l ? C.error("解析错误: " + s) : (C.error("出错啦(" + a.code + "): " + a.errorMessage), n && n(a), a.errorTrace && C.error(a.errorTrace)),
d(m)
}
var u = o.getCookie("duoshuo_token");
i = i || {},
i.v = S.version,
u ? i.jwt = u: c.remote_auth && (i.remote_auth = c.remote_auth);
var h = f && p && p.parse;
if (h) {
var m = new f,
v = !!m && "withCredentials" in m;
if (v) {
var g;
return m.open(e, a() + "/api/" + t + ".json" + ("GET" == e ? "?" + o.param(i) : ""), !0),
m.withCredentials = !0,
m.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"),
m.send("GET" == e ? null: o.param(i)),
g = function(e, t) {
var a, i, r, n;
try {
if (g && (t || 4 === m.readyState)) if (g = s, t) 4 !== m.readyState && m.abort();
else {
a = m.status,
r = m.getAllResponseHeaders();
try {
n = m.responseText
} catch(e) {}
try {
i = m.statusText
} catch(o) {
i = ""
}
}
} catch(d) {
t || l( - 1, d)
}
n && l(a, i, n, r)
},
void(4 === m.readyState ? g() : m.onreadystatechange = g)
}
}
"GET" != e && (i._method = "POST");
var y = "cb_" + Math.round(1e6 * Math.random());
A[y] = function(e) {
switch (e.code) {
case 0:
r && r(e);
break;
default:
n && n(e),
C.error("出错啦(" + e.code + "): " + e.errorMessage),
e.errorTrace && C.error(e.errorTrace)
}
},
i.callback = "DUOSHUO.API['" + y + "']",
o.injectScript(a() + "/api/" + t + ".jsonp?" + o.param(i))
},
get: function(e, t, s, a) {
return this.ajax("GET", e, t, s, a)
},
post: function(e, t, s, a) {
return this.ajax("POST", e, t, s, a)
}
},
M = S.ws = {
messages: [],
send: function(s) {
if (! ("WebSocket" in e && p)) return ! 1;
var a = this;
if (a.messages.push(p.stringify(s)), !a.webSocket) {
var r = "https:" === t.location.protocol ? "wss://ws.duoshuo.com:8202/": "ws://ws.duoshuo.com:8201/",
n = a.webSocket = new WebSocket(r);
n.onopen = function() {
var e, t = 1 === n.readyState;
if (t) for (; e = a.messages.shift();) n.send(e)
},
n.onmessage = function(e) {
try {
var t = p.parse(e.data)
} catch(s) {
return
}
switch (t.type) {
case "post":
for (var a, r = 0; r < S.pagelets.length; r++) a = S.pagelets[r],
a.threadId == t.thread_id && a.onMessage(t);
break;
case "notification":
y.push(t),
i()
}
},
e.addEventListener("beforeunload",
function() {
n.close()
})
}
a.webSocket.onopen()
}
};
S.DOMAIN = "duoshuo.com",
S.STATIC_URL = g + "//static.duoshuo.com",
S.REMOTE = g + "//duoshuo.com",
S.version = "15.11.15";
var U = {
"default": "79dc948b",
dark: "ddc346d8",
bluebox: "0f0f035c",
newhua: "dc453ca2"
},
R = {
"embed.compat": "24f8ca3f",
smilies: "921e8eda"
},
z = {
post: "发布",
posting: "正在发布",
settings: "设置",
reply: "回复",
like: "顶",
repost: "转发",
report: "举报",
"delete": "删除",
reply_to: "回复 ",
reposts: "转发",
comments: "评论",
floor: "楼",
latest: "最新",
earliest: "最早",
hottest: "最热",
share_to: "分享到:",
leave_a_message: "说点什么吧…",
no_comments_yet: "还没有评论,沙发等你来抢",
repost_reason: "请输入转发理由",
hot_posts_title: "被顶起来的评论",
comments_zero: "暂无评论",
comments_one: "1条评论",
comments_multiple: "{num}条评论",
reposts_zero: "暂无转发",
reposts_one: "1条转发",
reposts_multiple: "{num}条转发",
weibo_reposts_zero: "暂无新浪微博",
weibo_reposts_one: "1条新浪微博",
weibo_reposts_multiple: "{num}条新浪微博",
qqt_reposts_zero: "暂无腾讯微博",
qqt_reposts_one: "1条腾讯微博",
qqt_reposts_multiple: "{num}条腾讯微博"
},
D = {
get: function(e) {
return m ? m[e] : void 0
},
save: function(e, t) {
if (m) try {
m.removeItem(e),
m[e] = p.stringify(t),
m.removeItem(e + ":timestamp"),
m[e + ":timestamp"] = Math.floor((new Date - b) / 1e3)
} catch(s) {}
}
},
W = S.loadRequire = function(t) {
if (t.visitor && (!nt.data && t.visitor.user_id && e.Notification && M.send({
logged_user_id: t.visitor.user_id
}), nt.reset(t.visitor)), t.site && (rt.reset(t.site), D.save("ds_site_" + c.short_name, t.site)), !S.theme && rt.data.theme && n(rt.data.theme), t.lang && (o.extend(z, t.lang), D.save("ds_lang_" + c.short_name, t.lang)), t.stylesheets) for (var s = 0; s < t.stylesheets.length; s++) o.injectStylesheet(t.stylesheets[s]);
if (t.nonce && (S.nonce = t.nonce), t.style && o.injectStyle((t.style || "") + S.compileStyle(c.component_style)), t.unread && ot.reset(t.unread), t.warnings) for (var s = 0; s < t.warnings.length; s++) C.warn(t.warnings[s])
},
H = 0,
B = S.Class = function() {};
B.extend = function(e) {
function t() { ! H && this.init && this.init.apply(this, arguments)
}
H = 1;
var s = new this;
H = 0;
for (var a in e) s[a] = e[a];
return t.prototype = s,
t.prototype.constructor = t,
t.extend = arguments.callee,
t
};
var J = S.Event = B.extend({
on: function(e, t) {
var a = this.handlers || (this.handlers = {});
return a[e] === s && (a[e] = []),
a[e].push(t),
this
},
trigger: function(e, t) {
var s = (this.handlers || (this.handlers = {}))[e];
if (s) for (var a = 0; a < s.length && s[a].call(this, t) !== !1; a++);
return this
}
}),
Q = S.Widget = J.extend({
init: function(e, t) {
this.el = e,
this.options = t || {},
this.render()
},
render: function() {},
reset: function() {},
load: function(e) {
switch (e.code) {
case 0:
W(e);
var t = this.prepare(e);
t.options = o.extend(this.options, e.options),
this.onload(t);
break;
default:
this.onError(e)
}
},
onload: function(e) {
this.el.html(et[this.tmpl](e))
},
prepare: function(e) {
return e
},
onMessage: function() {},
onError: function(e) {
C.error("出错啦(" + e.code + "): " + e.errorMessage),
e.errorTrace && C.error(e.errorTrace)
}
}),
V = S.Model = J.extend({
init: function(e) {
this.data = e
},
reset: function(e) {
this.data = e,
this.trigger("reset")
},
remove: function(e) {
this.data.splice(e, 1),
this.trigger("reset")
},
set: function(e, t) {
if (t === s) for (var a in e) this.data[a] = e[a];
else this.data[e] = t;
return this.trigger("reset"),
this
},
toJSON: function() {
return o.extend({},
this.data)
}
}),
$ = V.extend({
toJSON: function() {
return o.extend({},
this.data)
}
}),
F = V.extend({
toJSON: function() {
var e = o.extend({},
this.data);
return e.theAuthor = ct[this.data.author_id] && ct[this.data.author_id].data || this.data.author,
e.parents = this.data.parents || [],
e
}
}),
G = V.extend({
toJSON: function() {
return o.extend({},
this.data)
}
}),
Y = function(e) {
this.model = e
};
Y.prototype.set = function(e) {
for (var t in e) e[t] && (this[t] ? this[t].set(e[t]) : this[t] = new this.model(e[t]))
},
Y.prototype.get = function(e) {
for (var t = 0,
s = []; t < e.length; t++) s[t] = this[e[t]];
return s
},
Y.prototype.getJSON = function(e) {
for (var t = 0,
s = []; t < e.length; t++) this[e[t]] && s.push(this[e[t]].toJSON());
return s
};
var Z = {
userUrl: function(e) {
return e.url
},
avatarUrl: function(e) {
return 'https://www.solomp.com/custom/catimg.php?src=' + e.avatar_url || 'https://www.solomp.com/custom/catimg.php?src=' + rt.data.default_avatar_url
},
loginUrl: function(e, t) {
return t || (t = {}),
c.sso && c.sso.login && (t.sso = 1, t.redirect_uri = c.sso.login),
a() + "/login/" + e + "/" + x(t)
},
bindUrl: function(e) {
return a() + "/bind/" + e + "/" + x(c.sso && c.sso.login ? {
sso: 1,
redirect_uri: c.sso.login
}: null, T())
},
logoutUrl: function() {
return a() + "/logout/" + x(c.sso && c.sso.logout ? {
sso: 1,
redirect_uri: c.sso.logout
}: null)
}
},
X = ["weixin", "weibo", "qq", "renren"],
K = ["douban", "kaixin", "baidu", "google"],
et = S.templates = {
userAnchor: function(e) {
return e.url ? '' + _(e.name) + "": _(e.name)
},
avatarImg: function(e, t) {
return '"
},
avatar: function(e, t) {
var s = et.avatarImg(e, t),
i = Z.userUrl(e);
return i ? '' + s + "": s
},
timeText: function(e) {
return e ? '' + S.elapsedTime(e) + "": ""
},
timeAnchor: function(e, t) {
return e ? '' + S.elapsedTime(e) + "": ""
},
serviceIcon: function(e, t) {
return ''
},
poweredBy: function(e) {
return '
很高兴你能喜欢,分享一下吧:
", s.parents.length >= i.max_depth && (!i.show_context || i.max_depth > 1) && s.parent_id && lt[s.parent_id] && (t += '' + z.reply_to + u(lt[s.parent_id].toJSON().author.name) + ": "), s.message = s.message.replace(/(http\:\/\/img.t.sinajs.cn\/t35\/style\/images\/common\/face\/ext\/normal\/)/g,"https://www.solomp.com/custom/catimg.php?src=$1"), t += s.message.replace(/(http\:\/\/static.duoshuo.com\/images\/)/g,"https://www.solomp.com/custom/catimg.php?src=$1") + '
' + u(e.description) + "
"), t }; var st = S.Views = {}, at = (S.Callbacks = {}, S.pagelets = []), it = S.events = new J, rt = S.site = new V, nt = S.visitor = new $, ot = S.unread = new V, dt = S.threadPool = new Y(G), lt = S.postPool = new Y(F), ct = S.userPool = new Y($); it.on("queryDefined", function() { var e = c.short_name; if (c.theme && n(c.theme), m) { var t = m["ds_site_" + e], s = m["ds_lang_" + e]; t && rt.reset(p.parse(t)), s && o.extend(z, p.parse(s)) } }), q(), S.require("embed.compat", function() { function i(e) { e.stopPropagation() } function n(e) { (e.ctrlKey && 13 == e.which || 10 == e.which) && B(this.form).trigger("submit") } function d() { var e = B(this); e.height(Math.max(54, e.next(".ds-hidden-text").text(this.value).height() + 27)) } function l() { if (P.authInWin) { var e = this.href.match(/\/(login|bind)\/(\w+)\//i); if (e && S.serviceNames[e[2]]) return ! b(e[2], this.href) } } function u() { var e, s, a, i, r, n = this, o = 0, d = 0; t.selection && (s = t.selection.createRange(), s && s.parentElement() == n && (i = n.value.length, e = n.value.replace(/\r\n/g, "\n"), a = n.createTextRange(), a.moveToBookmark(s.getBookmark()), r = n.createTextRange(), r.collapse(!1), a.compareEndPoints("StartToEnd", r) > -1 ? o = d = i: (o = -a.moveStart("character", -i), o += e.slice(0, o).split("\n").length - 1, a.compareEndPoints("EndToEnd", r) > -1 ? d = i: (d = -a.moveEnd("character", -i), d += e.slice(0, d).split("\n").length - 1)))), B(n).data("ds-range-start", o).data("ds-range-end", d) } function p(e) { return P.touch && e.addClass("ds-touch"), o.cssProperty("transition") || e.addClass("ds-no-transition"), P.ie6 && e.addClass("ds-ie6"), P.opacity || e.addClass("ds-no-opacity"), e } function f(e) { if (!P.placeholder) { var t = e.attr("placeholder"); e.val(t).focus(function() { this.value === t && (this.value = "") }).blur(function() { "" === this.value && (this.value = t) }) } return e } function g(e) { if ("http://duoshuo.com" === e.origin) switch (e.data.type) { case "login": h.href = e.data.redirectUrl } } function b(t, s) { var a = { weibo: [760, 600], renren: [420, 322], qq: [504, 445], weixin: [450, 550], google: [600, 440] } [t] || [550, 400]; return e.open(s + ( - 1 == s.indexOf("?") ? "?": "&") + o.param({ origin: h.origin || "http://" + h.host }), "_blank", "width=" + a[0] + ",height=" + a[1] + ",toolbar=no,menubar=no,location=yes") } function y(e) { var t = Z[r() ? "loginUrl": "bindUrl"](e); P.authInWin && b(e, t) || (h.href = t) } function w() { var e = E(et["dialog-ask-for-auth"]({})).el.find(".ds-dialog").css("width", "300px"); e.find("a.ds-service-link").click(l) } function x(e, t, s, a) { function i() { function e(e) { if (s && a) { var t = s.options, i = U(s.postList.el, e.response[a], t); "asc" == t.order == ("top" == t.formPosition) && S.scrollTo(i); var r = s.el.find(".ds-comments-tab-" + a + " span.ds-highlight"); r.html(parseInt(r.html()) + 1) } } return a || l.find("[type=checkbox]:checked")[0] ? (A.post("posts/repost", S.toJSON(l), e), o.close(), !1) : (alert("还没有选发布到哪儿呢"), !1) } function r() { var e = this.value; return this.checked && !nt.data.social_uid["qqt" == e ? "qq": e] ? void y(e) : void 0 } var o = E(et["dialog-reposts"]({ post: e.toJSON(), repostMessage: t, service: a })), l = o.el.find("form"); return l.submit(i), l.find(".ds-actions [type=checkbox]").change(r), f(l.find("textarea")).keyup(n).keyup(d).focus(), !1 } function T(e) { var t = { "unread-comments": { title: "新留言及回复", apiUrl: "users/unreadComments", tmpl: function(e) { return e.thread ? '