-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomplex.min.js
More file actions
3 lines (3 loc) · 36 KB
/
complex.min.js
File metadata and controls
3 lines (3 loc) · 36 KB
1
2
3
!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Complex=n()}}(function(){return function n(t,e,r){function a(o,u){if(!e[o]){if(!t[o]){var s="function"==typeof require&&require;if(!u&&s)return s(o,!0);if(i)return i(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var l=e[o]={exports:{}};t[o][0].call(l.exports,function(n){var e=t[o][1][n];return a(e?e:n)},l,l.exports,n,t,e,r)}return e[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(n,t,e){"use strict";function r(n,t){function e(){this.constructor=n}e.prototype=t.prototype,n.prototype=new e}function a(n,t,e,r){this.message=n,this.expected=t,this.found=e,this.location=r,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,a)}function i(t,e){function r(){return t.substring(ft,ct)}function i(n,t){throw t=void 0!==t?t:c(ft,ct),m(n,t)}function o(n,t){return{type:"literal",text:n,ignoreCase:t}}function u(n,t,e){return{type:"class",parts:n,inverted:t,ignoreCase:e}}function s(){return{type:"end"}}function h(n){return{type:"other",description:n}}function l(n){var e,r=mt[n];if(r)return r;for(e=n-1;!mt[e];)e--;for(r=mt[e],r={line:r.line,column:r.column};e<n;)10===t.charCodeAt(e)?(r.line++,r.column=1):r.column++,e++;return mt[n]=r,r}function c(n,t){var e=l(n),r=l(t);return{start:{offset:n,line:e.line,column:e.column},end:{offset:t,line:r.line,column:r.column}}}function f(n){ct<gt||(ct>gt&&(gt=ct,bt=[]),bt.push(n))}function m(n,t){return new a(n,null,null,t)}function g(n,t,e){return new a(a.buildMessage(n,t),n,t,e)}function b(){var n,t,e,r,a=18*ct+0,i=dt[a];return i?(ct=i.nextPos,i.result):(Et++,n=ct,t=F(),t!==W?(e=E(),e!==W?(r=F(),r!==W?(ft=n,t=z(e),n=t):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),Et--,n===W&&(t=W,0===Et&&f(G)),dt[a]={nextPos:ct,result:n},n)}function E(){var n,e,r,a,i,o,u=18*ct+1,s=dt[u];return s?(ct=s.nextPos,s.result):(n=ct,e=p(),e!==W?(r=F(),r!==W?(43===t.charCodeAt(ct)?(a=Z,ct++):(a=W,0===Et&&f(D)),a!==W?(i=F(),i!==W?(o=d(),o!==W?(ft=n,e=B(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=p(),e!==W?(r=F(),r!==W?(45===t.charCodeAt(ct)?(a=H,ct++):(a=W,0===Et&&f(J)),a!==W?(i=F(),i!==W?(o=d(),o!==W?(ft=n,e=K(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=p(),e!==W?(r=F(),r!==W?(43===t.charCodeAt(ct)?(a=Z,ct++):(a=W,0===Et&&f(D)),a!==W?(i=F(),i!==W?(o=p(),o!==W?(ft=n,e=Q(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=p(),e!==W?(r=F(),r!==W?(45===t.charCodeAt(ct)?(a=H,ct++):(a=W,0===Et&&f(J)),a!==W?(i=F(),i!==W?(o=p(),o!==W?(ft=n,e=V(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=p())))),dt[u]={nextPos:ct,result:n},n)}function d(){var n,e,r,a,i,o,u=18*ct+2,s=dt[u];return s?(ct=s.nextPos,s.result):(n=ct,e=p(),e!==W?(r=F(),r!==W?(43===t.charCodeAt(ct)?(a=Z,ct++):(a=W,0===Et&&f(D)),a!==W?(i=F(),i!==W?(o=d(),o!==W?(ft=n,e=X(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=p(),e!==W?(r=F(),r!==W?(45===t.charCodeAt(ct)?(a=H,ct++):(a=W,0===Et&&f(J)),a!==W?(i=F(),i!==W?(o=d(),o!==W?(ft=n,e=Y(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=p(),e!==W?(r=F(),r!==W?(43===t.charCodeAt(ct)?(a=Z,ct++):(a=W,0===Et&&f(D)),a!==W?(i=F(),i!==W?(o=p(),o!==W?(ft=n,e=$(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=p(),e!==W?(r=F(),r!==W?(45===t.charCodeAt(ct)?(a=H,ct++):(a=W,0===Et&&f(J)),a!==W?(i=F(),i!==W?(o=p(),o!==W?(ft=n,e=nn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)))),dt[u]={nextPos:ct,result:n},n)}function p(){var n,e,r,a,i,o,u=18*ct+3,s=dt[u];return s?(ct=s.nextPos,s.result):(n=ct,e=M(),e!==W?(r=F(),r!==W?(a=v(),a!==W?(ft=n,e=tn(e,a),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(42===t.charCodeAt(ct)?(a=en,ct++):(a=W,0===Et&&f(rn)),a!==W?(i=F(),i!==W?(o=w(),o!==W?(ft=n,e=tn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(47===t.charCodeAt(ct)?(a=an,ct++):(a=W,0===Et&&f(on)),a!==W?(i=F(),i!==W?(o=w(),o!==W?(ft=n,e=un(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(37===t.charCodeAt(ct)?(a=sn,ct++):(a=W,0===Et&&f(hn)),a!==W?(i=F(),i!==W?(o=w(),o!==W?(ft=n,e=ln(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(a=x(),a!==W?(ft=n,e=cn(e,a),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(42===t.charCodeAt(ct)?(a=en,ct++):(a=W,0===Et&&f(rn)),a!==W?(i=F(),i!==W?(o=M(),o!==W?(ft=n,e=cn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(47===t.charCodeAt(ct)?(a=an,ct++):(a=W,0===Et&&f(on)),a!==W?(i=F(),i!==W?(o=M(),o!==W?(ft=n,e=fn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(37===t.charCodeAt(ct)?(a=sn,ct++):(a=W,0===Et&&f(hn)),a!==W?(i=F(),i!==W?(o=M(),o!==W?(ft=n,e=mn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=M())))))))),dt[u]={nextPos:ct,result:n},n)}function w(){var n,e,r,a,i,o,u=18*ct+4,s=dt[u];return s?(ct=s.nextPos,s.result):(n=ct,e=M(),e!==W?(r=F(),r!==W?(a=v(),a!==W?(ft=n,e=gn(e,a),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(42===t.charCodeAt(ct)?(a=en,ct++):(a=W,0===Et&&f(rn)),a!==W?(i=F(),i!==W?(o=w(),o!==W?(ft=n,e=gn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(47===t.charCodeAt(ct)?(a=an,ct++):(a=W,0===Et&&f(on)),a!==W?(i=F(),i!==W?(o=w(),o!==W?(ft=n,e=bn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(37===t.charCodeAt(ct)?(a=sn,ct++):(a=W,0===Et&&f(hn)),a!==W?(i=F(),i!==W?(o=w(),o!==W?(ft=n,e=En(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(a=x(),a!==W?(ft=n,e=dn(e,a),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(42===t.charCodeAt(ct)?(a=en,ct++):(a=W,0===Et&&f(rn)),a!==W?(i=F(),i!==W?(o=M(),o!==W?(ft=n,e=dn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(47===t.charCodeAt(ct)?(a=an,ct++):(a=W,0===Et&&f(on)),a!==W?(i=F(),i!==W?(o=M(),o!==W?(ft=n,e=pn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=M(),e!==W?(r=F(),r!==W?(37===t.charCodeAt(ct)?(a=sn,ct++):(a=W,0===Et&&f(hn)),a!==W?(i=F(),i!==W?(o=M(),o!==W?(ft=n,e=wn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)))))))),dt[u]={nextPos:ct,result:n},n)}function v(){var n,e,r,a,i,o,u=18*ct+5,s=dt[u];return s?(ct=s.nextPos,s.result):(n=ct,e=x(),e!==W?(r=F(),r!==W?(a=v(),a!==W?(ft=n,e=gn(e,a),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=x(),e!==W?(r=F(),r!==W?(42===t.charCodeAt(ct)?(a=en,ct++):(a=W,0===Et&&f(rn)),a!==W?(i=F(),i!==W?(o=w(),o!==W?(ft=n,e=gn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=x(),e!==W?(r=F(),r!==W?(47===t.charCodeAt(ct)?(a=an,ct++):(a=W,0===Et&&f(on)),a!==W?(i=F(),i!==W?(o=w(),o!==W?(ft=n,e=bn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=x(),e!==W?(r=F(),r!==W?(37===t.charCodeAt(ct)?(a=sn,ct++):(a=W,0===Et&&f(hn)),a!==W?(i=F(),i!==W?(o=w(),o!==W?(ft=n,e=En(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=x(),e!==W?(r=F(),r!==W?(a=x(),a!==W?(ft=n,e=dn(e,a),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=x(),e!==W?(r=F(),r!==W?(42===t.charCodeAt(ct)?(a=en,ct++):(a=W,0===Et&&f(rn)),a!==W?(i=F(),i!==W?(o=M(),o!==W?(ft=n,e=dn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=x(),e!==W?(r=F(),r!==W?(47===t.charCodeAt(ct)?(a=an,ct++):(a=W,0===Et&&f(on)),a!==W?(i=F(),i!==W?(o=M(),o!==W?(ft=n,e=pn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=x(),e!==W?(r=F(),r!==W?(37===t.charCodeAt(ct)?(a=sn,ct++):(a=W,0===Et&&f(hn)),a!==W?(i=F(),i!==W?(o=M(),o!==W?(ft=n,e=wn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)))))))),dt[u]={nextPos:ct,result:n},n)}function M(){var n,e,r,a,i,o,u=18*ct+6,s=dt[u];return s?(ct=s.nextPos,s.result):(n=ct,e=P(),e!==W?(r=F(),r!==W?(94===t.charCodeAt(ct)?(a=vn,ct++):(a=W,0===Et&&f(Mn)),a===W&&(t.substr(ct,2)===xn?(a=xn,ct+=2):(a=W,0===Et&&f(Pn))),a!==W?(i=F(),i!==W?(o=M(),o!==W?(ft=n,e=On(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,45===t.charCodeAt(ct)?(e=H,ct++):(e=W,0===Et&&f(J)),e!==W?(r=F(),r!==W?(a=M(),a!==W?(ft=n,e=Nn(a),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=P())),dt[u]={nextPos:ct,result:n},n)}function x(){var n,e,r,a,i,o,u=18*ct+7,s=dt[u];return s?(ct=s.nextPos,s.result):(n=ct,e=P(),e!==W?(r=F(),r!==W?(94===t.charCodeAt(ct)?(a=vn,ct++):(a=W,0===Et&&f(Mn)),a===W&&(t.substr(ct,2)===xn?(a=xn,ct+=2):(a=W,0===Et&&f(Pn))),a!==W?(i=F(),i!==W?(o=x(),o!==W?(ft=n,e=On(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=P()),dt[u]={nextPos:ct,result:n},n)}function P(){var n,e,r,a,i,o,u=18*ct+9,s=dt[u];return s?(ct=s.nextPos,s.result):(n=ct,40===t.charCodeAt(ct)?(e=In,ct++):(e=W,0===Et&&f(An)),e!==W?(r=F(),r!==W?(a=E(),a!==W?(i=F(),i!==W?(41===t.charCodeAt(ct)?(o=yn,ct++):(o=W,0===Et&&f(Cn)),o!==W?(ft=n,e=qn(a),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,91===t.charCodeAt(ct)?(e=Fn,ct++):(e=W,0===Et&&f(jn)),e!==W?(r=F(),r!==W?(a=E(),a!==W?(i=F(),i!==W?(93===t.charCodeAt(ct)?(o=Sn,ct++):(o=W,0===Et&&f(_n)),o!==W?(ft=n,e=qn(a),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,123===t.charCodeAt(ct)?(e=Tn,ct++):(e=W,0===Et&&f(Un)),e!==W?(r=F(),r!==W?(a=E(),a!==W?(i=F(),i!==W?(125===t.charCodeAt(ct)?(o=Ln,ct++):(o=W,0===Et&&f(Wn)),o!==W?(ft=n,e=qn(a),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=O()))),dt[u]={nextPos:ct,result:n},n)}function O(){var n,e,r,a,i,o,u,s,h=18*ct+10,l=dt[h];return l?(ct=l.nextPos,l.result):(Et++,n=ct,e=A(),e!==W?(r=F(),r!==W?(40===t.charCodeAt(ct)?(a=In,ct++):(a=W,0===Et&&f(An)),a!==W?(i=F(),i!==W?(o=N(),o!==W?(u=F(),u!==W?(41===t.charCodeAt(ct)?(s=yn,ct++):(s=W,0===Et&&f(Cn)),s!==W?(ft=n,e=kn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=I()),Et--,n===W&&(e=W,0===Et&&f(Rn)),dt[h]={nextPos:ct,result:n},n)}function N(){var n,e,r,a,i,o,u=18*ct+11,s=dt[u];return s?(ct=s.nextPos,s.result):(n=ct,e=E(),e!==W?(r=F(),r!==W?(44===t.charCodeAt(ct)?(a=Gn,ct++):(a=W,0===Et&&f(zn)),a!==W?(i=F(),i!==W?(o=N(),o!==W?(ft=n,e=Zn(e,o),n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),n===W&&(n=ct,e=E(),e!==W&&(ft=n,e=Dn(e)),n=e),dt[u]={nextPos:ct,result:n},n)}function I(){var n,t,e=18*ct+12,r=dt[e];return r?(ct=r.nextPos,r.result):(n=ct,t=A(),t!==W&&(ft=n,t=Bn(t)),n=t,n===W&&(n=y()),dt[e]={nextPos:ct,result:n},n)}function A(){var n,e,r,a,i=18*ct+13,o=dt[i];if(o)return ct=o.nextPos,o.result;if(Et++,n=ct,Jn.test(t.charAt(ct))?(e=t.charAt(ct),ct++):(e=W,0===Et&&f(Kn)),e!==W){for(r=[],Qn.test(t.charAt(ct))?(a=t.charAt(ct),ct++):(a=W,0===Et&&f(Vn));a!==W;)r.push(a),Qn.test(t.charAt(ct))?(a=t.charAt(ct),ct++):(a=W,0===Et&&f(Vn));r!==W?(ft=n,e=Xn(),n=e):(ct=n,n=W)}else ct=n,n=W;return Et--,n===W&&(e=W,0===Et&&f(Hn)),dt[i]={nextPos:ct,result:n},n}function y(){var n,e,r,a,i,o,u=18*ct+14,s=dt[u];return s?(ct=s.nextPos,s.result):(Et++,n=ct,e=C(),e!==W?(r=ct,$n.test(t.charAt(ct))?(a=t.charAt(ct),ct++):(a=W,0===Et&&f(nt)),a!==W?(tt.test(t.charAt(ct))?(i=t.charAt(ct),ct++):(i=W,0===Et&&f(et)),i===W&&(i=null),i!==W?(o=q(),o!==W?(a=[a,i,o],r=a):(ct=r,r=W)):(ct=r,r=W)):(ct=r,r=W),r===W&&(r=null),r!==W?(ft=n,e=rt(),n=e):(ct=n,n=W)):(ct=n,n=W),Et--,n===W&&(e=W,0===Et&&f(Yn)),dt[u]={nextPos:ct,result:n},n)}function C(){var n,e,r,a,i=18*ct+15,o=dt[i];return o?(ct=o.nextPos,o.result):(n=ct,e=q(),e!==W?(46===t.charCodeAt(ct)?(r=at,ct++):(r=W,0===Et&&f(it)),r===W&&(r=null),r!==W?(a=q(),a===W&&(a=null),a!==W?(e=[e,r,a],n=e):(ct=n,n=W)):(ct=n,n=W)):(ct=n,n=W),dt[i]={nextPos:ct,result:n},n)}function q(){var n,e,r=18*ct+16,a=dt[r];if(a)return ct=a.nextPos,a.result;if(n=[],ot.test(t.charAt(ct))?(e=t.charAt(ct),ct++):(e=W,0===Et&&f(ut)),e!==W)for(;e!==W;)n.push(e),ot.test(t.charAt(ct))?(e=t.charAt(ct),ct++):(e=W,0===Et&&f(ut));else n=W;return dt[r]={nextPos:ct,result:n},n}function F(){var n,e,r=18*ct+17,a=dt[r];if(a)return ct=a.nextPos,a.result;for(Et++,n=[],ht.test(t.charAt(ct))?(e=t.charAt(ct),ct++):(e=W,0===Et&&f(lt));e!==W;)n.push(e),ht.test(t.charAt(ct))?(e=t.charAt(ct),ct++):(e=W,0===Et&&f(lt));return Et--,n===W&&(e=W,0===Et&&f(st)),dt[r]={nextPos:ct,result:n},n}function j(n){return n instanceof pt}function S(n){var t=e.cached.findIndex(function(t){return t.equals(n,0)});return j(n)?"this["+(t>=0?t:e.cached.push(n)-1)+"]":n}function _(n,t,r){var a=n.toLowerCase(),i=t.every(j);if(e.parameters.indexOf(n)>=0)return n+"("+t.map(S).join()+")";if(pt.hasOwnProperty(a)&&"function"==typeof pt[a]&&"constructor"!==a){if(1===pt[a].length){var o=t[0];return i?o[a]():o+"."+a+"()"}return i?pt[a].apply(pt,t):"Complex."+a+"("+t.map(S).join()+")"}r('Expected function but "'+a+'" found.')}function T(n,t){var r=n.toUpperCase();return e.parameters.indexOf(n)>=0?n:pt.hasOwnProperty(r)&&j(pt[r])?pt[r]:void t('Expected constant or parameter but "'+n+'" found.')}function U(n,t,e){return j(n)&&j(t)?n[e](t):S(n)+"."+e+"("+S(t)+")"}e=void 0!==e?e:{};var L,W={},R={Expression:b},k=b,G=h("expression"),z=function(n){return S(n)},Z="+",D=o("+",!1),B=function(n,t){return U(U(n,t.left,"add"),t.right,t.operator)},H="-",J=o("-",!1),K=function(n,t){return U(U(n,t.left,"subtract"),t.right,t.operator)},Q=function(n,t){return U(n,t,"add")},V=function(n,t){return U(n,t,"subtract")},X=function(n,t){return{left:U(n,t.left,"add"),right:t.right,operator:t.operator}},Y=function(n,t){return{left:U(n,t.left,"subtract"),right:t.right,operator:t.operator}},$=function(n,t){return{left:n,right:t,operator:"add"}},nn=function(n,t){return{left:n,right:t,operator:"subtract"}},tn=function(n,t){return U(U(n,t.left,"multiply"),t.right,t.operator)},en="*",rn=o("*",!1),an="/",on=o("/",!1),un=function(n,t){return U(U(n,t.left,"divide"),t.right,t.operator)},sn="%",hn=o("%",!1),ln=function(n,t){return U(U(n,t.left,"mod"),t.right,t.operator)},cn=function(n,t){return U(n,t,"multiply")},fn=function(n,t){return U(n,t,"divide")},mn=function(n,t){return U(n,t,"mod")},gn=function(n,t){return{left:U(n,t.left,"multiply"),right:t.right,operator:t.operator}},bn=function(n,t){return{left:U(n,t.left,"divide"),right:t.right,operator:t.operator}},En=function(n,t){return{left:U(n,t.left,"mod"),right:t.right,operator:t.operator}},dn=function(n,t){return{left:n,right:t,operator:"multiply"}},pn=function(n,t){return{left:n,right:t,operator:"divide"}},wn=function(n,t){return{left:n,right:t,operator:"mod"}},vn="^",Mn=o("^",!1),xn="**",Pn=o("**",!1),On=function(n,t){return U(n,t,"pow")},Nn=function(n){return _("negate",[n],i)},In="(",An=o("(",!1),yn=")",Cn=o(")",!1),qn=function(n){return n},Fn="[",jn=o("[",!1),Sn="]",_n=o("]",!1),Tn="{",Un=o("{",!1),Ln="}",Wn=o("}",!1),Rn=h("function"),kn=function(n,t){return _(n,t,i)},Gn=",",zn=o(",",!1),Zn=function(n,t){return[n].concat(t)},Dn=function(n){return[n]},Bn=function(n){return T(n,i)},Hn=h("identifier"),Jn=/^[A-Za-z]/,Kn=u([["A","Z"],["a","z"]],!1,!1),Qn=/^[A-Za-z0-9]/,Vn=u([["A","Z"],["a","z"],["0","9"]],!1,!1),Xn=function(){return r()},Yn=h("number"),$n=/^[Ee]/,nt=u(["E","e"],!1,!1),tt=/^[+\-]/,et=u(["+","-"],!1,!1),rt=function(){return new pt.Cartesian(+r())},at=".",it=o(".",!1),ot=/^[0-9]/,ut=u([["0","9"]],!1,!1),st=h("whitespace"),ht=/^[ \t\n\r]/,lt=u([" ","\t","\n","\r"],!1,!1),ct=0,ft=0,mt=[{line:1,column:1}],gt=0,bt=[],Et=0,dt={};if("startRule"in e){if(!(e.startRule in R))throw new Error("Can't start parsing from rule \""+e.startRule+'".');k=R[e.startRule]}var pt=n("../src/complex");if(L=k(),L!==W&&ct===t.length)return L;throw L!==W&&ct<t.length&&f(s()),g(bt,gt<t.length?t.charAt(gt):null,gt<t.length?c(gt,gt+1):c(gt,gt))}r(a,Error),a.buildMessage=function(n,t){function e(n){return n.charCodeAt(0).toString(16).toUpperCase()}function r(n){return n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(n){return"\\x0"+e(n)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(n){return"\\x"+e(n)})}function a(n){return n.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(n){return"\\x0"+e(n)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(n){return"\\x"+e(n)})}function i(n){return s[n.type](n)}function o(n){var t,e,r=new Array(n.length);for(t=0;t<n.length;t++)r[t]=i(n[t]);if(r.sort(),r.length>0){for(t=1,e=1;t<r.length;t++)r[t-1]!==r[t]&&(r[e]=r[t],e++);r.length=e}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}function u(n){return n?'"'+r(n)+'"':"end of input"}var s={literal:function(n){return'"'+r(n.text)+'"'},class:function(n){var t,e="";for(t=0;t<n.parts.length;t++)e+=n.parts[t]instanceof Array?a(n.parts[t][0])+"-"+a(n.parts[t][1]):a(n.parts[t]);return"["+(n.inverted?"^":"")+e+"]"},any:function(n){return"any character"},end:function(n){return"end of input"},other:function(n){return n.description}};return"Expected "+o(n)+" but "+u(t)+" found."},t.exports={SyntaxError:a,parse:i}},{"../src/complex":3}],2:[function(n,t,e){"use strict";var r=n("./utils"),a=t.exports=function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this instanceof n?(this.real=t,void(this.imag=e)):new n(t,e)},i=r.nonEnumerable(function(n){return new a(this.real*n.real-this.imag*n.imag,this.imag*n.real+this.real*n.imag)}),o=r.nonEnumerable(function(n){var t=n.real*n.real+n.imag*n.imag;return new a((this.real*n.real+this.imag*n.imag)/t,(this.imag*n.real-this.real*n.imag)/t)});Object.defineProperties(a,{ZERO:r.nonEnumerable(new a(0,0)),ONE:r.nonEnumerable(new a(1,0)),NEG_ONE:r.nonEnumerable(new a(-1,0)),I:r.nonEnumerable(new a(0,1)),NEG_I:r.nonEnumerable(new a(0,-1)),TWO:r.nonEnumerable(new a(2,0)),TWO_I:r.nonEnumerable(new a(0,2)),PI:r.nonEnumerable(new a(Math.PI,0)),E:r.nonEnumerable(new a(Math.E,0))}),a.prototype=Object.create(n("./complex").prototype,{constructor:r.nonEnumerable(a),abs:{configurable:!0,enumerable:!0,get:function(){return this.abs=r.hypot(this.real,this.imag)},set:function(n){return Object.defineProperty(this,"abs",{configurable:!0,enumerable:!0,value:n,writable:!0}),n}},arg:{configurable:!0,enumerable:!0,get:function(){var n=Math.atan2(this.imag,this.real);return this.arg=0!==n?-((-n+Math.PI)%(2*Math.PI)-Math.PI):0},set:function(n){return Object.defineProperty(this,"arg",{configurable:!0,enumerable:!0,value:n,writable:!0}),n}},multiply:i,times:i,mul:i,"*":i,divide:o,div:o,"/":o,isFinite:r.nonEnumerable(function(){return r.isFinite(this.real)&&r.isFinite(this.imag)}),isNaN:r.nonEnumerable(function(){return r.isNaN(this.real)||r.isNaN(this.imag)}),negate:r.nonEnumerable(function(){return new a(-this.real,-this.imag)}),conjugate:r.nonEnumerable(function(){return new a(this.real,-this.imag)}),normalize:r.nonEnumerable(function(){return new a(this.real/this.abs,this.imag/this.abs)}),square:r.nonEnumerable(function(){return new a(this.real*this.real-this.imag*this.imag,this.real*this.imag*2)}),cube:r.nonEnumerable(function(){return new a(this.real*(this.real*this.real-this.imag*this.imag*3),this.imag*(this.real*this.real*3-this.imag*this.imag))})})},{"./complex":3,"./utils":6}],3:[function(n,t,e){"use strict";var r=n("../parser"),a=n("./utils"),i=t.exports=function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.hypot(t,e),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Math.atan2(e,t);return this instanceof n?(this.real=t,this.imag=e,this.abs=r>=0?r:-r,void(this.arg=0!==i?-((-i+(r>=0?Math.PI:0))%(2*Math.PI)-Math.PI):r<0?Math.PI:0)):new n(t,e,r,i)},o=n("./cartesian"),u=n("./polar"),s=n("./long");Object.defineProperties(i,{isFinite:a.nonEnumerable(function(n){return n.isFinite()}),isNaN:a.nonEnumerable(function(n){return n.isNaN()}),isReal:a.nonEnumerable(function(n){return n.isReal()}),isImag:a.nonEnumerable(function(n){return n.isImag()}),negate:a.nonEnumerable(function(n){return n.negate()}),conjugate:a.nonEnumerable(function(n){return n.conjugate()}),normalize:a.nonEnumerable(function(n){return n.normalize()}),square:a.nonEnumerable(function(n){return n.square()}),cube:a.nonEnumerable(function(n){return n.cube()}),sign:a.nonEnumerable(function(n){return new o(a.sign(n.real),a.sign(n.imag))}),floor:a.nonEnumerable(function(n){return new o(a.floor(n.real),a.floor(n.imag))}),ceil:a.nonEnumerable(function(n){return new o(a.ceil(n.real),a.ceil(n.imag))}),round:a.nonEnumerable(function(n){return new o(a.round(n.real),a.round(n.imag))}),truncate:a.nonEnumerable(function(n){return new o(a.truncate(n.real),a.truncate(n.imag))}),fraction:a.nonEnumerable(function(n){return new o(n.real%1,n.imag%1)}),sqrt:a.nonEnumerable(function(n){return new u(Math.sqrt(n.abs),.5*n.arg)}),cbrt:a.nonEnumerable(function(n){return new u(Math.pow(n.abs,1/3),n.arg/3)}),exp:a.nonEnumerable(function(n){return new u(Math.exp(n.real),n.imag)}),log:a.nonEnumerable(function(n){return new o(Math.log(n.abs),n.arg)}),cos:a.nonEnumerable(function(n){return new o(Math.cos(n.real)*a.cosh(n.imag),-Math.sin(n.real)*a.sinh(n.imag))}),sin:a.nonEnumerable(function(n){return new o(Math.sin(n.real)*a.cosh(n.imag),Math.cos(n.real)*a.sinh(n.imag))}),tan:a.nonEnumerable(function(n){var t=2*n.real,e=2*n.imag,r=Math.cos(t)+a.cosh(e);return new o(Math.sin(t)/r,a.sinh(e)/r)}),sec:a.nonEnumerable(function(n){var t=Math.cos(2*n.real)+a.cosh(2*n.imag);return new o(Math.cos(n.real)*a.cosh(n.imag)*2/t,Math.sin(n.real)*a.sinh(n.real)*2/t)}),csc:a.nonEnumerable(function(n){var t=Math.cos(2*n.real)-a.cosh(2*n.imag);return new o(-Math.sin(n.real)*a.cosh(n.imag)*2/t,Math.cos(n.real)*a.sinh(n.imag)*2/t)}),cot:a.nonEnumerable(function(n){var t=2*n.real,e=2*n.imag,r=Math.cos(t)-a.cosh(e);return new o(-Math.sin(t)/r,a.sinh(e)/r)}),cosh:a.nonEnumerable(function(n){return new o(a.cosh(n.real)*Math.cos(n.imag),a.sinh(n.real)*Math.sin(n.imag))}),sinh:a.nonEnumerable(function(n){return new o(a.sinh(n.real)*Math.cos(n.imag),a.cosh(n.real)*Math.sin(n.imag))}),tanh:a.nonEnumerable(function(n){var t=2*n.real,e=2*n.imag,r=a.cosh(t)+Math.cos(e);return new o(a.sinh(t)/r,Math.sin(e)/r)}),sech:a.nonEnumerable(function(n){var t=a.cosh(2*n.real)+Math.cos(2*n.imag);return new o(a.cosh(n.real)*Math.cos(n.imag)*2/t,-a.sinh(n.real)*Math.sin(n.real)*2/t)}),csch:a.nonEnumerable(function(n){var t=Math.cos(2*n.imag)-a.cosh(2*n.real);return new o(-a.sinh(n.real)*Math.cos(n.imag)*2/t,a.cosh(n.real)*Math.sin(n.imag)*2/t)}),coth:a.nonEnumerable(function(n){var t=2*n.real,e=2*n.imag,r=Math.cos(e)-a.cosh(t);return new o(-a.sinh(t)/r,Math.sin(e)/r)}),acos:a.nonEnumerable(function(n){return n.square().sub(i.ONE).sqrt().add(n).log().mul(i.NEG_I)}),asin:a.nonEnumerable(function(n){return i.ONE.sub(n.square()).sqrt().add(n.mul(i.I)).log().mul(i.NEG_I)}),atan:a.nonEnumerable(function(n){var t=o.I.mul(n);return i.ONE.sub(t).log().sub(t.add(i.ONE).log()).div(i.TWO_I)}),asec:a.nonEnumerable(function(n){return o.ONE.div(n).acos()}),acsc:a.nonEnumerable(function(n){return o.ONE.div(n).asin()}),acot:a.nonEnumerable(function(n){var t=o.I.div(n);return i.ONE.sub(t).log().sub(t.add(i.ONE).log()).div(i.TWO_I)}),acosh:a.nonEnumerable(function(n){return n.square().sub(i.ONE).sqrt().add(n).log()}),asinh:a.nonEnumerable(function(n){return n.square().add(i.ONE).sqrt().add(n).log()}),atanh:a.nonEnumerable(function(n){return n.add(i.ONE).div(i.ONE.sub(n)).log().div(i.TWO)}),asech:a.nonEnumerable(function(n){return o.ONE.div(n).acosh()}),acsch:a.nonEnumerable(function(n){return o.ONE.div(n).asinh()}),acoth:a.nonEnumerable(function(n){return n.add(i.ONE).div(n.sub(i.ONE)).log().div(i.TWO)}),min:a.nonEnumerable(function(){for(var n=new i(1/0,0,1/0,0),t=0;t<arguments.length;t++)arguments[t].abs<n.abs&&(n=arguments[t]);return n}),max:a.nonEnumerable(function(){for(var n=i.ZERO,t=0;t<arguments.length;t++)arguments[t].abs>n.abs&&(n=arguments[t]);return n}),compile:a.nonEnumerable(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=[],a=r.parse(n,{parameters:t,cached:e});return t.unshift("Complex"),new Function(t.join(),"return "+a).bind(e,i)})});var h=a.nonEnumerable(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;return s.withinMaxUlps(this.real,n.real,t)&&s.withinMaxUlps(this.imag,n.imag,t)||s.withinMaxUlps(this.abs,n.abs,t)&&s.withinMaxUlps(this.arg,n.arg,t)}),l=a.nonEnumerable(function(n){return new o(this.real+n.real,this.imag+n.imag)}),c=a.nonEnumerable(function(n){return new o(this.real-n.real,this.imag-n.imag)}),f=a.nonEnumerable(function(n){return new i(this.real*n.real-this.imag*n.imag,this.imag*n.real+this.real*n.imag,this.abs*n.abs,this.arg+n.arg)}),m=a.nonEnumerable(function(n){var t=n.real*n.real+n.imag*n.imag;return new i((this.real*n.real+this.imag*n.imag)/t,(this.imag*n.real-this.real*n.imag)/t,this.abs/n.abs,this.arg-n.arg)}),g=a.nonEnumerable(function(n){return new o(this.real%n.real,this.imag%n.imag)}),b=a.nonEnumerable(function(n){return new u(Math.pow(this.abs,n.real)*Math.exp(-n.imag*this.arg),n.imag*Math.log(this.abs)+n.real*this.arg)});Object.defineProperties(i,{Cartesian:a.nonEnumerable(o),Polar:a.nonEnumerable(u),ZERO:a.nonEnumerable(new i(0,0,0,0)),ONE:a.nonEnumerable(new i(1,0,1,0)),NEG_ONE:a.nonEnumerable(new i(-1,0,1,Math.PI)),I:a.nonEnumerable(new i(0,1,1,Math.PI/2)),NEG_I:a.nonEnumerable(new i(0,-1,1,-Math.PI/2)),TWO:a.nonEnumerable(new i(2,0,2,0)),TWO_I:a.nonEnumerable(new i(0,2,2,Math.PI/2)),PI:a.nonEnumerable(new i(Math.PI,0,Math.PI,0)),E:a.nonEnumerable(new i(Math.E,0,Math.E,0))}),Object.defineProperties(i.prototype,{toString:a.nonEnumerable(function(n){var t="";if(n){var e=this.abs.toPrecision(),r=this.arg.toPrecision();t=e,0!==this.abs&&0!==this.arg&&(t+="*e^("+r+"i)")}else{var a=this.real.toPrecision(),i=this.imag.toPrecision();0===this.real&&0!==this.imag||(t+=a),0!==this.imag&&(0!==this.real&&this.imag>0&&(t+="+"),t+=1===this.imag?"i":this.imag===-1?"-i":i+"i")}return t}),equals:h,equ:h,"=":h,add:l,plus:l,"+":l,subtract:c,minus:c,sub:c,"-":c,multiply:f,times:f,mul:f,"*":f,divide:m,div:m,"/":m,modulo:g,mod:g,"%":g,power:b,pow:b,"^":b,"**":b,isFinite:a.nonEnumerable(function(){return a.isFinite(this.abs)}),isNaN:a.nonEnumerable(function(){return a.isNaN(this.abs)||a.isNaN(this.arg)}),isReal:a.nonEnumerable(function(){return this.imag<=a.EPSILON&&-this.imag<=a.EPSILON||this.arg<=a.EPSILON&&-this.arg<=a.EPSILON||s.withinMaxUlps(this.arg,Math.PI)}),isImag:a.nonEnumerable(function(){return this.real<=a.EPSILON&&-this.real<=a.EPSILON||s.withinMaxUlps(this.arg<0?-this.arg:this.arg,Math.PI/2)}),negate:a.nonEnumerable(function(){return new i(-this.real,-this.imag,-this.abs,this.arg)}),conjugate:a.nonEnumerable(function(){return new i(this.real,-this.imag,this.abs,-this.arg)}),normalize:a.nonEnumerable(function(){return new i(this.real/this.abs,this.imag/this.abs,this.abs/this.abs,this.arg)}),square:a.nonEnumerable(function(){return new i(this.real*this.real-this.imag*this.imag,this.real*this.imag*2,this.abs*this.abs,2*this.arg)}),cube:a.nonEnumerable(function(){return new i(this.real*(this.real*this.real-this.imag*this.imag*3),this.imag*(this.real*this.real*3-this.imag*this.imag),this.abs*this.abs*this.abs,3*this.arg)}),sign:a.nonEnumerable(function(){return new o(a.sign(this.real),a.sign(this.imag))}),floor:a.nonEnumerable(function(){return new o(a.floor(this.real),a.floor(this.imag))}),ceil:a.nonEnumerable(function(){return new o(a.ceil(this.real),a.ceil(this.imag))}),round:a.nonEnumerable(function(){return new o(a.round(this.real),a.round(this.imag))}),truncate:a.nonEnumerable(function(){return new o(a.truncate(this.real),a.truncate(this.imag))}),fraction:a.nonEnumerable(function(){return new o(this.real%1,this.imag%1)}),sqrt:a.nonEnumerable(function(){return new u(Math.sqrt(this.abs),.5*this.arg)}),cbrt:a.nonEnumerable(function(){return new u(Math.pow(this.abs,1/3),this.arg/3)}),exp:a.nonEnumerable(function(){return new u(Math.exp(this.real),this.imag)}),log:a.nonEnumerable(function(){return new o(Math.log(this.abs),this.arg)}),cos:a.nonEnumerable(function(){return new o(Math.cos(this.real)*a.cosh(this.imag),-Math.sin(this.real)*a.sinh(this.imag))}),sin:a.nonEnumerable(function(){return new o(Math.sin(this.real)*a.cosh(this.imag),Math.cos(this.real)*a.sinh(this.imag))}),tan:a.nonEnumerable(function(){var n=2*this.real,t=2*this.imag,e=Math.cos(n)+a.cosh(t);return new o(Math.sin(n)/e,a.sinh(t)/e)}),sec:a.nonEnumerable(function(){var n=Math.cos(2*this.real)+a.cosh(2*this.imag);return new o(Math.cos(this.real)*a.cosh(this.imag)*2/n,Math.sin(this.real)*a.sinh(this.real)*2/n)}),csc:a.nonEnumerable(function(){var n=Math.cos(2*this.real)-a.cosh(2*this.imag);return new o(-Math.sin(this.real)*a.cosh(this.imag)*2/n,Math.cos(this.real)*a.sinh(this.imag)*2/n)}),cot:a.nonEnumerable(function(){var n=2*this.real,t=2*this.imag,e=Math.cos(n)-a.cosh(t);return new o(-Math.sin(n)/e,a.sinh(t)/e)}),cosh:a.nonEnumerable(function(){return new o(a.cosh(this.real)*Math.cos(this.imag),a.sinh(this.real)*Math.sin(this.imag))}),sinh:a.nonEnumerable(function(){return new o(a.sinh(this.real)*Math.cos(this.imag),a.cosh(this.real)*Math.sin(this.imag))}),tanh:a.nonEnumerable(function(){var n=2*this.real,t=2*this.imag,e=a.cosh(n)+Math.cos(t);return new o(a.sinh(n)/e,Math.sin(t)/e)}),sech:a.nonEnumerable(function(){var n=a.cosh(2*this.real)+Math.cos(2*this.imag);return new o(a.cosh(this.real)*Math.cos(this.imag)*2/n,-a.sinh(this.real)*Math.sin(this.real)*2/n)}),csch:a.nonEnumerable(function(){var n=Math.cos(2*this.imag)-a.cosh(2*this.real);return new o(-a.sinh(this.real)*Math.cos(this.imag)*2/n,a.cosh(this.real)*Math.sin(this.imag)*2/n)}),coth:a.nonEnumerable(function(){var n=2*this.real,t=2*this.imag,e=Math.cos(t)-a.cosh(n);return new o(-a.sinh(n)/e,Math.sin(t)/e)}),acos:a.nonEnumerable(function(){return this.square().sub(i.ONE).sqrt().add(this).log().mul(i.NEG_I)}),asin:a.nonEnumerable(function(){return i.ONE.sub(this.square()).sqrt().add(this.mul(i.I)).log().mul(i.NEG_I)}),atan:a.nonEnumerable(function(){var n=this.mul(i.I);return i.ONE.sub(n).log().sub(n.add(i.ONE).log()).div(i.TWO_I)}),asec:a.nonEnumerable(function(){return o.ONE.div(this).acos()}),acsc:a.nonEnumerable(function(){return o.ONE.div(this).asin()}),acot:a.nonEnumerable(function(){var n=i.I.div(this);return i.ONE.sub(n).log().sub(n.add(i.ONE).log()).div(i.TWO_I)}),acosh:a.nonEnumerable(function(){return this.square().sub(i.ONE).sqrt().add(this).log()}),asinh:a.nonEnumerable(function(){return this.square().add(i.ONE).sqrt().add(this).log()}),atanh:a.nonEnumerable(function(){return this.add(i.ONE).div(i.ONE.sub(this)).log().div(i.TWO)}),asech:a.nonEnumerable(function(){return o.ONE.div(this).acosh()}),acsch:a.nonEnumerable(function(){return o.ONE.div(this).asinh()}),acoth:a.nonEnumerable(function(){return this.add(i.ONE).div(this.sub(i.ONE)).log().div(i.TWO)})})},{"../parser":1,"./cartesian":2,
"./long":4,"./polar":5,"./utils":6}],4:[function(n,t,e){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function n(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}return function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}}(),i=n("./utils"),o=t.exports=function(){function n(t,e,a,i){r(this,n),this.u48=t,this.u32=e,this.u16=a,this.u00=i}return a(n,null,[{key:"fromFloat64",value:function(t,e,r){return t[0]=0===r?0:r,new n(e[3],e[2],e[1],e[0])}},{key:"withinMaxUlps",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;if(!i.isFinite(t)||!i.isFinite(e))return+t===+e;var a=n.fromFloat64(+t).sub(n.fromFloat64(+e)),o=a.hi,u=a.lo;return 0===o&&u<=r||0===~o&&-u<=r}}]),a(n,[{key:"negate",value:function(){return this.hi=~this.hi,this.lo=~this.lo,this}},{key:"add",value:function(n){var t=void 0,e=void 0,r=void 0,a=void 0;return a=this.u00+n.u00,r=a>>>16,a&=65535,r+=this.u16+n.u16,e=r>>>16,r&=65535,e+=this.u32+n.u32,t=e>>>16,e&=65535,t+=this.u48+n.u48,t&=65535,this.u48=t,this.u32=e,this.u16=r,this.u00=a,this}},{key:"sub",value:function(t){return this.add(t.negate().add(n.ONE))}},{key:"hi",get:function(){return this.u48<<16|this.u32},set:function(n){return this.u48=n>>>16,this.u32=65535&n,this.hi}},{key:"lo",get:function(){return this.u16<<16|this.u00},set:function(n){return this.u16=n>>>16,this.u00=65535&n,this.lo}}]),n}(),u=new ArrayBuffer(8);Object.defineProperties(o,{fromFloat64:i.nonEnumerable(o.fromFloat64.bind(o,new Float64Array(u),new Uint16Array(u))),ONE:i.nonEnumerable(new o(0,0,0,1))})},{"./utils":6}],5:[function(n,t,e){"use strict";var r=n("./utils"),a=n("./long"),i=t.exports=function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this instanceof n?(this.abs=t>=0?t:-t,void(this.arg=0!==e?-((-e+(t>=0?Math.PI:0))%(2*Math.PI)-Math.PI):t<0?Math.PI:0)):new n(t,e)},o=r.nonEnumerable(function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;return a.withinMaxUlps(this.abs,n.abs,t)&&a.withinMaxUlps(this.arg,n.arg,t)||a.withinMaxUlps(this.real,n.real,t)&&a.withinMaxUlps(this.imag,n.imag,t)}),u=r.nonEnumerable(function(n){return new i(this.abs*n.abs,this.arg+n.arg)}),s=r.nonEnumerable(function(n){return new i(this.abs/n.abs,this.arg-n.arg)});Object.defineProperties(i,{ZERO:r.nonEnumerable(new i(0,0)),ONE:r.nonEnumerable(new i(1,0)),NEG_ONE:r.nonEnumerable(new i(1,Math.PI)),I:r.nonEnumerable(new i(1,Math.PI/2)),NEG_I:r.nonEnumerable(new i(1,-Math.PI/2)),TWO:r.nonEnumerable(new i(2,0)),TWO_I:r.nonEnumerable(new i(2,Math.PI/2)),PI:r.nonEnumerable(new i(Math.PI,0)),E:r.nonEnumerable(new i(Math.E,0))}),i.prototype=Object.create(n("./complex").prototype,{constructor:r.nonEnumerable(i),real:{configurable:!0,enumerable:!0,get:function(){return this.real=this.abs*Math.cos(this.arg)},set:function(n){return Object.defineProperty(this,"real",{configurable:!0,enumerable:!0,value:n,writable:!0}),n}},imag:{configurable:!0,enumerable:!0,get:function(){return this.imag=this.abs*Math.sin(this.arg)},set:function(n){return Object.defineProperty(this,"imag",{configurable:!0,enumerable:!0,value:n,writable:!0}),n}},equals:o,equ:o,"=":o,multiply:u,times:u,mul:u,"*":u,divide:s,div:s,"/":s,isReal:r.nonEnumerable(function(){return this.arg<=r.EPSILON&&-this.arg<=r.EPSILON||a.withinMaxUlps(this.arg,Math.PI)||this.imag<=r.EPSILON&&-this.imag<=r.EPSILON}),isImag:r.nonEnumerable(function(){return a.withinMaxUlps(this.arg<0?-this.arg:this.arg,Math.PI/2)||this.real<=r.EPSILON&&-this.real<=r.EPSILON}),negate:r.nonEnumerable(function(){return new i(-this.abs,this.arg)}),conjugate:r.nonEnumerable(function(){return new i(this.abs,-this.arg)}),normalize:r.nonEnumerable(function(){return new i(this.abs/this.abs,this.arg)}),square:r.nonEnumerable(function(){return new i(this.abs*this.abs,2*this.arg)}),cube:r.nonEnumerable(function(){return new i(this.abs*this.abs*this.abs,3*this.arg)})})},{"./complex":3,"./long":4,"./utils":6}],6:[function(n,t,e){(function(n){"use strict";t.exports={nonEnumerable:function(n){return{configurable:!0,enumerable:!1,value:n,writable:!0}},isFinite:n.isFinite,isNaN:n.isNaN,floor:Math.floor,ceil:Math.ceil,round:Math.round,sign:Math.sign||function(n){return n>0?1:n<0?-1:0==n?0:NaN},truncate:Math.trunc||function(n){return n-n%1},hypot:Math.hypot||function(n,t){return Math.sqrt(n*n+t*t)},cosh:Math.cosh||function(n){var t=Math.exp(n);return(t+1/t)/2},sinh:Math.sinh||function(n){var t=Math.exp(n);return(t-1/t)/2},EPSILON:Number.EPSILON||2.220446049250313e-16}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[3])(3)});
//# sourceMappingURL=complex.min.js.map