require.js 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799
  1. /*
  2. RequireJS 2.1.11 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
  3. Available via the MIT or new BSD license.
  4. see: http://github.com/jrburke/requirejs for details
  5. */
  6. var requirejs, require, define;
  7. (function (ca) {
  8. function G(b) {
  9. return "[object Function]" === M.call(b)
  10. }
  11. function H(b) {
  12. return "[object Array]" === M.call(b)
  13. }
  14. function v(b, c) {
  15. if (b) {
  16. var d;
  17. for (d = 0; d < b.length && (!b[d] || !c(b[d], d, b)); d += 1) ;
  18. }
  19. }
  20. function U(b, c) {
  21. if (b) {
  22. var d;
  23. for (d = b.length - 1; -1 < d && (!b[d] || !c(b[d], d, b)); d -= 1) ;
  24. }
  25. }
  26. function s(b, c) {
  27. return ga.call(b, c)
  28. }
  29. function j(b, c) {
  30. return s(b, c) && b[c]
  31. }
  32. function B(b, c) {
  33. for (var d in b) if (s(b, d) && c(b[d], d)) break
  34. }
  35. function V(b, c, d, g) {
  36. c && B(c, function (c, h) {
  37. if (d || !s(b, h)) g && "object" === typeof c && c && !H(c) && !G(c) && !(c instanceof
  38. RegExp) ? (b[h] || (b[h] = {}), V(b[h], c, d, g)) : b[h] = c
  39. });
  40. return b
  41. }
  42. function t(b, c) {
  43. return function () {
  44. return c.apply(b, arguments)
  45. }
  46. }
  47. function da(b) {
  48. throw b;
  49. }
  50. function ea(b) {
  51. if (!b) return b;
  52. var c = ca;
  53. v(b.split("."), function (b) {
  54. c = c[b]
  55. });
  56. return c
  57. }
  58. function C(b, c, d, g) {
  59. c = Error(c + "\nhttp://requirejs.org/docs/errors.html#" + b);
  60. c.requireType = b;
  61. c.requireModules = g;
  62. d && (c.originalError = d);
  63. return c
  64. }
  65. function ha(b) {
  66. function c(a, e, b) {
  67. var f, n, c, d, g, h, i, I = e && e.split("/");
  68. n = I;
  69. var m = l.map, k = m && m["*"];
  70. if (a && "." === a.charAt(0)) if (e) {
  71. n =
  72. I.slice(0, I.length - 1);
  73. a = a.split("/");
  74. e = a.length - 1;
  75. l.nodeIdCompat && R.test(a[e]) && (a[e] = a[e].replace(R, ""));
  76. n = a = n.concat(a);
  77. d = n.length;
  78. for (e = 0; e < d; e++) if (c = n[e], "." === c) n.splice(e, 1), e -= 1; else if (".." === c) if (1 === e && (".." === n[2] || ".." === n[0])) break; else 0 < e && (n.splice(e - 1, 2), e -= 2);
  79. a = a.join("/")
  80. } else 0 === a.indexOf("./") && (a = a.substring(2));
  81. if (b && m && (I || k)) {
  82. n = a.split("/");
  83. e = n.length;
  84. a:for (; 0 < e; e -= 1) {
  85. d = n.slice(0, e).join("/");
  86. if (I) for (c = I.length; 0 < c; c -= 1) if (b = j(m, I.slice(0, c).join("/"))) if (b = j(b, d)) {
  87. f = b;
  88. g = e;
  89. break a
  90. }
  91. !h && (k && j(k, d)) && (h = j(k, d), i = e)
  92. }
  93. !f && h && (f = h, g = i);
  94. f && (n.splice(0, g, f), a = n.join("/"))
  95. }
  96. return (f = j(l.pkgs, a)) ? f : a
  97. }
  98. function d(a) {
  99. z && v(document.getElementsByTagName("script"), function (e) {
  100. if (e.getAttribute("data-requiremodule") === a && e.getAttribute("data-requirecontext") === i.contextName) return e.parentNode.removeChild(e), !0
  101. })
  102. }
  103. function g(a) {
  104. var e = j(l.paths, a);
  105. if (e && H(e) && 1 < e.length) return e.shift(), i.require.undef(a), i.require([a]), !0
  106. }
  107. function u(a) {
  108. var e, b = a ? a.indexOf("!") : -1;
  109. -1 < b && (e = a.substring(0,
  110. b), a = a.substring(b + 1, a.length));
  111. return [e, a]
  112. }
  113. function m(a, e, b, f) {
  114. var n, d, g = null, h = e ? e.name : null, l = a, m = !0, k = "";
  115. a || (m = !1, a = "_@r" + (M += 1));
  116. a = u(a);
  117. g = a[0];
  118. a = a[1];
  119. g && (g = c(g, h, f), d = j(p, g));
  120. a && (g ? k = d && d.normalize ? d.normalize(a, function (a) {
  121. return c(a, h, f)
  122. }) : c(a, h, f) : (k = c(a, h, f), a = u(k), g = a[0], k = a[1], b = !0, n = i.nameToUrl(k)));
  123. b = g && !d && !b ? "_unnormalized" + (Q += 1) : "";
  124. return {
  125. prefix: g,
  126. name: k,
  127. parentMap: e,
  128. unnormalized: !!b,
  129. url: n,
  130. originalName: l,
  131. isDefine: m,
  132. id: (g ? g + "!" + k : k) + b
  133. }
  134. }
  135. function q(a) {
  136. var e = a.id, b = j(k, e);
  137. b || (b = k[e] = new i.Module(a));
  138. return b
  139. }
  140. function r(a, e, b) {
  141. var f = a.id, n = j(k, f);
  142. if (s(p, f) && (!n || n.defineEmitComplete)) "defined" === e && b(p[f]); else if (n = q(a), n.error && "error" === e) b(n.error); else n.on(e, b)
  143. }
  144. function w(a, e) {
  145. var b = a.requireModules, f = !1;
  146. if (e) e(a); else if (v(b, function (e) {
  147. if (e = j(k, e)) e.error = a, e.events.error && (f = !0, e.emit("error", a))
  148. }), !f) h.onError(a)
  149. }
  150. function x() {
  151. S.length && (ia.apply(A, [A.length, 0].concat(S)), S = [])
  152. }
  153. function y(a) {
  154. delete k[a];
  155. delete W[a]
  156. }
  157. function F(a, e, b) {
  158. var f = a.map.id;
  159. a.error ? a.emit("error", a.error) : (e[f] =
  160. !0, v(a.depMaps, function (f, c) {
  161. var d = f.id, g = j(k, d);
  162. g && (!a.depMatched[c] && !b[d]) && (j(e, d) ? (a.defineDep(c, p[d]), a.check()) : F(g, e, b))
  163. }), b[f] = !0)
  164. }
  165. function D() {
  166. var a, e, b = (a = 1E3 * l.waitSeconds) && i.startTime + a < (new Date).getTime(), f = [], c = [], h = !1,
  167. k = !0;
  168. if (!X) {
  169. X = !0;
  170. B(W, function (a) {
  171. var i = a.map, m = i.id;
  172. if (a.enabled && (i.isDefine || c.push(a), !a.error)) if (!a.inited && b) g(m) ? h = e = !0 : (f.push(m), d(m)); else if (!a.inited && (a.fetched && i.isDefine) && (h = !0, !i.prefix)) return k = !1
  173. });
  174. if (b && f.length) return a = C("timeout", "Load timeout for modules: " +
  175. f, null, f), a.contextName = i.contextName, w(a);
  176. k && v(c, function (a) {
  177. F(a, {}, {})
  178. });
  179. if ((!b || e) && h) if ((z || fa) && !Y) Y = setTimeout(function () {
  180. Y = 0;
  181. D()
  182. }, 50);
  183. X = !1
  184. }
  185. }
  186. function E(a) {
  187. s(p, a[0]) || q(m(a[0], null, !0)).init(a[1], a[2])
  188. }
  189. function K(a) {
  190. var a = a.currentTarget || a.srcElement, e = i.onScriptLoad;
  191. a.detachEvent && !Z ? a.detachEvent("onreadystatechange", e) : a.removeEventListener("load", e, !1);
  192. e = i.onScriptError;
  193. (!a.detachEvent || Z) && a.removeEventListener("error", e, !1);
  194. return {node: a, id: a && a.getAttribute("data-requiremodule")}
  195. }
  196. function L() {
  197. var a;
  198. for (x(); A.length;) {
  199. a = A.shift();
  200. if (null === a[0]) return w(C("mismatch", "Mismatched anonymous define() module: " + a[a.length - 1]));
  201. E(a)
  202. }
  203. }
  204. var X, $, i, N, Y, l = {waitSeconds: 7, baseUrl: "./", paths: {}, bundles: {}, pkgs: {}, shim: {}, config: {}},
  205. k = {}, W = {}, aa = {}, A = [], p = {}, T = {}, ba = {}, M = 1, Q = 1;
  206. N = {
  207. require: function (a) {
  208. return a.require ? a.require : a.require = i.makeRequire(a.map)
  209. }, exports: function (a) {
  210. a.usingExports = !0;
  211. if (a.map.isDefine) return a.exports ? p[a.map.id] = a.exports : a.exports = p[a.map.id] = {}
  212. }, module: function (a) {
  213. return a.module ?
  214. a.module : a.module = {
  215. id: a.map.id, uri: a.map.url, config: function () {
  216. return j(l.config, a.map.id) || {}
  217. }, exports: a.exports || (a.exports = {})
  218. }
  219. }
  220. };
  221. $ = function (a) {
  222. this.events = j(aa, a.id) || {};
  223. this.map = a;
  224. this.shim = j(l.shim, a.id);
  225. this.depExports = [];
  226. this.depMaps = [];
  227. this.depMatched = [];
  228. this.pluginMaps = {};
  229. this.depCount = 0
  230. };
  231. $.prototype = {
  232. init: function (a, e, b, f) {
  233. f = f || {};
  234. if (!this.inited) {
  235. this.factory = e;
  236. if (b) this.on("error", b); else this.events.error && (b = t(this, function (a) {
  237. this.emit("error", a)
  238. }));
  239. this.depMaps = a && a.slice(0);
  240. this.errback =
  241. b;
  242. this.inited = !0;
  243. this.ignore = f.ignore;
  244. f.enabled || this.enabled ? this.enable() : this.check()
  245. }
  246. }, defineDep: function (a, e) {
  247. this.depMatched[a] || (this.depMatched[a] = !0, this.depCount -= 1, this.depExports[a] = e)
  248. }, fetch: function () {
  249. if (!this.fetched) {
  250. this.fetched = !0;
  251. i.startTime = (new Date).getTime();
  252. var a = this.map;
  253. if (this.shim) i.makeRequire(this.map, {enableBuildCallback: !0})(this.shim.deps || [], t(this, function () {
  254. return a.prefix ? this.callPlugin() : this.load()
  255. })); else return a.prefix ? this.callPlugin() : this.load()
  256. }
  257. }, load: function () {
  258. var a =
  259. this.map.url;
  260. T[a] || (T[a] = !0, i.load(this.map.id, a))
  261. }, check: function () {
  262. if (this.enabled && !this.enabling) {
  263. var a, e, b = this.map.id;
  264. e = this.depExports;
  265. var f = this.exports, c = this.factory;
  266. if (this.inited) if (this.error) this.emit("error", this.error); else {
  267. if (!this.defining) {
  268. this.defining = !0;
  269. if (1 > this.depCount && !this.defined) {
  270. if (G(c)) {
  271. if (this.events.error && this.map.isDefine || h.onError !== da) try {
  272. f = i.execCb(b, c, e, f)
  273. } catch (d) {
  274. a = d
  275. } else f = i.execCb(b, c, e, f);
  276. this.map.isDefine && void 0 === f && ((e = this.module) ? f = e.exports : this.usingExports &&
  277. (f = this.exports));
  278. if (a) return a.requireMap = this.map, a.requireModules = this.map.isDefine ? [this.map.id] : null, a.requireType = this.map.isDefine ? "define" : "require", w(this.error = a)
  279. } else f = c;
  280. this.exports = f;
  281. if (this.map.isDefine && !this.ignore && (p[b] = f, h.onResourceLoad)) h.onResourceLoad(i, this.map, this.depMaps);
  282. y(b);
  283. this.defined = !0
  284. }
  285. this.defining = !1;
  286. this.defined && !this.defineEmitted && (this.defineEmitted = !0, this.emit("defined", this.exports), this.defineEmitComplete = !0)
  287. }
  288. } else this.fetch()
  289. }
  290. }, callPlugin: function () {
  291. var a =
  292. this.map, b = a.id, d = m(a.prefix);
  293. this.depMaps.push(d);
  294. r(d, "defined", t(this, function (f) {
  295. var d, g;
  296. g = j(ba, this.map.id);
  297. var J = this.map.name, u = this.map.parentMap ? this.map.parentMap.name : null,
  298. p = i.makeRequire(a.parentMap, {enableBuildCallback: !0});
  299. if (this.map.unnormalized) {
  300. if (f.normalize && (J = f.normalize(J, function (a) {
  301. return c(a, u, !0)
  302. }) || ""), f = m(a.prefix + "!" + J, this.map.parentMap), r(f, "defined", t(this, function (a) {
  303. this.init([], function () {
  304. return a
  305. }, null, {enabled: !0, ignore: !0})
  306. })), g = j(k, f.id)) {
  307. this.depMaps.push(f);
  308. if (this.events.error) g.on("error", t(this, function (a) {
  309. this.emit("error", a)
  310. }));
  311. g.enable()
  312. }
  313. } else g ? (this.map.url = i.nameToUrl(g), this.load()) : (d = t(this, function (a) {
  314. this.init([], function () {
  315. return a
  316. }, null, {enabled: !0})
  317. }), d.error = t(this, function (a) {
  318. this.inited = !0;
  319. this.error = a;
  320. a.requireModules = [b];
  321. B(k, function (a) {
  322. 0 === a.map.id.indexOf(b + "_unnormalized") && y(a.map.id)
  323. });
  324. w(a)
  325. }), d.fromText = t(this, function (f, c) {
  326. var g = a.name, J = m(g), k = O;
  327. c && (f = c);
  328. k && (O = !1);
  329. q(J);
  330. s(l.config, b) && (l.config[g] = l.config[b]);
  331. try {
  332. h.exec(f)
  333. } catch (j) {
  334. return w(C("fromtexteval",
  335. "fromText eval for " + b + " failed: " + j, j, [b]))
  336. }
  337. k && (O = !0);
  338. this.depMaps.push(J);
  339. i.completeLoad(g);
  340. p([g], d)
  341. }), f.load(a.name, p, d, l))
  342. }));
  343. i.enable(d, this);
  344. this.pluginMaps[d.id] = d
  345. }, enable: function () {
  346. W[this.map.id] = this;
  347. this.enabling = this.enabled = !0;
  348. v(this.depMaps, t(this, function (a, b) {
  349. var c, f;
  350. if ("string" === typeof a) {
  351. a = m(a, this.map.isDefine ? this.map : this.map.parentMap, !1, !this.skipMap);
  352. this.depMaps[b] = a;
  353. if (c = j(N, a.id)) {
  354. this.depExports[b] = c(this);
  355. return
  356. }
  357. this.depCount += 1;
  358. r(a, "defined", t(this, function (a) {
  359. this.defineDep(b,
  360. a);
  361. this.check()
  362. }));
  363. this.errback && r(a, "error", t(this, this.errback))
  364. }
  365. c = a.id;
  366. f = k[c];
  367. !s(N, c) && (f && !f.enabled) && i.enable(a, this)
  368. }));
  369. B(this.pluginMaps, t(this, function (a) {
  370. var b = j(k, a.id);
  371. b && !b.enabled && i.enable(a, this)
  372. }));
  373. this.enabling = !1;
  374. this.check()
  375. }, on: function (a, b) {
  376. var c = this.events[a];
  377. c || (c = this.events[a] = []);
  378. c.push(b)
  379. }, emit: function (a, b) {
  380. v(this.events[a], function (a) {
  381. a(b)
  382. });
  383. "error" === a && delete this.events[a]
  384. }
  385. };
  386. i = {
  387. config: l, contextName: b, registry: k, defined: p, urlFetched: T, defQueue: A, Module: $, makeModuleMap: m,
  388. nextTick: h.nextTick, onError: w, configure: function (a) {
  389. a.baseUrl && "/" !== a.baseUrl.charAt(a.baseUrl.length - 1) && (a.baseUrl += "/");
  390. var b = l.shim, c = {paths: !0, bundles: !0, config: !0, map: !0};
  391. B(a, function (a, b) {
  392. c[b] ? (l[b] || (l[b] = {}), V(l[b], a, !0, !0)) : l[b] = a
  393. });
  394. a.bundles && B(a.bundles, function (a, b) {
  395. v(a, function (a) {
  396. a !== b && (ba[a] = b)
  397. })
  398. });
  399. a.shim && (B(a.shim, function (a, c) {
  400. H(a) && (a = {deps: a});
  401. if ((a.exports || a.init) && !a.exportsFn) a.exportsFn = i.makeShimExports(a);
  402. b[c] = a
  403. }), l.shim = b);
  404. a.packages && v(a.packages, function (a) {
  405. var b,
  406. a = "string" === typeof a ? {name: a} : a;
  407. b = a.name;
  408. a.location && (l.paths[b] = a.location);
  409. l.pkgs[b] = a.name + "/" + (a.main || "main").replace(ja, "").replace(R, "")
  410. });
  411. B(k, function (a, b) {
  412. !a.inited && !a.map.unnormalized && (a.map = m(b))
  413. });
  414. if (a.deps || a.callback) i.require(a.deps || [], a.callback)
  415. }, makeShimExports: function (a) {
  416. return function () {
  417. var b;
  418. a.init && (b = a.init.apply(ca, arguments));
  419. return b || a.exports && ea(a.exports)
  420. }
  421. }, makeRequire: function (a, e) {
  422. function g(f, c, d) {
  423. var j, l;
  424. e.enableBuildCallback && (c && G(c)) && (c.__requireJsBuild =
  425. !0);
  426. if ("string" === typeof f) {
  427. if (G(c)) return w(C("requireargs", "Invalid require call"), d);
  428. if (a && s(N, f)) return N[f](k[a.id]);
  429. if (h.get) return h.get(i, f, a, g);
  430. j = m(f, a, !1, !0);
  431. j = j.id;
  432. return !s(p, j) ? w(C("notloaded", 'Module name "' + j + '" has not been loaded yet for context: ' + b + (a ? "" : ". Use require([])"))) : p[j]
  433. }
  434. L();
  435. i.nextTick(function () {
  436. L();
  437. l = q(m(null, a));
  438. l.skipMap = e.skipMap;
  439. l.init(f, c, d, {enabled: !0});
  440. D()
  441. });
  442. return g
  443. }
  444. e = e || {};
  445. V(g, {
  446. isBrowser: z, toUrl: function (b) {
  447. var e, d = b.lastIndexOf("."), g = b.split("/")[0];
  448. if (-1 !==
  449. d && (!("." === g || ".." === g) || 1 < d)) e = b.substring(d, b.length), b = b.substring(0, d);
  450. return i.nameToUrl(c(b, a && a.id, !0), e, !0)
  451. }, defined: function (b) {
  452. return s(p, m(b, a, !1, !0).id)
  453. }, specified: function (b) {
  454. b = m(b, a, !1, !0).id;
  455. return s(p, b) || s(k, b)
  456. }
  457. });
  458. a || (g.undef = function (b) {
  459. x();
  460. var c = m(b, a, !0), e = j(k, b);
  461. d(b);
  462. delete p[b];
  463. delete T[c.url];
  464. delete aa[b];
  465. U(A, function (a, c) {
  466. a[0] === b && A.splice(c, 1)
  467. });
  468. e && (e.events.defined && (aa[b] = e.events), y(b))
  469. });
  470. return g
  471. }, enable: function (a) {
  472. j(k, a.id) && q(a).enable()
  473. }, completeLoad: function (a) {
  474. var b,
  475. c, f = j(l.shim, a) || {}, d = f.exports;
  476. for (x(); A.length;) {
  477. c = A.shift();
  478. if (null === c[0]) {
  479. c[0] = a;
  480. if (b) break;
  481. b = !0
  482. } else c[0] === a && (b = !0);
  483. E(c)
  484. }
  485. c = j(k, a);
  486. if (!b && !s(p, a) && c && !c.inited) {
  487. if (l.enforceDefine && (!d || !ea(d))) return g(a) ? void 0 : w(C("nodefine", "No define call for " + a, null, [a]));
  488. E([a, f.deps || [], f.exportsFn])
  489. }
  490. D()
  491. }, nameToUrl: function (a, b, c) {
  492. var f, d, g;
  493. (f = j(l.pkgs, a)) && (a = f);
  494. if (f = j(ba, a)) return i.nameToUrl(f, b, c);
  495. if (h.jsExtRegExp.test(a)) f = a + (b || ""); else {
  496. f = l.paths;
  497. a = a.split("/");
  498. for (d = a.length; 0 < d; d -= 1) if (g = a.slice(0,
  499. d).join("/"), g = j(f, g)) {
  500. H(g) && (g = g[0]);
  501. a.splice(0, d, g);
  502. break
  503. }
  504. f = a.join("/");
  505. f += b || (/^data\:|\?/.test(f) || c ? "" : ".js");
  506. f = ("/" === f.charAt(0) || f.match(/^[\w\+\.\-]+:/) ? "" : l.baseUrl) + f
  507. }
  508. return l.urlArgs ? f + ((-1 === f.indexOf("?") ? "?" : "&") + l.urlArgs) : f
  509. }, load: function (a, b) {
  510. h.load(i, a, b)
  511. }, execCb: function (a, b, c, d) {
  512. return b.apply(d, c)
  513. }, onScriptLoad: function (a) {
  514. if ("load" === a.type || ka.test((a.currentTarget || a.srcElement).readyState)) P = null, a = K(a), i.completeLoad(a.id)
  515. }, onScriptError: function (a) {
  516. var b = K(a);
  517. if (!g(b.id)) return w(C("scripterror",
  518. "Script error for: " + b.id, a, [b.id]))
  519. }
  520. };
  521. i.require = i.makeRequire();
  522. return i
  523. }
  524. var h, x, y, D, K, E, P, L, q, Q, la = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
  525. ma = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g, R = /\.js$/, ja = /^\.\//;
  526. x = Object.prototype;
  527. var M = x.toString, ga = x.hasOwnProperty, ia = Array.prototype.splice,
  528. z = !!("undefined" !== typeof window && "undefined" !== typeof navigator && window.document),
  529. fa = !z && "undefined" !== typeof importScripts,
  530. ka = z && "PLAYSTATION 3" === navigator.platform ? /^complete$/ : /^(complete|loaded)$/,
  531. Z = "undefined" !== typeof opera && "[object Opera]" === opera.toString(), F = {}, r = {}, S = [], O = !1;
  532. if ("undefined" === typeof define) {
  533. if ("undefined" !== typeof requirejs) {
  534. if (G(requirejs)) return;
  535. r = requirejs;
  536. requirejs = void 0
  537. }
  538. "undefined" !== typeof require && !G(require) && (r = require, require = void 0);
  539. h = requirejs = function (b, c, d, g) {
  540. var u, m = "_";
  541. !H(b) && "string" !== typeof b && (u = b, H(c) ? (b = c, c = d, d = g) : b = []);
  542. u && u.context && (m = u.context);
  543. (g = j(F, m)) || (g = F[m] = h.s.newContext(m));
  544. u && g.configure(u);
  545. return g.require(b, c, d)
  546. };
  547. h.config = function (b) {
  548. return h(b)
  549. };
  550. h.nextTick = "undefined" !== typeof setTimeout ? function (b) {
  551. setTimeout(b, 4)
  552. } : function (b) {
  553. b()
  554. };
  555. require || (require = h);
  556. h.version = "2.1.11";
  557. h.jsExtRegExp = /^\/|:|\?|\.js$/;
  558. h.isBrowser = z;
  559. x = h.s = {contexts: F, newContext: ha};
  560. h({});
  561. v(["toUrl", "undef", "defined", "specified"], function (b) {
  562. h[b] = function () {
  563. var c = F._;
  564. return c.require[b].apply(c, arguments)
  565. }
  566. });
  567. if (z && (y = x.head = document.getElementsByTagName("head")[0], D = document.getElementsByTagName("base")[0])) y = x.head = D.parentNode;
  568. h.onError = da;
  569. h.createNode = function (b) {
  570. var c =
  571. b.xhtml ? document.createElementNS("http://www.w3.org/1999/xhtml", "html:script") : document.createElement("script");
  572. c.type = b.scriptType || "text/javascript";
  573. c.charset = "utf-8";
  574. c.async = !0;
  575. return c
  576. };
  577. h.load = function (b, c, d) {
  578. var g = b && b.config || {};
  579. if (z) return g = h.createNode(g, c, d), g.setAttribute("data-requirecontext", b.contextName), g.setAttribute("data-requiremodule", c), g.attachEvent && !(g.attachEvent.toString && 0 > g.attachEvent.toString().indexOf("[native code")) && !Z ? (O = !0, g.attachEvent("onreadystatechange", b.onScriptLoad)) :
  580. (g.addEventListener("load", b.onScriptLoad, !1), g.addEventListener("error", b.onScriptError, !1)), g.src = d, L = g, D ? y.insertBefore(g, D) : y.appendChild(g), L = null, g;
  581. if (fa) try {
  582. importScripts(d), b.completeLoad(c)
  583. } catch (j) {
  584. b.onError(C("importscripts", "importScripts failed for " + c + " at " + d, j, [c]))
  585. }
  586. };
  587. z && !r.skipDataMain && U(document.getElementsByTagName("script"), function (b) {
  588. y || (y = b.parentNode);
  589. if (K = b.getAttribute("data-main")) return q = K, r.baseUrl || (E = q.split("/"), q = E.pop(), Q = E.length ? E.join("/") + "/" : "./", r.baseUrl =
  590. Q), q = q.replace(R, ""), h.jsExtRegExp.test(q) && (q = K), r.deps = r.deps ? r.deps.concat(q) : [q], !0
  591. });
  592. define = function (b, c, d) {
  593. var g, h;
  594. "string" !== typeof b && (d = c, c = b, b = null);
  595. H(c) || (d = c, c = null);
  596. !c && G(d) && (c = [], d.length && (d.toString().replace(la, "").replace(ma, function (b, d) {
  597. c.push(d)
  598. }), c = (1 === d.length ? ["require"] : ["require", "exports", "module"]).concat(c)));
  599. if (O) {
  600. if (!(g = L)) P && "interactive" === P.readyState || U(document.getElementsByTagName("script"), function (b) {
  601. if ("interactive" === b.readyState) return P = b
  602. }), g = P;
  603. g && (b ||
  604. (b = g.getAttribute("data-requiremodule")), h = F[g.getAttribute("data-requirecontext")])
  605. }
  606. (h ? h.defQueue : S).push([b, c, d])
  607. };
  608. define.amd = {jQuery: !0};
  609. h.exec = function (b) {
  610. return eval(b)
  611. };
  612. h(r)
  613. }
  614. })(this);
  615. if (window.sysinfo.family == "v") {
  616. try {
  617. if (window.console && window.console.log) {
  618. console.log("\x25\x63\u6b22\u8fce\u4f7f\u7528\u5fae\u64ce\u516c\u4f17\u5e73\u53f0\u7ba1\u7406\u7cfb\u7edf\x20\x5e\x5f\x5e\x20\uff1a", "\x68\x65\x69\x67\x68\x74\x3a\x32\x35\x70\x78\x3b\x20\x6c\x69\x6e\x65\x2d\x68\x65\x69\x67\x68\x74\x3a\x32\x35\x70\x78\x3b");
  619. console.log("\x25\x63\x31\uff0c\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684\u516c\u4f17\u5e73\u53f0\u7ba1\u7406\u7cfb\u7edf\n\x32\uff0c\u57fa\u4e8e\u76ee\u524d\u6700\u6d41\u884c\u7684\x57\x45\x42\x32\x2e\x30\u7684\u67b6\u6784\uff08\x70\x68\x70\x2b\x6d\x79\x73\x71\x6c\uff09\n\x33\uff0c\u6e90\u7801\u900f\u660e\u3001\u5f00\u653e\uff0c\u4fdd\u8bc1\u72ec\u7acb\u6027\u3001\u5b89\u5168\u6027\u53ca\u53ef\u63a7\u6027\n\x34\uff0c\u62e5\u6709\u8d85\u5f3a\u7684\u6269\u5c55\u6027\u80fd\u548c\u6d3b\u8dc3\u7684\u7b2c\u4e09\u65b9\u5f00\u53d1\u8005\n\x35\uff0c\u826f\u597d\u7684\u5f00\u53d1\u6846\u67b6\u3001\u6587\u6863\uff0c\u8f7b\u677e\u6269\u5c55\u3001\u5b9a\u5236\u79c1\u6709\u529f\u80fd\n", "\x63\x6f\x6c\x6f\x72\x3a\x67\x72\x65\x65\x6e\x3b\x6c\x69\x6e\x65\x2d\x68\x65\x69\x67\x68\x74\x3a\x32\x35\x70\x78\x3b");
  620. console.log("\x25\x63\u5fae\u64ce\u5b98\u65b9\u7f51\u7ad9\uff1a\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x77\x65\x37\x2e\x63\x63", "\x63\x6f\x6c\x6f\x72\x3a\x72\x65\x64");
  621. console.log("\x25\x63\u5fae\u64ce\u5b98\u65b9\u8bba\u575b\uff1a\x68\x74\x74\x70\x3a\x2f\x2f\x62\x62\x73\x2e\x77\x65\x37\x2e\x63\x63", "\x63\x6f\x6c\x6f\x72\x3a\x62\x6c\x75\x65")
  622. }
  623. } catch (e) {
  624. }
  625. ;
  626. }
  627. var requireConfig = {
  628. baseUrl: 'resource/js/app',
  629. paths: {
  630. 'datetimepicker': '../../components/datetimepicker/jquery.datetimepicker',
  631. 'daterangepicker': '../../components/daterangepicker/daterangepicker',
  632. 'colorpicker': '../../components/colorpicker/spectrum',
  633. 'map': 'https://api.map.baidu.com/getscript?v=2.0&ak=F51571495f717ff1194de02366bb8da9&services=&t=20140530104353',
  634. 'qqmap': 'https://map.qq.com/api/js?v=2.exp',
  635. 'webuploader': '../../components/webuploader/webuploader.min',
  636. 'fileUploader': '../../components/fileuploader/fileuploader.min',
  637. 'clockpicker': '../../components/clockpicker/clockpicker.min',
  638. 'district': '../lib/district',
  639. 'moment': '../lib/moment',
  640. 'emoji': '../../components/emoji/emoji',
  641. 'fontawesome': '../../components/fontawesome/fontawesome',
  642. 'material': '../../components/fileuploader/fileuploader.min',
  643. 'trade': '../../components/trade/trade',
  644. 'hammer': '../lib/hammer.min',
  645. 'bootstrap.switch': '../../components/switch/bootstrap-switch.min',
  646. 'filestyle': '../lib/bootstrap-filestyle.min',
  647. 'validator': '../lib/bootstrapValidator.min',
  648. 'jquery.ui': '../lib/jquery-ui-1.10.3.min',
  649. 'jquery.caret': '../lib/jquery.caret',
  650. 'jquery.jplayer': '../../components/jplayer/jquery.jplayer.min',
  651. 'jquery.zclip': '../../components/zclip/jquery.zclip.min',
  652. 'jquery.wookmark': '../lib/jquery.wookmark.min',
  653. 'jquery.qrcode': '../lib/jquery.qrcode.min',
  654. 'underscore': '../lib/underscore-min',
  655. 'biz': '../lib/biz',
  656. 'swiper': '../../components/swiper/swiper.min',
  657. 'echarts': '../lib/echarts.min',
  658. // 滚动条
  659. 'slimscroll': '../lib/jquery.slimscroll.min',
  660. //兼容
  661. 'util': '../app/util',
  662. 'ueditor': '../../components/ueditor/ueditor.all.min',
  663. 'angular': '../lib/angular.min',
  664. 'angular.sanitize': '../lib/angular-sanitize.min',
  665. 'angular.hotkeys': '../lib/angular.hotkeys',
  666. 'loadcss': '../lib/loadcss.min', //加载CSS
  667. 'css': '../lib/css.min', //加载CSS
  668. /*复制组件(部分浏览器不兼容flash)*/
  669. 'clipboard': '../lib/clipboard.min',
  670. /*单选多选组件 待完善*/
  671. 'we7.check': '../lib/we7.check',
  672. 'loadjs': '../lib/loadjs', //加载CSS
  673. 'jszip': '//cdn.bootcss.com/jszip/3.1.5/jszip',
  674. 'fileSaver': '//cdn.bootcss.com/FileSaver.js/2014-11-29/FileSaver'
  675. },
  676. shim: {
  677. 'ueditor': {
  678. deps: ['./resource/components/ueditor/third-party/zeroclipboard/ZeroClipboard.min.js', './resource/components/ueditor/ueditor.config.js'],
  679. exports: 'UE',
  680. init: function (ZeroClipboard) {
  681. //导出到全局变量,供ueditor使用
  682. window.ZeroClipboard = ZeroClipboard;
  683. }
  684. },
  685. 'util': {
  686. exports: 'util',
  687. },
  688. 'daterangepicker': {
  689. deps: ['moment', 'loadcss!../../components/daterangepicker/daterangepicker.css']
  690. },
  691. 'datetimepicker': {
  692. deps: ['loadcss!../../components/datetimepicker/jquery.datetimepicker.css']
  693. },
  694. 'colorpicker': {
  695. deps: ['loadcss!../../components/colorpicker/spectrum.css']
  696. },
  697. 'map': {
  698. exports: 'BMap'
  699. },
  700. 'jquery.wookmark': {
  701. exports: "$",
  702. },
  703. 'jquery.ui': {
  704. exports: "$",
  705. },
  706. 'jquery.caret': {
  707. exports: "$",
  708. },
  709. 'bootstrap': {
  710. exports: "$",
  711. },
  712. 'bootstrap.switch': {
  713. deps: ['loadcss!../../components/switch/bootstrap-switch.min.css'],
  714. exports: "$",
  715. },
  716. // 'fileUploader': {
  717. // deps: ['webuploader', 'jquery.jplayer', 'loadcss!../../components/webuploader/webuploader.css', 'loadcss!../../components/webuploader/style.css']
  718. // },
  719. 'clockpicker': {
  720. exports: '$',
  721. deps: ['loadcss!../../components/clockpicker/clockpicker.min.css']
  722. },
  723. 'district': {
  724. exports: '$'
  725. },
  726. 'jquery.toast': {
  727. deps: ['loadcss!../../components/toast/toastr.min.css']
  728. },
  729. 'emoji': {
  730. deps: ['loadcss!../../components/emoji/emotions.css']
  731. },
  732. 'fontawesome': {
  733. deps: ['loadcss!../../components/fontawesome/style.css']
  734. },
  735. 'angular': {
  736. exports: 'angular',
  737. deps: ['jquery']
  738. },
  739. 'angular.sanitize': {
  740. exports: 'angular',
  741. deps: ['angular']
  742. },
  743. 'angular.hotkeys': {
  744. exports: "angular",
  745. deps: ['angular']
  746. },
  747. 'chart': {
  748. exports: 'Chart'
  749. },
  750. 'swiper': {
  751. deps: ['loadcss!../../components/swiper/swiper.min.css'],
  752. },
  753. }
  754. };
  755. if (!jQuery.fn.modal) {
  756. requireConfig['paths']['bootstrap'] = '../lib/bootstrap.min';
  757. } else {
  758. define('bootstrap', [], function () {
  759. if (typeof jQuery.fn.modal == 'undefined') {
  760. var $ = require(['../lib/bootstrap.min']);
  761. return jQuery;
  762. }
  763. return jQuery;
  764. });
  765. }
  766. require.config(requireConfig);
  767. define('jquery', [], function () {
  768. return jQuery;
  769. });