diff --git a/dev/index.php b/dev/index.php index 29a4dc3..7d47a74 100644 --- a/dev/index.php +++ b/dev/index.php @@ -42,10 +42,8 @@ // Alternative to images_upload_handler callback, but not supported by Filery //images_upload_url: 'http://filery.local/api/index.php?images_upload_url=1', - filery_api_token: 'toString(); ?>', filery_api_url: 'http://filery.local/api/index.php', - filery_show_images: false, file_picker_callback: function (callback, value, meta) { Filery.filePickerCallback(callback, value, meta); diff --git a/dist/README.md b/dist/README.md index aad363a..02a3b24 100644 --- a/dist/README.md +++ b/dist/README.md @@ -7,6 +7,7 @@ Feel free to try the [demo](https://demos.neoflow.ch/filery/) online. **Table of Contents** * [Requirements](#requirements) +* [Download](#download) * [Installation](#installation) + [1. TinyMCE plugin](#1-tinymce-plugin) - [Installation](#installation-1) @@ -16,6 +17,7 @@ Feel free to try the [demo](https://demos.neoflow.ch/filery/) online. - [Installation](#installation-2) - [Configuration](#configuration-2) - [Advanced configuration](#advanced-configuration-2) +* [Support](#support) * [Donation](#donation) * [License](#license) @@ -27,13 +29,17 @@ Feel free to try the [demo](https://demos.neoflow.ch/filery/) online. Please use the modern theme of TinyMCE for the best user experience with Filery. +# Download +You can download the latest release [here](https://github.com/Neoflow/Filery/releases). + +Older versions of Filery than the latest release aren't support and recommended use. # Installation -The installation is done in two steps: -1. [Installation of the TinyMCE plugin](#1-tinymce-plugin) -2. [Installation of the plugin API](#2-plugin-api) +Filery and the installation is divided into two parts: +1. [TinyMCE Plugin](#1-tinymce-plugin) +2. [Plugin API](#2-plugin-api) -But first you have to download and unzip the [latest release](https://github.com/rjgamer/Filery/releases/latest). +Both parts must be installed and configured as described below. Otherwise Filery will not run. ## 1. TinyMCE plugin ### Installation @@ -77,6 +83,7 @@ tinymce.init({ filery_api_url: 'http://domain.tld/filery/api/index.php', filery_api_token: 'toString(); ?>', filery_dialog_height: '400px', + filery_show_images: true // ... }); ``` @@ -128,6 +135,9 @@ return [ ### Advanced configuration There are more advanced configuration parameters for the API. If you really want to change it, then please take a look at the [AbstractAPI](https://github.com/rjgamer/Filery/blob/master/api/classes/Filery/AbstractAPI.php#L15) class on line 15. +# Support +Older versions of Filery than the latest release aren't supported and recommended use. + # Donation If you like my work or if you use it for a commercial project, please give me a donation. Thanks! diff --git a/dist/filery/plugin.js b/dist/filery/plugin.js index e4b9ba9..b4b644c 100644 --- a/dist/filery/plugin.js +++ b/dist/filery/plugin.js @@ -1,4 +1,4 @@ -// [Filery: A TinyMCE plugin] 1.1.0 - 2018-09-11 +// [Filery: A TinyMCE plugin] 1.2.1 - 2018-09-13 (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); @@ -183,8 +183,8 @@ module.exports = !__webpack_require__(11)(function () { var global = __webpack_require__(1); var core = __webpack_require__(9); var hide = __webpack_require__(10); -var redefine = __webpack_require__(16); -var ctx = __webpack_require__(17); +var redefine = __webpack_require__(14); +var ctx = __webpack_require__(15); var PROTOTYPE = 'prototype'; var $export = function (type, name, source) { @@ -241,7 +241,7 @@ module.exports = function (it, key) { var $iterators = __webpack_require__(29); var getKeys = __webpack_require__(22); -var redefine = __webpack_require__(16); +var redefine = __webpack_require__(14); var global = __webpack_require__(1); var hide = __webpack_require__(10); var Iterators = __webpack_require__(21); @@ -349,13 +349,88 @@ module.exports = function (it) { /* 13 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(52)('asyncIterator'); +// to indexed object, toObject with fallback for non-array-like ES3 strings +var IObject = __webpack_require__(61); +var defined = __webpack_require__(25); +module.exports = function (it) { + return IObject(defined(it)); +}; /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { +var global = __webpack_require__(1); +var hide = __webpack_require__(10); +var has = __webpack_require__(7); +var SRC = __webpack_require__(19)('src'); +var TO_STRING = 'toString'; +var $toString = Function[TO_STRING]; +var TPL = ('' + $toString).split(TO_STRING); + +__webpack_require__(9).inspectSource = function (it) { + return $toString.call(it); +}; + +(module.exports = function (O, key, val, safe) { + var isFunction = typeof val == 'function'; + if (isFunction) has(val, 'name') || hide(val, 'name', key); + if (O[key] === val) return; + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); + if (O === global) { + O[key] = val; + } else if (!safe) { + delete O[key]; + hide(O, key, val); + } else if (O[key]) { + O[key] = val; + } else { + hide(O, key, val); + } +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative +})(Function.prototype, TO_STRING, function toString() { + return typeof this == 'function' && this[SRC] || $toString.call(this); +}); + + +/***/ }), +/* 15 */ +/***/ (function(module, exports, __webpack_require__) { + +// optional / simple context binding +var aFunction = __webpack_require__(26); +module.exports = function (fn, that, length) { + aFunction(fn); + if (that === undefined) return fn; + switch (length) { + case 1: return function (a) { + return fn.call(that, a); + }; + case 2: return function (a, b) { + return fn.call(that, a, b); + }; + case 3: return function (a, b, c) { + return fn.call(that, a, b, c); + }; + } + return function (/* ...args */) { + return fn.apply(that, arguments); + }; +}; + + +/***/ }), +/* 16 */ +/***/ (function(module, exports, __webpack_require__) { + +__webpack_require__(52)('asyncIterator'); + + +/***/ }), +/* 17 */ +/***/ (function(module, exports, __webpack_require__) { + "use strict"; // ECMAScript 6 symbols shim @@ -363,7 +438,7 @@ var global = __webpack_require__(1); var has = __webpack_require__(7); var DESCRIPTORS = __webpack_require__(5); var $export = __webpack_require__(6); -var redefine = __webpack_require__(16); +var redefine = __webpack_require__(14); var META = __webpack_require__(85).KEY; var $fails = __webpack_require__(11); var shared = __webpack_require__(30); @@ -376,7 +451,7 @@ var enumKeys = __webpack_require__(86); var isArray = __webpack_require__(87); var anObject = __webpack_require__(4); var isObject = __webpack_require__(3); -var toIObject = __webpack_require__(15); +var toIObject = __webpack_require__(13); var toPrimitive = __webpack_require__(24); var createDesc = __webpack_require__(20); var _create = __webpack_require__(32); @@ -593,81 +668,6 @@ setToStringTag(Math, 'Math', true); setToStringTag(global.JSON, 'JSON', true); -/***/ }), -/* 15 */ -/***/ (function(module, exports, __webpack_require__) { - -// to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(61); -var defined = __webpack_require__(25); -module.exports = function (it) { - return IObject(defined(it)); -}; - - -/***/ }), -/* 16 */ -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__(1); -var hide = __webpack_require__(10); -var has = __webpack_require__(7); -var SRC = __webpack_require__(19)('src'); -var TO_STRING = 'toString'; -var $toString = Function[TO_STRING]; -var TPL = ('' + $toString).split(TO_STRING); - -__webpack_require__(9).inspectSource = function (it) { - return $toString.call(it); -}; - -(module.exports = function (O, key, val, safe) { - var isFunction = typeof val == 'function'; - if (isFunction) has(val, 'name') || hide(val, 'name', key); - if (O[key] === val) return; - if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); - if (O === global) { - O[key] = val; - } else if (!safe) { - delete O[key]; - hide(O, key, val); - } else if (O[key]) { - O[key] = val; - } else { - hide(O, key, val); - } -// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative -})(Function.prototype, TO_STRING, function toString() { - return typeof this == 'function' && this[SRC] || $toString.call(this); -}); - - -/***/ }), -/* 17 */ -/***/ (function(module, exports, __webpack_require__) { - -// optional / simple context binding -var aFunction = __webpack_require__(26); -module.exports = function (fn, that, length) { - aFunction(fn); - if (that === undefined) return fn; - switch (length) { - case 1: return function (a) { - return fn.call(that, a); - }; - case 2: return function (a, b) { - return fn.call(that, a, b); - }; - case 3: return function (a, b, c) { - return fn.call(that, a, b, c); - }; - } - return function (/* ...args */) { - return fn.apply(that, arguments); - }; -}; - - /***/ }), /* 18 */ /***/ (function(module, exports) { @@ -1719,7 +1719,7 @@ request.put = function(url, data, fn) { var addToUnscopables = __webpack_require__(59); var step = __webpack_require__(60); var Iterators = __webpack_require__(21); -var toIObject = __webpack_require__(15); +var toIObject = __webpack_require__(13); // 22.1.3.4 Array.prototype.entries() // 22.1.3.13 Array.prototype.keys() @@ -1887,7 +1887,7 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { var pIE = __webpack_require__(36); var createDesc = __webpack_require__(20); -var toIObject = __webpack_require__(15); +var toIObject = __webpack_require__(13); var toPrimitive = __webpack_require__(24); var has = __webpack_require__(7); var IE8_DOM_DEFINE = __webpack_require__(39); @@ -1917,7 +1917,7 @@ module.exports = !__webpack_require__(5) && !__webpack_require__(11)(function () /***/ (function(module, exports, __webpack_require__) { var has = __webpack_require__(7); -var toIObject = __webpack_require__(15); +var toIObject = __webpack_require__(13); var arrayIndexOf = __webpack_require__(65)(false); var IE_PROTO = __webpack_require__(33)('IE_PROTO'); @@ -2056,7 +2056,7 @@ module.exports = __webpack_require__(9).getIteratorMethod = function (it) { /* 48 */ /***/ (function(module, exports, __webpack_require__) { -var ctx = __webpack_require__(17); +var ctx = __webpack_require__(15); var invoke = __webpack_require__(73); var html = __webpack_require__(42); var cel = __webpack_require__(31); @@ -2342,7 +2342,7 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { var LIBRARY = __webpack_require__(18); var $export = __webpack_require__(6); -var redefine = __webpack_require__(16); +var redefine = __webpack_require__(14); var hide = __webpack_require__(10); var Iterators = __webpack_require__(21); var $iterCreate = __webpack_require__(63); @@ -2455,7 +2455,7 @@ module.exports = __webpack_require__(5) ? Object.defineProperties : function def // false -> Array#indexOf // true -> Array#includes -var toIObject = __webpack_require__(15); +var toIObject = __webpack_require__(13); var toLength = __webpack_require__(23); var toAbsoluteIndex = __webpack_require__(66); module.exports = function (IS_INCLUDES) { @@ -3251,7 +3251,7 @@ module.exports = Object.getPrototypeOf || function (O) { var LIBRARY = __webpack_require__(18); var global = __webpack_require__(1); -var ctx = __webpack_require__(17); +var ctx = __webpack_require__(15); var classof = __webpack_require__(44); var $export = __webpack_require__(6); var isObject = __webpack_require__(3); @@ -3551,7 +3551,7 @@ module.exports = function (it, Constructor, name, forbiddenField) { /* 71 */ /***/ (function(module, exports, __webpack_require__) { -var ctx = __webpack_require__(17); +var ctx = __webpack_require__(15); var call = __webpack_require__(45); var isArrayIter = __webpack_require__(46); var anObject = __webpack_require__(4); @@ -3735,7 +3735,7 @@ module.exports = function (C, x) { /* 78 */ /***/ (function(module, exports, __webpack_require__) { -var redefine = __webpack_require__(16); +var redefine = __webpack_require__(14); module.exports = function (target, src, safe) { for (var key in src) redefine(target, key, src[key], safe); return target; @@ -4975,7 +4975,7 @@ module.exports = Array.isArray || function isArray(arg) { /***/ (function(module, exports, __webpack_require__) { // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window -var toIObject = __webpack_require__(15); +var toIObject = __webpack_require__(13); var gOPN = __webpack_require__(37).f; var toString = {}.toString; @@ -5106,7 +5106,7 @@ if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { } $Number.prototype = proto; proto.constructor = $Number; - __webpack_require__(16)(global, NUMBER, $Number); + __webpack_require__(14)(global, NUMBER, $Number); } @@ -5141,7 +5141,7 @@ module.exports = { set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line function (test, buggy, set) { try { - set = __webpack_require__(17)(Function.call, __webpack_require__(38).f(Object.prototype, '__proto__').set, 2); + set = __webpack_require__(15)(Function.call, __webpack_require__(38).f(Object.prototype, '__proto__').set, 2); set(test, []); buggy = !(test instanceof Array); } catch (e) { buggy = true; } @@ -5222,7 +5222,7 @@ module.exports = function (KEY, exec) { "use strict"; -var ctx = __webpack_require__(17); +var ctx = __webpack_require__(15); var $export = __webpack_require__(6); var toObject = __webpack_require__(35); var call = __webpack_require__(45); @@ -6246,10 +6246,10 @@ function () { return ApiClient; }(); // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.symbol.async-iterator.js -var es7_symbol_async_iterator = __webpack_require__(13); +var es7_symbol_async_iterator = __webpack_require__(16); // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.symbol.js -var es6_symbol = __webpack_require__(14); +var es6_symbol = __webpack_require__(17); // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.starts-with.js var es6_string_starts_with = __webpack_require__(89); @@ -7020,18 +7020,13 @@ var sass_plugin = __webpack_require__(100); -function plugin_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { plugin_typeof = function _typeof(obj) { return typeof obj; }; } else { plugin_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return plugin_typeof(obj); } - - - - /* harmony default export */ var ts_plugin = (function (editor, url) { var defaultSettings = { filery_dialog_height: '400px', filery_show_images: true }; Object.keys(defaultSettings).forEach(function (key) { - if (plugin_typeof(editor.settings[key]) === undefined) { + if (typeof editor.settings[key] === 'undefined') { editor.settings[key] = defaultSettings[key]; } }); @@ -7108,7 +7103,6 @@ function imagesUploadHandler(blobInfo, success, failure) { failure(error); }); } -; /***/ }) /******/ ]); diff --git a/dist/filery/plugin.min.js b/dist/filery/plugin.min.js index bebf046..9fb926c 100644 --- a/dist/filery/plugin.min.js +++ b/dist/filery/plugin.min.js @@ -1,2 +1,2 @@ -// [Filery: A TinyMCE plugin] 1.1.0 - 2018-09-11 - !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Filery=e():t.Filery=e()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=58)}([function(t,e,n){var r=n(30)("wks"),o=n(19),i=n(1).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(4),o=n(39),i=n(24),a=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(9),i=n(10),a=n(16),s=n(17),u=function(t,e,n){var c,f,l,p,h=t&u.F,y=t&u.G,d=t&u.S,m=t&u.P,v=t&u.B,g=y?r:d?r[e]||(r[e]={}):(r[e]||{}).prototype,b=y?o:o[e]||(o[e]={}),A=b.prototype||(b.prototype={});for(c in y&&(n=e),n)l=((f=!h&&g&&void 0!==g[c])?g:n)[c],p=v&&f?s(l,r):m&&"function"==typeof l?s(Function.call,l):l,g&&a(g,c,l,t&u.U),b[c]!=l&&i(b,c,p),m&&A[c]!=l&&(A[c]=l)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){for(var r=n(29),o=n(22),i=n(16),a=n(1),s=n(10),u=n(21),c=n(0),f=c("iterator"),l=c("toStringTag"),p=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=o(h),d=0;do;)z(t,n=r[o++],e[n]);return t},W=function(t){var e=F.call(this,t=w(t,!0));return!(this===q&&o(M,t)&&!o(U,t))&&(!(e||!o(this,t)||!o(M,t)||o(this,L)&&this[L][t])||e)},K=function(t,e){if(t=A(t),e=w(e,!0),t!==q||!o(M,e)||o(U,e)){var n=S(t,e);return!n||!o(M,e)||o(t,L)&&t[L][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=j(A(t)),r=[],i=0;n.length>i;)o(M,e=n[i++])||e==L||e==u||r.push(e);return r},Z=function(t){for(var e,n=t===q,r=j(n?U:A(t)),i=[],a=0;r.length>a;)!o(M,e=r[a++])||n&&!o(q,e)||i.push(M[e]);return i};H||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===q&&e.call(U,n),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),Q(this,t,x(1,n))};return i&&Y&&Q(q,t,{configurable:!0,set:e}),X(t)}).prototype,"toString",function(){return this._k}),_.f=K,k.f=z,n(37).f=O.f=J,n(36).f=W,n(54).f=Z,i&&!n(18)&&s(q,"propertyIsEnumerable",W,!0),y.f=function(t){return X(h(t))}),a(a.G+a.W+a.F*!H,{Symbol:P});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)h($[tt++]);for(var et=T(h.store),nt=0;et.length>nt;)d(et[nt++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=P(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!H,"Object",{create:function(t,e){return void 0===e?E(t):V(E(t),e)},defineProperty:z,defineProperties:V,getOwnPropertyDescriptor:K,getOwnPropertyNames:J,getOwnPropertySymbols:Z}),R&&a(a.S+a.F*(!H||c(function(){var t=P();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!G(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,B.apply(R,r)}}),P.prototype[D]||n(10)(P.prototype,D,P.prototype.valueOf),l(P,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(61),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(1),o=n(10),i=n(7),a=n(19)("src"),s=Function.toString,u=(""+s).split("toString");n(9).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(26);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=!1},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r=n(40),o=n(34);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(41),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(2).f,o=n(7),i=n(0)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r;"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:(console.warn("Using browser-only version of superagent in non-browser environment"),r=this);var o=n(80),i=n(81),a=n(51),s=n(82),u=n(84);function c(){}var f=e=t.exports=function(t,n){return"function"==typeof n?new e.Request("GET",t).end(n):1==arguments.length?new e.Request("GET",t):new e.Request(t,n)};e.Request=v,f.getXHR=function(){if(!(!r.XMLHttpRequest||r.location&&"file:"==r.location.protocol&&r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw Error("Browser-only version of superagent could not find XHR")};var l="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function p(t){if(!a(t))return t;var e=[];for(var n in t)h(e,n,t[n]);return e.join("&")}function h(t,e,n){if(null!=n)if(Array.isArray(n))n.forEach(function(n){h(t,e,n)});else if(a(n))for(var r in n)h(t,e+"["+r+"]",n[r]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(n));else null===n&&t.push(encodeURIComponent(e))}function y(t){for(var e,n,r={},o=t.split("&"),i=0,a=o.length;i=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.onprogress=r.bind(null,"download"),e.upload&&(e.upload.onprogress=r.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||f.serialize[o?o.split(";")[0]:""];!i&&d(o)&&(i=f.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&e.setRequestHeader(a,this.header[a]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==n?n:null),this},f.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){u.prototype[t.toLowerCase()]=function(e,n){var r=new f.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}}),u.prototype.del=u.prototype.delete,f.get=function(t,e,n){var r=f("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},f.head=function(t,e,n){var r=f("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},f.options=function(t,e,n){var r=f("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},f.del=g,f.delete=g,f.patch=function(t,e,n){var r=f("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},f.post=function(t,e,n){var r=f("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},f.put=function(t,e,n){var r=f("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},function(t,e,n){"use strict";var r=n(59),o=n(60),i=n(21),a=n(15);t.exports=n(62)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(9),o=n(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(3),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4),o=n(64),i=n(34),a=n(33)("IE_PROTO"),s=function(){},u=function(){var t,e=n(31)("iframe"),r=i.length;for(e.style.display="none",n(42).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("