162cc60fa8a195b900b5087b3368bc130969dd1d.svn-base 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926
  1. !function(a, b) {
  2. "use strict";
  3. var c, d, e, f = a, g = f.document, h = f.navigator, i = f.setTimeout, j = f.clearTimeout, k = f.setInterval, l = f.clearInterval, m = f.getComputedStyle, n = f.encodeURIComponent, o = f.ActiveXObject, p = f.Error, q = f.Number.parseInt || f.parseInt, r = f.Number.parseFloat || f.parseFloat, s = f.Number.isNaN || f.isNaN, t = f.Date.now, u = f.Object.keys, v = f.Object.defineProperty, w = f.Object.prototype.hasOwnProperty, x = f.Array.prototype.slice, y = function() {
  4. var a = function(a) {
  5. return a;
  6. };
  7. if ("function" == typeof f.wrap && "function" == typeof f.unwrap) try {
  8. var b = g.createElement("div"), c = f.unwrap(b);
  9. 1 === b.nodeType && c && 1 === c.nodeType && (a = f.unwrap);
  10. } catch (d) {}
  11. return a;
  12. }(), z = function(a) {
  13. return x.call(a, 0);
  14. }, A = function() {
  15. var a, c, d, e, f, g, h = z(arguments), i = h[0] || {};
  16. for (a = 1, c = h.length; c > a; a++) if (null != (d = h[a])) for (e in d) w.call(d, e) && (f = i[e],
  17. g = d[e], i !== g && g !== b && (i[e] = g));
  18. return i;
  19. }, B = function(a) {
  20. var b, c, d, e;
  21. if ("object" != typeof a || null == a || "number" == typeof a.nodeType) b = a; else if ("number" == typeof a.length) for (b = [],
  22. c = 0, d = a.length; d > c; c++) w.call(a, c) && (b[c] = B(a[c])); else {
  23. b = {};
  24. for (e in a) w.call(a, e) && (b[e] = B(a[e]));
  25. }
  26. return b;
  27. }, C = function(a, b) {
  28. for (var c = {}, d = 0, e = b.length; e > d; d++) b[d] in a && (c[b[d]] = a[b[d]]);
  29. return c;
  30. }, D = function(a, b) {
  31. var c = {};
  32. for (var d in a) -1 === b.indexOf(d) && (c[d] = a[d]);
  33. return c;
  34. }, E = function(a) {
  35. if (a) for (var b in a) w.call(a, b) && delete a[b];
  36. return a;
  37. }, F = function(a, b) {
  38. if (a && 1 === a.nodeType && a.ownerDocument && b && (1 === b.nodeType && b.ownerDocument && b.ownerDocument === a.ownerDocument || 9 === b.nodeType && !b.ownerDocument && b === a.ownerDocument)) do {
  39. if (a === b) return !0;
  40. a = a.parentNode;
  41. } while (a);
  42. return !1;
  43. }, G = function(a) {
  44. var b;
  45. return "string" == typeof a && a && (b = a.split("#")[0].split("?")[0], b = a.slice(0, a.lastIndexOf("/") + 1)),
  46. b;
  47. }, H = function(a) {
  48. var b, c;
  49. return "string" == typeof a && a && (c = a.match(/^(?:|[^:@]*@|.+\)@(?=http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),
  50. c && c[1] ? b = c[1] : (c = a.match(/\)@((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),
  51. c && c[1] && (b = c[1]))), b;
  52. }, I = function() {
  53. var a, b;
  54. try {
  55. throw new p();
  56. } catch (c) {
  57. b = c;
  58. }
  59. return b && (a = b.sourceURL || b.fileName || H(b.stack)), a;
  60. }, J = function() {
  61. var a, c, d;
  62. if (g.currentScript && (a = g.currentScript.src)) return a;
  63. if (c = g.getElementsByTagName("script"), 1 === c.length) return c[0].src || b;
  64. if ("readyState" in c[0]) for (d = c.length; d--; ) if ("interactive" === c[d].readyState && (a = c[d].src)) return a;
  65. return "loading" === g.readyState && (a = c[c.length - 1].src) ? a : (a = I()) ? a : b;
  66. }, K = function() {
  67. var a, c, d, e = g.getElementsByTagName("script");
  68. for (a = e.length; a--; ) {
  69. if (!(d = e[a].src)) {
  70. c = null;
  71. break;
  72. }
  73. if (d = G(d), null == c) c = d; else if (c !== d) {
  74. c = null;
  75. break;
  76. }
  77. }
  78. return c || b;
  79. }, L = function() {
  80. var a = G(J()) || K() || "";
  81. return a + "ZeroClipboard.swf";
  82. }, M = function() {
  83. return null == a.opener && (!!a.top && a != a.top || !!a.parent && a != a.parent);
  84. }(), N = {
  85. bridge: null,
  86. version: "0.0.0",
  87. pluginType: "unknown",
  88. disabled: null,
  89. outdated: null,
  90. sandboxed: null,
  91. unavailable: null,
  92. degraded: null,
  93. deactivated: null,
  94. overdue: null,
  95. ready: null
  96. }, O = "11.0.0", P = {}, Q = {}, R = null, S = 0, T = 0, U = {
  97. ready: "Flash communication is established",
  98. error: {
  99. "flash-disabled": "Flash is disabled or not installed. May also be attempting to run Flash in a sandboxed iframe, which is impossible.",
  100. "flash-outdated": "Flash is too outdated to support ZeroClipboard",
  101. "flash-sandboxed": "Attempting to run Flash in a sandboxed iframe, which is impossible",
  102. "flash-unavailable": "Flash is unable to communicate bidirectionally with JavaScript",
  103. "flash-degraded": "Flash is unable to preserve data fidelity when communicating with JavaScript",
  104. "flash-deactivated": "Flash is too outdated for your browser and/or is configured as click-to-activate.\nThis may also mean that the ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity.\nMay also be attempting to run Flash in a sandboxed iframe, which is impossible.",
  105. "flash-overdue": "Flash communication was established but NOT within the acceptable time limit",
  106. "version-mismatch": "ZeroClipboard JS version number does not match ZeroClipboard SWF version number",
  107. "clipboard-error": "At least one error was thrown while ZeroClipboard was attempting to inject your data into the clipboard",
  108. "config-mismatch": "ZeroClipboard configuration does not match Flash's reality",
  109. "swf-not-found": "The ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity"
  110. }
  111. }, V = [ "flash-unavailable", "flash-degraded", "flash-overdue", "version-mismatch", "config-mismatch", "clipboard-error" ], W = [ "flash-disabled", "flash-outdated", "flash-sandboxed", "flash-unavailable", "flash-degraded", "flash-deactivated", "flash-overdue" ], X = new RegExp("^flash-(" + W.map(function(a) {
  112. return a.replace(/^flash-/, "");
  113. }).join("|") + ")$"), Y = new RegExp("^flash-(" + W.slice(1).map(function(a) {
  114. return a.replace(/^flash-/, "");
  115. }).join("|") + ")$"), Z = {
  116. swfPath: L(),
  117. trustedDomains: a.location.host ? [ a.location.host ] : [],
  118. cacheBust: !0,
  119. forceEnhancedClipboard: !1,
  120. flashLoadTimeout: 3e4,
  121. autoActivate: !0,
  122. bubbleEvents: !0,
  123. containerId: "global-zeroclipboard-html-bridge",
  124. containerClass: "global-zeroclipboard-container",
  125. swfObjectId: "global-zeroclipboard-flash-bridge",
  126. hoverClass: "zeroclipboard-is-hover",
  127. activeClass: "zeroclipboard-is-active",
  128. forceHandCursor: !1,
  129. title: null,
  130. zIndex: 999999999
  131. }, $ = function(a) {
  132. if ("object" == typeof a && null !== a) for (var b in a) if (w.call(a, b)) if (/^(?:forceHandCursor|title|zIndex|bubbleEvents)$/.test(b)) Z[b] = a[b]; else if (null == N.bridge) if ("containerId" === b || "swfObjectId" === b) {
  133. if (!nb(a[b])) throw new Error("The specified `" + b + "` value is not valid as an HTML4 Element ID");
  134. Z[b] = a[b];
  135. } else Z[b] = a[b];
  136. {
  137. if ("string" != typeof a || !a) return B(Z);
  138. if (w.call(Z, a)) return Z[a];
  139. }
  140. }, _ = function() {
  141. return Tb(), {
  142. browser: C(h, [ "userAgent", "platform", "appName" ]),
  143. flash: D(N, [ "bridge" ]),
  144. zeroclipboard: {
  145. version: Vb.version,
  146. config: Vb.config()
  147. }
  148. };
  149. }, ab = function() {
  150. return !!(N.disabled || N.outdated || N.sandboxed || N.unavailable || N.degraded || N.deactivated);
  151. }, bb = function(a, d) {
  152. var e, f, g, h = {};
  153. if ("string" == typeof a && a) g = a.toLowerCase().split(/\s+/); else if ("object" == typeof a && a && "undefined" == typeof d) for (e in a) w.call(a, e) && "string" == typeof e && e && "function" == typeof a[e] && Vb.on(e, a[e]);
  154. if (g && g.length) {
  155. for (e = 0, f = g.length; f > e; e++) a = g[e].replace(/^on/, ""), h[a] = !0, P[a] || (P[a] = []),
  156. P[a].push(d);
  157. if (h.ready && N.ready && Vb.emit({
  158. type: "ready"
  159. }), h.error) {
  160. for (e = 0, f = W.length; f > e; e++) if (N[W[e].replace(/^flash-/, "")] === !0) {
  161. Vb.emit({
  162. type: "error",
  163. name: W[e]
  164. });
  165. break;
  166. }
  167. c !== b && Vb.version !== c && Vb.emit({
  168. type: "error",
  169. name: "version-mismatch",
  170. jsVersion: Vb.version,
  171. swfVersion: c
  172. });
  173. }
  174. }
  175. return Vb;
  176. }, cb = function(a, b) {
  177. var c, d, e, f, g;
  178. if (0 === arguments.length) f = u(P); else if ("string" == typeof a && a) f = a.split(/\s+/); else if ("object" == typeof a && a && "undefined" == typeof b) for (c in a) w.call(a, c) && "string" == typeof c && c && "function" == typeof a[c] && Vb.off(c, a[c]);
  179. if (f && f.length) for (c = 0, d = f.length; d > c; c++) if (a = f[c].toLowerCase().replace(/^on/, ""),
  180. g = P[a], g && g.length) if (b) for (e = g.indexOf(b); -1 !== e; ) g.splice(e, 1),
  181. e = g.indexOf(b, e); else g.length = 0;
  182. return Vb;
  183. }, db = function(a) {
  184. var b;
  185. return b = "string" == typeof a && a ? B(P[a]) || null : B(P);
  186. }, eb = function(a) {
  187. var b, c, d;
  188. return a = ob(a), a && !vb(a) ? "ready" === a.type && N.overdue === !0 ? Vb.emit({
  189. type: "error",
  190. name: "flash-overdue"
  191. }) : (b = A({}, a), tb.call(this, b), "copy" === a.type && (d = Db(Q), c = d.data,
  192. R = d.formatMap), c) : void 0;
  193. }, fb = function() {
  194. var a = N.sandboxed;
  195. if (Tb(), "boolean" != typeof N.ready && (N.ready = !1), N.sandboxed !== a && N.sandboxed === !0) N.ready = !1,
  196. Vb.emit({
  197. type: "error",
  198. name: "flash-sandboxed"
  199. }); else if (!Vb.isFlashUnusable() && null === N.bridge) {
  200. var b = Z.flashLoadTimeout;
  201. "number" == typeof b && b >= 0 && (S = i(function() {
  202. "boolean" != typeof N.deactivated && (N.deactivated = !0), N.deactivated === !0 && Vb.emit({
  203. type: "error",
  204. name: "flash-deactivated"
  205. });
  206. }, b)), N.overdue = !1, Bb();
  207. }
  208. }, gb = function() {
  209. Vb.clearData(), Vb.blur(), Vb.emit("destroy"), Cb(), Vb.off();
  210. }, hb = function(a, b) {
  211. var c;
  212. if ("object" == typeof a && a && "undefined" == typeof b) c = a, Vb.clearData(); else {
  213. if ("string" != typeof a || !a) return;
  214. c = {}, c[a] = b;
  215. }
  216. for (var d in c) "string" == typeof d && d && w.call(c, d) && "string" == typeof c[d] && c[d] && (Q[d] = c[d]);
  217. }, ib = function(a) {
  218. "undefined" == typeof a ? (E(Q), R = null) : "string" == typeof a && w.call(Q, a) && delete Q[a];
  219. }, jb = function(a) {
  220. return "undefined" == typeof a ? B(Q) : "string" == typeof a && w.call(Q, a) ? Q[a] : void 0;
  221. }, kb = function(a) {
  222. if (a && 1 === a.nodeType) {
  223. d && (Lb(d, Z.activeClass), d !== a && Lb(d, Z.hoverClass)), d = a, Kb(a, Z.hoverClass);
  224. var b = a.getAttribute("title") || Z.title;
  225. if ("string" == typeof b && b) {
  226. var c = Ab(N.bridge);
  227. c && c.setAttribute("title", b);
  228. }
  229. var e = Z.forceHandCursor === !0 || "pointer" === Mb(a, "cursor");
  230. Rb(e), Qb();
  231. }
  232. }, lb = function() {
  233. alert(1)
  234. var a = Ab(N.bridge);
  235. a && (a.removeAttribute("title"), a.style.left = "0px", a.style.top = "-9999px",
  236. a.style.width = "1px", a.style.height = "1px"), d && (Lb(d, Z.hoverClass), Lb(d, Z.activeClass),
  237. d = null);
  238. }, mb = function() {
  239. return d || null;
  240. }, nb = function(a) {
  241. return "string" == typeof a && a && /^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(a);
  242. }, ob = function(a) {
  243. var b;
  244. if ("string" == typeof a && a ? (b = a, a = {}) : "object" == typeof a && a && "string" == typeof a.type && a.type && (b = a.type),
  245. b) {
  246. b = b.toLowerCase(), !a.target && (/^(copy|aftercopy|_click)$/.test(b) || "error" === b && "clipboard-error" === a.name) && (a.target = e),
  247. A(a, {
  248. type: b,
  249. target: a.target || d || null,
  250. relatedTarget: a.relatedTarget || null,
  251. currentTarget: N && N.bridge || null,
  252. timeStamp: a.timeStamp || t() || null
  253. });
  254. var c = U[a.type];
  255. return "error" === a.type && a.name && c && (c = c[a.name]), c && (a.message = c),
  256. "ready" === a.type && A(a, {
  257. target: null,
  258. version: N.version
  259. }), "error" === a.type && (X.test(a.name) && A(a, {
  260. target: null,
  261. minimumVersion: O
  262. }), Y.test(a.name) && A(a, {
  263. version: N.version
  264. })), "copy" === a.type && (a.clipboardData = {
  265. setData: Vb.setData,
  266. clearData: Vb.clearData
  267. }), "aftercopy" === a.type && (a = Eb(a, R)), a.target && !a.relatedTarget && (a.relatedTarget = pb(a.target)),
  268. qb(a);
  269. }
  270. }, pb = function(a) {
  271. var b = a && a.getAttribute && a.getAttribute("data-clipboard-target");
  272. return b ? g.getElementById(b) : null;
  273. }, qb = function(a) {
  274. if (a && /^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type)) {
  275. var c = a.target, d = "_mouseover" === a.type && a.relatedTarget ? a.relatedTarget : b, e = "_mouseout" === a.type && a.relatedTarget ? a.relatedTarget : b, h = Nb(c), i = f.screenLeft || f.screenX || 0, j = f.screenTop || f.screenY || 0, k = g.body.scrollLeft + g.documentElement.scrollLeft, l = g.body.scrollTop + g.documentElement.scrollTop, m = h.left + ("number" == typeof a._stageX ? a._stageX : 0), n = h.top + ("number" == typeof a._stageY ? a._stageY : 0), o = m - k, p = n - l, q = i + o, r = j + p, s = "number" == typeof a.movementX ? a.movementX : 0, t = "number" == typeof a.movementY ? a.movementY : 0;
  276. delete a._stageX, delete a._stageY, A(a, {
  277. srcElement: c,
  278. fromElement: d,
  279. toElement: e,
  280. screenX: q,
  281. screenY: r,
  282. pageX: m,
  283. pageY: n,
  284. clientX: o,
  285. clientY: p,
  286. x: o,
  287. y: p,
  288. movementX: s,
  289. movementY: t,
  290. offsetX: 0,
  291. offsetY: 0,
  292. layerX: 0,
  293. layerY: 0
  294. });
  295. }
  296. return a;
  297. }, rb = function(a) {
  298. var b = a && "string" == typeof a.type && a.type || "";
  299. return !/^(?:(?:before)?copy|destroy)$/.test(b);
  300. }, sb = function(a, b, c, d) {
  301. d ? i(function() {
  302. a.apply(b, c);
  303. }, 0) : a.apply(b, c);
  304. }, tb = function(a) {
  305. if ("object" == typeof a && a && a.type) {
  306. var b = rb(a), c = P["*"] || [], d = P[a.type] || [], e = c.concat(d);
  307. if (e && e.length) {
  308. var g, h, i, j, k, l = this;
  309. for (g = 0, h = e.length; h > g; g++) i = e[g], j = l, "string" == typeof i && "function" == typeof f[i] && (i = f[i]),
  310. "object" == typeof i && i && "function" == typeof i.handleEvent && (j = i, i = i.handleEvent),
  311. "function" == typeof i && (k = A({}, a), sb(i, j, [ k ], b));
  312. }
  313. return this;
  314. }
  315. }, ub = function(a) {
  316. var b = null;
  317. return (M === !1 || a && "error" === a.type && a.name && -1 !== V.indexOf(a.name)) && (b = !1),
  318. b;
  319. }, vb = function(a) {
  320. var b = a.target || d || null, f = "swf" === a._source;
  321. switch (delete a._source, a.type) {
  322. case "error":
  323. var g = "flash-sandboxed" === a.name || ub(a);
  324. "boolean" == typeof g && (N.sandboxed = g), -1 !== W.indexOf(a.name) ? A(N, {
  325. disabled: "flash-disabled" === a.name,
  326. outdated: "flash-outdated" === a.name,
  327. unavailable: "flash-unavailable" === a.name,
  328. degraded: "flash-degraded" === a.name,
  329. deactivated: "flash-deactivated" === a.name,
  330. overdue: "flash-overdue" === a.name,
  331. ready: !1
  332. }) : "version-mismatch" === a.name && (c = a.swfVersion, A(N, {
  333. disabled: !1,
  334. outdated: !1,
  335. unavailable: !1,
  336. degraded: !1,
  337. deactivated: !1,
  338. overdue: !1,
  339. ready: !1
  340. })), Pb();
  341. break;
  342. case "ready":
  343. c = a.swfVersion;
  344. var h = N.deactivated === !0;
  345. A(N, {
  346. disabled: !1,
  347. outdated: !1,
  348. sandboxed: !1,
  349. unavailable: !1,
  350. degraded: !1,
  351. deactivated: !1,
  352. overdue: h,
  353. ready: !h
  354. }), Pb();
  355. break;
  356. case "beforecopy":
  357. e = b;
  358. break;
  359. case "copy":
  360. var i, j, k = a.relatedTarget;
  361. !Q["text/html"] && !Q["text/plain"] && k && (j = k.value || k.outerHTML || k.innerHTML) && (i = k.value || k.textContent || k.innerText) ? (a.clipboardData.clearData(),
  362. a.clipboardData.setData("text/plain", i), j !== i && a.clipboardData.setData("text/html", j)) : !Q["text/plain"] && a.target && (i = a.target.getAttribute("data-clipboard-text")) && (a.clipboardData.clearData(),
  363. a.clipboardData.setData("text/plain", i));
  364. break;
  365. case "aftercopy":
  366. wb(a), Vb.clearData(), b && b !== Jb() && b.focus && b.focus();
  367. break;
  368. case "_mouseover":
  369. Vb.focus(b), Z.bubbleEvents === !0 && f && (b && b !== a.relatedTarget && !F(a.relatedTarget, b) && xb(A({}, a, {
  370. type: "mouseenter",
  371. bubbles: !1,
  372. cancelable: !1
  373. })), xb(A({}, a, {
  374. type: "mouseover"
  375. })));
  376. break;
  377. case "_mouseout":
  378. Vb.blur(), Z.bubbleEvents === !0 && f && (b && b !== a.relatedTarget && !F(a.relatedTarget, b) && xb(A({}, a, {
  379. type: "mouseleave",
  380. bubbles: !1,
  381. cancelable: !1
  382. })), xb(A({}, a, {
  383. type: "mouseout"
  384. })));
  385. break;
  386. case "_mousedown":
  387. Kb(b, Z.activeClass), Z.bubbleEvents === !0 && f && xb(A({}, a, {
  388. type: a.type.slice(1)
  389. }));
  390. break;
  391. case "_mouseup":
  392. Lb(b, Z.activeClass), Z.bubbleEvents === !0 && f && xb(A({}, a, {
  393. type: a.type.slice(1)
  394. }));
  395. break;
  396. case "_click":
  397. e = null, Z.bubbleEvents === !0 && f && xb(A({}, a, {
  398. type: a.type.slice(1)
  399. }));
  400. break;
  401. case "_mousemove":
  402. Z.bubbleEvents === !0 && f && xb(A({}, a, {
  403. type: a.type.slice(1)
  404. }));
  405. }
  406. return /^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type) ? !0 : void 0;
  407. }, wb = function(a) {
  408. if (a.errors && a.errors.length > 0) {
  409. var b = B(a);
  410. A(b, {
  411. type: "error",
  412. name: "clipboard-error"
  413. }), delete b.success, i(function() {
  414. Vb.emit(b);
  415. }, 0);
  416. }
  417. }, xb = function(a) {
  418. if (a && "string" == typeof a.type && a) {
  419. var b, c = a.target || null, d = c && c.ownerDocument || g, e = {
  420. view: d.defaultView || f,
  421. canBubble: !0,
  422. cancelable: !0,
  423. detail: "click" === a.type ? 1 : 0,
  424. button: "number" == typeof a.which ? a.which - 1 : "number" == typeof a.button ? a.button : d.createEvent ? 0 : 1
  425. }, h = A(e, a);
  426. c && d.createEvent && c.dispatchEvent && (h = [ h.type, h.canBubble, h.cancelable, h.view, h.detail, h.screenX, h.screenY, h.clientX, h.clientY, h.ctrlKey, h.altKey, h.shiftKey, h.metaKey, h.button, h.relatedTarget ],
  427. b = d.createEvent("MouseEvents"), b.initMouseEvent && (b.initMouseEvent.apply(b, h),
  428. b._source = "js", c.dispatchEvent(b)));
  429. }
  430. }, yb = function() {
  431. var a = Z.flashLoadTimeout;
  432. if ("number" == typeof a && a >= 0) {
  433. var b = Math.min(1e3, a / 10), c = Z.swfObjectId + "_fallbackContent";
  434. T = k(function() {
  435. var a = g.getElementById(c);
  436. Ob(a) && (Pb(), N.deactivated = null, Vb.emit({
  437. type: "error",
  438. name: "swf-not-found"
  439. }));
  440. }, b);
  441. }
  442. }, zb = function() {
  443. var a = g.createElement("div");
  444. return a.id = Z.containerId, a.className = Z.containerClass, a.style.position = "absolute",
  445. a.style.left = "0px", a.style.top = "-9999px", a.style.width = "1px", a.style.height = "1px",
  446. a.style.zIndex = "" + Sb(Z.zIndex), a;
  447. }, Ab = function(a) {
  448. for (var b = a && a.parentNode; b && "OBJECT" === b.nodeName && b.parentNode; ) b = b.parentNode;
  449. return b || null;
  450. }, Bb = function() {
  451. var a, b = N.bridge, c = Ab(b);
  452. if (!b) {
  453. var d = Ib(f.location.host, Z), e = "never" === d ? "none" : "all", h = Gb(A({
  454. jsVersion: Vb.version
  455. }, Z)), i = Z.swfPath + Fb(Z.swfPath, Z);
  456. c = zb();
  457. var j = g.createElement("div");
  458. c.appendChild(j), g.body.appendChild(c);
  459. var k = g.createElement("div"), l = "activex" === N.pluginType;
  460. k.innerHTML = '<object id="' + Z.swfObjectId + '" name="' + Z.swfObjectId + '" width="100%" height="100%" ' + (l ? 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"' : 'type="application/x-shockwave-flash" data="' + i + '"') + ">" + (l ? '<param name="movie" value="' + i + '"/>' : "") + '<param name="allowScriptAccess" value="' + d + '"/><param name="allowNetworking" value="' + e + '"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><param name="flashvars" value="' + h + '"/><div id="' + Z.swfObjectId + '_fallbackContent">&nbsp;</div></object>',
  461. b = k.firstChild, k = null, y(b).ZeroClipboard = Vb, c.replaceChild(b, j), yb();
  462. }
  463. return b || (b = g[Z.swfObjectId], b && (a = b.length) && (b = b[a - 1]), !b && c && (b = c.firstChild)),
  464. N.bridge = b || null, b;
  465. }, Cb = function() {
  466. var a = N.bridge;
  467. if (a) {
  468. var d = Ab(a);
  469. d && ("activex" === N.pluginType && "readyState" in a ? (a.style.display = "none",
  470. function e() {
  471. if (4 === a.readyState) {
  472. for (var b in a) "function" == typeof a[b] && (a[b] = null);
  473. a.parentNode && a.parentNode.removeChild(a), d.parentNode && d.parentNode.removeChild(d);
  474. } else i(e, 10);
  475. }()) : (a.parentNode && a.parentNode.removeChild(a), d.parentNode && d.parentNode.removeChild(d))),
  476. Pb(), N.ready = null, N.bridge = null, N.deactivated = null, c = b;
  477. }
  478. }, Db = function(a) {
  479. var b = {}, c = {};
  480. if ("object" == typeof a && a) {
  481. for (var d in a) if (d && w.call(a, d) && "string" == typeof a[d] && a[d]) switch (d.toLowerCase()) {
  482. case "text/plain":
  483. case "text":
  484. case "air:text":
  485. case "flash:text":
  486. b.text = a[d], c.text = d;
  487. break;
  488. case "text/html":
  489. case "html":
  490. case "air:html":
  491. case "flash:html":
  492. b.html = a[d], c.html = d;
  493. break;
  494. case "application/rtf":
  495. case "text/rtf":
  496. case "rtf":
  497. case "richtext":
  498. case "air:rtf":
  499. case "flash:rtf":
  500. b.rtf = a[d], c.rtf = d;
  501. }
  502. return {
  503. data: b,
  504. formatMap: c
  505. };
  506. }
  507. }, Eb = function(a, b) {
  508. if ("object" != typeof a || !a || "object" != typeof b || !b) return a;
  509. var c = {};
  510. for (var d in a) if (w.call(a, d)) if ("errors" === d) {
  511. c[d] = a[d] ? a[d].slice() : [];
  512. for (var e = 0, f = c[d].length; f > e; e++) c[d][e].format = b[c[d][e].format];
  513. } else if ("success" !== d && "data" !== d) c[d] = a[d]; else {
  514. c[d] = {};
  515. var g = a[d];
  516. for (var h in g) h && w.call(g, h) && w.call(b, h) && (c[d][b[h]] = g[h]);
  517. }
  518. return c;
  519. }, Fb = function(a, b) {
  520. var c = null == b || b && b.cacheBust === !0;
  521. return c ? (-1 === a.indexOf("?") ? "?" : "&") + "noCache=" + t() : "";
  522. }, Gb = function(a) {
  523. var b, c, d, e, g = "", h = [];
  524. if (a.trustedDomains && ("string" == typeof a.trustedDomains ? e = [ a.trustedDomains ] : "object" == typeof a.trustedDomains && "length" in a.trustedDomains && (e = a.trustedDomains)),
  525. e && e.length) for (b = 0, c = e.length; c > b; b++) if (w.call(e, b) && e[b] && "string" == typeof e[b]) {
  526. if (d = Hb(e[b]), !d) continue;
  527. if ("*" === d) {
  528. h.length = 0, h.push(d);
  529. break;
  530. }
  531. h.push.apply(h, [ d, "//" + d, f.location.protocol + "//" + d ]);
  532. }
  533. return h.length && (g += "trustedOrigins=" + n(h.join(","))), a.forceEnhancedClipboard === !0 && (g += (g ? "&" : "") + "forceEnhancedClipboard=true"),
  534. "string" == typeof a.swfObjectId && a.swfObjectId && (g += (g ? "&" : "") + "swfObjectId=" + n(a.swfObjectId)),
  535. "string" == typeof a.jsVersion && a.jsVersion && (g += (g ? "&" : "") + "jsVersion=" + n(a.jsVersion)),
  536. g;
  537. }, Hb = function(a) {
  538. if (null == a || "" === a) return null;
  539. if (a = a.replace(/^\s+|\s+$/g, ""), "" === a) return null;
  540. var b = a.indexOf("//");
  541. a = -1 === b ? a : a.slice(b + 2);
  542. var c = a.indexOf("/");
  543. return a = -1 === c ? a : -1 === b || 0 === c ? null : a.slice(0, c), a && ".swf" === a.slice(-4).toLowerCase() ? null : a || null;
  544. }, Ib = function() {
  545. var a = function(a) {
  546. var b, c, d, e = [];
  547. if ("string" == typeof a && (a = [ a ]), "object" != typeof a || !a || "number" != typeof a.length) return e;
  548. for (b = 0, c = a.length; c > b; b++) if (w.call(a, b) && (d = Hb(a[b]))) {
  549. if ("*" === d) {
  550. e.length = 0, e.push("*");
  551. break;
  552. }
  553. -1 === e.indexOf(d) && e.push(d);
  554. }
  555. return e;
  556. };
  557. return function(b, c) {
  558. var d = Hb(c.swfPath);
  559. null === d && (d = b);
  560. var e = a(c.trustedDomains), f = e.length;
  561. if (f > 0) {
  562. if (1 === f && "*" === e[0]) return "always";
  563. if (-1 !== e.indexOf(b)) return 1 === f && b === d ? "sameDomain" : "always";
  564. }
  565. return "never";
  566. };
  567. }(), Jb = function() {
  568. try {
  569. return g.activeElement;
  570. } catch (a) {
  571. return null;
  572. }
  573. }, Kb = function(a, b) {
  574. var c, d, e, f = [];
  575. if ("string" == typeof b && b && (f = b.split(/\s+/)), a && 1 === a.nodeType && f.length > 0) if (a.classList) for (c = 0,
  576. d = f.length; d > c; c++) a.classList.add(f[c]); else if (a.hasOwnProperty("className")) {
  577. for (e = " " + a.className + " ", c = 0, d = f.length; d > c; c++) -1 === e.indexOf(" " + f[c] + " ") && (e += f[c] + " ");
  578. a.className = e.replace(/^\s+|\s+$/g, "");
  579. }
  580. return a;
  581. }, Lb = function(a, b) {
  582. var c, d, e, f = [];
  583. if ("string" == typeof b && b && (f = b.split(/\s+/)), a && 1 === a.nodeType && f.length > 0) if (a.classList && a.classList.length > 0) for (c = 0,
  584. d = f.length; d > c; c++) a.classList.remove(f[c]); else if (a.className) {
  585. for (e = (" " + a.className + " ").replace(/[\r\n\t]/g, " "), c = 0, d = f.length; d > c; c++) e = e.replace(" " + f[c] + " ", " ");
  586. a.className = e.replace(/^\s+|\s+$/g, "");
  587. }
  588. return a;
  589. }, Mb = function(a, b) {
  590. var c = m(a, null).getPropertyValue(b);
  591. return "cursor" !== b || c && "auto" !== c || "A" !== a.nodeName ? c : "pointer";
  592. }, Nb = function(a) {
  593. var b = {
  594. left: 0,
  595. top: 0,
  596. width: 0,
  597. height: 0
  598. };
  599. if (a.getBoundingClientRect) {
  600. var c = a.getBoundingClientRect(), d = f.pageXOffset, e = f.pageYOffset, h = g.documentElement.clientLeft || 0, i = g.documentElement.clientTop || 0, j = 0, k = 0;
  601. if ("relative" === Mb(g.body, "position")) {
  602. var l = g.body.getBoundingClientRect(), m = g.documentElement.getBoundingClientRect();
  603. j = l.left - m.left || 0, k = l.top - m.top || 0;
  604. }
  605. b.left = c.left + d - h - j, b.top = c.top + e - i - k, b.width = "width" in c ? c.width : c.right - c.left,
  606. b.height = "height" in c ? c.height : c.bottom - c.top;
  607. }
  608. return b;
  609. }, Ob = function(a) {
  610. if (!a) return !1;
  611. var b = m(a, null), c = r(b.height) > 0, d = r(b.width) > 0, e = r(b.top) >= 0, f = r(b.left) >= 0, g = c && d && e && f, h = g ? null : Nb(a), i = "none" !== b.display && "collapse" !== b.visibility && (g || !!h && (c || h.height > 0) && (d || h.width > 0) && (e || h.top >= 0) && (f || h.left >= 0));
  612. return i;
  613. }, Pb = function() {
  614. j(S), S = 0, l(T), T = 0;
  615. }, Qb = function() {
  616. var a;
  617. if (d && (a = Ab(N.bridge))) {
  618. var b = Nb(d);
  619. A(a.style, {
  620. width: b.width + "px",
  621. height: b.height + "px",
  622. top: b.top + "px",
  623. left: b.left + "px",
  624. zIndex: "" + Sb(Z.zIndex)
  625. });
  626. }
  627. }, Rb = function(a) {
  628. N.ready === !0 && (N.bridge && "function" == typeof N.bridge.setHandCursor ? N.bridge.setHandCursor(a) : N.ready = !1);
  629. }, Sb = function(a) {
  630. if (/^(?:auto|inherit)$/.test(a)) return a;
  631. var b;
  632. return "number" != typeof a || s(a) ? "string" == typeof a && (b = Sb(q(a, 10))) : b = a,
  633. "number" == typeof b ? b : "auto";
  634. }, Tb = function(b) {
  635. var c, d, e, f = N.sandboxed, g = null;
  636. if (b = b === !0, M === !1) g = !1; else {
  637. try {
  638. d = a.frameElement || null;
  639. } catch (h) {
  640. e = {
  641. name: h.name,
  642. message: h.message
  643. };
  644. }
  645. if (d && 1 === d.nodeType && "IFRAME" === d.nodeName) try {
  646. g = d.hasAttribute("sandbox");
  647. } catch (h) {
  648. g = null;
  649. } else {
  650. try {
  651. c = document.domain || null;
  652. } catch (h) {
  653. c = null;
  654. }
  655. (null === c || e && "SecurityError" === e.name && /(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(e.message.toLowerCase())) && (g = !0);
  656. }
  657. }
  658. return N.sandboxed = g, f === g || b || Ub(o), g;
  659. }, Ub = function(a) {
  660. function b(a) {
  661. var b = a.match(/[\d]+/g);
  662. return b.length = 3, b.join(".");
  663. }
  664. function c(a) {
  665. return !!a && (a = a.toLowerCase()) && (/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(a) || "chrome.plugin" === a.slice(-13));
  666. }
  667. function d(a) {
  668. a && (i = !0, a.version && (l = b(a.version)), !l && a.description && (l = b(a.description)),
  669. a.filename && (k = c(a.filename)));
  670. }
  671. var e, f, g, i = !1, j = !1, k = !1, l = "";
  672. if (h.plugins && h.plugins.length) e = h.plugins["Shockwave Flash"], d(e), h.plugins["Shockwave Flash 2.0"] && (i = !0,
  673. l = "2.0.0.11"); else if (h.mimeTypes && h.mimeTypes.length) g = h.mimeTypes["application/x-shockwave-flash"],
  674. e = g && g.enabledPlugin, d(e); else if ("undefined" != typeof a) {
  675. j = !0;
  676. try {
  677. f = new a("ShockwaveFlash.ShockwaveFlash.7"), i = !0, l = b(f.GetVariable("$version"));
  678. } catch (m) {
  679. try {
  680. f = new a("ShockwaveFlash.ShockwaveFlash.6"), i = !0, l = "6.0.21";
  681. } catch (n) {
  682. try {
  683. f = new a("ShockwaveFlash.ShockwaveFlash"), i = !0, l = b(f.GetVariable("$version"));
  684. } catch (o) {
  685. j = !1;
  686. }
  687. }
  688. }
  689. }
  690. N.disabled = i !== !0, N.outdated = l && r(l) < r(O), N.version = l || "0.0.0",
  691. N.pluginType = k ? "pepper" : j ? "activex" : i ? "netscape" : "unknown";
  692. };
  693. Ub(o), Tb(!0);
  694. var Vb = function() {
  695. return this instanceof Vb ? void ("function" == typeof Vb._createClient && Vb._createClient.apply(this, z(arguments))) : new Vb();
  696. };
  697. v(Vb, "version", {
  698. value: "2.2.0",
  699. writable: !1,
  700. configurable: !0,
  701. enumerable: !0
  702. }), Vb.config = function() {
  703. return $.apply(this, z(arguments));
  704. }, Vb.state = function() {
  705. return _.apply(this, z(arguments));
  706. }, Vb.isFlashUnusable = function() {
  707. return ab.apply(this, z(arguments));
  708. }, Vb.on = function() {
  709. return bb.apply(this, z(arguments));
  710. }, Vb.off = function() {
  711. return cb.apply(this, z(arguments));
  712. }, Vb.handlers = function() {
  713. return db.apply(this, z(arguments));
  714. }, Vb.emit = function() {
  715. return eb.apply(this, z(arguments));
  716. }, Vb.create = function() {
  717. return fb.apply(this, z(arguments));
  718. }, Vb.destroy = function() {
  719. return gb.apply(this, z(arguments));
  720. }, Vb.setData = function() {
  721. return hb.apply(this, z(arguments));
  722. }, Vb.clearData = function() {
  723. return ib.apply(this, z(arguments));
  724. }, Vb.getData = function() {
  725. return jb.apply(this, z(arguments));
  726. }, Vb.focus = Vb.activate = function() {
  727. return kb.apply(this, z(arguments));
  728. }, Vb.blur = Vb.deactivate = function() {
  729. alert(2)
  730. return lb.apply(this, z(arguments));
  731. }, Vb.activeElement = function() {
  732. return mb.apply(this, z(arguments));
  733. };
  734. var Wb = 0, Xb = {}, Yb = 0, Zb = {}, $b = {};
  735. A(Z, {
  736. autoActivate: !0
  737. });
  738. var _b = function(a) {
  739. var b = this;
  740. b.id = "" + Wb++, Xb[b.id] = {
  741. instance: b,
  742. elements: [],
  743. handlers: {}
  744. }, a && b.clip(a), Vb.on("*", function(a) {
  745. return b.emit(a);
  746. }), Vb.on("destroy", function() {
  747. b.destroy();
  748. }), Vb.create();
  749. }, ac = function(a, d) {
  750. var e, f, g, h = {}, i = Xb[this.id], j = i && i.handlers;
  751. if (!i) throw new Error("Attempted to add new listener(s) to a destroyed ZeroClipboard client instance");
  752. if ("string" == typeof a && a) g = a.toLowerCase().split(/\s+/); else if ("object" == typeof a && a && "undefined" == typeof d) for (e in a) w.call(a, e) && "string" == typeof e && e && "function" == typeof a[e] && this.on(e, a[e]);
  753. if (g && g.length) {
  754. for (e = 0, f = g.length; f > e; e++) a = g[e].replace(/^on/, ""), h[a] = !0, j[a] || (j[a] = []),
  755. j[a].push(d);
  756. if (h.ready && N.ready && this.emit({
  757. type: "ready",
  758. client: this
  759. }), h.error) {
  760. for (e = 0, f = W.length; f > e; e++) if (N[W[e].replace(/^flash-/, "")]) {
  761. this.emit({
  762. type: "error",
  763. name: W[e],
  764. client: this
  765. });
  766. break;
  767. }
  768. c !== b && Vb.version !== c && this.emit({
  769. type: "error",
  770. name: "version-mismatch",
  771. jsVersion: Vb.version,
  772. swfVersion: c
  773. });
  774. }
  775. }
  776. return this;
  777. }, bc = function(a, b) {
  778. var c, d, e, f, g, h = Xb[this.id], i = h && h.handlers;
  779. if (!i) return this;
  780. if (0 === arguments.length) f = u(i); else if ("string" == typeof a && a) f = a.split(/\s+/); else if ("object" == typeof a && a && "undefined" == typeof b) for (c in a) w.call(a, c) && "string" == typeof c && c && "function" == typeof a[c] && this.off(c, a[c]);
  781. if (f && f.length) for (c = 0, d = f.length; d > c; c++) if (a = f[c].toLowerCase().replace(/^on/, ""),
  782. g = i[a], g && g.length) if (b) for (e = g.indexOf(b); -1 !== e; ) g.splice(e, 1),
  783. e = g.indexOf(b, e); else g.length = 0;
  784. return this;
  785. }, cc = function(a) {
  786. var b = null, c = Xb[this.id] && Xb[this.id].handlers;
  787. return c && (b = "string" == typeof a && a ? c[a] ? c[a].slice(0) : [] : B(c)),
  788. b;
  789. }, dc = function(a) {
  790. if (ic.call(this, a)) {
  791. "object" == typeof a && a && "string" == typeof a.type && a.type && (a = A({}, a));
  792. var b = A({}, ob(a), {
  793. client: this
  794. });
  795. jc.call(this, b);
  796. }
  797. return this;
  798. }, ec = function(a) {
  799. if (!Xb[this.id]) throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");
  800. a = kc(a);
  801. for (var b = 0; b < a.length; b++) if (w.call(a, b) && a[b] && 1 === a[b].nodeType) {
  802. a[b].zcClippingId ? -1 === Zb[a[b].zcClippingId].indexOf(this.id) && Zb[a[b].zcClippingId].push(this.id) : (a[b].zcClippingId = "zcClippingId_" + Yb++,
  803. Zb[a[b].zcClippingId] = [ this.id ], Z.autoActivate === !0 && lc(a[b]));
  804. var c = Xb[this.id] && Xb[this.id].elements;
  805. -1 === c.indexOf(a[b]) && c.push(a[b]);
  806. }
  807. return this;
  808. }, fc = function(a) {
  809. var b = Xb[this.id];
  810. if (!b) return this;
  811. var c, d = b.elements;
  812. a = "undefined" == typeof a ? d.slice(0) : kc(a);
  813. for (var e = a.length; e--; ) if (w.call(a, e) && a[e] && 1 === a[e].nodeType) {
  814. for (c = 0; -1 !== (c = d.indexOf(a[e], c)); ) d.splice(c, 1);
  815. var f = Zb[a[e].zcClippingId];
  816. if (f) {
  817. for (c = 0; -1 !== (c = f.indexOf(this.id, c)); ) f.splice(c, 1);
  818. 0 === f.length && (Z.autoActivate === !0 && mc(a[e]), delete a[e].zcClippingId);
  819. }
  820. }
  821. return this;
  822. }, gc = function() {
  823. var a = Xb[this.id];
  824. return a && a.elements ? a.elements.slice(0) : [];
  825. }, hc = function() {
  826. Xb[this.id] && (this.unclip(), this.off(), delete Xb[this.id]);
  827. }, ic = function(a) {
  828. if (!a || !a.type) return !1;
  829. if (a.client && a.client !== this) return !1;
  830. var b = Xb[this.id], c = b && b.elements, d = !!c && c.length > 0, e = !a.target || d && -1 !== c.indexOf(a.target), f = a.relatedTarget && d && -1 !== c.indexOf(a.relatedTarget), g = a.client && a.client === this;
  831. return b && (e || f || g) ? !0 : !1;
  832. }, jc = function(a) {
  833. var b = Xb[this.id];
  834. if ("object" == typeof a && a && a.type && b) {
  835. var c = rb(a), d = b && b.handlers["*"] || [], e = b && b.handlers[a.type] || [], g = d.concat(e);
  836. if (g && g.length) {
  837. var h, i, j, k, l, m = this;
  838. for (h = 0, i = g.length; i > h; h++) j = g[h], k = m, "string" == typeof j && "function" == typeof f[j] && (j = f[j]),
  839. "object" == typeof j && j && "function" == typeof j.handleEvent && (k = j, j = j.handleEvent),
  840. "function" == typeof j && (l = A({}, a), sb(j, k, [ l ], c));
  841. }
  842. }
  843. }, kc = function(a) {
  844. return "string" == typeof a && (a = []), "number" != typeof a.length ? [ a ] : a;
  845. }, lc = function(a) {
  846. if (a && 1 === a.nodeType) {
  847. var b = function(a) {
  848. (a || (a = f.event)) && ("js" !== a._source && (a.stopImmediatePropagation(), a.preventDefault()),
  849. delete a._source);
  850. }, c = function(c) {
  851. (c || (c = f.event)) && (b(c), Vb.focus(a));
  852. };
  853. a.addEventListener("mouseover", c, !1), a.addEventListener("mouseout", b, !1), a.addEventListener("mouseenter", b, !1),
  854. a.addEventListener("mouseleave", b, !1), a.addEventListener("mousemove", b, !1),
  855. $b[a.zcClippingId] = {
  856. mouseover: c,
  857. mouseout: b,
  858. mouseenter: b,
  859. mouseleave: b,
  860. mousemove: b
  861. };
  862. }
  863. }, mc = function(a) {
  864. if (a && 1 === a.nodeType) {
  865. var b = $b[a.zcClippingId];
  866. if ("object" == typeof b && b) {
  867. for (var c, d, e = [ "move", "leave", "enter", "out", "over" ], f = 0, g = e.length; g > f; f++) c = "mouse" + e[f],
  868. d = b[c], "function" == typeof d && a.removeEventListener(c, d, !1);
  869. delete $b[a.zcClippingId];
  870. }
  871. }
  872. };
  873. Vb._createClient = function() {
  874. _b.apply(this, z(arguments));
  875. }, Vb.prototype.on = function() {
  876. return ac.apply(this, z(arguments));
  877. }, Vb.prototype.off = function() {
  878. return bc.apply(this, z(arguments));
  879. }, Vb.prototype.handlers = function() {
  880. return cc.apply(this, z(arguments));
  881. }, Vb.prototype.emit = function() {
  882. return dc.apply(this, z(arguments));
  883. }, Vb.prototype.clip = function() {
  884. return ec.apply(this, z(arguments));
  885. }, Vb.prototype.unclip = function() {
  886. return fc.apply(this, z(arguments));
  887. }, Vb.prototype.elements = function() {
  888. return gc.apply(this, z(arguments));
  889. }, Vb.prototype.destroy = function() {
  890. return hc.apply(this, z(arguments));
  891. }, Vb.prototype.setText = function(a) {
  892. if (!Xb[this.id]) throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");
  893. return Vb.setData("text/plain", a), this;
  894. }, Vb.prototype.setHtml = function(a) {
  895. if (!Xb[this.id]) throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");
  896. return Vb.setData("text/html", a), this;
  897. }, Vb.prototype.setRichText = function(a) {
  898. if (!Xb[this.id]) throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");
  899. return Vb.setData("application/rtf", a), this;
  900. }, Vb.prototype.setData = function() {
  901. if (!Xb[this.id]) throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");
  902. return Vb.setData.apply(this, z(arguments)), this;
  903. }, Vb.prototype.clearData = function() {
  904. if (!Xb[this.id]) throw new Error("Attempted to clear pending clipboard data from a destroyed ZeroClipboard client instance");
  905. return Vb.clearData.apply(this, z(arguments)), this;
  906. }, Vb.prototype.getData = function() {
  907. if (!Xb[this.id]) throw new Error("Attempted to get pending clipboard data from a destroyed ZeroClipboard client instance");
  908. return Vb.getData.apply(this, z(arguments));
  909. }, "function" == typeof define && define.amd ? define(function() {
  910. return Vb;
  911. }) : "object" == typeof module && module && "object" == typeof module.exports && module.exports ? module.exports = Vb : a.ZeroClipboard = Vb;
  912. }(function() {
  913. return this || window;
  914. }());