leancloud-storage
Version:
LeanCloud JavaScript SDK.
1 lines • 406 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.AV=e():t.AV=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=272)}([function(t,e,n){"use strict";var r=n(7),i=n(73),o=n(4),a=n(8),s=n(60).f,u=n(153),c=n(6),f=n(48),l=n(37),h=n(12),d=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return i(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,i,p,v,g,m,y,b,_,w=t.target,E=t.global,O=t.stat,T=t.proto,S=E?r:O?r[w]:(r[w]||{}).prototype,A=E?c:c[w]||l(c,w,{})[w],x=A.prototype;for(v in e)n=u(E?v:w+(O?".":"#")+v,t.forced),i=!n&&S&&h(S,v),m=A[v],i&&(t.dontCallGetSet?(_=s(S,v),y=_&&_.value):y=S[v]),g=i&&y?y:e[v],i&&typeof m==typeof g||(b=t.bind&&i?f(g,r):t.wrap&&i?d(g):T&&a(g)?o(g):g,(t.sham||g&&g.sham||m&&m.sham)&&l(b,"sham",!0),l(A,v,b),T&&(p=w+"Prototype",h(c,p)||l(c,p,{}),l(c[p],v,g),t.real&&x&&!x[v]&&l(x,v,g)))}},function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(312);n.d(e,"default",function(){return r.a});var i=n(131);n.d(e,"VERSION",function(){return i.VERSION}),n.d(e,"restArguments",function(){return i.restArguments}),n.d(e,"isObject",function(){return i.isObject}),n.d(e,"isNull",function(){return i.isNull}),n.d(e,"isUndefined",function(){return i.isUndefined}),n.d(e,"isBoolean",function(){return i.isBoolean}),n.d(e,"isElement",function(){return i.isElement}),n.d(e,"isString",function(){return i.isString}),n.d(e,"isNumber",function(){return i.isNumber}),n.d(e,"isDate",function(){return i.isDate}),n.d(e,"isRegExp",function(){return i.isRegExp}),n.d(e,"isError",function(){return i.isError}),n.d(e,"isSymbol",function(){return i.isSymbol}),n.d(e,"isArrayBuffer",function(){return i.isArrayBuffer}),n.d(e,"isDataView",function(){return i.isDataView}),n.d(e,"isArray",function(){return i.isArray}),n.d(e,"isFunction",function(){return i.isFunction}),n.d(e,"isArguments",function(){return i.isArguments}),n.d(e,"isFinite",function(){return i.isFinite}),n.d(e,"isNaN",function(){return i.isNaN}),n.d(e,"isTypedArray",function(){return i.isTypedArray}),n.d(e,"isEmpty",function(){return i.isEmpty}),n.d(e,"isMatch",function(){return i.isMatch}),n.d(e,"isEqual",function(){return i.isEqual}),n.d(e,"isMap",function(){return i.isMap}),n.d(e,"isWeakMap",function(){return i.isWeakMap}),n.d(e,"isSet",function(){return i.isSet}),n.d(e,"isWeakSet",function(){return i.isWeakSet}),n.d(e,"keys",function(){return i.keys}),n.d(e,"allKeys",function(){return i.allKeys}),n.d(e,"values",function(){return i.values}),n.d(e,"pairs",function(){return i.pairs}),n.d(e,"invert",function(){return i.invert}),n.d(e,"functions",function(){return i.functions}),n.d(e,"methods",function(){return i.methods}),n.d(e,"extend",function(){return i.extend}),n.d(e,"extendOwn",function(){return i.extendOwn}),n.d(e,"assign",function(){return i.assign}),n.d(e,"defaults",function(){return i.defaults}),n.d(e,"create",function(){return i.create}),n.d(e,"clone",function(){return i.clone}),n.d(e,"tap",function(){return i.tap}),n.d(e,"get",function(){return i.get}),n.d(e,"has",function(){return i.has}),n.d(e,"mapObject",function(){return i.mapObject}),n.d(e,"identity",function(){return i.identity}),n.d(e,"constant",function(){return i.constant}),n.d(e,"noop",function(){return i.noop}),n.d(e,"toPath",function(){return i.toPath}),n.d(e,"property",function(){return i.property}),n.d(e,"propertyOf",function(){return i.propertyOf}),n.d(e,"matcher",function(){return i.matcher}),n.d(e,"matches",function(){return i.matches}),n.d(e,"times",function(){return i.times}),n.d(e,"random",function(){return i.random}),n.d(e,"now",function(){return i.now}),n.d(e,"escape",function(){return i.escape}),n.d(e,"unescape",function(){return i.unescape}),n.d(e,"templateSettings",function(){return i.templateSettings}),n.d(e,"template",function(){return i.template}),n.d(e,"result",function(){return i.result}),n.d(e,"uniqueId",function(){return i.uniqueId}),n.d(e,"chain",function(){return i.chain}),n.d(e,"iteratee",function(){return i.iteratee}),n.d(e,"partial",function(){return i.partial}),n.d(e,"bind",function(){return i.bind}),n.d(e,"bindAll",function(){return i.bindAll}),n.d(e,"memoize",function(){return i.memoize}),n.d(e,"delay",function(){return i.delay}),n.d(e,"defer",function(){return i.defer}),n.d(e,"throttle",function(){return i.throttle}),n.d(e,"debounce",function(){return i.debounce}),n.d(e,"wrap",function(){return i.wrap}),n.d(e,"negate",function(){return i.negate}),n.d(e,"compose",function(){return i.compose}),n.d(e,"after",function(){return i.after}),n.d(e,"before",function(){return i.before}),n.d(e,"once",function(){return i.once}),n.d(e,"findKey",function(){return i.findKey}),n.d(e,"findIndex",function(){return i.findIndex}),n.d(e,"findLastIndex",function(){return i.findLastIndex}),n.d(e,"sortedIndex",function(){return i.sortedIndex}),n.d(e,"indexOf",function(){return i.indexOf}),n.d(e,"lastIndexOf",function(){return i.lastIndexOf}),n.d(e,"find",function(){return i.find}),n.d(e,"detect",function(){return i.detect}),n.d(e,"findWhere",function(){return i.findWhere}),n.d(e,"each",function(){return i.each}),n.d(e,"forEach",function(){return i.forEach}),n.d(e,"map",function(){return i.map}),n.d(e,"collect",function(){return i.collect}),n.d(e,"reduce",function(){return i.reduce}),n.d(e,"foldl",function(){return i.foldl}),n.d(e,"inject",function(){return i.inject}),n.d(e,"reduceRight",function(){return i.reduceRight}),n.d(e,"foldr",function(){return i.foldr}),n.d(e,"filter",function(){return i.filter}),n.d(e,"select",function(){return i.select}),n.d(e,"reject",function(){return i.reject}),n.d(e,"every",function(){return i.every}),n.d(e,"all",function(){return i.all}),n.d(e,"some",function(){return i.some}),n.d(e,"any",function(){return i.any}),n.d(e,"contains",function(){return i.contains}),n.d(e,"includes",function(){return i.includes}),n.d(e,"include",function(){return i.include}),n.d(e,"invoke",function(){return i.invoke}),n.d(e,"pluck",function(){return i.pluck}),n.d(e,"where",function(){return i.where}),n.d(e,"max",function(){return i.max}),n.d(e,"min",function(){return i.min}),n.d(e,"shuffle",function(){return i.shuffle}),n.d(e,"sample",function(){return i.sample}),n.d(e,"sortBy",function(){return i.sortBy}),n.d(e,"groupBy",function(){return i.groupBy}),n.d(e,"indexBy",function(){return i.indexBy}),n.d(e,"countBy",function(){return i.countBy}),n.d(e,"partition",function(){return i.partition}),n.d(e,"toArray",function(){return i.toArray}),n.d(e,"size",function(){return i.size}),n.d(e,"pick",function(){return i.pick}),n.d(e,"omit",function(){return i.omit}),n.d(e,"first",function(){return i.first}),n.d(e,"head",function(){return i.head}),n.d(e,"take",function(){return i.take}),n.d(e,"initial",function(){return i.initial}),n.d(e,"last",function(){return i.last}),n.d(e,"rest",function(){return i.rest}),n.d(e,"tail",function(){return i.tail}),n.d(e,"drop",function(){return i.drop}),n.d(e,"compact",function(){return i.compact}),n.d(e,"flatten",function(){return i.flatten}),n.d(e,"without",function(){return i.without}),n.d(e,"uniq",function(){return i.uniq}),n.d(e,"unique",function(){return i.unique}),n.d(e,"union",function(){return i.union}),n.d(e,"intersection",function(){return i.intersection}),n.d(e,"difference",function(){return i.difference}),n.d(e,"unzip",function(){return i.unzip}),n.d(e,"transpose",function(){return i.transpose}),n.d(e,"zip",function(){return i.zip}),n.d(e,"object",function(){return i.object}),n.d(e,"range",function(){return i.range}),n.d(e,"chunk",function(){return i.chunk}),n.d(e,"mixin",function(){return i.mixin})},function(t,e,n){var r=n(74),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},function(t,e,n){"use strict";(function(t){n.d(e,"e",function(){return r}),n.d(e,"p",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"d",function(){return s}),n.d(e,"o",function(){return u}),n.d(e,"q",function(){return c}),n.d(e,"t",function(){return f}),n.d(e,"i",function(){return l}),n.d(e,"r",function(){return h}),n.d(e,"s",function(){return d}),n.d(e,"k",function(){return p}),n.d(e,"m",function(){return v}),n.d(e,"j",function(){return g}),n.d(e,"l",function(){return m}),n.d(e,"g",function(){return y}),n.d(e,"f",function(){return b}),n.d(e,"h",function(){return _}),n.d(e,"n",function(){return w}),n.d(e,"b",function(){return E});var r="1.12.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||Function("return this")()||{},o=Array.prototype,a=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,c=o.slice,f=a.toString,l=a.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,d="undefined"!=typeof DataView,p=Array.isArray,v=Object.keys,g=Object.create,m=h&&ArrayBuffer.isView,y=isNaN,b=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],E=Math.pow(2,53)-1}).call(e,n(72))},function(t,e){t.exports={}},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(e,n(72))},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(7),i=n(77),o=n(12),a=n(98),s=n(62),u=n(151),c=i("wks"),f=r.Symbol,l=f&&f.for,h=u?f:f&&f.withoutSetter||a;t.exports=function(t){if(!o(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&o(f,t)?c[t]=f[t]:c[t]=u&&l?l(e):h(e)}return c[t]}},function(t,e,n){var r=n(6),i=n(12),o=n(147),a=n(23).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,n){var r=n(8);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(4),i=n(34),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},function(t,e,n){t.exports=n(275)},function(t,e,n){var r=n(2);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e,n){var r=n(74),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,e,n){"use strict";function r(t){if(!Object(i.a)(t))return[];if(o.m)return Object(o.m)(t);var e=[];for(var n in t)Object(a.a)(t,n)&&e.push(n);return o.h&&Object(s.a)(t,e),e}e.a=r;var i=n(54),o=n(5),a=n(45),s=n(184)},function(t,e,n){"use strict";function r(t){var e="[object "+t+"]";return function(t){return i.t.call(t)===e}}e.a=r;var i=n(5)},function(t,e,n){var r=n(6),i=n(7),o=n(8),a=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t])||a(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},function(t,e,n){var r=n(4);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(11),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},function(t,e,n){"use strict";function r(t,e,n){return i.a.iteratee!==a.a?i.a.iteratee(t,e):Object(o.a)(t,e,n)}e.a=r;var i=n(25),o=n(194),a=n(195)},function(t,e,n){t.exports=n(384)},function(t,e,n){var r=n(14),i=n(152),o=n(154),a=n(20),s=n(95),u=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor;e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=f(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";function r(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var o=Array(e+1);for(i=0;i<e;i++)o[i]=arguments[i];return o[e]=r,t.apply(this,o)}}e.a=r},function(t,e,n){"use strict";function r(t){return t instanceof r?t:this instanceof r?void(this._wrapped=t):new r(t)}e.a=r;var i=n(5);r.VERSION=i.e,r.prototype.value=function(){return this._wrapped},r.prototype.valueOf=r.prototype.toJSON=r.prototype.value,r.prototype.toString=function(){return String(this._wrapped)}},function(t,e,n){"use strict";var r=n(182),i=n(29);e.a=Object(r.a)(i.a)},function(t,e,n){"use strict";var r=n(1),i=r(n(22)),o=r(n(13)),a=n(3),s=n(522),u=n(3),c=u.extend,f=n(69),l=n(46),h=n(30),d=h.getSessionToken,p=n(115),v=function(t,e){var n,r=(new Date).getTime(),o=s(r+t);if(e){var a;return(0,i.default)(a="".concat(o,",")).call(a,r,",master")}return(0,i.default)(n="".concat(o,",")).call(n,r)},g=function(t,e){e?t["X-LC-Sign"]=v(f.applicationKey):t["X-LC-Key"]=f.applicationKey},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n={"X-LC-Id":f.applicationId,"Content-Type":"application/json;charset=UTF-8"},r=!1;return"boolean"==typeof t.useMasterKey?r=t.useMasterKey:"boolean"==typeof f._config.useMasterKey&&(r=f._config.useMasterKey),r?f.masterKey?e?n["X-LC-Sign"]=v(f.masterKey,!0):n["X-LC-Key"]="".concat(f.masterKey,",master"):(console.warn("masterKey is not set, fall back to use appKey"),g(n,e)):g(n,e),f.hookKey&&(n["X-LC-Hook-Key"]=f.hookKey),null!==f._config.production&&(n["X-LC-Prod"]=String(f._config.production)),n["X-LC-UA"]=f._sharedConfig.userAgent,o.default.resolve().then(function(){var e=d(t);if(e)n["X-LC-Session"]=e;else if(!f._config.disableCurrentUser)return f.User.currentAsync().then(function(t){return t&&t._sessionToken&&(n["X-LC-Session"]=t._sessionToken),n});return n})},y=function(t){var e=t.service,n=void 0===e?"api":e,r=t.version,i=void 0===r?"1.1":r,o=t.path,a=f._config.serverURLs[n];if(!a)throw new Error("undefined server URL for ".concat(n));return"/"!==a.charAt(a.length-1)&&(a+="/"),a+=i,o&&(a+=o),a},b=function(t){var e=t.service,n=t.version,r=t.method,o=t.path,s=t.query,u=t.data,c=t.authOptions,h=t.signKey,d=void 0===h||h;if(!f.applicationId||!f.applicationKey&&!f.masterKey)throw new Error("Not initialized");f._appRouter&&f._appRouter.refresh();var v=f._config.requestTimeout,g=y({service:e,path:o,version:n});return m(c,d).then(function(t){return p({method:r,url:g,query:s,data:u,headers:t,timeout:v}).catch(function(t){var e={code:t.code||-1,error:t.message||t.responseText};if(t.response&&t.response.code)e=t.response;else if(t.responseText)try{e=JSON.parse(t.responseText)}catch(t){}if(e.rawMessage=e.rawMessage||e.error,!f._sharedConfig.keepErrorRawMessage){var n,o;e.error+=(0,i.default)(n=(0,i.default)(o=" [".concat(t.statusCode||"N/A"," ")).call(o,r," ")).call(n,g,"]")}var s=new l(e.code,e.error);throw delete e.error,a.extend(s,e)})})},_=function(t,e,n,r,i,o,a){var s="";if(t&&(s+="/".concat(t)),e&&(s+="/".concat(e)),n&&(s+="/".concat(n)),i&&i._fetchWhenSave)throw new Error("_fetchWhenSave should be in the query");if(i&&i._where)throw new Error("_where should be in the query");return r&&"get"===r.toLowerCase()&&(a=c({},a,i),i=null),b({method:r,path:s,query:a,data:i,authOptions:o})};f.request=b,t.exports={_request:_,request:b}},function(t,e,n){"use strict";var r=n(17),i=n(5),o=Object(r.a)("Function"),a=i.p.document&&i.p.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof a&&(o=function(t){return"function"==typeof t||!1}),e.a=o},function(t,e,n){"use strict";var r=n(183);e.a=Object(r.a)("length")},function(t,e,n){"use strict";var r=n(1),i=r(n(57)),o=r(n(227)),a=r(n(13)),s=n(3),u=function(t){return s.isNull(t)||s.isUndefined(t)},c=function(t){return s.isArray(t)?t:void 0===t||null===t?[]:[t]},f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,i.default)(t),n=t.include,r=t.includeACL,o={};return e&&(o.keys=c(e).join(",")),n&&(o.include=c(n).join(",")),r&&(o.returnACL=r),o},l=function(t){return t.sessionToken?t.sessionToken:t.user&&"function"==typeof t.user.getSessionToken?t.user.getSessionToken():void 0},h=function(t){return function(e){return t(e),e}},d=function(){},p=function(t,e,n){var r;return r=e&&e.hasOwnProperty("constructor")?e.constructor:function(){t.apply(this,arguments)},s.extend(r,t),d.prototype=t.prototype,r.prototype=new d,e&&s.extend(r.prototype,e),n&&s.extend(r,n),r.prototype.constructor=r,r.__super__=t.prototype,r},v=function(t){return new Date(t)},g=function(t,e,n){var r=e.split("."),i=r.pop(),o=t;return r.forEach(function(t){void 0===o[t]&&(o[t]={}),o=o[t]}),o[i]=n,t},m=function(t,e){for(var n=e.split("."),r=n[0],i=n.pop(),o=t,a=0;a<n.length;a++)if(void 0===(o=o[n[a]]))return[void 0,void 0,i];return[o[i],o,i,r]},y=function(t){return s.isObject(t)&&(0,o.default)(t)===Object.prototype},b=function t(e,n){return e()?n().then(function(){return t(e,n)}):a.default.resolve()};t.exports={isNullOrUndefined:u,ensureArray:c,transformFetchOptions:f,getSessionToken:l,tap:h,inherits:p,parseDate:v,setValue:g,findValue:m,isPlainObject:y,continueWhile:b}},function(t,e,n){var r=n(8),i=n(76),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},function(t,e,n){var r=n(94),i=n(120);t.exports=function(t){return r(i(t))}},function(t,e){t.exports=!0},function(t,e,n){var r=n(120),i=Object;t.exports=function(t){return i(r(t))}},function(t,e,n){t.exports=n(389)},function(t,e,n){t.exports=n(396)},function(t,e,n){var r=n(14),i=n(23),o=n(47);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(6);t.exports=function(t){return r[t+"Prototype"]}},function(t,e,n){var r=n(285);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(48),i=n(15),o=n(20),a=n(76),s=n(160),u=n(39),c=n(19),f=n(161),l=n(105),h=n(162),d=TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var g,m,y,b,_,w,E,O=n&&n.that,T=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),x=r(e,O),I=function(t){return g&&h(g,"normal",t),new p(!0,t)},j=function(t){return T?(o(t),A?x(t[0],t[1],I):x(t[0],t[1])):A?x(t,I):x(t)};if(S)g=t;else{if(!(m=l(t)))throw d(a(t)+" is not iterable");if(s(m)){for(y=0,b=u(t);b>y;y++)if((_=j(t[y]))&&c(v,_))return _;return new p(!1)}g=f(t,m)}for(w=g.next;!(E=i(w,g)).done;){try{_=j(E.value)}catch(t){h(g,"throw",t)}if("object"==typeof _&&_&&c(v,_))return _}return new p(!1)}},function(t,e,n){"use strict";var r=n(32),i=n(163),o=n(50),a=n(42),s=n(23).f,u=n(130),c=n(33),f=n(14),l=a.set,h=a.getterFor("Array Iterator");t.exports=u(Array,"Array",function(t,e){l(this,{type:"Array Iterator",target:r(t),index:0,kind:e})},function(){var t=h(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");var d=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&f&&"values"!==d.name)try{s(d,"name",{value:"values"})}catch(t){}},function(t,e,n){var r,i,o,a=n(164),s=n(7),u=n(4),c=n(11),f=n(37),l=n(12),h=n(122),d=n(100),p=n(78),v=s.TypeError,g=s.WeakMap,m=function(t){return o(t)?i(t):r(t,{})},y=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}};if(a||h.state){var b=h.state||(h.state=new g),_=u(b.get),w=u(b.has),E=u(b.set);r=function(t,e){if(w(b,t))throw new v("Object already initialized");return e.facade=t,E(b,t,e),e},i=function(t){return _(b,t)||{}},o=function(t){return w(b,t)}}else{var O=d("state");p[O]=!0,r=function(t,e){if(l(t,O))throw new v("Object already initialized");return e.facade=t,f(t,O,e),e},i=function(t){return l(t,O)?t[O]:{}},o=function(t){return l(t,O)}}t.exports={set:r,get:i,has:o,enforce:m,getterFor:y}},function(t,e,n){var r=n(37);t.exports=function(t,e,n,i){return i&&i.enumerable?t[e]=n:r(t,e,n),t}},function(t,e,n){n(41);var r=n(311),i=n(7),o=n(51),a=n(37),s=n(50),u=n(9),c=u("toStringTag");for(var f in r){var l=i[f],h=l&&l.prototype;h&&o(h)!==c&&a(h,c,f),s[f]=s.Array}},function(t,e,n){"use strict";function r(t,e){return null!=t&&i.i.call(t,e)}e.a=r;var i=n(5)},function(t,e,n){"use strict";function r(t,e){if(this instanceof r?this.constructor:void 0){var n=new Error(e);return(0,o.default)(n,(0,a.default)(this)),n.code=t,n}return new r(t,e)}var i=n(1),o=i(n(411)),a=i(n(227)),s=n(3);r.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),(0,o.default)(r,Error),s.extend(r,{OTHER_CAUSE:-1,INTERNAL_SERVER_ERROR:1,CONNECTION_FAILED:100,OBJECT_NOT_FOUND:101,INVALID_QUERY:102,INVALID_CLASS_NAME:103,MISSING_OBJECT_ID:104,INVALID_KEY_NAME:105,INVALID_POINTER:106,INVALID_JSON:107,COMMAND_UNAVAILABLE:108,NOT_INITIALIZED:109,INCORRECT_TYPE:111,INVALID_CHANNEL_NAME:112,PUSH_MISCONFIGURED:115,OBJECT_TOO_LARGE:116,OPERATION_FORBIDDEN:119,CACHE_MISS:120,INVALID_NESTED_KEY:121,INVALID_FILE_NAME:122,INVALID_ACL:123,TIMEOUT:124,INVALID_EMAIL_ADDRESS:125,MISSING_CONTENT_TYPE:126,MISSING_CONTENT_LENGTH:127,INVALID_CONTENT_LENGTH:128,FILE_TOO_LARGE:129,FILE_SAVE_ERROR:130,FILE_DELETE_ERROR:153,DUPLICATE_VALUE:137,INVALID_ROLE_NAME:139,EXCEEDED_QUOTA:140,SCRIPT_FAILED:141,VALIDATION_ERROR:142,INVALID_IMAGE_DATA:150,UNSAVED_FILE_ERROR:151,INVALID_PUSH_TIME_ERROR:152,USERNAME_MISSING:200,PASSWORD_MISSING:201,USERNAME_TAKEN:202,EMAIL_TAKEN:203,EMAIL_MISSING:204,EMAIL_NOT_FOUND:205,SESSION_MISSING:206,MUST_CREATE_USER_THROUGH_SIGNUP:207,ACCOUNT_ALREADY_LINKED:208,LINKED_ID_MISSING:250,INVALID_LINKED_SESSION:251,UNSUPPORTED_SERVICE:252,X_DOMAIN_REQUEST:602}),t.exports=r},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(4),i=n(31),o=n(74),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r,i=n(20),o=n(127),a=n(126),s=n(78),u=n(159),c=n(123),f=n(100),l=f("IE_PROTO"),h=function(){},d=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=c("iframe");return e.style.display="none",u.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(d("document.F=Object")),t.close(),t.F},g=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}g="undefined"!=typeof document?document.domain&&r?p(r):v():p(r);for(var t=a.length;t--;)delete g.prototype[a[t]];return g()};s[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=i(t),n=new h,h.prototype=null,n[l]=t):n=g(),void 0===e?n:o.f(n,e)}},function(t,e){t.exports={}},function(t,e,n){var r=n(128),i=n(8),o=n(61),a=n(9),s=a("toStringTag"),u=Object,c="Arguments"==o(function(){return arguments}()),f=function(t,e){try{return t[e]}catch(t){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=f(e=u(t),s))?n:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r=n(128),i=n(23).f,o=n(37),a=n(12),s=n(292),u=n(9),c=u("toStringTag");t.exports=function(t,e,n,u){if(t){var f=n?t:t.prototype;a(f,c)||i(f,c,{configurable:!0,value:e}),u&&!r&&o(f,"toString",s)}}},function(t,e,n){"use strict";var r=n(31),i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},function(t,e,n){"use strict";function r(t){var e=typeof t;return"function"===e||"object"===e&&!!t}e.a=r},function(t,e,n){"use strict";var r=n(5),i=n(17);e.a=r.k||Object(i.a)("Array")},function(t,e,n){"use strict";function r(t,e,n){e=Object(i.a)(e,n);var r,s;if(Object(o.a)(t))for(r=0,s=t.length;r<s;r++)e(t[r],r,t);else{var u=Object(a.a)(t);for(r=0,s=u.length;r<s;r++)e(t[u[r]],u[r],t)}return t}e.a=r;var i=n(85),o=n(26),a=n(16)},function(t,e,n){t.exports=n(402)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(r++,"%c"===t&&(i=r))}),e.splice(i,0,n)}}function a(){var t;return"object"===("undefined"==typeof console?"undefined":r(console))&&console.log&&(t=console).log.apply(t,arguments)}function s(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}}function u(){var t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}e.log=a,e.formatArgs=o,e.save=s,e.load=u,e.useColors=i,e.storage=function(){try{return localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=n(407)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(t,e,n){t.exports=n(234)},function(t,e,n){var r=n(14),i=n(15),o=n(119),a=n(47),s=n(32),u=n(95),c=n(12),f=n(152),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=s(t),e=u(e),f)try{return l(t,e)}catch(t){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},function(t,e,n){var r=n(4),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},function(t,e,n){var r=n(75),i=n(2);t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(t,e){},function(t,e,n){var r=n(7);t.exports=r.Promise},function(t,e,n){"use strict";var r=n(310).charAt,i=n(79),o=n(42),a=n(130),s=o.set,u=o.getterFor("String Iterator");a(String,"String",function(t){s(this,{type:"String Iterator",string:i(t),index:0})},function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";function r(t){for(var e=Object(i.a)(t),n=e.length,r=Array(n),o=0;o<n;o++)r[o]=t[e[o]];return r}e.a=r;var i=n(16)},function(t,e,n){"use strict";function r(t,e,n,u){if(u=u||[],e||0===e){if(e<=0)return u.concat(t)}else e=1/0;for(var c=u.length,f=0,l=Object(i.a)(t);f<l;f++){var h=t[f];if(Object(o.a)(h)&&(Object(a.a)(h)||Object(s.a)(h)))if(e>1)r(h,e-1,n,u),c=u.length;else for(var d=0,p=h.length;d<p;)u[c++]=h[d++];else n||(u[c++]=h)}return u}e.a=r;var i=n(29),o=n(26),a=n(55),s=n(134)},function(t,e,n){"use strict";function r(t,e,n){e=Object(i.a)(e,n);for(var r=!Object(o.a)(t)&&Object(a.a)(t),s=(r||t).length,u=Array(s),c=0;c<s;c++){var f=r?r[c]:c;u[c]=e(t[f],f,t)}return u}e.a=r;var i=n(21),o=n(26),a=n(16)},function(t,e,n){"use strict";(function(e){var r=n(1),i=r(n(13)),o=r(n(22)),a=r(n(35)),s=r(n(146)),u=r(n(36)),c=r(n(90)),f=r(n(57)),l=n(3),h=n(226),d=n(58),p=n(30),v=p.inherits,g=p.parseDate,m=n(229),y=n(71),b=y.setAdapters,_=y.adapterManager,w=e.AV||{};w._config={serverURLs:{},useMasterKey:!1,production:null,realtime:null,requestTimeout:null};var E="LeanCloud-JS-SDK/".concat(m);w._sharedConfig={userAgent:E,liveQueryRealtime:null},_.on("platformInfo",function(t){var e=E;if(t)if(t.userAgent)e=t.userAgent;else{var n=t.name;t.version&&(n+="/".concat(t.version)),t.extra&&(n+="; ".concat(t.extra)),e+=" (".concat(n,")")}w._sharedConfig.userAgent=e}),w._getAVPath=function(t){if(!w.applicationId)throw new Error("You need to call AV.initialize before using AV.");if(t||(t=""),!l.isString(t))throw new Error("Tried to get a localStorage path that wasn't a String.");return"/"===t[0]&&(t=t.substring(1)),"AV/"+w.applicationId+"/"+t},w._installationId=null,w._getInstallationId=function(){if(w._installationId)return i.default.resolve(w._installationId);var t=w._getAVPath("installationId");return w.localStorage.getItemAsync(t).then(function(e){return w._installationId=e,w._installationId?e:(w._installationId=e=h(),w.localStorage.setItemAsync(t,e).then(function(){return e}))})},w._subscriptionId=null,w._refreshSubscriptionId=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w._getAVPath("subscriptionId"),e=w._subscriptionId=h();return w.localStorage.setItemAsync(t,e).then(function(){return e})},w._getSubscriptionId=function(){if(w._subscriptionId)return i.default.resolve(w._subscriptionId);var t=w._getAVPath("subscriptionId");return w.localStorage.getItemAsync(t).then(function(e){return w._subscriptionId=e,w._subscriptionId||(e=w._refreshSubscriptionId(t)),e})},w._parseDate=g,w._extend=function(t,e){var n=v(this,t,e);return n.extend=this.extend,n},w._encode=function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof w.Object){if(n)throw new Error("AV.Objects not allowed here");return e&&!l.include(e,t)&&t._hasData?t._toFullJSON((0,o.default)(e).call(e,t),r):t._toPointer()}if(t instanceof w.ACL)return t.toJSON();if(l.isDate(t))return r?{__type:"Date",iso:t.toJSON()}:t.toJSON();if(t instanceof w.GeoPoint)return t.toJSON();if(l.isArray(t))return(0,a.default)(l).call(l,t,function(t){return w._encode(t,e,n,r)});if(l.isRegExp(t))return t.source;if(t instanceof w.Relation)return t.toJSON();if(t instanceof w.Op)return t.toJSON();if(t instanceof w.File){if(!t.url()&&!t.id)throw new Error("Tried to save an object containing an unsaved file.");return t._toFullJSON(e,r)}return l.isObject(t)?l.mapObject(t,function(t,i){return w._encode(t,e,n,r)}):t},w._decode=function(t,e){if(!l.isObject(t)||l.isDate(t))return t;if(l.isArray(t))return(0,a.default)(l).call(l,t,function(t){return w._decode(t)});if(t instanceof w.Object)return t;if(t instanceof w.File)return t;if(t instanceof w.Op)return t;if(t instanceof w.GeoPoint)return t;if(t instanceof w.ACL)return t;if("ACL"===e)return new w.ACL(t);if(t.__op)return w.Op._decode(t);var n;if("Pointer"===t.__type){n=t.className;var r=w.Object._create(n);if((0,s.default)(t).length>3){var i=l.clone(t);delete i.__type,delete i.className,r._finishFetch(i,!0)}else r._finishFetch({objectId:t.objectId},!1);return r}if("Object"===t.__type){n=t.className;var o=l.clone(t);delete o.__type,delete o.className;var u=w.Object._create(n);return u._finishFetch(o,!0),u}if("Date"===t.__type)return w._parseDate(t.iso);if("GeoPoint"===t.__type)return new w.GeoPoint({latitude:t.latitude,longitude:t.longitude});if("Relation"===t.__type){if(!e)throw new Error("key missing decoding a Relation");var c=new w.Relation(null,e);return c.targetClassName=t.className,c}if("File"===t.__type){var f=new w.File(t.name),h=l.clone(t);return delete h.__type,f._finishFetch(h),f}return l.mapObject(t,w._decode)},w.parseJSON=w._decode,w.parse=function(t){return w.parseJSON(JSON.parse(t))},w.stringify=function(t){return(0,u.default)(w._encode(t,[],!1,!0))},w._encodeObjectOrArray=function(t){var e=function(t){return t&&t._toFullJSON&&(t=t._toFullJSON([])),l.mapObject(t,function(t){return w._encode(t,[])})};return l.isArray(t)?(0,a.default)(t).call(t,function(t){return e(t)}):e(t)},w._arrayEach=l.each,w._traverse=function(t,e,n){if(t instanceof w.Object){if(n=n||[],(0,c.default)(l).call(l,n,t)>=0)return;return n.push(t),w._traverse(t.attributes,e,n),e(t)}return t instanceof w.Relation||t instanceof w.File?e(t):l.isArray(t)?(l.each(t,function(r,i){var o=w._traverse(r,e,n);o&&(t[i]=o)}),e(t)):l.isObject(t)?(w._each(t,function(r,i){var o=w._traverse(r,e,n);o&&(t[i]=o)}),e(t)):e(t)},w._objectEach=w._each=function(t,e){l.isObject(t)?l.each((0,f.default)(l).call(l,t),function(n){e(t[n],n)}):l.each(t,e)},w.debug={enable:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"leancloud*";return d.enable(t)},disable:d.disable},w.setAdapters=b,t.exports=w}).call(e,n(72))},function(t,e,n){var r=n(48),i=n(4),o=n(94),a=n(34),s=n(39),u=n(223),c=i([].push),f=function(t){var e=1==t,n=2==t,i=3==t,f=4==t,l=6==t,h=7==t,d=5==t||l;return function(p,v,g,m){for(var y,b,_=a(p),w=o(_),E=r(v,g),O=s(w),T=0,S=m||u,A=e?S(p,O):n||h?S(p,0):void 0;O>T;T++)if((d||T in w)&&(y=w[T],b=E(y,T,_),t))if(e)A[T]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return T;case 2:c(A,y)}else switch(t){case 4:return!1;case 7:c(A,y)}return l?-1:i||f?f:A}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,e,n){"use strict";var r=n(1),i=r(n(57)),o=n(3),a=n(230),s=n(30),u=s.inherits,c=u(a,{constructor:function(){a.apply(this),this._adapters={}},getAdapter:function(t){var e=this._adapters[t];if(void 0===e)throw new Error("".concat(t," adapter is not configured"));return e},setAdapters:function(t){var e=this;o.extend(this._adapters,t),(0,i.default)(o).call(o,t).forEach(function(n){return e.emit(n,t[n])})}}),f=new c;t.exports={getAdapter:f.getAdapter.bind(f),setAdapters:f.setAdapters.bind(f),adapterManager:f}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(74),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},function(t,e,n){var r=n(2);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},function(t,e,n){var r,i,o=n(7),a=n(97),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,f=c&&c.v8;f&&(r=f.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(33),i=n(122);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.3",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e){t.exports={}},function(t,e,n){var r=n(51),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r=n(7),i=n(64),o=n(8),a=n(153),s=n(129),u=n(9),c=n(301),f=n(33),l=n(75),h=i&&i.prototype,d=u("species"),p=!1,v=o(r.PromiseRejectionEvent),g=a("Promise",function(){var t=s(i),e=t!==String(i);if(!e&&66===l)return!0;if(f&&(!h.catch||!h.finally))return!0;if(l>=51&&/native code/.test(t))return!1;var n=new i(function(t){t(1)}),r=function(t){t(function(){},function(){})},o=n.constructor={};return o[d]=r,!(p=n.then(function(){})instanceof r)||!e&&c&&!v});t.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:p}},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a});var r=n(5),i=n(318),o=r.s&&Object(i.a)(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&Object(i.a)(new Map)},function(t,e,n){"use strict";function r(t){if(!Object(i.a)(t))return[];var e=[];for(var n in t)e.push(n);return o.h&&Object(a.a)(t,e),e}e.a=r;var i=n(54),o=n(5),a=n(184)},function(t,e,n){"use strict";function r(t){return i.a.toPath(t)}e.a=r;var i=n(25);n(193)},function(t,e,n){"use strict";function r(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}}e.a=r},function(t,e,n){"use strict";function r(t,e,n){var r=[];return e=Object(i.a)(e,n),Object(o.a)(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r}e.a=r;var i=n(21),o=n(56)},function(t,e,n){"use strict";function r(t,e,n,r){return Object(i.a)(t)||(t=Object(o.a)(t)),("number"!=typeof n||r)&&(n=0),Object(a.a)(t,e,n)>=0}e.a=r;var i=n(26),o=n(66),a=n(209)},function(t,e,n){var r=n(61);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(95),i=n(23),o=n(47);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},function(t,e,n){t.exports=n(398)},function(t,e,n){function r(e){"@babel/helpers - typeof";return t.exports=r="function"==typeof i&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof i&&t.constructor===i&&t!==i.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}var i=n(236),o=n(454);t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=n(468)},function(t,e,n){var r=n(0),i=n(4),o=n(78),a=n(11),s=n(12),u=n(23).f,c=n(102),f=n(239),l=n(255),h=n(98),d=n(254),p=!1,v=h("meta"),g=0,m=function(t){u(t,v,{value:{objectID:"O"+g++,weakData:{}}})},y=function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!l(t))return"F";if(!e)return"E";m(t)}return t[v].objectID},b=function(t,e){if(!s(t,v)){if(!l(t))return!0;if(!e)return!1;m(t)}return t[v].weakData},_=function(t){return d&&p&&l(t)&&!s(t,v)&&m(t),t},w=function(){E.enable=function(){},p=!0;var t=c.f,e=i([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===v){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},E=t.exports={enable:w,fastKey:y,getWeakData:b,onFreeze:_};o[v]=!0},function(t,e,n){var r=n(4),i=n(2),o=n(61),a=Object,s=r("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?s(t,""):a(t)}:a},function(t,e,n){var r=n(279),i=n(96);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){var r=n(18),i=n(8),o=n(19),a=n(151),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},function(t,e,n){var r=n(18);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(4),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},function(t,e,n){var r=n(12),i=n(8),o=n(34),a=n(100),s=n(155),u=a("IE_PROTO"),c=Object,f=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=o(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof c?f:null}},function(t,e,n){var r=n(77),i=n(98),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){var r=n(4),i=n(20),o=n(282);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(157),i=n(126),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(157),i=n(126);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(51),i=n(121),o=n(50),a=n(9),s=a("iterator");t.exports=function(t){if(void 0!=t)return i(t,s)||i(t,"@@iterator")||o[r(t)]}},function(t,e,n){var r=n(61),i=n(7);t.exports="process"==r(i.process)},function(t,e,n){var r=n(19),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw i("Incorrect invocation")}},function(t,e,n){var r=n(4),i=n(2),o=n(8),a=n(51),s=n(18),u=n(129),c=function(){},f=[],l=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),p=!h.exec(c),v=function(t){if(!o(t))return!1;try{return l(c,f,t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,u(t))}catch(t){return!0}};g.sham=!0,t.exports=!l||i(function(){var t;return v(v.call)||!v(Object)||!v(function(){t=!0})||t})?g:v},function(t,e,n){var r=n(4);t.exports=r([].slice)},function(t,e,n){"use strict";function r(t){return t=Object(i.a)({},t),function(e){return Object(o.a)(e,t)}}e.a=r;var i=n(138),o=n(185)},function(t,e,n){"use strict";var r=n(24),i=n(201),o=n(25),a=Object(r.a)(function(t,e){var n=a.placeholder,r=function(){for(var o=0,a=e.length,s=Array(a),u=0;u<a;u++)s[u]=e[u]===n?arguments[o++]:e[u];for(;o<arguments.length;)s.push(arguments[o++]);return Object(i.a)(t,r,this,this,s)};return r});a.placeholder=o.a,e.a=a},function(t,e,n){"use strict";function r(t,e){return function(n,r,a){var s=e?[[],[]]:{};return r=Object(i.a)(r,a),Object(o.a)(n,function(e,i){var o=r(e,i,n);t(s,e,o)}),s}}e.a=r;var i=n(21),o=n(56)},function(t,e,n){var r=n(2),i=n(9),o=n(75),a=i("species");t.exports=function(t){return o>=51||!r(function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,n){t.exports=n(235)},function(t,e,n){"use strict";var r=n(1),i=r(n(91)),o=r(n(243)),a=r(n(35)),s=r(n(146)),u=r(n(36)),c=r(n(22)),f=(n(3),n(244)),l=f.timeout,h=n(58),d=h("leancloud:request"),p=h("leancloud:request:error"),v=n(71),g=v.getAdapter,m=0,y=function(t){var e=t.method,n=t.url,r=t.query,f=t.data,v=t.headers,y=void 0===v?{}:v,b=t.timeout,_=t.onprogress;if(r){var w,E,O,T=(0,o.default)(w=(0,a.default)(E=(0,s.default)(r)).call(E,function(t){var e,n=r[t];if(void 0!==n){var o="object"===(0,i.default)(n)?(0,u.default)(n):n;return(0,c.default)(e="".concat(encodeURIComponent(t),"=")).call(e,encodeURIComponent(o))}})).call(w,function(t){return t}).join("&");n=(0,c.default)(O="".concat(n,"?")).call(O,T)}var S=m++;d("request(%d) %s %s %o %o %o",S,e,n,r,f,y);var A=g("request"),x=A(n,{method:e,headers:y,data:f,onprogress:_}).then(function(t){if(d("response(%d) %d %O %o",S,t.status,t.data||t.text,t.header),!1===t.ok){var e=new Error;throw e.response=t,e}return t.data}).catch(function(t){throw t.response&&(h.enabled("leancloud:request")||p("request(%d) %s %s %o %o %o",S,e,n,r,f,y),p("response(%d) %d %O %o",S,t.response.status,t.response.data||t.response.text,t.response.header),t.statusCode=t.response.status,t.responseText=t.response.text,t.response=t.response.data),t});return b?l(x,b):x};t.exports=y},function(t,e){},function(t,e,n){function r(t){return null==t?void 0===t?u:s:c&&c in Object(t)?o(t):a(t)}var i=n(265),o=n(631),a=n(632),s="[object Null]",u="[object Undefined]",c=i?i.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e){var n=TypeError;t.exports=function(t){if(void 0==t)throw n("Can't call method on "+t);return t}},function(t,e,n){var r=n(31);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(7),i=n(281),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,n){var r=n(7),i=n(11),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){var r=n(125),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e,n){var r=n(284);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(14),i=n(154),o=n(23),a=n(20),s=n(32),u=n(104);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=u(e),c=i.length,f=0;c>f;)o.f(t,n=i[f++],r[n]);return t}},function(t,e,n){var r=n(9),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},function(t,e,n){var r=n(4),i=n(8),o=n(122),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},function(t,e,n){"use strict";var r=n(0),i=n(15),o=n(33),a=n(290),s=n(8),u=n(291),c=n(99),f=n(101),l=n(52),h=n(37),d=n(43),p=n(9),v=n(50),g=n(165),m=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),E=function(){return this};t.exports=function(t,e,n,a,p,g,O){u(n,e,a);var T,S,A,x=function(t){if(t===p&&P)return P;if(!_&&t in C)return C[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},I=e+" Iterator",j=!1,C=t.prototype,N=C[w]||C["@@iterator"]||p&&C[p],P=!_&&N||x(p),R="Array"==e?C.entries||N:N;if(R&&(T=c(R.call(new t)))!==Object.prototype&&T.next&&(o||c(T)===b||(f?f(T,b):s(T[w])||d(T,w,E)),l(T,I,!0,!0),o&&(v[I]=E)),m&&"values"==p&&N&&"values"!==N.name&&(!o&&y?h(C,"name","values"):(j=!0,P=function(){return i(N,this)})),p)if(S={values:x("values"),keys:g?P:x("keys"),entries:x("entries")},O)for(A in S)!_&&!j&&A in C||d(C,A,S[A]);else r({target:e,proto:!0,forced:_||j},S);return o&&!O||C[w]===P||d(C,w,P,{name:p}),v[e]=P,S}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);n.d(e,"VERSION",function(){return r.e});var i=n(24);n.d(e,"restArguments",function(){return i.a});var o=n(54);n.d(e,"isObject",function(){return o.a});var a=n(313);n.d(e,"isNull",function(){return a.a});var s=n(174);n.d(e,"isUndefined",function(){return s.a});var u=n(175);n.d(e,"isBoolean",function(){return u.a});var c=n(314);n.d(e,"isElement",function(){return c.a});var f=n(132);n.d(e,"isString",function(){return f.a});var l=n(176);n.d(e,"isNumber",function(){return l.a});var h=n(315);n.d(e,"isDate",function(){return h.a});var d=n(316);n.d(e,"isRegExp",function(){return d.a});var p=n(317);n.d(e,"isError",function(){return p.a});var v=n(177);n.d(e,"isSymbol",function(){return v.a});var g=n(178);n.d(e,"isArrayBuffer",function(){return g.a});var m=n(133);n.d(e,"isDataView",function(){return m.a});var y=n(55);n.d(e,"isArray",function(){return y.a});var b=n(28);n.d(e,"isFunction",function(){return b.a});var _=n(134);n.d(e,"isArguments",function(){return _.a});var w=n(319);n.d(e,"isFinite",function(){return w.a});var E=n(179);n.d(e,"isNaN",function(){return E.a});var O=n(180);n.d(e,"isTypedArray",function(){return O.a});var T=n(321);n.d(e,"isEmpty",function(){return T.a});var S=n(185);n.d(e,"isMatch",function(){return S.a});var A=n(322);n.d(e,"isEqual",function(){return A.a});var x=n(324);n.d(e,"isMap",function(){return x.a});var I=n(325);n.d(e,"isWeakMap",function(){return I.a});var j=n(326);n.d(e,"isSet",function(){return j.a});var C=n(327);n.d(e,"isWeakSet",function(){return C.a});var N=n(16);n.d(e,"keys",function(){return N.a});var P=n(83);n.d(e,"allKeys",function(){return P.a});var R=n(66);n.d(e,"values",function(){return R.a});var U=n(328);n.d(e,"pairs",function(){return U.a});var k=n(186);n.d(e,"invert",function(){return k.a});var L=n(187);n.d(e,"functions",function(){return L.a}),n.d(e,"methods",function(){return L.a});var M=n(188);n.d(e,"extend",function(){return M.a});var D=n(138);n.d(e,"extendOwn",function(){return D.a}),n.d(e,"assign",function(){return D.a});var F=n(189);n.d(e,"defaults",function(){return F.a});var B=n(329);n.d(e,"create",function(){return B.a});var V=n(191);n.d(e,"clone",function(){return V.a});var q=n(330);n.d(e,"tap",function(){return q.a});var W=n(192);n.d(e,"get",function(){return W.a});var Y=n(331);n.d(e,"has",function(){return Y.a});var z=n(332);n.d(e,"mapObject",function(){return z.a});var G=n(140);n.d(e