var requirejs, require, define; !function (global, setTimeout) { function commentReplace(a, b) { return b || '' } function isFunction(a) { return '[object Function]' === ostring.call(a) } function isArray(a) { return '[object Array]' === ostring.call(a) } function each(a, b) { if (a) { var c; for (c = 0; c < a.length && (!a[c] || !b(a[c], c, a)); c += 1); } } function eachReverse(a, b) { if (a) { var c; for (c = a.length - 1; c > - 1 && (!a[c] || !b(a[c], c, a)); c -= 1); } } function hasProp(a, b) { return hasOwn.call(a, b) } function getOwn(a, b) { return hasProp(a, b) && a[b] } function eachProp(a, b) { var c; for (c in a) if (hasProp(a, c) && b(a[c], c)) break } function mixin(a, b, c, d) { return b && eachProp(b, function (b, e) { !c && hasProp(a, e) || (!d || 'object' != typeof b || !b || isArray(b) || isFunction(b) || b instanceof RegExp ? a[e] = b : (a[e] || (a[e] = { }), mixin(a[e], b, c, d))) }), a } function bind(a, b) { return function () { return b.apply(a, arguments) } } function scripts() { return document.getElementsByTagName('script') } function defaultOnError(a) { throw a } function getGlobal(a) { if (!a) return a; var b = global; return each(a.split('.'), function (a) { b = b[a] }), b } function makeError(a, b, c, d) { var e = new Error(b + '\nhttp://requirejs.org/docs/errors.html#' + a); return e.requireType = a, e.requireModules = d, c && (e.originalError = c), e } function newContext(a) { function b(a) { var b, c; for (b = 0; b < a.length; b++) if (c = a[b], '.' === c) a.splice(b, 1), b -= 1; else if ('..' === c) { if (0 === b || 1 === b && '..' === a[2] || '..' === a[b - 1]) continue; b > 0 && (a.splice(b - 1, 2), b -= 2) } } function c(a, c, d) { var e, f, g, h, i, j, k, l, m, n, o, p, q = c && c.split('/'), r = x.map, s = r && r['*']; if (a && (a = a.split('/'), k = a.length - 1, x.nodeIdCompat && jsSuffixRegExp.test(a[k]) && (a[k] = a[k].replace(jsSuffixRegExp, '')), '.' === a[0].charAt(0) && q && (p = q.slice(0, q.length - 1), a = p.concat(a)), b(a), a = a.join('/')), d && r && (q || s)) { g = a.split('/'); a: for (h = g.length; h > 0; h -= 1) { if (j = g.slice(0, h).join('/'), q) for (i = q.length; i > 0; i -= 1) if (f = getOwn(r, q.slice(0, i).join('/')), f && (f = getOwn(f, j))) { l = f, m = h; break a } !n && s && getOwn(s, j) && (n = getOwn(s, j), o = h) } !l && n && (l = n, m = o), l && (g.splice(0, m, l), a = g.join('/')) } return e = getOwn(x.pkgs, a), e ? e : a } function d(a) { isBrowser && each(scripts(), function (b) { if (b.getAttribute('data-requiremodule') === a && b.getAttribute('data-requirecontext') === u.contextName) return b.parentNode.removeChild(b), !0 }) } function e(a) { var b = getOwn(x.paths, a); if (b && isArray(b) && b.length > 1) return b.shift(), u.require.undef(a), u.makeRequire(null, { skipMap: !0 }) ([a]), !0 } function f(a) { var b, c = a ? a.indexOf('!') : - 1; return c > - 1 && (b = a.substring(0, c), a = a.substring(c + 1, a.length)), [ b, a ] } function g(a, b, d, e) { var g, h, i, j, k = null, l = b ? b.name : null, m = a, n = !0, o = ''; return a || (n = !1, a = '_@r' + (F += 1)), j = f(a), k = j[0], a = j[1], k && (k = c(k, l, e), h = getOwn(C, k)), a && (k ? o = d ? a : h && h.normalize ? h.normalize(a, function (a) { return c(a, l, e) }) : a.indexOf('!') === - 1 ? c(a, l, e) : a : (o = c(a, l, e), j = f(o), k = j[0], o = j[1], d = !0, g = u.nameToUrl(o))), i = !k || h || d ? '' : '_unnormalized' + (G += 1), { prefix: k, name: o, parentMap: b, unnormalized: !!i, url: g, originalName: m, isDefine: n, id: (k ? k + '!' + o : o) + i } } function h(a) { var b = a.id, c = getOwn(y, b); return c || (c = y[b] = new u.Module(a)), c } function i(a, b, c) { var d = a.id, e = getOwn(y, d); !hasProp(C, d) || e && !e.defineEmitComplete ? (e = h(a), e.error && 'error' === b ? c(e.error) : e.on(b, c)) : 'defined' === b && c(C[d]) } function j(a, b) { var c = a.requireModules, d = !1; b ? b(a) : (each(c, function (b) { var c = getOwn(y, b); c && (c.error = a, c.events.error && (d = !0, c.emit('error', a))) }), d || req.onError(a)) } function k() { globalDefQueue.length && (each(globalDefQueue, function (a) { var b = a[0]; 'string' == typeof b && (u.defQueueMap[b] = !0), B.push(a) }), globalDefQueue = [ ]) } function l(a) { delete y[a], delete z[a] } function m(a, b, c) { var d = a.map.id; a.error ? a.emit('error', a.error) : (b[d] = !0, each(a.depMaps, function (d, e) { var f = d.id, g = getOwn(y, f); !g || a.depMatched[e] || c[f] || (getOwn(b, f) ? (a.defineDep(e, C[f]), a.check()) : m(g, b, c)) }), c[d] = !0) } function n() { var a, b, c = 1000 * x.waitSeconds, f = c && u.startTime + c < (new Date).getTime(), g = [ ], h = [ ], i = !1, k = !0; if (!s) { if (s = !0, eachProp(z, function (a) { var c = a.map, j = c.id; if (a.enabled && (c.isDefine || h.push(a), !a.error)) if (!a.inited && f) e(j) ? (b = !0, i = !0) : (g.push(j), d(j)); else if (!a.inited && a.fetched && c.isDefine && (i = !0, !c.prefix)) return k = !1 }), f && g.length) return a = makeError('timeout', 'Load timeout for modules: ' + g, null, g), a.contextName = u.contextName, j(a); k && each(h, function (a) { m(a, { }, { }) }), f && !b || !i || !isBrowser && !isWebWorker || w || (w = setTimeout(function () { w = 0, n() }, 50)), s = !1 } } function o(a) { hasProp(C, a[0]) || h(g(a[0], null, !0)).init(a[1], a[2]) } function p(a, b, c, d) { a.detachEvent && !isOpera ? d && a.detachEvent(d, b) : a.removeEventListener(c, b, !1) } function q(a) { var b = a.currentTarget || a.srcElement; return p(b, u.onScriptLoad, 'load', 'onreadystatechange'), p(b, u.onScriptError, 'error'), { node: b, id: b && b.getAttribute('data-requiremodule') } } function r() { var a; for (k(); B.length; ) { if (a = B.shift(), null === a[0]) return j(makeError('mismatch', 'Mismatched anonymous define() module: ' + a[a.length - 1])); o(a) } u.defQueueMap = { } } var s, t, u, v, w, x = { waitSeconds: 7, baseUrl: './', paths: { }, bundles: { }, pkgs: { }, shim: { }, config: { } }, y = { }, z = { }, A = { }, B = [ ], C = { }, D = { }, E = { }, F = 1, G = 1; return v = { require: function (a) { return a.require ? a.require : a.require = u.makeRequire(a.map) }, exports: function (a) { if (a.usingExports = !0, a.map.isDefine) return a.exports ? C[a.map.id] = a.exports : a.exports = C[a.map.id] = { } }, module: function (a) { return a.module ? a.module : a.module = { id: a.map.id, uri: a.map.url, config: function () { return getOwn(x.config, a.map.id) || { } }, exports: a.exports || (a.exports = { }) } } }, t = function (a) { this.events = getOwn(A, a.id) || { }, this.map = a, this.shim = getOwn(x.shim, a.id), this.depExports = [ ], this.depMaps = [ ], this.depMatched = [ ], this.pluginMaps = { }, this.depCount = 0 }, t.prototype = { init: function (a, b, c, d) { d = d || { }, this.inited || (this.factory = b, c ? this.on('error', c) : this.events.error && (c = bind(this, function (a) { this.emit('error', a) })), this.depMaps = a && a.slice(0), this.errback = c, this.inited = !0, this.ignore = d.ignore, d.enabled || this.enabled ? this.enable() : this.check()) }, defineDep: function (a, b) { this.depMatched[a] || (this.depMatched[a] = !0, this.depCount -= 1, this.depExports[a] = b) }, fetch: function () { if (!this.fetched) { this.fetched = !0, u.startTime = (new Date).getTime(); var a = this.map; return this.shim ? void u.makeRequire(this.map, { enableBuildCallback: !0 }) (this.shim.deps || [ ], bind(this, function () { return a.prefix ? this.callPlugin() : this.load() })) : a.prefix ? this.callPlugin() : this.load() } }, load: function () { var a = this.map.url; D[a] || (D[a] = !0, u.load(this.map.id, a)) }, check: function () { if (this.enabled && !this.enabling) { var a, b, c = this.map.id, d = this.depExports, e = this.exports, f = this.factory; if (this.inited) { if (this.error) this.emit('error', this.error); else if (!this.defining) { if (this.defining = !0, this.depCount < 1 && !this.defined) { if (isFunction(f)) { if (this.events.error && this.map.isDefine || req.onError !== defaultOnError) try { e = u.execCb(c, f, d, e) } catch (g) { a = g } else e = u.execCb(c, f, d, e); if (this.map.isDefine && void 0 === e && (b = this.module, b ? e = b.exports : this.usingExports && (e = this.exports)), a) return a.requireMap = this.map, a.requireModules = this.map.isDefine ? [ this.map.id ] : null, a.requireType = this.map.isDefine ? 'define' : 'require', j(this.error = a) } else e = f; if (this.exports = e, this.map.isDefine && !this.ignore && (C[c] = e, req.onResourceLoad)) { var h = [ ]; each(this.depMaps, function (a) { h.push(a.normalizedMap || a) }), req.onResourceLoad(u, this.map, h) } l(c), this.defined = !0 } this.defining = !1, this.defined && !this.defineEmitted && (this.defineEmitted = !0, this.emit('defined', this.exports), this.defineEmitComplete = !0) } } else hasProp(u.defQueueMap, c) || this.fetch() } }, callPlugin: function () { var a = this.map, b = a.id, d = g(a.prefix); this.depMaps.push(d), i(d, 'defined', bind(this, function (d) { var e, f, k, m = getOwn(E, this.map.id), n = this.map.name, o = this.map.parentMap ? this.map.parentMap.name : null, p = u.makeRequire(a.parentMap, { enableBuildCallback: !0 }); return this.map.unnormalized ? (d.normalize && (n = d.normalize(n, function (a) { return c(a, o, !0) }) || ''), f = g(a.prefix + '!' + n, this.map.parentMap, !0), i(f, 'defined', bind(this, function (a) { this.map.normalizedMap = f, this.init([], function () { return a }, null, { enabled: !0, ignore: !0 }) })), k = getOwn(y, f.id), void (k && (this.depMaps.push(f), this.events.error && k.on('error', bind(this, function (a) { this.emit('error', a) })), k.enable()))) : m ? (this.map.url = u.nameToUrl(m), void this.load()) : (e = bind(this, function (a) { this.init([], function () { return a }, null, { enabled: !0 }) }), e.error = bind(this, function (a) { this.inited = !0, this.error = a, a.requireModules = [ b ], eachProp(y, function (a) { 0 === a.map.id.indexOf(b + '_unnormalized') && l(a.map.id) }), j(a) }), e.fromText = bind(this, function (c, d) { var f = a.name, i = g(f), k = useInteractive; d && (c = d), k && (useInteractive = !1), h(i), hasProp(x.config, b) && (x.config[f] = x.config[b]); try { req.exec(c) } catch (l) { return j(makeError('fromtexteval', 'fromText eval for ' + b + ' failed: ' + l, l, [ b ])) } k && (useInteractive = !0), this.depMaps.push(i), u.completeLoad(f), p([f], e) }), void d.load(a.name, p, e, x)) })), u.enable(d, this), this.pluginMaps[d.id] = d }, enable: function () { z[this.map.id] = this, this.enabled = !0, this.enabling = !0, each(this.depMaps, bind(this, function (a, b) { var c, d, e; if ('string' == typeof a) { if (a = g(a, this.map.isDefine ? this.map : this.map.parentMap, !1, !this.skipMap), this.depMaps[b] = a, e = getOwn(v, a.id)) return void (this.depExports[b] = e(this)); this.depCount += 1, i(a, 'defined', bind(this, function (a) { this.undefed || (this.defineDep(b, a), this.check()) })), this.errback ? i(a, 'error', bind(this, this.errback)) : this.events.error && i(a, 'error', bind(this, function (a) { this.emit('error', a) })) } c = a.id, d = y[c], hasProp(v, c) || !d || d.enabled || u.enable(a, this) })), eachProp(this.pluginMaps, bind(this, function (a) { var b = getOwn(y, a.id); b && !b.enabled && u.enable(a, this) })), this.enabling = !1, this.check() }, on: function (a, b) { var c = this.events[a]; c || (c = this.events[a] = [ ]), c.push(b) }, emit: function (a, b) { each(this.events[a], function (a) { a(b) }), 'error' === a && delete this.events[a] } }, u = { config: x, contextName: a, registry: y, defined: C, urlFetched: D, defQueue: B, defQueueMap: { }, Module: t, makeModuleMap: g, nextTick: req.nextTick, onError: j, configure: function (a) { if (a.baseUrl && '/' !== a.baseUrl.charAt(a.baseUrl.length - 1) && (a.baseUrl += '/'), 'string' == typeof a.urlArgs) { var b = a.urlArgs; a.urlArgs = function (a, c) { return (c.indexOf('?') === - 1 ? '?' : '&') + b } } var c = x.shim, d = { paths: !0, bundles: !0, config: !0, map: !0 }; eachProp(a, function (a, b) { d[b] ? (x[b] || (x[b] = { }), mixin(x[b], a, !0, !0)) : x[b] = a }), a.bundles && eachProp(a.bundles, function (a, b) { each(a, function (a) { a !== b && (E[a] = b) }) }), a.shim && (eachProp(a.shim, function (a, b) { isArray(a) && (a = { deps: a }), !a.exports && !a.init || a.exportsFn || (a.exportsFn = u.makeShimExports(a)), c[b] = a }), x.shim = c), a.packages && each(a.packages, function (a) { var b, c; a = 'string' == typeof a ? { name: a } : a, c = a.name, b = a.location, b && (x.paths[c] = a.location), x.pkgs[c] = a.name + '/' + (a.main || 'main').replace(currDirRegExp, '').replace(jsSuffixRegExp, '') }), eachProp(y, function (a, b) { a.inited || a.map.unnormalized || (a.map = g(b, null, !0)) }), (a.deps || a.callback) && u.require(a.deps || [ ], a.callback) }, makeShimExports: function (a) { function b() { var b; return a.init && (b = a.init.apply(global, arguments)), b || a.exports && getGlobal(a.exports) } return b }, makeRequire: function (b, e) { function f(c, d, i) { var k, l, m; return e.enableBuildCallback && d && isFunction(d) && (d.__requireJsBuild = !0), 'string' == typeof c ? isFunction(d) ? j(makeError('requireargs', 'Invalid require call'), i) : b && hasProp(v, c) ? v[c](y[b.id]) : req.get ? req.get(u, c, b, f) : (l = g(c, b, !1, !0), k = l.id, hasProp(C, k) ? C[k] : j(makeError('notloaded', 'Module name "' + k + '" has not been loaded yet for context: ' + a + (b ? '' : '. Use require([])')))) : (r(), u.nextTick(function () { r(), m = h(g(null, b)), m.skipMap = e.skipMap, m.init(c, d, i, { enabled: !0 }), n() }), f) } return e = e || { }, mixin(f, { isBrowser: isBrowser, toUrl: function (a) { var d, e = a.lastIndexOf('.'), f = a.split('/') [0], g = '.' === f || '..' === f; return e !== - 1 && (!g || e > 1) && (d = a.substring(e, a.length), a = a.substring(0, e)), u.nameToUrl(c(a, b && b.id, !0), d, !0) }, defined: function (a) { return hasProp(C, g(a, b, !1, !0).id) }, specified: function (a) { return a = g(a, b, !1, !0).id, hasProp(C, a) || hasProp(y, a) } }), b || (f.undef = function (a) { k(); var c = g(a, b, !0), e = getOwn(y, a); e.undefed = !0, d(a), delete C[a], delete D[c.url], delete A[a], eachReverse(B, function (b, c) { b[0] === a && B.splice(c, 1) }), delete u.defQueueMap[a], e && (e.events.defined && (A[a] = e.events), l(a)) }), f }, enable: function (a) { var b = getOwn(y, a.id); b && h(a).enable() }, completeLoad: function (a) { var b, c, d, f = getOwn(x.shim, a) || { }, g = f.exports; for (k(); B.length; ) { if (c = B.shift(), null === c[0]) { if (c[0] = a, b) break; b = !0 } else c[0] === a && (b = !0); o(c) } if (u.defQueueMap = { }, d = getOwn(y, a), !b && !hasProp(C, a) && d && !d.inited) { if (!(!x.enforceDefine || g && getGlobal(g))) return e(a) ? void 0 : j(makeError('nodefine', 'No define call for ' + a, null, [ a ])); o([a, f.deps || [ ], f.exportsFn]) } n() }, nameToUrl: function (a, b, c) { var d, e, f, g, h, i, j, k = getOwn(x.pkgs, a); if (k && (a = k), j = getOwn(E, a)) return u.nameToUrl(j, b, c); if (req.jsExtRegExp.test(a)) h = a + (b || ''); else { for (d = x.paths, e = a.split('/'), f = e.length; f > 0; f -= 1) if (g = e.slice(0, f).join('/'), i = getOwn(d, g)) { isArray(i) && (i = i[0]), e.splice(0, f, i); break } h = e.join('/'), h += b || (/^data\:|^blob\:|\?/.test(h) || c ? '' : '.js'), h = ('/' === h.charAt(0) || h.match(/^[\w\+\.\-]+:/) ? '' : x.baseUrl) + h } return x.urlArgs && !/^blob\:/.test(h) ? h + x.urlArgs(a, h) : h }, load: function (a, b) { req.load(u, a, b) }, execCb: function (a, b, c, d) { return b.apply(d, c) }, onScriptLoad: function (a) { if ('load' === a.type || readyRegExp.test((a.currentTarget || a.srcElement).readyState)) { interactiveScript = null; var b = q(a); u.completeLoad(b.id) } }, onScriptError: function (a) { var b = q(a); if (!e(b.id)) { var c = [ ]; return eachProp(y, function (a, d) { 0 !== d.indexOf('_@r') && each(a.depMaps, function (a) { if (a.id === b.id) return c.push(d), !0 }) }), j(makeError('scripterror', 'Script error for "' + b.id + (c.length ? '", needed by: ' + c.join(', ') : '"'), a, [ b.id ])) } } }, u.require = u.makeRequire(), u } function getInteractiveScript() { return interactiveScript && 'interactive' === interactiveScript.readyState ? interactiveScript : (eachReverse(scripts(), function (a) { if ('interactive' === a.readyState) return interactiveScript = a }), interactiveScript) } var req, s, head, baseElement, dataMain, src, interactiveScript, currentlyAddingScript, mainScript, subPath, version = '2.3.3', commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm, cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g, jsSuffixRegExp = /\.js$/, currDirRegExp = /^\.\//, op = Object.prototype, ostring = op.toString, hasOwn = op.hasOwnProperty, isBrowser = !('undefined' == typeof window || 'undefined' == typeof navigator || !window.document), isWebWorker = !isBrowser && 'undefined' != typeof importScripts, readyRegExp = isBrowser && 'PLAYSTATION 3' === navigator.platform ? /^complete$/ : /^(complete|loaded)$/, defContextName = '_', isOpera = 'undefined' != typeof opera && '[object Opera]' === opera.toString(), contexts = { }, cfg = { }, globalDefQueue = [ ], useInteractive = !1; if ('undefined' == typeof define) { if ('undefined' != typeof requirejs) { if (isFunction(requirejs)) return; cfg = requirejs, requirejs = void 0 } 'undefined' == typeof require || isFunction(require) || (cfg = require, require = void 0), req = requirejs = function (a, b, c, d) { var e, f, g = defContextName; return isArray(a) || 'string' == typeof a || (f = a, isArray(b) ? (a = b, b = c, c = d) : a = [ ]), f && f.context && (g = f.context), e = getOwn(contexts, g), e || (e = contexts[g] = req.s.newContext(g)), f && e.configure(f), e.require(a, b, c) }, req.config = function (a) { return req(a) }, req.nextTick = 'undefined' != typeof setTimeout ? function (a) { setTimeout(a, 4) } : function (a) { a() }, require || (require = req), req.version = version, req.jsExtRegExp = /^\/|:|\?|\.js$/, req.isBrowser = isBrowser, s = req.s = { contexts: contexts, newContext: newContext }, req({ }), each(['toUrl', 'undef', 'defined', 'specified'], function (a) { req[a] = function () { var b = contexts[defContextName]; return b.require[a].apply(b, arguments) } }), isBrowser && (head = s.head = document.getElementsByTagName('head') [0], baseElement = document.getElementsByTagName('base') [0], baseElement && (head = s.head = baseElement.parentNode)), req.onError = defaultOnError, req.createNode = function (a, b, c) { var d = a.xhtml ? document.createElementNS('http://www.w3.org/1999/xhtml', 'html:script') : document.createElement('script'); return d.type = a.scriptType || 'text/javascript', d.charset = 'utf-8', d.async = !0, d }, req.load = function (a, b, c) { var d, e = a && a.config || { }; if (isBrowser) return d = req.createNode(e, b, c), d.setAttribute('data-requirecontext', a.contextName), d.setAttribute('data-requiremodule', b), !d.attachEvent || d.attachEvent.toString && d.attachEvent.toString().indexOf('[native code') < 0 || isOpera ? (d.addEventListener('load', a.onScriptLoad, !1), d.addEventListener('error', a.onScriptError, !1)) : (useInteractive = !0, d.attachEvent('onreadystatechange', a.onScriptLoad)), d.src = c, e.onNodeCreated && e.onNodeCreated(d, e, b, c), currentlyAddingScript = d, baseElement ? head.insertBefore(d, baseElement) : head.appendChild(d), currentlyAddingScript = null, d; if (isWebWorker) try { setTimeout(function () { }, 0), importScripts(c), a.completeLoad(b) } catch (f) { a.onError(makeError('importscripts', 'importScripts failed for ' + b + ' at ' + c, f, [ b ])) } }, isBrowser && !cfg.skipDataMain && eachReverse(scripts(), function (a) { if (head || (head = a.parentNode), dataMain = a.getAttribute('data-main')) return mainScript = dataMain, cfg.baseUrl || mainScript.indexOf('!') !== - 1 || (src = mainScript.split('/'), mainScript = src.pop(), subPath = src.length ? src.join('/') + '/' : './', cfg.baseUrl = subPath), mainScript = mainScript.replace(jsSuffixRegExp, ''), req.jsExtRegExp.test(mainScript) && (mainScript = dataMain), cfg.deps = cfg.deps ? cfg.deps.concat(mainScript) : [ mainScript ], !0 }), define = function (a, b, c) { var d, e; 'string' != typeof a && (c = b, b = a, a = null), isArray(b) || (c = b, b = null), !b && isFunction(c) && (b = [ ], c.length && (c.toString().replace(commentRegExp, commentReplace).replace(cjsRequireRegExp, function (a, c) { b.push(c) }), b = (1 === c.length ? [ 'require' ] : [ 'require', 'exports', 'module' ]).concat(b))), useInteractive && (d = currentlyAddingScript || getInteractiveScript(), d && (a || (a = d.getAttribute('data-requiremodule')), e = contexts[d.getAttribute('data-requirecontext')])), e ? (e.defQueue.push([a, b, c]), e.defQueueMap[a] = !0) : globalDefQueue.push([a, b, c]) }, define.amd = { jQuery: !0 }, req.exec = function (text) { return eval(text) }, req(cfg) } }(this, 'undefined' == typeof setTimeout ? void 0 : setTimeout), define('../../../node_modules/requirejs/require', function () { }), function (a, b, c) { b[a] = b[a] || c(), 'undefined' != typeof module && module.exports ? module.exports = b[a] : 'function' == typeof define && define.amd && define('native-promise-only', [ ], function () { return b[a] }) }('Promise', 'undefined' != typeof global ? global : this, function () { 'use strict'; function a(a, b) { m.add(a, b), l || (l = o(m.drain)) } function b(a) { var b, c = typeof a; return null == a || 'object' != c && 'function' != c || (b = a.then), 'function' == typeof b && b } function c() { for (var a = 0; a < this.chain.length; a++) d(this, 1 === this.state ? this.chain[a].success : this.chain[a].failure, this.chain[a]); this.chain.length = 0 } function d(a, c, d) { var e, f; try { c === !1 ? d.reject(a.msg) : (e = c === !0 ? a.msg : c.call(void 0, a.msg), e === d.promise ? d.reject(TypeError('Promise-chain cycle')) : (f = b(e)) ? f.call(e, d.resolve, d.reject) : d.resolve(e)) } catch (g) { d.reject(g) } } function e(d) { var g, i = this; if (!i.triggered) { i.triggered = !0, i.def && (i = i.def); try { (g = b(d)) ? a(function () { var a = new h(i); try { g.call(d, function () { e.apply(a, arguments) }, function () { f.apply(a, arguments) }) } catch (b) { f.call(a, b) } }) : (i.msg = d, i.state = 1, i.chain.length > 0 && a(c, i)) } catch (j) { f.call(new h(i), j) } } } function f(b) { var d = this; d.triggered || (d.triggered = !0, d.def && (d = d.def), d.msg = b, d.state = 2, d.chain.length > 0 && a(c, d)) } function g(a, b, c, d) { for (var e = 0; e < b.length; e++) !function (e) { a.resolve(b[e]).then(function (a) { c(e, a) }, d) }(e) } function h(a) { this.def = a, this.triggered = !1 } function i(a) { this.promise = a, this.state = 0, this.triggered = !1, this.chain = [ ], this.msg = void 0 } function j(b) { if ('function' != typeof b) throw TypeError('Not a function'); if (0 !== this.__NPO__) throw TypeError('Not a promise'); this.__NPO__ = 1; var d = new i(this); this.then = function (b, e) { var f = { success: 'function' != typeof b || b, failure: 'function' == typeof e && e }; return f.promise = new this.constructor(function (a, b) { if ('function' != typeof a || 'function' != typeof b) throw TypeError('Not a function'); f.resolve = a, f.reject = b }), d.chain.push(f), 0 !== d.state && a(c, d), f.promise }, this['catch'] = function (a) { return this.then(void 0, a) }; try { b.call(void 0, function (a) { e.call(d, a) }, function (a) { f.call(d, a) }) } catch (g) { f.call(d, g) } } var k, l, m, n = Object.prototype.toString, o = 'undefined' != typeof setImmediate ? function (a) { return setImmediate(a) } : setTimeout; try { Object.defineProperty({ }, 'x', { }), k = function (a, b, c, d) { return Object.defineProperty(a, b, { value: c, writable: !0, configurable: d !== !1 }) } } catch (p) { k = function (a, b, c) { return a[b] = c, a } } m = function () { function a(a, b) { this.fn = a, this.self = b, this.next = void 0 } var b, c, d; return { add: function (e, f) { d = new a(e, f), c ? c.next = d : b = d, c = d, d = void 0 }, drain: function () { var a = b; for (b = c = l = void 0; a; ) a.fn.call(a.self), a = a.next } } }(); var q = k({ }, 'constructor', j, !1); return j.prototype = q, k(q, '__NPO__', 0, !1), k(j, 'resolve', function (a) { var b = this; return a && 'object' == typeof a && 1 === a.__NPO__ ? a : new b(function (b, c) { if ('function' != typeof b || 'function' != typeof c) throw TypeError('Not a function'); b(a) }) }), k(j, 'reject', function (a) { return new this(function (b, c) { if ('function' != typeof b || 'function' != typeof c) throw TypeError('Not a function'); c(a) }) }), k(j, 'all', function (a) { var b = this; return '[object Array]' != n.call(a) ? b.reject(TypeError('Not an array')) : 0 === a.length ? b.resolve([]) : new b(function (c, d) { if ('function' != typeof c || 'function' != typeof d) throw TypeError('Not a function'); var e = a.length, f = Array(e), h = 0; g(b, a, function (a, b) { f[a] = b, ++h === e && c(f) }, d) }) }), k(j, 'race', function (a) { var b = this; return '[object Array]' != n.call(a) ? b.reject(TypeError('Not an array')) : new b(function (c, d) { if ('function' != typeof c || 'function' != typeof d) throw TypeError('Not a function'); g(b, a, function (a, b) { c(b) }, d) }) }), j }), function (a, b) { 'object' == typeof module && 'object' == typeof module.exports ? module.exports = a.document ? b(a, !0) : function (a) { if (!a.document) throw new Error('jQuery requires a window with a document'); return b(a) } : b(a) }('undefined' != typeof window ? window : this, function (a, b) { function c(a) { var b = !!a && 'length' in a && a.length, c = fa.type(a); return 'function' !== c && !fa.isWindow(a) && ('array' === c || 0 === b || 'number' == typeof b && b > 0 && b - 1 in a) } function d(a, b, c) { if (fa.isFunction(b)) return fa.grep(a, function (a, d) { return !!b.call(a, d, a) !== c }); if (b.nodeType) return fa.grep(a, function (a) { return a === b !== c }); if ('string' == typeof b) { if (pa.test(b)) return fa.filter(b, a, c); b = fa.filter(b, a) } return fa.grep(a, function (a) { return _.call(b, a) > - 1 !== c }) } function e(a, b) { for (; (a = a[b]) && 1 !== a.nodeType; ); return a } function f(a) { var b = { }; return fa.each(a.match(va) || [ ], function (a, c) { b[c] = !0 }), b } function g() { X.removeEventListener('DOMContentLoaded', g), a.removeEventListener('load', g), fa.ready() } function h() { this.expando = fa.expando + h.uid++ } function i(a, b, c) { var d; if (void 0 === c && 1 === a.nodeType) if (d = 'data-' + b.replace(Ca, '-$&').toLowerCase(), c = a.getAttribute(d), 'string' == typeof c) { try { c = 'true' === c || 'false' !== c && ('null' === c ? null : + c + '' === c ? + c : Ba.test(c) ? fa.parseJSON(c) : c) } catch (e) { } Aa.set(a, b, c) } else c = void 0; return c } function j(a, b, c, d) { var e, f = 1, g = 20, h = d ? function () { return d.cur() } : function () { return fa.css(a, b, '') }, i = h(), j = c && c[3] || (fa.cssNumber[b] ? '' : 'px'), k = (fa.cssNumber[b] || 'px' !== j && + i) && Ea.exec(fa.css(a, b)); if (k && k[3] !== j) { j = j || k[3], c = c || [ ], k = + i || 1; do f = f || '.5', k /= f, fa.style(a, b, k + j); while (f !== (f = h() / i) && 1 !== f && --g) } return c && (k = + k || + i || 0, e = c[1] ? k + (c[1] + 1) * c[2] : + c[2], d && (d.unit = j, d.start = k, d.end = e)), e } function k(a, b) { var c = 'undefined' != typeof a.getElementsByTagName ? a.getElementsByTagName(b || '*') : 'undefined' != typeof a.querySelectorAll ? a.querySelectorAll(b || '*') : [ ]; return void 0 === b || b && fa.nodeName(a, b) ? fa.merge([a], c) : c } function l(a, b) { for (var c = 0, d = a.length; c < d; c++) za.set(a[c], 'globalEval', !b || za.get(b[c], 'globalEval')) } function m(a, b, c, d, e) { for (var f, g, h, i, j, m, n = b.createDocumentFragment(), o = [ ], p = 0, q = a.length; p < q; p++) if (f = a[p], f || 0 === f) if ('object' === fa.type(f)) fa.merge(o, f.nodeType ? [ f ] : f); else if (La.test(f)) { for (g = g || n.appendChild(b.createElement('div')), h = (Ia.exec(f) || [ '', '' ]) [1].toLowerCase(), i = Ka[h] || Ka._default, g.innerHTML = i[1] + fa.htmlPrefilter(f) + i[2], m = i[0]; m--; ) g = g.lastChild; fa.merge(o, g.childNodes), g = n.firstChild, g.textContent = '' } else o.push(b.createTextNode(f)); for (n.textContent = '', p = 0; f = o[p++]; ) if (d && fa.inArray(f, d) > - 1) e && e.push(f); else if (j = fa.contains(f.ownerDocument, f), g = k(n.appendChild(f), 'script'), j && l(g), c) for (m = 0; f = g[m++]; ) Ja.test(f.type || '') && c.push(f); return n } function n() { return !0 } function o() { return !1 } function p() { try { return X.activeElement } catch (a) { } } function q(a, b, c, d, e, f) { var g, h; if ('object' == typeof b) { 'string' != typeof c && (d = d || c, c = void 0); for (h in b) q(a, h, c, d, b[h], f); return a } if (null == d && null == e ? (e = c, d = c = void 0) : null == e && ('string' == typeof c ? (e = d, d = void 0) : (e = d, d = c, c = void 0)), e === !1) e = o; else if (!e) return a; return 1 === f && (g = e, e = function (a) { return fa().off(a), g.apply(this, arguments) }, e.guid = g.guid || (g.guid = fa.guid++)), a.each(function () { fa.event.add(this, b, e, d, c) }) } function r(a, b) { return fa.nodeName(a, 'table') && fa.nodeName(11 !== b.nodeType ? b : b.firstChild, 'tr') ? a.getElementsByTagName('tbody') [0] || a.appendChild(a.ownerDocument.createElement('tbody')) : a } function s(a) { return a.type = (null !== a.getAttribute('type')) + '/' + a.type, a } function t(a) { var b = Sa.exec(a.type); return b ? a.type = b[1] : a.removeAttribute('type'), a } function u(a, b) { var c, d, e, f, g, h, i, j; if (1 === b.nodeType) { if (za.hasData(a) && (f = za.access(a), g = za.set(b, f), j = f.events)) { delete g.handle, g.events = { }; for (e in j) for (c = 0, d = j[e].length; c < d; c++) fa.event.add(b, e, j[e][c]) } Aa.hasData(a) && (h = Aa.access(a), i = fa.extend({ }, h), Aa.set(b, i)) } } function v(a, b) { var c = b.nodeName.toLowerCase(); 'input' === c && Ha.test(a.type) ? b.checked = a.checked : 'input' !== c && 'textarea' !== c || (b.defaultValue = a.defaultValue) } function w(a, b, c, d) { b = Z.apply([], b); var e, f, g, h, i, j, l = 0, n = a.length, o = n - 1, p = b[0], q = fa.isFunction(p); if (q || n > 1 && 'string' == typeof p && !da.checkClone && Ra.test(p)) return a.each(function (e) { var f = a.eq(e); q && (b[0] = p.call(this, e, f.html())), w(f, b, c, d) }); if (n && (e = m(b, a[0].ownerDocument, !1, a, d), f = e.firstChild, 1 === e.childNodes.length && (e = f), f || d)) { for (g = fa.map(k(e, 'script'), s), h = g.length; l < n; l++) i = e, l !== o && (i = fa.clone(i, !0, !0), h && fa.merge(g, k(i, 'script'))), c.call(a[l], i, l); if (h) for (j = g[g.length - 1].ownerDocument, fa.map(g, t), l = 0; l < h; l++) i = g[l], Ja.test(i.type || '') && !za.access(i, 'globalEval') && fa.contains(j, i) && (i.src ? fa._evalUrl && fa._evalUrl(i.src) : fa.globalEval(i.textContent.replace(Ta, ''))) } return a } function x(a, b, c) { for (var d, e = b ? fa.filter(b, a) : a, f = 0; null != (d = e[f]); f++) c || 1 !== d.nodeType || fa.cleanData(k(d)), d.parentNode && (c && fa.contains(d.ownerDocument, d) && l(k(d, 'script')), d.parentNode.removeChild(d)); return a } function y(a, b) { var c = fa(b.createElement(a)).appendTo(b.body), d = fa.css(c[0], 'display'); return c.detach(), d } function z(a) { var b = X, c = Va[a]; return c || (c = y(a, b), 'none' !== c && c || (Ua = (Ua || fa('