synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
14 lines • 1.83 MB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("universal-cookie"),require("prop-types"),require("react-tooltip"),require("react-transition-group"),require("react-bootstrap"),require("react-dom"),require("plotly.js-basic-dist"),require("react-plotly.js/factory"),require("@rjsf/core"),require("sql-parser"),require("react-measure"),require("sanitize-html")):"function"==typeof define&&define.amd?define(["exports","react","universal-cookie","prop-types","react-tooltip","react-transition-group","react-bootstrap","react-dom","plotly.js-basic-dist","react-plotly.js/factory","@rjsf/core","sql-parser","react-measure","sanitize-html"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).SRC={},e.React,e.UniversalCookie,e.PropTypes,e.ReactTooltip,e.ReactTransitionGroup,e.ReactBootstrap,e.ReactDOM,e.Plotly,e.createPlotlyComponent,e.JSONSchemaForm,e.sqlParser,e.ReactMeasure,e.sanitizeHtml)}(this,(function(e,t,n,r,a,o,i,c,s,l,u,d,f,p){"use strict";function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var v=h(t),g=m(t),b=h(n),y=h(r),M=m(r),E=h(a),C=m(i),A=m(c),w=h(c),O=h(s),S=h(l),N=h(u),z=h(f),_=h(p),T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function R(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return x(null==t&&n.path)}},n.exports),n.exports}function x(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n,r,a,o,i){try{var c=e[o](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,a)}function D(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){P(o,r,a,i,c,"next",e)}function c(e){P(o,r,a,i,c,"throw",e)}i(void 0)}))}}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t,n){return t&&q(e.prototype,t),n&&q(e,n),e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(){return F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(this,arguments)}function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}function X(e,t){return X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},X(e,t)}function U(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return G(e)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=V(e);if(t){var a=V(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Y(this,n)}}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){c=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw a}}return o}(e,t)||J(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||J(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=J(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}R((function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,o=Object.create(a.prototype),i=new z(r||[]);return o._invoke=function(e,t,n){var r=d;return function(a,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===a)throw o;return T()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=O(i,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=u(e,t,n);if("normal"===s.type){if(r=n.done?h:f,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,i),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",m={};function v(){}function g(){}function b(){}var y={};s(y,o,(function(){return this}));var M=Object.getPrototypeOf,E=M&&M(M(_([])));E&&E!==n&&r.call(E,o)&&(y=E);var C=b.prototype=v.prototype=Object.create(y);function A(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(a,o,i,c){var s=u(e[a],e,o);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(d).then((function(e){l.value=e,i(l)}),(function(e){return n("throw",e,i,c)}))}c(s.arg)}var a;this._invoke=function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=u(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function z(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function _(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:T}}function T(){return{value:t,done:!0}}return g.prototype=b,s(C,"constructor",b),s(b,"constructor",g),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},A(w.prototype),s(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new w(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},A(C),s(C,c,"Generator"),s(C,o,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,z.prototype={constructor:z,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return c.type="throw",c.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;N(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:_(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var te,ne=R((function(e,t){e.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],a=e[2],o=e[3];r=((r+=((a=((a+=((o=((o+=((n=((n+=(r&a|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&a)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|a>>>15)+o|0)&o|~a&n)+t[3]-1044525330|0)<<22|r>>>10)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r&a|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&a)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|a>>>15)+o|0)&o|~a&n)+t[7]-45705983|0)<<22|r>>>10)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r&a|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&a)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|a>>>15)+o|0)&o|~a&n)+t[11]-1990404162|0)<<22|r>>>10)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r&a|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&a)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|a>>>15)+o|0)&o|~a&n)+t[15]+1236535329|0)<<22|r>>>10)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r&o|a&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&a|r&~a)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|a>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r&o|a&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&a|r&~a)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|a>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r&o|a&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&a|r&~a)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|a>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r&o|a&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&a|r&~a)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|a>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r^a^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^a)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|a>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r^a^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^a)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|a>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r^a^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^a)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|a>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+a|0,r=((r+=((a=((a+=((o=((o+=((n=((n+=(r^a^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^a)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|a>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+a|0,r=((r+=((o=((o+=(r^((n=((n+=(a^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~a))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((a=((a+=(n^(o|~r))+t[14]-1416354905|0)<<15|a>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+a|0,r=((r+=((o=((o+=(r^((n=((n+=(a^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~a))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((a=((a+=(n^(o|~r))+t[10]-1051523|0)<<15|a>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+a|0,r=((r+=((o=((o+=(r^((n=((n+=(a^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~a))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((a=((a+=(n^(o|~r))+t[6]-1560198380|0)<<15|a>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+a|0,r=((r+=((o=((o+=(r^((n=((n+=(a^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~a))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((a=((a+=(n^(o|~r))+t[2]+718787259|0)<<15|a>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+a|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=a+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function a(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,a,o,i,c,s,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,r(e.substring(t-64,t)));for(a=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<a;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return i=(i=8*l).toString(16).match(/(.*?)(.{0,8})$/),c=parseInt(i[2],16),s=parseInt(i[1],16)||0,o[14]=c,o[15]=s,n(u,o),u}function i(e){var t,r,o,i,c,s,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,a(e.subarray(t-64,t)));for(r=(e=t-64<l?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return i=(i=8*l).toString(16).match(/(.*?)(.{0,8})$/),c=parseInt(i[2],16),s=parseInt(i[1],16)||0,o[14]=c,o[15]=s,n(u,o),u}function c(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=c(e[t]);return e.join("")}function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n,r=e.length,a=new ArrayBuffer(r),o=new Uint8Array(a);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:a}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function h(){this.reset()}return s(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var a,o,i,c,s=this.byteLength,l=t(n,s),u=s;return r!==e&&(u=t(r,s)),l>u?new ArrayBuffer(0):(a=u-l,o=new ArrayBuffer(a),i=new Uint8Array(o),c=new Uint8Array(this,l,a),i.set(c),o)}}(),h.prototype.append=function(e){return this.appendBinary(l(e)),this},h.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,a=this._buff.length;for(t=64;t<=a;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},h.prototype.end=function(e){var t,n,r=this._buff,a=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<a;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,a),n=s(this._hash),e&&(n=p(n)),this.reset(),n},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(e,t){var r,a,o,i=t;if(e[i>>2]|=128<<(i%4<<3),i>55)for(n(this._hash,e),i=0;i<16;i+=1)e[i]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=a,e[15]=o,n(this._hash,e)},h.hash=function(e,t){return h.hashBinary(l(e),t)},h.hashBinary=function(e,t){var n=s(o(e));return t?p(n):n},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(e){var t,r=f(this._buff.buffer,e,!0),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,a(r.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},h.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,a=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<a;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,a),n=s(this._hash),e&&(n=p(n)),this.reset(),n},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var e=h.prototype.getState.call(this);return e.buff=d(e.buff),e},h.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),h.prototype.setState.call(this,e)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(e,t){var n=s(i(new Uint8Array(e)));return t?p(n):n},h}()})),re=273948,ae=273949,oe=273950,ie="study",ce="org.sagebionetworks.UNDEFINED_NULL_NOTSET",se="study active",le="study complete",ue="database",de="dataset",fe="funder",pe="publication",he="tool",me="computational",ve="computational tool",ge="experimental",be="experimental tool",ye="clinical",Me="Project",Ee="Grant",Ce="ORGANIZATION",Ae="PERSON",we="MOUSE",Oe="explore",Se="search",Ne="chart",ze="filter",_e="download",Te="expand",Le="collapse",Re="close",xe="sortup",Ie="sortdown",ke="settings",Pe="columns",De="columnsdark",Be="verticaldots",qe="file",We="chart2",je="externallink",Fe="easy-difficulty",He="medium-difficulty",Ve="variable-difficulty",Xe="AVATAR",Ue="SMALL USER CARD",Ge="MEDIUM USER CARD",Ye="LARGE USER CARD",Ze="SEPERATOR",Ke="SRC-SIGN-IN-CLASS",$e="SynapseTestWebsite",Je="INFO_FROM_IDS_USER_PROFILE",Qe="INFO_FROM_IDS_ENTITY_HEADER",et="org.sagebionetworks.synapse.datetime.utc",tt=Object.freeze({__proto__:null,AUTHENTICATED_PRINCIPAL_ID:re,PUBLIC_PRINCIPAL_ID:ae,ANONYMOUS_PRINCIPAL_ID:oe,BUNDLE_MASK_QUERY_RESULTS:1,BUNDLE_MASK_QUERY_COUNT:2,BUNDLE_MASK_QUERY_SELECT_COLUMNS:4,BUNDLE_MASK_QUERY_MAX_ROWS_PER_PAGE:8,BUNDLE_MASK_QUERY_COLUMN_MODELS:16,BUNDLE_MASK_QUERY_FACETS:32,BUNDLE_MASK_SUM_FILES_SIZE_BYTES:64,ENTITY_BUNDLE_MASK_ENTITY:1,ENTITY_BUNDLE_MASK_ANNOTATIONS:2,ENTITY_BUNDLE_MASK_PERMISSIONS:4,ENTITY_BUNDLE_MASK_ENTITY_PATH:8,ENTITY_BUNDLE_MASK_HAS_CHILDREN:32,ENTITY_BUNDLE_MASK_ACL:64,ENTITY_BUNDLE_MASK_FILE_HANDLES:2048,ENTITY_BUNDLE_MASK_TABLE_DATA:4096,ENTITY_BUNDLE_MASK_ROOT_WIKI_ID:8192,ENTITY_BUNDLE_MASK_BENEFACTOR_ACL:16384,ENTITY_BUNDLE_MASK_DOI:32768,ENTITY_BUNDLE_MASK_FILE_NAME:65536,ENTITY_BUNDLE_MASK_THREAD_COUNT:131072,ENTITY_BUNDLE_MASK_RESTRICTION_INFORMATION:262144,STUDY:ie,VALUE_NOT_SET:ce,FRIENDLY_VALUE_NOT_SET:"Not Assigned",STUDY_ACTIVE:se,STUDY_COMPLETE:le,DATABASE:ue,DATASET:de,AMP_CONSORTIUM:"AMP_Consortium",FUNDER:fe,PUBLICATION:pe,TOOL:he,GENERIC_CARD:"GENERIC_CARD",OBSERVATION_CARD:"observation_card",COMPUTATIONAL:me,COMPUTATIONAL_TOOL:ve,EXPERIMENTAL:ge,EXPERIMENTAL_TOOL:be,CLINICAL:ye,PROJECT:Me,GRANT:Ee,ORGANIZATION:Ce,PERSON:Ae,MOUSE:we,EXPLORE:Oe,SEARCH:Se,CHART:Ne,FILTER:ze,DOWNLOAD:_e,EXPAND:Te,COLLAPSE:Le,CLOSE:Re,SORTUP:xe,SORTDOWN:Ie,SETTINGS:ke,COLUMNS:Pe,COLUMNSDARK:De,VERTICAL_DOTS:Be,FILE:qe,CHART2:We,EXTERNALLINK:je,EASY_DIFFICULTY:Fe,MEDIUM_DIFFICULTY:He,VARIABLE_DIFFICULTY:Ve,DEFAULT_PAGE_SIZE:25,AVATAR:Xe,SMALL_USER_CARD:Ue,MEDIUM_USER_CARD:Ge,LARGE_USER_CARD:Ye,SEPERATOR:Ze,AUTHENTICATED_USERS:"AUTHENTICATED_USERS",_TIME_DELAY:75,SRC_SIGN_IN_CLASS:Ke,EXPERIMENTAL_MODE_COOKIE:$e,USER_BUNDLE_MASK_USER_PROFILE:1,USER_BUNDLE_MASK_ORCID:2,USER_BUNDLE_MASK_VERIFICATION_SUBMISSION:4,USER_BUNDLE_MASK_IS_CERTIFIED:8,USER_BUNDLE_MASK_IS_VERIFIED:16,USER_BUNDLE_MASK_IS_ACT_MEMBER:2,USER_PROFILE_STORAGE_KEY:Je,ENTITY_HEADER_STORAGE_KEY:Qe,DATETIME_UTC_COOKIE_KEY:et});!function(e){e[e.REPO_ENDPOINT=0]="REPO_ENDPOINT",e[e.PORTAL_ENDPOINT=1]="PORTAL_ENDPOINT"}(te||(te={}));var nt,rt=["www.synapse.org","staging.synapse.org","tst.synapse.org","127.0.0.1"],at={REPO:"https://repo-prod.prod.sagebase.org",PORTAL:(nt=window.location.hostname,rt.includes(nt.toLowerCase())?"/":"https://www.synapse.org/")},ot=function(e){var t=at;window.SRC&&window.SRC.OVERRIDE_ENDPOINT_CONFIG&&(t=window.SRC&&window.SRC.OVERRIDE_ENDPOINT_CONFIG);var n=t,r=n.PORTAL,a=n.REPO;if(!r||!a)throw Error("Error failed to specify endpoints, cannot make call");return e===te.PORTAL_ENDPOINT?r:a};"".concat(ot(te.REPO_ENDPOINT));var it,ct,st,lt,ut,dt,ft="/repo/v1",pt="".concat(ft,"/entity"),ht=function(e){return"".concat(ft,"/entity/").concat(e)},mt=function(e,t){return"".concat(function(e,t){return"".concat(ft,"/entity/").concat(e).concat(t?"/version/".concat(t):"")}(e,t),"/bundle2")},vt="".concat(ft,"/entity/header"),gt=function(e){return"".concat(ft,"/entity/").concat(e,"/json")},bt=function(e){return"".concat(ft,"/entity/").concat(e,"/schema")},yt="".concat(ft,"/schema"),Mt="".concat(yt,"/type/validation").concat("/async/start"),Et=function(e){return"".concat(yt,"/type/validation").concat("/async/get","/").concat(e)},Ct="".concat(ft,"/user"),At=function(e){return"".concat(function(e){return"".concat(Ct,"/").concat(e)}(e),"/bundle")},wt="".concat(ft,"/userProfile"),Ot="".concat(ft,"/favorite"),St=function(e){var t=new CustomEvent("DOWNLOAD_LIST_UPDATED_EVENT",{detail:e});document.dispatchEvent(t)};function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(Object.keys(e).forEach((function(t){return void 0===e[t]?delete e[t]:{}})),e):Object.keys(e).reduce((function(t,n){var r=t;return void 0!==e[n]&&(r[n]=e[n]),r}),{})}!function(e){e.APPROVED="APPROVED",e.REVOKED="REVOKED"}(it||(it={})),function(e){e.CREATE="CREATE",e.READ="READ",e.UPDATE="UPDATE",e.DELETE="DELETE",e.CHANGE_PERMISSIONS="CHANGE_PERMISSIONS",e.DOWNLOAD="DOWNLOAD",e.UPLOAD="UPLOAD",e.PARTICIPATE="PARTICIPATE",e.SUBMIT="SUBMIT",e.READ_PRIVATE_SUBMISSION="READ_PRIVATE_SUBMISSION",e.UPDATE_SUBMISSION="UPDATE_SUBMISSION",e.DELETE_SUBMISSION="DELETE_SUBMISSION",e.TEAM_MEMBERSHIP_UPDATE="TEAM_MEMBERSHIP_UPDATE",e.SEND_MESSAGE="SEND_MESSAGE",e.CHANGE_SETTINGS="CHANGE_SETTINGS",e.MODERATE="MODERATE"}(ct||(ct={})),function(e){e.SUBMITTED="SUBMITTED",e.APPROVED="APPROVED",e.REJECTED="REJECTED",e.CANCELLED="CANCELLED"}(st||(st={})),function(e){e.GAIN_ACCESS="GAIN_ACCESS",e.RENEW_ACCESS="RENEW_ACCESS",e.REVOKE_ACCESS="REVOKE_ACCESS"}(lt||(lt={})),function(e){e[e.STRING=0]="STRING",e[e.DOUBLE=1]="DOUBLE",e[e.LONG=2]="LONG",e[e.TIMESTAMP_MS=3]="TIMESTAMP_MS"}(ut||(ut={})),function(e){e.CommandLineCache="CommandLineCache",e.Flat="Flat"}(dt||(dt={}));var zt,_t,Tt,Lt=["name","id","etag","createdOn","modifiedOn","createdBy","modifiedBy","parentId","concreteType","versionNumber","versionLabel","versionComment","isLatestVersion","dataFileHandleId","fileNameOverride","columnIds","scopeIds","linksTo","linksToClassName","repositoryName","isManaged","viewTypeMask","type","alias"];!function(e){e.NAME="NAME",e.CREATED_ON="CREATED_ON",e.MODIFIED_ON="MODIFIED_ON"}(zt||(zt={})),function(e){e.ASC="ASC",e.DESC="DESC"}(_t||(_t={})),function(e){e.PROJECT="project",e.FOLDER="folder",e.FILE="file",e.TABLE="table",e.LINK="link",e.ENTITY_VIEW="entityview",e.DOCKER_REPO="dockerrepo",e.SUBMISSION_VIEW="submissionview",e.DATASET="dataset"}(Tt||(Tt={}));
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var Rt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable;function kt(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var Pt,Dt,Bt,qt,Wt,jt,Ft,Ht,Vt,Xt=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,a=kt(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))xt.call(n,i)&&(a[i]=n[i]);if(Rt){r=Rt(n);for(var c=0;c<r.length;c++)It.call(n,r[c])&&(a[r[c]]=n[r[c]])}}return a},Ut=R((function(e){var t,n,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var c,s=[],l=!1,u=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):u=-1,s.length&&f())}function f(){if(!l){var e=i(d);l=!0;for(var t=s.length;t;){for(c=s,s=[];++u<t;)c&&c[u].run();u=-1,t=s.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||l||i(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}})),Gt=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8},Yt=R((function(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}})),Zt=R((function(e,t){var n=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}r=1;for(var a=arguments,i=a.length,c=String(e).replace(n,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(a[r++]);case"%d":return Number(a[r++]);case"%j":try{return JSON.stringify(a[r++])}catch(e){return"[Circular]"}default:return e}})),s=a[r];r<i;s=a[++r])p(s)||!b(s)?c+=" "+s:c+=" "+o(s);return c},t.deprecate=function(e,n){if(v(T.process))return function(){return t.deprecate(e,n).apply(this,arguments)};if(!0===Ut.noDeprecation)return e;var r=!1;return function(){if(!r){if(Ut.throwDeprecation)throw new Error(n);Ut.traceDeprecation?console.trace(n):console.error(n),r=!0}return e.apply(this,arguments)}};var r,a={};function o(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),f(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),s(r,e,r.depth)}function i(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function c(e,t){return e}function s(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var a=n.inspect(r,e);return m(a)||(a=s(e,a,r)),a}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(h(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(p(t))return e.stylize("null","null")}(e,n);if(o)return o;var i=Object.keys(n),c=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(n)),M(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return l(n);if(0===i.length){if(E(n)){var b=n.name?": "+n.name:"";return e.stylize("[Function"+b+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(y(n))return e.stylize(Date.prototype.toString.call(n),"date");if(M(n))return l(n)}var C,A="",w=!1,O=["{","}"];(d(n)&&(w=!0,O=["[","]"]),E(n))&&(A=" [Function"+(n.name?": "+n.name:"")+"]");return g(n)&&(A=" "+RegExp.prototype.toString.call(n)),y(n)&&(A=" "+Date.prototype.toUTCString.call(n)),M(n)&&(A=" "+l(n)),0!==i.length||w&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),C=w?function(e,t,n,r,a){for(var o=[],i=0,c=t.length;i<c;++i)S(t,String(i))?o.push(u(e,t,n,r,String(i),!0)):o.push("");return a.forEach((function(a){a.match(/^\d+$/)||o.push(u(e,t,n,r,a,!0))})),o}(e,n,r,c,i):i.map((function(t){return u(e,n,r,c,t,w)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(C,A,O)):O[0]+A+O[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function u(e,t,n,r,a,o){var i,c,l;if((l=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?c=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),S(r,a)||(i="["+a+"]"),c||(e.seen.indexOf(l.value)<0?(c=p(n)?s(e,l.value,null):s(e,l.value,n-1)).indexOf("\n")>-1&&(c=o?c.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),v(i)){if(o&&a.match(/^\d+$/))return c;(i=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+c}function d(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function p(e){return null===e}function h(e){return"number"==typeof e}function m(e){return"string"==typeof e}function v(e){return void 0===e}function g(e){return b(e)&&"[object RegExp]"===C(e)}function b(e){return"object"==typeof e&&null!==e}function y(e){return b(e)&&"[object Date]"===C(e)}function M(e){return b(e)&&("[object Error]"===C(e)||e instanceof Error)}function E(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(r)&&(r=Ut.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(r)){var n=Ut.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=f,t.isNull=p,t.isNullOrUndefined=function(e){return null==e},t.isNumber=h,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=g,t.isObject=b,t.isDate=y,t.isError=M,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=Gt;var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":");return[e.getDate(),w[e.getMonth()],t].join(" ")}function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=Yt,t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}));function Kt(e){return Object.values(Pt).includes(e.concreteType)}R((function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
function t(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,a=0,o=Math.min(n,r);a<o;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0}function n(e){return T.Buffer&&"function"==typeof T.Buffer.isBuffer?T.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var r=Object.prototype.hasOwnProperty,a=Array.prototype.slice,o="foo"===function(){}.name;function i(e){return Object.prototype.toString.call(e)}function c(e){return!n(e)&&("function"==typeof T.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var s=e.exports=h,l=/\s*function\s+([^\(\s]*)\s*/;function u(e){if(Zt.isFunction(e)){if(o)return e.name;var t=e.toString().match(l);return t&&t[1]}}function d(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function f(e){if(o||!Zt.isFunction(e))return Zt.inspect(e);var t=u(e);return"[Function"+(t?": "+t:"")+"]"}function p(e,t,n,r,a){throw new s.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:a})}function h(e,t){e||p(e,!0,t,"==",s.ok)}function m(e,r,o,s){if(e===r)return!0;if(n(e)&&n(r))return 0===t(e,r);if(Zt.isDate(e)&&Zt.isDate(r))return e.getTime()===r.getTime();if(Zt.isRegExp(e)&&Zt.isRegExp(r))return e.source===r.source&&e.global===r.global&&e.multiline===r.multiline&&e.lastIndex===r.lastIndex&&e.ignoreCase===r.ignoreCase;if(null!==e&&"object"==typeof e||null!==r&&"object"==typeof r){if(c(e)&&c(r)&&i(e)===i(r)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===t(new Uint8Array(e.buffer),new Uint8Array(r.buffer));if(n(e)!==n(r))return!1;var l=(s=s||{actual:[],expected:[]}).actual.indexOf(e);return-1!==l&&l===s.expected.indexOf(r)||(s.actual.push(e),s.expected.push(r),function(e,t,n,r){if(null==e||null==t)return!1;if(Zt.isPrimitive(e)||Zt.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var o=v(e),i=v(t);if(o&&!i||!o&&i)return!1;if(o)return m(e=a.call(e),t=a.call(t),n);var c,s,l=y(e),u=y(t);if(l.length!==u.length)return!1;for(l.sort(),u.sort(),s=l.length-1;s>=0;s--)if(l[s]!==u[s])return!1;for(s=l.length-1;s>=0;s--)if(!m(e[c=l[s]],t[c],n,r))return!1;return!0}(e,r,o,s))}return o?e===r:e==r}function v(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function g(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function b(e,t,n,r){var a;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),a=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!a&&p(a,n,"Missing expected exception"+r);var o="string"==typeof r,i=!e&&a&&!n;if((!e&&Zt.isError(a)&&o&&g(a,n)||i)&&p(a,n,"Got unwanted exception"+r),e&&a&&n&&!g(a,n)||!e&&a)throw a}s.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return d(f(e.actual),128)+" "+e.operator+" "+d(f(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||p;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,a=u(t),o=r.indexOf("\n"+a);if(o>=0){var i=r.indexOf("\n",o+1);r=r.substring(i+1)}this.stack=r}}},Zt.inherits(s.AssertionError,Error),s.fail=p,s.ok=h,s.equal=function(e,t,n){e!=t&&p(e,t,n,"==",s.equal)},s.notEqual=function(e,t,n){e==t&&p(e,t,n,"!=",s.notEqual)},s.deepEqual=function(e,t,n){m(e,t,!1)||p(e,t,n,"deepEqual",s.deepEqual)},s.deepStrictEqual=function(e,t,n){m(e,t,!0)||p(e,t,n,"deepStrictEqual",s.deepStrictEqual)},s.notDeepEqual=function(e,t,n){m(e,t,!1)&&p(e,t,n,"notDeepEqual",s.notDeepEqual)},s.notDeepStrictEqual=function e(t,n,r){m(t,n,!0)&&p(t,n,r,"notDeepStrictEqual",e)},s.strictEqual=function(e,t,n){e!==t&&p(e,t,n,"===",s.strictEqual)},s.notStrictEqual=function(e,t,n){e===t&&p(e,t,n,"!==",s.notStrictEqual)},s.throws=function(e,t,n){b(!0,e,t,n)},s.doesNotThrow=function(e,t,n){b(!1,e,t,n)},s.ifError=function(e){if(e)throw e},s.strict=Xt((function e(t,n){t||p(t,!0,n,"==",e)}),s,{equal:s.strictEqual,deepEqual:s.deepStrictEqual,notEqual:s.notStrictEqual,notDeepEqual:s.notDeepStrictEqual}),s.strict.strict=s.strict;var y=Object.keys||function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t}})),function(e){e.ProxyFileHandle="org.sagebionetworks.repo.model.file.ProxyFileHandle",e.ExternalObjectStoreFileHandle="org.sagebionetworks.repo.model.file.ExternalObjectStoreFileHandle",e.ExternalFileHandle="org.sagebionetworks.repo.model.file.ExternalFileHandle"}(Pt||(Pt={})),function(e){e.SUCCESS="SUCCESS",e.FAILURE="FAILURE"}(Dt||(Dt={})),function(e){e.NOT_FOUND="NOT_FOUND",e.UNAUTHORIZED="UNAUTHORIZED",e.DUPLICATE="DUPLICATE",e.EXCEEDS_SIZE_LIMIT="EXCEEDS_SIZE_LIMIT",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(Bt||(Bt={})),function(e){e.FileEntity="FileEntity",e.TableEntity="TableEntity",e.WikiAttachment="WikiAttachment",e.WikiMarkdown="WikiMarkdown",e.UserProfileAttachment="UserProfileAttachment",e.MessageAttachment="MessageAttachment",e.TeamAttachment="TeamAttachment",e.SubmissionAttachment="SubmissionAttachment",e.VerificationSubmission="VerificationSubmission",e.AccessRequirementAttachment="AccessRequirementAttachment",e.DataAccessRequestAttachment="DataAccessRequestAttachment",e.DataAccessSubmissionAttachment="DataAccessSubmissionAttachment"}(qt||(qt={})),function(e){e.WAITING_FOR_SUBMISSION="WAITING_FOR_SUBMISSION",e.SUBMITTED_WAITING_FOR_REVIEW="SUBMITTED_WAITING_FOR_REVIEW",e.ACCEPTED="ACCEPTED",e.REJECTED="REJECTED"}(Wt||(Wt={})),function(e){e.ENTITY="ENTITY",e.ENTITY_CONTAINER="ENTITY_CONTAINER",e.PRINCIPAL="PRINCIPAL",e.ACTIVITY="ACTIVITY",e.EVALUATION="EVALUATION",e.SUBMISSION="SUBMISSION",e.EVALUATION_SUBMISSIONS="EVALUATION_SUBMISSIONS",e.FILE="FILE",e.MESSAGE="MESSAGE",e.WIKI="WIKI",e.FAVORITE="FAVORITE",e.ACCESS_REQUIREMENT="ACCESS_REQUIREMENT",e.ACCESS_APPROVAL="ACCESS_APPROVAL",e.TEAM="TEAM",e.TABLE="TABLE",e.ACCESS_CONTROL_LIST="ACCESS_CONTROL_LIST",e.PROJECT_SETTING="PROJECT_SETTING",e.VERIFICATION_SUBMISSION="VERIFICATION_SUBMISSION",e.CERTIFIED_USER_PASSING_RECORD="CERTIFIED_USER_PASSING_RECORD",e.FORUM="FORUM",e.THREAD="THREAD",e.REPLY="REPLY",e.FORM_GROUP="FORM_GROUP",e.FORM_DATA="FORM_DATA",e.ENTITY_VIEW="ENTITY_VIEW",e.USER_PROFILE="USER_PROFILE",e.DATA_ACCESS_REQUEST="DATA_ACCESS_REQUEST",e.DATA_ACCESS_SUBMISSION="DATA_ACCESS_SUBMISSION",e.DATA_ACCESS_SUBMISSION_STATUS="DATA_ACCESS_SUBMISSION_STATUS",e.MEMBERSHIP_INVITATION="MEMBERSHIP_INVITATION"}(jt||(jt={})),function(e){e.ENTITY="ENTITY",e.EVALUATION="EVALUATION",e.TEAM="TEAM"}(Ft||(Ft={})),function(e){e.OPEN="OPEN",e.RESTRICTED_BY_TERMS_OF_USE="RESTRICTED_BY_TERMS_OF_USE",e.CONTROLLED_BY_ACT="CONTROLLED_BY_ACT"}(Ht||(Ht={})),function(e){e.STRING="STRING",e.DOUBLE="DOUBLE",e.BOOLEAN="BOOLEAN",e.INTEGER="INTEGER",e.DATE="DATE",e.FILEHANDLEID="FILEHANDLEID",e.ENTITYID="ENTITYID",e.LINK="LINK",e.LARGETEXT="LARGETEXT",e.USERID="USERID",e.STRING_LIST="STRING_LIST",e.INTEGER_LIST="INTEGER_LIST",e.BOOLEAN_LIST="BOOLEAN_LIST",e.DATE_LIST="DATE_LIST",e.USERID_LIST="USERID_LIST",e.ENTITYID_LIST="ENTITYID_LIST"}(Vt||(Vt={}));var $t=["query"],Jt=new b.default,Qt=!window.location.hostname.toLowerCase().includes(".synapse.org"),en="org.sagebionetworks.security.user.login.token",tn=function(){var e=window.location.port?":".concat(window.location.port):"";return"".concat(window.location.protocol,"//").concat(window.location.hostname).concat(e,"/")};function nn(e){return new Promise((function(t){setTimeout(t.bind(null,{}),e)}))}var rn=[0,429,502,503,504],an=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return fetch(t,n).then((function(e){return e.text().then((function(t){try{var n=JSON.parse(t);return e.ok?Promise.resolve(n):Promise.reject(n)}catch(n){return e.ok?Promise.resolve(t):Promise.reject(t)}})).catch((function(t){return e.ok?Promise.resolve({reason:t,status:e.status}):t.reason&&e.status?Promise.reject(k(k({},t),{},{status:e.status})):Promise.reject({reason:t,status:e.status})}))})).catch((function(a){return a.status&&-1!==rn.indexOf(a.status)?nn(r).then((function(){return e(t,n,2*r)})):Promise.reject(a)}))},on=function(e,t,n,r,a){var o={body:JSON.stringify(t),headers:{Accept:"*/*","Access-Control-Request-Headers":"authorization","Content-Type":"application/json"},method:"POST",mode:"cors",credentials:r};n&&(o.headers.authorization="Bearer ".concat(n));var i=ot(a);return an(i+e,o)},cn=function(e,t,n,r){var a={headers:{Accept:"*/*","Access-Control-Request-Headers":"authorization"},method:"GET",mode:"cors",credentials:n};t&&(a.headers.authorization="Bearer ".concat(t));var o=ot(r);return an(o+e,a)},sn=function(e,t,n,r){var a={headers:{Accept:"*/*","Access-Control-Request-Headers":"authorization"},method:"DELETE",mode:"cors",credentials:n};t&&(a.headers.authorization="Bearer ".concat(t));var o=ot(r);return an(o+e,a)},ln=function(e,t,n,r,a){var o={body:JSON.stringify(t),headers:{Accept:"*/*","Access-Control-Request-Headers":"authorization","Content-Type":"application/json"},method:"PUT",mode:"cors",credentials:r};n&&(o.headers.authorization="Bearer ".concat(n));var i=ot(a);return an(i+e,o)},un=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return cn("/file/v1/fileHandle/".concat(e),t,void 0,te.REPO_ENDPOINT)},dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return cn("/file/v1/fileHandle/".concat(e,"/url?redirect=false"),t,void 0,te.REPO_ENDPOINT)},fn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return cn(t,n,void 0,te.REPO_ENDPOINT).then((function(a){return a.jobState&&"FAILED"!==a.jobState?(r&&r({asyncJobStatus:a}),nn(500).then((function(){return e(t,n,r)}))):a})).catch((function(e){throw e}))},pn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return on("/repo/v1/entity/".concat(e.entityId,"/table/query/async/start"),e,t,void 0,te.REPO_ENDPOINT).then((function(r){return fn("/repo/v1/entity/".concat(e.entityId,"/table/query/async/get/").concat(r.token),t,n)})).catch((function(e){throw e}))},hn=function(){var e=D(regeneratorRuntime.mark((function e(t){var n,r,a,o,i,c,s,l,u,d,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:void 0,a=0,o=t.query,i=U(t,$t),c=k(k({},i),{},{query:k(k({},o),{},{offset:a}),partMask:8|t.partMask}),e.next=6,pn(c,n);case 6:s=e.sent,r=s,l=s.queryResult.queryResults.rows.length<r.maxRowsPerPage,a+=s.queryResult.queryResults.rows.length,c.query.limit=r.maxRowsPerPage;case 11:if(l){e.next=21;break}return c.query.offset=a,e.next=15,pn(c,n);case 15:d=e.sent,(u=r.queryResult.queryResults.rows).push.apply(u,$(d.queryResult.queryResults.rows)),l=d.queryResult.queryResults.rows.length<c.query.limit,a+=d.queryResult.queryResults.rows.length,e.next=11;break;case 21:return e.abrupt("return",r);case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),mn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:te.REPO_ENDPOINT;return on("/auth/v1/login2",{username:e,password:t,authenticationReceipt:n},void 0,void 0,r)},vn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:te.REPO_ENDPOINT;return on("/auth/v1/oauth2/authurl",{provider:e,redirectUrl:t},void 0,void 0,n)},gn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:te.REPO_ENDPOINT;return on("/auth/v1/oauth2/session2",{provider:e,authenticationCode:t,redirectUrl:n},void 0,void 0,r)},bn=function(e,t){return on(pt,e,t,void 0,te.REPO_ENDPOINT)},yn=function(e,t){return bn({name:e,concreteType:"org.sagebionetworks.repo.model.Project"},t)},Mn=function(e){return cn(wt,e,void 0,te.REPO_ENDPOINT)},En=function(e,t){return cn(function(e){return"".concat(wt,"/").concat(e)}(t),e,void 0,te.REPO_ENDPOINT)},Cn=function(e,t,n){return cn("".concat(At(e),"?mask=").concat(t),n,void 0,te.REPO_ENDPOINT)},An=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ALL",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20;return cn("/repo/v1/userGroupHeaders?prefix=".concat(e,"&typ