UNPKG

26.4 kBJavaScriptView Raw
1// iper.js http://www.g14n.info/iper
2// license MIT
3require=function t(r,e,n){function o(u,a){if(!e[u]){if(!r[u]){var c="function"==typeof require&&require;if(!a&&c)return c(u,!0);if(i)return i(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var s=e[u]={exports:{}};r[u][0].call(s.exports,function(t){var e=r[u][1][t];return o(e?e:t)},s,s.exports,t,r,e,n)}return e[u].exports}for(var i="function"==typeof require&&require,u=0;u<n.length;u++)o(n[u]);return o}({1:[function(t,r,e){"use strict";var n=t("number-is-nan");r.exports=Number.isFinite||function(t){return!("number"!=typeof t||n(t)||t===1/0||t===-(1/0))}},{"number-is-nan":6}],2:[function(t,r,e){var n=t("is-finite");r.exports=Number.isInteger||function(t){return"number"==typeof t&&n(t)&&Math.floor(t)===t}},{"is-finite":1}],3:[function(t,r,e){(function(t){function n(t,r){for(var e=-1,n=t?t.length:0;++e<n;)if(r(t[e],e,t))return!0;return!1}function o(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function i(t){return function(r){return t(r)}}function u(t,r){return null==t?void 0:t[r]}function a(t){var r=!1;if(null!=t&&"function"!=typeof t.toString)try{r=!!(t+"")}catch(t){}return r}function c(t){var r=-1,e=Array(t.size);return t.forEach(function(t,n){e[++r]=[n,t]}),e}function f(t,r){return function(e){return t(r(e))}}function s(t){var r=-1,e=Array(t.size);return t.forEach(function(t){e[++r]=t}),e}function l(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function p(){this.__data__=mr?mr(null):{}}function h(t){return this.has(t)&&delete this.__data__[t]}function v(t){var r=this.__data__;if(mr){var e=r[t];return e===ht?void 0:e}return fr.call(r,t)?r[t]:void 0}function d(t){var r=this.__data__;return mr?void 0!==r[t]:fr.call(r,t)}function _(t,r){var e=this.__data__;return e[t]=mr&&void 0===r?ht:r,this}function y(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function b(){this.__data__=[]}function g(t){var r=this.__data__,e=C(r,t);if(e<0)return!1;var n=r.length-1;return e==n?r.pop():dr.call(r,e,1),!0}function j(t){var r=this.__data__,e=C(r,t);return e<0?void 0:r[e][1]}function w(t){return C(this.__data__,t)>-1}function m(t,r){var e=this.__data__,n=C(e,t);return n<0?e.push([t,r]):e[n][1]=r,this}function O(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function A(){this.__data__={hash:new l,map:new(br||y),string:new l}}function E(t){return K(this,t).delete(t)}function k(t){return K(this,t).get(t)}function x(t){return K(this,t).has(t)}function S(t,r){return K(this,t).set(t,r),this}function $(t){var r=-1,e=t?t.length:0;for(this.__data__=new O;++r<e;)this.add(t[r])}function I(t){return this.__data__.set(t,ht),this}function F(t){return this.__data__.has(t)}function T(t){this.__data__=new y(t)}function P(){this.__data__=new y}function U(t){return this.__data__.delete(t)}function q(t){return this.__data__.get(t)}function M(t){return this.__data__.has(t)}function N(t,r){var e=this.__data__;if(e instanceof y){var n=e.__data__;if(!br||n.length<pt-1)return n.push([t,r]),this;e=this.__data__=new O(n)}return e.set(t,r),this}function D(t,r){var e=Fr(t)||nt(t)?o(t.length,String):[],n=e.length,i=!!n;for(var u in t)!r&&!fr.call(t,u)||i&&("length"==u||X(u,n))||e.push(u);return e}function C(t,r){for(var e=t.length;e--;)if(et(t[e][0],r))return e;return-1}function L(t){return sr.call(t)}function R(t,r,e,n,o){return t===r||(null==t||null==r||!ft(t)&&!st(r)?t!==t&&r!==r:z(t,r,R,e,n,o))}function z(t,r,e,n,o,i){var u=Fr(t),c=Fr(r),f=bt,s=bt;u||(f=Ir(t),f=f==yt?kt:f),c||(s=Ir(r),s=s==yt?kt:s);var l=f==kt&&!a(t),p=s==kt&&!a(r),h=f==s;if(h&&!l)return i||(i=new T),u||Tr(t)?W(t,r,e,n,o,i):H(t,r,f,e,n,o,i);if(!(o&dt)){var v=l&&fr.call(t,"__wrapped__"),d=p&&fr.call(r,"__wrapped__");if(v||d){var _=v?t.value():t,y=d?r.value():r;return i||(i=new T),e(_,y,n,o,i)}}return!!h&&(i||(i=new T),J(t,r,e,n,o,i))}function B(t){if(!ft(t)||Z(t))return!1;var r=at(t)||a(t)?lr:Vt;return r.test(rt(t))}function G(t){return st(t)&&ct(t.length)&&!!Ht[sr.call(t)]}function V(t){if(!tt(t))return _r(t);var r=[];for(var e in Object(t))fr.call(t,e)&&"constructor"!=e&&r.push(e);return r}function W(t,r,e,o,i,u){var a=i&dt,c=t.length,f=r.length;if(c!=f&&!(a&&f>c))return!1;var s=u.get(t);if(s&&u.get(r))return s==r;var l=-1,p=!0,h=i&vt?new $:void 0;for(u.set(t,r),u.set(r,t);++l<c;){var v=t[l],d=r[l];if(o)var _=a?o(d,v,l,r,t,u):o(v,d,l,t,r,u);if(void 0!==_){if(_)continue;p=!1;break}if(h){if(!n(r,function(t,r){if(!h.has(r)&&(v===t||e(v,t,o,i,u)))return h.add(r)})){p=!1;break}}else if(v!==d&&!e(v,d,o,i,u)){p=!1;break}}return u.delete(t),u.delete(r),p}function H(t,r,e,n,o,i,u){switch(e){case Ut:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case Pt:return!(t.byteLength!=r.byteLength||!n(new hr(t),new hr(r)));case gt:case jt:case Et:return et(+t,+r);case wt:return t.name==r.name&&t.message==r.message;case St:case It:return t==r+"";case At:var a=c;case $t:var f=i&dt;if(a||(a=s),t.size!=r.size&&!f)return!1;var l=u.get(t);if(l)return l==r;i|=vt,u.set(t,r);var p=W(a(t),a(r),n,o,i,u);return u.delete(t),p;case Ft:if($r)return $r.call(t)==$r.call(r)}return!1}function J(t,r,e,n,o,i){var u=o&dt,a=lt(t),c=a.length,f=lt(r),s=f.length;if(c!=s&&!u)return!1;for(var l=c;l--;){var p=a[l];if(!(u?p in r:fr.call(r,p)))return!1}var h=i.get(t);if(h&&i.get(r))return h==r;var v=!0;i.set(t,r),i.set(r,t);for(var d=u;++l<c;){p=a[l];var _=t[p],y=r[p];if(n)var b=u?n(y,_,p,r,t,i):n(_,y,p,t,r,i);if(!(void 0===b?_===y||e(_,y,n,o,i):b)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var g=t.constructor,j=r.constructor;g!=j&&"constructor"in t&&"constructor"in r&&!("function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j)&&(v=!1)}return i.delete(t),i.delete(r),v}function K(t,r){var e=t.__data__;return Y(r)?e["string"==typeof r?"string":"hash"]:e.map}function Q(t,r){var e=u(t,r);return B(e)?e:void 0}function X(t,r){return r=null==r?_t:r,!!r&&("number"==typeof t||Wt.test(t))&&t>-1&&t%1==0&&t<r}function Y(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}function Z(t){return!!ar&&ar in t}function tt(t){var r=t&&t.constructor,e="function"==typeof r&&r.prototype||ir;return t===e}function rt(t){if(null!=t){try{return cr.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function et(t,r){return t===r||t!==t&&r!==r}function nt(t){return it(t)&&fr.call(t,"callee")&&(!vr.call(t,"callee")||sr.call(t)==yt)}function ot(t){return null!=t&&ct(t.length)&&!at(t)}function it(t){return st(t)&&ot(t)}function ut(t,r){return R(t,r)}function at(t){var r=ft(t)?sr.call(t):"";return r==mt||r==Ot}function ct(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=_t}function ft(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function st(t){return!!t&&"object"==typeof t}function lt(t){return ot(t)?D(t):V(t)}var pt=200,ht="__lodash_hash_undefined__",vt=1,dt=2,_t=9007199254740991,yt="[object Arguments]",bt="[object Array]",gt="[object Boolean]",jt="[object Date]",wt="[object Error]",mt="[object Function]",Ot="[object GeneratorFunction]",At="[object Map]",Et="[object Number]",kt="[object Object]",xt="[object Promise]",St="[object RegExp]",$t="[object Set]",It="[object String]",Ft="[object Symbol]",Tt="[object WeakMap]",Pt="[object ArrayBuffer]",Ut="[object DataView]",qt="[object Float32Array]",Mt="[object Float64Array]",Nt="[object Int8Array]",Dt="[object Int16Array]",Ct="[object Int32Array]",Lt="[object Uint8Array]",Rt="[object Uint8ClampedArray]",zt="[object Uint16Array]",Bt="[object Uint32Array]",Gt=/[\\^$.*+?()[\]{}|]/g,Vt=/^\[object .+?Constructor\]$/,Wt=/^(?:0|[1-9]\d*)$/,Ht={};Ht[qt]=Ht[Mt]=Ht[Nt]=Ht[Dt]=Ht[Ct]=Ht[Lt]=Ht[Rt]=Ht[zt]=Ht[Bt]=!0,Ht[yt]=Ht[bt]=Ht[Pt]=Ht[gt]=Ht[Ut]=Ht[jt]=Ht[wt]=Ht[mt]=Ht[At]=Ht[Et]=Ht[kt]=Ht[St]=Ht[$t]=Ht[It]=Ht[Tt]=!1;var Jt="object"==typeof t&&t&&t.Object===Object&&t,Kt="object"==typeof self&&self&&self.Object===Object&&self,Qt=Jt||Kt||Function("return this")(),Xt="object"==typeof e&&e&&!e.nodeType&&e,Yt=Xt&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=Yt&&Yt.exports===Xt,tr=Zt&&Jt.process,rr=function(){try{return tr&&tr.binding("util")}catch(t){}}(),er=rr&&rr.isTypedArray,nr=Array.prototype,or=Function.prototype,ir=Object.prototype,ur=Qt["__core-js_shared__"],ar=function(){var t=/[^.]+$/.exec(ur&&ur.keys&&ur.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),cr=or.toString,fr=ir.hasOwnProperty,sr=ir.toString,lr=RegExp("^"+cr.call(fr).replace(Gt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pr=Qt.Symbol,hr=Qt.Uint8Array,vr=ir.propertyIsEnumerable,dr=nr.splice,_r=f(Object.keys,Object),yr=Q(Qt,"DataView"),br=Q(Qt,"Map"),gr=Q(Qt,"Promise"),jr=Q(Qt,"Set"),wr=Q(Qt,"WeakMap"),mr=Q(Object,"create"),Or=rt(yr),Ar=rt(br),Er=rt(gr),kr=rt(jr),xr=rt(wr),Sr=pr?pr.prototype:void 0,$r=Sr?Sr.valueOf:void 0;l.prototype.clear=p,l.prototype.delete=h,l.prototype.get=v,l.prototype.has=d,l.prototype.set=_,y.prototype.clear=b,y.prototype.delete=g,y.prototype.get=j,y.prototype.has=w,y.prototype.set=m,O.prototype.clear=A,O.prototype.delete=E,O.prototype.get=k,O.prototype.has=x,O.prototype.set=S,$.prototype.add=$.prototype.push=I,$.prototype.has=F,T.prototype.clear=P,T.prototype.delete=U,T.prototype.get=q,T.prototype.has=M,T.prototype.set=N;var Ir=L;(yr&&Ir(new yr(new ArrayBuffer(1)))!=Ut||br&&Ir(new br)!=At||gr&&Ir(gr.resolve())!=xt||jr&&Ir(new jr)!=$t||wr&&Ir(new wr)!=Tt)&&(Ir=function(t){var r=sr.call(t),e=r==kt?t.constructor:void 0,n=e?rt(e):void 0;if(n)switch(n){case Or:return Ut;case Ar:return At;case Er:return xt;case kr:return $t;case xr:return Tt}return r});var Fr=Array.isArray,Tr=er?i(er):G;r.exports=ut}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(t,r,e){(function(t){function n(t,r){var e=t?t.length:0;return!!e&&a(t,r,0)>-1}function o(t,r,e){for(var n=-1,o=t?t.length:0;++n<o;)if(e(r,t[n]))return!0;return!1}function i(t,r){for(var e=-1,n=t?t.length:0;++e<n;)if(r(t[e],e,t))return!0;return!1}function u(t,r,e,n){for(var o=t.length,i=e+(n?1:-1);n?i--:++i<o;)if(r(t[i],i,t))return i;return-1}function a(t,r,e){if(r!==r)return u(t,c,e);for(var n=e-1,o=t.length;++n<o;)if(t[n]===r)return n;return-1}function c(t){return t!==t}function f(t){return function(r){return null==r?void 0:r[t]}}function s(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function l(t){return function(r){return t(r)}}function p(t,r){return t.has(r)}function h(t,r){return null==t?void 0:t[r]}function v(t){var r=!1;if(null!=t&&"function"!=typeof t.toString)try{r=!!(t+"")}catch(t){}return r}function d(t){var r=-1,e=Array(t.size);return t.forEach(function(t,n){e[++r]=[n,t]}),e}function _(t,r){return function(e){return t(r(e))}}function y(t){var r=-1,e=Array(t.size);return t.forEach(function(t){e[++r]=t}),e}function b(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function g(){this.__data__=ue?ue(null):{}}function j(t){return this.has(t)&&delete this.__data__[t]}function w(t){var r=this.__data__;if(ue){var e=r[t];return e===Vt?void 0:e}return Hr.call(r,t)?r[t]:void 0}function m(t){var r=this.__data__;return ue?void 0!==r[t]:Hr.call(r,t)}function O(t,r){var e=this.__data__;return e[t]=ue&&void 0===r?Vt:r,this}function A(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function E(){this.__data__=[]}function k(t){var r=this.__data__,e=W(r,t);if(e<0)return!1;var n=r.length-1;return e==n?r.pop():Zr.call(r,e,1),!0}function x(t){var r=this.__data__,e=W(r,t);return e<0?void 0:r[e][1]}function S(t){return W(this.__data__,t)>-1}function $(t,r){var e=this.__data__,n=W(e,t);return n<0?e.push([t,r]):e[n][1]=r,this}function I(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function F(){this.__data__={hash:new b,map:new(ee||A),string:new b}}function T(t){return pt(this,t).delete(t)}function P(t){return pt(this,t).get(t)}function U(t){return pt(this,t).has(t)}function q(t,r){return pt(this,t).set(t,r),this}function M(t){var r=-1,e=t?t.length:0;for(this.__data__=new I;++r<e;)this.add(t[r])}function N(t){return this.__data__.set(t,Vt),this}function D(t){return this.__data__.has(t)}function C(t){this.__data__=new A(t)}function L(){this.__data__=new A}function R(t){return this.__data__.delete(t)}function z(t){return this.__data__.get(t)}function B(t){return this.__data__.has(t)}function G(t,r){var e=this.__data__;if(e instanceof A){var n=e.__data__;if(!ee||n.length<Bt-1)return n.push([t,r]),this;e=this.__data__=new I(n)}return e.set(t,r),this}function V(t,r){var e=be(t)||St(t)?s(t.length,String):[],n=e.length,o=!!n;for(var i in t)!r&&!Hr.call(t,i)||o&&("length"==i||_t(i,n))||e.push(i);return e}function W(t,r){for(var e=t.length;e--;)if(xt(t[e][0],r))return e;return-1}function H(t,r){r=yt(r,t)?[r]:ct(r);for(var e=0,n=r.length;null!=t&&e<n;)t=t[Ot(r[e++])];return e&&e==n?t:void 0}function J(t){return Jr.call(t)}function K(t,r){return null!=t&&r in Object(t)}function Q(t,r,e,n,o){return t===r||(null==t||null==r||!Pt(t)&&!Ut(r)?t!==t&&r!==r:X(t,r,Q,e,n,o))}function X(t,r,e,n,o,i){var u=be(t),a=be(r),c=Xt,f=Xt;u||(c=_e(t),c=c==Qt?ir:c),a||(f=_e(r),f=f==Qt?ir:f);var s=c==ir&&!v(t),l=f==ir&&!v(r),p=c==f;if(p&&!s)return i||(i=new C),u||ge(t)?ft(t,r,e,n,o,i):st(t,r,c,e,n,o,i);if(!(o&Ht)){var h=s&&Hr.call(t,"__wrapped__"),d=l&&Hr.call(r,"__wrapped__");if(h||d){var _=h?t.value():t,y=d?r.value():r;return i||(i=new C),e(_,y,n,o,i)}}return!!p&&(i||(i=new C),lt(t,r,e,n,o,i))}function Y(t,r,e,n){var o=e.length,i=o,u=!n;if(null==t)return!i;for(t=Object(t);o--;){var a=e[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){a=e[o];var c=a[0],f=t[c],s=a[1];if(u&&a[2]){if(void 0===f&&!(c in t))return!1}else{var l=new C;if(n)var p=n(f,s,c,t,r,l);if(!(void 0===p?Q(s,f,n,Wt|Ht,l):p))return!1}}return!0}function Z(t){if(!Pt(t)||gt(t))return!1;var r=Ft(t)||v(t)?Kr:$r;return r.test(At(t))}function tt(t){return Ut(t)&&Tt(t.length)&&!!Fr[Jr.call(t)]}function rt(t){return"function"==typeof t?t:null==t?Lt:"object"==typeof t?be(t)?ot(t[0],t[1]):nt(t):zt(t)}function et(t){if(!jt(t))return te(t);var r=[];for(var e in Object(t))Hr.call(t,e)&&"constructor"!=e&&r.push(e);return r}function nt(t){var r=ht(t);return 1==r.length&&r[0][2]?mt(r[0][0],r[0][1]):function(e){return e===t||Y(e,t,r)}}function ot(t,r){return yt(t)&&wt(r)?mt(Ot(t),r):function(e){var n=Nt(e,t);return void 0===n&&n===r?Dt(e,t):Q(r,n,void 0,Wt|Ht)}}function it(t){return function(r){return H(r,t)}}function ut(t){if("string"==typeof t)return t;if(qt(t))return ve?ve.call(t):"";var r=t+"";return"0"==r&&1/t==-Jt?"-0":r}function at(t,r,e){var i=-1,u=n,a=t.length,c=!0,f=[],s=f;if(e)c=!1,u=o;else if(a>=Bt){var l=r?null:de(t);if(l)return y(l);c=!1,u=p,s=new M}else s=r?[]:f;t:for(;++i<a;){var h=t[i],v=r?r(h):h;if(h=e||0!==h?h:0,c&&v===v){for(var d=s.length;d--;)if(s[d]===v)continue t;r&&s.push(v),f.push(h)}else u(s,v,e)||(s!==f&&s.push(v),f.push(h))}return f}function ct(t){return be(t)?t:ye(t)}function ft(t,r,e,n,o,u){var a=o&Ht,c=t.length,f=r.length;if(c!=f&&!(a&&f>c))return!1;var s=u.get(t);if(s&&u.get(r))return s==r;var l=-1,p=!0,h=o&Wt?new M:void 0;for(u.set(t,r),u.set(r,t);++l<c;){var v=t[l],d=r[l];if(n)var _=a?n(d,v,l,r,t,u):n(v,d,l,t,r,u);if(void 0!==_){if(_)continue;p=!1;break}if(h){if(!i(r,function(t,r){if(!h.has(r)&&(v===t||e(v,t,n,o,u)))return h.add(r)})){p=!1;break}}else if(v!==d&&!e(v,d,n,o,u)){p=!1;break}}return u.delete(t),u.delete(r),p}function st(t,r,e,n,o,i,u){switch(e){case hr:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case pr:return!(t.byteLength!=r.byteLength||!n(new Xr(t),new Xr(r)));case Yt:case Zt:case or:return xt(+t,+r);case tr:return t.name==r.name&&t.message==r.message;case ar:case fr:return t==r+"";case nr:var a=d;case cr:var c=i&Ht;if(a||(a=y),t.size!=r.size&&!c)return!1;var f=u.get(t);if(f)return f==r;i|=Wt,u.set(t,r);var s=ft(a(t),a(r),n,o,i,u);return u.delete(t),s;case sr:if(he)return he.call(t)==he.call(r)}return!1}function lt(t,r,e,n,o,i){var u=o&Ht,a=Ct(t),c=a.length,f=Ct(r),s=f.length;if(c!=s&&!u)return!1;for(var l=c;l--;){var p=a[l];if(!(u?p in r:Hr.call(r,p)))return!1}var h=i.get(t);if(h&&i.get(r))return h==r;var v=!0;i.set(t,r),i.set(r,t);for(var d=u;++l<c;){p=a[l];var _=t[p],y=r[p];if(n)var b=u?n(y,_,p,r,t,i):n(_,y,p,t,r,i);if(!(void 0===b?_===y||e(_,y,n,o,i):b)){v=!1;break}d||(d="constructor"==p)}if(v&&!d){var g=t.constructor,j=r.constructor;g!=j&&"constructor"in t&&"constructor"in r&&!("function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j)&&(v=!1)}return i.delete(t),i.delete(r),v}function pt(t,r){var e=t.__data__;return bt(r)?e["string"==typeof r?"string":"hash"]:e.map}function ht(t){for(var r=Ct(t),e=r.length;e--;){var n=r[e],o=t[n];r[e]=[n,o,wt(o)]}return r}function vt(t,r){var e=h(t,r);return Z(e)?e:void 0}function dt(t,r,e){r=yt(r,t)?[r]:ct(r);for(var n,o=-1,i=r.length;++o<i;){var u=Ot(r[o]);if(!(n=null!=t&&e(t,u)))break;t=t[u]}if(n)return n;var i=t?t.length:0;return!!i&&Tt(i)&&_t(u,i)&&(be(t)||St(t))}function _t(t,r){return r=null==r?Kt:r,!!r&&("number"==typeof t||Ir.test(t))&&t>-1&&t%1==0&&t<r}function yt(t,r){if(be(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!qt(t))||(Ar.test(t)||!Or.test(t)||null!=r&&t in Object(r))}function bt(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}function gt(t){return!!Vr&&Vr in t}function jt(t){var r=t&&t.constructor,e="function"==typeof r&&r.prototype||Br;return t===e}function wt(t){return t===t&&!Pt(t)}function mt(t,r){return function(e){return null!=e&&(e[t]===r&&(void 0!==r||t in Object(e)))}}function Ot(t){if("string"==typeof t||qt(t))return t;var r=t+"";return"0"==r&&1/t==-Jt?"-0":r}function At(t){if(null!=t){try{return Wr.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Et(t,r){return t&&t.length?at(t,rt(r,2)):[]}function kt(t,r){if("function"!=typeof t||r&&"function"!=typeof r)throw new TypeError(Gt);var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],i=e.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return e.cache=i.set(o,u),u};return e.cache=new(kt.Cache||I),e}function xt(t,r){return t===r||t!==t&&r!==r}function St(t){return It(t)&&Hr.call(t,"callee")&&(!Yr.call(t,"callee")||Jr.call(t)==Qt)}function $t(t){return null!=t&&Tt(t.length)&&!Ft(t)}function It(t){return Ut(t)&&$t(t)}function Ft(t){var r=Pt(t)?Jr.call(t):"";return r==rr||r==er}function Tt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Kt}function Pt(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function Ut(t){return!!t&&"object"==typeof t}function qt(t){return"symbol"==typeof t||Ut(t)&&Jr.call(t)==sr}function Mt(t){return null==t?"":ut(t)}function Nt(t,r,e){var n=null==t?void 0:H(t,r);return void 0===n?e:n}function Dt(t,r){return null!=t&&dt(t,r,K)}function Ct(t){return $t(t)?V(t):et(t)}function Lt(t){return t}function Rt(){}function zt(t){return yt(t)?f(Ot(t)):it(t)}var Bt=200,Gt="Expected a function",Vt="__lodash_hash_undefined__",Wt=1,Ht=2,Jt=1/0,Kt=9007199254740991,Qt="[object Arguments]",Xt="[object Array]",Yt="[object Boolean]",Zt="[object Date]",tr="[object Error]",rr="[object Function]",er="[object GeneratorFunction]",nr="[object Map]",or="[object Number]",ir="[object Object]",ur="[object Promise]",ar="[object RegExp]",cr="[object Set]",fr="[object String]",sr="[object Symbol]",lr="[object WeakMap]",pr="[object ArrayBuffer]",hr="[object DataView]",vr="[object Float32Array]",dr="[object Float64Array]",_r="[object Int8Array]",yr="[object Int16Array]",br="[object Int32Array]",gr="[object Uint8Array]",jr="[object Uint8ClampedArray]",wr="[object Uint16Array]",mr="[object Uint32Array]",Or=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ar=/^\w*$/,Er=/^\./,kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/[\\^$.*+?()[\]{}|]/g,Sr=/\\(\\)?/g,$r=/^\[object .+?Constructor\]$/,Ir=/^(?:0|[1-9]\d*)$/,Fr={};Fr[vr]=Fr[dr]=Fr[_r]=Fr[yr]=Fr[br]=Fr[gr]=Fr[jr]=Fr[wr]=Fr[mr]=!0,Fr[Qt]=Fr[Xt]=Fr[pr]=Fr[Yt]=Fr[hr]=Fr[Zt]=Fr[tr]=Fr[rr]=Fr[nr]=Fr[or]=Fr[ir]=Fr[ar]=Fr[cr]=Fr[fr]=Fr[lr]=!1;var Tr="object"==typeof t&&t&&t.Object===Object&&t,Pr="object"==typeof self&&self&&self.Object===Object&&self,Ur=Tr||Pr||Function("return this")(),qr="object"==typeof e&&e&&!e.nodeType&&e,Mr=qr&&"object"==typeof r&&r&&!r.nodeType&&r,Nr=Mr&&Mr.exports===qr,Dr=Nr&&Tr.process,Cr=function(){try{return Dr&&Dr.binding("util")}catch(t){}}(),Lr=Cr&&Cr.isTypedArray,Rr=Array.prototype,zr=Function.prototype,Br=Object.prototype,Gr=Ur["__core-js_shared__"],Vr=function(){var t=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Wr=zr.toString,Hr=Br.hasOwnProperty,Jr=Br.toString,Kr=RegExp("^"+Wr.call(Hr).replace(xr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qr=Ur.Symbol,Xr=Ur.Uint8Array,Yr=Br.propertyIsEnumerable,Zr=Rr.splice,te=_(Object.keys,Object),re=vt(Ur,"DataView"),ee=vt(Ur,"Map"),ne=vt(Ur,"Promise"),oe=vt(Ur,"Set"),ie=vt(Ur,"WeakMap"),ue=vt(Object,"create"),ae=At(re),ce=At(ee),fe=At(ne),se=At(oe),le=At(ie),pe=Qr?Qr.prototype:void 0,he=pe?pe.valueOf:void 0,ve=pe?pe.toString:void 0;b.prototype.clear=g,b.prototype.delete=j,b.prototype.get=w,b.prototype.has=m,b.prototype.set=O,A.prototype.clear=E,A.prototype.delete=k,A.prototype.get=x,A.prototype.has=S,A.prototype.set=$,I.prototype.clear=F,I.prototype.delete=T,I.prototype.get=P,I.prototype.has=U,I.prototype.set=q,M.prototype.add=M.prototype.push=N,M.prototype.has=D,C.prototype.clear=L,C.prototype.delete=R,C.prototype.get=z,C.prototype.has=B,C.prototype.set=G;var de=oe&&1/y(new oe([,-0]))[1]==Jt?function(t){return new oe(t)}:Rt,_e=J;(re&&_e(new re(new ArrayBuffer(1)))!=hr||ee&&_e(new ee)!=nr||ne&&_e(ne.resolve())!=ur||oe&&_e(new oe)!=cr||ie&&_e(new ie)!=lr)&&(_e=function(t){var r=Jr.call(t),e=r==ir?t.constructor:void 0,n=e?At(e):void 0;if(n)switch(n){case ae:return hr;case ce:return nr;case fe:return ur;case se:return cr;case le:return lr}return r});var ye=kt(function(t){t=Mt(t);var r=[];return Er.test(t)&&r.push(""),t.replace(kr,function(t,e,n,o){r.push(n?o.replace(Sr,"$1"):e||t)}),r});kt.Cache=I;var be=Array.isArray,ge=Lr?l(Lr):tt;r.exports=Et}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(t,r,e){(function(t){function e(t){if("string"==typeof t)return t;if(o(t))return y?y.call(t):"";var r=t+"";return"0"==r&&1/t==-a?"-0":r}function n(t){return!!t&&"object"==typeof t}function o(t){return"symbol"==typeof t||n(t)&&v.call(t)==c}function i(t){return null==t?"":e(t)}function u(t){var r=++h;return i(t)+r}var a=1/0,c="[object Symbol]",f="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,l=f||s||Function("return this")(),p=Object.prototype,h=0,v=p.toString,d=l.Symbol,_=d?d.prototype:void 0,y=_?_.toString:void 0;r.exports=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(t,r,e){"use strict";r.exports=Number.isNaN||function(t){return t!==t}},{}],7:[function(t,r,e){function n(t){return function(r,e){var n={};for(var o in r){var i={configurable:!1,enumerable:e},u=r[o];"function"==typeof u?i.get=u:(i.value=u,i.writable=!1),n[o]=i}Object.defineProperties(t,n)}}r.exports=n},{}],8:[function(t,r,e){r.exports=function(t){t()}},{}],9:[function(t,r,e){"use strict";function n(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(r,e,n){return e&&t(r.prototype,e),n&&t(r,n),r}}(),i=t("lodash.isequal"),u=t("is-integer"),a=t("lodash.uniqueid"),c=t("lodash.uniqby"),f=t("static-props"),s=t("./getDegree"),l=t("./getIncidentEdgeIds"),p=t("./getRank"),h=function(){function t(){n(this,t);var r=arguments[0]||{},e={};if(u(r.uniform)){if(r.uniform<2)throw new TypeError("Argument uniform cannot be less than 2");e.uniform=r.uniform}r.multigraph===!0&&(e.multigraph=!0),r.pseudograph===!0&&(e.multigraph=!0,e.pseudograph=!0),e.edges=r.edges||{},e.nodes=r.nodes||{};var o=!0;f(this)(e,o)}return o(t,[{key:"addEdge",value:function(t){var r=this;if(t.length<2)throw new Error("An edge must point at two or more nodes");var e=this.uniform;if(e){var n=t.length;if(e!==n)throw new Error("Cannot add an edge with cardinality "+n+" to a "+e+"-uniform graph")}if(!this.pseudograph&&c(t).length<t.length)throw new Error("This is not a pseudograph, it is not allowed to create loops");if(!this.multigraph)for(var o in this.edges){var u=this.edges[o];if(i(t,u))throw new Error("This is not a multigraph, you cannot add duplicated edges")}var f=t.filter(function(t){return!r.nodes.hasOwnProperty(t)});if(f.length>0)throw new Error("Edge points to some nodeId not found in this graph; "+f.join(","));var s=a();return this.edges[s]=t,s}},{key:"addNode",value:function(t){var r=a();return this.nodes[r]=t,r}},{key:"degreeOf",value:function(t){return s(this.edges,t)}},{key:"delEdge",value:function(t){delete this.edges[t]}},{key:"delNode",value:function(t){delete this.nodes[t];var r=l(this.edges,t);for(var e in r)this.delEdge(e)}},{key:"getRank",value:function(){return this.uniform?this.uniform:p(this.edges)}}]),t}();r.exports=h},{"./getDegree":10,"./getIncidentEdgeIds":11,"./getRank":12,"is-integer":2,"lodash.isequal":3,"lodash.uniqby":4,"lodash.uniqueid":5,"static-props":7}],10:[function(t,r,e){"use strict";var n=function(t,r){var e=0,n=function(t){t===r&&e++};for(var o in t){var i=t[o];i.forEach(n)}return e};r.exports=n},{}],11:[function(t,r,e){"use strict";var n=function(t,r){var e=[],n=function(t,r,n){var o=n===r,i=e.indexOf(t)<0;o&&i&&e.push(t)};for(var o in t){var i=t[o];i.forEach(n.bind(null,o,r))}return e};r.exports=n},{}],12:[function(t,r,e){"use strict";var n=function(t){var r=0;for(var e in t){var n=t[e];r=Math.max(r,n.length)}return r};r.exports=n},{}],iper:[function(t,r,e){"use strict";t("strict-mode")(function(){e.Graph=t("./Graph")})},{"./Graph":9,"strict-mode":8}]},{},[]);
4//# sourceMappingURL=iper.map
\No newline at end of file