{"version":3,"file":"scripts.fb97b7db038f8f32.js","mappings":"cACA,YACA,eACAA,8BACAC,sCAIA,OADAC,0BAEAC,kBACA,+BACA,cACA,IACA,8BACAC,8DACkB,CADlB,MACkBC,KAIlBC,GACAC,aACAC,UACaR,gFAERE,8BACL,+BACA,cACA,IACA,8BACAO,gGACkB,CADlB,MACkBL,KAIlBE,GAAeC,eAAcP,gFAExBE,mBACL,+BACAI,GAAeC,wBAEVL,qBACL,+BACAI,GAAeC,0BAEVL,WACLQ,sBACA,cACAC,aAGA,YACA,yDACAX,6CAnDA,CAuDCA,gBACD,oFACA,iBACE,YACF,sGAEA,YACA,+DAAiE,sKAA6L,wDAA+D,yBAC7T,oBACAY,gBACM,CACN,yIACA,mDACAN,kCACA,oBARA,CAWC,WACD,cACA,kBACA,8BAQA,cACA,uDAGA,gBACA,kFACA,iBAAoCO,EAAGA,6HACvCC,qBACAC,kBACaC,oBACbA,mBACA,MAKA,cACA,iCAAmDH,aAAcA,GACjE,WACAJ,0BAEA,oBAVAQ,uBACAC,cAA4BJ,2BAY5B,cACA,iEAGA,cACA,8CACA,+BACA,0CACA,+BACA,+BACA,oCAGA,cACA,WACA,eACA,WACA,OADAK,OACAC,gBAGA,aACA,SACA,eAGA,CAHA,MACUP,GACV,6DACA,UACAO,kBADA,GAWA,cACA,6BA6KA,eACA,UACA,6BACA,IACAC,mCAEA,CAFA,MACcL,GACdG,eAESA,UArLTG,SAGA,aACA,cACAH,0DACAI,sBACAC,qCAEa,qBAGb,kDACA,qCACA,mBACAR,mEACAG,gCAESM,qBACT,cACA,WACA,sBACSA,qBACT,sBAAsCC,kBAC7BH,0BACT,eAEA,CAFA,MACUC,GACVC,uEAEA,yCACAN,YACSQ,sBACTR,YACSQ,qBACTR,YACSQ,qBACTR,qBACAI,sBACAK,aAEa,IACJD,EAGT,cACA,4EACA,UACA,IACAN,8BAEA,CAFA,MACUL,GACVG,YAEA,iBAGA,cACA,uBACA,uBAA0CN,IAAOA,wBAIjD,uBACA,sBACA,qEACS,qBACT,OAAoBa,mBAEpB,qBACA,qCACA,MACA,IACAE,oCAEA,CAFA,MACcC,GACdD,OAEAH,SACSZ,eACT,UACA,kEACA,UACA,2DAGA,SAGA,oBACA,wBAGA,cACA,SACA,kBACA,wCAEA,SAGA,cACA,sBAGA,cACA,OAxKA,cACA,qBAuKAP,+BAeA,aACAwB,gCAmBA,cACA,SACAC,iBACA,UAbA,eACA,MACA,cACA,+IACA,cACA,iEACaC,8BAObC,qBAES,WACT,aACS,WACT,OAAoBP,6BAEpB,OA1BA,iBACAQ,4IACA,iEACSF,+DAuBTG,QAGA,cACA,UACAJ,gBACA,UACaK,gBACb,aACaC,kBACbhB,QACaiB,0BACbjB,MACakB,mBACb,kDACaC,oBACb,qBACaC,gBACb,oBAES,aACT,OAAoBf,6BA0BpB,kBACA,wBA4CA,kBACA,0BAGA,cACA,uBACA,cACA,2BACA,MACAgB,4EACAvB,6BACiBN,qBACjBA,UAA8B8B,2BAEjB,mCAIb,cACA,mCACA,oBACA,2BAiBA3B,MADAK,KAfA,cACAF,cAGA,cACA,WACA,yBACAyB,qIAIA,cACAzB,UAA0BwB,mBAI1B,OACS,aAGT,cACA,uBACA,oCACA,qBACa,WACb,aAiBA,SACA,IACA,eAEA,CAFA,MACMtB,GACNwB,YAEA,+BACKC,aACL,aACA,YAA2B9B,QAAO+B,iFAClC,KAAmBC,UAAS7B,aAC5BQ,KAGA,gBACA,IACAoB,GAKiB,CALjB,MACcE,GACd,sDACAC,sBACA,SACiB,GAEjBN,YAGA,OAAiBO,uBAAyBtC,4BAC1C,iBACAA,UAA0BsC,2CAAiDxB,eAClE,mJACTyB,6BACW,oGACXC,yBACW,oCACX,yBACAzB,6BACAH,6BAEA,iBACAG,wBAEAH,aACAyB,0BAEUzB,aACVyB,iBAEA,8BACAF,yBACSF,EA1CJ,GA2CAQ,sFACL,sBACA,+BAA4C,CAC5C,cACAnC,YACA,MAEA,8BAEA,KAAeH,IAAOA,kCACtB,WACKuC,yCACL,YAAwBpC,cAAiBA,4BACzC,WACKqC,uCACL,gBACA,2BACA3C,8BACS,OACJ4C,6BACL,cAGA,4BACKvC,0CACL,uBACKwC,kEACL,SACA,kCACA,UACKC,gCACLC,0DACAC,cAEA,8BACAtC,+CACA,SACA,4LACA,WACA,qBACAJ,+DAEKI,yFACL,UACKuC,kCACL,aACKvC,qBACL,qBACKuC,6BACL,wCACA,kBACA,2DAEKvC,qCACL,0BACKA,gDACL,0BACKuC,iCAyBL,sBACA,6BACAtC,8BACAI,mBA3BA,cACA,IACA,iCAEA,CAFA,MACcmB,GACd,aAuBAlC,OACa,oBACbe,mBArBA,cACA,yBACAjB,OACA,IACA,WAEA,CAFA,MACkBoC,GAClB,aAGA,YAYApB,WAESH,oDACT,WACA,IACAuB,EAdA,cACA,kCAaAtB,GAGA,CAHA,MACcwB,GACd,2BACA1B,aAEAqB,kBACSI,WACJzB,oBACL,oBACKuC,4BACL,oCACA,oCAEKvC,6CACL,4BACA,YAEKA,4BACL,4BACKuC,mCACL,4BACA,WAEKvC,2BACL,2BACKA,wDA7WL,eACA,4CA4WKuC,iCACL,wCACKvC,cA3WL,eACA,8CA0WKuC,mCACL,0CACKvC,aAzWL,eACA,6CAwWKuC,kCACL,yCAEA,wBACAvC,8DACA,kBACKA,4CACLwC,UACKA,oCA3SL,eACA,UACAC,oBAES,cACT,iBACS,WACT,yBAoSKzC,4CACL,mCACA,0BACSJ,IACJI,QAhSL,eACA,kBACA,gBACA,MACA,sCACA,IACAyB,SAEA,CAFA,MACsBpB,GACtB,YAEA,wCAEA,IACAoB,SAEA,CAFA,MACkBpB,GAClB,4BAEA,gBAGA,qEACA,aA2QKL,QAvQL,eACAA,sBAsQKA,SAnQL,eACA,gBAkQKA,WA/PL,eACA,kBACA,2CACA,wBA4PKA,gDACL,iBACA,6BACAP,mCACSH,WACJU,oBACL,iCACKuC,4BACL,iCACKvC,sBACL,mCACKuC,8BACL,mCACKvC,6BACL,oCACKuC,+CACL,oCACKvC,gCACL,oCACKuC,kDACL,oCACKvC,sCACL,iDACKuC,kEACL,iDACKvC,uBACL,0CACKuC,+BACL,0CACKvC,0BACL,uDACKuC,6BACL,qDACKvC,oBACL,4BACA,kBACA,2DAEKuC,6BACL,0BACA,kBACA,2DAEKvC,mBACL,iCACKuC,4BACL,iCACKvC,mCACL,gBACKA,mCACL,gBACKA,cAjiBL,kBACA,kBACA,mKA+hBKlB,kEACL,gBACKkB,aAxPL,eACA,0BAuPKuC,kCACL,6BACA,yBACA,aACA,mBAGA,+BAGKvC,6BACL,4BACKuC,+CACL,4BACKvC,WAlQL,iBACA,mCAiQKuC,iCACL,mCACKvC,8BACL,wBACKuC,gDACL,oFACA,oCACA,iCACA,YAES,YACT,iCACA,aAGKvC,yBACL,yBACKuC,iCACL,kBACAvC,sBACA,6BACAA,gBAESI,gCACT,6IACKJ,0BACL,0BACKuC,kCACL,kCACA3C,oGACSE,GACT,6BACA4C,8BACS,YACTA,6BACSjD,qBACJO,sBACL,iDACKuC,8BACL,6BACA,UACA,6BACA9C,cACaK,gBAERE,wBACL,wBACKuC,gCACL,iBACA,6EACKvC,qBACL,qBACA,wBACKuC,8BACL,yBACA,6EACKvC,iCACL,oEACA,qBACA,kBACA,mCACA,8EAEKuC,oDACL,mBACA,oDACKvC,sBACL,qBACA,kBACA,aACA,4BAGA,mCACA,8EAEKuC,6BACL,qBACA,gDACKvC,kCACL,wBACKuC,oDACL,qBACA,0FACKvC,yCACL,2BACA,0FACKuC,qEACL,2BACA,0FACKvC,UAxVL,iBACA,wBAuVKuC,gCACL,oCACAvC,sBACAF,aAES,YACTE,sBACAF,SAESwC,MACJtC,wBACL,uEAEA,WACA","names":["window","postMessage","a","ready","S","q","w","type","data","g","handler","m","ses","o","value","configurable","t","k","en","e","Z","n","sn","r","c","u","state","s","f","l","N","when","D","cn","A","un","get","set","delete","post","apply","keys","E","index","h","C","I","d","p","L","setTimeout","task","process","setImmediate","gn","F","J","$","wn","jn","B","this","i","U","isDef","clearTimeout"],"sourceRoot":"webpack:///","sources":["src/assets/js/imanageLib.js"],"sourcesContent":["\"use strict\";\n!function (t) {\n function n(t) {\n var n = window.opener || window.parent;\n n.postMessage(JSON.stringify(t), e || \"*\")\n }\n\n t = t || (window.imanage = {});\n var e;\n t.ready = function (t) {\n return Q.promise(function (t, r) {\n function o(n) {\n try {\n var r = JSON.parse(n.data).data;\n r && r.config && r.config.serverBase === n.origin && (e = n.origin, t(r))\n } catch (o) {\n }\n }\n\n n({\n type: \"ready\",\n data: {}\n }), window.removeEventListener(\"message\", o), window.addEventListener(\"message\", o)\n })\n }, t.requestAuthNonce = function () {\n return Q.promise(function (t, e) {\n function r(n) {\n try {\n var r = JSON.parse(n.data).data;\n r && r.server_base === n.origin && (null === r.auth_nonce ? e(\"Unable to retrieve nonce for token.\") : t(r))\n } catch (o) {\n }\n }\n\n n({type: \"nonce\"}), window.removeEventListener(\"message\", r), window.addEventListener(\"message\", r)\n })\n }, t.save = function (t) {\n return Q.promise(function (e, r) {\n n({type: \"save\", data: t})\n })\n }, t.cancel = function (t) {\n return Q.promise(function (e, r) {\n n({type: \"cancel\", data: t})\n })\n }, t.dialogs = {\n handler: function (t, n) {\n function e(n) {\n t && t(n.data)\n }\n\n var r = n || {};\n return window.addEventListener(\"message\", e, r), function () {\n window.removeEventListener(\"message\", e, r)\n }\n }\n }\n}(window.imanage);\nvar _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t\n} : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t\n};\n!function (t) {\n if (\"function\" == typeof bootstrap) bootstrap(\"promise\", t); else if (\"object\" === (\"undefined\" == typeof exports ? \"undefined\" : _typeof(exports)) && \"object\" === (\"undefined\" == typeof module ? \"undefined\" : _typeof(module))) module.exports = t(); else if (\"function\" == typeof define && define.amd) define(t); else if (\"undefined\" != typeof ses) {\n if (!ses.ok()) return;\n ses.makeQ = t\n } else {\n if (\"undefined\" == typeof window && \"undefined\" == typeof self) throw new Error(\"This environment was not anticipated by Q. Please file a bug.\");\n var n = \"undefined\" != typeof window ? window : self, e = n.Q;\n n.Q = t(), n.Q.noConflict = function () {\n return n.Q = e, this\n }\n }\n}(function () {\n function t(t) {\n return function () {\n return z.apply(t, arguments)\n }\n }\n\n function n(t) {\n return t === Object(t)\n }\n\n function e(t) {\n return \"[object StopIteration]\" === rt(t) || t instanceof V\n }\n\n function r(t, n) {\n if (F && n.stack && \"object\" === (\"undefined\" == typeof t ? \"undefined\" : _typeof(t)) && null !== t && t.stack) {\n for (var e = [], r = n; r; r = r.source) r.stack && (!t.__minimumStackCounter__ || t.__minimumStackCounter__ > r.stackCounter) && (tt(t, \"__minimumStackCounter__\", {\n value: r.stackCounter,\n configurable: !0\n }), e.unshift(r.stack));\n e.unshift(t.stack);\n var i = e.join(\"\\n\" + ot + \"\\n\"), u = o(i);\n tt(t, \"stack\", {value: u, configurable: !0})\n }\n }\n\n function o(t) {\n for (var n = t.split(\"\\n\"), e = [], r = 0; r < n.length; ++r) {\n var o = n[r];\n c(o) || i(o) || !o || e.push(o)\n }\n return e.join(\"\\n\")\n }\n\n function i(t) {\n return t.indexOf(\"(module.js:\") !== -1 || t.indexOf(\"(node.js:\") !== -1\n }\n\n function u(t) {\n var n = /at .+ \\((.+):(\\d+):(?:\\d+)\\)$/.exec(t);\n if (n) return [n[1], Number(n[2])];\n var e = /at ([^ ]+):(\\d+):(?:\\d+)$/.exec(t);\n if (e) return [e[1], Number(e[2])];\n var r = /.*@(.+):(\\d+)$/.exec(t);\n return r ? [r[1], Number(r[2])] : void 0\n }\n\n function c(t) {\n var n = u(t);\n if (!n) return !1;\n var e = n[0], r = n[1];\n return e === $ && r >= q && r <= pt\n }\n\n function f() {\n if (F) try {\n throw new Error\n } catch (t) {\n var n = t.stack.split(\"\\n\"), e = n[0].indexOf(\"@\") > 0 ? n[1] : n[2], r = u(e);\n if (!r) return;\n return $ = r[0], r[1]\n }\n }\n\n function s(t, n, e) {\n return function () {\n return \"undefined\" != typeof console && \"function\" == typeof console.warn && console.warn(n + \" is deprecated, use \" + e + \" instead.\", new Error(\"\").stack), t.apply(t, arguments)\n }\n }\n\n function p(t) {\n return t instanceof y ? t : w(t) ? _(t) : R(t)\n }\n\n function a() {\n function t(t) {\n n = t, p.longStackSupport && F && (i.source = t), W(e, function (n, e) {\n p.nextTick(function () {\n t.promiseDispatch.apply(t, e)\n })\n }, void 0), e = void 0, r = void 0\n }\n\n var n, e = [], r = [], o = Z(a.prototype), i = Z(y.prototype);\n if (i.promiseDispatch = function (t, o, i) {\n var u = K(arguments);\n e ? (e.push(u), \"when\" === o && i[1] && r.push(i[1])) : p.nextTick(function () {\n n.promiseDispatch.apply(n, u)\n })\n }, i.valueOf = function () {\n if (e) return i;\n var t = v(n);\n return m(t) && (n = t), t\n }, i.inspect = function () {\n return n ? n.inspect() : {state: \"pending\"}\n }, p.longStackSupport && F) try {\n throw new Error\n } catch (u) {\n i.stack = u.stack.substring(u.stack.indexOf(\"\\n\") + 1), i.stackCounter = it++\n }\n return o.promise = i, o.resolve = function (e) {\n n || t(p(e))\n }, o.fulfill = function (e) {\n n || t(R(e))\n }, o.reject = function (e) {\n n || t(S(e))\n }, o.notify = function (t) {\n n || W(r, function (n, e) {\n p.nextTick(function () {\n e(t)\n })\n }, void 0)\n }, o\n }\n\n function l(t) {\n if (\"function\" != typeof t) throw new TypeError(\"resolver must be a function.\");\n var n = a();\n try {\n t(n.resolve, n.reject, n.notify)\n } catch (e) {\n n.reject(e)\n }\n return n.promise\n }\n\n function d(t) {\n return l(function (n, e) {\n for (var r = 0, o = t.length; r < o; r++) p(t[r]).then(n, e)\n })\n }\n\n function y(t, n, e) {\n void 0 === n && (n = function (t) {\n return S(new Error(\"Promise does not support operation: \" + t))\n }), void 0 === e && (e = function () {\n return {state: \"unknown\"}\n });\n var r = Z(y.prototype);\n if (r.promiseDispatch = function (e, o, i) {\n var u;\n try {\n u = t[o] ? t[o].apply(r, i) : n.call(r, o, i)\n } catch (c) {\n u = S(c)\n }\n e && e(u)\n }, r.inspect = e, e) {\n var o = e();\n \"rejected\" === o.state && (r.exception = o.reason), r.valueOf = function () {\n var t = e();\n return \"pending\" === t.state || \"rejected\" === t.state ? r : t.value\n }\n }\n return r\n }\n\n function h(t, n, e, r) {\n return p(t).then(n, e, r)\n }\n\n function v(t) {\n if (m(t)) {\n var n = t.inspect();\n if (\"fulfilled\" === n.state) return n.value\n }\n return t\n }\n\n function m(t) {\n return t instanceof y\n }\n\n function w(t) {\n return n(t) && \"function\" == typeof t.then\n }\n\n function k(t) {\n return m(t) && \"pending\" === t.inspect().state\n }\n\n function g(t) {\n return !m(t) || \"fulfilled\" === t.inspect().state\n }\n\n function j(t) {\n return m(t) && \"rejected\" === t.inspect().state\n }\n\n function b() {\n ut.length = 0, ct.length = 0, st || (st = !0)\n }\n\n function x(t, n) {\n st && (\"object\" === (\"undefined\" == typeof process ? \"undefined\" : _typeof(process)) && \"function\" == typeof process.emit && p.nextTick.runAfter(function () {\n X(ct, t) !== -1 && (process.emit(\"unhandledRejection\", n, t), ft.push(t))\n }), ct.push(t), n && \"undefined\" != typeof n.stack ? ut.push(n.stack) : ut.push(\"(no stack) \" + n))\n }\n\n function T(t) {\n if (st) {\n var n = X(ct, t);\n n !== -1 && (\"object\" === (\"undefined\" == typeof process ? \"undefined\" : _typeof(process)) && \"function\" == typeof process.emit && p.nextTick.runAfter(function () {\n var e = X(ft, t);\n e !== -1 && (process.emit(\"rejectionHandled\", ut[n], t), ft.splice(e, 1))\n }), ct.splice(n, 1), ut.splice(n, 1))\n }\n }\n\n function S(t) {\n var n = y({\n when: function (n) {\n return n && T(this), n ? n(t) : this\n }\n }, function () {\n return this\n }, function () {\n return {state: \"rejected\", reason: t}\n });\n return x(n, t), n\n }\n\n function R(t) {\n return y({\n when: function () {\n return t\n }, get: function (n) {\n return t[n]\n }, set: function (n, e) {\n t[n] = e\n }, \"delete\": function (n) {\n delete t[n]\n }, post: function (n, e) {\n return null === n || void 0 === n ? t.apply(void 0, e) : t[n].apply(t, e)\n }, apply: function (n, e) {\n return t.apply(n, e)\n }, keys: function () {\n return et(t)\n }\n }, void 0, function () {\n return {state: \"fulfilled\", value: t}\n })\n }\n\n function _(t) {\n var n = a();\n return p.nextTick(function () {\n try {\n t.then(n.resolve, n.reject, n.notify)\n } catch (e) {\n n.reject(e)\n }\n }), n.promise\n }\n\n function E(t) {\n return y({\n isDef: function () {\n }\n }, function (n, e) {\n return D(t, n, e)\n }, function () {\n return p(t).inspect()\n })\n }\n\n function O(t, n, e) {\n return p(t).spread(n, e)\n }\n\n function Q(t) {\n return function () {\n function n(t, n) {\n var u;\n if (\"undefined\" == typeof StopIteration) {\n try {\n u = r[t](n)\n } catch (c) {\n return S(c)\n }\n return u.done ? p(u.value) : h(u.value, o, i)\n }\n try {\n u = r[t](n)\n } catch (c) {\n return e(c) ? p(c.value) : S(c)\n }\n return h(u, o, i)\n }\n\n var r = t.apply(this, arguments), o = n.bind(n, \"next\"), i = n.bind(n, \"throw\");\n return o()\n }\n }\n\n function N(t) {\n p.done(p.async(t)())\n }\n\n function C(t) {\n throw new V(t)\n }\n\n function P(t) {\n return function () {\n return O([this, A(arguments)], function (n, e) {\n return t.apply(n, e)\n })\n }\n }\n\n function D(t, n, e) {\n return p(t).dispatch(n, e)\n }\n\n function A(t) {\n return h(t, function (t) {\n var n = 0, e = a();\n return W(t, function (r, o, i) {\n var u;\n m(o) && \"fulfilled\" === (u = o.inspect()).state ? t[i] = u.value : (++n, h(o, function (r) {\n t[i] = r, 0 === --n && e.resolve(t)\n }, e.reject, function (t) {\n e.notify({index: i, value: t})\n }))\n }, void 0), 0 === n && e.resolve(t), e.promise\n })\n }\n\n function L(t) {\n if (0 === t.length) return p.resolve();\n var n = p.defer(), e = 0;\n return W(t, function (r, o, i) {\n function u(t) {\n n.resolve(t)\n }\n\n function c(t) {\n if (e--, 0 === e) {\n var r = t || new Error(\"\" + t);\n r.message = \"Q can't get fulfillment value from any promise, all promises were rejected. Last error message: \" + r.message, n.reject(r)\n }\n }\n\n function f(t) {\n n.notify({index: i, value: t})\n }\n\n var s = t[i];\n e++, h(s, u, c, f)\n }, void 0), n.promise\n }\n\n function I(t) {\n return h(t, function (t) {\n return t = Y(t, p), h(A(Y(t, function (t) {\n return h(t, G, G)\n })), function () {\n return t\n })\n })\n }\n\n function U(t) {\n return p(t).allSettled()\n }\n\n function M(t, n) {\n return p(t).then(void 0, void 0, n)\n }\n\n function B(t, n) {\n return p(t).nodeify(n)\n }\n\n var F = !1;\n try {\n throw new Error\n } catch (J) {\n F = !!J.stack\n }\n var $, V, q = f(), G = function () {\n }, H = function () {\n function t() {\n for (var t, r; e.next;) e = e.next, t = e.task, e.task = void 0, r = e.domain, r && (e.domain = void 0, r.enter()), n(t, r);\n for (; c.length;) t = c.pop(), n(t);\n o = !1\n }\n\n function n(n, e) {\n try {\n n()\n } catch (r) {\n if (u) throw e && e.exit(), setTimeout(t, 0), e && e.enter(), r;\n setTimeout(function () {\n throw r\n }, 0)\n }\n e && e.exit()\n }\n\n var e = {task: void 0, next: null}, r = e, o = !1, i = void 0, u = !1, c = [];\n if (H = function (t) {\n r = r.next = {task: t, domain: u && process.domain, next: null}, o || (o = !0, i())\n }, \"object\" === (\"undefined\" == typeof process ? \"undefined\" : _typeof(process)) && \"[object process]\" === process.toString() && process.nextTick) u = !0, i = function () {\n process.nextTick(t)\n }; else if (\"function\" == typeof setImmediate) i = \"undefined\" != typeof window ? setImmediate.bind(window, t) : function () {\n setImmediate(t)\n }; else if (\"undefined\" != typeof MessageChannel) {\n var f = new MessageChannel;\n f.port1.onmessage = function () {\n i = s, f.port1.onmessage = t, t()\n };\n var s = function () {\n f.port2.postMessage(0)\n };\n i = function () {\n setTimeout(t, 0), s()\n }\n } else i = function () {\n setTimeout(t, 0)\n };\n return H.runAfter = function (t) {\n c.push(t), o || (o = !0, i())\n }, H\n }(), z = Function.call, K = t(Array.prototype.slice), W = t(Array.prototype.reduce || function (t, n) {\n var e = 0, r = this.length;\n if (1 === arguments.length) for (; ;) {\n if (e in this) {\n n = this[e++];\n break\n }\n if (++e >= r) throw new TypeError\n }\n for (; e < r; e++) e in this && (n = t(n, this[e], e));\n return n\n }), X = t(Array.prototype.indexOf || function (t) {\n for (var n = 0; n < this.length; n++) if (this[n] === t) return n;\n return -1\n }), Y = t(Array.prototype.map || function (t, n) {\n var e = this, r = [];\n return W(e, function (o, i, u) {\n r.push(t.call(n, i, u, e))\n }, void 0), r\n }), Z = Object.create || function (t) {\n function n() {\n }\n\n return n.prototype = t, new n\n }, tt = Object.defineProperty || function (t, n, e) {\n return t[n] = e.value, t\n }, nt = t(Object.prototype.hasOwnProperty), et = Object.keys || function (t) {\n var n = [];\n for (var e in t) nt(t, e) && n.push(e);\n return n\n }, rt = t(Object.prototype.toString);\n V = \"undefined\" != typeof ReturnValue ? ReturnValue : function (t) {\n this.value = t\n };\n var ot = \"From previous event:\";\n p.resolve = p, p.nextTick = H, p.longStackSupport = !1;\n var it = 1;\n \"object\" === (\"undefined\" == typeof process ? \"undefined\" : _typeof(process)) && process && process.env && process.env.Q_DEBUG && (p.longStackSupport = !0), p.defer = a, a.prototype.makeNodeResolver = function () {\n var t = this;\n return function (n, e) {\n n ? t.reject(n) : arguments.length > 2 ? t.resolve(K(arguments, 1)) : t.resolve(e)\n }\n }, p.Promise = l, p.promise = l, l.race = d, l.all = A, l.reject = S, l.resolve = p, p.passByCopy = function (t) {\n return t\n }, y.prototype.passByCopy = function () {\n return this\n }, p.join = function (t, n) {\n return p(t).join(n)\n }, y.prototype.join = function (t) {\n return p([this, t]).spread(function (t, n) {\n if (t === n) return t;\n throw new Error(\"Q can't join: not the same: \" + t + \" \" + n)\n })\n }, p.race = d, y.prototype.race = function () {\n return this.then(p.race)\n }, p.makePromise = y, y.prototype.toString = function () {\n return \"[object Promise]\"\n }, y.prototype.then = function (t, n, e) {\n function o(n) {\n try {\n return \"function\" == typeof t ? t(n) : n\n } catch (e) {\n return S(e)\n }\n }\n\n function i(t) {\n if (\"function\" == typeof n) {\n r(t, c);\n try {\n return n(t)\n } catch (e) {\n return S(e)\n }\n }\n return S(t)\n }\n\n function u(t) {\n return \"function\" == typeof e ? e(t) : t\n }\n\n var c = this, f = a(), s = !1;\n return p.nextTick(function () {\n c.promiseDispatch(function (t) {\n s || (s = !0, f.resolve(o(t)))\n }, \"when\", [function (t) {\n s || (s = !0, f.resolve(i(t)))\n }])\n }), c.promiseDispatch(void 0, \"when\", [void 0, function (t) {\n var n, e = !1;\n try {\n n = u(t)\n } catch (r) {\n if (e = !0, !p.onerror) throw r;\n p.onerror(r)\n }\n e || f.notify(n)\n }]), f.promise\n }, p.tap = function (t, n) {\n return p(t).tap(n)\n }, y.prototype.tap = function (t) {\n return t = p(t), this.then(function (n) {\n return t.fcall(n).thenResolve(n)\n })\n }, p.when = h, y.prototype.thenResolve = function (t) {\n return this.then(function () {\n return t\n })\n }, p.thenResolve = function (t, n) {\n return p(t).thenResolve(n)\n }, y.prototype.thenReject = function (t) {\n return this.then(function () {\n throw t\n })\n }, p.thenReject = function (t, n) {\n return p(t).thenReject(n)\n }, p.nearer = v, p.isPromise = m, p.isPromiseAlike = w, p.isPending = k, y.prototype.isPending = function () {\n return \"pending\" === this.inspect().state\n }, p.isFulfilled = g, y.prototype.isFulfilled = function () {\n return \"fulfilled\" === this.inspect().state\n }, p.isRejected = j, y.prototype.isRejected = function () {\n return \"rejected\" === this.inspect().state\n };\n var ut = [], ct = [], ft = [], st = !0;\n p.resetUnhandledRejections = b, p.getUnhandledReasons = function () {\n return ut.slice()\n }, p.stopUnhandledRejectionTracking = function () {\n b(), st = !1\n }, b(), p.reject = S, p.fulfill = R, p.master = E, p.spread = O, y.prototype.spread = function (t, n) {\n return this.all().then(function (n) {\n return t.apply(void 0, n)\n }, n)\n }, p.async = Q, p.spawn = N, p[\"return\"] = C, p.promised = P, p.dispatch = D, y.prototype.dispatch = function (t, n) {\n var e = this, r = a();\n return p.nextTick(function () {\n e.promiseDispatch(r.resolve, t, n)\n }), r.promise\n }, p.get = function (t, n) {\n return p(t).dispatch(\"get\", [n])\n }, y.prototype.get = function (t) {\n return this.dispatch(\"get\", [t])\n }, p.set = function (t, n, e) {\n return p(t).dispatch(\"set\", [n, e])\n }, y.prototype.set = function (t, n) {\n return this.dispatch(\"set\", [t, n])\n }, p.del = p[\"delete\"] = function (t, n) {\n return p(t).dispatch(\"delete\", [n])\n }, y.prototype.del = y.prototype[\"delete\"] = function (t) {\n return this.dispatch(\"delete\", [t])\n }, p.mapply = p.post = function (t, n, e) {\n return p(t).dispatch(\"post\", [n, e])\n }, y.prototype.mapply = y.prototype.post = function (t, n) {\n return this.dispatch(\"post\", [t, n])\n }, p.send = p.mcall = p.invoke = function (t, n) {\n return p(t).dispatch(\"post\", [n, K(arguments, 2)])\n }, y.prototype.send = y.prototype.mcall = y.prototype.invoke = function (t) {\n return this.dispatch(\"post\", [t, K(arguments, 1)])\n }, p.fapply = function (t, n) {\n return p(t).dispatch(\"apply\", [void 0, n])\n }, y.prototype.fapply = function (t) {\n return this.dispatch(\"apply\", [void 0, t])\n }, p[\"try\"] = p.fcall = function (t) {\n return p(t).dispatch(\"apply\", [void 0, K(arguments, 1)])\n }, y.prototype.fcall = function () {\n return this.dispatch(\"apply\", [void 0, K(arguments)])\n }, p.fbind = function (t) {\n var n = p(t), e = K(arguments, 1);\n return function () {\n return n.dispatch(\"apply\", [this, e.concat(K(arguments))])\n }\n }, y.prototype.fbind = function () {\n var t = this, n = K(arguments);\n return function () {\n return t.dispatch(\"apply\", [this, n.concat(K(arguments))])\n }\n }, p.keys = function (t) {\n return p(t).dispatch(\"keys\", [])\n }, y.prototype.keys = function () {\n return this.dispatch(\"keys\", [])\n }, p.all = A, y.prototype.all = function () {\n return A(this)\n }, p.any = L, y.prototype.any = function () {\n return L(this)\n }, p.allResolved = s(I, \"allResolved\", \"allSettled\"), y.prototype.allResolved = function () {\n return I(this)\n }, p.allSettled = U, y.prototype.allSettled = function () {\n return this.then(function (t) {\n return A(Y(t, function (t) {\n function n() {\n return t.inspect()\n }\n\n return t = p(t), t.then(n, n)\n }))\n })\n }, p.fail = p[\"catch\"] = function (t, n) {\n return p(t).then(void 0, n)\n }, y.prototype.fail = y.prototype[\"catch\"] = function (t) {\n return this.then(void 0, t)\n }, p.progress = M, y.prototype.progress = function (t) {\n return this.then(void 0, void 0, t)\n }, p.fin = p[\"finally\"] = function (t, n) {\n return p(t)[\"finally\"](n)\n }, y.prototype.fin = y.prototype[\"finally\"] = function (t) {\n if (!t || \"function\" != typeof t.apply) throw new Error(\"Q can't apply finally callback\");\n return t = p(t), this.then(function (n) {\n return t.fcall().then(function () {\n return n\n })\n }, function (n) {\n return t.fcall().then(function () {\n throw n\n })\n })\n }, p.done = function (t, n, e, r) {\n return p(t).done(n, e, r)\n }, y.prototype.done = function (t, n, e) {\n var o = function (t) {\n p.nextTick(function () {\n if (r(t, i), !p.onerror) throw t;\n p.onerror(t)\n })\n }, i = t || n || e ? this.then(t, n, e) : this;\n \"object\" === (\"undefined\" == typeof process ? \"undefined\" : _typeof(process)) && process && process.domain && (o = process.domain.bind(o)), i.then(void 0, o)\n }, p.timeout = function (t, n, e) {\n return p(t).timeout(n, e)\n }, y.prototype.timeout = function (t, n) {\n var e = a(), r = setTimeout(function () {\n n && \"string\" != typeof n || (n = new Error(n || \"Timed out after \" + t + \" ms\"), n.code = \"ETIMEDOUT\"), e.reject(n)\n }, t);\n return this.then(function (t) {\n clearTimeout(r), e.resolve(t)\n }, function (t) {\n clearTimeout(r), e.reject(t)\n }, e.notify), e.promise\n }, p.delay = function (t, n) {\n return void 0 === n && (n = t, t = void 0), p(t).delay(n)\n }, y.prototype.delay = function (t) {\n return this.then(function (n) {\n var e = a();\n return setTimeout(function () {\n e.resolve(n)\n }, t), e.promise\n })\n }, p.nfapply = function (t, n) {\n return p(t).nfapply(n)\n }, y.prototype.nfapply = function (t) {\n var n = a(), e = K(t);\n return e.push(n.makeNodeResolver()), this.fapply(e).fail(n.reject), n.promise\n }, p.nfcall = function (t) {\n var n = K(arguments, 1);\n return p(t).nfapply(n)\n }, y.prototype.nfcall = function () {\n var t = K(arguments), n = a();\n return t.push(n.makeNodeResolver()), this.fapply(t).fail(n.reject), n.promise\n }, p.nfbind = p.denodeify = function (t) {\n if (void 0 === t) throw new Error(\"Q can't wrap an undefined function\");\n var n = K(arguments, 1);\n return function () {\n var e = n.concat(K(arguments)), r = a();\n return e.push(r.makeNodeResolver()), p(t).fapply(e).fail(r.reject), r.promise\n }\n }, y.prototype.nfbind = y.prototype.denodeify = function () {\n var t = K(arguments);\n return t.unshift(this), p.denodeify.apply(void 0, t)\n }, p.nbind = function (t, n) {\n var e = K(arguments, 2);\n return function () {\n function r() {\n return t.apply(n, arguments)\n }\n\n var o = e.concat(K(arguments)), i = a();\n return o.push(i.makeNodeResolver()), p(r).fapply(o).fail(i.reject), i.promise\n }\n }, y.prototype.nbind = function () {\n var t = K(arguments, 0);\n return t.unshift(this), p.nbind.apply(void 0, t)\n }, p.nmapply = p.npost = function (t, n, e) {\n return p(t).npost(n, e)\n }, y.prototype.nmapply = y.prototype.npost = function (t, n) {\n var e = K(n || []), r = a();\n return e.push(r.makeNodeResolver()), this.dispatch(\"post\", [t, e]).fail(r.reject), r.promise\n }, p.nsend = p.nmcall = p.ninvoke = function (t, n) {\n var e = K(arguments, 2), r = a();\n return e.push(r.makeNodeResolver()), p(t).dispatch(\"post\", [n, e]).fail(r.reject), r.promise\n }, y.prototype.nsend = y.prototype.nmcall = y.prototype.ninvoke = function (t) {\n var n = K(arguments, 1), e = a();\n return n.push(e.makeNodeResolver()), this.dispatch(\"post\", [t, n]).fail(e.reject), e.promise\n }, p.nodeify = B, y.prototype.nodeify = function (t) {\n return t ? void this.then(function (n) {\n p.nextTick(function () {\n t(null, n)\n })\n }, function (n) {\n p.nextTick(function () {\n t(n)\n })\n }) : this\n }, p.noConflict = function () {\n throw new Error(\"Q.noConflict only works when Q is used as a global\")\n };\n var pt = f();\n return p\n});\n"]}