protvista-topology-adapter
Version:
A dataloader and parser (ProtVista compliant) for topological features in UniProt
2 lines • 19.7 kB
JavaScript
var ProtvistaTopologyAdapter=function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)e.d(n,o,function(r){return t[r]}.bind(null,o));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=12)}([function(t,r,e){"use strict";var n=e(4),o="object"==typeof self&&self&&self.Object===Object&&self,a=n.a||o||Function("return this")();r.a=a},function(t,r,e){"use strict";(function(t){var n=e(0),o=e(11),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=a&&"object"==typeof t&&t&&!t.nodeType&&t,i=u&&u.exports===a?n.a.Buffer:void 0,c=(i?i.isBuffer:void 0)||o.a;r.a=c}).call(this,e(6)(t))},function(t,r){t.exports=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}},function(t,r){function e(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)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}},function(t,r,e){"use strict";(function(t){var e="object"==typeof t&&t&&t.Object===Object&&t;r.a=e}).call(this,e(16))},function(t,r,e){"use strict";(function(t){var n=e(4),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===o&&n.a.process,i=function(){try{var t=a&&a.require&&a.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();r.a=i}).call(this,e(6)(t))},function(t,r){t.exports=function(t){if(!t.webpackPolyfill){var r=Object.create(t);r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),Object.defineProperty(r,"exports",{enumerable:!0}),r.webpackPolyfill=1}return r}},function(t,r,e){var n=e(13),o=e(14);t.exports=function(t,r){return!r||"object"!==n(r)&&"function"!=typeof r?o(t):r}},function(t,r){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(r)}t.exports=e},function(t,r,e){var n=e(15);t.exports=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&n(t,r)}},function(t,r){t.exports=ProtvistaUniprotEntryAdapter},function(t,r,e){"use strict";r.a=function(){return!1}},function(t,r,e){t.exports=e(17)},function(t,r){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(r){return"function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?t.exports=n=function(t){return e(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},n(r)}t.exports=n},function(t,r){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,r){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},e(r,n)}t.exports=e},function(t,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){"use strict";e.r(r);var n=e(2),o=e.n(n),a=e(3),u=e.n(a),i=e(7),c=e.n(i),f=e(8),s=e.n(f),l=e(9),p=e.n(l),v=e(10),y=e.n(v);var b=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,a=[];++e<n;){var u=t[e];r(u,e,t)&&(a[o++]=u)}return a};var h=function(t){return function(r,e,n){for(var o=-1,a=Object(r),u=n(r),i=u.length;i--;){var c=u[t?i:++o];if(!1===e(a[c],c,a))break}return r}}();var _=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n},d=e(0),j=d.a.Symbol,g=Object.prototype,O=g.hasOwnProperty,m=g.toString,w=j?j.toStringTag:void 0;var x=function(t){var r=O.call(t,w),e=t[w];try{t[w]=void 0;var n=!0}catch(t){}var o=m.call(t);return n&&(r?t[w]=e:delete t[w]),o},P=Object.prototype.toString;var S=function(t){return P.call(t)},A="[object Null]",z="[object Undefined]",E=j?j.toStringTag:void 0;var k=function(t){return null==t?void 0===t?z:A:E&&E in Object(t)?x(t):S(t)};var T=function(t){return null!=t&&"object"==typeof t},D="[object Arguments]";var M=function(t){return T(t)&&k(t)==D},F=Object.prototype,$=F.hasOwnProperty,C=F.propertyIsEnumerable,U=M(function(){return arguments}())?M:function(t){return T(t)&&$.call(t,"callee")&&!C.call(t,"callee")},B=Array.isArray,I=e(1),L=9007199254740991,R=/^(?:0|[1-9]\d*)$/;var V=function(t,r){var e=typeof t;return!!(r=null==r?L:r)&&("number"==e||"symbol"!=e&&R.test(t))&&t>-1&&t%1==0&&t<r},W=9007199254740991;var N=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=W},q={};q["[object Float32Array]"]=q["[object Float64Array]"]=q["[object Int8Array]"]=q["[object Int16Array]"]=q["[object Int32Array]"]=q["[object Uint8Array]"]=q["[object Uint8ClampedArray]"]=q["[object Uint16Array]"]=q["[object Uint32Array]"]=!0,q["[object Arguments]"]=q["[object Array]"]=q["[object ArrayBuffer]"]=q["[object Boolean]"]=q["[object DataView]"]=q["[object Date]"]=q["[object Error]"]=q["[object Function]"]=q["[object Map]"]=q["[object Number]"]=q["[object Object]"]=q["[object RegExp]"]=q["[object Set]"]=q["[object String]"]=q["[object WeakMap]"]=!1;var G=function(t){return T(t)&&N(t.length)&&!!q[k(t)]};var H=function(t){return function(r){return t(r)}},Y=e(5),J=Y.a&&Y.a.isTypedArray,K=J?H(J):G,Q=Object.prototype.hasOwnProperty;var X=function(t,r){var e=B(t),n=!e&&U(t),o=!e&&!n&&Object(I.a)(t),a=!e&&!n&&!o&&K(t),u=e||n||o||a,i=u?_(t.length,String):[],c=i.length;for(var f in t)!r&&!Q.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||a&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||V(f,c))||i.push(f);return i},Z=Object.prototype;var tt=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||Z)};var rt=function(t,r){return function(e){return t(r(e))}}(Object.keys,Object),et=Object.prototype.hasOwnProperty;var nt=function(t){if(!tt(t))return rt(t);var r=[];for(var e in Object(t))et.call(t,e)&&"constructor"!=e&&r.push(e);return r};var ot=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)},at="[object AsyncFunction]",ut="[object Function]",it="[object GeneratorFunction]",ct="[object Proxy]";var ft=function(t){if(!ot(t))return!1;var r=k(t);return r==ut||r==it||r==at||r==ct};var st=function(t){return null!=t&&N(t.length)&&!ft(t)};var lt=function(t){return st(t)?X(t):nt(t)};var pt=function(t,r){return function(e,n){if(null==e)return e;if(!st(e))return t(e,n);for(var o=e.length,a=r?o:-1,u=Object(e);(r?a--:++a<o)&&!1!==n(u[a],a,u););return e}}(function(t,r){return t&&h(t,r,lt)});var vt=function(t,r){var e=[];return pt(t,function(t,n,o){r(t,n,o)&&e.push(t)}),e};var yt=function(){this.__data__=[],this.size=0};var bt=function(t,r){return t===r||t!=t&&r!=r};var ht=function(t,r){for(var e=t.length;e--;)if(bt(t[e][0],r))return e;return-1},_t=Array.prototype.splice;var dt=function(t){var r=this.__data__,e=ht(r,t);return!(e<0||(e==r.length-1?r.pop():_t.call(r,e,1),--this.size,0))};var jt=function(t){var r=this.__data__,e=ht(r,t);return e<0?void 0:r[e][1]};var gt=function(t){return ht(this.__data__,t)>-1};var Ot=function(t,r){var e=this.__data__,n=ht(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function mt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}mt.prototype.clear=yt,mt.prototype.delete=dt,mt.prototype.get=jt,mt.prototype.has=gt,mt.prototype.set=Ot;var wt=mt;var xt=function(){this.__data__=new wt,this.size=0};var Pt=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e};var St=function(t){return this.__data__.get(t)};var At,zt=function(t){return this.__data__.has(t)},Et=d.a["__core-js_shared__"],kt=(At=/[^.]+$/.exec(Et&&Et.keys&&Et.keys.IE_PROTO||""))?"Symbol(src)_1."+At:"";var Tt=function(t){return!!kt&&kt in t},Dt=Function.prototype.toString;var Mt=function(t){if(null!=t){try{return Dt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Ft=/^\[object .+?Constructor\]$/,$t=Function.prototype,Ct=Object.prototype,Ut=$t.toString,Bt=Ct.hasOwnProperty,It=RegExp("^"+Ut.call(Bt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Lt=function(t){return!(!ot(t)||Tt(t))&&(ft(t)?It:Ft).test(Mt(t))};var Rt=function(t,r){return null==t?void 0:t[r]};var Vt=function(t,r){var e=Rt(t,r);return Lt(e)?e:void 0},Wt=Vt(d.a,"Map"),Nt=Vt(Object,"create");var qt=function(){this.__data__=Nt?Nt(null):{},this.size=0};var Gt=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},Ht="__lodash_hash_undefined__",Yt=Object.prototype.hasOwnProperty;var Jt=function(t){var r=this.__data__;if(Nt){var e=r[t];return e===Ht?void 0:e}return Yt.call(r,t)?r[t]:void 0},Kt=Object.prototype.hasOwnProperty;var Qt=function(t){var r=this.__data__;return Nt?void 0!==r[t]:Kt.call(r,t)},Xt="__lodash_hash_undefined__";var Zt=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Nt&&void 0===r?Xt:r,this};function tr(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}tr.prototype.clear=qt,tr.prototype.delete=Gt,tr.prototype.get=Jt,tr.prototype.has=Qt,tr.prototype.set=Zt;var rr=tr;var er=function(){this.size=0,this.__data__={hash:new rr,map:new(Wt||wt),string:new rr}};var nr=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var or=function(t,r){var e=t.__data__;return nr(r)?e["string"==typeof r?"string":"hash"]:e.map};var ar=function(t){var r=or(this,t).delete(t);return this.size-=r?1:0,r};var ur=function(t){return or(this,t).get(t)};var ir=function(t){return or(this,t).has(t)};var cr=function(t,r){var e=or(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function fr(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}fr.prototype.clear=er,fr.prototype.delete=ar,fr.prototype.get=ur,fr.prototype.has=ir,fr.prototype.set=cr;var sr=fr,lr=200;var pr=function(t,r){var e=this.__data__;if(e instanceof wt){var n=e.__data__;if(!Wt||n.length<lr-1)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new sr(n)}return e.set(t,r),this.size=e.size,this};function vr(t){var r=this.__data__=new wt(t);this.size=r.size}vr.prototype.clear=xt,vr.prototype.delete=Pt,vr.prototype.get=St,vr.prototype.has=zt,vr.prototype.set=pr;var yr=vr,br="__lodash_hash_undefined__";var hr=function(t){return this.__data__.set(t,br),this};var _r=function(t){return this.__data__.has(t)};function dr(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new sr;++r<e;)this.add(t[r])}dr.prototype.add=dr.prototype.push=hr,dr.prototype.has=_r;var jr=dr;var gr=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1};var Or=function(t,r){return t.has(r)},mr=1,wr=2;var xr=function(t,r,e,n,o,a){var u=e&mr,i=t.length,c=r.length;if(i!=c&&!(u&&c>i))return!1;var f=a.get(t);if(f&&a.get(r))return f==r;var s=-1,l=!0,p=e&wr?new jr:void 0;for(a.set(t,r),a.set(r,t);++s<i;){var v=t[s],y=r[s];if(n)var b=u?n(y,v,s,r,t,a):n(v,y,s,t,r,a);if(void 0!==b){if(b)continue;l=!1;break}if(p){if(!gr(r,function(t,r){if(!Or(p,r)&&(v===t||o(v,t,e,n,a)))return p.push(r)})){l=!1;break}}else if(v!==y&&!o(v,y,e,n,a)){l=!1;break}}return a.delete(t),a.delete(r),l},Pr=d.a.Uint8Array;var Sr=function(t){var r=-1,e=Array(t.size);return t.forEach(function(t,n){e[++r]=[n,t]}),e};var Ar=function(t){var r=-1,e=Array(t.size);return t.forEach(function(t){e[++r]=t}),e},zr=1,Er=2,kr="[object Boolean]",Tr="[object Date]",Dr="[object Error]",Mr="[object Map]",Fr="[object Number]",$r="[object RegExp]",Cr="[object Set]",Ur="[object String]",Br="[object Symbol]",Ir="[object ArrayBuffer]",Lr="[object DataView]",Rr=j?j.prototype:void 0,Vr=Rr?Rr.valueOf:void 0;var Wr=function(t,r,e,n,o,a,u){switch(e){case Lr:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case Ir:return!(t.byteLength!=r.byteLength||!a(new Pr(t),new Pr(r)));case kr:case Tr:case Fr:return bt(+t,+r);case Dr:return t.name==r.name&&t.message==r.message;case $r:case Ur:return t==r+"";case Mr:var i=Sr;case Cr:var c=n&zr;if(i||(i=Ar),t.size!=r.size&&!c)return!1;var f=u.get(t);if(f)return f==r;n|=Er,u.set(t,r);var s=xr(i(t),i(r),n,o,a,u);return u.delete(t),s;case Br:if(Vr)return Vr.call(t)==Vr.call(r)}return!1};var Nr=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t};var qr=function(t,r,e){var n=r(t);return B(t)?n:Nr(n,e(t))};var Gr=function(){return[]},Hr=Object.prototype.propertyIsEnumerable,Yr=Object.getOwnPropertySymbols,Jr=Yr?function(t){return null==t?[]:(t=Object(t),b(Yr(t),function(r){return Hr.call(t,r)}))}:Gr;var Kr=function(t){return qr(t,lt,Jr)},Qr=1,Xr=Object.prototype.hasOwnProperty;var Zr=function(t,r,e,n,o,a){var u=e&Qr,i=Kr(t),c=i.length;if(c!=Kr(r).length&&!u)return!1;for(var f=c;f--;){var s=i[f];if(!(u?s in r:Xr.call(r,s)))return!1}var l=a.get(t);if(l&&a.get(r))return l==r;var p=!0;a.set(t,r),a.set(r,t);for(var v=u;++f<c;){var y=t[s=i[f]],b=r[s];if(n)var h=u?n(b,y,s,r,t,a):n(y,b,s,t,r,a);if(!(void 0===h?y===b||o(y,b,e,n,a):h)){p=!1;break}v||(v="constructor"==s)}if(p&&!v){var _=t.constructor,d=r.constructor;_!=d&&"constructor"in t&&"constructor"in r&&!("function"==typeof _&&_ instanceof _&&"function"==typeof d&&d instanceof d)&&(p=!1)}return a.delete(t),a.delete(r),p},te=Vt(d.a,"DataView"),re=Vt(d.a,"Promise"),ee=Vt(d.a,"Set"),ne=Vt(d.a,"WeakMap"),oe=Mt(te),ae=Mt(Wt),ue=Mt(re),ie=Mt(ee),ce=Mt(ne),fe=k;(te&&"[object DataView]"!=fe(new te(new ArrayBuffer(1)))||Wt&&"[object Map]"!=fe(new Wt)||re&&"[object Promise]"!=fe(re.resolve())||ee&&"[object Set]"!=fe(new ee)||ne&&"[object WeakMap]"!=fe(new ne))&&(fe=function(t){var r=k(t),e="[object Object]"==r?t.constructor:void 0,n=e?Mt(e):"";if(n)switch(n){case oe:return"[object DataView]";case ae:return"[object Map]";case ue:return"[object Promise]";case ie:return"[object Set]";case ce:return"[object WeakMap]"}return r});var se=fe,le=1,pe="[object Arguments]",ve="[object Array]",ye="[object Object]",be=Object.prototype.hasOwnProperty;var he=function(t,r,e,n,o,a){var u=B(t),i=B(r),c=u?ve:se(t),f=i?ve:se(r),s=(c=c==pe?ye:c)==ye,l=(f=f==pe?ye:f)==ye,p=c==f;if(p&&Object(I.a)(t)){if(!Object(I.a)(r))return!1;u=!0,s=!1}if(p&&!s)return a||(a=new yr),u||K(t)?xr(t,r,e,n,o,a):Wr(t,r,c,e,n,o,a);if(!(e&le)){var v=s&&be.call(t,"__wrapped__"),y=l&&be.call(r,"__wrapped__");if(v||y){var b=v?t.value():t,h=y?r.value():r;return a||(a=new yr),o(b,h,e,n,a)}}return!!p&&(a||(a=new yr),Zr(t,r,e,n,o,a))};var _e=function t(r,e,n,o,a){return r===e||(null==r||null==e||!T(r)&&!T(e)?r!=r&&e!=e:he(r,e,n,o,t,a))},de=1,je=2;var ge=function(t,r,e,n){var o=e.length,a=o,u=!n;if(null==t)return!a;for(t=Object(t);o--;){var i=e[o];if(u&&i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++o<a;){var c=(i=e[o])[0],f=t[c],s=i[1];if(u&&i[2]){if(void 0===f&&!(c in t))return!1}else{var l=new yr;if(n)var p=n(f,s,c,t,r,l);if(!(void 0===p?_e(s,f,de|je,n,l):p))return!1}}return!0};var Oe=function(t){return t==t&&!ot(t)};var me=function(t){for(var r=lt(t),e=r.length;e--;){var n=r[e],o=t[n];r[e]=[n,o,Oe(o)]}return r};var we=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}};var xe=function(t){var r=me(t);return 1==r.length&&r[0][2]?we(r[0][0],r[0][1]):function(e){return e===t||ge(e,t,r)}},Pe="[object Symbol]";var Se=function(t){return"symbol"==typeof t||T(t)&&k(t)==Pe},Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ze=/^\w*$/;var Ee=function(t,r){if(B(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!Se(t))||ze.test(t)||!Ae.test(t)||null!=r&&t in Object(r)},ke="Expected a function";function Te(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError(ke);var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],a=e.cache;if(a.has(o))return a.get(o);var u=t.apply(this,n);return e.cache=a.set(o,u)||a,u};return e.cache=new(Te.Cache||sr),e}Te.Cache=sr;var De=Te,Me=500;var Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$e=/\\(\\)?/g,Ce=function(t){var r=De(t,function(t){return e.size===Me&&e.clear(),t}),e=r.cache;return r}(function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Fe,function(t,e,n,o){r.push(n?o.replace($e,"$1"):e||t)}),r});var Ue=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o},Be=1/0,Ie=j?j.prototype:void 0,Le=Ie?Ie.toString:void 0;var Re=function t(r){if("string"==typeof r)return r;if(B(r))return Ue(r,t)+"";if(Se(r))return Le?Le.call(r):"";var e=r+"";return"0"==e&&1/r==-Be?"-0":e};var Ve=function(t){return null==t?"":Re(t)};var We=function(t,r){return B(t)?t:Ee(t,r)?[t]:Ce(Ve(t))},Ne=1/0;var qe=function(t){if("string"==typeof t||Se(t))return t;var r=t+"";return"0"==r&&1/t==-Ne?"-0":r};var Ge=function(t,r){for(var e=0,n=(r=We(r,t)).length;null!=t&&e<n;)t=t[qe(r[e++])];return e&&e==n?t:void 0};var He=function(t,r,e){var n=null==t?void 0:Ge(t,r);return void 0===n?e:n};var Ye=function(t,r){return null!=t&&r in Object(t)};var Je=function(t,r,e){for(var n=-1,o=(r=We(r,t)).length,a=!1;++n<o;){var u=qe(r[n]);if(!(a=null!=t&&e(t,u)))break;t=t[u]}return a||++n!=o?a:!!(o=null==t?0:t.length)&&N(o)&&V(u,o)&&(B(t)||U(t))};var Ke=function(t,r){return null!=t&&Je(t,r,Ye)},Qe=1,Xe=2;var Ze=function(t,r){return Ee(t)&&Oe(r)?we(qe(t),r):function(e){var n=He(e,t);return void 0===n&&n===r?Ke(e,t):_e(r,n,Qe|Xe)}};var tn=function(t){return t};var rn=function(t){return function(r){return null==r?void 0:r[t]}};var en=function(t){return function(r){return Ge(r,t)}};var nn=function(t){return Ee(t)?rn(qe(t)):en(t)};var on=function(t){return"function"==typeof t?t:null==t?tn:"object"==typeof t?B(t)?Ze(t[0],t[1]):xe(t):nn(t)};var an=function(t,r){return(B(t)?b:vt)(t,on(r,3))},un=function(){function t(){o()(this,t)}return u()(t,[{key:"parseEntry",value:function(t){var r=an(t.features,function(t){return"TOPOLOGY"===t.category});return an(r,function(t){return"TOPO_DOM"===t.type}).map(function(t){var r=t.description;return delete t.description,Object.assign(t,{type:r.toUpperCase()})}),r}}]),t}(),cn=function(t){function r(){var t;return o()(this,r),(t=c()(this,s()(r).call(this)))._parser=new un,t}return p()(r,t),u()(r,[{key:"parseEntry",value:function(t){var r=this;return this._adaptedData=[],t&&0!==t.length&&(this._adaptedData=this._parser.parseEntry(t),this._adaptedData.map(function(t){return t.tooltipContent=r._basicHelper.formatTooltip(t)}),this._adaptedData=this._basicHelper.renameProperties(this._adaptedData)),this._adaptedData}}]),r}(y.a);window.customElements&&customElements.define("protvista-topology-adapter",cn)}]);
//# sourceMappingURL=protvista-topology-adapter.js.map