tidied up auth example and removed python dependency

This commit is contained in:
awalias committed 2020-07-27 11:59:09 +08:00
1 parent 6b1d08f9b6
commit 9d889eb2da
7 files changed
+11277 -4924

No files matched your search

+423 -428
View File
@@ -86,6 +86,428 @@
/************************************************************************/
/******/ ({
/***/ "../../../supabase-js/lib/Auth.js":
/*!***************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/lib/Auth.js ***!
\***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(a,b){if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports,__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../../../supabase-js/node_modules/@babel/runtime/helpers/asyncToGenerator.js\"),__webpack_require__(/*! superagent */ \"../../../supabase-js/node_modules/superagent/lib/client.js\")], __WEBPACK_AMD_DEFINE_FACTORY__ = (b),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else { var c; }})(\"undefined\"==typeof globalThis?\"undefined\"==typeof self?this:self:globalThis,function(a,b,c){\"use strict\";var d=__webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../../supabase-js/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");Object.defineProperty(a,\"__esModule\",{value:!0}),a.Auth=void 0,b=d(b),c=d(c);a.Auth=class a{constructor(a,d){var e=this,f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{autoRefreshToken:!0};this.authUrl=a,this.accessToken=d,this.refreshToken=null,this.supabaseKey=d,this.currentUser=null,this.autoRefreshToken=f.autoRefreshToken,this.signup=/*#__PURE__*/function(){var d=(0,b.default)(function*(b,d){var f=yield c.default.post(\"\".concat(a,\"/signup\"),{email:b,password:d}).set(\"accept\",\"json\").set(\"apikey\",e.supabaseKey);return f});return function(){return d.apply(this,arguments)}}(),this.login=/*#__PURE__*/function(){var d=(0,b.default)(function*(b,d){var f=yield c.default.post(\"\".concat(a,\"/token?grant_type=password\"),{email:b,password:d}).set(\"accept\",\"json\").set(\"apikey\",e.supabaseKey);return 200===f.status&&(e.accessToken=f.body.access_token,e.refreshToken=f.body.refresh_token,e.autoRefreshToken&&tokenExpirySeconds&&setTimeout(e.refreshToken,tokenExpirySeconds-60)),f});return function(){return d.apply(this,arguments)}}(),this.refreshToken=/*#__PURE__*/(0,b.default)(function*(){var b=yield c.default.post(\"\".concat(a,\"/token?grant_type=refresh_token\"),{refresh_token:e.refreshToken}).set(\"apikey\",e.supabaseKey);if(200===b.status){e.accessToken=b.body.access_token,e.refreshToken=b.body.refresh_token;var d=b.body.expires_in;e.autoRefreshToken&&d&&setTimeout(e.refreshToken,d-60)}return b}),this.logout=/*#__PURE__*/(0,b.default)(function*(){yield c.default.post(\"\".concat(a,\"/logout\")).set(\"Authorization\",\"Bearer \".concat(e.accessToken)).set(\"apikey\",e.supabaseKey),e.currentUser=null,e.accessToken=null}),this.user=/*#__PURE__*/(0,b.default)(function*(){if(e.currentUser)return e.currentUser;var b=yield c.default.get(\"\".concat(a,\"/user\")).set(\"Authorization\",\"Bearer \".concat(e.accessToken)).set(\"apikey\",e.supabaseKey);return 200===b.status&&(e.currentUser=b.body,e.currentUser.access_token=e.accessToken,e.currentUser.refresh_token=e.refreshToken),e.currentUser})}}});\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/lib/Auth.js?");
/***/ }),
/***/ "../../../supabase-js/lib/Realtime.js":
/*!*******************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/lib/Realtime.js ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(a,b){if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports,__webpack_require__(/*! @supabase/realtime-js */ \"../../../supabase-js/node_modules/@supabase/realtime-js/src/index.js\"),__webpack_require__(/*! ./utils/ChangeMapper */ \"../../../supabase-js/lib/utils/ChangeMapper.js\")], __WEBPACK_AMD_DEFINE_FACTORY__ = (b),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else { var c; }})(\"undefined\"==typeof globalThis?\"undefined\"==typeof self?this:self:globalThis,function(a,b,c){\"use strict\";var d=__webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ \"../../../supabase-js/node_modules/@babel/runtime/helpers/interopRequireWildcard.js\");Object.defineProperty(a,\"__esModule\",{value:!0}),a.default=void 0,c=d(c);a.default=class a{constructor(a,b,c,d,e,f,g,h){this.tableName=a,this.realtimeUrl=b,this.schema=c,this.apikey=d,this.uuid=e,this.socket=null,this.channel=null,this.listeners={},this.queryFilters=h,this.on(f,g)}/**\n * REALTIME FUNCTIONALITY\n */createListener(){var a=\"\".concat(this.realtimeUrl),c=\"\";this.queryFilters.forEach(a=>{switch(a.filter){case\"filter\":\"eq\"===a.operator&&(c=\":\".concat(a.columnName,\"=\").concat(a.operator,\".\").concat(a.criteria));break;default:}});var d=\"*\"==this.tableName?\"realtime:*\":\"realtime:\".concat(this.schema,\":\").concat(this.tableName).concat(c);this.socket=new b.Socket(a,{params:{apikey:this.apikey}}),this.channel=this.socket.channel(d),this.socket.onOpen(()=>{console.debug(\"\".concat(this.realtimeUrl,\": REALTIME CONNECTED\"))}),this.socket.onClose(()=>{console.debug(\"\".concat(this.realtimeUrl,\": REALTIME DISCONNECTED\"))})}on(a,b){return null==this.socket&&this.createListener(),this.channel.on(a,a=>{var d={schema:a.schema,table:a.table,commit_timestamp:a.commit_timestamp},e={},f={},g={};switch(a.type){case\"INSERT\":e=c.convertChangeData(a.columns,a.record),d.eventType=\"INSERT\",d.new=e;break;case\"UPDATE\":f=c.convertChangeData(a.columns,a.old_record),e=c.convertChangeData(a.columns,a.record),Object.keys(f).forEach(a=>{null!=f[a]&&(g[a]=f[a])}),d.eventType=\"UPDATE\",d.old=g,d.new=e;break;case\"DELETE\":f=c.convertChangeData(a.columns,a.old_record),Object.keys(f).forEach(a=>{null!=f[a]&&(g[a]=f[a])}),d.eventType=\"DELETE\",d.old=g;break;default:}b(d)}),this.listeners[a]=b,this}subscribe(){return null==this.socket&&this.createListener(),this.socket.connect(),\"joined\"!==this.channel.state&&this.channel.join().receive(\"ok\",a=>console.debug(\"\".concat(this.realtimeUrl,\": Joined Realtime successfully \"),a)).receive(\"error\",a=>console.debug(\"\".concat(this.realtimeUrl,\": Unable to join \"),a)).receive(\"timeout\",()=>console.debug(\"\".concat(this.realtimeUrl,\": Network timeout. Still waiting...\"))),this}unsubscribe(){return this.socket&&this.socket.disconnect(),this}}});\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/lib/Realtime.js?");
/***/ }),
/***/ "../../../supabase-js/lib/index.js":
/*!****************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/lib/index.js ***!
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(a,b){if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports,__webpack_require__(/*! ./utils/Helpers */ \"../../../supabase-js/lib/utils/Helpers.js\"),__webpack_require__(/*! ./Realtime */ \"../../../supabase-js/lib/Realtime.js\"),__webpack_require__(/*! ./Auth */ \"../../../supabase-js/lib/Auth.js\"),__webpack_require__(/*! @supabase/postgrest-js */ \"../../../supabase-js/node_modules/@supabase/postgrest-js/lib/index.js\")], __WEBPACK_AMD_DEFINE_FACTORY__ = (b),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else { var c; }})(\"undefined\"==typeof globalThis?\"undefined\"==typeof self?this:self:globalThis,function(a,b,c,d,e){\"use strict\";var f=__webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"../../../supabase-js/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");Object.defineProperty(a,\"__esModule\",{value:!0}),a.createClient=void 0,c=f(c);class g{constructor(a,b){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{autoRefreshToken:!0};this.supabaseUrl=null,this.supabaseKey=null,this.restUrl=null,this.realtimeUrl=null,this.authUrl=null,this.schema=\"public\",this.subscriptions={},this.tableName=null,this.queryFilters=[],c.schema&&(this.schema=c.schema),this.authenticate(a,b),this.auth=new d.Auth(this.authUrl,b,{autoRefreshToken:c.autoRefreshToken})}/**\n * General Functionalities\n */authenticate(a,b){this.supabaseUrl=a,this.supabaseKey=b,this.restUrl=\"\".concat(a,\"/rest/v1\"),this.realtimeUrl=\"\".concat(a,\"/realtime/v1\").replace(\"http\",\"ws\"),this.authUrl=\"\".concat(a,\"/auth/v1\")}clear(){this.tableName=null,this.queryFilters=[]}from(a){return this.tableName=a,this}/**\n * Realtime Functionalities\n */on(a,d){var e=(0,b.uuid)();return this.subscriptions[e]=new c.default(this.tableName,this.realtimeUrl,this.schema,this.supabaseKey,e,a,d,this.queryFilters),this.clear(),this.subscriptions[e]}getSubscriptions(){return Object.values(this.subscriptions)}removeSubscription(a){a.unsubscribe(),delete this.subscriptions[a.uuid]}/**\n * REST Functionalities\n */rpc(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:null,c=new e.PostgrestClient(this.restUrl,{headers:{apikey:this.supabaseKey},schema:this.schema});return c.rpc(a,b)}initClient(){var a={apikey:this.supabaseKey};this.auth.accessToken&&(a.Authorization=\"Bearer \".concat(this.auth.accessToken));var b=new e.PostgrestClient(this.restUrl,{headers:a,schema:this.schema}),c=b.from(this.tableName);return this.queryFilters.forEach(a=>{switch(a.filter){case\"filter\":c.filter(a.columnName,a.operator,a.criteria);break;case\"match\":c.match(a.query);break;case\"order\":c.order(a.property,a.ascending,a.nullsFirst);break;case\"range\":c.range(a.from,a.to);break;case\"single\":c.single();break;default:}}),this.clear(),c}select(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:\"*\",b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=this.initClient();return c.select(a,b)}insert(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=this.initClient();return c.insert(a,b)}update(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=this.initClient();return c.update(a,b)}delete(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=this.initClient();return b.delete(a)}filter(a,b,c){return this.queryFilters.push({filter:\"filter\",columnName:a,operator:b,criteria:c}),this}match(a){return this.queryFilters.push({filter:\"match\",query:a}),this}order(a){var b=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],c=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];return this.queryFilters.push({filter:\"order\",property:a,ascending:b,nullsFirst:c}),this}range(a,b){return this.queryFilters.push({filter:\"range\",from:a,to:b}),this}single(){return this.queryFilters.push({filter:\"single\"}),this}}// pre-empts if any of the filters are used before select\n[\"eq\",\"neq\",\"gt\",\"lt\",\"gte\",\"lte\",\"like\",\"ilike\",\"is\",\"in\",\"cs\",\"cd\",\"ova\",\"ovr\",\"sl\",\"sr\",\"nxr\",\"nxl\",\"adj\"].forEach(a=>g.prototype[a]=function(b,c){return this.filter(b,a,c)});a.createClient=function createClient(a,b){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{};return new g(a,b,c)}});\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/lib/index.js?");
/***/ }),
/***/ "../../../supabase-js/lib/utils/ChangeMapper.js":
/*!*****************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/lib/utils/ChangeMapper.js ***!
\*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(a,b){if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (b),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else { var c; }})(\"undefined\"==typeof globalThis?\"undefined\"==typeof self?this:self:globalThis,function(a){\"use strict\";Object.defineProperty(a,\"__esModule\",{value:!0}),a.toTimestampString=a.toArray=a.toJson=a.toIntRange=a.toInt=a.toFloat=a.toDateRange=a.toDate=a.toBoolean=a.noop=a.convertCell=a.convertColumn=a.convertChangeData=void 0;a.convertChangeData=function convertChangeData(a,c){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e={},f=\"undefined\"==typeof d.skipTypes?[]:d.skipTypes;return Object.entries(c).map((d)=>{var[g,h]=d;e[g]=b(g,a,c,f)}),e};/**\n * Converts the value of an individual column\n * @param {String} columnName The column that you want to convert\n * @param {{name: String, type: String}[]} columns All of the columns\n * @param {Object} records The map of string values\n * @param {Array} skipTypes An array of types that should not be converted\n * @return {object} Useless information\n *\n * @example convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n * //=> 33\n * @example convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], ['int4'])\n * //=> \"33\"\n */var b=(a,b,e,f)=>{var g=b.find(b=>b.name==a);return f.includes(g.type)?d(e[a]):c(g.type,e[a])};/**\n * If the value of the cell is `null`, returns null.\n * Otherwise converts the string value to the correct type.\n * @param {String} type A postgres column type\n * @param {String} stringValue The cell value\n *\n * @example convertCell('bool', 'true')\n * //=> true\n * @example convertCell('int8', '10')\n * //=> 10\n * @example convertCell('_int4', '{1,2,3,4}')\n * //=> [1,2,3,4]\n */a.convertColumn=b;var c=(a,b)=>{try{if(null===b)return null;// if data type is an array\nif(\"_\"===a.charAt(0)){var c=a.slice(1,a.length);return k(b,c)}// If not null, convert to correct type.\nreturn\"abstime\"===a?d(b):\"bool\"===a?e(b):\"date\"===a?d(b):\"daterange\"===a?f(b):\"float4\"===a?g(b):\"float8\"===a?g(b):\"int2\"===a?h(b):\"int4\"===a?h(b):\"int4range\"===a?i(b):\"int8\"===a?h(b):\"int8range\"===a?i(b):\"json\"===a?j(b):\"jsonb\"===a?j(b):\"money\"===a?g(b):\"numeric\"===a?g(b):\"oid\"===a?h(b):\"reltime\"===a?d(b):\"time\"===a?d(b):\"timestamp\"===a?l(b):\"timestamptz\"===a?d(b):\"timetz\"===a?d(b):\"tsrange\"===a?f(b):\"tstzrange\"===a?f(b):d(b)}catch(c){return console.log(\"Could not convert cell of type \".concat(a,\" and value \").concat(b)),console.log(\"This is the error: \".concat(c)),b}};a.convertCell=c;var d=a=>a;a.noop=d;var e=a=>\"t\"===a||\"f\"!==a&&null;a.toBoolean=e;a.toDate=a=>new Date(a);var f=a=>{var b=JSON.parse(a);return[new Date(b[0]),new Date(b[1])]};a.toDateRange=f;var g=a=>parseFloat(a);a.toFloat=g;var h=a=>parseInt(a);a.toInt=h;var i=a=>{var b=JSON.parse(a);return[parseInt(b[0]),parseInt(b[1])]};a.toIntRange=i;var j=a=>JSON.parse(a);/**\n * Converts a Postgres Array into a native JS array\n * @example toArray('{1,2,3,4}', 'int4')\n * //=> [1,2,3,4]\n * @example toArray('{}', 'int4')\n * //=> []\n */a.toJson=j;var k=(a,b)=>{// this takes off the '{' & '}'\nvar d=a.slice(1,a.length-1),e=0<d.length?d.split(\",\"):[],f=e.map(a=>c(b,a));// converts the string into an array\n// if string is empty (meaning the array was empty), an empty array will be immediately returned\nreturn f};/**\n * Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\n * See https://github.com/supabase/supabase/issues/18\n * @returns {string}\n * @example toTimestampString('2019-09-10 00:00:00')\n * //=> '2019-09-10T00:00:00'\n */a.toArray=k;var l=a=>a.replace(\" \",\"T\");a.toTimestampString=l});\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/lib/utils/ChangeMapper.js?");
/***/ }),
/***/ "../../../supabase-js/lib/utils/Helpers.js":
/*!************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/lib/utils/Helpers.js ***!
\************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(a,b){if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (b),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else { var c; }})(\"undefined\"==typeof globalThis?\"undefined\"==typeof self?this:self:globalThis,function(a){\"use strict\";Object.defineProperty(a,\"__esModule\",{value:!0}),a.uuid=function(){function a(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return a()+a()+\"-\"+a()+\"-\"+a()+\"-\"+a()+\"-\"+a()+a()+a()}});\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/lib/utils/Helpers.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@babel/runtime/helpers/asyncToGenerator.js":
/*!***********************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
\***********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@babel/runtime/helpers/asyncToGenerator.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@babel/runtime/helpers/interopRequireDefault.js":
/*!****************************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
\****************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@babel/runtime/helpers/interopRequireDefault.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@babel/runtime/helpers/interopRequireWildcard.js":
/*!*****************************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@babel/runtime/helpers/interopRequireWildcard.js ***!
\*****************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var _typeof = __webpack_require__(/*! ../helpers/typeof */ \"../../../supabase-js/node_modules/@babel/runtime/helpers/typeof.js\");\n\nfunction _getRequireWildcardCache() {\n if (typeof WeakMap !== \"function\") return null;\n var cache = new WeakMap();\n\n _getRequireWildcardCache = function _getRequireWildcardCache() {\n return cache;\n };\n\n return cache;\n}\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n }\n\n if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") {\n return {\n \"default\": obj\n };\n }\n\n var cache = _getRequireWildcardCache();\n\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n\n newObj[\"default\"] = obj;\n\n if (cache) {\n cache.set(obj, newObj);\n }\n\n return newObj;\n}\n\nmodule.exports = _interopRequireWildcard;\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@babel/runtime/helpers/interopRequireWildcard.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@babel/runtime/helpers/typeof.js":
/*!*************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@babel/runtime/helpers/typeof.js ***!
\*************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@babel/runtime/helpers/typeof.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/postgrest-js/lib/Builder.js":
/*!******************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/postgrest-js/lib/Builder.js ***!
\******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("var _Request=_interopRequireDefault(__webpack_require__(/*! ./Request */ \"../../../supabase-js/node_modules/@supabase/postgrest-js/lib/Request.js\"));Object.defineProperty(exports,\"__esModule\",{value:!0}),exports[\"default\"]=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError(\"Cannot call a class as a function\")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,\"value\"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}/**\n * Allows the user to stack the filter functions before they call any of\n *\n * select() - \"get\"\n *\n * insert() - \"post\"\n *\n * update() - \"patch\"\n *\n * delete() - \"delete\"\n *\n * Once any of these are called the filters are passed down to the Request\n *\n * @class\n * @param {string} url The full URL\n */var Builder=/*#__PURE__*/function(){function a(b){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=2<arguments.length?arguments[2]:void 0;_classCallCheck(this,a),this.url=b,this.queryFilters=[],this.headers=c,this.schema=d}return _createClass(a,[{key:\"request\",value:function request(a){return this.schema&&(\"GET\"==a?this.headers[\"Accept-Profile\"]=this.schema:this.headers[\"Content-Profile\"]=this.schema),new _Request[\"default\"](a,this.url,this.headers)}},{key:\"addFilters\",value:function addFilters(a){this.queryFilters.forEach(function(b){switch(b.filter){case\"filter\":a.filter(b.columnName,b.operator,b.criteria);break;case\"not\":a.not(b.columnName,b.operator,b.criteria);break;case\"match\":a.match(b.query);break;case\"order\":a.order(b.columnName,b.ascending,b.nullsFirst);break;case\"limit\":a.limit(b.criteria,b.columnName);break;case\"offset\":a.offset(b.criteria,b.columnName);break;case\"range\":a.range(b.from,b.to);break;case\"single\":a.single();break;default:}})}},{key:\"filter\",value:function filter(a,b,c){return this.queryFilters.push({filter:\"filter\",columnName:a,operator:b,criteria:c}),this}},{key:\"not\",value:function not(a,b,c){return this.queryFilters.push({filter:\"not\",columnName:a,operator:b,criteria:c}),this}},{key:\"match\",value:function match(a){return this.queryFilters.push({filter:\"match\",query:a}),this}},{key:\"order\",value:function order(a){var b=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],c=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];return this.queryFilters.push({filter:\"order\",columnName:a,ascending:b,nullsFirst:c}),this}},{key:\"limit\",value:function limit(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return this.queryFilters.push({filter:\"limit\",criteria:a,columnName:b}),this}},{key:\"offset\",value:function offset(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return this.queryFilters.push({filter:\"offset\",columnName:b,criteria:a}),this}},{key:\"range\",value:function range(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return this.queryFilters.push({filter:\"range\",from:a,to:b}),this}},{key:\"single\",value:function single(){return this.queryFilters.push({filter:\"single\"}),this}/**\n * Start a \"GET\" request\n */},{key:\"select\",value:function select(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:\"*\",b=this.request(\"GET\");return b.select(a),this.addFilters(b),b}/**\n * Start a \"POST\" request\n */},{key:\"insert\",value:function insert(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{upsert:!1},c=this.request(\"POST\"),d=b.upsert?\"return=representation,resolution=merge-duplicates\":\"return=representation\";return c.set(\"Prefer\",d),c.send(a),this.addFilters(c),c}/**\n * Start a \"PATCH\" request\n */},{key:\"update\",value:function update(a){var b=this.request(\"PATCH\");return Array.isArray(a)?{body:null,status:400,statusCode:400,statusText:\"Data type should be an object.\"}:(b.set(\"Prefer\",\"return=representation\"),b.send(a),this.addFilters(b),b)}/**\n * Start a \"DELETE\" request\n */},{key:\"delete\",value:function _delete(){var a=this.request(\"DELETE\");return this.addFilters(a),a}}]),a}(),advancedFilters=[\"eq\",\"neq\",\"gt\",\"lt\",\"gte\",\"lte\",\"like\",\"ilike\",\"is\",\"in\",\"fts\",\"plfts\",\"phfts\",\"wfts\",\"cs\",\"cd\",\"ova\",\"ovr\",\"sl\",\"sr\",\"nxr\",\"nxl\",\"adj\"];// pre-empts if any of the filters are used before select\nadvancedFilters.forEach(function(a){return Builder.prototype[a]=function(b,c){return this.filter(b,a,c),this}});var _default=Builder;exports[\"default\"]=_default;\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/postgrest-js/lib/Builder.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/postgrest-js/lib/Request.js":
/*!******************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/postgrest-js/lib/Request.js ***!
\******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("Object.defineProperty(exports,\"__esModule\",{value:!0}),exports[\"default\"]=void 0;var _superagent=__webpack_require__(/*! superagent */ \"../../../supabase-js/node_modules/superagent/lib/client.js\"),Filters=_interopRequireWildcard(__webpack_require__(/*! ./utils/Filters */ \"../../../supabase-js/node_modules/@supabase/postgrest-js/lib/utils/Filters.js\")),Helpers=_interopRequireWildcard(__webpack_require__(/*! ./utils/Helpers */ \"../../../supabase-js/node_modules/@supabase/postgrest-js/lib/utils/Helpers.js\"));function _getRequireWildcardCache(){if(\"function\"!=typeof WeakMap)return null;var a=new WeakMap;return _getRequireWildcardCache=function(){return a},a}function _interopRequireWildcard(a){if(a&&a.__esModule)return a;if(null===a||\"object\"!==_typeof(a)&&\"function\"!=typeof a)return{default:a};var b=_getRequireWildcardCache();if(b&&b.has(a))return b.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var f=d?Object.getOwnPropertyDescriptor(a,e):null;f&&(f.get||f.set)?Object.defineProperty(c,e,f):c[e]=a[e]}return c[\"default\"]=a,b&&b.set(a,c),c}function _typeof(a){\"@babel/helpers - typeof\";return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&\"function\"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?\"symbol\":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError(\"Cannot call a class as a function\")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,\"value\"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}function _get(a,b,c){return _get=\"undefined\"!=typeof Reflect&&Reflect.get?Reflect.get:function(a,b,c){var d=_superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},_get(a,b,c||a)}function _superPropBase(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=_getPrototypeOf(a),null!==a););return a}function _inherits(a,b){if(\"function\"!=typeof b&&null!==b)throw new TypeError(\"Super expression must either be null or a function\");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),b&&_setPrototypeOf(a,b)}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _createSuper(a){return function(){var b,c=_getPrototypeOf(a);if(_isNativeReflectConstruct()){var d=_getPrototypeOf(this).constructor;b=Reflect.construct(c,arguments,d)}else b=c.apply(this,arguments);return _possibleConstructorReturn(this,b)}}function _possibleConstructorReturn(a,b){return b&&(\"object\"===_typeof(b)||\"function\"==typeof b)?b:_assertThisInitialized(a)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return a}function _isNativeReflectConstruct(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}var contentRangeStructure=/^(\\d+)-(\\d+)\\/(\\d+)$/,Request=/*#__PURE__*/function(a){function b(a,d){var e,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(_classCallCheck(this,b),e=c.call(this,a,d),e.set(\"Accept\",\"application/json\"),{}!=f)for(var g in f)e.set(g,f[g]);// Fix for superagent disconnect on client & server.\nreturn e.get||(e.get=e.getHeader),e}/**\n * Set auth using special formats. If only one string parameter is passed, it\n * is interpreted as a bearer token. If an object and nothing else is passed,\n * `user` and `pass` keys are extracted from it and used for basic auth.\n *\n * @param {string|object} user The user, bearer token, or user/pass object.\n * @param {string|void} pass The pass or undefined.\n * @returns {Request} The API request object.\n */_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:\"auth\",value:function auth(a,c){return\"string\"==typeof a&&null==c?(this.set(\"Authorization\",\"Bearer \".concat(a)),this):(\"object\"===_typeof(a)&&null==c&&(c=a.pass,a=a.user),_get(_getPrototypeOf(b.prototype),\"auth\",this).call(this,a,c))}/**\n * Generic filter method.\n * @param {string} columnName The name of the column.\n * @param {string} filter The type of filter\n * @param { object | array | string | integer | boolean | null } criteria The value of the column to be filtered.\n * @name filter\n * @function\n * @memberOf module:Filters\nLine truncated
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/postgrest-js/lib/index.js":
/*!****************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/postgrest-js/lib/index.js ***!
\****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("function _typeof(a){\"@babel/helpers - typeof\";return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&\"function\"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?\"symbol\":typeof a},_typeof(a)}Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.PostgrestClient=void 0;var _Builder=_interopRequireDefault(__webpack_require__(/*! ./Builder */ \"../../../supabase-js/node_modules/@supabase/postgrest-js/lib/Builder.js\")),_Request=_interopRequireDefault(__webpack_require__(/*! ./Request */ \"../../../supabase-js/node_modules/@supabase/postgrest-js/lib/Request.js\")),Helpers=_interopRequireWildcard(__webpack_require__(/*! ./utils/Helpers */ \"../../../supabase-js/node_modules/@supabase/postgrest-js/lib/utils/Helpers.js\"));function _getRequireWildcardCache(){if(\"function\"!=typeof WeakMap)return null;var a=new WeakMap;return _getRequireWildcardCache=function(){return a},a}function _interopRequireWildcard(a){if(a&&a.__esModule)return a;if(null===a||\"object\"!==_typeof(a)&&\"function\"!=typeof a)return{default:a};var b=_getRequireWildcardCache();if(b&&b.has(a))return b.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var f=d?Object.getOwnPropertyDescriptor(a,e):null;f&&(f.get||f.set)?Object.defineProperty(c,e,f):c[e]=a[e]}return c[\"default\"]=a,b&&b.set(a,c),c}function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError(\"Cannot call a class as a function\")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,\"value\"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}var PostgrestClient=/*#__PURE__*/function(){function a(b){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,a),this.restUrl=b,this.headers={},this.queryString=null,this.schema=null,c.headers&&(this.headers=c.headers),c.queryParams&&(this.queryString=Helpers.objectToQueryString(c.queryParams)),c.schema&&(this.schema=c.schema)}return _createClass(a,[{key:\"from\",value:function from(a){var b=\"\".concat(this.restUrl,\"/\").concat(a);return this.queryString&&(b+=\"?\".concat(this.queryString)),new _Builder[\"default\"](b,this.headers,this.schema)}},{key:\"rpc\",value:function rpc(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,c=\"\".concat(this.restUrl,\"/rpc/\").concat(a),d=this.headers;this.queryString&&(c+=\"?\".concat(this.queryString)),this.schema&&(d[\"Content-Profile\"]=this.schema,d[\"Accept-Profile\"]=this.schema);var e=new _Request[\"default\"](\"post\",c,d);return null!=b&&e.send(b),e}}]),a}();exports.PostgrestClient=PostgrestClient;\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/postgrest-js/lib/index.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/postgrest-js/lib/utils/Filters.js":
/*!************************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/postgrest-js/lib/utils/Filters.js ***!
\************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("var Helpers=_interopRequireWildcard(__webpack_require__(/*! ./Helpers */ \"../../../supabase-js/node_modules/@supabase/postgrest-js/lib/utils/Helpers.js\"));function _typeof(a){\"@babel/helpers - typeof\";return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&\"function\"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?\"symbol\":typeof a},_typeof(a)}Object.defineProperty(exports,\"__esModule\",{value:!0}),exports._eq=_eq,exports._gt=_gt,exports._lt=_lt,exports._gte=_gte,exports._lte=_lte,exports._like=_like,exports._ilike=_ilike,exports._is=_is,exports._in=_in,exports._neq=_neq,exports._fts=_fts,exports._plfts=_plfts,exports._phfts=_phfts,exports._wfts=_wfts,exports._cs=_cs,exports._cd=_cd,exports._ova=_ova,exports._ovr=_ovr,exports._sl=_sl,exports._sr=_sr,exports._nxl=_nxl,exports._nxr=_nxr,exports._adj=_adj;function _getRequireWildcardCache(){if(\"function\"!=typeof WeakMap)return null;var a=new WeakMap;return _getRequireWildcardCache=function(){return a},a}function _interopRequireWildcard(a){if(a&&a.__esModule)return a;if(null===a||\"object\"!==_typeof(a)&&\"function\"!=typeof a)return{default:a};var b=_getRequireWildcardCache();if(b&&b.has(a))return b.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var f=d?Object.getOwnPropertyDescriptor(a,e):null;f&&(f.get||f.set)?Object.defineProperty(c,e,f):c[e]=a[e]}return c[\"default\"]=a,b&&b.set(a,c),c}/** @module Filters **/ /**\n * All exports are prefixed with an underscore to avoid collisions with reserved keywords (eg: \"in\")\n */ /**\n * Finds all rows whose value on the stated columnName exactly matches the specified filterValue.\n * @param {string} columnName Name of the database column\n * @param { string | integer | boolean } filterValue Value to match\n * @name eq\n * @function\n * @returns {string}\n * \n * @example\n * _eq('name', 'New Zealand')\n * //=>\n * 'name=eq.New Zealand'\n */function _eq(a,b){return\"\".concat(a,\"=eq.\").concat(b)}/**\n * Finds all rows whose value on the stated columnName is greater than the specified filterValue. \n * @param {string} columnName Name of the database column\n * @param { string | integer | boolean } filterValue Value to match\n * @name gt\n * @function\n * @returns {string}\n * \n * @example\n * _gt('id', 20)\n * //=>\n * 'id=gt.20'\n */function _gt(a,b){return\"\".concat(a,\"=gt.\").concat(b)}/**\n * Finds all rows whose value on the stated columnName is less than the specified filterValue. \n * @param {string} columnName Name of the database column\n * @param { string | integer | boolean } filterValue Value to match\n * @name lt\n * @function\n * @returns {string}\n * \n * @example\n * _lt('id', 20)\n * //=>\n * 'id=lt.20'\n */function _lt(a,b){return\"\".concat(a,\"=lt.\").concat(b)}/**\n * Finds all rows whose value on the stated columnName is greater than or equal to the specified filterValue. \n * @param {string} columnName Name of the database column\n * @param { string | integer | boolean } filterValue Value to match\n * @name gte\n * @function\n * @returns {string}\n * \n * @example\n * _gte('id', 20)\n * //=>\n * 'id=gte.20'\n */function _gte(a,b){return\"\".concat(a,\"=gte.\").concat(b)}/**\n * Finds all rows whose value on the stated columnName is less than or equal to the specified filterValue. \n * @param {string} columnName Name of the database column\n * @param { string | integer | boolean } filterValue Value to match\n * @name lte\n * @function\n * @returns {string}\n * \n * @example\n * _lte('id', 20)\n * //=>\n * 'id=lte.20'\n */function _lte(a,b){return\"\".concat(a,\"=lte.\").concat(b)}/**\n * Finds all rows whose value in the stated columnName matches the supplied pattern (case sensitive). \n * @param {string} columnName Name of the database column\n * @param { string } stringPattern String pattern to compare to\n * @name like\n * @function\n * @returns {string}\n * \n * @example\n * _like('name', '%United%')\n * //=>\n * 'name=like.*United*'\n * \n * @example\n * _like('name', '%United States%')\n * //=>\n * 'name=like.*United States*'\n */function _like(a,b){var c=b.replace(/%/g,\"*\");return\"\".concat(a,\"=like.\").concat(c)}/**\n * Finds all rows whose value in the stated columnName matches the supplied pattern (case insensitive). \n * @param {string} columnName Name of the database column\n * @param { string } stringPattern String pattern to compare to\n * @name ilike\n * @function\n * @returns {string}\n * \n * @example\n * _ilike('name', '%United%')\n * //=>\n * 'name=ilike.*United*'\n * \n * @example\n * _ilike('name', '%United states%')\n * //=>\n * 'name=ilike.*United states*'\n */function _ilike(a,b){var c=b.replace(/%/g,\"*\");return\"\".concat(a,\"=ilike.\").concat(c)}/**\n * A check for exact equality (null, true, false), finds all rows whose value on the state columnName exactly match the spLine truncated
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/postgrest-js/lib/utils/Helpers.js":
/*!************************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/postgrest-js/lib/utils/Helpers.js ***!
\************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.objectToQueryString=objectToQueryString,exports.cleanFilterArray=cleanFilterArray,exports.cleanColumnName=cleanColumnName;/**\n * @param {object} obj\n * @private\n * @returns {string}\n */function objectToQueryString(a){return Object.keys(a).map(function(b){return\"\".concat(b,\"=\").concat(a[b])}).join(\"&\")}function cleanFilterArray(a){var b=a.map(function(a){var b;return b=\"string\"==typeof a&&(a.includes(\",\")||a.includes(\"(\")||a.includes(\")\"))?\"\\\"\".concat(a,\"\\\"\"):a,b});return b}function cleanColumnName(a){var b=a,c=null;return a.includes(\".\")&&(b=a.split(\".\")[1],c=a.split(\".\")[0]),{cleanedColumnName:b,foreignTableName:c}}\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/postgrest-js/lib/utils/Helpers.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/realtime-js/src/channel.js":
/*!*****************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/channel.js ***!
\*****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("const { CHANNEL_EVENTS, CHANNEL_STATES } = __webpack_require__(/*! ./constants */ \"../../../supabase-js/node_modules/@supabase/realtime-js/src/constants.js\")\nconst Push = __webpack_require__(/*! ./push */ \"../../../supabase-js/node_modules/@supabase/realtime-js/src/push.js\")\nconst Timer = __webpack_require__(/*! ./timer */ \"../../../supabase-js/node_modules/@supabase/realtime-js/src/timer.js\")\n\nclass Channel {\n constructor(topic, params, socket) {\n this.state = CHANNEL_STATES.closed\n this.topic = topic\n this.params = params || {}\n this.socket = socket\n this.bindings = []\n this.timeout = this.socket.timeout\n this.joinedOnce = false\n this.joinPush = new Push(this, CHANNEL_EVENTS.join, this.params, this.timeout)\n this.pushBuffer = []\n this.rejoinTimer = new Timer(\n () => this.rejoinUntilConnected(),\n this.socket.reconnectAfterMs\n )\n this.joinPush.receive(\"ok\", () => {\n this.state = CHANNEL_STATES.joined\n this.rejoinTimer.reset()\n this.pushBuffer.forEach( pushEvent => pushEvent.send() )\n this.pushBuffer = []\n })\n this.onClose( () => {\n this.rejoinTimer.reset()\n this.socket.log(\"channel\", `close ${this.topic} ${this.joinRef()}`)\n this.state = CHANNEL_STATES.closed\n this.socket.remove(this)\n })\n this.onError( reason => { if(this.isLeaving() || this.isClosed()){ return }\n this.socket.log(\"channel\", `error ${this.topic}`, reason)\n this.state = CHANNEL_STATES.errored\n this.rejoinTimer.scheduleTimeout()\n })\n this.joinPush.receive(\"timeout\", () => { if(!this.isJoining()){ return }\n this.socket.log(\"channel\", `timeout ${this.topic}`, this.joinPush.timeout)\n this.state = CHANNEL_STATES.errored\n this.rejoinTimer.scheduleTimeout()\n })\n this.on(CHANNEL_EVENTS.reply, (payload, ref) => {\n this.trigger(this.replyEventName(ref), payload)\n })\n }\n\n rejoinUntilConnected(){\n this.rejoinTimer.scheduleTimeout()\n if(this.socket.isConnected()){\n this.rejoin()\n }\n }\n\n join(timeout = this.timeout){\n if(this.joinedOnce){\n throw(`tried to join multiple times. 'join' can only be called a single time per channel instance`)\n } else {\n this.joinedOnce = true\n this.rejoin(timeout)\n return this.joinPush\n }\n }\n\n onClose(callback){ this.on(CHANNEL_EVENTS.close, callback) }\n\n onError(callback){\n this.on(CHANNEL_EVENTS.error, reason => callback(reason) )\n }\n\n on(event, callback){ this.bindings.push({event, callback}) }\n\n off(event){ this.bindings = this.bindings.filter( bind => bind.event !== event ) }\n\n canPush(){ return this.socket.isConnected() && this.isJoined() }\n\n push(event, payload, timeout = this.timeout){\n if(!this.joinedOnce){\n throw(`tried to push '${event}' to '${this.topic}' before joining. Use channel.join() before pushing events`)\n }\n let pushEvent = new Push(this, event, payload, timeout)\n if(this.canPush()){\n pushEvent.send()\n } else {\n pushEvent.startTimeout()\n this.pushBuffer.push(pushEvent)\n }\n\n return pushEvent\n }\n\n // Leaves the channel\n //\n // Unsubscribes from server events, and\n // instructs channel to terminate on server\n //\n // Triggers onClose() hooks\n //\n // To receive leave acknowledgements, use the a `receive`\n // hook to bind to the server ack, ie:\n //\n // channel.leave().receive(\"ok\", () => alert(\"left!\") )\n //\n leave(timeout = this.timeout){\n this.state = CHANNEL_STATES.leaving\n let onClose = () => {\n this.socket.log(\"channel\", `leave ${this.topic}`)\n this.trigger(CHANNEL_EVENTS.close, \"leave\", this.joinRef())\n }\n let leavePush = new Push(this, CHANNEL_EVENTS.leave, {}, timeout)\n leavePush.receive(\"ok\", () => onClose() )\n .receive(\"timeout\", () => onClose() )\n leavePush.send()\n if(!this.canPush()){ leavePush.trigger(\"ok\", {}) }\n\n return leavePush\n }\n\n // Overridable message hook\n //\n // Receives all events for specialized message handling\n // before dispatching to the channel callbacks.\n //\n // Must return the payload, modified or unmodified\n onMessage(event, payload, ref){ return payload }\n\n // private\n\n isMember(topic){ return this.topic === topic }\n\n joinRef(){ return this.joinPush.ref }\n\n sendJoin(timeout){\n this.state = CHANNEL_STATES.joining\n this.joinPush.resend(timeout)\n }\n\n rejoin(timeout = this.timeout){ if(this.isLeaving()){ return }\n this.sendJoin(timeout)\n }\n\n trigger(event, payload, ref){\n let {close, error, leave, join} = CHANNEL_EVENTS\n if(ref && [close, error, leave, join].indexOf(event) >= 0 && ref !== this.joinRef()){\n return\n }\n let handledPayload = this.onMessage(event, payload, ref)\n if(payload && !handledPayload){ throw(\"channLine truncated
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/realtime-js/src/constants.js":
/*!*******************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/constants.js ***!
\*******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = {\n VSN: \"1.0.0\",\n SOCKET_STATES: {connecting: 0, open: 1, closing: 2, closed: 3},\n DEFAULT_TIMEOUT: 10000,\n WS_CLOSE_NORMAL: 1000,\n CHANNEL_STATES: {\n closed: \"closed\",\n errored: \"errored\",\n joined: \"joined\",\n joining: \"joining\",\n leaving: \"leaving\",\n },\n CHANNEL_EVENTS: {\n close: \"phx_close\",\n error: \"phx_error\",\n join: \"phx_join\",\n reply: \"phx_reply\",\n leave: \"phx_leave\",\n },\n TRANSPORTS: {\n websocket: \"websocket\",\n },\n}\n\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/constants.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/realtime-js/src/index.js":
/*!***************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/index.js ***!
\***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("// Phoenix Channels JavaScript client\n//\n// ## Socket Connection\n//\n// A single connection is established to the server and\n// channels are multiplexed over the connection.\n// Connect to the server using the `Socket` class:\n//\n// let socket = new Socket(\"/socket\", {params: {userToken: \"123\"}})\n// socket.connect()\n//\n// The `Socket` constructor takes the mount point of the socket,\n// the authentication params, as well as options that can be found in\n// the Socket docs, such as configuring the heartbeat.\n//\n// ## Channels\n//\n// Channels are isolated, concurrent processes on the server that\n// subscribe to topics and broker events between the client and server.\n// To join a channel, you must provide the topic, and channel params for\n// authorization. Here's an example chat room example where `\"new_msg\"`\n// events are listened for, messages are pushed to the server, and\n// the channel is joined with ok/error/timeout matches:\n//\n// let channel = socket.channel(\"room:123\", {token: roomToken})\n// channel.on(\"new_msg\", msg => console.log(\"Got message\", msg) )\n// $input.onEnter( e => {\n// channel.push(\"new_msg\", {body: e.target.val}, 10000)\n// .receive(\"ok\", (msg) => console.log(\"created message\", msg) )\n// .receive(\"error\", (reasons) => console.log(\"create failed\", reasons) )\n// .receive(\"timeout\", () => console.log(\"Networking issue...\") )\n// })\n// channel.join()\n// .receive(\"ok\", ({messages}) => console.log(\"catching up\", messages) )\n// .receive(\"error\", ({reason}) => console.log(\"failed join\", reason) )\n// .receive(\"timeout\", () => console.log(\"Networking issue. Still waiting...\") )\n//\n//\n// ## Joining\n//\n// Creating a channel with `socket.channel(topic, params)`, binds the params to\n// `channel.params`, which are sent up on `channel.join()`.\n// Subsequent rejoins will send up the modified params for\n// updating authorization params, or passing up last_message_id information.\n// Successful joins receive an \"ok\" status, while unsuccessful joins\n// receive \"error\".\n//\n// ## Duplicate Join Subscriptions\n//\n// While the client may join any number of topics on any number of channels,\n// the client may only hold a single subscription for each unique topic at any\n// given time. When attempting to create a duplicate subscription,\n// the server will close the existing channel, log a warning, and\n// spawn a new channel for the topic. The client will have their\n// `channel.onClose` callbacks fired for the existing channel, and the new\n// channel join will have its receive hooks processed as normal.\n//\n// ## Pushing Messages\n//\n// From the previous example, we can see that pushing messages to the server\n// can be done with `channel.push(eventName, payload)` and we can optionally\n// receive responses from the push. Additionally, we can use\n// `receive(\"timeout\", callback)` to abort waiting for our other `receive` hooks\n// and take action after some period of waiting. The default timeout is 5000ms.\n//\n//\n// ## Socket Hooks\n//\n// Lifecycle events of the multiplexed connection can be hooked into via\n// `socket.onError()` and `socket.onClose()` events, ie:\n//\n// socket.onError( () => console.log(\"there was an error with the connection!\") )\n// socket.onClose( () => console.log(\"the connection dropped\") )\n//\n//\n// ## Channel Hooks\n//\n// For each joined channel, you can bind to `onError` and `onClose` events\n// to monitor the channel lifecycle, ie:\n//\n// channel.onError( () => console.log(\"there was an error!\") )\n// channel.onClose( () => console.log(\"the channel has gone away gracefully\") )\n//\n// ### onError hooks\n//\n// `onError` hooks are invoked if the socket connection drops, or the channel\n// crashes on the server. In either case, a channel rejoin is attempted\n// automatically in an exponential backoff manner.\n//\n// ### onClose hooks\n//\n// `onClose` hooks are invoked only in two cases. 1) the channel explicitly\n// closed on the server, or 2). The client explicitly closed, by calling\n// `channel.leave()`\n//\n//\n// ## Presence\n//\n// The `Presence` object provides features for syncing presence information\n// from the server with the client and handling presences joining and leaving.\n//\n// ### Syncing initial state from the server\n//\n// `Presence.syncState` is used to sync the list of presences on the server\n// with the client's state. An optional `onJoin` and `onLeave` callback can\n// be provided to react to changes in the client's local presences across\n// disconnects and reconnects with the server.\n//\n// `Presence.syncDiff` is used to sync a diff of presence join and leave\n// events from the server, as they happen. Like `syncState`, `syncDiff`\n// accepts optional `onJoin` and `onLeave` callbacks to react to a user\n// joining or leaving from a device.\n//\n// ### Listing Pre Line truncated
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/realtime-js/src/presence.js":
/*!******************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/presence.js ***!
\******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("var Presence = {\n\n syncState(currentState, newState, onJoin, onLeave){\n let state = this.clone(currentState)\n let joins = {}\n let leaves = {}\n\n this.map(state, (key, presence) => {\n if(!newState[key]){\n leaves[key] = presence\n }\n })\n this.map(newState, (key, newPresence) => {\n let currentPresence = state[key]\n if(currentPresence){\n let newRefs = newPresence.metas.map(m => m.phx_ref)\n let curRefs = currentPresence.metas.map(m => m.phx_ref)\n let joinedMetas = newPresence.metas.filter(m => curRefs.indexOf(m.phx_ref) < 0)\n let leftMetas = currentPresence.metas.filter(m => newRefs.indexOf(m.phx_ref) < 0)\n if(joinedMetas.length > 0){\n joins[key] = newPresence\n joins[key].metas = joinedMetas\n }\n if(leftMetas.length > 0){\n leaves[key] = this.clone(currentPresence)\n leaves[key].metas = leftMetas\n }\n } else {\n joins[key] = newPresence\n }\n })\n return this.syncDiff(state, {joins: joins, leaves: leaves}, onJoin, onLeave)\n },\n\n syncDiff(currentState, {joins, leaves}, onJoin, onLeave){\n let state = this.clone(currentState)\n if(!onJoin){ onJoin = function(){} }\n if(!onLeave){ onLeave = function(){} }\n\n this.map(joins, (key, newPresence) => {\n let currentPresence = state[key]\n state[key] = newPresence\n if(currentPresence){\n state[key].metas.unshift(...currentPresence.metas)\n }\n onJoin(key, currentPresence, newPresence)\n })\n this.map(leaves, (key, leftPresence) => {\n let currentPresence = state[key]\n if(!currentPresence){ return }\n let refsToRemove = leftPresence.metas.map(m => m.phx_ref)\n currentPresence.metas = currentPresence.metas.filter(p => {\n return refsToRemove.indexOf(p.phx_ref) < 0\n })\n onLeave(key, currentPresence, leftPresence)\n if(currentPresence.metas.length === 0){\n delete state[key]\n }\n })\n return state\n },\n\n list(presences, chooser){\n if(!chooser){ chooser = function(key, pres){ return pres } }\n\n return this.map(presences, (key, presence) => {\n return chooser(key, presence)\n })\n },\n\n // private\n\n map(obj, func){\n return Object.getOwnPropertyNames(obj).map(key => func(key, obj[key]))\n },\n\n clone(obj){\n return JSON.parse(JSON.stringify(obj))\n },\n}\n\nmodule.exports = Presence\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/presence.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/realtime-js/src/push.js":
/*!**************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/push.js ***!
\**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("\nclass Push {\n\n // Initializes the Push\n //\n // channel - The Channel\n // event - The event, for example `\"phx_join\"`\n // payload - The payload, for example `{user_id: 123}`\n // timeout - The push timeout in milliseconds\n //\n constructor(channel, event, payload, timeout){\n this.channel = channel\n this.event = event\n this.payload = payload || {}\n this.receivedResp = null\n this.timeout = timeout\n this.timeoutTimer = null\n this.recHooks = []\n this.sent = false\n }\n\n resend(timeout){\n this.timeout = timeout\n this.cancelRefEvent()\n this.ref = null\n this.refEvent = null\n this.receivedResp = null\n this.sent = false\n this.send()\n }\n\n send(){ if(this.hasReceived(\"timeout\")){ return }\n this.startTimeout()\n this.sent = true\n this.channel.socket.push({\n topic: this.channel.topic,\n event: this.event,\n payload: this.payload,\n ref: this.ref,\n })\n }\n\n receive(status, callback){\n if(this.hasReceived(status)){\n callback(this.receivedResp.response)\n }\n\n this.recHooks.push({status, callback})\n return this\n }\n\n\n // private\n\n matchReceive({status, response, ref}){\n this.recHooks.filter( h => h.status === status )\n .forEach( h => h.callback(response) )\n }\n\n cancelRefEvent(){ if(!this.refEvent){ return }\n this.channel.off(this.refEvent)\n }\n\n cancelTimeout(){\n clearTimeout(this.timeoutTimer)\n this.timeoutTimer = null\n }\n\n startTimeout(){ if(this.timeoutTimer){ return }\n this.ref = this.channel.socket.makeRef()\n this.refEvent = this.channel.replyEventName(this.ref)\n\n this.channel.on(this.refEvent, payload => {\n this.cancelRefEvent()\n this.cancelTimeout()\n this.receivedResp = payload\n this.matchReceive(payload)\n })\n\n this.timeoutTimer = setTimeout(() => {\n this.trigger(\"timeout\", {})\n }, this.timeout)\n }\n\n hasReceived(status){\n return this.receivedResp && this.receivedResp.status === status\n }\n\n trigger(status, response){\n this.channel.trigger(this.refEvent, {status, response})\n }\n}\n\nmodule.exports = Push\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/push.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/realtime-js/src/socket.js":
/*!****************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/socket.js ***!
\****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("const {\n VSN,\n CHANNEL_EVENTS,\n TRANSPORTS,\n SOCKET_STATES,\n DEFAULT_TIMEOUT,\n WS_CLOSE_NORMAL ,\n} = __webpack_require__(/*! ./constants */ \"../../../supabase-js/node_modules/@supabase/realtime-js/src/constants.js\")\n\nconst querystring = __webpack_require__(/*! query-string */ \"../../../supabase-js/node_modules/query-string/index.js\")\nconst WebSocket = __webpack_require__(/*! websocket */ \"../../../supabase-js/node_modules/websocket/lib/browser.js\").w3cwebsocket\nconst Timer = __webpack_require__(/*! ./timer */ \"../../../supabase-js/node_modules/@supabase/realtime-js/src/timer.js\")\nconst Channel = __webpack_require__(/*! ./channel */ \"../../../supabase-js/node_modules/@supabase/realtime-js/src/channel.js\")\n\nclass Socket {\n\n // Initializes the Socket\n //\n // endPoint - The string WebSocket endpoint, ie, \"ws://example.com/socket\",\n // \"wss://example.com\"\n // \"/socket\" (inherited host & protocol)\n // opts - Optional configuration\n // transport - The Websocket Transport, for example WebSocket.\n //\n // encode - The function to encode outgoing messages. Defaults to JSON:\n //\n // (payload, callback) => callback(JSON.stringify(payload))\n //\n // decode - The function to decode incoming messages. Defaults to JSON:\n //\n // (payload, callback) => callback(JSON.parse(payload))\n //\n // timeout - The default timeout in milliseconds to trigger push timeouts.\n // Defaults `DEFAULT_TIMEOUT`\n // heartbeatIntervalMs - The millisec interval to send a heartbeat message\n // reconnectAfterMs - The optional function that returns the millsec\n // reconnect interval. Defaults to stepped backoff of:\n //\n // function(tries){\n // return [1000, 5000, 10000][tries - 1] || 10000\n // }\n //\n // logger - The optional function for specialized logging, ie:\n // `logger: (kind, msg, data) => { console.log(`${kind}: ${msg}`, data) }\n //\n // longpollerTimeout - The maximum timeout of a long poll AJAX request.\n // Defaults to 20s (double the server long poll timer).\n //\n // params - The optional params to pass when connecting\n //\n // For IE8 support use an ES5-shim (https://github.com/es-shims/es5-shim)\n //\n constructor(endPoint, opts = {}){\n // we would want to check if the provided endPoint comes along with any\n // query parameters\n\n this.stateChangeCallbacks = {open: [], close: [], error: [], message: []}\n this.channels = []\n this.sendBuffer = []\n this.ref = 0\n this.timeout = opts.timeout || DEFAULT_TIMEOUT\n this.transport = opts.transport || WebSocket\n this.defaultEncoder = (payload, callback) => callback(JSON.stringify(payload))\n this.defaultDecoder = (payload, callback) => callback(JSON.parse(payload))\n\n this.encode = opts.encode || this.defaultEncoder\n this.decode = opts.decode || this.defaultDecoder\n\n this.heartbeatIntervalMs = opts.heartbeatIntervalMs || 30000\n this.reconnectAfterMs = opts.reconnectAfterMs || function(tries){\n return [1000, 2000, 5000, 10000][tries - 1] || 10000\n }\n this.logger = opts.logger || function(){} // noop\n this.longpollerTimeout = opts.longpollerTimeout || 20000\n this.params = opts.params || {}\n this.headers = opts.headers || {}\n this.endPoint = `${endPoint}/${TRANSPORTS.websocket}`\n this.heartbeatTimer = null\n this.pendingHeartbeatRef = null\n this.reconnectTimer = new Timer(() => {\n this.disconnect(() => this.connect())\n }, this.reconnectAfterMs)\n }\n\n endPointURL(){\n return this.appendParams(this.endPoint, Object.assign({}, this.params, {vsn: VSN}))\n }\n\n appendParams(url, params){\n if(Object.keys(params).length === 0){ return url }\n\n let prefix = url.match(/\\?/) ? \"&\" : \"?\"\n return `${url}${prefix}${querystring.stringify(params)}`\n }\n\n disconnect(callback, code, reason){\n if(this.conn){\n this.conn.onclose = function(){} // noop\n if(code){ this.conn.close(code, reason || \"\") } else { this.conn.close() }\n this.conn = null\n }\n callback && callback()\n }\n\n connect(){\n if(this.conn){ return }\n\n this.conn = new this.transport(this.endPointURL(), [], null, this.headers)\n this.conn.timeout = this.longpollerTimeout\n this.conn.onopen = () => this.onConnOpen()\n this.conn.onerror = error => this.onConnError(error)\n this.conn.onmessage = event => this.onConnMessage(event)\n this.conn.onclose = event => this.onConnClose(event)\n }\n\n // Logs the message. Override `this.logger` for specialized logging. noops by default\n log(kind, msg, data){ this.logger(kind, Line truncated
/***/ }),
/***/ "../../../supabase-js/node_modules/@supabase/realtime-js/src/timer.js":
/*!***************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/timer.js ***!
\***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("\n// Creates a timer that accepts a `timerCalc` function to perform\n// calculated timeout retries, such as exponential backoff.\n//\n// ## Examples\n//\n// let reconnectTimer = new Timer(() => this.connect(), function(tries){\n// return [1000, 5000, 10000][tries - 1] || 10000\n// })\n// reconnectTimer.scheduleTimeout() // fires after 1000\n// reconnectTimer.scheduleTimeout() // fires after 5000\n// reconnectTimer.reset()\n// reconnectTimer.scheduleTimeout() // fires after 1000\n//\nclass Timer {\n constructor(callback, timerCalc){\n this.callback = callback\n this.timerCalc = timerCalc\n this.timer = null\n this.tries = 0\n }\n\n reset(){\n this.tries = 0\n clearTimeout(this.timer)\n }\n\n // Cancels any previous scheduleTimeout and schedules callback\n scheduleTimeout(){\n clearTimeout(this.timer)\n\n this.timer = setTimeout(() => {\n this.tries = this.tries + 1\n this.callback()\n }, this.timerCalc(this.tries + 1))\n }\n}\n\nmodule.exports = Timer\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js/src/timer.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/component-emitter/index.js":
/*!*******************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/component-emitter/index.js ***!
\*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("\r\n/**\r\n * Expose `Emitter`.\r\n */\r\n\r\nif (true) {\r\n module.exports = Emitter;\r\n}\r\n\r\n/**\r\n * Initialize a new `Emitter`.\r\n *\r\n * @api public\r\n */\r\n\r\nfunction Emitter(obj) {\r\n if (obj) return mixin(obj);\r\n};\r\n\r\n/**\r\n * Mixin the emitter properties.\r\n *\r\n * @param {Object} obj\r\n * @return {Object}\r\n * @api private\r\n */\r\n\r\nfunction mixin(obj) {\r\n for (var key in Emitter.prototype) {\r\n obj[key] = Emitter.prototype[key];\r\n }\r\n return obj;\r\n}\r\n\r\n/**\r\n * Listen on the given `event` with `fn`.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.on =\r\nEmitter.prototype.addEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\r\n .push(fn);\r\n return this;\r\n};\r\n\r\n/**\r\n * Adds an `event` listener that will be invoked a single\r\n * time then automatically removed.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.once = function(event, fn){\r\n function on() {\r\n this.off(event, on);\r\n fn.apply(this, arguments);\r\n }\r\n\r\n on.fn = fn;\r\n this.on(event, on);\r\n return this;\r\n};\r\n\r\n/**\r\n * Remove the given callback for `event` or all\r\n * registered callbacks.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.off =\r\nEmitter.prototype.removeListener =\r\nEmitter.prototype.removeAllListeners =\r\nEmitter.prototype.removeEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n\r\n // all\r\n if (0 == arguments.length) {\r\n this._callbacks = {};\r\n return this;\r\n }\r\n\r\n // specific event\r\n var callbacks = this._callbacks['$' + event];\r\n if (!callbacks) return this;\r\n\r\n // remove all handlers\r\n if (1 == arguments.length) {\r\n delete this._callbacks['$' + event];\r\n return this;\r\n }\r\n\r\n // remove specific handler\r\n var cb;\r\n for (var i = 0; i < callbacks.length; i++) {\r\n cb = callbacks[i];\r\n if (cb === fn || cb.fn === fn) {\r\n callbacks.splice(i, 1);\r\n break;\r\n }\r\n }\r\n\r\n // Remove event specific arrays for event types that no\r\n // one is subscribed for to avoid memory leak.\r\n if (callbacks.length === 0) {\r\n delete this._callbacks['$' + event];\r\n }\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Emit `event` with the given args.\r\n *\r\n * @param {String} event\r\n * @param {Mixed} ...\r\n * @return {Emitter}\r\n */\r\n\r\nEmitter.prototype.emit = function(event){\r\n this._callbacks = this._callbacks || {};\r\n\r\n var args = new Array(arguments.length - 1)\r\n , callbacks = this._callbacks['$' + event];\r\n\r\n for (var i = 1; i < arguments.length; i++) {\r\n args[i - 1] = arguments[i];\r\n }\r\n\r\n if (callbacks) {\r\n callbacks = callbacks.slice(0);\r\n for (var i = 0, len = callbacks.length; i < len; ++i) {\r\n callbacks[i].apply(this, args);\r\n }\r\n }\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Return array of callbacks for `event`.\r\n *\r\n * @param {String} event\r\n * @return {Array}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.listeners = function(event){\r\n this._callbacks = this._callbacks || {};\r\n return this._callbacks['$' + event] || [];\r\n};\r\n\r\n/**\r\n * Check if this emitter has `event` handlers.\r\n *\r\n * @param {String} event\r\n * @return {Boolean}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.hasListeners = function(event){\r\n return !! this.listeners(event).length;\r\n};\r\n\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/component-emitter/index.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/decode-uri-component/index.js":
/*!**********************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/decode-uri-component/index.js ***!
\**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\nvar token = '%[a-f0-9]{2}';\nvar singleMatcher = new RegExp(token, 'gi');\nvar multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn decodeURIComponent(components.join(''));\n\t} catch (err) {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tvar left = components.slice(0, split);\n\tvar right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch (err) {\n\t\tvar tokens = input.match(singleMatcher);\n\n\t\tfor (var i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher);\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tvar replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD'\n\t};\n\n\tvar match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch (err) {\n\t\t\tvar result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tvar entries = Object.keys(replaceMap);\n\n\tfor (var i = 0; i < entries.length; i++) {\n\t\t// Replace all decoded components\n\t\tvar key = entries[i];\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nmodule.exports = function (encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\tencodedURI = encodedURI.replace(/\\+/g, ' ');\n\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch (err) {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n};\n\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/decode-uri-component/index.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/es5-ext/global.js":
/*!**********************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/es5-ext/global.js ***!
\**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("var naiveFallback = function () {\n\tif (typeof self === \"object\" && self) return self;\n\tif (typeof window === \"object\" && window) return window;\n\tthrow new Error(\"Unable to resolve global `this`\");\n};\n\nmodule.exports = (function () {\n\tif (this) return this;\n\n\t// Unexpected strict mode (may happen if e.g. bundled into ESM module)\n\n\t// Fallback to standard globalThis if available\n\tif (typeof globalThis === \"object\" && globalThis) return globalThis;\n\n\t// Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis\n\t// In all ES5+ engines global object inherits from Object.prototype\n\t// (if you approached one that doesn't please report)\n\ttry {\n\t\tObject.defineProperty(Object.prototype, \"__global__\", {\n\t\t\tget: function () { return this; },\n\t\t\tconfigurable: true\n\t\t});\n\t} catch (error) {\n\t\t// Unfortunate case of updates to Object.prototype being restricted\n\t\t// via preventExtensions, seal or freeze\n\t\treturn naiveFallback();\n\t}\n\ttry {\n\t\t// Safari case (window.__global__ works, but __global__ does not)\n\t\tif (!__global__) return naiveFallback();\n\t\treturn __global__;\n\t} finally {\n\t\tdelete Object.prototype.__global__;\n\t}\n})();\n\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/es5-ext/global.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/fast-safe-stringify/index.js":
/*!*********************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/fast-safe-stringify/index.js ***!
\*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = stringify\nstringify.default = stringify\nstringify.stable = deterministicStringify\nstringify.stableStringify = deterministicStringify\n\nvar arr = []\nvar replacerStack = []\n\n// Regular stringify\nfunction stringify (obj, replacer, spacer) {\n decirc(obj, '', [], undefined)\n var res\n if (replacerStack.length === 0) {\n res = JSON.stringify(obj, replacer, spacer)\n } else {\n res = JSON.stringify(obj, replaceGetterValues(replacer), spacer)\n }\n while (arr.length !== 0) {\n var part = arr.pop()\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3])\n } else {\n part[0][part[1]] = part[2]\n }\n }\n return res\n}\nfunction decirc (val, k, stack, parent) {\n var i\n if (typeof val === 'object' && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k)\n if (propertyDescriptor.get !== undefined) {\n if (propertyDescriptor.configurable) {\n Object.defineProperty(parent, k, { value: '[Circular]' })\n arr.push([parent, k, val, propertyDescriptor])\n } else {\n replacerStack.push([val, k])\n }\n } else {\n parent[k] = '[Circular]'\n arr.push([parent, k, val])\n }\n return\n }\n }\n stack.push(val)\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n decirc(val[i], i, stack, val)\n }\n } else {\n var keys = Object.keys(val)\n for (i = 0; i < keys.length; i++) {\n var key = keys[i]\n decirc(val[key], key, stack, val)\n }\n }\n stack.pop()\n }\n}\n\n// Stable-stringify\nfunction compareFunction (a, b) {\n if (a < b) {\n return -1\n }\n if (a > b) {\n return 1\n }\n return 0\n}\n\nfunction deterministicStringify (obj, replacer, spacer) {\n var tmp = deterministicDecirc(obj, '', [], undefined) || obj\n var res\n if (replacerStack.length === 0) {\n res = JSON.stringify(tmp, replacer, spacer)\n } else {\n res = JSON.stringify(tmp, replaceGetterValues(replacer), spacer)\n }\n while (arr.length !== 0) {\n var part = arr.pop()\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3])\n } else {\n part[0][part[1]] = part[2]\n }\n }\n return res\n}\n\nfunction deterministicDecirc (val, k, stack, parent) {\n var i\n if (typeof val === 'object' && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k)\n if (propertyDescriptor.get !== undefined) {\n if (propertyDescriptor.configurable) {\n Object.defineProperty(parent, k, { value: '[Circular]' })\n arr.push([parent, k, val, propertyDescriptor])\n } else {\n replacerStack.push([val, k])\n }\n } else {\n parent[k] = '[Circular]'\n arr.push([parent, k, val])\n }\n return\n }\n }\n if (typeof val.toJSON === 'function') {\n return\n }\n stack.push(val)\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n deterministicDecirc(val[i], i, stack, val)\n }\n } else {\n // Create a temporary object in the required way\n var tmp = {}\n var keys = Object.keys(val).sort(compareFunction)\n for (i = 0; i < keys.length; i++) {\n var key = keys[i]\n deterministicDecirc(val[key], key, stack, val)\n tmp[key] = val[key]\n }\n if (parent !== undefined) {\n arr.push([parent, k, val])\n parent[k] = tmp\n } else {\n return tmp\n }\n }\n stack.pop()\n }\n}\n\n// wraps replacer function to handle values we couldn't replace\n// and mark them as [Circular]\nfunction replaceGetterValues (replacer) {\n replacer = replacer !== undefined ? replacer : function (k, v) { return v }\n return function (key, val) {\n if (replacerStack.length > 0) {\n for (var i = 0; i < replacerStack.length; i++) {\n var part = replacerStack[i]\n if (part[1] === key && part[0] === val) {\n val = '[Circular]'\n replacerStack.splice(i, 1)\n break\n }\n }\n }\n return replacer.call(this, key, val)\n }\n}\n\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/fast-safe-stringify/index.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/query-string/index.js":
/*!**************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/query-string/index.js ***!
\**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\nconst strictUriEncode = __webpack_require__(/*! strict-uri-encode */ \"../../../supabase-js/node_modules/strict-uri-encode/index.js\");\nconst decodeComponent = __webpack_require__(/*! decode-uri-component */ \"../../../supabase-js/node_modules/decode-uri-component/index.js\");\nconst splitOnFirst = __webpack_require__(/*! split-on-first */ \"../../../supabase-js/node_modules/split-on-first/index.js\");\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[', index, ']'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join('')\n\t\t\t\t];\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[]'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '[]=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (value === null || value === undefined || value.length === 0) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, encode(key, options)];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.split('').indexOf(options.arrayFormatSeparator) > -1;\n\t\t\t\tconst newValue = isArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : value === null ? value : decode(value, options);\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf(Line truncated
/***/ }),
/***/ "../../../supabase-js/node_modules/split-on-first/index.js":
/*!****************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/split-on-first/index.js ***!
\****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = (string, separator) => {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (separator === '') {\n\t\treturn [string];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [string];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n};\n\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/split-on-first/index.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/strict-uri-encode/index.js":
/*!*******************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/strict-uri-encode/index.js ***!
\*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\nmodule.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/strict-uri-encode/index.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/superagent/lib/agent-base.js":
/*!*********************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/superagent/lib/agent-base.js ***!
\*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction Agent() {\n this._defaults = [];\n}\n\n['use', 'on', 'once', 'set', 'query', 'type', 'accept', 'auth', 'withCredentials', 'sortQuery', 'retry', 'ok', 'redirects', 'timeout', 'buffer', 'serialize', 'parse', 'ca', 'key', 'pfx', 'cert', 'disableTLSCerts'].forEach(function (fn) {\n // Default setting for all requests from this agent\n Agent.prototype[fn] = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n this._defaults.push({\n fn: fn,\n args: args\n });\n\n return this;\n };\n});\n\nAgent.prototype._setDefaults = function (req) {\n this._defaults.forEach(function (def) {\n req[def.fn].apply(req, _toConsumableArray(def.args));\n });\n};\n\nmodule.exports = Agent;\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9hZ2VudC1iYXNlLmpzIl0sIm5hbWVzIjpbIkFnZW50IiwiX2RlZmF1bHRzIiwiZm9yRWFjaCIsImZuIiwicHJvdG90eXBlIiwiYXJncyIsInB1c2giLCJfc2V0RGVmYXVsdHMiLCJyZXEiLCJkZWYiLCJtb2R1bGUiLCJleHBvcnRzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUFBLFNBQVNBLEtBQVQsR0FBaUI7QUFDZixPQUFLQyxTQUFMLEdBQWlCLEVBQWpCO0FBQ0Q7O0FBRUQsQ0FDRSxLQURGLEVBRUUsSUFGRixFQUdFLE1BSEYsRUFJRSxLQUpGLEVBS0UsT0FMRixFQU1FLE1BTkYsRUFPRSxRQVBGLEVBUUUsTUFSRixFQVNFLGlCQVRGLEVBVUUsV0FWRixFQVdFLE9BWEYsRUFZRSxJQVpGLEVBYUUsV0FiRixFQWNFLFNBZEYsRUFlRSxRQWZGLEVBZ0JFLFdBaEJGLEVBaUJFLE9BakJGLEVBa0JFLElBbEJGLEVBbUJFLEtBbkJGLEVBb0JFLEtBcEJGLEVBcUJFLE1BckJGLEVBc0JFLGlCQXRCRixFQXVCRUMsT0F2QkYsQ0F1QlUsVUFBQUMsRUFBRSxFQUFJO0FBQ2Q7QUFDQUgsRUFBQUEsS0FBSyxDQUFDSSxTQUFOLENBQWdCRCxFQUFoQixJQUFzQixZQUFrQjtBQUFBLHNDQUFORSxJQUFNO0FBQU5BLE1BQUFBLElBQU07QUFBQTs7QUFDdEMsU0FBS0osU0FBTCxDQUFlSyxJQUFmLENBQW9CO0FBQUVILE1BQUFBLEVBQUUsRUFBRkEsRUFBRjtBQUFNRSxNQUFBQSxJQUFJLEVBQUpBO0FBQU4sS0FBcEI7O0FBQ0EsV0FBTyxJQUFQO0FBQ0QsR0FIRDtBQUlELENBN0JEOztBQStCQUwsS0FBSyxDQUFDSSxTQUFOLENBQWdCRyxZQUFoQixHQUErQixVQUFTQyxHQUFULEVBQWM7QUFDM0MsT0FBS1AsU0FBTCxDQUFlQyxPQUFmLENBQXVCLFVBQUFPLEdBQUcsRUFBSTtBQUM1QkQsSUFBQUEsR0FBRyxDQUFDQyxHQUFHLENBQUNOLEVBQUwsQ0FBSCxPQUFBSyxHQUFHLHFCQUFZQyxHQUFHLENBQUNKLElBQWhCLEVBQUg7QUFDRCxHQUZEO0FBR0QsQ0FKRDs7QUFNQUssTUFBTSxDQUFDQyxPQUFQLEdBQWlCWCxLQUFqQiIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIEFnZW50KCkge1xuICB0aGlzLl9kZWZhdWx0cyA9IFtdO1xufVxuXG5bXG4gICd1c2UnLFxuICAnb24nLFxuICAnb25jZScsXG4gICdzZXQnLFxuICAncXVlcnknLFxuICAndHlwZScsXG4gICdhY2NlcHQnLFxuICAnYXV0aCcsXG4gICd3aXRoQ3JlZGVudGlhbHMnLFxuICAnc29ydFF1ZXJ5JyxcbiAgJ3JldHJ5JyxcbiAgJ29rJyxcbiAgJ3JlZGlyZWN0cycsXG4gICd0aW1lb3V0JyxcbiAgJ2J1ZmZlcicsXG4gICdzZXJpYWxpemUnLFxuICAncGFyc2UnLFxuICAnY2EnLFxuICAna2V5JyxcbiAgJ3BmeCcsXG4gICdjZXJ0JyxcbiAgJ2Rpc2FibGVUTFNDZXJ0cydcbl0uZm9yRWFjaChmbiA9PiB7XG4gIC8vIERlZmF1bHQgc2V0dGluZyBmb3IgYWxsIHJlcXVlc3RzIGZyb20gdGhpcyBhZ2VudFxuICBBZ2VudC5wcm90b3R5cGVbZm5dID0gZnVuY3Rpb24oLi4uYXJncykge1xuICAgIHRoaXMuX2RlZmF1bHRzLnB1c2goeyBmbiwgYXJncyB9KTtcbiAgICByZXR1cm4gdGhpcztcbiAgfTtcbn0pO1xuXG5BZ2VudC5wcm90b3R5cGUuX3NldERlZmF1bHRzID0gZnVuY3Rpb24ocmVxKSB7XG4gIHRoaXMuX2RlZmF1bHRzLmZvckVhY2goZGVmID0+IHtcbiAgICByZXFbZGVmLmZuXSguLi5kZWYuYXJncyk7XG4gIH0pO1xufTtcblxubW9kdWxlLmV4cG9ydHMgPSBBZ2VudDtcbiJdfQ==\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/superagent/lib/agent-base.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/superagent/lib/client.js":
/*!*****************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/superagent/lib/client.js ***!
\*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Root reference for iframes.\n */\nvar root;\n\nif (typeof window !== 'undefined') {\n // Browser window\n root = window;\n} else if (typeof self === 'undefined') {\n // Other environments\n console.warn('Using browser-only version of superagent in non-browser environment');\n root = void 0;\n} else {\n // Web Worker\n root = self;\n}\n\nvar Emitter = __webpack_require__(/*! component-emitter */ \"../../../supabase-js/node_modules/component-emitter/index.js\");\n\nvar safeStringify = __webpack_require__(/*! fast-safe-stringify */ \"../../../supabase-js/node_modules/fast-safe-stringify/index.js\");\n\nvar RequestBase = __webpack_require__(/*! ./request-base */ \"../../../supabase-js/node_modules/superagent/lib/request-base.js\");\n\nvar isObject = __webpack_require__(/*! ./is-object */ \"../../../supabase-js/node_modules/superagent/lib/is-object.js\");\n\nvar ResponseBase = __webpack_require__(/*! ./response-base */ \"../../../supabase-js/node_modules/superagent/lib/response-base.js\");\n\nvar Agent = __webpack_require__(/*! ./agent-base */ \"../../../supabase-js/node_modules/superagent/lib/agent-base.js\");\n/**\n * Noop.\n */\n\n\nfunction noop() {}\n/**\n * Expose `request`.\n */\n\n\nmodule.exports = function (method, url) {\n // callback\n if (typeof url === 'function') {\n return new exports.Request('GET', method).end(url);\n } // url first\n\n\n if (arguments.length === 1) {\n return new exports.Request('GET', method);\n }\n\n return new exports.Request(method, url);\n};\n\nexports = module.exports;\nvar request = exports;\nexports.Request = Request;\n/**\n * Determine XHR.\n */\n\nrequest.getXHR = function () {\n if (root.XMLHttpRequest && (!root.location || root.location.protocol !== 'file:' || !root.ActiveXObject)) {\n return new XMLHttpRequest();\n }\n\n try {\n return new ActiveXObject('Microsoft.XMLHTTP');\n } catch (_unused) {}\n\n try {\n return new ActiveXObject('Msxml2.XMLHTTP.6.0');\n } catch (_unused2) {}\n\n try {\n return new ActiveXObject('Msxml2.XMLHTTP.3.0');\n } catch (_unused3) {}\n\n try {\n return new ActiveXObject('Msxml2.XMLHTTP');\n } catch (_unused4) {}\n\n throw new Error('Browser-only version of superagent could not find XHR');\n};\n/**\n * Removes leading and trailing whitespace, added to support IE.\n *\n * @param {String} s\n * @return {String}\n * @api private\n */\n\n\nvar trim = ''.trim ? function (s) {\n return s.trim();\n} : function (s) {\n return s.replace(/(^\\s*|\\s*$)/g, '');\n};\n/**\n * Serialize the given `obj`.\n *\n * @param {Object} obj\n * @return {String}\n * @api private\n */\n\nfunction serialize(obj) {\n if (!isObject(obj)) return obj;\n var pairs = [];\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) pushEncodedKeyValuePair(pairs, key, obj[key]);\n }\n\n return pairs.join('&');\n}\n/**\n * Helps 'serialize' with serializing arrays.\n * Mutates the pairs array.\n *\n * @param {Array} pairs\n * @param {String} key\n * @param {Mixed} val\n */\n\n\nfunction pushEncodedKeyValuePair(pairs, key, val) {\n if (val === undefined) return;\n\n if (val === null) {\n pairs.push(encodeURI(key));\n return;\n }\n\n if (Array.isArray(val)) {\n val.forEach(function (v) {\n pushEncodedKeyValuePair(pairs, key, v);\n });\n } else if (isObject(val)) {\n for (var subkey in val) {\n if (Object.prototype.hasOwnProperty.call(val, subkey)) pushEncodedKeyValuePair(pairs, \"\".concat(key, \"[\").concat(subkey, \"]\"), val[subkey]);\n }\n } else {\n pairs.push(encodeURI(key) + '=' + encodeURIComponent(val));\n }\n}\n/**\n * Expose serialization method.\n */\n\n\nrequest.serializeObject = serialize;\n/**\n * Parse the given x-www-form-urlencoded `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseString(str) {\n var obj = {};\n var pairs = str.split('&');\n var pair;\n var pos;\n\n for (var i = 0, len = pairs.length; i < len; ++i) {\n pair = pairs[i];\n pos = pair.indexOf('=');\n\n if (pos === -1) {\n obj[decodeURIComponent(pair)] = '';\n } else {\n obj[decodeURIComponent(pair.slice(0, pos))] = decodeURIComponent(pair.slice(pos + 1));\n }\n }\n\n return obj;\n}\n/**\n * Expose parser.\n */\n\n\nrequest.parseString = parseString;\n/**\n * Default MIME type map.\n *\n * superagent.types.xml = 'application/xml';\n *\n */\n\nrequest.types = {\n html: 'text/html',\n json: 'application/json',\n xml: 'text/xml',\n urlencoded: 'application/x-www-form-urlencoded',\n form: 'applicatioLine truncated
/***/ }),
/***/ "../../../supabase-js/node_modules/superagent/lib/is-object.js":
/*!********************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/superagent/lib/is-object.js ***!
\********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Check if `obj` is an object.\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\nfunction isObject(obj) {\n return obj !== null && _typeof(obj) === 'object';\n}\n\nmodule.exports = isObject;\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pcy1vYmplY3QuanMiXSwibmFtZXMiOlsiaXNPYmplY3QiLCJvYmoiLCJtb2R1bGUiLCJleHBvcnRzIl0sIm1hcHBpbmdzIjoiOzs7O0FBQUE7Ozs7Ozs7QUFRQSxTQUFTQSxRQUFULENBQWtCQyxHQUFsQixFQUF1QjtBQUNyQixTQUFPQSxHQUFHLEtBQUssSUFBUixJQUFnQixRQUFPQSxHQUFQLE1BQWUsUUFBdEM7QUFDRDs7QUFFREMsTUFBTSxDQUFDQyxPQUFQLEdBQWlCSCxRQUFqQiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ2hlY2sgaWYgYG9iamAgaXMgYW4gb2JqZWN0LlxuICpcbiAqIEBwYXJhbSB7T2JqZWN0fSBvYmpcbiAqIEByZXR1cm4ge0Jvb2xlYW59XG4gKiBAYXBpIHByaXZhdGVcbiAqL1xuXG5mdW5jdGlvbiBpc09iamVjdChvYmopIHtcbiAgcmV0dXJuIG9iaiAhPT0gbnVsbCAmJiB0eXBlb2Ygb2JqID09PSAnb2JqZWN0Jztcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBpc09iamVjdDtcbiJdfQ==\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/superagent/lib/is-object.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/superagent/lib/request-base.js":
/*!***********************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/superagent/lib/request-base.js ***!
\***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Module of mixed-in functions shared between node and client code\n */\nvar isObject = __webpack_require__(/*! ./is-object */ \"../../../supabase-js/node_modules/superagent/lib/is-object.js\");\n/**\n * Expose `RequestBase`.\n */\n\n\nmodule.exports = RequestBase;\n/**\n * Initialize a new `RequestBase`.\n *\n * @api public\n */\n\nfunction RequestBase(obj) {\n if (obj) return mixin(obj);\n}\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\n\nfunction mixin(obj) {\n for (var key in RequestBase.prototype) {\n if (Object.prototype.hasOwnProperty.call(RequestBase.prototype, key)) obj[key] = RequestBase.prototype[key];\n }\n\n return obj;\n}\n/**\n * Clear previous timeout.\n *\n * @return {Request} for chaining\n * @api public\n */\n\n\nRequestBase.prototype.clearTimeout = function () {\n clearTimeout(this._timer);\n clearTimeout(this._responseTimeoutTimer);\n clearTimeout(this._uploadTimeoutTimer);\n delete this._timer;\n delete this._responseTimeoutTimer;\n delete this._uploadTimeoutTimer;\n return this;\n};\n/**\n * Override default response body parser\n *\n * This function will be called to convert incoming data into request.body\n *\n * @param {Function}\n * @api public\n */\n\n\nRequestBase.prototype.parse = function (fn) {\n this._parser = fn;\n return this;\n};\n/**\n * Set format of binary response body.\n * In browser valid formats are 'blob' and 'arraybuffer',\n * which return Blob and ArrayBuffer, respectively.\n *\n * In Node all values result in Buffer.\n *\n * Examples:\n *\n * req.get('/')\n * .responseType('blob')\n * .end(callback);\n *\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\n\nRequestBase.prototype.responseType = function (val) {\n this._responseType = val;\n return this;\n};\n/**\n * Override default request body serializer\n *\n * This function will be called to convert data set via .send or .attach into payload to send\n *\n * @param {Function}\n * @api public\n */\n\n\nRequestBase.prototype.serialize = function (fn) {\n this._serializer = fn;\n return this;\n};\n/**\n * Set timeouts.\n *\n * - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time.\n * - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections.\n * - upload is the time since last bit of data was sent or received. This timeout works only if deadline timeout is off\n *\n * Value of 0 or false means no timeout.\n *\n * @param {Number|Object} ms or {response, deadline}\n * @return {Request} for chaining\n * @api public\n */\n\n\nRequestBase.prototype.timeout = function (options) {\n if (!options || _typeof(options) !== 'object') {\n this._timeout = options;\n this._responseTimeout = 0;\n this._uploadTimeout = 0;\n return this;\n }\n\n for (var option in options) {\n if (Object.prototype.hasOwnProperty.call(options, option)) {\n switch (option) {\n case 'deadline':\n this._timeout = options.deadline;\n break;\n\n case 'response':\n this._responseTimeout = options.response;\n break;\n\n case 'upload':\n this._uploadTimeout = options.upload;\n break;\n\n default:\n console.warn('Unknown timeout option', option);\n }\n }\n }\n\n return this;\n};\n/**\n * Set number of retry attempts on error.\n *\n * Failed requests will be retried 'count' times if timeout or err.code >= 500.\n *\n * @param {Number} count\n * @param {Function} [fn]\n * @return {Request} for chaining\n * @api public\n */\n\n\nRequestBase.prototype.retry = function (count, fn) {\n // Default to 1 if no count passed or true\n if (arguments.length === 0 || count === true) count = 1;\n if (count <= 0) count = 0;\n this._maxRetries = count;\n this._retries = 0;\n this._retryCallback = fn;\n return this;\n};\n\nvar ERROR_CODES = ['ECONNRESET', 'ETIMEDOUT', 'EADDRINFO', 'ESOCKETTIMEDOUT'];\n/**\n * Determine if a request should be retried.\n * (Borrowed from segmentio/superagent-retry)\n *\n * @param {Error} err an error\n * @param {Response} [res] response\n * @returns {Boolean} if segment should be retried\n */\n\nRequestBase.prototype._shouldRetry = function (err, res) {\n if (!this._maxRetries || this._retries++ >= this._maxRetries) {\n return false;\n }\n\n if (this._retryCallback) {\n try {\n var Line truncated
/***/ }),
/***/ "../../../supabase-js/node_modules/superagent/lib/response-base.js":
/*!************************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/superagent/lib/response-base.js ***!
\************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\n/**\n * Module dependencies.\n */\nvar utils = __webpack_require__(/*! ./utils */ \"../../../supabase-js/node_modules/superagent/lib/utils.js\");\n/**\n * Expose `ResponseBase`.\n */\n\n\nmodule.exports = ResponseBase;\n/**\n * Initialize a new `ResponseBase`.\n *\n * @api public\n */\n\nfunction ResponseBase(obj) {\n if (obj) return mixin(obj);\n}\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\n\nfunction mixin(obj) {\n for (var key in ResponseBase.prototype) {\n if (Object.prototype.hasOwnProperty.call(ResponseBase.prototype, key)) obj[key] = ResponseBase.prototype[key];\n }\n\n return obj;\n}\n/**\n * Get case-insensitive `field` value.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\n\nResponseBase.prototype.get = function (field) {\n return this.header[field.toLowerCase()];\n};\n/**\n * Set header related properties:\n *\n * - `.type` the content type without params\n *\n * A response of \"Content-Type: text/plain; charset=utf-8\"\n * will provide you with a `.type` of \"text/plain\".\n *\n * @param {Object} header\n * @api private\n */\n\n\nResponseBase.prototype._setHeaderProperties = function (header) {\n // TODO: moar!\n // TODO: make this a util\n // content-type\n var ct = header['content-type'] || '';\n this.type = utils.type(ct); // params\n\n var params = utils.params(ct);\n\n for (var key in params) {\n if (Object.prototype.hasOwnProperty.call(params, key)) this[key] = params[key];\n }\n\n this.links = {}; // links\n\n try {\n if (header.link) {\n this.links = utils.parseLinks(header.link);\n }\n } catch (_unused) {// ignore\n }\n};\n/**\n * Set flags such as `.ok` based on `status`.\n *\n * For example a 2xx response will give you a `.ok` of __true__\n * whereas 5xx will be __false__ and `.error` will be __true__. The\n * `.clientError` and `.serverError` are also available to be more\n * specific, and `.statusType` is the class of error ranging from 1..5\n * sometimes useful for mapping respond colors etc.\n *\n * \"sugar\" properties are also defined for common cases. Currently providing:\n *\n * - .noContent\n * - .badRequest\n * - .unauthorized\n * - .notAcceptable\n * - .notFound\n *\n * @param {Number} status\n * @api private\n */\n\n\nResponseBase.prototype._setStatusProperties = function (status) {\n var type = status / 100 | 0; // status / class\n\n this.statusCode = status;\n this.status = this.statusCode;\n this.statusType = type; // basics\n\n this.info = type === 1;\n this.ok = type === 2;\n this.redirect = type === 3;\n this.clientError = type === 4;\n this.serverError = type === 5;\n this.error = type === 4 || type === 5 ? this.toError() : false; // sugar\n\n this.created = status === 201;\n this.accepted = status === 202;\n this.noContent = status === 204;\n this.badRequest = status === 400;\n this.unauthorized = status === 401;\n this.notAcceptable = status === 406;\n this.forbidden = status === 403;\n this.notFound = status === 404;\n this.unprocessableEntity = status === 422;\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXNwb25zZS1iYXNlLmpzIl0sIm5hbWVzIjpbInV0aWxzIiwicmVxdWlyZSIsIm1vZHVsZSIsImV4cG9ydHMiLCJSZXNwb25zZUJhc2UiLCJvYmoiLCJtaXhpbiIsImtleSIsInByb3RvdHlwZSIsIk9iamVjdCIsImhhc093blByb3BlcnR5IiwiY2FsbCIsImdldCIsImZpZWxkIiwiaGVhZGVyIiwidG9Mb3dlckNhc2UiLCJfc2V0SGVhZGVyUHJvcGVydGllcyIsImN0IiwidHlwZSIsInBhcmFtcyIsImxpbmtzIiwibGluayIsInBhcnNlTGlua3MiLCJfc2V0U3RhdHVzUHJvcGVydGllcyIsInN0YXR1cyIsInN0YXR1c0NvZGUiLCJzdGF0dXNUeXBlIiwiaW5mbyIsIm9rIiwicmVkaXJlY3QiLCJjbGllbnRFcnJvciIsInNlcnZlckVycm9yIiwiZXJyb3IiLCJ0b0Vycm9yIiwiY3JlYXRlZCIsImFjY2VwdGVkIiwibm9Db250ZW50IiwiYmFkUmVxdWVzdCIsInVuYXV0aG9yaXplZCIsIm5vdEFjY2VwdGFibGUiLCJmb3JiaWRkZW4iLCJub3RGb3VuZCIsInVucHJvY2Vzc2FibGVFbnRpdHkiXSwibWFwcGluZ3MiOiI7O0FBQUE7OztBQUlBLElBQU1BLEtBQUssR0FBR0MsT0FBTyxDQUFDLFNBQUQsQ0FBckI7QUFFQTs7Ozs7QUFJQUMsTUFBTSxDQUFDQyxPQUFQLEdBQWlCQyxZQUFqQjtBQUVBOzs7Ozs7QUFNQSxTQUFTQSxZQUFULENBQXNCQyxHQUF0QixFQUEyQjtBQUN6QixNQUFJQSxHQUFKLEVBQVMsT0FBT0MsS0FBSyxDQUFDRCxHQUFELENBQVo7QUFDVjtBQUVEOzs7Ozs7Ozs7QUFRQSxTQUFTQyxLQUFULENBQWVELEdBQWYsRUFBb0I7QUFDbEIsT0FBSyxJQUFNRSxHQUFYLElBQWtCSCxZQUFZLENBQUNJLFNBQS9CLEVBQTBDO0FBQ3hDLFFBQUlDLE1BQU0sQ0FBQ0QsU0FBUCxDQUFpQkUsY0FBakIsQ0FBZ0NDLElBQWhDLENBQXFDUCxZQUFZLENBQUNJLFNBQWxELEVBQTZERCxHQUE3RCxDQUFKLEVBQ0VGLEdBQUcsQ0FBQ0UsR0FBRCxDQUFILEdBQVdILFlBQVksQ0FBQ0ksU0FBYixDQUF1QkQsR0FBdkIsQ0FBWDtBQUNIOztBQUVELFNBQU9GLEdBQVA7QUFDRDtBQUVEOzs7Ozs7Ozs7QUFRQUQsWUFBWSxDQUFDSSxTQUFiLENBQXVCSSxHQUF2QixHQUE2QixVQUFTQyxLQUFULEVBQWdCO0FBQzNDLFNBQU8sS0FBS0MsTUFBTCxDQUFZRCxLQUFLLENBQUNFLFdBQU4sRUFBWixDQUFQO0FBQ0QsQ0FGRDtBQUlBOzs7Ozs7Ozs7Ozs7O0FBWUFYLFlBQVksQ0FBQ0ksU0FBYixDQUF1QlEsb0JBQXZCLEdBQThDLFVBQVNGLE1BQVQsRUFBaUI7QUFDN0Q7QUFDQTtBQUVBO0FBQ0EsTUFBTUcsRUFBRSxHQUFHSCxNQUFNLENBQUMsY0FBRCxDQUFOLElBQTBCLEVBQXJDO0FBQ0EsT0FBS0ksSUFBTCxHQUFZbEIsS0FBSyxDQUFDa0IsSU Line truncated
/***/ }),
/***/ "../../../supabase-js/node_modules/superagent/lib/utils.js":
/*!****************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/superagent/lib/utils.js ***!
\****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\n/**\n * Return the mime type for the given `str`.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\nexports.type = function (str) {\n return str.split(/ *; */).shift();\n};\n/**\n * Return header field parameters.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\n\nexports.params = function (str) {\n return str.split(/ *; */).reduce(function (obj, str) {\n var parts = str.split(/ *= */);\n var key = parts.shift();\n var val = parts.shift();\n if (key && val) obj[key] = val;\n return obj;\n }, {});\n};\n/**\n * Parse Link header fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\n\nexports.parseLinks = function (str) {\n return str.split(/ *, */).reduce(function (obj, str) {\n var parts = str.split(/ *; */);\n var url = parts[0].slice(1, -1);\n var rel = parts[1].split(/ *= */)[1].slice(1, -1);\n obj[rel] = url;\n return obj;\n }, {});\n};\n/**\n * Strip content related fields from `header`.\n *\n * @param {Object} header\n * @return {Object} header\n * @api private\n */\n\n\nexports.cleanHeader = function (header, changesOrigin) {\n delete header['content-type'];\n delete header['content-length'];\n delete header['transfer-encoding'];\n delete header.host; // secuirty\n\n if (changesOrigin) {\n delete header.authorization;\n delete header.cookie;\n }\n\n return header;\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlscy5qcyJdLCJuYW1lcyI6WyJleHBvcnRzIiwidHlwZSIsInN0ciIsInNwbGl0Iiwic2hpZnQiLCJwYXJhbXMiLCJyZWR1Y2UiLCJvYmoiLCJwYXJ0cyIsImtleSIsInZhbCIsInBhcnNlTGlua3MiLCJ1cmwiLCJzbGljZSIsInJlbCIsImNsZWFuSGVhZGVyIiwiaGVhZGVyIiwiY2hhbmdlc09yaWdpbiIsImhvc3QiLCJhdXRob3JpemF0aW9uIiwiY29va2llIl0sIm1hcHBpbmdzIjoiOztBQUFBOzs7Ozs7O0FBUUFBLE9BQU8sQ0FBQ0MsSUFBUixHQUFlLFVBQUFDLEdBQUc7QUFBQSxTQUFJQSxHQUFHLENBQUNDLEtBQUosQ0FBVSxPQUFWLEVBQW1CQyxLQUFuQixFQUFKO0FBQUEsQ0FBbEI7QUFFQTs7Ozs7Ozs7O0FBUUFKLE9BQU8sQ0FBQ0ssTUFBUixHQUFpQixVQUFBSCxHQUFHO0FBQUEsU0FDbEJBLEdBQUcsQ0FBQ0MsS0FBSixDQUFVLE9BQVYsRUFBbUJHLE1BQW5CLENBQTBCLFVBQUNDLEdBQUQsRUFBTUwsR0FBTixFQUFjO0FBQ3RDLFFBQU1NLEtBQUssR0FBR04sR0FBRyxDQUFDQyxLQUFKLENBQVUsT0FBVixDQUFkO0FBQ0EsUUFBTU0sR0FBRyxHQUFHRCxLQUFLLENBQUNKLEtBQU4sRUFBWjtBQUNBLFFBQU1NLEdBQUcsR0FBR0YsS0FBSyxDQUFDSixLQUFOLEVBQVo7QUFFQSxRQUFJSyxHQUFHLElBQUlDLEdBQVgsRUFBZ0JILEdBQUcsQ0FBQ0UsR0FBRCxDQUFILEdBQVdDLEdBQVg7QUFDaEIsV0FBT0gsR0FBUDtBQUNELEdBUEQsRUFPRyxFQVBILENBRGtCO0FBQUEsQ0FBcEI7QUFVQTs7Ozs7Ozs7O0FBUUFQLE9BQU8sQ0FBQ1csVUFBUixHQUFxQixVQUFBVCxHQUFHO0FBQUEsU0FDdEJBLEdBQUcsQ0FBQ0MsS0FBSixDQUFVLE9BQVYsRUFBbUJHLE1BQW5CLENBQTBCLFVBQUNDLEdBQUQsRUFBTUwsR0FBTixFQUFjO0FBQ3RDLFFBQU1NLEtBQUssR0FBR04sR0FBRyxDQUFDQyxLQUFKLENBQVUsT0FBVixDQUFkO0FBQ0EsUUFBTVMsR0FBRyxHQUFHSixLQUFLLENBQUMsQ0FBRCxDQUFMLENBQVNLLEtBQVQsQ0FBZSxDQUFmLEVBQWtCLENBQUMsQ0FBbkIsQ0FBWjtBQUNBLFFBQU1DLEdBQUcsR0FBR04sS0FBSyxDQUFDLENBQUQsQ0FBTCxDQUFTTCxLQUFULENBQWUsT0FBZixFQUF3QixDQUF4QixFQUEyQlUsS0FBM0IsQ0FBaUMsQ0FBakMsRUFBb0MsQ0FBQyxDQUFyQyxDQUFaO0FBQ0FOLElBQUFBLEdBQUcsQ0FBQ08sR0FBRCxDQUFILEdBQVdGLEdBQVg7QUFDQSxXQUFPTCxHQUFQO0FBQ0QsR0FORCxFQU1HLEVBTkgsQ0FEc0I7QUFBQSxDQUF4QjtBQVNBOzs7Ozs7Ozs7QUFRQVAsT0FBTyxDQUFDZSxXQUFSLEdBQXNCLFVBQUNDLE1BQUQsRUFBU0MsYUFBVCxFQUEyQjtBQUMvQyxTQUFPRCxNQUFNLENBQUMsY0FBRCxDQUFiO0FBQ0EsU0FBT0EsTUFBTSxDQUFDLGdCQUFELENBQWI7QUFDQSxTQUFPQSxNQUFNLENBQUMsbUJBQUQsQ0FBYjtBQUNBLFNBQU9BLE1BQU0sQ0FBQ0UsSUFBZCxDQUorQyxDQUsvQzs7QUFDQSxNQUFJRCxhQUFKLEVBQW1CO0FBQ2pCLFdBQU9ELE1BQU0sQ0FBQ0csYUFBZDtBQUNBLFdBQU9ILE1BQU0sQ0FBQ0ksTUFBZDtBQUNEOztBQUVELFNBQU9KLE1BQVA7QUFDRCxDQVpEIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBSZXR1cm4gdGhlIG1pbWUgdHlwZSBmb3IgdGhlIGdpdmVuIGBzdHJgLlxuICpcbiAqIEBwYXJhbSB7U3RyaW5nfSBzdHJcbiAqIEByZXR1cm4ge1N0cmluZ31cbiAqIEBhcGkgcHJpdmF0ZVxuICovXG5cbmV4cG9ydHMudHlwZSA9IHN0ciA9PiBzdHIuc3BsaXQoLyAqOyAqLykuc2hpZnQoKTtcblxuLyoqXG4gKiBSZXR1cm4gaGVhZGVyIGZpZWxkIHBhcmFtZXRlcnMuXG4gKlxuICogQHBhcmFtIHtTdHJpbmd9IHN0clxuICogQHJldHVybiB7T2JqZWN0fVxuICogQGFwaSBwcml2YXRlXG4gKi9cblxuZXhwb3J0cy5wYXJhbXMgPSBzdHIgPT5cbiAgc3RyLnNwbGl0KC8gKjsgKi8pLnJlZHVjZSgob2JqLCBzdHIpID0+IHtcbiAgICBjb25zdCBwYXJ0cyA9IHN0ci5zcGxpdCgvICo9ICovKTtcbiAgICBjb25zdCBrZXkgPSBwYXJ0cy5zaGlmdCgpO1xuICAgIGNvbnN0IHZhbCA9IHBhcnRzLnNoaWZ0KCk7XG5cbiAgICBpZiAoa2V5ICYmIHZhbCkgb2JqW2tleV0gPSB2YWw7XG4gICAgcmV0dXJuIG9iajtcbiAgfSwge30pO1xuXG4vKipcbiAqIFBhcnNlIExpbmsgaGVhZGVyIGZpZWxkcy5cbiAqXG4gKiBAcGFyYW0ge1N0cmluZ30gc3RyXG4gKiBAcmV0dXJuIHtPYmplY3R9XG4gKiBAYXBpIHByaXZhdGVcbiAqL1xuXG5leHBvcnRzLnBhcnNlTGlua3MgPSBzdHIgPT5cbiAgc3RyLnNwbGl0KC8gKiwgKi8pLnJlZHVjZSgob2JqLCBzdHIpID0+IHtcbiAgICBjb25zdCBwYXJ0cyA9IHN0ci5zcGxpdCgvICo7ICovKTtcbiAgICBjb25zdCB1cmwgPSBwYXJ0c1swXS5zbGljZSgxLCAtMSk7XG4gICAgY29uc3QgcmVsID0gcGFydHNbMV0uc3BsaXQoLyAqPSAqLylbMV0uc2xpY2UoMSwgLTEpO1xuICAgIG9ialtyZWxdID0gdXJsO1xuICAgIHJldHVybiBvYmo7XG4gIH0sIHt9KTtcblxuLyoqXG4gKiBTdHJpcCBjb250ZW50IHJlbGF0ZWQgZmllbGRzIGZyb20gYGhlYWRlcmAuXG4gKlxuICogQHBhcmFtIHtPYmplY3R9IGhlYWRlclxuICogQHJldHVybiB7T2JqZWN0fSBoZWFkZXJcbiAqIEBhcGkgcHJpdmF0ZVxuICovXG Line truncated
/***/ }),
/***/ "../../../supabase-js/node_modules/websocket/lib/browser.js":
/*!*****************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/websocket/lib/browser.js ***!
\*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var _globalThis;\ntry {\n\t_globalThis = __webpack_require__(/*! es5-ext/global */ \"../../../supabase-js/node_modules/es5-ext/global.js\");\n} catch (error) {\n} finally {\n\tif (!_globalThis && typeof window !== 'undefined') { _globalThis = window; }\n\tif (!_globalThis) { throw new Error('Could not determine global this'); }\n}\n\nvar NativeWebSocket = _globalThis.WebSocket || _globalThis.MozWebSocket;\nvar websocket_version = __webpack_require__(/*! ./version */ \"../../../supabase-js/node_modules/websocket/lib/version.js\");\n\n\n/**\n * Expose a W3C WebSocket class with just one or two arguments.\n */\nfunction W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}\nif (NativeWebSocket) {\n\t['CONNECTING', 'OPEN', 'CLOSING', 'CLOSED'].forEach(function(prop) {\n\t\tObject.defineProperty(W3CWebSocket, prop, {\n\t\t\tget: function() { return NativeWebSocket[prop]; }\n\t\t});\n\t});\n}\n\n/**\n * Module exports.\n */\nmodule.exports = {\n 'w3cwebsocket' : NativeWebSocket ? W3CWebSocket : null,\n 'version' : websocket_version\n};\n\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/websocket/lib/browser.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/websocket/lib/version.js":
/*!*****************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/websocket/lib/version.js ***!
\*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("module.exports = __webpack_require__(/*! ../package.json */ \"../../../supabase-js/node_modules/websocket/package.json\").version;\n\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/websocket/lib/version.js?");
/***/ }),
/***/ "../../../supabase-js/node_modules/websocket/package.json":
/*!***************************************************************************************************!*\
!*** /Users/supabase/Documents/projects/supabase/supabase-js/node_modules/websocket/package.json ***!
\***************************************************************************************************/
/*! exports provided: _from, _id, _inBundle, _integrity, _location, _phantomChildren, _requested, _requiredBy, _resolved, _shasum, _spec, _where, author, browser, bugs, bundleDependencies, config, contributors, dependencies, deprecated, description, devDependencies, directories, engines, homepage, keywords, license, main, name, repository, scripts, version, default */
/***/ (function(module) {
eval("module.exports = JSON.parse(\"{\\\"_from\\\":\\\"websocket@^1.0.31\\\",\\\"_id\\\":\\\"websocket@1.0.31\\\",\\\"_inBundle\\\":false,\\\"_integrity\\\":\\\"sha512-VAouplvGKPiKFDTeCCO65vYHsyay8DqoBSlzIO3fayrfOgU94lQN5a1uWVnFrMLceTJw/+fQXR5PGbUVRaHshQ==\\\",\\\"_location\\\":\\\"/websocket\\\",\\\"_phantomChildren\\\":{},\\\"_requested\\\":{\\\"type\\\":\\\"range\\\",\\\"registry\\\":true,\\\"raw\\\":\\\"websocket@^1.0.31\\\",\\\"name\\\":\\\"websocket\\\",\\\"escapedName\\\":\\\"websocket\\\",\\\"rawSpec\\\":\\\"^1.0.31\\\",\\\"saveSpec\\\":null,\\\"fetchSpec\\\":\\\"^1.0.31\\\"},\\\"_requiredBy\\\":[\\\"/@supabase/realtime-js\\\"],\\\"_resolved\\\":\\\"https://registry.npmjs.org/websocket/-/websocket-1.0.31.tgz\\\",\\\"_shasum\\\":\\\"e5d0f16c3340ed87670e489ecae6144c79358730\\\",\\\"_spec\\\":\\\"websocket@^1.0.31\\\",\\\"_where\\\":\\\"/Users/supabase/Documents/projects/supabase/supabase-js/node_modules/@supabase/realtime-js\\\",\\\"author\\\":{\\\"name\\\":\\\"Brian McKelvey\\\",\\\"email\\\":\\\"theturtle32@gmail.com\\\",\\\"url\\\":\\\"https://github.com/theturtle32\\\"},\\\"browser\\\":\\\"lib/browser.js\\\",\\\"bugs\\\":{\\\"url\\\":\\\"https://github.com/theturtle32/WebSocket-Node/issues\\\"},\\\"bundleDependencies\\\":false,\\\"config\\\":{\\\"verbose\\\":false},\\\"contributors\\\":[{\\\"name\\\":\\\"Iñaki Baz Castillo\\\",\\\"email\\\":\\\"ibc@aliax.net\\\",\\\"url\\\":\\\"http://dev.sipdoc.net\\\"}],\\\"dependencies\\\":{\\\"debug\\\":\\\"^2.2.0\\\",\\\"es5-ext\\\":\\\"^0.10.50\\\",\\\"nan\\\":\\\"^2.14.0\\\",\\\"typedarray-to-buffer\\\":\\\"^3.1.5\\\",\\\"yaeti\\\":\\\"^0.0.6\\\"},\\\"deprecated\\\":false,\\\"description\\\":\\\"Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.\\\",\\\"devDependencies\\\":{\\\"buffer-equal\\\":\\\"^1.0.0\\\",\\\"faucet\\\":\\\"^0.0.1\\\",\\\"gulp\\\":\\\"^4.0.2\\\",\\\"gulp-jshint\\\":\\\"^2.0.4\\\",\\\"jshint\\\":\\\"^2.0.0\\\",\\\"jshint-stylish\\\":\\\"^2.2.1\\\",\\\"tape\\\":\\\"^4.9.1\\\"},\\\"directories\\\":{\\\"lib\\\":\\\"./lib\\\"},\\\"engines\\\":{\\\"node\\\":\\\">=0.10.0\\\"},\\\"homepage\\\":\\\"https://github.com/theturtle32/WebSocket-Node\\\",\\\"keywords\\\":[\\\"websocket\\\",\\\"websockets\\\",\\\"socket\\\",\\\"networking\\\",\\\"comet\\\",\\\"push\\\",\\\"RFC-6455\\\",\\\"realtime\\\",\\\"server\\\",\\\"client\\\"],\\\"license\\\":\\\"Apache-2.0\\\",\\\"main\\\":\\\"index\\\",\\\"name\\\":\\\"websocket\\\",\\\"repository\\\":{\\\"type\\\":\\\"git\\\",\\\"url\\\":\\\"git+https://github.com/theturtle32/WebSocket-Node.git\\\"},\\\"scripts\\\":{\\\"gulp\\\":\\\"gulp\\\",\\\"install\\\":\\\"(node-gyp rebuild 2> builderror.log) || (exit 0)\\\",\\\"test\\\":\\\"faucet test/unit\\\"},\\\"version\\\":\\\"1.0.31\\\"}\");\n\n//# sourceURL=webpack:////Users/supabase/Documents/projects/supabase/supabase-js/node_modules/websocket/package.json?");
/***/ }),
/***/ "./index.js":
/*!******************!*\
!*** ./index.js ***!
@@ -94,434 +516,7 @@
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _supabase_supabase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @supabase/supabase-js */ \"./node_modules/@supabase/supabase-js/lib/index.js\");\n/* harmony import */ var _supabase_supabase_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_supabase_supabase_js__WEBPACK_IMPORTED_MODULE_0__);\nconsole.log('Auth, Auth, Baby')\n\n\n\nvar SUPABASE_URL = 'https://qgxofzpdhwflxckfyoyz.supabase.net'\nvar SUPABASE_KEY =\n 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTU5NTU3OTM1MywiZXhwIjoxOTExMTU1MzUzfQ.zS6U4PuJsHJ0wbBQXANpg2fbvHazUtfCgWonJ_TXlRk'\n\nvar supabase = Object(_supabase_supabase_js__WEBPACK_IMPORTED_MODULE_0__[\"createClient\"])(SUPABASE_URL, SUPABASE_KEY)\nwindow.userToken = null\n\nwindow.onload = function () {\n var signUpForm = document.querySelector('#sign-up')\n signUpForm.onsubmit = signUpSubmitted.bind(signUpForm)\n\n var logInForm = document.querySelector('#log-in')\n logInForm.onsubmit = logInSubmitted.bind(logInForm)\n\n var userDetailsButton = document.querySelector('#user-button')\n userDetailsButton.onclick = fetchUserDetails.bind(userDetailsButton)\n}\n\nconst signUpSubmitted = (event) => {\n event.preventDefault()\n const email = event.target[0].value\n const password = event.target[1].value\n\n supabase.auth\n .signup(email, password)\n .then((response) => {\n alert(JSON.stringify(response.body))\n })\n .catch((err) => {\n alert(err.response.text)\n })\n}\n\nconst logInSubmitted = (event) => {\n event.preventDefault()\n const email = event.target[0].value\n const password = event.target[1].value\n\n supabase.auth\n .login(email, password)\n .then((response) => {\n document.querySelector('#access-token').value = response.body.access_token\n document.querySelector('#refresh-token').value = response.body.refresh_token\n alert(JSON.stringify(response.body))\n })\n .catch((err) => {\n alert(err.response.text)\n })\n}\n\nconst fetchUserDetails = () => {\n supabase.auth\n .user()\n .then((response) => {\n alert(JSON.stringify(response))\n })\n .catch((err) => {\n alert(err.response.text)\n })\n}\n\n\n//# sourceURL=webpack:///./index.js?");
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js":
/*!*****************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/asyncToGenerator.js?");
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
/*!**********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/interopRequireDefault.js?");
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js":
/*!***********************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/interopRequireWildcard.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var _typeof = __webpack_require__(/*! ../helpers/typeof */ \"./node_modules/@babel/runtime/helpers/typeof.js\");\n\nfunction _getRequireWildcardCache() {\n if (typeof WeakMap !== \"function\") return null;\n var cache = new WeakMap();\n\n _getRequireWildcardCache = function _getRequireWildcardCache() {\n return cache;\n };\n\n return cache;\n}\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n }\n\n if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") {\n return {\n \"default\": obj\n };\n }\n\n var cache = _getRequireWildcardCache();\n\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n\n newObj[\"default\"] = obj;\n\n if (cache) {\n cache.set(obj, newObj);\n }\n\n return newObj;\n}\n\nmodule.exports = _interopRequireWildcard;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/interopRequireWildcard.js?");
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/typeof.js":
/*!*******************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/typeof.js?");
/***/ }),
/***/ "./node_modules/@supabase/postgrest-js/lib/Builder.js":
/*!************************************************************!*\
!*** ./node_modules/@supabase/postgrest-js/lib/Builder.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("var _Request=_interopRequireDefault(__webpack_require__(/*! ./Request */ \"./node_modules/@supabase/postgrest-js/lib/Request.js\"));Object.defineProperty(exports,\"__esModule\",{value:!0}),exports[\"default\"]=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError(\"Cannot call a class as a function\")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,\"value\"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}/**\n * Allows the user to stack the filter functions before they call any of\n *\n * select() - \"get\"\n *\n * insert() - \"post\"\n *\n * update() - \"patch\"\n *\n * delete() - \"delete\"\n *\n * Once any of these are called the filters are passed down to the Request\n *\n * @class\n * @param {string} url The full URL\n */var Builder=/*#__PURE__*/function(){function a(b){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=2<arguments.length?arguments[2]:void 0;_classCallCheck(this,a),this.url=b,this.queryFilters=[],this.headers=c,this.schema=d}return _createClass(a,[{key:\"request\",value:function request(a){return this.schema&&(\"GET\"==a?this.headers[\"Accept-Profile\"]=this.schema:this.headers[\"Content-Profile\"]=this.schema),new _Request[\"default\"](a,this.url,this.headers)}},{key:\"addFilters\",value:function addFilters(a){this.queryFilters.forEach(function(b){switch(b.filter){case\"filter\":a.filter(b.columnName,b.operator,b.criteria);break;case\"not\":a.not(b.columnName,b.operator,b.criteria);break;case\"match\":a.match(b.query);break;case\"order\":a.order(b.columnName,b.ascending,b.nullsFirst);break;case\"limit\":a.limit(b.criteria,b.columnName);break;case\"offset\":a.offset(b.criteria,b.columnName);break;case\"range\":a.range(b.from,b.to);break;case\"single\":a.single();break;default:}})}},{key:\"filter\",value:function filter(a,b,c){return this.queryFilters.push({filter:\"filter\",columnName:a,operator:b,criteria:c}),this}},{key:\"not\",value:function not(a,b,c){return this.queryFilters.push({filter:\"not\",columnName:a,operator:b,criteria:c}),this}},{key:\"match\",value:function match(a){return this.queryFilters.push({filter:\"match\",query:a}),this}},{key:\"order\",value:function order(a){var b=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],c=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];return this.queryFilters.push({filter:\"order\",columnName:a,ascending:b,nullsFirst:c}),this}},{key:\"limit\",value:function limit(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return this.queryFilters.push({filter:\"limit\",criteria:a,columnName:b}),this}},{key:\"offset\",value:function offset(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return this.queryFilters.push({filter:\"offset\",columnName:b,criteria:a}),this}},{key:\"range\",value:function range(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return this.queryFilters.push({filter:\"range\",from:a,to:b}),this}},{key:\"single\",value:function single(){return this.queryFilters.push({filter:\"single\"}),this}/**\n * Start a \"GET\" request\n */},{key:\"select\",value:function select(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:\"*\",b=this.request(\"GET\");return b.select(a),this.addFilters(b),b}/**\n * Start a \"POST\" request\n */},{key:\"insert\",value:function insert(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{upsert:!1},c=this.request(\"POST\"),d=b.upsert?\"return=representation,resolution=merge-duplicates\":\"return=representation\";return c.set(\"Prefer\",d),c.send(a),this.addFilters(c),c}/**\n * Start a \"PATCH\" request\n */},{key:\"update\",value:function update(a){var b=this.request(\"PATCH\");return Array.isArray(a)?{body:null,status:400,statusCode:400,statusText:\"Data type should be an object.\"}:(b.set(\"Prefer\",\"return=representation\"),b.send(a),this.addFilters(b),b)}/**\n * Start a \"DELETE\" request\n */},{key:\"delete\",value:function _delete(){var a=this.request(\"DELETE\");return this.addFilters(a),a}}]),a}(),advancedFilters=[\"eq\",\"neq\",\"gt\",\"lt\",\"gte\",\"lte\",\"like\",\"ilike\",\"is\",\"in\",\"fts\",\"plfts\",\"phfts\",\"wfts\",\"cs\",\"cd\",\"ova\",\"ovr\",\"sl\",\"sr\",\"nxr\",\"nxl\",\"adj\"];// pre-empts if any of the filters are used before select\nadvancedFilters.forEach(function(a){return Builder.prototype[a]=function(b,c){return this.filter(b,a,c),this}});var _default=Builder;exports[\"default\"]=_default;\n\n//# sourceURL=webpack:///./node_modules/@supabase/postgrest-js/lib/Builder.js?");
/***/ }),
/***/ "./node_modules/@supabase/postgrest-js/lib/Request.js":
/*!************************************************************!*\
!*** ./node_modules/@supabase/postgrest-js/lib/Request.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("Object.defineProperty(exports,\"__esModule\",{value:!0}),exports[\"default\"]=void 0;var _superagent=__webpack_require__(/*! superagent */ \"./node_modules/superagent/lib/client.js\"),Filters=_interopRequireWildcard(__webpack_require__(/*! ./utils/Filters */ \"./node_modules/@supabase/postgrest-js/lib/utils/Filters.js\")),Helpers=_interopRequireWildcard(__webpack_require__(/*! ./utils/Helpers */ \"./node_modules/@supabase/postgrest-js/lib/utils/Helpers.js\"));function _getRequireWildcardCache(){if(\"function\"!=typeof WeakMap)return null;var a=new WeakMap;return _getRequireWildcardCache=function(){return a},a}function _interopRequireWildcard(a){if(a&&a.__esModule)return a;if(null===a||\"object\"!==_typeof(a)&&\"function\"!=typeof a)return{default:a};var b=_getRequireWildcardCache();if(b&&b.has(a))return b.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var f=d?Object.getOwnPropertyDescriptor(a,e):null;f&&(f.get||f.set)?Object.defineProperty(c,e,f):c[e]=a[e]}return c[\"default\"]=a,b&&b.set(a,c),c}function _typeof(a){\"@babel/helpers - typeof\";return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&\"function\"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?\"symbol\":typeof a},_typeof(a)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError(\"Cannot call a class as a function\")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,\"value\"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}function _get(a,b,c){return _get=\"undefined\"!=typeof Reflect&&Reflect.get?Reflect.get:function(a,b,c){var d=_superPropBase(a,b);if(d){var e=Object.getOwnPropertyDescriptor(d,b);return e.get?e.get.call(c):e.value}},_get(a,b,c||a)}function _superPropBase(a,b){for(;!Object.prototype.hasOwnProperty.call(a,b)&&(a=_getPrototypeOf(a),null!==a););return a}function _inherits(a,b){if(\"function\"!=typeof b&&null!==b)throw new TypeError(\"Super expression must either be null or a function\");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),b&&_setPrototypeOf(a,b)}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _createSuper(a){return function(){var b,c=_getPrototypeOf(a);if(_isNativeReflectConstruct()){var d=_getPrototypeOf(this).constructor;b=Reflect.construct(c,arguments,d)}else b=c.apply(this,arguments);return _possibleConstructorReturn(this,b)}}function _possibleConstructorReturn(a,b){return b&&(\"object\"===_typeof(b)||\"function\"==typeof b)?b:_assertThisInitialized(a)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return a}function _isNativeReflectConstruct(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}var contentRangeStructure=/^(\\d+)-(\\d+)\\/(\\d+)$/,Request=/*#__PURE__*/function(a){function b(a,d){var e,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(_classCallCheck(this,b),e=c.call(this,a,d),e.set(\"Accept\",\"application/json\"),{}!=f)for(var g in f)e.set(g,f[g]);// Fix for superagent disconnect on client & server.\nreturn e.get||(e.get=e.getHeader),e}/**\n * Set auth using special formats. If only one string parameter is passed, it\n * is interpreted as a bearer token. If an object and nothing else is passed,\n * `user` and `pass` keys are extracted from it and used for basic auth.\n *\n * @param {string|object} user The user, bearer token, or user/pass object.\n * @param {string|void} pass The pass or undefined.\n * @returns {Request} The API request object.\n */_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:\"auth\",value:function auth(a,c){return\"string\"==typeof a&&null==c?(this.set(\"Authorization\",\"Bearer \".concat(a)),this):(\"object\"===_typeof(a)&&null==c&&(c=a.pass,a=a.user),_get(_getPrototypeOf(b.prototype),\"auth\",this).call(this,a,c))}/**\n * Generic filter method.\n * @param {string} columnName The name of the column.\n * @param {string} filter The type of filter\n * @param { object | array | string | integer | boolean | null } criteria The value of the column to be filtered.\n * @name filter\n * @function\n * @memberOf module:Filters\n * @returns {string}\n */},{key:\"filter\",value:funcLine truncated
/***/ }),
/***/ "./node_modules/@supabase/postgrest-js/lib/index.js":
/*!**********************************************************!*\
!*** ./node_modules/@supabase/postgrest-js/lib/index.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("function _typeof(a){\"@babel/helpers - typeof\";return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&\"function\"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?\"symbol\":typeof a},_typeof(a)}Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.PostgrestClient=void 0;var _Builder=_interopRequireDefault(__webpack_require__(/*! ./Builder */ \"./node_modules/@supabase/postgrest-js/lib/Builder.js\")),_Request=_interopRequireDefault(__webpack_require__(/*! ./Request */ \"./node_modules/@supabase/postgrest-js/lib/Request.js\")),Helpers=_interopRequireWildcard(__webpack_require__(/*! ./utils/Helpers */ \"./node_modules/@supabase/postgrest-js/lib/utils/Helpers.js\"));function _getRequireWildcardCache(){if(\"function\"!=typeof WeakMap)return null;var a=new WeakMap;return _getRequireWildcardCache=function(){return a},a}function _interopRequireWildcard(a){if(a&&a.__esModule)return a;if(null===a||\"object\"!==_typeof(a)&&\"function\"!=typeof a)return{default:a};var b=_getRequireWildcardCache();if(b&&b.has(a))return b.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var f=d?Object.getOwnPropertyDescriptor(a,e):null;f&&(f.get||f.set)?Object.defineProperty(c,e,f):c[e]=a[e]}return c[\"default\"]=a,b&&b.set(a,c),c}function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError(\"Cannot call a class as a function\")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,\"value\"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}var PostgrestClient=/*#__PURE__*/function(){function a(b){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,a),this.restUrl=b,this.headers={},this.queryString=null,this.schema=null,c.headers&&(this.headers=c.headers),c.queryParams&&(this.queryString=Helpers.objectToQueryString(c.queryParams)),c.schema&&(this.schema=c.schema)}return _createClass(a,[{key:\"from\",value:function from(a){var b=\"\".concat(this.restUrl,\"/\").concat(a);return this.queryString&&(b+=\"?\".concat(this.queryString)),new _Builder[\"default\"](b,this.headers,this.schema)}},{key:\"rpc\",value:function rpc(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,c=\"\".concat(this.restUrl,\"/rpc/\").concat(a),d=this.headers;this.queryString&&(c+=\"?\".concat(this.queryString)),this.schema&&(d[\"Content-Profile\"]=this.schema,d[\"Accept-Profile\"]=this.schema);var e=new _Request[\"default\"](\"post\",c,d);return null!=b&&e.send(b),e}}]),a}();exports.PostgrestClient=PostgrestClient;\n\n//# sourceURL=webpack:///./node_modules/@supabase/postgrest-js/lib/index.js?");
/***/ }),
/***/ "./node_modules/@supabase/postgrest-js/lib/utils/Filters.js":
/*!******************************************************************!*\
!*** ./node_modules/@supabase/postgrest-js/lib/utils/Filters.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("var Helpers=_interopRequireWildcard(__webpack_require__(/*! ./Helpers */ \"./node_modules/@supabase/postgrest-js/lib/utils/Helpers.js\"));function _typeof(a){\"@babel/helpers - typeof\";return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&\"function\"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?\"symbol\":typeof a},_typeof(a)}Object.defineProperty(exports,\"__esModule\",{value:!0}),exports._eq=_eq,exports._gt=_gt,exports._lt=_lt,exports._gte=_gte,exports._lte=_lte,exports._like=_like,exports._ilike=_ilike,exports._is=_is,exports._in=_in,exports._neq=_neq,exports._fts=_fts,exports._plfts=_plfts,exports._phfts=_phfts,exports._wfts=_wfts,exports._cs=_cs,exports._cd=_cd,exports._ova=_ova,exports._ovr=_ovr,exports._sl=_sl,exports._sr=_sr,exports._nxl=_nxl,exports._nxr=_nxr,exports._adj=_adj;function _getRequireWildcardCache(){if(\"function\"!=typeof WeakMap)return null;var a=new WeakMap;return _getRequireWildcardCache=function(){return a},a}function _interopRequireWildcard(a){if(a&&a.__esModule)return a;if(null===a||\"object\"!==_typeof(a)&&\"function\"!=typeof a)return{default:a};var b=_getRequireWildcardCache();if(b&&b.has(a))return b.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var f=d?Object.getOwnPropertyDescriptor(a,e):null;f&&(f.get||f.set)?Object.defineProperty(c,e,f):c[e]=a[e]}return c[\"default\"]=a,b&&b.set(a,c),c}/** @module Filters **/ /**\n * All exports are prefixed with an underscore to avoid collisions with reserved keywords (eg: \"in\")\n */ /**\n * Finds all rows whose value on the stated columnName exactly matches the specified filterValue.\n * @param {string} columnName Name of the database column\n * @param { string | integer | boolean } filterValue Value to match\n * @name eq\n * @function\n * @returns {string}\n * \n * @example\n * _eq('name', 'New Zealand')\n * //=>\n * 'name=eq.New Zealand'\n */function _eq(a,b){return\"\".concat(a,\"=eq.\").concat(b)}/**\n * Finds all rows whose value on the stated columnName is greater than the specified filterValue. \n * @param {string} columnName Name of the database column\n * @param { string | integer | boolean } filterValue Value to match\n * @name gt\n * @function\n * @returns {string}\n * \n * @example\n * _gt('id', 20)\n * //=>\n * 'id=gt.20'\n */function _gt(a,b){return\"\".concat(a,\"=gt.\").concat(b)}/**\n * Finds all rows whose value on the stated columnName is less than the specified filterValue. \n * @param {string} columnName Name of the database column\n * @param { string | integer | boolean } filterValue Value to match\n * @name lt\n * @function\n * @returns {string}\n * \n * @example\n * _lt('id', 20)\n * //=>\n * 'id=lt.20'\n */function _lt(a,b){return\"\".concat(a,\"=lt.\").concat(b)}/**\n * Finds all rows whose value on the stated columnName is greater than or equal to the specified filterValue. \n * @param {string} columnName Name of the database column\n * @param { string | integer | boolean } filterValue Value to match\n * @name gte\n * @function\n * @returns {string}\n * \n * @example\n * _gte('id', 20)\n * //=>\n * 'id=gte.20'\n */function _gte(a,b){return\"\".concat(a,\"=gte.\").concat(b)}/**\n * Finds all rows whose value on the stated columnName is less than or equal to the specified filterValue. \n * @param {string} columnName Name of the database column\n * @param { string | integer | boolean } filterValue Value to match\n * @name lte\n * @function\n * @returns {string}\n * \n * @example\n * _lte('id', 20)\n * //=>\n * 'id=lte.20'\n */function _lte(a,b){return\"\".concat(a,\"=lte.\").concat(b)}/**\n * Finds all rows whose value in the stated columnName matches the supplied pattern (case sensitive). \n * @param {string} columnName Name of the database column\n * @param { string } stringPattern String pattern to compare to\n * @name like\n * @function\n * @returns {string}\n * \n * @example\n * _like('name', '%United%')\n * //=>\n * 'name=like.*United*'\n * \n * @example\n * _like('name', '%United States%')\n * //=>\n * 'name=like.*United States*'\n */function _like(a,b){var c=b.replace(/%/g,\"*\");return\"\".concat(a,\"=like.\").concat(c)}/**\n * Finds all rows whose value in the stated columnName matches the supplied pattern (case insensitive). \n * @param {string} columnName Name of the database column\n * @param { string } stringPattern String pattern to compare to\n * @name ilike\n * @function\n * @returns {string}\n * \n * @example\n * _ilike('name', '%United%')\n * //=>\n * 'name=ilike.*United*'\n * \n * @example\n * _ilike('name', '%United states%')\n * //=>\n * 'name=ilike.*United states*'\n */function _ilike(a,b){var c=b.replace(/%/g,\"*\");return\"\".concat(a,\"=ilike.\").concat(c)}/**\n * A check for exact equality (null, true, false), finds all rows whose value on the state columnName exactly match the specified filterValueLine truncated
/***/ }),
/***/ "./node_modules/@supabase/postgrest-js/lib/utils/Helpers.js":
/*!******************************************************************!*\
!*** ./node_modules/@supabase/postgrest-js/lib/utils/Helpers.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.objectToQueryString=objectToQueryString,exports.cleanFilterArray=cleanFilterArray,exports.cleanColumnName=cleanColumnName;/**\n * @param {object} obj\n * @private\n * @returns {string}\n */function objectToQueryString(a){return Object.keys(a).map(function(b){return\"\".concat(b,\"=\").concat(a[b])}).join(\"&\")}function cleanFilterArray(a){var b=a.map(function(a){var b;return b=\"string\"==typeof a&&(a.includes(\",\")||a.includes(\"(\")||a.includes(\")\"))?\"\\\"\".concat(a,\"\\\"\"):a,b});return b}function cleanColumnName(a){var b=a,c=null;return a.includes(\".\")&&(b=a.split(\".\")[1],c=a.split(\".\")[0]),{cleanedColumnName:b,foreignTableName:c}}\n\n//# sourceURL=webpack:///./node_modules/@supabase/postgrest-js/lib/utils/Helpers.js?");
/***/ }),
/***/ "./node_modules/@supabase/realtime-js/src/channel.js":
/*!***********************************************************!*\
!*** ./node_modules/@supabase/realtime-js/src/channel.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("const { CHANNEL_EVENTS, CHANNEL_STATES } = __webpack_require__(/*! ./constants */ \"./node_modules/@supabase/realtime-js/src/constants.js\")\nconst Push = __webpack_require__(/*! ./push */ \"./node_modules/@supabase/realtime-js/src/push.js\")\nconst Timer = __webpack_require__(/*! ./timer */ \"./node_modules/@supabase/realtime-js/src/timer.js\")\n\nclass Channel {\n constructor(topic, params, socket) {\n this.state = CHANNEL_STATES.closed\n this.topic = topic\n this.params = params || {}\n this.socket = socket\n this.bindings = []\n this.timeout = this.socket.timeout\n this.joinedOnce = false\n this.joinPush = new Push(this, CHANNEL_EVENTS.join, this.params, this.timeout)\n this.pushBuffer = []\n this.rejoinTimer = new Timer(\n () => this.rejoinUntilConnected(),\n this.socket.reconnectAfterMs\n )\n this.joinPush.receive(\"ok\", () => {\n this.state = CHANNEL_STATES.joined\n this.rejoinTimer.reset()\n this.pushBuffer.forEach( pushEvent => pushEvent.send() )\n this.pushBuffer = []\n })\n this.onClose( () => {\n this.rejoinTimer.reset()\n this.socket.log(\"channel\", `close ${this.topic} ${this.joinRef()}`)\n this.state = CHANNEL_STATES.closed\n this.socket.remove(this)\n })\n this.onError( reason => { if(this.isLeaving() || this.isClosed()){ return }\n this.socket.log(\"channel\", `error ${this.topic}`, reason)\n this.state = CHANNEL_STATES.errored\n this.rejoinTimer.scheduleTimeout()\n })\n this.joinPush.receive(\"timeout\", () => { if(!this.isJoining()){ return }\n this.socket.log(\"channel\", `timeout ${this.topic}`, this.joinPush.timeout)\n this.state = CHANNEL_STATES.errored\n this.rejoinTimer.scheduleTimeout()\n })\n this.on(CHANNEL_EVENTS.reply, (payload, ref) => {\n this.trigger(this.replyEventName(ref), payload)\n })\n }\n\n rejoinUntilConnected(){\n this.rejoinTimer.scheduleTimeout()\n if(this.socket.isConnected()){\n this.rejoin()\n }\n }\n\n join(timeout = this.timeout){\n if(this.joinedOnce){\n throw(`tried to join multiple times. 'join' can only be called a single time per channel instance`)\n } else {\n this.joinedOnce = true\n this.rejoin(timeout)\n return this.joinPush\n }\n }\n\n onClose(callback){ this.on(CHANNEL_EVENTS.close, callback) }\n\n onError(callback){\n this.on(CHANNEL_EVENTS.error, reason => callback(reason) )\n }\n\n on(event, callback){ this.bindings.push({event, callback}) }\n\n off(event){ this.bindings = this.bindings.filter( bind => bind.event !== event ) }\n\n canPush(){ return this.socket.isConnected() && this.isJoined() }\n\n push(event, payload, timeout = this.timeout){\n if(!this.joinedOnce){\n throw(`tried to push '${event}' to '${this.topic}' before joining. Use channel.join() before pushing events`)\n }\n let pushEvent = new Push(this, event, payload, timeout)\n if(this.canPush()){\n pushEvent.send()\n } else {\n pushEvent.startTimeout()\n this.pushBuffer.push(pushEvent)\n }\n\n return pushEvent\n }\n\n // Leaves the channel\n //\n // Unsubscribes from server events, and\n // instructs channel to terminate on server\n //\n // Triggers onClose() hooks\n //\n // To receive leave acknowledgements, use the a `receive`\n // hook to bind to the server ack, ie:\n //\n // channel.leave().receive(\"ok\", () => alert(\"left!\") )\n //\n leave(timeout = this.timeout){\n this.state = CHANNEL_STATES.leaving\n let onClose = () => {\n this.socket.log(\"channel\", `leave ${this.topic}`)\n this.trigger(CHANNEL_EVENTS.close, \"leave\", this.joinRef())\n }\n let leavePush = new Push(this, CHANNEL_EVENTS.leave, {}, timeout)\n leavePush.receive(\"ok\", () => onClose() )\n .receive(\"timeout\", () => onClose() )\n leavePush.send()\n if(!this.canPush()){ leavePush.trigger(\"ok\", {}) }\n\n return leavePush\n }\n\n // Overridable message hook\n //\n // Receives all events for specialized message handling\n // before dispatching to the channel callbacks.\n //\n // Must return the payload, modified or unmodified\n onMessage(event, payload, ref){ return payload }\n\n // private\n\n isMember(topic){ return this.topic === topic }\n\n joinRef(){ return this.joinPush.ref }\n\n sendJoin(timeout){\n this.state = CHANNEL_STATES.joining\n this.joinPush.resend(timeout)\n }\n\n rejoin(timeout = this.timeout){ if(this.isLeaving()){ return }\n this.sendJoin(timeout)\n }\n\n trigger(event, payload, ref){\n let {close, error, leave, join} = CHANNEL_EVENTS\n if(ref && [close, error, leave, join].indexOf(event) >= 0 && ref !== this.joinRef()){\n return\n }\n let handledPayload = this.onMessage(event, payload, ref)\n if(payload && !handledPayload){ throw(\"channel onMessage callbacks must return the payload, modified Line truncated
/***/ }),
/***/ "./node_modules/@supabase/realtime-js/src/constants.js":
/*!*************************************************************!*\
!*** ./node_modules/@supabase/realtime-js/src/constants.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = {\n VSN: \"1.0.0\",\n SOCKET_STATES: {connecting: 0, open: 1, closing: 2, closed: 3},\n DEFAULT_TIMEOUT: 10000,\n WS_CLOSE_NORMAL: 1000,\n CHANNEL_STATES: {\n closed: \"closed\",\n errored: \"errored\",\n joined: \"joined\",\n joining: \"joining\",\n leaving: \"leaving\",\n },\n CHANNEL_EVENTS: {\n close: \"phx_close\",\n error: \"phx_error\",\n join: \"phx_join\",\n reply: \"phx_reply\",\n leave: \"phx_leave\",\n },\n TRANSPORTS: {\n websocket: \"websocket\",\n },\n}\n\n\n//# sourceURL=webpack:///./node_modules/@supabase/realtime-js/src/constants.js?");
/***/ }),
/***/ "./node_modules/@supabase/realtime-js/src/index.js":
/*!*********************************************************!*\
!*** ./node_modules/@supabase/realtime-js/src/index.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("// Phoenix Channels JavaScript client\n//\n// ## Socket Connection\n//\n// A single connection is established to the server and\n// channels are multiplexed over the connection.\n// Connect to the server using the `Socket` class:\n//\n// let socket = new Socket(\"/socket\", {params: {userToken: \"123\"}})\n// socket.connect()\n//\n// The `Socket` constructor takes the mount point of the socket,\n// the authentication params, as well as options that can be found in\n// the Socket docs, such as configuring the heartbeat.\n//\n// ## Channels\n//\n// Channels are isolated, concurrent processes on the server that\n// subscribe to topics and broker events between the client and server.\n// To join a channel, you must provide the topic, and channel params for\n// authorization. Here's an example chat room example where `\"new_msg\"`\n// events are listened for, messages are pushed to the server, and\n// the channel is joined with ok/error/timeout matches:\n//\n// let channel = socket.channel(\"room:123\", {token: roomToken})\n// channel.on(\"new_msg\", msg => console.log(\"Got message\", msg) )\n// $input.onEnter( e => {\n// channel.push(\"new_msg\", {body: e.target.val}, 10000)\n// .receive(\"ok\", (msg) => console.log(\"created message\", msg) )\n// .receive(\"error\", (reasons) => console.log(\"create failed\", reasons) )\n// .receive(\"timeout\", () => console.log(\"Networking issue...\") )\n// })\n// channel.join()\n// .receive(\"ok\", ({messages}) => console.log(\"catching up\", messages) )\n// .receive(\"error\", ({reason}) => console.log(\"failed join\", reason) )\n// .receive(\"timeout\", () => console.log(\"Networking issue. Still waiting...\") )\n//\n//\n// ## Joining\n//\n// Creating a channel with `socket.channel(topic, params)`, binds the params to\n// `channel.params`, which are sent up on `channel.join()`.\n// Subsequent rejoins will send up the modified params for\n// updating authorization params, or passing up last_message_id information.\n// Successful joins receive an \"ok\" status, while unsuccessful joins\n// receive \"error\".\n//\n// ## Duplicate Join Subscriptions\n//\n// While the client may join any number of topics on any number of channels,\n// the client may only hold a single subscription for each unique topic at any\n// given time. When attempting to create a duplicate subscription,\n// the server will close the existing channel, log a warning, and\n// spawn a new channel for the topic. The client will have their\n// `channel.onClose` callbacks fired for the existing channel, and the new\n// channel join will have its receive hooks processed as normal.\n//\n// ## Pushing Messages\n//\n// From the previous example, we can see that pushing messages to the server\n// can be done with `channel.push(eventName, payload)` and we can optionally\n// receive responses from the push. Additionally, we can use\n// `receive(\"timeout\", callback)` to abort waiting for our other `receive` hooks\n// and take action after some period of waiting. The default timeout is 5000ms.\n//\n//\n// ## Socket Hooks\n//\n// Lifecycle events of the multiplexed connection can be hooked into via\n// `socket.onError()` and `socket.onClose()` events, ie:\n//\n// socket.onError( () => console.log(\"there was an error with the connection!\") )\n// socket.onClose( () => console.log(\"the connection dropped\") )\n//\n//\n// ## Channel Hooks\n//\n// For each joined channel, you can bind to `onError` and `onClose` events\n// to monitor the channel lifecycle, ie:\n//\n// channel.onError( () => console.log(\"there was an error!\") )\n// channel.onClose( () => console.log(\"the channel has gone away gracefully\") )\n//\n// ### onError hooks\n//\n// `onError` hooks are invoked if the socket connection drops, or the channel\n// crashes on the server. In either case, a channel rejoin is attempted\n// automatically in an exponential backoff manner.\n//\n// ### onClose hooks\n//\n// `onClose` hooks are invoked only in two cases. 1) the channel explicitly\n// closed on the server, or 2). The client explicitly closed, by calling\n// `channel.leave()`\n//\n//\n// ## Presence\n//\n// The `Presence` object provides features for syncing presence information\n// from the server with the client and handling presences joining and leaving.\n//\n// ### Syncing initial state from the server\n//\n// `Presence.syncState` is used to sync the list of presences on the server\n// with the client's state. An optional `onJoin` and `onLeave` callback can\n// be provided to react to changes in the client's local presences across\n// disconnects and reconnects with the server.\n//\n// `Presence.syncDiff` is used to sync a diff of presence join and leave\n// events from the server, as they happen. Like `syncState`, `syncDiff`\n// accepts optional `onJoin` and `onLeave` callbacks to react to a user\n// joining or leaving from a device.\n//\n// ### Listing Pre Line truncated
/***/ }),
/***/ "./node_modules/@supabase/realtime-js/src/presence.js":
/*!************************************************************!*\
!*** ./node_modules/@supabase/realtime-js/src/presence.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("var Presence = {\n\n syncState(currentState, newState, onJoin, onLeave){\n let state = this.clone(currentState)\n let joins = {}\n let leaves = {}\n\n this.map(state, (key, presence) => {\n if(!newState[key]){\n leaves[key] = presence\n }\n })\n this.map(newState, (key, newPresence) => {\n let currentPresence = state[key]\n if(currentPresence){\n let newRefs = newPresence.metas.map(m => m.phx_ref)\n let curRefs = currentPresence.metas.map(m => m.phx_ref)\n let joinedMetas = newPresence.metas.filter(m => curRefs.indexOf(m.phx_ref) < 0)\n let leftMetas = currentPresence.metas.filter(m => newRefs.indexOf(m.phx_ref) < 0)\n if(joinedMetas.length > 0){\n joins[key] = newPresence\n joins[key].metas = joinedMetas\n }\n if(leftMetas.length > 0){\n leaves[key] = this.clone(currentPresence)\n leaves[key].metas = leftMetas\n }\n } else {\n joins[key] = newPresence\n }\n })\n return this.syncDiff(state, {joins: joins, leaves: leaves}, onJoin, onLeave)\n },\n\n syncDiff(currentState, {joins, leaves}, onJoin, onLeave){\n let state = this.clone(currentState)\n if(!onJoin){ onJoin = function(){} }\n if(!onLeave){ onLeave = function(){} }\n\n this.map(joins, (key, newPresence) => {\n let currentPresence = state[key]\n state[key] = newPresence\n if(currentPresence){\n state[key].metas.unshift(...currentPresence.metas)\n }\n onJoin(key, currentPresence, newPresence)\n })\n this.map(leaves, (key, leftPresence) => {\n let currentPresence = state[key]\n if(!currentPresence){ return }\n let refsToRemove = leftPresence.metas.map(m => m.phx_ref)\n currentPresence.metas = currentPresence.metas.filter(p => {\n return refsToRemove.indexOf(p.phx_ref) < 0\n })\n onLeave(key, currentPresence, leftPresence)\n if(currentPresence.metas.length === 0){\n delete state[key]\n }\n })\n return state\n },\n\n list(presences, chooser){\n if(!chooser){ chooser = function(key, pres){ return pres } }\n\n return this.map(presences, (key, presence) => {\n return chooser(key, presence)\n })\n },\n\n // private\n\n map(obj, func){\n return Object.getOwnPropertyNames(obj).map(key => func(key, obj[key]))\n },\n\n clone(obj){\n return JSON.parse(JSON.stringify(obj))\n },\n}\n\nmodule.exports = Presence\n\n//# sourceURL=webpack:///./node_modules/@supabase/realtime-js/src/presence.js?");
/***/ }),
/***/ "./node_modules/@supabase/realtime-js/src/push.js":
/*!********************************************************!*\
!*** ./node_modules/@supabase/realtime-js/src/push.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("\nclass Push {\n\n // Initializes the Push\n //\n // channel - The Channel\n // event - The event, for example `\"phx_join\"`\n // payload - The payload, for example `{user_id: 123}`\n // timeout - The push timeout in milliseconds\n //\n constructor(channel, event, payload, timeout){\n this.channel = channel\n this.event = event\n this.payload = payload || {}\n this.receivedResp = null\n this.timeout = timeout\n this.timeoutTimer = null\n this.recHooks = []\n this.sent = false\n }\n\n resend(timeout){\n this.timeout = timeout\n this.cancelRefEvent()\n this.ref = null\n this.refEvent = null\n this.receivedResp = null\n this.sent = false\n this.send()\n }\n\n send(){ if(this.hasReceived(\"timeout\")){ return }\n this.startTimeout()\n this.sent = true\n this.channel.socket.push({\n topic: this.channel.topic,\n event: this.event,\n payload: this.payload,\n ref: this.ref,\n })\n }\n\n receive(status, callback){\n if(this.hasReceived(status)){\n callback(this.receivedResp.response)\n }\n\n this.recHooks.push({status, callback})\n return this\n }\n\n\n // private\n\n matchReceive({status, response, ref}){\n this.recHooks.filter( h => h.status === status )\n .forEach( h => h.callback(response) )\n }\n\n cancelRefEvent(){ if(!this.refEvent){ return }\n this.channel.off(this.refEvent)\n }\n\n cancelTimeout(){\n clearTimeout(this.timeoutTimer)\n this.timeoutTimer = null\n }\n\n startTimeout(){ if(this.timeoutTimer){ return }\n this.ref = this.channel.socket.makeRef()\n this.refEvent = this.channel.replyEventName(this.ref)\n\n this.channel.on(this.refEvent, payload => {\n this.cancelRefEvent()\n this.cancelTimeout()\n this.receivedResp = payload\n this.matchReceive(payload)\n })\n\n this.timeoutTimer = setTimeout(() => {\n this.trigger(\"timeout\", {})\n }, this.timeout)\n }\n\n hasReceived(status){\n return this.receivedResp && this.receivedResp.status === status\n }\n\n trigger(status, response){\n this.channel.trigger(this.refEvent, {status, response})\n }\n}\n\nmodule.exports = Push\n\n//# sourceURL=webpack:///./node_modules/@supabase/realtime-js/src/push.js?");
/***/ }),
/***/ "./node_modules/@supabase/realtime-js/src/socket.js":
/*!**********************************************************!*\
!*** ./node_modules/@supabase/realtime-js/src/socket.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("const {\n VSN,\n CHANNEL_EVENTS,\n TRANSPORTS,\n SOCKET_STATES,\n DEFAULT_TIMEOUT,\n WS_CLOSE_NORMAL ,\n} = __webpack_require__(/*! ./constants */ \"./node_modules/@supabase/realtime-js/src/constants.js\")\n\nconst querystring = __webpack_require__(/*! query-string */ \"./node_modules/query-string/index.js\")\nconst WebSocket = __webpack_require__(/*! websocket */ \"./node_modules/websocket/lib/browser.js\").w3cwebsocket\nconst Timer = __webpack_require__(/*! ./timer */ \"./node_modules/@supabase/realtime-js/src/timer.js\")\nconst Channel = __webpack_require__(/*! ./channel */ \"./node_modules/@supabase/realtime-js/src/channel.js\")\n\nclass Socket {\n\n // Initializes the Socket\n //\n // endPoint - The string WebSocket endpoint, ie, \"ws://example.com/socket\",\n // \"wss://example.com\"\n // \"/socket\" (inherited host & protocol)\n // opts - Optional configuration\n // transport - The Websocket Transport, for example WebSocket.\n //\n // encode - The function to encode outgoing messages. Defaults to JSON:\n //\n // (payload, callback) => callback(JSON.stringify(payload))\n //\n // decode - The function to decode incoming messages. Defaults to JSON:\n //\n // (payload, callback) => callback(JSON.parse(payload))\n //\n // timeout - The default timeout in milliseconds to trigger push timeouts.\n // Defaults `DEFAULT_TIMEOUT`\n // heartbeatIntervalMs - The millisec interval to send a heartbeat message\n // reconnectAfterMs - The optional function that returns the millsec\n // reconnect interval. Defaults to stepped backoff of:\n //\n // function(tries){\n // return [1000, 5000, 10000][tries - 1] || 10000\n // }\n //\n // logger - The optional function for specialized logging, ie:\n // `logger: (kind, msg, data) => { console.log(`${kind}: ${msg}`, data) }\n //\n // longpollerTimeout - The maximum timeout of a long poll AJAX request.\n // Defaults to 20s (double the server long poll timer).\n //\n // params - The optional params to pass when connecting\n //\n // For IE8 support use an ES5-shim (https://github.com/es-shims/es5-shim)\n //\n constructor(endPoint, opts = {}){\n // we would want to check if the provided endPoint comes along with any\n // query parameters\n\n this.stateChangeCallbacks = {open: [], close: [], error: [], message: []}\n this.channels = []\n this.sendBuffer = []\n this.ref = 0\n this.timeout = opts.timeout || DEFAULT_TIMEOUT\n this.transport = opts.transport || WebSocket\n this.defaultEncoder = (payload, callback) => callback(JSON.stringify(payload))\n this.defaultDecoder = (payload, callback) => callback(JSON.parse(payload))\n\n this.encode = opts.encode || this.defaultEncoder\n this.decode = opts.decode || this.defaultDecoder\n\n this.heartbeatIntervalMs = opts.heartbeatIntervalMs || 30000\n this.reconnectAfterMs = opts.reconnectAfterMs || function(tries){\n return [1000, 2000, 5000, 10000][tries - 1] || 10000\n }\n this.logger = opts.logger || function(){} // noop\n this.longpollerTimeout = opts.longpollerTimeout || 20000\n this.params = opts.params || {}\n this.headers = opts.headers || {}\n this.endPoint = `${endPoint}/${TRANSPORTS.websocket}`\n this.heartbeatTimer = null\n this.pendingHeartbeatRef = null\n this.reconnectTimer = new Timer(() => {\n this.disconnect(() => this.connect())\n }, this.reconnectAfterMs)\n }\n\n endPointURL(){\n return this.appendParams(this.endPoint, Object.assign({}, this.params, {vsn: VSN}))\n }\n\n appendParams(url, params){\n if(Object.keys(params).length === 0){ return url }\n\n let prefix = url.match(/\\?/) ? \"&\" : \"?\"\n return `${url}${prefix}${querystring.stringify(params)}`\n }\n\n disconnect(callback, code, reason){\n if(this.conn){\n this.conn.onclose = function(){} // noop\n if(code){ this.conn.close(code, reason || \"\") } else { this.conn.close() }\n this.conn = null\n }\n callback && callback()\n }\n\n connect(){\n if(this.conn){ return }\n\n this.conn = new this.transport(this.endPointURL(), [], null, this.headers)\n this.conn.timeout = this.longpollerTimeout\n this.conn.onopen = () => this.onConnOpen()\n this.conn.onerror = error => this.onConnError(error)\n this.conn.onmessage = event => this.onConnMessage(event)\n this.conn.onclose = event => this.onConnClose(event)\n }\n\n // Logs the message. Override `this.logger` for specialized logging. noops by default\n log(kind, msg, data){ this.logger(kind, msg, data) }\n\n // Registers callbacks for connection state change events\n //\n // Exampl Line truncated
/***/ }),
/***/ "./node_modules/@supabase/realtime-js/src/timer.js":
/*!*********************************************************!*\
!*** ./node_modules/@supabase/realtime-js/src/timer.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("\n// Creates a timer that accepts a `timerCalc` function to perform\n// calculated timeout retries, such as exponential backoff.\n//\n// ## Examples\n//\n// let reconnectTimer = new Timer(() => this.connect(), function(tries){\n// return [1000, 5000, 10000][tries - 1] || 10000\n// })\n// reconnectTimer.scheduleTimeout() // fires after 1000\n// reconnectTimer.scheduleTimeout() // fires after 5000\n// reconnectTimer.reset()\n// reconnectTimer.scheduleTimeout() // fires after 1000\n//\nclass Timer {\n constructor(callback, timerCalc){\n this.callback = callback\n this.timerCalc = timerCalc\n this.timer = null\n this.tries = 0\n }\n\n reset(){\n this.tries = 0\n clearTimeout(this.timer)\n }\n\n // Cancels any previous scheduleTimeout and schedules callback\n scheduleTimeout(){\n clearTimeout(this.timer)\n\n this.timer = setTimeout(() => {\n this.tries = this.tries + 1\n this.callback()\n }, this.timerCalc(this.tries + 1))\n }\n}\n\nmodule.exports = Timer\n\n//# sourceURL=webpack:///./node_modules/@supabase/realtime-js/src/timer.js?");
/***/ }),
/***/ "./node_modules/@supabase/supabase-js/lib/Auth.js":
/*!********************************************************!*\
!*** ./node_modules/@supabase/supabase-js/lib/Auth.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("var _interopRequireDefault=__webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.Auth=void 0;var _asyncToGenerator2=_interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\")),_superagent=_interopRequireDefault(__webpack_require__(/*! superagent */ \"./node_modules/superagent/lib/client.js\"));class Auth{constructor(a,b){var c=this,d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{autoRefreshToken:!0};this.authUrl=a,this.accessToken=b,this.refreshToken=null,this.supabaseKey=b,this.currentUser=null,this.autoRefreshToken=d.autoRefreshToken,this.signup=/*#__PURE__*/function(){var b=(0,_asyncToGenerator2.default)(function*(b,d){var e=yield _superagent.default.post(\"\".concat(a,\"/signup\"),{email:b,password:d}).set(\"accept\",\"json\").set(\"apikey\",c.supabaseKey);return e});return function(){return b.apply(this,arguments)}}(),this.login=/*#__PURE__*/function(){var b=(0,_asyncToGenerator2.default)(function*(b,d){var e=yield _superagent.default.post(\"\".concat(a,\"/token?grant_type=password\"),{email:b,password:d}).set(\"accept\",\"json\").set(\"apikey\",c.supabaseKey);return 200===e.status&&(c.accessToken=e.body.access_token,c.refreshToken=e.body.refresh_token,c.autoRefreshToken&&tokenExpirySeconds&&setTimeout(c.refreshToken,tokenExpirySeconds-60)),e});return function(){return b.apply(this,arguments)}}(),this.refreshToken=/*#__PURE__*/(0,_asyncToGenerator2.default)(function*(){var b=yield _superagent.default.post(\"\".concat(a,\"/token?grant_type=refresh_token\"),{refresh_token:c.refreshToken}).set(\"apikey\",c.supabaseKey);if(200===b.status){c.accessToken=b.body.access_token,c.refreshToken=b.body.refresh_token;var d=b.body.expires_in;c.autoRefreshToken&&d&&setTimeout(c.refreshToken,d-60)}return b}),this.logout=/*#__PURE__*/(0,_asyncToGenerator2.default)(function*(){yield _superagent.default.post(\"\".concat(a,\"/logout\")).set(\"Authorization\",\"Bearer \".concat(c.accessToken)).set(\"apikey\",c.supabaseKey),c.currentUser=null,c.accessToken=null}),this.user=/*#__PURE__*/(0,_asyncToGenerator2.default)(function*(){if(c.currentUser)return c.currentUser;var b=yield _superagent.default.get(\"\".concat(a,\"/user\")).set(\"Authorization\",\"Bearer \".concat(c.accessToken)).set(\"apikey\",c.supabaseKey);return 200===b.status&&(c.currentUser=b.body,c.currentUser.access_token=c.accessToken,c.currentUser.refresh_token=c.refreshToken),c.currentUser})}}exports.Auth=Auth;\n\n//# sourceURL=webpack:///./node_modules/@supabase/supabase-js/lib/Auth.js?");
/***/ }),
/***/ "./node_modules/@supabase/supabase-js/lib/Realtime.js":
/*!************************************************************!*\
!*** ./node_modules/@supabase/supabase-js/lib/Realtime.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("var _interopRequireWildcard=__webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ \"./node_modules/@babel/runtime/helpers/interopRequireWildcard.js\");Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.default=void 0;var _realtimeJs=__webpack_require__(/*! @supabase/realtime-js */ \"./node_modules/@supabase/realtime-js/src/index.js\"),ChangeMapper=_interopRequireWildcard(__webpack_require__(/*! ./utils/ChangeMapper */ \"./node_modules/@supabase/supabase-js/lib/utils/ChangeMapper.js\"));class Realtime{constructor(a,b,c,d,e,f,g,h){this.tableName=a,this.realtimeUrl=b,this.schema=c,this.apikey=d,this.uuid=e,this.socket=null,this.channel=null,this.listeners={},this.queryFilters=h,this.on(f,g)}/**\n * REALTIME FUNCTIONALITY\n */createListener(){var a=\"\".concat(this.realtimeUrl),b=\"\";this.queryFilters.forEach(a=>{switch(a.filter){case\"filter\":\"eq\"===a.operator&&(b=\":\".concat(a.columnName,\"=\").concat(a.operator,\".\").concat(a.criteria));break;default:}});var c=\"*\"==this.tableName?\"realtime:*\":\"realtime:\".concat(this.schema,\":\").concat(this.tableName).concat(b);this.socket=new _realtimeJs.Socket(a,{params:{apikey:this.apikey}}),this.channel=this.socket.channel(c),this.socket.onOpen(()=>{console.debug(\"\".concat(this.realtimeUrl,\": REALTIME CONNECTED\"))}),this.socket.onClose(()=>{console.debug(\"\".concat(this.realtimeUrl,\": REALTIME DISCONNECTED\"))})}on(a,b){return null==this.socket&&this.createListener(),this.channel.on(a,a=>{var c={schema:a.schema,table:a.table,commit_timestamp:a.commit_timestamp},d={},e={},f={};switch(a.type){case\"INSERT\":d=ChangeMapper.convertChangeData(a.columns,a.record),c.eventType=\"INSERT\",c.new=d;break;case\"UPDATE\":e=ChangeMapper.convertChangeData(a.columns,a.old_record),d=ChangeMapper.convertChangeData(a.columns,a.record),Object.keys(e).forEach(a=>{null!=e[a]&&(f[a]=e[a])}),c.eventType=\"UPDATE\",c.old=f,c.new=d;break;case\"DELETE\":e=ChangeMapper.convertChangeData(a.columns,a.old_record),Object.keys(e).forEach(a=>{null!=e[a]&&(f[a]=e[a])}),c.eventType=\"DELETE\",c.old=f;break;default:}b(c)}),this.listeners[a]=b,this}subscribe(){return null==this.socket&&this.createListener(),this.socket.connect(),\"joined\"!==this.channel.state&&this.channel.join().receive(\"ok\",a=>console.debug(\"\".concat(this.realtimeUrl,\": Joined Realtime successfully \"),a)).receive(\"error\",a=>console.debug(\"\".concat(this.realtimeUrl,\": Unable to join \"),a)).receive(\"timeout\",()=>console.debug(\"\".concat(this.realtimeUrl,\": Network timeout. Still waiting...\"))),this}unsubscribe(){return this.socket&&this.socket.disconnect(),this}}var _default=Realtime;exports.default=_default;\n\n//# sourceURL=webpack:///./node_modules/@supabase/supabase-js/lib/Realtime.js?");
/***/ }),
/***/ "./node_modules/@supabase/supabase-js/lib/index.js":
/*!*********************************************************!*\
!*** ./node_modules/@supabase/supabase-js/lib/index.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("var _interopRequireDefault=__webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\");Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.createClient=void 0;var _Helpers=__webpack_require__(/*! ./utils/Helpers */ \"./node_modules/@supabase/supabase-js/lib/utils/Helpers.js\"),_Realtime=_interopRequireDefault(__webpack_require__(/*! ./Realtime */ \"./node_modules/@supabase/supabase-js/lib/Realtime.js\")),_Auth=__webpack_require__(/*! ./Auth */ \"./node_modules/@supabase/supabase-js/lib/Auth.js\"),_postgrestJs=__webpack_require__(/*! @supabase/postgrest-js */ \"./node_modules/@supabase/postgrest-js/lib/index.js\");class SupabaseClient{constructor(a,b){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{autoRefreshToken:!0};this.supabaseUrl=null,this.supabaseKey=null,this.restUrl=null,this.realtimeUrl=null,this.authUrl=null,this.schema=\"public\",this.subscriptions={},this.tableName=null,this.queryFilters=[],c.schema&&(this.schema=c.schema),this.authenticate(a,b),this.auth=new _Auth.Auth(this.authUrl,b,{autoRefreshToken:c.autoRefreshToken})}/**\n * General Functionalities\n */authenticate(a,b){this.supabaseUrl=a,this.supabaseKey=b,this.restUrl=\"\".concat(a,\"/rest/v1\"),this.realtimeUrl=\"\".concat(a,\"/realtime/v1\").replace(\"http\",\"ws\"),this.authUrl=\"\".concat(a,\"/auth/v1\")}clear(){this.tableName=null,this.queryFilters=[]}from(a){return this.tableName=a,this}/**\n * Realtime Functionalities\n */on(a,b){var c=(0,_Helpers.uuid)();return this.subscriptions[c]=new _Realtime.default(this.tableName,this.realtimeUrl,this.schema,this.supabaseKey,c,a,b,this.queryFilters),this.clear(),this.subscriptions[c]}getSubscriptions(){return Object.values(this.subscriptions)}removeSubscription(a){a.unsubscribe(),delete this.subscriptions[a.uuid]}/**\n * REST Functionalities\n */rpc(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:null,c=new _postgrestJs.PostgrestClient(this.restUrl,{headers:{apikey:this.supabaseKey},schema:this.schema});return c.rpc(a,b)}initClient(){var a={apikey:this.supabaseKey};this.auth.accessToken&&(a.Authorization=\"Bearer \".concat(this.auth.accessToken));var b=new _postgrestJs.PostgrestClient(this.restUrl,{headers:a,schema:this.schema}),c=b.from(this.tableName);return this.queryFilters.forEach(a=>{switch(a.filter){case\"filter\":c.filter(a.columnName,a.operator,a.criteria);break;case\"match\":c.match(a.query);break;case\"order\":c.order(a.property,a.ascending,a.nullsFirst);break;case\"range\":c.range(a.from,a.to);break;case\"single\":c.single();break;default:}}),this.clear(),c}select(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:\"*\",b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=this.initClient();return c.select(a,b)}insert(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=this.initClient();return c.insert(a,b)}update(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=this.initClient();return c.update(a,b)}delete(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=this.initClient();return b.delete(a)}filter(a,b,c){return this.queryFilters.push({filter:\"filter\",columnName:a,operator:b,criteria:c}),this}match(a){return this.queryFilters.push({filter:\"match\",query:a}),this}order(a){var b=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],c=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];return this.queryFilters.push({filter:\"order\",property:a,ascending:b,nullsFirst:c}),this}range(a,b){return this.queryFilters.push({filter:\"range\",from:a,to:b}),this}single(){return this.queryFilters.push({filter:\"single\"}),this}}// pre-empts if any of the filters are used before select\nvar advancedFilters=[\"eq\",\"neq\",\"gt\",\"lt\",\"gte\",\"lte\",\"like\",\"ilike\",\"is\",\"in\",\"cs\",\"cd\",\"ova\",\"ovr\",\"sl\",\"sr\",\"nxr\",\"nxl\",\"adj\"];advancedFilters.forEach(a=>SupabaseClient.prototype[a]=function(b,c){return this.filter(b,a,c)});var createClient=function(a,b){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{};return new SupabaseClient(a,b,c)};exports.createClient=createClient;\n\n//# sourceURL=webpack:///./node_modules/@supabase/supabase-js/lib/index.js?");
/***/ }),
/***/ "./node_modules/@supabase/supabase-js/lib/utils/ChangeMapper.js":
/*!**********************************************************************!*\
!*** ./node_modules/@supabase/supabase-js/lib/utils/ChangeMapper.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.toTimestampString=exports.toArray=exports.toJson=exports.toIntRange=exports.toInt=exports.toFloat=exports.toDateRange=exports.toDate=exports.toBoolean=exports.noop=exports.convertCell=exports.convertColumn=exports.convertChangeData=void 0;// # Lifted from epgsql (src/epgsql_binary.erl), this module licensed under\n// # 3-clause BSD found here: https://raw.githubusercontent.com/epgsql/epgsql/devel/LICENSE\n/**\n * Takes an array of columns and an object of string values then converts each string value\n * to its mapped type\n * @param {{name: String, type: String}[]} columns\n * @param {Object} records\n * @param {Object} options The map of various options that can be applied to the mapper\n * @param {Array} options.skipTypes The array of types that should not be converted\n *\n * @example convertChangeData([{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age:'33'}, {})\n * //=>{ first_name: 'Paul', age: 33 }\n */var convertChangeData=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},d={},e=\"undefined\"==typeof c.skipTypes?[]:c.skipTypes;return Object.entries(b).map((c)=>{var[f,g]=c;d[f]=convertColumn(f,a,b,e)}),d};/**\n * Converts the value of an individual column\n * @param {String} columnName The column that you want to convert\n * @param {{name: String, type: String}[]} columns All of the columns\n * @param {Object} records The map of string values\n * @param {Array} skipTypes An array of types that should not be converted\n * @return {object} Useless information\n *\n * @example convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n * //=> 33\n * @example convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], ['int4'])\n * //=> \"33\"\n */exports.convertChangeData=convertChangeData;var convertColumn=(a,b,c,d)=>{var e=b.find(b=>b.name==a);return d.includes(e.type)?noop(c[a]):convertCell(e.type,c[a])};/**\n * If the value of the cell is `null`, returns null.\n * Otherwise converts the string value to the correct type.\n * @param {String} type A postgres column type\n * @param {String} stringValue The cell value\n *\n * @example convertCell('bool', 'true')\n * //=> true\n * @example convertCell('int8', '10')\n * //=> 10\n * @example convertCell('_int4', '{1,2,3,4}')\n * //=> [1,2,3,4]\n */exports.convertColumn=convertColumn;var convertCell=(a,b)=>{try{if(null===b)return null;// if data type is an array\nif(\"_\"===a.charAt(0)){var c=a.slice(1,a.length);return toArray(b,c)}// If not null, convert to correct type.\nreturn\"abstime\"===a?noop(b):\"bool\"===a?toBoolean(b):\"date\"===a?noop(b):\"daterange\"===a?toDateRange(b):\"float4\"===a?toFloat(b):\"float8\"===a?toFloat(b):\"int2\"===a?toInt(b):\"int4\"===a?toInt(b):\"int4range\"===a?toIntRange(b):\"int8\"===a?toInt(b):\"int8range\"===a?toIntRange(b):\"json\"===a?toJson(b):\"jsonb\"===a?toJson(b):\"money\"===a?toFloat(b):\"numeric\"===a?toFloat(b):\"oid\"===a?toInt(b):\"reltime\"===a?noop(b):\"time\"===a?noop(b):\"timestamp\"===a?toTimestampString(b):\"timestamptz\"===a?noop(b):\"timetz\"===a?noop(b):\"tsrange\"===a?toDateRange(b):\"tstzrange\"===a?toDateRange(b):noop(b)}catch(c){return console.log(\"Could not convert cell of type \".concat(a,\" and value \").concat(b)),console.log(\"This is the error: \".concat(c)),b}};exports.convertCell=convertCell;var noop=a=>a;exports.noop=noop;var toBoolean=a=>\"t\"===a||\"f\"!==a&&null;exports.toBoolean=toBoolean;var toDate=a=>new Date(a);exports.toDate=toDate;var toDateRange=a=>{var b=JSON.parse(a);return[new Date(b[0]),new Date(b[1])]};exports.toDateRange=toDateRange;var toFloat=a=>parseFloat(a);exports.toFloat=toFloat;var toInt=a=>parseInt(a);exports.toInt=toInt;var toIntRange=a=>{var b=JSON.parse(a);return[parseInt(b[0]),parseInt(b[1])]};exports.toIntRange=toIntRange;var toJson=a=>JSON.parse(a);/**\n * Converts a Postgres Array into a native JS array\n * @example toArray('{1,2,3,4}', 'int4')\n * //=> [1,2,3,4]\n * @example toArray('{}', 'int4')\n * //=> []\n */exports.toJson=toJson;var toArray=(a,b)=>{// this takes off the '{' & '}'\nvar c=a.slice(1,a.length-1),d=0<c.length?c.split(\",\"):[],e=d.map(a=>convertCell(b,a));// converts the string into an array\n// if string is empty (meaning the array was empty), an empty array will be immediately returned\nreturn e};/**\n * Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\n * See https://github.com/supabase/supabase/issues/18\n * @returns {string}\n * @example toTimestampString('2019-09-10 00:00:00')\n * //=> '2019-09-10T00:00:00'\n */exports.toArray=toArray;var toTimestampString=a=>a.replace(\" \",\"T\");exports.toTimestampString=toTimestampString;\n\n//# sourceURL=webpack:///./node_modules/@supabase/supabase-js/lib/utils/ChangeMapper.js?");
/***/ }),
/***/ "./node_modules/@supabase/supabase-js/lib/utils/Helpers.js":
/*!*****************************************************************!*\
!*** ./node_modules/@supabase/supabase-js/lib/utils/Helpers.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.uuid=uuid;function uuid(){function a(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return a()+a()+\"-\"+a()+\"-\"+a()+\"-\"+a()+\"-\"+a()+a()+a()}\n\n//# sourceURL=webpack:///./node_modules/@supabase/supabase-js/lib/utils/Helpers.js?");
/***/ }),
/***/ "./node_modules/component-emitter/index.js":
/*!*************************************************!*\
!*** ./node_modules/component-emitter/index.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("\r\n/**\r\n * Expose `Emitter`.\r\n */\r\n\r\nif (true) {\r\n module.exports = Emitter;\r\n}\r\n\r\n/**\r\n * Initialize a new `Emitter`.\r\n *\r\n * @api public\r\n */\r\n\r\nfunction Emitter(obj) {\r\n if (obj) return mixin(obj);\r\n};\r\n\r\n/**\r\n * Mixin the emitter properties.\r\n *\r\n * @param {Object} obj\r\n * @return {Object}\r\n * @api private\r\n */\r\n\r\nfunction mixin(obj) {\r\n for (var key in Emitter.prototype) {\r\n obj[key] = Emitter.prototype[key];\r\n }\r\n return obj;\r\n}\r\n\r\n/**\r\n * Listen on the given `event` with `fn`.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.on =\r\nEmitter.prototype.addEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\r\n .push(fn);\r\n return this;\r\n};\r\n\r\n/**\r\n * Adds an `event` listener that will be invoked a single\r\n * time then automatically removed.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.once = function(event, fn){\r\n function on() {\r\n this.off(event, on);\r\n fn.apply(this, arguments);\r\n }\r\n\r\n on.fn = fn;\r\n this.on(event, on);\r\n return this;\r\n};\r\n\r\n/**\r\n * Remove the given callback for `event` or all\r\n * registered callbacks.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.off =\r\nEmitter.prototype.removeListener =\r\nEmitter.prototype.removeAllListeners =\r\nEmitter.prototype.removeEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n\r\n // all\r\n if (0 == arguments.length) {\r\n this._callbacks = {};\r\n return this;\r\n }\r\n\r\n // specific event\r\n var callbacks = this._callbacks['$' + event];\r\n if (!callbacks) return this;\r\n\r\n // remove all handlers\r\n if (1 == arguments.length) {\r\n delete this._callbacks['$' + event];\r\n return this;\r\n }\r\n\r\n // remove specific handler\r\n var cb;\r\n for (var i = 0; i < callbacks.length; i++) {\r\n cb = callbacks[i];\r\n if (cb === fn || cb.fn === fn) {\r\n callbacks.splice(i, 1);\r\n break;\r\n }\r\n }\r\n\r\n // Remove event specific arrays for event types that no\r\n // one is subscribed for to avoid memory leak.\r\n if (callbacks.length === 0) {\r\n delete this._callbacks['$' + event];\r\n }\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Emit `event` with the given args.\r\n *\r\n * @param {String} event\r\n * @param {Mixed} ...\r\n * @return {Emitter}\r\n */\r\n\r\nEmitter.prototype.emit = function(event){\r\n this._callbacks = this._callbacks || {};\r\n\r\n var args = new Array(arguments.length - 1)\r\n , callbacks = this._callbacks['$' + event];\r\n\r\n for (var i = 1; i < arguments.length; i++) {\r\n args[i - 1] = arguments[i];\r\n }\r\n\r\n if (callbacks) {\r\n callbacks = callbacks.slice(0);\r\n for (var i = 0, len = callbacks.length; i < len; ++i) {\r\n callbacks[i].apply(this, args);\r\n }\r\n }\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Return array of callbacks for `event`.\r\n *\r\n * @param {String} event\r\n * @return {Array}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.listeners = function(event){\r\n this._callbacks = this._callbacks || {};\r\n return this._callbacks['$' + event] || [];\r\n};\r\n\r\n/**\r\n * Check if this emitter has `event` handlers.\r\n *\r\n * @param {String} event\r\n * @return {Boolean}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.hasListeners = function(event){\r\n return !! this.listeners(event).length;\r\n};\r\n\n\n//# sourceURL=webpack:///./node_modules/component-emitter/index.js?");
/***/ }),
/***/ "./node_modules/decode-uri-component/index.js":
/*!****************************************************!*\
!*** ./node_modules/decode-uri-component/index.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\nvar token = '%[a-f0-9]{2}';\nvar singleMatcher = new RegExp(token, 'gi');\nvar multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn decodeURIComponent(components.join(''));\n\t} catch (err) {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tvar left = components.slice(0, split);\n\tvar right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch (err) {\n\t\tvar tokens = input.match(singleMatcher);\n\n\t\tfor (var i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher);\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tvar replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD'\n\t};\n\n\tvar match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch (err) {\n\t\t\tvar result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tvar entries = Object.keys(replaceMap);\n\n\tfor (var i = 0; i < entries.length; i++) {\n\t\t// Replace all decoded components\n\t\tvar key = entries[i];\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nmodule.exports = function (encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\tencodedURI = encodedURI.replace(/\\+/g, ' ');\n\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch (err) {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n};\n\n\n//# sourceURL=webpack:///./node_modules/decode-uri-component/index.js?");
/***/ }),
/***/ "./node_modules/es5-ext/global.js":
/*!****************************************!*\
!*** ./node_modules/es5-ext/global.js ***!
\****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("var naiveFallback = function () {\n\tif (typeof self === \"object\" && self) return self;\n\tif (typeof window === \"object\" && window) return window;\n\tthrow new Error(\"Unable to resolve global `this`\");\n};\n\nmodule.exports = (function () {\n\tif (this) return this;\n\n\t// Unexpected strict mode (may happen if e.g. bundled into ESM module)\n\n\t// Fallback to standard globalThis if available\n\tif (typeof globalThis === \"object\" && globalThis) return globalThis;\n\n\t// Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis\n\t// In all ES5+ engines global object inherits from Object.prototype\n\t// (if you approached one that doesn't please report)\n\ttry {\n\t\tObject.defineProperty(Object.prototype, \"__global__\", {\n\t\t\tget: function () { return this; },\n\t\t\tconfigurable: true\n\t\t});\n\t} catch (error) {\n\t\t// Unfortunate case of updates to Object.prototype being restricted\n\t\t// via preventExtensions, seal or freeze\n\t\treturn naiveFallback();\n\t}\n\ttry {\n\t\t// Safari case (window.__global__ works, but __global__ does not)\n\t\tif (!__global__) return naiveFallback();\n\t\treturn __global__;\n\t} finally {\n\t\tdelete Object.prototype.__global__;\n\t}\n})();\n\n\n//# sourceURL=webpack:///./node_modules/es5-ext/global.js?");
/***/ }),
/***/ "./node_modules/fast-safe-stringify/index.js":
/*!***************************************************!*\
!*** ./node_modules/fast-safe-stringify/index.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = stringify\nstringify.default = stringify\nstringify.stable = deterministicStringify\nstringify.stableStringify = deterministicStringify\n\nvar arr = []\nvar replacerStack = []\n\n// Regular stringify\nfunction stringify (obj, replacer, spacer) {\n decirc(obj, '', [], undefined)\n var res\n if (replacerStack.length === 0) {\n res = JSON.stringify(obj, replacer, spacer)\n } else {\n res = JSON.stringify(obj, replaceGetterValues(replacer), spacer)\n }\n while (arr.length !== 0) {\n var part = arr.pop()\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3])\n } else {\n part[0][part[1]] = part[2]\n }\n }\n return res\n}\nfunction decirc (val, k, stack, parent) {\n var i\n if (typeof val === 'object' && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k)\n if (propertyDescriptor.get !== undefined) {\n if (propertyDescriptor.configurable) {\n Object.defineProperty(parent, k, { value: '[Circular]' })\n arr.push([parent, k, val, propertyDescriptor])\n } else {\n replacerStack.push([val, k])\n }\n } else {\n parent[k] = '[Circular]'\n arr.push([parent, k, val])\n }\n return\n }\n }\n stack.push(val)\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n decirc(val[i], i, stack, val)\n }\n } else {\n var keys = Object.keys(val)\n for (i = 0; i < keys.length; i++) {\n var key = keys[i]\n decirc(val[key], key, stack, val)\n }\n }\n stack.pop()\n }\n}\n\n// Stable-stringify\nfunction compareFunction (a, b) {\n if (a < b) {\n return -1\n }\n if (a > b) {\n return 1\n }\n return 0\n}\n\nfunction deterministicStringify (obj, replacer, spacer) {\n var tmp = deterministicDecirc(obj, '', [], undefined) || obj\n var res\n if (replacerStack.length === 0) {\n res = JSON.stringify(tmp, replacer, spacer)\n } else {\n res = JSON.stringify(tmp, replaceGetterValues(replacer), spacer)\n }\n while (arr.length !== 0) {\n var part = arr.pop()\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3])\n } else {\n part[0][part[1]] = part[2]\n }\n }\n return res\n}\n\nfunction deterministicDecirc (val, k, stack, parent) {\n var i\n if (typeof val === 'object' && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k)\n if (propertyDescriptor.get !== undefined) {\n if (propertyDescriptor.configurable) {\n Object.defineProperty(parent, k, { value: '[Circular]' })\n arr.push([parent, k, val, propertyDescriptor])\n } else {\n replacerStack.push([val, k])\n }\n } else {\n parent[k] = '[Circular]'\n arr.push([parent, k, val])\n }\n return\n }\n }\n if (typeof val.toJSON === 'function') {\n return\n }\n stack.push(val)\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n deterministicDecirc(val[i], i, stack, val)\n }\n } else {\n // Create a temporary object in the required way\n var tmp = {}\n var keys = Object.keys(val).sort(compareFunction)\n for (i = 0; i < keys.length; i++) {\n var key = keys[i]\n deterministicDecirc(val[key], key, stack, val)\n tmp[key] = val[key]\n }\n if (parent !== undefined) {\n arr.push([parent, k, val])\n parent[k] = tmp\n } else {\n return tmp\n }\n }\n stack.pop()\n }\n}\n\n// wraps replacer function to handle values we couldn't replace\n// and mark them as [Circular]\nfunction replaceGetterValues (replacer) {\n replacer = replacer !== undefined ? replacer : function (k, v) { return v }\n return function (key, val) {\n if (replacerStack.length > 0) {\n for (var i = 0; i < replacerStack.length; i++) {\n var part = replacerStack[i]\n if (part[1] === key && part[0] === val) {\n val = '[Circular]'\n replacerStack.splice(i, 1)\n break\n }\n }\n }\n return replacer.call(this, key, val)\n }\n}\n\n\n//# sourceURL=webpack:///./node_modules/fast-safe-stringify/index.js?");
/***/ }),
/***/ "./node_modules/query-string/index.js":
/*!********************************************!*\
!*** ./node_modules/query-string/index.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\nconst strictUriEncode = __webpack_require__(/*! strict-uri-encode */ \"./node_modules/strict-uri-encode/index.js\");\nconst decodeComponent = __webpack_require__(/*! decode-uri-component */ \"./node_modules/decode-uri-component/index.js\");\nconst splitOnFirst = __webpack_require__(/*! split-on-first */ \"./node_modules/split-on-first/index.js\");\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[', index, ']'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join('')\n\t\t\t\t];\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[]'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '[]=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (value === null || value === undefined || value.length === 0) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, encode(key, options)];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.split('').indexOf(options.arrayFormatSeparator) > -1;\n\t\t\t\tconst newValue = isArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : value === null ? value : decode(value, options);\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.sliceLine truncated
/***/ }),
/***/ "./node_modules/split-on-first/index.js":
/*!**********************************************!*\
!*** ./node_modules/split-on-first/index.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = (string, separator) => {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (separator === '') {\n\t\treturn [string];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [string];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n};\n\n\n//# sourceURL=webpack:///./node_modules/split-on-first/index.js?");
/***/ }),
/***/ "./node_modules/strict-uri-encode/index.js":
/*!*************************************************!*\
!*** ./node_modules/strict-uri-encode/index.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\nmodule.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n\n\n//# sourceURL=webpack:///./node_modules/strict-uri-encode/index.js?");
/***/ }),
/***/ "./node_modules/superagent/lib/agent-base.js":
/*!***************************************************!*\
!*** ./node_modules/superagent/lib/agent-base.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction Agent() {\n this._defaults = [];\n}\n\n['use', 'on', 'once', 'set', 'query', 'type', 'accept', 'auth', 'withCredentials', 'sortQuery', 'retry', 'ok', 'redirects', 'timeout', 'buffer', 'serialize', 'parse', 'ca', 'key', 'pfx', 'cert', 'disableTLSCerts'].forEach(function (fn) {\n // Default setting for all requests from this agent\n Agent.prototype[fn] = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n this._defaults.push({\n fn: fn,\n args: args\n });\n\n return this;\n };\n});\n\nAgent.prototype._setDefaults = function (req) {\n this._defaults.forEach(function (def) {\n req[def.fn].apply(req, _toConsumableArray(def.args));\n });\n};\n\nmodule.exports = Agent;\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9hZ2VudC1iYXNlLmpzIl0sIm5hbWVzIjpbIkFnZW50IiwiX2RlZmF1bHRzIiwiZm9yRWFjaCIsImZuIiwicHJvdG90eXBlIiwiYXJncyIsInB1c2giLCJfc2V0RGVmYXVsdHMiLCJyZXEiLCJkZWYiLCJtb2R1bGUiLCJleHBvcnRzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUFBLFNBQVNBLEtBQVQsR0FBaUI7QUFDZixPQUFLQyxTQUFMLEdBQWlCLEVBQWpCO0FBQ0Q7O0FBRUQsQ0FDRSxLQURGLEVBRUUsSUFGRixFQUdFLE1BSEYsRUFJRSxLQUpGLEVBS0UsT0FMRixFQU1FLE1BTkYsRUFPRSxRQVBGLEVBUUUsTUFSRixFQVNFLGlCQVRGLEVBVUUsV0FWRixFQVdFLE9BWEYsRUFZRSxJQVpGLEVBYUUsV0FiRixFQWNFLFNBZEYsRUFlRSxRQWZGLEVBZ0JFLFdBaEJGLEVBaUJFLE9BakJGLEVBa0JFLElBbEJGLEVBbUJFLEtBbkJGLEVBb0JFLEtBcEJGLEVBcUJFLE1BckJGLEVBc0JFLGlCQXRCRixFQXVCRUMsT0F2QkYsQ0F1QlUsVUFBQUMsRUFBRSxFQUFJO0FBQ2Q7QUFDQUgsRUFBQUEsS0FBSyxDQUFDSSxTQUFOLENBQWdCRCxFQUFoQixJQUFzQixZQUFrQjtBQUFBLHNDQUFORSxJQUFNO0FBQU5BLE1BQUFBLElBQU07QUFBQTs7QUFDdEMsU0FBS0osU0FBTCxDQUFlSyxJQUFmLENBQW9CO0FBQUVILE1BQUFBLEVBQUUsRUFBRkEsRUFBRjtBQUFNRSxNQUFBQSxJQUFJLEVBQUpBO0FBQU4sS0FBcEI7O0FBQ0EsV0FBTyxJQUFQO0FBQ0QsR0FIRDtBQUlELENBN0JEOztBQStCQUwsS0FBSyxDQUFDSSxTQUFOLENBQWdCRyxZQUFoQixHQUErQixVQUFTQyxHQUFULEVBQWM7QUFDM0MsT0FBS1AsU0FBTCxDQUFlQyxPQUFmLENBQXVCLFVBQUFPLEdBQUcsRUFBSTtBQUM1QkQsSUFBQUEsR0FBRyxDQUFDQyxHQUFHLENBQUNOLEVBQUwsQ0FBSCxPQUFBSyxHQUFHLHFCQUFZQyxHQUFHLENBQUNKLElBQWhCLEVBQUg7QUFDRCxHQUZEO0FBR0QsQ0FKRDs7QUFNQUssTUFBTSxDQUFDQyxPQUFQLEdBQWlCWCxLQUFqQiIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIEFnZW50KCkge1xuICB0aGlzLl9kZWZhdWx0cyA9IFtdO1xufVxuXG5bXG4gICd1c2UnLFxuICAnb24nLFxuICAnb25jZScsXG4gICdzZXQnLFxuICAncXVlcnknLFxuICAndHlwZScsXG4gICdhY2NlcHQnLFxuICAnYXV0aCcsXG4gICd3aXRoQ3JlZGVudGlhbHMnLFxuICAnc29ydFF1ZXJ5JyxcbiAgJ3JldHJ5JyxcbiAgJ29rJyxcbiAgJ3JlZGlyZWN0cycsXG4gICd0aW1lb3V0JyxcbiAgJ2J1ZmZlcicsXG4gICdzZXJpYWxpemUnLFxuICAncGFyc2UnLFxuICAnY2EnLFxuICAna2V5JyxcbiAgJ3BmeCcsXG4gICdjZXJ0JyxcbiAgJ2Rpc2FibGVUTFNDZXJ0cydcbl0uZm9yRWFjaChmbiA9PiB7XG4gIC8vIERlZmF1bHQgc2V0dGluZyBmb3IgYWxsIHJlcXVlc3RzIGZyb20gdGhpcyBhZ2VudFxuICBBZ2VudC5wcm90b3R5cGVbZm5dID0gZnVuY3Rpb24oLi4uYXJncykge1xuICAgIHRoaXMuX2RlZmF1bHRzLnB1c2goeyBmbiwgYXJncyB9KTtcbiAgICByZXR1cm4gdGhpcztcbiAgfTtcbn0pO1xuXG5BZ2VudC5wcm90b3R5cGUuX3NldERlZmF1bHRzID0gZnVuY3Rpb24ocmVxKSB7XG4gIHRoaXMuX2RlZmF1bHRzLmZvckVhY2goZGVmID0+IHtcbiAgICByZXFbZGVmLmZuXSguLi5kZWYuYXJncyk7XG4gIH0pO1xufTtcblxubW9kdWxlLmV4cG9ydHMgPSBBZ2VudDtcbiJdfQ==\n\n//# sourceURL=webpack:///./node_modules/superagent/lib/agent-base.js?");
/***/ }),
/***/ "./node_modules/superagent/lib/client.js":
/*!***********************************************!*\
!*** ./node_modules/superagent/lib/client.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Root reference for iframes.\n */\nvar root;\n\nif (typeof window !== 'undefined') {\n // Browser window\n root = window;\n} else if (typeof self === 'undefined') {\n // Other environments\n console.warn('Using browser-only version of superagent in non-browser environment');\n root = void 0;\n} else {\n // Web Worker\n root = self;\n}\n\nvar Emitter = __webpack_require__(/*! component-emitter */ \"./node_modules/component-emitter/index.js\");\n\nvar safeStringify = __webpack_require__(/*! fast-safe-stringify */ \"./node_modules/fast-safe-stringify/index.js\");\n\nvar RequestBase = __webpack_require__(/*! ./request-base */ \"./node_modules/superagent/lib/request-base.js\");\n\nvar isObject = __webpack_require__(/*! ./is-object */ \"./node_modules/superagent/lib/is-object.js\");\n\nvar ResponseBase = __webpack_require__(/*! ./response-base */ \"./node_modules/superagent/lib/response-base.js\");\n\nvar Agent = __webpack_require__(/*! ./agent-base */ \"./node_modules/superagent/lib/agent-base.js\");\n/**\n * Noop.\n */\n\n\nfunction noop() {}\n/**\n * Expose `request`.\n */\n\n\nmodule.exports = function (method, url) {\n // callback\n if (typeof url === 'function') {\n return new exports.Request('GET', method).end(url);\n } // url first\n\n\n if (arguments.length === 1) {\n return new exports.Request('GET', method);\n }\n\n return new exports.Request(method, url);\n};\n\nexports = module.exports;\nvar request = exports;\nexports.Request = Request;\n/**\n * Determine XHR.\n */\n\nrequest.getXHR = function () {\n if (root.XMLHttpRequest && (!root.location || root.location.protocol !== 'file:' || !root.ActiveXObject)) {\n return new XMLHttpRequest();\n }\n\n try {\n return new ActiveXObject('Microsoft.XMLHTTP');\n } catch (_unused) {}\n\n try {\n return new ActiveXObject('Msxml2.XMLHTTP.6.0');\n } catch (_unused2) {}\n\n try {\n return new ActiveXObject('Msxml2.XMLHTTP.3.0');\n } catch (_unused3) {}\n\n try {\n return new ActiveXObject('Msxml2.XMLHTTP');\n } catch (_unused4) {}\n\n throw new Error('Browser-only version of superagent could not find XHR');\n};\n/**\n * Removes leading and trailing whitespace, added to support IE.\n *\n * @param {String} s\n * @return {String}\n * @api private\n */\n\n\nvar trim = ''.trim ? function (s) {\n return s.trim();\n} : function (s) {\n return s.replace(/(^\\s*|\\s*$)/g, '');\n};\n/**\n * Serialize the given `obj`.\n *\n * @param {Object} obj\n * @return {String}\n * @api private\n */\n\nfunction serialize(obj) {\n if (!isObject(obj)) return obj;\n var pairs = [];\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) pushEncodedKeyValuePair(pairs, key, obj[key]);\n }\n\n return pairs.join('&');\n}\n/**\n * Helps 'serialize' with serializing arrays.\n * Mutates the pairs array.\n *\n * @param {Array} pairs\n * @param {String} key\n * @param {Mixed} val\n */\n\n\nfunction pushEncodedKeyValuePair(pairs, key, val) {\n if (val === undefined) return;\n\n if (val === null) {\n pairs.push(encodeURI(key));\n return;\n }\n\n if (Array.isArray(val)) {\n val.forEach(function (v) {\n pushEncodedKeyValuePair(pairs, key, v);\n });\n } else if (isObject(val)) {\n for (var subkey in val) {\n if (Object.prototype.hasOwnProperty.call(val, subkey)) pushEncodedKeyValuePair(pairs, \"\".concat(key, \"[\").concat(subkey, \"]\"), val[subkey]);\n }\n } else {\n pairs.push(encodeURI(key) + '=' + encodeURIComponent(val));\n }\n}\n/**\n * Expose serialization method.\n */\n\n\nrequest.serializeObject = serialize;\n/**\n * Parse the given x-www-form-urlencoded `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseString(str) {\n var obj = {};\n var pairs = str.split('&');\n var pair;\n var pos;\n\n for (var i = 0, len = pairs.length; i < len; ++i) {\n pair = pairs[i];\n pos = pair.indexOf('=');\n\n if (pos === -1) {\n obj[decodeURIComponent(pair)] = '';\n } else {\n obj[decodeURIComponent(pair.slice(0, pos))] = decodeURIComponent(pair.slice(pos + 1));\n }\n }\n\n return obj;\n}\n/**\n * Expose parser.\n */\n\n\nrequest.parseString = parseString;\n/**\n * Default MIME type map.\n *\n * superagent.types.xml = 'application/xml';\n *\n */\n\nrequest.types = {\n html: 'text/html',\n json: 'application/json',\n xml: 'text/xml',\n urlencoded: 'application/x-www-form-urlencoded',\n form: 'application/x-www-form-urlencoded',\n 'form-data': 'application/x-www-form-urlencoded'\n};\n/**\n * Default serialization mLine truncated
/***/ }),
/***/ "./node_modules/superagent/lib/is-object.js":
/*!**************************************************!*\
!*** ./node_modules/superagent/lib/is-object.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Check if `obj` is an object.\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\nfunction isObject(obj) {\n return obj !== null && _typeof(obj) === 'object';\n}\n\nmodule.exports = isObject;\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pcy1vYmplY3QuanMiXSwibmFtZXMiOlsiaXNPYmplY3QiLCJvYmoiLCJtb2R1bGUiLCJleHBvcnRzIl0sIm1hcHBpbmdzIjoiOzs7O0FBQUE7Ozs7Ozs7QUFRQSxTQUFTQSxRQUFULENBQWtCQyxHQUFsQixFQUF1QjtBQUNyQixTQUFPQSxHQUFHLEtBQUssSUFBUixJQUFnQixRQUFPQSxHQUFQLE1BQWUsUUFBdEM7QUFDRDs7QUFFREMsTUFBTSxDQUFDQyxPQUFQLEdBQWlCSCxRQUFqQiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ2hlY2sgaWYgYG9iamAgaXMgYW4gb2JqZWN0LlxuICpcbiAqIEBwYXJhbSB7T2JqZWN0fSBvYmpcbiAqIEByZXR1cm4ge0Jvb2xlYW59XG4gKiBAYXBpIHByaXZhdGVcbiAqL1xuXG5mdW5jdGlvbiBpc09iamVjdChvYmopIHtcbiAgcmV0dXJuIG9iaiAhPT0gbnVsbCAmJiB0eXBlb2Ygb2JqID09PSAnb2JqZWN0Jztcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBpc09iamVjdDtcbiJdfQ==\n\n//# sourceURL=webpack:///./node_modules/superagent/lib/is-object.js?");
/***/ }),
/***/ "./node_modules/superagent/lib/request-base.js":
/*!*****************************************************!*\
!*** ./node_modules/superagent/lib/request-base.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Module of mixed-in functions shared between node and client code\n */\nvar isObject = __webpack_require__(/*! ./is-object */ \"./node_modules/superagent/lib/is-object.js\");\n/**\n * Expose `RequestBase`.\n */\n\n\nmodule.exports = RequestBase;\n/**\n * Initialize a new `RequestBase`.\n *\n * @api public\n */\n\nfunction RequestBase(obj) {\n if (obj) return mixin(obj);\n}\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\n\nfunction mixin(obj) {\n for (var key in RequestBase.prototype) {\n if (Object.prototype.hasOwnProperty.call(RequestBase.prototype, key)) obj[key] = RequestBase.prototype[key];\n }\n\n return obj;\n}\n/**\n * Clear previous timeout.\n *\n * @return {Request} for chaining\n * @api public\n */\n\n\nRequestBase.prototype.clearTimeout = function () {\n clearTimeout(this._timer);\n clearTimeout(this._responseTimeoutTimer);\n clearTimeout(this._uploadTimeoutTimer);\n delete this._timer;\n delete this._responseTimeoutTimer;\n delete this._uploadTimeoutTimer;\n return this;\n};\n/**\n * Override default response body parser\n *\n * This function will be called to convert incoming data into request.body\n *\n * @param {Function}\n * @api public\n */\n\n\nRequestBase.prototype.parse = function (fn) {\n this._parser = fn;\n return this;\n};\n/**\n * Set format of binary response body.\n * In browser valid formats are 'blob' and 'arraybuffer',\n * which return Blob and ArrayBuffer, respectively.\n *\n * In Node all values result in Buffer.\n *\n * Examples:\n *\n * req.get('/')\n * .responseType('blob')\n * .end(callback);\n *\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\n\nRequestBase.prototype.responseType = function (val) {\n this._responseType = val;\n return this;\n};\n/**\n * Override default request body serializer\n *\n * This function will be called to convert data set via .send or .attach into payload to send\n *\n * @param {Function}\n * @api public\n */\n\n\nRequestBase.prototype.serialize = function (fn) {\n this._serializer = fn;\n return this;\n};\n/**\n * Set timeouts.\n *\n * - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time.\n * - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections.\n * - upload is the time since last bit of data was sent or received. This timeout works only if deadline timeout is off\n *\n * Value of 0 or false means no timeout.\n *\n * @param {Number|Object} ms or {response, deadline}\n * @return {Request} for chaining\n * @api public\n */\n\n\nRequestBase.prototype.timeout = function (options) {\n if (!options || _typeof(options) !== 'object') {\n this._timeout = options;\n this._responseTimeout = 0;\n this._uploadTimeout = 0;\n return this;\n }\n\n for (var option in options) {\n if (Object.prototype.hasOwnProperty.call(options, option)) {\n switch (option) {\n case 'deadline':\n this._timeout = options.deadline;\n break;\n\n case 'response':\n this._responseTimeout = options.response;\n break;\n\n case 'upload':\n this._uploadTimeout = options.upload;\n break;\n\n default:\n console.warn('Unknown timeout option', option);\n }\n }\n }\n\n return this;\n};\n/**\n * Set number of retry attempts on error.\n *\n * Failed requests will be retried 'count' times if timeout or err.code >= 500.\n *\n * @param {Number} count\n * @param {Function} [fn]\n * @return {Request} for chaining\n * @api public\n */\n\n\nRequestBase.prototype.retry = function (count, fn) {\n // Default to 1 if no count passed or true\n if (arguments.length === 0 || count === true) count = 1;\n if (count <= 0) count = 0;\n this._maxRetries = count;\n this._retries = 0;\n this._retryCallback = fn;\n return this;\n};\n\nvar ERROR_CODES = ['ECONNRESET', 'ETIMEDOUT', 'EADDRINFO', 'ESOCKETTIMEDOUT'];\n/**\n * Determine if a request should be retried.\n * (Borrowed from segmentio/superagent-retry)\n *\n * @param {Error} err an error\n * @param {Response} [res] response\n * @returns {Boolean} if segment should be retried\n */\n\nRequestBase.prototype._shouldRetry = function (err, res) {\n if (!this._maxRetries || this._retries++ >= this._maxRetries) {\n return false;\n }\n\n if (this._retryCallback) {\n try {\n var override = this._re Line truncated
/***/ }),
/***/ "./node_modules/superagent/lib/response-base.js":
/*!******************************************************!*\
!*** ./node_modules/superagent/lib/response-base.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\n/**\n * Module dependencies.\n */\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/superagent/lib/utils.js\");\n/**\n * Expose `ResponseBase`.\n */\n\n\nmodule.exports = ResponseBase;\n/**\n * Initialize a new `ResponseBase`.\n *\n * @api public\n */\n\nfunction ResponseBase(obj) {\n if (obj) return mixin(obj);\n}\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\n\nfunction mixin(obj) {\n for (var key in ResponseBase.prototype) {\n if (Object.prototype.hasOwnProperty.call(ResponseBase.prototype, key)) obj[key] = ResponseBase.prototype[key];\n }\n\n return obj;\n}\n/**\n * Get case-insensitive `field` value.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\n\nResponseBase.prototype.get = function (field) {\n return this.header[field.toLowerCase()];\n};\n/**\n * Set header related properties:\n *\n * - `.type` the content type without params\n *\n * A response of \"Content-Type: text/plain; charset=utf-8\"\n * will provide you with a `.type` of \"text/plain\".\n *\n * @param {Object} header\n * @api private\n */\n\n\nResponseBase.prototype._setHeaderProperties = function (header) {\n // TODO: moar!\n // TODO: make this a util\n // content-type\n var ct = header['content-type'] || '';\n this.type = utils.type(ct); // params\n\n var params = utils.params(ct);\n\n for (var key in params) {\n if (Object.prototype.hasOwnProperty.call(params, key)) this[key] = params[key];\n }\n\n this.links = {}; // links\n\n try {\n if (header.link) {\n this.links = utils.parseLinks(header.link);\n }\n } catch (_unused) {// ignore\n }\n};\n/**\n * Set flags such as `.ok` based on `status`.\n *\n * For example a 2xx response will give you a `.ok` of __true__\n * whereas 5xx will be __false__ and `.error` will be __true__. The\n * `.clientError` and `.serverError` are also available to be more\n * specific, and `.statusType` is the class of error ranging from 1..5\n * sometimes useful for mapping respond colors etc.\n *\n * \"sugar\" properties are also defined for common cases. Currently providing:\n *\n * - .noContent\n * - .badRequest\n * - .unauthorized\n * - .notAcceptable\n * - .notFound\n *\n * @param {Number} status\n * @api private\n */\n\n\nResponseBase.prototype._setStatusProperties = function (status) {\n var type = status / 100 | 0; // status / class\n\n this.statusCode = status;\n this.status = this.statusCode;\n this.statusType = type; // basics\n\n this.info = type === 1;\n this.ok = type === 2;\n this.redirect = type === 3;\n this.clientError = type === 4;\n this.serverError = type === 5;\n this.error = type === 4 || type === 5 ? this.toError() : false; // sugar\n\n this.created = status === 201;\n this.accepted = status === 202;\n this.noContent = status === 204;\n this.badRequest = status === 400;\n this.unauthorized = status === 401;\n this.notAcceptable = status === 406;\n this.forbidden = status === 403;\n this.notFound = status === 404;\n this.unprocessableEntity = status === 422;\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXNwb25zZS1iYXNlLmpzIl0sIm5hbWVzIjpbInV0aWxzIiwicmVxdWlyZSIsIm1vZHVsZSIsImV4cG9ydHMiLCJSZXNwb25zZUJhc2UiLCJvYmoiLCJtaXhpbiIsImtleSIsInByb3RvdHlwZSIsIk9iamVjdCIsImhhc093blByb3BlcnR5IiwiY2FsbCIsImdldCIsImZpZWxkIiwiaGVhZGVyIiwidG9Mb3dlckNhc2UiLCJfc2V0SGVhZGVyUHJvcGVydGllcyIsImN0IiwidHlwZSIsInBhcmFtcyIsImxpbmtzIiwibGluayIsInBhcnNlTGlua3MiLCJfc2V0U3RhdHVzUHJvcGVydGllcyIsInN0YXR1cyIsInN0YXR1c0NvZGUiLCJzdGF0dXNUeXBlIiwiaW5mbyIsIm9rIiwicmVkaXJlY3QiLCJjbGllbnRFcnJvciIsInNlcnZlckVycm9yIiwiZXJyb3IiLCJ0b0Vycm9yIiwiY3JlYXRlZCIsImFjY2VwdGVkIiwibm9Db250ZW50IiwiYmFkUmVxdWVzdCIsInVuYXV0aG9yaXplZCIsIm5vdEFjY2VwdGFibGUiLCJmb3JiaWRkZW4iLCJub3RGb3VuZCIsInVucHJvY2Vzc2FibGVFbnRpdHkiXSwibWFwcGluZ3MiOiI7O0FBQUE7OztBQUlBLElBQU1BLEtBQUssR0FBR0MsT0FBTyxDQUFDLFNBQUQsQ0FBckI7QUFFQTs7Ozs7QUFJQUMsTUFBTSxDQUFDQyxPQUFQLEdBQWlCQyxZQUFqQjtBQUVBOzs7Ozs7QUFNQSxTQUFTQSxZQUFULENBQXNCQyxHQUF0QixFQUEyQjtBQUN6QixNQUFJQSxHQUFKLEVBQVMsT0FBT0MsS0FBSyxDQUFDRCxHQUFELENBQVo7QUFDVjtBQUVEOzs7Ozs7Ozs7QUFRQSxTQUFTQyxLQUFULENBQWVELEdBQWYsRUFBb0I7QUFDbEIsT0FBSyxJQUFNRSxHQUFYLElBQWtCSCxZQUFZLENBQUNJLFNBQS9CLEVBQTBDO0FBQ3hDLFFBQUlDLE1BQU0sQ0FBQ0QsU0FBUCxDQUFpQkUsY0FBakIsQ0FBZ0NDLElBQWhDLENBQXFDUCxZQUFZLENBQUNJLFNBQWxELEVBQTZERCxHQUE3RCxDQUFKLEVBQ0VGLEdBQUcsQ0FBQ0UsR0FBRCxDQUFILEdBQVdILFlBQVksQ0FBQ0ksU0FBYixDQUF1QkQsR0FBdkIsQ0FBWDtBQUNIOztBQUVELFNBQU9GLEdBQVA7QUFDRDtBQUVEOzs7Ozs7Ozs7QUFRQUQsWUFBWSxDQUFDSSxTQUFiLENBQXVCSSxHQUF2QixHQUE2QixVQUFTQyxLQUFULEVBQWdCO0FBQzNDLFNBQU8sS0FBS0MsTUFBTCxDQUFZRCxLQUFLLENBQUNFLFdBQU4sRUFBWixDQUFQO0FBQ0QsQ0FGRDtBQUlBOzs7Ozs7Ozs7Ozs7O0FBWUFYLFlBQVksQ0FBQ0ksU0FBYixDQUF1QlEsb0JBQXZCLEdBQThDLFVBQVNGLE1BQVQsRUFBaUI7QUFDN0Q7QUFDQTtBQUVBO0FBQ0EsTUFBTUcsRUFBRSxHQUFHSCxNQUFNLENBQUMsY0FBRCxDQUFOLElBQTBCLEVBQXJDO0FBQ0EsT0FBS0ksSUFBTCxHQUFZbEIsS0FBSyxDQUFDa0IsSUFBTixDQUFXRCxFQUFYL Line truncated
/***/ }),
/***/ "./node_modules/superagent/lib/utils.js":
/*!**********************************************!*\
!*** ./node_modules/superagent/lib/utils.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\n/**\n * Return the mime type for the given `str`.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\nexports.type = function (str) {\n return str.split(/ *; */).shift();\n};\n/**\n * Return header field parameters.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\n\nexports.params = function (str) {\n return str.split(/ *; */).reduce(function (obj, str) {\n var parts = str.split(/ *= */);\n var key = parts.shift();\n var val = parts.shift();\n if (key && val) obj[key] = val;\n return obj;\n }, {});\n};\n/**\n * Parse Link header fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\n\nexports.parseLinks = function (str) {\n return str.split(/ *, */).reduce(function (obj, str) {\n var parts = str.split(/ *; */);\n var url = parts[0].slice(1, -1);\n var rel = parts[1].split(/ *= */)[1].slice(1, -1);\n obj[rel] = url;\n return obj;\n }, {});\n};\n/**\n * Strip content related fields from `header`.\n *\n * @param {Object} header\n * @return {Object} header\n * @api private\n */\n\n\nexports.cleanHeader = function (header, changesOrigin) {\n delete header['content-type'];\n delete header['content-length'];\n delete header['transfer-encoding'];\n delete header.host; // secuirty\n\n if (changesOrigin) {\n delete header.authorization;\n delete header.cookie;\n }\n\n return header;\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlscy5qcyJdLCJuYW1lcyI6WyJleHBvcnRzIiwidHlwZSIsInN0ciIsInNwbGl0Iiwic2hpZnQiLCJwYXJhbXMiLCJyZWR1Y2UiLCJvYmoiLCJwYXJ0cyIsImtleSIsInZhbCIsInBhcnNlTGlua3MiLCJ1cmwiLCJzbGljZSIsInJlbCIsImNsZWFuSGVhZGVyIiwiaGVhZGVyIiwiY2hhbmdlc09yaWdpbiIsImhvc3QiLCJhdXRob3JpemF0aW9uIiwiY29va2llIl0sIm1hcHBpbmdzIjoiOztBQUFBOzs7Ozs7O0FBUUFBLE9BQU8sQ0FBQ0MsSUFBUixHQUFlLFVBQUFDLEdBQUc7QUFBQSxTQUFJQSxHQUFHLENBQUNDLEtBQUosQ0FBVSxPQUFWLEVBQW1CQyxLQUFuQixFQUFKO0FBQUEsQ0FBbEI7QUFFQTs7Ozs7Ozs7O0FBUUFKLE9BQU8sQ0FBQ0ssTUFBUixHQUFpQixVQUFBSCxHQUFHO0FBQUEsU0FDbEJBLEdBQUcsQ0FBQ0MsS0FBSixDQUFVLE9BQVYsRUFBbUJHLE1BQW5CLENBQTBCLFVBQUNDLEdBQUQsRUFBTUwsR0FBTixFQUFjO0FBQ3RDLFFBQU1NLEtBQUssR0FBR04sR0FBRyxDQUFDQyxLQUFKLENBQVUsT0FBVixDQUFkO0FBQ0EsUUFBTU0sR0FBRyxHQUFHRCxLQUFLLENBQUNKLEtBQU4sRUFBWjtBQUNBLFFBQU1NLEdBQUcsR0FBR0YsS0FBSyxDQUFDSixLQUFOLEVBQVo7QUFFQSxRQUFJSyxHQUFHLElBQUlDLEdBQVgsRUFBZ0JILEdBQUcsQ0FBQ0UsR0FBRCxDQUFILEdBQVdDLEdBQVg7QUFDaEIsV0FBT0gsR0FBUDtBQUNELEdBUEQsRUFPRyxFQVBILENBRGtCO0FBQUEsQ0FBcEI7QUFVQTs7Ozs7Ozs7O0FBUUFQLE9BQU8sQ0FBQ1csVUFBUixHQUFxQixVQUFBVCxHQUFHO0FBQUEsU0FDdEJBLEdBQUcsQ0FBQ0MsS0FBSixDQUFVLE9BQVYsRUFBbUJHLE1BQW5CLENBQTBCLFVBQUNDLEdBQUQsRUFBTUwsR0FBTixFQUFjO0FBQ3RDLFFBQU1NLEtBQUssR0FBR04sR0FBRyxDQUFDQyxLQUFKLENBQVUsT0FBVixDQUFkO0FBQ0EsUUFBTVMsR0FBRyxHQUFHSixLQUFLLENBQUMsQ0FBRCxDQUFMLENBQVNLLEtBQVQsQ0FBZSxDQUFmLEVBQWtCLENBQUMsQ0FBbkIsQ0FBWjtBQUNBLFFBQU1DLEdBQUcsR0FBR04sS0FBSyxDQUFDLENBQUQsQ0FBTCxDQUFTTCxLQUFULENBQWUsT0FBZixFQUF3QixDQUF4QixFQUEyQlUsS0FBM0IsQ0FBaUMsQ0FBakMsRUFBb0MsQ0FBQyxDQUFyQyxDQUFaO0FBQ0FOLElBQUFBLEdBQUcsQ0FBQ08sR0FBRCxDQUFILEdBQVdGLEdBQVg7QUFDQSxXQUFPTCxHQUFQO0FBQ0QsR0FORCxFQU1HLEVBTkgsQ0FEc0I7QUFBQSxDQUF4QjtBQVNBOzs7Ozs7Ozs7QUFRQVAsT0FBTyxDQUFDZSxXQUFSLEdBQXNCLFVBQUNDLE1BQUQsRUFBU0MsYUFBVCxFQUEyQjtBQUMvQyxTQUFPRCxNQUFNLENBQUMsY0FBRCxDQUFiO0FBQ0EsU0FBT0EsTUFBTSxDQUFDLGdCQUFELENBQWI7QUFDQSxTQUFPQSxNQUFNLENBQUMsbUJBQUQsQ0FBYjtBQUNBLFNBQU9BLE1BQU0sQ0FBQ0UsSUFBZCxDQUorQyxDQUsvQzs7QUFDQSxNQUFJRCxhQUFKLEVBQW1CO0FBQ2pCLFdBQU9ELE1BQU0sQ0FBQ0csYUFBZDtBQUNBLFdBQU9ILE1BQU0sQ0FBQ0ksTUFBZDtBQUNEOztBQUVELFNBQU9KLE1BQVA7QUFDRCxDQVpEIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBSZXR1cm4gdGhlIG1pbWUgdHlwZSBmb3IgdGhlIGdpdmVuIGBzdHJgLlxuICpcbiAqIEBwYXJhbSB7U3RyaW5nfSBzdHJcbiAqIEByZXR1cm4ge1N0cmluZ31cbiAqIEBhcGkgcHJpdmF0ZVxuICovXG5cbmV4cG9ydHMudHlwZSA9IHN0ciA9PiBzdHIuc3BsaXQoLyAqOyAqLykuc2hpZnQoKTtcblxuLyoqXG4gKiBSZXR1cm4gaGVhZGVyIGZpZWxkIHBhcmFtZXRlcnMuXG4gKlxuICogQHBhcmFtIHtTdHJpbmd9IHN0clxuICogQHJldHVybiB7T2JqZWN0fVxuICogQGFwaSBwcml2YXRlXG4gKi9cblxuZXhwb3J0cy5wYXJhbXMgPSBzdHIgPT5cbiAgc3RyLnNwbGl0KC8gKjsgKi8pLnJlZHVjZSgob2JqLCBzdHIpID0+IHtcbiAgICBjb25zdCBwYXJ0cyA9IHN0ci5zcGxpdCgvICo9ICovKTtcbiAgICBjb25zdCBrZXkgPSBwYXJ0cy5zaGlmdCgpO1xuICAgIGNvbnN0IHZhbCA9IHBhcnRzLnNoaWZ0KCk7XG5cbiAgICBpZiAoa2V5ICYmIHZhbCkgb2JqW2tleV0gPSB2YWw7XG4gICAgcmV0dXJuIG9iajtcbiAgfSwge30pO1xuXG4vKipcbiAqIFBhcnNlIExpbmsgaGVhZGVyIGZpZWxkcy5cbiAqXG4gKiBAcGFyYW0ge1N0cmluZ30gc3RyXG4gKiBAcmV0dXJuIHtPYmplY3R9XG4gKiBAYXBpIHByaXZhdGVcbiAqL1xuXG5leHBvcnRzLnBhcnNlTGlua3MgPSBzdHIgPT5cbiAgc3RyLnNwbGl0KC8gKiwgKi8pLnJlZHVjZSgob2JqLCBzdHIpID0+IHtcbiAgICBjb25zdCBwYXJ0cyA9IHN0ci5zcGxpdCgvICo7ICovKTtcbiAgICBjb25zdCB1cmwgPSBwYXJ0c1swXS5zbGljZSgxLCAtMSk7XG4gICAgY29uc3QgcmVsID0gcGFydHNbMV0uc3BsaXQoLyAqPSAqLylbMV0uc2xpY2UoMSwgLTEpO1xuICAgIG9ialtyZWxdID0gdXJsO1xuICAgIHJldHVybiBvYmo7XG4gIH0sIHt9KTtcblxuLyoqXG4gKiBTdHJpcCBjb250ZW50IHJlbGF0ZWQgZmllbGRzIGZyb20gYGhlYWRlcmAuXG4gKlxuICogQHBhcmFtIHtPYmplY3R9IGhlYWRlclxuICogQHJldHVybiB7T2JqZWN0fSBoZWFkZXJcbiAqIEBhcGkgcHJpdmF0ZVxuICovXG Line truncated
/***/ }),
/***/ "./node_modules/websocket/lib/browser.js":
/*!***********************************************!*\
!*** ./node_modules/websocket/lib/browser.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var _globalThis;\ntry {\n\t_globalThis = __webpack_require__(/*! es5-ext/global */ \"./node_modules/es5-ext/global.js\");\n} catch (error) {\n} finally {\n\tif (!_globalThis && typeof window !== 'undefined') { _globalThis = window; }\n\tif (!_globalThis) { throw new Error('Could not determine global this'); }\n}\n\nvar NativeWebSocket = _globalThis.WebSocket || _globalThis.MozWebSocket;\nvar websocket_version = __webpack_require__(/*! ./version */ \"./node_modules/websocket/lib/version.js\");\n\n\n/**\n * Expose a W3C WebSocket class with just one or two arguments.\n */\nfunction W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}\nif (NativeWebSocket) {\n\t['CONNECTING', 'OPEN', 'CLOSING', 'CLOSED'].forEach(function(prop) {\n\t\tObject.defineProperty(W3CWebSocket, prop, {\n\t\t\tget: function() { return NativeWebSocket[prop]; }\n\t\t});\n\t});\n}\n\n/**\n * Module exports.\n */\nmodule.exports = {\n 'w3cwebsocket' : NativeWebSocket ? W3CWebSocket : null,\n 'version' : websocket_version\n};\n\n\n//# sourceURL=webpack:///./node_modules/websocket/lib/browser.js?");
/***/ }),
/***/ "./node_modules/websocket/lib/version.js":
/*!***********************************************!*\
!*** ./node_modules/websocket/lib/version.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("module.exports = __webpack_require__(/*! ../package.json */ \"./node_modules/websocket/package.json\").version;\n\n\n//# sourceURL=webpack:///./node_modules/websocket/lib/version.js?");
/***/ }),
/***/ "./node_modules/websocket/package.json":
/*!*********************************************!*\
!*** ./node_modules/websocket/package.json ***!
\*********************************************/
/*! exports provided: _from, _id, _inBundle, _integrity, _location, _phantomChildren, _requested, _requiredBy, _resolved, _shasum, _spec, _where, author, browser, bugs, bundleDependencies, config, contributors, dependencies, deprecated, description, devDependencies, directories, engines, homepage, keywords, license, main, name, repository, scripts, version, default */
/***/ (function(module) {
eval("module.exports = JSON.parse(\"{\\\"_from\\\":\\\"websocket@^1.0.31\\\",\\\"_id\\\":\\\"websocket@1.0.31\\\",\\\"_inBundle\\\":false,\\\"_integrity\\\":\\\"sha512-VAouplvGKPiKFDTeCCO65vYHsyay8DqoBSlzIO3fayrfOgU94lQN5a1uWVnFrMLceTJw/+fQXR5PGbUVRaHshQ==\\\",\\\"_location\\\":\\\"/websocket\\\",\\\"_phantomChildren\\\":{},\\\"_requested\\\":{\\\"type\\\":\\\"range\\\",\\\"registry\\\":true,\\\"raw\\\":\\\"websocket@^1.0.31\\\",\\\"name\\\":\\\"websocket\\\",\\\"escapedName\\\":\\\"websocket\\\",\\\"rawSpec\\\":\\\"^1.0.31\\\",\\\"saveSpec\\\":null,\\\"fetchSpec\\\":\\\"^1.0.31\\\"},\\\"_requiredBy\\\":[\\\"/@supabase/realtime-js\\\"],\\\"_resolved\\\":\\\"https://registry.npmjs.org/websocket/-/websocket-1.0.31.tgz\\\",\\\"_shasum\\\":\\\"e5d0f16c3340ed87670e489ecae6144c79358730\\\",\\\"_spec\\\":\\\"websocket@^1.0.31\\\",\\\"_where\\\":\\\"/Users/supabase/Documents/projects/supabase/supabase/examples/auth-vanilla-js/node_modules/@supabase/realtime-js\\\",\\\"author\\\":{\\\"name\\\":\\\"Brian McKelvey\\\",\\\"email\\\":\\\"theturtle32@gmail.com\\\",\\\"url\\\":\\\"https://github.com/theturtle32\\\"},\\\"browser\\\":\\\"lib/browser.js\\\",\\\"bugs\\\":{\\\"url\\\":\\\"https://github.com/theturtle32/WebSocket-Node/issues\\\"},\\\"bundleDependencies\\\":false,\\\"config\\\":{\\\"verbose\\\":false},\\\"contributors\\\":[{\\\"name\\\":\\\"Iñaki Baz Castillo\\\",\\\"email\\\":\\\"ibc@aliax.net\\\",\\\"url\\\":\\\"http://dev.sipdoc.net\\\"}],\\\"dependencies\\\":{\\\"debug\\\":\\\"^2.2.0\\\",\\\"es5-ext\\\":\\\"^0.10.50\\\",\\\"nan\\\":\\\"^2.14.0\\\",\\\"typedarray-to-buffer\\\":\\\"^3.1.5\\\",\\\"yaeti\\\":\\\"^0.0.6\\\"},\\\"deprecated\\\":false,\\\"description\\\":\\\"Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.\\\",\\\"devDependencies\\\":{\\\"buffer-equal\\\":\\\"^1.0.0\\\",\\\"faucet\\\":\\\"^0.0.1\\\",\\\"gulp\\\":\\\"^4.0.2\\\",\\\"gulp-jshint\\\":\\\"^2.0.4\\\",\\\"jshint\\\":\\\"^2.0.0\\\",\\\"jshint-stylish\\\":\\\"^2.2.1\\\",\\\"tape\\\":\\\"^4.9.1\\\"},\\\"directories\\\":{\\\"lib\\\":\\\"./lib\\\"},\\\"engines\\\":{\\\"node\\\":\\\">=0.10.0\\\"},\\\"homepage\\\":\\\"https://github.com/theturtle32/WebSocket-Node\\\",\\\"keywords\\\":[\\\"websocket\\\",\\\"websockets\\\",\\\"socket\\\",\\\"networking\\\",\\\"comet\\\",\\\"push\\\",\\\"RFC-6455\\\",\\\"realtime\\\",\\\"server\\\",\\\"client\\\"],\\\"license\\\":\\\"Apache-2.0\\\",\\\"main\\\":\\\"index\\\",\\\"name\\\":\\\"websocket\\\",\\\"repository\\\":{\\\"type\\\":\\\"git\\\",\\\"url\\\":\\\"git+https://github.com/theturtle32/WebSocket-Node.git\\\"},\\\"scripts\\\":{\\\"gulp\\\":\\\"gulp\\\",\\\"install\\\":\\\"(node-gyp rebuild 2> builderror.log) || (exit 0)\\\",\\\"test\\\":\\\"faucet test/unit\\\"},\\\"version\\\":\\\"1.0.31\\\"}\");\n\n//# sourceURL=webpack:///./node_modules/websocket/package.json?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _supabase_supabase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @supabase/supabase-js */ \"../../../supabase-js/lib/index.js\");\n/* harmony import */ var _supabase_supabase_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_supabase_supabase_js__WEBPACK_IMPORTED_MODULE_0__);\nconsole.log('Auth, Auth, Baby')\n\n\n\nvar SUPABASE_URL = 'https://qgxofzpdhwflxckfyoyz.supabase.net'\nvar SUPABASE_KEY =\n 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTU5NTU3OTM1MywiZXhwIjoxOTExMTU1MzUzfQ.zS6U4PuJsHJ0wbBQXANpg2fbvHazUtfCgWonJ_TXlRk'\n\nvar supabase = Object(_supabase_supabase_js__WEBPACK_IMPORTED_MODULE_0__[\"createClient\"])(SUPABASE_URL, SUPABASE_KEY)\nwindow.userToken = null\n\ndocument.addEventListener('DOMContentLoaded', function (event) {\n var signUpForm = document.querySelector('#sign-up')\n signUpForm.onsubmit = signUpSubmitted.bind(signUpForm)\n\n var logInForm = document.querySelector('#log-in')\n logInForm.onsubmit = logInSubmitted.bind(logInForm)\n\n var userDetailsButton = document.querySelector('#user-button')\n userDetailsButton.onclick = fetchUserDetails.bind(userDetailsButton)\n})\n\nconst signUpSubmitted = (event) => {\n event.preventDefault()\n const email = event.target[0].value\n const password = event.target[1].value\n\n supabase.auth\n .signup(email, password)\n .then((response) => {\n alert(JSON.stringify(response.body))\n })\n .catch((err) => {\n alert(err.response.text)\n })\n}\n\nconst logInSubmitted = (event) => {\n event.preventDefault()\n const email = event.target[0].value\n const password = event.target[1].value\n\n supabase.auth\n .login(email, password)\n .then((response) => {\n document.querySelector('#access-token').value = response.body.access_token\n document.querySelector('#refresh-token').value = response.body.refresh_token\n alert(JSON.stringify(response.body))\n })\n .catch((err) => {\n alert(err.response.text)\n })\n}\n\nconst fetchUserDetails = () => {\n supabase.auth\n .user()\n .then((response) => {\n alert(JSON.stringify(response))\n })\n .catch((err) => {\n alert(err.response.text)\n })\n}\n\n\n//# sourceURL=webpack:///./index.js?");
/***/ })
+14 -21
View File
@@ -1,23 +1,16 @@
body {
/* margin: 0; */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: rgb(250, 217, 246);
}
/* h1 {
margin-bottom: 0;
}
.container {
margin: 1em;
}
.section {
margin: 1em;
} */
/* margin: 0; */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: rgb(250, 217, 246);
}
label {
margin: 0.5em;
}
.section {
margin: 1em;
}
+3
View File
@@ -8,6 +8,9 @@
<body>
<div class='container'>
<div class='section'>
<h1>Supabase Auth Example</h1>
</div>
<div class='section'>
<form id='sign-up'>
<h3>Sign Up</h3>
+2 -2
View File
@@ -9,7 +9,7 @@ var SUPABASE_KEY =
var supabase = createClient(SUPABASE_URL, SUPABASE_KEY)
window.userToken = null
window.onload = function () {
document.addEventListener('DOMContentLoaded', function (event) {
var signUpForm = document.querySelector('#sign-up')
signUpForm.onsubmit = signUpSubmitted.bind(signUpForm)
@@ -18,7 +18,7 @@ window.onload = function () {
var userDetailsButton = document.querySelector('#user-button')
userDetailsButton.onclick = fetchUserDetails.bind(userDetailsButton)
}
})
const signUpSubmitted = (event) => {
event.preventDefault()
+10828 -4468
View File
File diff suppressed because it is too large. Load diff
+6 -4
View File
@@ -5,14 +5,16 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "webpack --watch",
"build": "webpack --config webpack.config.js",
"dev": "python -m SimpleHTTPServer 3000"
"dev": "webpack-dev-server --content-base ./ --port 3000 --hot",
"start": "npm run dev"
},
"author": "",
"license": "ISC",
"dependencies": {
"@supabase/supabase-js": "^0.34.5",
"@supabase/supabase-js": "^0.34.5"
},
"devDependencies": {
"webpack-dev-server": "^3.11.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12"
}
+1 -1
View File
@@ -1,7 +1,7 @@
const path = require('path')
module.exports = {
entry: './index.js',
entry: ['webpack/hot/dev-server' , './index.js'],
mode: 'development',
output: {
path: path.resolve(path.resolve(), 'dist'),