@be-link/request 1.18.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Buffer as t}from"buffer";import e,{AxiosError as r}from"axios";var n=a;function i(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=a;function u(t){try{f(n.next(t))}catch(t){o(t)}}function c(t){var e=a;try{f(n[e(247)](t))}catch(t){o(t)}}function f(t){var e,n=a;t[n(272)]?i(t[n(253)]):(e=t.value,e instanceof r?e:new r((function(t){t(e)})))[n(241)](u,c)}f((n=n.apply(t,e||[]))[s(271)]())}))}function o(t,e){var r,n,i,o,s=a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol===s(196)&&(o[Symbol.iterator]=function(){return this}),o;function c(a){return function(c){return function(a){var c=s;if(r)throw new TypeError(c(210));for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(r=1,n&&(i=2&a[0]?n[c(203)]:a[0]?n[c(247)]||((i=n[c(203)])&&i[c(219)](n),0):n[c(271)])&&!(i=i.call(n,a[1]))[c(272)])return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u[c(200)]++,{value:a[1],done:!1};case 5:u[c(200)]++,n=a[1],a=[0];continue;case 7:a=u[c(280)].pop(),u.trys[c(222)]();continue;default:if(!(i=u[c(213)],(i=i[c(198)]>0&&i[i[c(198)]-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u[c(200)]=a[1];break}if(6===a[0]&&u[c(200)]<i[1]){u[c(200)]=i[1],i=a;break}if(i&&u.label<i[2]){u[c(200)]=i[2],u[c(280)].push(a);break}i[2]&&u[c(280)][c(222)](),u[c(213)][c(222)]();continue}a=e.call(t,u)}catch(t){a=[6,t],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function s(){var t=["694974NmGanp","Object expected.","throw","Symbol.asyncIterator is not defined.","create","403tTmyOI","12yWDEEp","Object not disposable.","value","field","Private accessor was defined without a setter","setter","access","name","accessor","asyncDispose","Private accessor was defined without a getter","Private method is not writable","27704axZfYM","hasOwnProperty","error"," is not a constructor or null","iterator","890ppEpAf","async","asyncIterator","next","done","indexOf","getOwnPropertyDescriptor","Symbol.asyncDispose is not defined.","6013447LUaRqb","698965hDfQNa","__proto__","Symbol.dispose is not defined.","ops","number","48pjruyr","Symbol.iterator is not defined.","function","stack","length","object","label","has","description","return","writable","concat","kind","default","get","raw","Generator is already executing.","Cannot read private member from an object whose class did not declare it","addInitializer","trys","defineProperty","276514cLlRoA","76716clGssI","prototype","resolve","call","2076756tNsMyf","An error was suppressed during disposal.","pop","__esModule","push","7Etsjck","static","setPrototypeOf","apply","unshift","suppressed","dispose","4RrGZsU","602yzEgIz","slice","symbol","propertyIsEnumerable","set","decorate","hasError","Class extends value ","then","Cannot use 'in' operator on non-object","configurable","Object is not iterable."];return(s=function(){return t})()}function a(t,e){var r=s();return(a=function(t,e){return r[t-=195]})(t,e)}!function(t,e){for(var r=a,n=s();;)try{if(605967===parseInt(r(225))/1*(parseInt(r(215))/2)+-parseInt(r(220))/3*(-parseInt(r(232))/4)+parseInt(r(277))/5*(-parseInt(r(282))/6)+-parseInt(r(233))/7*(-parseInt(r(263))/8)+parseInt(r(216))/9*(parseInt(r(268))/10)+-parseInt(r(276))/11*(-parseInt(r(251))/12)+parseInt(r(250))/13*(-parseInt(r(245))/14))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Object[n(249)],"function"==typeof SuppressedError&&SuppressedError;var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function f(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){if(this instanceof t){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(e,r))}return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var h=Object.freeze({__proto__:null,commonjsGlobal:u,getAugmentedNamespace:f,getDefaultExportFromCjs:c,getDefaultExportFromNamespaceIfNotNamed:function(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")&&1===Object.keys(t).length?t.default:t},getDefaultExportFromNamespaceIfPresent:function(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}}),p={},l={},v={},d=I;!function(t,e){for(var r=I,n=g();;)try{if(997840===-parseInt(r(141))/1*(-parseInt(r(132))/2)+-parseInt(r(137))/3*(-parseInt(r(127))/4)+parseInt(r(130))/5*(-parseInt(r(146))/6)+parseInt(r(131))/7+parseInt(r(136))/8*(-parseInt(r(138))/9)+parseInt(r(147))/10+-parseInt(r(128))/11*(-parseInt(r(135))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Object[d(133)](v,d(144),{value:!0}),v[d(139)]=v[d(148)]=v[d(129)]=v[d(125)]=v[d(134)]=v[d(149)]=void 0;var y="@cloudbase/js-sdk";function I(t,e){var r=g();return(I=function(t,e){return r[t-=124]})(t,e)}v[d(149)]=function(t){y=t},v[d(134)]=function(){return y};var m="undefined"!=typeof location&&"http:"===location[d(143)]?d(124):"https:";function g(){var t=["defineProperty","getSdkName","3489900rStTYU","8HHshSf","25887osRYel","14165253WecLrr","COMMUNITY_SITE_URL","env","26788Ijihtb","https://support.qq.com/products/148793","protocol","__esModule","development","17580mTjekP","14496530XZpAqT","IS_DEBUG_MODE","setSdkName","http:","setProtocol","NODE_ENV","620mMDCkz","11FsUref","getProtocol","2775PngHHQ","151382zBqgsP","82bNUTAw"];return(g=function(){return t})()}v[d(125)]=function(t){m=t},v[d(129)]=function(){return m},v[d(148)]=process[d(140)][d(126)]===d(145),v.COMMUNITY_SITE_URL=d(142);var b={},w=_;function _(t,e){var r=E();return(_=function(t,e){return r[t-=463]})(t,e)}function E(){var t=["INVALID_PARAMS","1628244VFUjkK","888300mWBvPd","995MloiyG","423702bQLfSL","INVALID_OPERATION","3378ANHYKU","2110XHFqUX","666704PivKrw","OPERATION_FAIL","21eQOvut","ERRORS","41300WWlsva","UNKOWN_ERROR","NETWORK_ERROR","346xuZRCr","use strict"];return(E=function(){return t})()}!function(t,e){for(var r=_,n=E();;)try{if(128942===-parseInt(r(478))/1*(parseInt(r(473))/2)+-parseInt(r(479))/3+-parseInt(r(477))/4+parseInt(r(465))/5*(parseInt(r(464))/6)+-parseInt(r(468))/7*(-parseInt(r(466))/8)+parseInt(r(476))/9+-parseInt(r(470))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),w(474),Object.defineProperty(b,"__esModule",{value:!0}),b[w(469)]=void 0,b[w(469)]={INVALID_PARAMS:w(475),INVALID_SYNTAX:"INVALID_SYNTAX",INVALID_OPERATION:w(463),OPERATION_FAIL:w(467),NETWORK_ERROR:w(472),UNKOWN_ERROR:w(471)};var S,O,A,T,N=x;function k(){var t=["7210Vitcvg","12681fZnMXz","3510065haoytQ","create","4235104boMHWp","hasOwnProperty","1329976xgbPeT","6326040wcTYDu","default","926706KZMzlS","getDefaultExportFromCjs","4353byryUa","defineProperty","__createBinding","commonjsGlobal","1572sOAnHW","7IgeMdh"];return(k=function(){return t})()}function x(t,e){var r=k();return(x=function(t,e){return r[t-=283]})(t,e)}!function(t,e){for(var r=x,n=k();;)try{if(689467===-parseInt(r(287))/1+-parseInt(r(293))/2*(-parseInt(r(289))/3)+-parseInt(r(299))/4+-parseInt(r(297))/5+parseInt(r(285))/6+parseInt(r(294))/7*(parseInt(r(284))/8)+-parseInt(r(296))/9*(-parseInt(r(295))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),S=l,A=h[(O=x)(292)]&&h[O(292)][O(291)]||(Object[O(298)]?function(t,e,r,n){void 0===n&&(n=r),Object[O(290)](t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),T=h[O(292)]&&h[O(292)].__exportStar||function(t,e){var r=O;for(var n in t)n===r(286)||e[r(283)](n)||A(e,t,n)},Object[O(290)](S,"__esModule",{value:!0}),T(v,S),T(b,S),h[N(288)](l);var R,P,C,j={},D={};!function(t,e){for(var r=U,n=B();;)try{if(487108===-parseInt(r(431))/1+-parseInt(r(439))/2*(parseInt(r(430))/3)+-parseInt(r(432))/4+parseInt(r(429))/5+-parseInt(r(438))/6*(parseInt(r(434))/7)+-parseInt(r(440))/8*(parseInt(r(435))/9)+parseInt(r(437))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),(P=R||(R={}))[(C=U)(428)]=C(428),P[C(436)]=C(436),P[C(433)]="session";var L=function(){};function U(t,e){var r=B();return(U=function(t,e){return r[t-=428]})(t,e)}var M=function(){};function B(){var t=["847084ZdTqCO","117jKHdwD","none","29854530zVrjyx","24Cmliac","80FjGuUg","568896mFDQbF","local","4859515ATfdez","41037zfzjKj","547123RqlrVe","3869844dvwTAc","session"];return(B=function(){return t})()}function q(t,e,r){var n=F;void 0===r&&(r={});var i=/\?/[n(445)](e),o="";for(var s in r)""===o?!i&&(e+="?"):o+="&",o+=s+"="+encodeURIComponent(r[s]);return e+=o,/^http(s)?\:\/\//[n(445)](e)?e:""+t+e}function F(t,e){var r=H();return(F=function(t,e){return r[t-=443]})(t,e)}function H(){var t=["212358qxgIFV","73032qTmCIb","9ZcsPsq","10vSAVUX","294664kyyZzb","376284jsFqKf","1480600EXlcjN","1991199NtrJZQ","872982uUDIZj","2TfJaPk","test","8znnDpy"];return(H=function(){return t})()}function W(){var t=["173569hmNyDj","16599UQXUCK","300796hEpLdR","732tBxxyg","1277620pgfTut","9jspaNl","1002MELgUL","52upkEUj","120sdzayu","248013ruUTtd","3913190JkHXDS","13930yEIrOc"];return(W=function(){return t})()}function G(t,e){var r=W();return(G=function(t,e){return r[t-=468]})(t,e)}!function(t,e){for(var r=F,n=H();;)try{if(162498===parseInt(r(451))/1*(parseInt(r(444))/2)+-parseInt(r(448))/3+-parseInt(r(452))/4+parseInt(r(450))/5*(-parseInt(r(447))/6)+-parseInt(r(454))/7*(-parseInt(r(446))/8)+parseInt(r(449))/9*(-parseInt(r(453))/10)+-parseInt(r(443))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),function(t,e){for(var r=G,n=W();;)try{if(224032===parseInt(r(470))/1*(-parseInt(r(476))/2)+parseInt(r(474))/3*(parseInt(r(471))/4)+parseInt(r(473))/5+parseInt(r(475))/6*(parseInt(r(468))/7)+parseInt(r(477))/8*(parseInt(r(478))/9)+parseInt(r(479))/10+-parseInt(r(469))/11*(parseInt(r(472))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var K,V=f(Object.freeze({__proto__:null,AbstractSDKRequest:L,AbstractStorage:M,get StorageType(){return R},formatUrl:q})),z={},J={exports:{}},Y={exports:{}},X=Z;function $(){var t,e,r,n;return K||(K=1,t=Y,Y[X(557)],e=h[Z(510)],r=function(){var t=t||function(t,e){var r=Z,n=Object[r(527)]||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),i={},o=i[r(538)]={},s=o.Base={extend:function(t){var e=Z,r=n(this);return t&&r[e(507)](t),(!r[e(501)](e(505))||this[e(505)]===r[e(505)])&&(r[e(505)]=function(){var t=e;r[t(540)][t(505)][t(528)](this,arguments)}),r[e(505)][e(502)]=r,r[e(540)]=this,r},create:function(){var t=Z,e=this[t(539)]();return e[t(505)].apply(e,arguments),e},init:function(){},mixIn:function(t){var e=Z;for(var r in t)t[e(501)](r)&&(this[r]=t[r]);t[e(501)](e(496))&&(this[e(496)]=t.toString)},clone:function(){var t=Z;return this[t(505)][t(502)][t(539)](this)}},a=o[r(526)]=s[r(539)]({init:function(t,e){var n=r;t=this[n(520)]=t||[],null!=e?this[n(514)]=e:this.sigBytes=4*t.length},toString:function(t){return(t||c)[r(532)](this)},concat:function(t){var e=r,n=this[e(520)],i=t[e(520)],o=this[e(514)],s=t[e(514)];if(this[e(533)](),o%4)for(var a=0;a<s;a++){var u=i[a>>>2]>>>24-a%4*8&255;n[o+a>>>2]|=u<<24-(o+a)%4*8}else for(a=0;a<s;a+=4)n[o+a>>>2]=i[a>>>2];return this[e(514)]+=s,this},clamp:function(){var e=this[r(520)],n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=r,e=s[t(504)][t(536)](this);return e[t(520)]=this[t(520)][t(500)](0),e},random:function(e){for(var n,i=r,o=[],s=function(e){var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return i/=4294967296,(i+=.5)*(t[Z(525)]()>.5?1:-1)}},u=0;u<e;u+=4){var c=s(4294967296*(n||t.random()));n=987654071*c(),o[i(541)](4294967296*c()|0)}return new(a[i(505)])(o,e)}}),u=i[r(537)]={},c=u[r(521)]={stringify:function(t){for(var e=r,n=t[e(520)],i=t[e(514)],o=[],s=0;s<i;s++){var a=n[s>>>2]>>>24-s%4*8&255;o[e(541)]((a>>>4)[e(496)](16)),o[e(541)]((15&a)[e(496)](16))}return o[e(556)]("")},parse:function(t){for(var e=r,n=t[e(497)],i=[],o=0;o<n;o+=2)i[o>>>3]|=parseInt(t[e(518)](o,2),16)<<24-o%8*4;return new(a[e(505)])(i,n/2)}},f=u[r(499)]={stringify:function(t){for(var e=r,n=t[e(520)],i=t.sigBytes,o=[],s=0;s<i;s++){var a=n[s>>>2]>>>24-s%4*8&255;o[e(541)](String.fromCharCode(a))}return o[e(556)]("")},parse:function(t){for(var e=r,n=t[e(497)],i=[],o=0;o<n;o++)i[o>>>2]|=(255&t[e(508)](o))<<24-o%4*8;return new(a[e(505)])(i,n)}},h=u[r(550)]={stringify:function(t){var e=r;try{return decodeURIComponent(escape(f[e(532)](t)))}catch(t){throw new Error(e(512))}},parse:function(t){return f[r(530)](unescape(encodeURIComponent(t)))}},p=o[r(513)]=s[r(539)]({reset:function(){var t=r;this[t(558)]=new(a[t(505)]),this[t(547)]=0},_append:function(t){var e=r;typeof t==e(543)&&(t=h[e(530)](t)),this[e(558)][e(535)](t),this[e(547)]+=t[e(514)]},_process:function(e){var n=r,i=this[n(558)],o=i[n(520)],s=i.sigBytes,u=this[n(552)],c=s/(4*u),f=(c=e?t[n(522)](c):t[n(503)]((0|c)-this._minBufferSize,0))*u,h=t[n(524)](4*f,s);if(f){for(var p=0;p<f;p+=u)this[n(517)](o,p);var l=o[n(553)](0,f);i[n(514)]-=h}return new(a[n(505)])(l,h)},clone:function(){var t=r,e=s[t(504)].call(this);return e._data=this[t(558)][t(504)](),e},_minBufferSize:0});o[r(498)]=p[r(539)]({cfg:s[r(539)](),init:function(t){var e=r;this.cfg=this.cfg[e(539)](t),this[e(549)]()},reset:function(){var t=r;p.reset[t(536)](this),this[t(495)]()},update:function(t){var e=r;return this[e(534)](t),this[e(554)](),this},finalize:function(t){var e=r;return t&&this[e(534)](t),this[e(529)]()},blockSize:16,_createHelper:function(t){return function(e,r){var n=Z;return new t.init(r)[n(516)](e)}},_createHmacHelper:function(t){return function(e,r){var n=Z;return new l.HMAC.init(t,r)[n(516)](e)}}});var l=i[r(548)]={};return i}(Math);return t},"object"===(n=Z)(555)?t.exports=r():"undefined"===n(511)&&(void 0)[n(542)]?(void 0)([],r):e[n(544)]=r()),Y.exports}function Q(){var t=["_process","object","join","exports","_data","_doReset","toString","length","Hasher","Latin1","slice","hasOwnProperty","prototype","max","clone","init","32888ohFjvH","mixIn","charCodeAt","637932RyKnrq","commonjsGlobal","function","Malformed UTF-8 data","BufferedBlockAlgorithm","sigBytes","272304iOVAOV","finalize","_doProcessBlock","substr","1227192BamjkK","words","Hex","ceil","366LaWefw","min","random","WordArray","create","apply","_doFinalize","parse","1908837XkTNiV","stringify","clamp","_append","concat","call","enc","lib","extend","$super","push","amd","string","CryptoJS","16255WgJeed","189dUlPan","_nDataBytes","algo","reset","Utf8","404282WRLJrW","blockSize","splice"];return(Q=function(){return t})()}function Z(t,e){var r=Q();return(Z=function(t,e){return r[t-=495]})(t,e)}!function(t,e){for(var r=Z,n=Q();;)try{if(255493===-parseInt(r(551))/1+parseInt(r(509))/2+-parseInt(r(515))/3+parseInt(r(519))/4+parseInt(r(545))/5*(-parseInt(r(523))/6)+-parseInt(r(546))/7*(-parseInt(r(506))/8)+parseInt(r(531))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Y[X(557)];var tt,et={exports:{}},rt=it;function nt(){var t=["sigBytes","4012wWNKwV","floor","sqrt","214IeJwws","algo","lib","clone","_createHmacHelper","_createHelper","4877475hhLVfA","SHA256","init","words","pow","length","object","amd","350917SboCRp","./core","CryptoJS","3895290bCUvgX","Hasher","_hash","function","4003736KtbOtU","slice","_data","HmacSHA256","extend","call","144DhBwTy","exports","33170103qTPvDT","693066gYZSfh","_nDataBytes"];return(nt=function(){return t})()}function it(t,e){var r=nt();return(it=function(t,e){return r[t-=100]})(t,e)}!function(t,e){for(var r=it,n=nt();;)try{if(502741===-parseInt(r(108))/1*(-parseInt(r(111))/2)+parseInt(r(105))/3+parseInt(r(132))/4+parseInt(r(117))/5+parseInt(r(128))/6+-parseInt(r(125))/7*(-parseInt(r(102))/8)+-parseInt(r(104))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),rt(103);var ot,st={exports:{}};function at(){var t=["Base","4QPiUUY","24688GEoVoB","algo","clamp","reset","164610myuKzf","finalize","function","extend","26171EEVyHW","_iKey","2377353xNTjRj","parse","init","CryptoJS","amd","10gUrCJl","HMAC","enc","blockSize","1638zXpcOm","concat","_oKey","sigBytes","_hasher","exports","./core","lib","1825254EiHeVc","object","350bmoyYa","15629009CKhkLV","update","clone","44348ksWjNN","words"];return(at=function(){return t})()}function ut(t,e){var r=at();return(ut=function(t,e){return r[t-=379]})(t,e)}!function(t,e){for(var r=ut,n=at();;)try{if(444899===-parseInt(r(392))/1*(-parseInt(r(383))/2)+parseInt(r(394))/3+-parseInt(r(380))/4*(parseInt(r(413))/5)+-parseInt(r(411))/6+parseInt(r(403))/7*(-parseInt(r(384))/8)+-parseInt(r(388))/9+-parseInt(r(399))/10*(-parseInt(r(414))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var ct,ft,ht,pt,lt,vt,dt,yt,It,mt,gt,bt,wt,_t,Et,St=Ot;function Ot(t,e){var r=At();return(Ot=function(t,e){return r[t-=198]})(t,e)}function At(){var t=["256825XkFmFn","516666xUbMaW","commonjsGlobal","70434MKYOha","1665168aOXhMd","HmacSHA256","getDefaultExportFromCjs","32574YupXQE","425223GTKKNe","./core","amd","exports","5AIwUNU","52dSCpNa","176JuiYDB","165824SAgyab","33xhznOt","./sha256","object","./hmac","50tMCmix"];return(At=function(){return t})()}!function(t,e){for(var r=Ot,n=At();;)try{if(146469===-parseInt(r(203))/1+-parseInt(r(218))/2+parseInt(r(210))/3*(parseInt(r(216))/4)+-parseInt(r(215))/5*(parseInt(r(204))/6)+-parseInt(r(206))/7*(parseInt(r(217))/8)+-parseInt(r(211))/9*(-parseInt(r(202))/10)+parseInt(r(198))/11*(parseInt(r(207))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),St(214),ct=J,ft=h[(Et=St)(205)],ht=function(t){return t[Et(208)]},(_t=Ot)(200)==_t(200)?ct[_t(214)]=ht($(),(wt=rt,tt||(tt=1,It=et,wt(103),mt=u,gt=function(t){return function(e){var r=it,n=t,i=n[r(113)],o=i.WordArray,s=i[r(129)],a=n[r(112)],u=[],c=[];!function(){var t=r;function n(t){for(var r=e[it(110)](t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function i(t){return 4294967296*(t-(0|t))|0}for(var o=2,s=0;s<64;)n(o)&&(s<8&&(u[s]=i(e[t(121)](o,.5))),c[s]=i(e[t(121)](o,1/3)),s++),o++}();var f=[],h=a.SHA256=s[r(100)]({_doReset:function(){var t=r;this[t(130)]=new(o[t(119)])(u[t(133)](0))},_doProcessBlock:function(t,e){for(var n=r,i=this._hash[n(120)],o=i[0],s=i[1],a=i[2],u=i[3],h=i[4],p=i[5],l=i[6],v=i[7],d=0;d<64;d++){if(d<16)f[d]=0|t[e+d];else{var y=f[d-15],I=(y<<25|y>>>7)^(y<<14|y>>>18)^y>>>3,m=f[d-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;f[d]=I+f[d-7]+g+f[d-16]}var b=o&s^o&a^s&a,w=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),_=v+((h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25))+(h&p^~h&l)+c[d]+f[d];v=l,l=p,p=h,h=u+_|0,u=a,a=s,s=o,o=_+(w+b)|0}i[0]=i[0]+o|0,i[1]=i[1]+s|0,i[2]=i[2]+a|0,i[3]=i[3]+u|0,i[4]=i[4]+h|0,i[5]=i[5]+p|0,i[6]=i[6]+l|0,i[7]=i[7]+v|0},_doFinalize:function(){var t=r,n=this[t(134)],i=n[t(120)],o=8*this[t(106)],s=8*n[t(107)];return i[s>>>5]|=128<<24-s%32,i[14+(s+64>>>9<<4)]=e[t(109)](o/4294967296),i[15+(s+64>>>9<<4)]=o,n[t(107)]=4*i[t(122)],this._process(),this[t(130)]},clone:function(){var t=r,e=s.clone[t(101)](this);return e[t(130)]=this[t(130)][t(114)](),e}});n[r(118)]=s[r(116)](h),n[r(135)]=s[r(115)](h)}(Math),t.SHA256},(bt=it)(123)==bt(123)?It[bt(103)]=gt($()):"undefined"===bt(131)&&(void 0)[bt(124)]?(void 0)([bt(126)],gt):gt(mt[bt(127)])),wt(103)),(yt=ut,ot||(ot=1,pt=st,lt=u,vt=function(t){var e,r,n,i;n=(r=t)[(e=ut)(410)][e(382)],i=r[e(401)].Utf8,r[e(385)][e(400)]=n[e(391)]({init:function(t,r){var n=e;t=this[n(407)]=new(t[n(396)]),"string"==typeof r&&(r=i[n(395)](r));var o=t[n(402)],s=4*o;r[n(406)]>s&&(r=t[n(389)](r)),r[n(386)]();for(var a=this[n(405)]=r[n(379)](),u=this[n(393)]=r[n(379)](),c=a[n(381)],f=u[n(381)],h=0;h<o;h++)c[h]^=1549556828,f[h]^=909522486;a[n(406)]=u[n(406)]=s,this[n(387)]()},reset:function(){var t=e,r=this[t(407)];r[t(387)](),r[t(415)](this[t(393)])},update:function(t){var r=e;return this[r(407)][r(415)](t),this},finalize:function(t){var r=e,n=this[r(407)],i=n[r(389)](t);return n.reset(),n[r(389)](this._oKey[r(379)]()[r(404)](i))}})},(dt=ut)(412)==dt(412)?pt.exports=vt($()):"undefined"===dt(390)&&(void 0)[dt(398)]?(void 0)([dt(409)],vt):vt(lt[dt(397)]),yt(408)))):ht(ft.CryptoJS);var Tt=J[St(214)];h[St(209)](Tt);var Nt,kt,xt,Rt,Pt={exports:{}},Ct=Dt;function jt(){var t=["object","6744HhbhYN","CryptoJS","WordArray","exports","push","amd","function","Base64","_map","create","8uVrAhV","6530890ZFxfXw","clamp","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","1382074EvCBDA","charAt","94742yilann","length","4603204mhyCUr","enc","45seGRlO","join","words","12749823dAcKPo","9226MYckjK","13946730ZxVxKu","getDefaultExportFromCjs"];return(jt=function(){return t})()}function Dt(t,e){var r=jt();return(Dt=function(t,e){return r[t-=449]})(t,e)}!function(t,e){for(var r=Dt,n=jt();;)try{if(744610===parseInt(r(469))/1+parseInt(r(471))/2*(parseInt(r(475))/3)+-parseInt(r(473))/4+parseInt(r(466))/5+-parseInt(r(455))/6*(parseInt(r(451))/7)+parseInt(r(465))/8*(-parseInt(r(450))/9)+parseInt(r(452))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Ct(458),Nt=Pt,Ct(458),kt=u,xt=function(t){var e,r,n,i=Dt;return e=Dt,n=(r=t).lib[e(457)],r[e(474)][e(462)]={stringify:function(t){var r=e,n=t[r(449)],i=t.sigBytes,o=this._map;t[r(467)]();for(var s=[],a=0;a<i;a+=3)for(var u=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c<i;c++)s[r(459)](o[r(470)](u>>>6*(3-c)&63));var f=o.charAt(64);if(f)for(;s[r(472)]%4;)s.push(f);return s[r(476)]("")},parse:function(t){var r=e,i=t[r(472)],o=this[r(463)],s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var a=0;a<o[r(472)];a++)s[o.charCodeAt(a)]=a}var u=o[r(470)](64);if(u){var c=t.indexOf(u);-1!==c&&(i=c)}return function(t,r,i){for(var o=e,s=[],a=0,u=0;u<r;u++)if(u%4){var c=i[t.charCodeAt(u-1)]<<u%4*2,f=i[t.charCodeAt(u)]>>>6-u%4*2;s[a>>>2]|=(c|f)<<24-a%4*8,a++}return n[o(464)](s,a)}(t,i,s)},_map:e(468)},t[i(474)][i(462)]},(Rt=Dt)(454)==Rt(454)?Nt[Rt(458)]=xt($()):"undefined"===Rt(461)&&(void 0)[Rt(460)]?(void 0)(["./core"],xt):xt(kt[Rt(456)]);var Lt=Pt.exports;h[Ct(453)](Lt);var Ut,Mt,Bt,qt,Ft,Ht={exports:{}},Wt=Vt;function Gt(){var t=["amd","Utf8","8dKiqUL","1160364jTxdUM","3105294SJNnPv","10wYFVKO","10KdfIUV","function","183615fTHRXw","CryptoJS","object","208fGcfDR","exports","10753237IsuIvr","5HAClEU","505492ZMqWMo","commonjsGlobal","347494wBMtHy","9721683WKKjyb","76FnXoxP"];return(Gt=function(){return t})()}!function(t,e){for(var r=Vt,n=Gt();;)try{if(765151===parseInt(r(257))/1*(parseInt(r(238))/2)+-parseInt(r(251))/3*(parseInt(r(242))/4)+-parseInt(r(249))/5*(parseInt(r(247))/6)+parseInt(r(240))/7+-parseInt(r(245))/8*(-parseInt(r(241))/9)+-parseInt(r(248))/10*(parseInt(r(256))/11)+parseInt(r(246))/12*(parseInt(r(254))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Wt(255),Ut=Ht,Wt(255),Mt=h[(Ft=Wt)(239)],Bt=function(t){var e=Ft;return t.enc[e(244)]},(qt=Vt)(253)==qt(253)?Ut[qt(255)]=Bt($()):"undefined"===qt(250)&&(void 0)[qt(243)]?(void 0)(["./core"],Bt):Bt(Mt[qt(252)]);var Kt=Ht[Wt(255)];function Vt(t,e){var r=Gt();return(Vt=function(t,e){return r[t-=238]})(t,e)}c(Kt);var zt=te;!function(t,e){for(var r=te,n=ee();;)try{if(247224===-parseInt(r(512))/1*(parseInt(r(548))/2)+parseInt(r(490))/3+parseInt(r(467))/4+parseInt(r(484))/5*(-parseInt(r(507))/6)+-parseInt(r(505))/7*(parseInt(r(533))/8)+-parseInt(r(497))/9*(-parseInt(r(474))/10)+-parseInt(r(501))/11*(-parseInt(r(469))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),zt(466);var Jt=h[zt(488)]&&h[zt(488)].__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object[zt(528)](z,"__esModule",{value:!0}),z[zt(509)]=z[zt(496)]=z[zt(536)]=z[zt(523)]=z[zt(493)]=z[zt(513)]=z[zt(486)]=z[zt(544)]=z.createPromiseCallback=z[zt(517)]=z[zt(472)]=z.getQuery=z[zt(500)]=z[zt(483)]=z[zt(527)]=z[zt(542)]=z[zt(479)]=z[zt(487)]=z[zt(520)]=z[zt(545)]=z[zt(495)]=z.isString=z[zt(504)]=void 0;var Yt=Jt(Tt),Xt=Jt(Lt),$t=Jt(Kt),Qt=l;function Zt(t){var e=zt,r=Xt.default.stringify(t);return r=(r=(r=r[e(515)](/=+$/,""))[e(515)](/\+/g,"-")).replace(/\//g,"_")}function te(t,e){var r=ee();return(te=function(t,e){return r[t-=466]})(t,e)}function ee(){var t=["printTrace","24hNCKak","length",'Set "global.Promise" to your preferred implementation of promises.',"printGroupLog","location","[#?&/]","undefined","stringify","groupCollapsed","genSeqId","trace","execCallback","isPalinObject","content","group","629382ibngdq","use strict","1104596DIbWmR","toString","19440tQzSXw","createPromiseCallback","default","getHash","=([^&]*)(&|$)","20890jushxy","call","error","JWT","getSdkName","isFormData","split","+86","random","createSign","366755wwIEWE","string","printWarn","isInstanceOf","commonjsGlobal","match","3936nuNbNC","HS256","body","printInfo","info","isUndefined","sleep","1368VeEIFd","getQuery","function","toQueryString","4246AvxtEp","hash","type","isArray","680491eSosuX","join","30WjQNzp","Your Node runtime does support ES6 Promises. ","transformPhone","catch","warn","1IUiovx","printError","parse","replace","[object Null]","removeParam","[object FormData]","push","isNull","substr","then","throwError","promise","log","test","formatUrl","defineProperty","[object Object]","collapsed","prototype"];return(ee=function(){return t})()}z.isArray=function(t){var e=zt;return"[object Array]"===Object[e(531)][e(468)][e(475)](t)},z.isString=function(t){return typeof t===zt(485)},z[zt(495)]=function(t){return typeof t===zt(539)},z[zt(545)]=function(t){var e=zt;return Object[e(531)].toString[e(475)](t)===e(529)},z.isNull=function(t){var e=zt;return Object[e(531)][e(468)][e(475)](t)===e(516)},z.isInstanceOf=function(t,e){return t instanceof e},z[zt(479)]=function(t){var e=zt;return Object[e(531)][e(468)].call(t)===e(518)},z[zt(542)]=function(){var t=zt;return Math[t(482)]()[t(468)](16).slice(2)},z[zt(527)]=function(t,e,r){var n=zt;void 0===r&&(r={});var i=/\?/.test(e),o="";for(var s in r)""===o?!i&&(e+="?"):o+="&",o+=s+"="+encodeURIComponent(r[s]);return e+=o,/^http(s)?\:\/\//[n(526)](e)?e:""+t+e},z[zt(483)]=function(t,e){var r=zt,n={alg:r(491),typ:r(477)},i=Zt($t[r(471)][r(514)](JSON[r(540)](n)))+"."+Zt($t[r(471)].parse(JSON[r(540)](t)));return i+"."+Zt(Yt.default(i,e))},z.toQueryString=function(t){var e=zt;void 0===t&&(t={});var r=[];for(var n in t)r[e(519)](n+"="+encodeURIComponent(t[n]));return r[e(506)]("&")},z[zt(498)]=function(t,e){var r=zt;if(typeof window===r(539))return!1;var n=e||window[r(537)].search,i=new RegExp("(^|&)"+t+r(473)),o=n[r(521)](n.indexOf("?")+1)[r(489)](i);return null!=o?o[2]:""},z.getHash=function(t){var e=zt;if("undefined"==typeof window)return"";var r=window.location[e(502)].match(new RegExp(e(538)+t+"=([^&#]*)"));return r?r[1]:""},z.removeParam=function(t,e){var r=zt,n=e[r(480)]("?")[0],i=[],o=-1!==e.indexOf("?")?e[r(480)]("?")[1]:"";if(""!==o){for(var s=(i=o[r(480)]("&"))[r(534)]-1;s>=0;s-=1)i[s][r(480)]("=")[0]===t&&i.splice(s,1);n=n+"?"+i[r(506)]("&")}return n},z[zt(470)]=function(){var t,e=zt;if(!Promise){(t=function(){})[e(524)]={};var r=function(){var t=e;throw new Error(t(508)+t(535))};return Object[e(528)](t[e(524)],e(522),{get:r}),Object[e(528)](t[e(524)],e(510),{get:r}),t}var n=new Promise((function(e,r){t=function(t,n){return t?r(t):e(n)}}));return t.promise=n,t},z[zt(544)]=function(t,e,r){if(void 0===r&&(r=null),t&&typeof t===zt(499))return t(e,r);if(e)throw e;return r},z.printWarn=function(t,e){console.warn("["+Qt.getSdkName()+"]["+t+"]:"+e)},z[zt(513)]=function(t,e){var r=zt;console.error({code:t,msg:"["+Qt[r(478)]()+"]["+t+"]:"+e})},z[zt(493)]=function(t,e){var r=zt;console[r(525)]("["+Qt[r(478)]()+"]["+t+"]:"+e)},z[zt(523)]=function(t,e){var r=zt;throw new Error(JSON[r(540)]({code:t,msg:"["+Qt[r(478)]()+"]["+t+"]:"+e}))},z[zt(536)]=function(t){var e=zt,r=t.title,n=t.subtitle,i=void 0===n?"":n,o=t[e(546)],s=void 0===o?[]:o,a=t[e(532)],u=void 0!==a&&a,c=t[e(530)];void 0!==c&&c?console[e(541)](r,i):console[e(547)](r,i);for(var f=0,h=s;f<h[e(534)];f++){var p=h[f],l=p[e(503)],v=p[e(492)];switch(l){case e(494):console[e(525)](v);break;case"warn":console[e(511)](v);break;case e(476):console[e(476)](v)}}u&&console[e(543)]("stack trace:"),console.groupEnd()},z[zt(496)]=function(t){return void 0===t&&(t=0),new Promise((function(e){return setTimeout(e,t)}))},z[zt(509)]=function(t){return zt(481)+t};var re=ce;function ne(){var t=["URL","parse","get","pop","Generator is already executing.","__assign","__proto__","getProtocol","withCredentials","file","open","_timeout","href","iterator","createObjectURL","24GFHVUW","url","call","upload","5541150Qvtjdq","__esModule","986788EgMZcO","createElement","put","post","response","trim","warn","appendChild","sent","__awaiter","value","_request","ops","return","append","method","forEach","create","_timeoutMsg","status","push","WebRequest","done","label","请求超时","use strict","statusCode","function","next","16WwqOAy","55147HslObW","click","headers","blob","2149nbHMQH","isFormData","includes","throw","setRequestHeader","1494KDSuai","5BQzLWN","_restrictedMethods","abort","application/x-www-form-urlencoded","17367UqnRXc","apply","prototype","defineProperty","key","responseText","data","hasOwnProperty","pathname","none","body","commonjsGlobal","progress","trys","genAdapter","readyState","formatUrl","toLowerCase","378288CYddWp","display","split","addEventListener","stringify","content-type","getAllResponseHeaders","length","AbstractSDKRequest","6940230rIOJfF"];return(ne=function(){return t})()}!function(t,e){for(var r=ce,n=ne();;)try{if(314414===-parseInt(r(367))/1*(-parseInt(r(366))/2)+-parseInt(r(381))/3+-parseInt(r(337))/4*(parseInt(r(377))/5)+parseInt(r(376))/6*(parseInt(r(371))/7)+-parseInt(r(331))/8*(-parseInt(r(306))/9)+parseInt(r(335))/10+-parseInt(r(315))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),re(362);var ie,oe=u&&h[re(392)].__extends||(ie=function(t,e){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t[ce(322)]=e}||function(t,e){var r=ce;for(var n in e)e[r(388)](n)&&(t[n]=e[n])})(t,e)},function(t,e){var r=ce;function n(){this.constructor=t}ie(t,e),t.prototype=null===e?Object[r(354)](e):(n[r(383)]=e.prototype,new n)}),se=h[re(392)]&&h[re(392)][re(321)]||function(){var t=re;return se=Object.assign||function(t){for(var e,r=ce,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object[r(383)].hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},se[t(382)](this,arguments)},ae=h[re(392)]&&h[re(392)][re(346)]||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=ce;function a(t){var e=ce;try{c(n[e(365)](t))}catch(t){o(t)}}function u(t){var e=ce;try{c(n[e(374)](t))}catch(t){o(t)}}function c(t){var e,n=ce;t[n(359)]?i(t[n(347)]):(e=t[n(347)],e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}c((n=n.apply(t,e||[]))[s(365)]())}))},ue=h[re(392)]&&h[re(392)].__generator||function(t,e){var r,n,i,o,s=re,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(364)&&(o[Symbol[s(329)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(320));for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n[u(374)]||((i=n[u(350)])&&i.call(n),0):n.next)&&!(i=i[u(333)](n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i[u(347)]]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(360)]++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a[u(349)][u(319)](),a[u(394)][u(319)]();continue;default:if(!(i=a.trys,(i=i[u(313)]>0&&i[i[u(313)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a[u(360)]<i[1]){a[u(360)]=i[1],i=o;break}if(i&&a[u(360)]<i[2]){a.label=i[2],a[u(349)].push(o);break}i[2]&&a[u(349)][u(319)](),a.trys[u(319)]();continue}o=e[u(333)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function ce(t,e){var r=ne();return(ce=function(t,e){return r[t-=303]})(t,e)}Object[re(384)](D,re(336),{value:!0}),D[re(358)]=D[re(395)]=void 0;var fe=z,he=v,pe=function(t){var e=re;function r(e){var r=ce,n=t[r(333)](this)||this,i=e.timeout,o=e.timeoutMsg,s=e.restrictedMethods;return n._timeout=i||0,n[r(355)]=o||r(361),n[r(378)]=s||["get","post",r(334),"download"],n}return oe(r,t),r[e(383)][e(318)]=function(t){return this[e(348)](se(se({},t),{method:"get"}),this._restrictedMethods.includes("get"))},r[e(383)].post=function(t){var r=e;return this[r(348)](se(se({},t),{method:r(340)}),this[r(378)].includes(r(340)))},r[e(383)].put=function(t){var r=e;return this[r(348)](se(se({},t),{method:r(339)}))},r[e(383)][e(334)]=function(t){var r=e,n=t[r(387)],i=t[r(325)],o=t.name,s=new FormData;for(var a in n)s[r(351)](a,n[a]);return s[r(351)](r(385),o),s[r(351)](r(325),i),this[r(348)](se(se({},t),{data:s,method:r(340)}),this._restrictedMethods[r(373)](r(334)))},r[e(383)].download=function(t){return ae(this,void 0,void 0,(function(){var e,r,n,i;return ue(this,(function(o){var s=ce;switch(o[s(360)]){case 0:return o.trys[s(357)]([0,2,,3]),[4,this[s(318)](se(se({},t),{headers:{},responseType:s(370)}))];case 1:return e=o[s(345)]()[s(387)],r=window[s(316)][s(330)](new Blob([e])),n=decodeURIComponent(new URL(t[s(332)])[s(389)][s(308)]("/")[s(319)]()||""),(i=document[s(338)]("a"))[s(328)]=r,i.setAttribute("download",n),i.style[s(307)]=s(390),document.body[s(344)](i),i[s(368)](),window.URL.revokeObjectURL(r),document[s(391)].removeChild(i),[3,3];case 2:return o[s(345)](),[3,3];case 3:return[2,new Promise((function(e){e({statusCode:200,tempFilePath:t[s(332)]})}))]}}))}))},r[e(383)]._request=function(t,r){var n=e,i=this;void 0===r&&(r=!1);var o=String(t[n(352)]).toLowerCase()||n(318);return new Promise((function(e){var s,a,u=n,c=t[u(332)],f=t[u(369)],h=void 0===f?{}:f,p=t[u(387)],l=t.responseType,v=t[u(324)],d=t[u(391)],y=t.onUploadProgress,I=fe[u(304)](he[u(323)](),c,"get"===o?p:{}),m=new XMLHttpRequest;for(var g in m[u(326)](o,I),l&&(m.responseType=l),h)m[u(375)](g,h[g]);y&&m[u(334)][u(309)](u(393),y),m.onreadystatechange=function(){var t=u,r={};if(4===m[t(303)]){var n=m[t(312)]()[t(342)]()[t(308)](/[\r\n]+/),i={};n[t(353)]((function(e){var r=t,n=e.split(": "),o=n.shift()[r(305)](),s=n.join(": ");i[o]=s})),r.header=i,r[t(363)]=m[t(356)];try{r[t(387)]=l===t(370)?m[t(341)]:JSON[t(317)](m[t(386)])}catch(e){r[t(387)]=l===t(370)?m.response:m[t(386)]}clearTimeout(s),e(r)}},r&&i[u(327)]&&(s=setTimeout((function(){var t=u;console[t(343)](i[t(355)]),m[t(379)]()}),i[u(327)])),a=fe[u(372)](p)?p:h[u(311)]===u(380)?fe.toQueryString(p):d||(p?JSON[u(310)](p):void 0),v&&(m[u(324)]=!0),m.send(a)}))},r}(V[re(314)]);D.WebRequest=pe,D[re(395)]=function(){return{root:window,reqClass:pe,wsClass:WebSocket,localStorage:localStorage,sessionStorage:sessionStorage}};var le=ve;function ve(t,e){var r=de();return(ve=function(t,e){return r[t-=500]})(t,e)}function de(){var t=["__esModule","commonjsGlobal","defineProperty","3343092qkwmMh","useDefaultAdapter","isArray","web","__createBinding","genAdapter","create","WEB","664xLNlSx","5GocEbF","95679aaXMSB","hasOwnProperty","WX_MP","5852567xhQCFu","1531572kRnelF","17YQBrVB","20395500WTQoeU","__importStar","isMatch","361308FixGBD","getDefaultExportFromCjs","RUNTIME","default","length","48494wjaoyA","useAdapters","runtime","wx_mp"];return(de=function(){return t})()}!function(t,e){for(var r=ve,n=de();;)try{if(478176===parseInt(r(516))/1*(-parseInt(r(525))/2)+parseInt(r(520))/3+-parseInt(r(501))/4*(-parseInt(r(510))/5)+parseInt(r(515))/6+parseInt(r(514))/7+parseInt(r(509))/8*(parseInt(r(511))/9)+-parseInt(r(517))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),function(t){var e=ve,r=h[e(530)]&&h[e(530)][e(505)]||(Object.create?function(t,r,n,i){void 0===i&&(i=n),Object[e(500)](t,i,{enumerable:!0,get:function(){return r[n]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),n=h[e(530)]&&h[e(530)].__setModuleDefault||(Object[e(507)]?function(t,r){var n=e;Object[n(500)](t,n(523),{enumerable:!0,value:r})}:function(t,r){t[e(523)]=r}),i=u&&u[e(518)]||function(t){var i=e;if(t&&t[i(529)])return t;var o={};if(null!=t)for(var s in t)s!==i(523)&&Object[i(512)].call(t,s)&&r(o,t,s);return n(o,t),o};Object[e(500)](t,e(529),{value:!0}),t[e(502)]=t.useAdapters=t[e(522)]=void 0;var o,s,a,c=i(D),f=z;(s=o=t[e(522)]||(t.RUNTIME={}))[(a=e)(508)]=a(504),s[a(513)]=a(528),t[e(526)]=function(t){for(var r=e,n=0,i=f[r(503)](t)?t:[t];n<i[r(524)];n++){var o=i[n],s=o[r(519)],a=o[r(506)],u=o[r(527)];if(s())return{adapter:a(),runtime:u}}},t[e(502)]=function(){var t=e;return{adapter:c.genAdapter(),runtime:o[t(508)]}}}(j),h[le(521)](j);var ye={},Ie=Ee;function me(){var t=["removeStoreAsync","INVALID_OPERATION","_platformInfo","async","sent","value","AbstractStorage","sync","1415ZwSpyu","local","iterator","_root","create","getStoreAsync","__proto__","__esModule","done","sessionStorage is not supported on current platform","use strict","commonjsGlobal","content","7093784HaUlHI","prototype","platformInfo","tcb_token","mode","OPERATION_FAIL","trys","indexOf","]setStore failed","removeItem","env","localStorage","localCachev1","push","_persistence","tcbCacheObject","_alwaysLocalKeys","__generator","setPrototypeOf","printWarn","pop","call","getSdkName","includes","function","length","4746140TdTqgz","current platform's storage is asynchronous, please use setStoreAsync insteed","INVALID_PARAMS","sessionStorage","10403910FKTDvX","setStoreAsync","keys","isNull","undefined","removeStore","label","persistence","6355638llxNmM","defineProperty","root","43NyGifK","current platform's storage is asynchronous, please use updatePersistenceAsync insteed","apply","stringify","current platform's storage is asynchronous, please use getStoreAsync insteed","14172Etsnlx","680SuUVnL","updatePersistence","CloudbaseCache","return","localStorage is not supported on current platform","8826xtVztp","_storage","constructor","adapter","none","ops","__awaiter","setItem","6922YwLEDH","isUndefined","hasOwnProperty","getItem","then","next","ERRORS","getStore"];return(me=function(){return t})()}!function(t,e){for(var r=Ee,n=me();;)try{if(518107===parseInt(r(436))/1*(parseInt(r(366))/2)+-parseInt(r(358))/3*(parseInt(r(353))/4)+parseInt(r(382))/5*(-parseInt(r(352))/6)+parseInt(r(421))/7+-parseInt(r(395))/8+parseInt(r(433))/9+parseInt(r(425))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Ie(392);var ge,be=u&&h[Ie(393)].__extends||(ge=function(t,e){var r=Ee;return(ge=Object[r(413)]||{__proto__:[]}instanceof Array&&function(t,e){t[r(388)]=e}||function(t,e){var n=r;for(var i in e)e[n(368)](i)&&(t[i]=e[i])})(t,e)},function(t,e){var r=Ee;function n(){this[Ee(360)]=t}ge(t,e),t[r(396)]=null===e?Object[r(386)](e):(n[r(396)]=e[r(396)],new n)}),we=h[Ie(393)]&&h[Ie(393)][Ie(364)]||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){var e=Ee;try{u(n[e(371)](t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e,n=Ee;t.done?i(t[n(379)]):(e=t[n(379)],e instanceof r?e:new r((function(t){t(e)})))[n(370)](s,a)}u((n=n[Ee(438)](t,e||[])).next())}))},_e=h[Ie(393)]&&u[Ie(412)]||function(t,e){var r,n,i,o,s=Ie,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(419)&&(o[Symbol[s(384)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(356)]:o[0]?n.throw||((i=n[u(356)])&&i[u(416)](n),0):n[u(371)])&&!(i=i[u(416)](n,o[1]))[u(390)])return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(431)]++,{value:o[1],done:!1};case 5:a[u(431)]++,n=o[1],o=[0];continue;case 7:o=a[u(363)].pop(),a[u(401)][u(415)]();continue;default:if(!(i=a[u(401)],(i=i[u(420)]>0&&i[i[u(420)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a[u(431)]<i[1]){a[u(431)]=i[1],i=o;break}if(i&&a[u(431)]<i[2]){a.label=i[2],a[u(363)][u(408)](o);break}i[2]&&a[u(363)][u(415)](),a[u(401)][u(415)]();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function Ee(t,e){var r=me();return(Ee=function(t,e){return r[t-=351]})(t,e)}Object.defineProperty(ye,Ie(389),{value:!0}),ye.CloudbaseCache=void 0;var Se=z,Oe=l,Ae=function(t){var e=Ie;function r(e){var r=Ee,n=t.call(this)||this;return n[r(385)]=e,!e[r(410)]&&(e[r(410)]={}),n}return be(r,t),r[e(396)].setItem=function(t,r){var n=e;this._root[n(410)][t]=r},r[e(396)][e(369)]=function(t){var r=e;return this[r(385)][r(410)][t]},r[e(396)][e(404)]=function(t){delete this._root.tcbCacheObject[t]},r[e(396)].clear=function(){delete this[e(385)].tcbCacheObject},r}(V[Ie(380)]);function Te(t,e){var r=Ie;switch(t){case"local":return e.localStorage?e.localStorage:(Se.printWarn(Oe[r(372)][r(423)],r(357)),new Ae(e[r(435)]));case r(362):return new Ae(e[r(435)]);case"session":return e.sessionStorage?e[r(424)]:(Se[r(414)](Oe[r(372)].INVALID_PARAMS,r(391)),new Ae(e[r(435)]));default:return e[r(406)]?e.localStorage:(Se[r(414)](Oe[r(372)][r(423)],r(357)),new Ae(e[r(435)]))}}var Ne=function(){var t=Ie;function e(t){var e=Ee;this.keys={};var r=t.persistence,n=t[e(397)],i=void 0===n?{}:n,o=t[e(427)],s=void 0===o?{}:o,a=t.alwaysLocalKeys,u=void 0===a?[]:a;this[e(376)]=i,this._alwaysLocalKeys=u,!this[e(359)]&&(this[e(409)]=i[e(361)].primaryStorage||r,this[e(359)]=Te(this[e(409)],i[e(361)]),this[e(427)]=s)}return Object[t(434)](e[t(396)],t(399),{get:function(){var e=t;return this[e(359)][e(399)]||e(381)},enumerable:!1,configurable:!0}),Object[t(434)](e[t(396)],t(432),{get:function(){return this[t(409)]},enumerable:!1,configurable:!0}),e.prototype[t(354)]=function(e){var r=t;if(this[r(399)]!==r(377)){if(e!==this[r(409)]){var n=this[r(409)]===r(383);this._persistence=e;var i=Te(e,this[r(376)][r(361)]);for(var o in this[r(427)]){var s=this.keys[o];if(!n||!this[r(411)][r(418)](o)){var a=this[r(359)][r(369)](s);!Se[r(367)](a)&&!Se.isNull(a)&&(i[r(365)](s,a),this[r(359)].removeItem(s))}}this[r(359)]=i}}else Se[r(414)](Oe[r(372)][r(375)],r(437))},e[t(396)].updatePersistenceAsync=function(t){return we(this,void 0,void 0,(function(){var e,r,n,i,o,s,a,u;return _e(this,(function(c){var f=Ee;switch(c.label){case 0:if(t===this._persistence)return[2];for(i in e="local"===this[f(409)],this[f(409)]=t,r=Te(t,this[f(376)][f(361)]),n=[],this[f(427)])n[f(408)](i);o=0,c[f(431)]=1;case 1:return o<n[f(420)]?(s=n[o],a=this[f(427)][s],e&&this[f(411)][f(418)](s)?[3,4]:[4,this[f(359)][f(369)](a)]):[3,5];case 2:return u=c[f(378)](),Se[f(367)](u)||Se[f(428)](u)?[3,4]:(r.setItem(a,u),[4,this[f(359)][f(404)](a)]);case 3:c[f(378)](),c[f(431)]=4;case 4:return o++,[3,1];case 5:return this[f(359)]=r,[2]}}))}))},e[t(396)].setStore=function(e,r,n){var i=t;if(this[i(399)]!==i(377)){if(this[i(359)])try{var o={version:n||i(407),content:r};this[i(359)][i(365)](e,JSON[i(439)](o))}catch(t){throw new Error(JSON[i(439)]({code:Oe[i(372)][i(400)],msg:"["+Oe[i(417)]()+"]["+Oe[i(372)][i(400)]+i(403),info:t}))}}else Se[i(414)](Oe[i(372)].INVALID_OPERATION,i(422))},e[t(396)][t(426)]=function(t,e,r){return we(this,void 0,void 0,(function(){var n;return _e(this,(function(i){var o=Ee;switch(i[o(431)]){case 0:if(!this[o(359)])return[2];i[o(431)]=1;case 1:return i[o(401)].push([1,3,,4]),n={version:r||"localCachev1",content:e},[4,this[o(359)][o(365)](t,JSON[o(439)](n))];case 2:return i[o(378)](),[3,4];case 3:return i[o(378)](),[2];case 4:return[2]}}))}))},e[t(396)][t(373)]=function(e,r){var n,i=t;if("async"!==this[i(399)]){try{if(typeof process!==i(429)&&(null===(n=process[i(405)])||void 0===n?void 0:n[i(398)]))return process[i(405)][i(398)];if(!this[i(359)])return""}catch(t){return""}r=r||"localCachev1";var o=this[i(359)][i(369)](e);return o&&o[i(402)](r)>=0?JSON.parse(o)[i(394)]:""}Se[i(414)](Oe.ERRORS[i(375)],i(351))},e[t(396)][t(387)]=function(t,e){var r;return we(this,void 0,void 0,(function(){var n;return _e(this,(function(i){var o=Ee;switch(i[o(431)]){case 0:try{if(typeof process!==o(429)&&(null===(r=process[o(405)])||void 0===r?void 0:r.tcb_token))return[2,process.env[o(398)]];if(!this[o(359)])return[2,""]}catch(t){return[2,""]}return e=e||o(407),[4,this[o(359)][o(369)](t)];case 1:return(n=i.sent())&&n[o(402)](e)>=0?[2,JSON.parse(n)[o(394)]]:[2,""]}}))}))},e[t(396)][t(430)]=function(e){var r=t;this[r(399)]!==r(377)?this[r(359)][r(404)](e):Se[r(414)](Oe.ERRORS[r(375)],"current platform's storage is asynchronous, please use removeStoreAsync insteed")},e.prototype[t(374)]=function(t){return we(this,void 0,void 0,(function(){return _e(this,(function(e){var r=Ee;switch(e[r(431)]){case 0:return[4,this[r(359)][r(404)](t)];case 1:return e[r(378)](),[2]}}))}))},e}();ye[Ie(355)]=Ne;var ke={},xe=De;function Re(){var t=["1705656vjoBpD","IErrorEvent","608100ahKdYI","isString","14urvUUE","indexOf","splice","__proto__","225373DnxgOz","target","69395MISSoM","__spreadArrays","20NZWwDM","3580170AEeIkF","setPrototypeOf","commonjsGlobal","removeEventListener","_listens","length","activateEvent","1162710KKkjFE","8mHyZBU","error","CloudbaseEventEmitter","data","__extends","defineProperty","_listeners","7359lPwPVP","CloudbaseEvent","off","__esModule","addEventListener","name","676RfUUYh","fire","constructor","create","call","prototype"];return(Re=function(){return t})()}!function(t,e){for(var r=De,n=Re();;)try{if(627179===parseInt(r(427))/1+parseInt(r(453))/2*(parseInt(r(447))/3)+-parseInt(r(440))/4*(-parseInt(r(429))/5)+-parseInt(r(421))/6+-parseInt(r(423))/7*(-parseInt(r(419))/8)+-parseInt(r(439))/9+-parseInt(r(431))/10*(parseInt(r(432))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Pe,Ce=h[xe(434)]&&h[xe(434)][xe(444)]||(Pe=function(t,e){var r=De;return(Pe=Object[r(433)]||{__proto__:[]}instanceof Array&&function(t,e){t[r(426)]=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){var r=De;function n(){this[De(455)]=t}Pe(t,e),t.prototype=null===e?Object[r(416)](e):(n[r(418)]=e[r(418)],new n)}),je=u&&h[xe(434)][xe(430)]||function(){for(var t=xe,e=0,r=0,n=arguments.length;r<n;r++)e+=arguments[r][t(437)];var i=Array(e),o=0;for(r=0;r<n;r++)for(var s=arguments[r],a=0,u=s.length;a<u;a++,o++)i[o]=s[a];return i};function De(t,e){var r=Re();return(De=function(t,e){return r[t-=416]})(t,e)}Object[xe(445)](ke,xe(450),{value:!0}),ke[xe(435)]=ke[xe(438)]=ke[xe(451)]=ke[xe(442)]=ke[xe(420)]=ke[xe(448)]=void 0;var Le=z;var Ue=function(t,e){var r=De;this[r(443)]=e||null,this[r(452)]=t};ke[xe(448)]=Ue;var Me=function(t){function e(e,r){var n=De,i=t[n(417)](this,n(441),{error:e,data:r})||this;return i[n(441)]=e,i}return Ce(e,t),e}(Ue);ke.IErrorEvent=Me;var Be=function(){var t=xe;function e(){this._listeners={}}return e[t(418)].on=function(e,r){var n,i,o;return n=e,i=r,(o=this[t(446)])[n]=o[n]||[],o[n].push(i),this},e[t(418)].off=function(e,r){return function(t,e,r){var n=xe;if(null==r?void 0:r[t]){var i=r[t][n(424)](e);-1!==i&&r[t][n(425)](i,1)}}(e,r,this[t(446)]),this},e.prototype[t(454)]=function(e,r){var n=t;if(Le.isInstanceOf(e,Me))return console[n(441)](e[n(441)]),this;var i=Le[n(422)](e)?new Ue(e,r||{}):e,o=i[n(452)];if(this[n(436)](o)){i[n(428)]=this;for(var s=0,a=this[n(446)][o]?je(this[n(446)][o]):[];s<a[n(437)];s++){a[s][n(417)](this,i)}}return this},e.prototype[t(436)]=function(e){var r=t;return this[r(446)][e]&&this[r(446)][e].length>0},e}();ke[xe(442)]=Be;var qe=new Be;ke[xe(451)]=function(t,e){qe.on(t,e)},ke[xe(438)]=function(t,e){void 0===e&&(e={}),qe[xe(454)](t,e)},ke[xe(435)]=function(t,e){qe[xe(449)](t,e)};var Fe={},He={},We=Qe;!function(t,e){for(var r=Qe,n=Ve();;)try{if(347965===parseInt(r(427))/1+-parseInt(r(419))/2*(-parseInt(r(421))/3)+-parseInt(r(461))/4*(-parseInt(r(446))/5)+parseInt(r(415))/6+-parseInt(r(462))/7+parseInt(r(474))/8+-parseInt(r(459))/9*(parseInt(r(438))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),We(449);var Ge=u&&h[We(423)][We(467)]||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=Qe;function a(t){var e=Qe;try{c(n[e(432)](t))}catch(t){o(t)}}function u(t){var e=Qe;try{c(n[e(453)](t))}catch(t){o(t)}}function c(t){var e,n=Qe;t[n(464)]?i(t[n(445)]):(e=t.value,e instanceof r?e:new r((function(t){t(e)})))[n(455)](a,u)}c((n=n.apply(t,e||[]))[s(432)]())}))},Ke=h[We(423)]&&u[We(468)]||function(t,e){var r,n,i,o,s=We,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(463)&&(o[Symbol[s(451)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(444));for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(441)]:o[0]?n[u(453)]||((i=n[u(441)])&&i[u(414)](n),0):n[u(432)])&&!(i=i.call(n,o[1]))[u(464)])return i;switch(n=0,i&&(o=[2&o[0],i[u(445)]]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a[u(452)]++,n=o[1],o=[0];continue;case 7:o=a[u(473)][u(428)](),a.trys[u(428)]();continue;default:if(!(i=a[u(413)],(i=i[u(431)]>0&&i[i[u(431)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a[u(452)]=o[1];break}if(6===o[0]&&a[u(452)]<i[1]){a[u(452)]=i[1],i=o;break}if(i&&a.label<i[2]){a[u(452)]=i[2],a[u(473)].push(o);break}i[2]&&a[u(473)].pop(),a.trys[u(428)]();continue}o=e[u(414)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function Ve(){var t=["filter","join","__awaiter","__generator","indexOf","msg","Error","message","ops","553272sJxNtl","map","name","undefined","apply","customInfo","constructor","error","trys","call","1919112OKvVJu","findIndex","mode","title","22jlOrdK","replace","126357VuxvwD","printGroupLog","commonjsGlobal","defineProperty","\\.descriptor.value\\s*\\[as\\s","sent","468379vdwbdP","pop","methodName","userAgent","length","next","test","catchErrorsDecorator","exec","push","stack","10DlmlGX","IS_DEBUG_MODE","messages","return","sync","info","Generator is already executing.","value","2074335csopQy","Firefox"," failed","use strict","async","iterator","label","throw","code","then","@debugger","unshift","sourceLink","9045585WKHgdw","content","4SIHvET","2677752xFNiKz","function","done"];return(Ve=function(){return t})()}Object[We(424)](He,"__esModule",{value:!0}),He[We(434)]=void 0;var ze=z,Je=l,Ye=!1;typeof navigator!==We(477)&&navigator[We(430)]&&(Ye=-1!==navigator[We(430)][We(469)](We(447)));var Xe=Ye?/(\.js\/)?__decorate(\$\d+)?<@.*\d$/:/(\/\w+\.js\.)?__decorate(\$\d+)?\s*\(.*\)$/,$e=/https?\:\/\/.+\:\d*\/.*\.js\:\d+\:\d+/;function Qe(t,e){var r=Ve();return(Qe=function(t,e){return r[t-=410]})(t,e)}function Ze(t){var e=We,r=t.err,n=t.className,i=t.methodName,o=t[e(458)];if(!o)return null;var s,a=r.stack.split("\n"),u=Ye?/^catchErrorsDecorator\/<\/descriptor.value@.*\d$/:new RegExp(n+e(425)+i+"\\]\\s*\\(.*\\)$"),c=Ye?/^catchErrorsDecorator\/<\/descriptor.value/:new RegExp(n+e(425)+i+"\\]"),f=a[e(416)]((function(t){return u[e(433)](t)}));if(-1!==f){var h=a[e(465)]((function(t,e){return e>f}));h[e(457)](a[f][e(420)](c,n+"."+i)[e(420)]($e,o)),(s=new Error)[e(437)]=e(Ye?456:471)+"\n"+h[e(466)]("\n")}return s}He[We(434)]=function(t){var e=We,r=t[e(417)],n=void 0===r?e(450):r,i=t[e(410)],o=void 0===i?{}:i,s=t[e(418)],a=t[e(440)],u=void 0===a?[]:a;return function(t,r,i){var a=e;if(Je[a(439)]){var c=o.className||t[a(411)][a(476)],f=o[a(429)]||r,h=i[a(445)],p=function(t){var e=We,r="",n=t[e(437)].split("\n"),i=n[e(416)]((function(t){return Xe[e(433)](t)}));if(-1!==i){var o=$e[e(435)](n[i+1]||"");r=o?o[0]:""}return r}(new Error);n===a(442)?i[a(445)]=function(){for(var t=a,e=[],r=0;r<arguments[t(431)];r++)e[r]=arguments[r];var n=Ze({err:new Error,className:c,methodName:f,sourceLink:p});try{return h[t(478)](this,e)}catch(e){var i=e,o=e.message,l={title:s||c+"."+f+" failed",content:[{type:"error",body:e}]};if(o&&/^\{.*\}$/[t(433)](o)){var v=JSON.parse(o);l.subtitle=o,v[t(454)]&&(n?(n[t(454)]=v[t(454)],n[t(470)]=v[t(470)]):(e[t(454)]=v.code,e[t(472)]=v[t(470)]),i=n||e,l[t(460)]=u[t(475)]((function(t){return{type:"info",body:t}})))}throw ze[t(422)](l),i}}:i[a(445)]=function(){for(var t=a,e=[],r=0;r<arguments[t(431)];r++)e[r]=arguments[r];return Ge(this,void 0,void 0,(function(){var t,r,n,i,o,a;return Ke(this,(function(l){var v=Qe;switch(l[v(452)]){case 0:t=Ze({err:new Error,className:c,methodName:f,sourceLink:p}),l[v(452)]=1;case 1:return l[v(413)][v(436)]([1,3,,4]),[4,h[v(478)](this,e)];case 2:return[2,l[v(426)]()];case 3:throw r=l[v(426)](),n=r,i=r[v(472)],o={title:s||c+"."+f+v(448),content:[{type:v(412),body:r}]},i&&/^\{.*\}$/[v(433)](i)&&(a=JSON.parse(i),o.subtitle=a,a[v(454)]&&(t?(t[v(454)]=a[v(454)],t[v(472)]=a[v(470)]):(r[v(454)]=a.code,r.message=a[v(470)]),n=t||r,o.content=u[v(475)]((function(t){return{type:v(443),body:t}})))),ze.printGroupLog(o),n;case 4:return[2]}}))}))}}}};var tr,er,rr,nr,ir=sr;function or(){var t=["__exportStar","default","__esModule","416322dytQPU","45leyabR","10006434ruHeql","__createBinding","commonjsGlobal","getDefaultExportFromCjs","create","47944AvaXPE","defineProperty","24081BxxRhi","1859919WJjOZl","8CEmKqb","2489024HpgLAt","13477030wSshtf","1057rbEiUA"];return(or=function(){return t})()}function sr(t,e){var r=or();return(sr=function(t,e){return r[t-=296]})(t,e)}function ar(t,e){var r=cr();return(ar=function(t,e){return r[t-=258]})(t,e)}!function(t,e){for(var r=sr,n=or();;)try{if(695074===-parseInt(r(311))/1+parseInt(r(296))/2+-parseInt(r(312))/3*(-parseInt(r(313))/4)+parseInt(r(303))/5*(-parseInt(r(302))/6)+parseInt(r(298))/7*(-parseInt(r(309))/8)+parseInt(r(304))/9+-parseInt(r(297))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),tr=Fe,er=sr,rr=u&&h[er(306)][er(305)]||(Object[er(308)]?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),nr=h[er(306)]&&h[er(306)][er(299)]||function(t,e){var r=er;for(var n in t)n===r(300)||e.hasOwnProperty(n)||rr(e,t,n)},Object[er(310)](tr,er(301),{value:!0}),nr(He,tr),h[ir(307)](Fe);var ur=ar;function cr(){var t=["13fKuqzJ","cache","constants","280xhEPIH","3613414IMiaXj","261DdzOLy","defineProperty","6366WZYuen","__esModule","10GldKde","17038KUCDow","call","520wBVOXS","commonjsGlobal","663597kKdJti","1380nVdVMa","utils","create","hasOwnProperty","132316YNhisG","use strict","__importStar","helpers","adapters","events","24QWsBhS","2EsYyIz","__createBinding","default","__setModuleDefault","1733061TcqcAP"];return(cr=function(){return t})()}!function(t,e){for(var r=ar,n=cr();;)try{if(204217===parseInt(r(266))/1*(parseInt(r(273))/2)+parseInt(r(283))/3*(parseInt(r(262))/4)+parseInt(r(259))/5*(parseInt(r(285))/6)+-parseInt(r(288))/7*(parseInt(r(281))/8)+parseInt(r(261))/9*(parseInt(r(287))/10)+parseInt(r(277))/11*(-parseInt(r(272))/12)+-parseInt(r(278))/13*(-parseInt(r(282))/14))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),ur(267);var fr=h[ur(260)]&&h[ur(260)][ur(274)]||(Object[ur(264)]?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),hr=u&&h[ur(260)][ur(276)]||(Object[ur(264)]?function(t,e){var r=ur;Object[r(284)](t,r(275),{enumerable:!0,value:e})}:function(t,e){t[ur(275)]=e}),pr=h[ur(260)]&&h[ur(260)][ur(268)]||function(t){var e=ur;if(t&&t.__esModule)return t;var r={};if(null!=t)for(var n in t)n!==e(275)&&Object[e(265)][e(258)](t,n)&&fr(r,t,n);return hr(r,t),r};Object[ur(284)](p,ur(286),{value:!0});var lr=p[ur(269)]=p[ur(263)]=p[ur(271)]=p.cache=p[ur(270)]=p[ur(280)]=void 0,vr=pr(l),dr=p[ur(280)]=vr,yr=pr(j),Ir=p[ur(270)]=yr,mr=pr(ye),gr=p[ur(279)]=mr,br=pr(ke),wr=p.events=br,_r=pr(z),Er=p.utils=_r,Sr=pr(Fe);lr=p.helpers=Sr;var Or=Cr;function Ar(){var t=["next","__generator","onUploadProgress","call","download","851577xSwdye","errMsg","function","onError","file","onMessage","indexOf","__proto__","https:","constructor","iterator","hasOwnProperty","请求超时","pop","post","timeoutMsg","abort","setStorageSync","_timeout","5CFAqZh","_restrictedMethods","setPrototypeOf","14PBslMt","getAccountInfoSync","23153150nTwMnM","_timeoutMsg","offAppHide","success_action_status","__extends","plugin","assign","getSystemInfoSync","url","226405psdCqN","tempFilePath","then","onAppShow","onOpen","ops","restrictedMethods","push","trys","request:fail timeout","throw","upload","close","value","headers","onAppHide","done","3428392FgadWB","connectSocket","readyState","warn","miniProgram","getStorageSync","data","undefined","uploadFile","label","appId","onClose","wx_mp","statusCode","local","prototype","request","downloadFile","length","clearStorageSync","AppPlatform","4668464LueARw","1932516KTvYve","return","6lEGQLS","6271224wQBcZA"];return(Ar=function(){return t})()}!function(t,e){for(var r=Cr,n=Ar();;)try{if(740233===parseInt(r(511))/1+-parseInt(r(471))/2*(parseInt(r(478))/3)+parseInt(r(468))/4+parseInt(r(497))/5*(-parseInt(r(472))/6)+parseInt(r(500))/7*(-parseInt(r(528))/8)+-parseInt(r(469))/9+parseInt(r(502))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Tr,Nr=(Tr=function(t,e){var r=Cr;return(Tr=Object[r(499)]||{__proto__:[]}instanceof Array&&function(t,e){t[r(485)]=e}||function(t,e){var n=r;for(var i in e)e[n(489)](i)&&(t[i]=e[i])})(t,e)},function(t,e){var r=Cr;function n(){this[Cr(487)]=t}Tr(t,e),t.prototype=null===e?Object.create(e):(n[r(462)]=e.prototype,new n)}),kr=function(){var t=Or;return kr=Object[t(508)]||function(e){for(var r,n=t,i=1,o=arguments.length;i<o;i++)for(var s in r=arguments[i])Object.prototype[n(489)].call(r,s)&&(e[s]=r[s]);return e},kr.apply(this,arguments)},xr=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){var e=Cr;try{u(n[e(473)](t))}catch(t){o(t)}}function a(t){var e=Cr;try{u(n[e(521)](t))}catch(t){o(t)}}function u(t){var e,n=Cr;t.done?i(t[n(524)]):(e=t.value,e instanceof r?e:new r((function(t){t(e)})))[n(513)](s,a)}u((n=n.apply(t,e||[])).next())}))},Rr=function(t,e){var r,n,i,o,s=Or,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(480)&&(o[Symbol[s(488)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(470)]:o[0]?n[u(521)]||((i=n[u(470)])&&i.call(n),0):n.next)&&!(i=i[u(476)](n,o[1]))[u(527)])return i;switch(n=0,i&&(o=[2&o[0],i[u(524)]]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(456)]++,{value:o[1],done:!1};case 5:a[u(456)]++,n=o[1],o=[0];continue;case 7:o=a.ops[u(491)](),a.trys[u(491)]();continue;default:if(!(i=a[u(519)],(i=i[u(465)]>0&&i[i[u(465)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a[u(456)]=o[1];break}if(6===o[0]&&a[u(456)]<i[1]){a[u(456)]=i[1],i=o;break}if(i&&a[u(456)]<i[2]){a[u(456)]=i[2],a[u(516)][u(518)](o);break}i[2]&&a[u(516)][u(491)](),a.trys.pop();continue}o=e[u(476)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};var Pr=function(t){var e=Or;function r(e){var r=Cr;void 0===e&&(e={});var n=t[r(476)](this)||this,i=e.timeout,o=e[r(493)],s=e[r(517)];return n[r(496)]=i||0,n._timeoutMsg=o||r(490),n[r(498)]=s||["get",r(492),r(522),r(477)],n}return Nr(r,t),r[e(462)][e(492)]=function(t){var e=this;return new Promise((function(r,n){var i=Cr,o=t[i(510)],s=t[i(453)],a=t[i(525)],u=wx[i(463)]({url:q("https:",o),data:s,timeout:e[i(496)],method:"POST",header:a,success:function(t){r(t)},fail:function(t){n(t)},complete:function(t){var r=i;if(t&&t[r(479)]&&(e[r(496)]&&-1!==e[r(498)][r(484)](r(492))&&t[r(479)]===r(520))){console[r(450)](e[r(503)]);try{u[r(494)]()}catch(t){}}}})}))},r[e(462)][e(522)]=function(t){var e=this,r=this;return new Promise((function(n){return xr(e,void 0,void 0,(function(){var e,i,o,s,a,u;return Rr(this,(function(c){var f=Cr;return e=t[f(510)],i=t[f(482)],o=t.data,s=t[f(525)],a=t[f(475)],u=wx[f(455)]({url:e,filePath:i,name:f(482),formData:kr({},o),header:s,timeout:this[f(496)],success:function(t){var e=f,r={statusCode:t[e(460)],data:t[e(453)]||{}};200===t[e(460)]&&o.success_action_status&&(r.statusCode=parseInt(o[e(505)],10)),n(r)},fail:function(t){n(t)},complete:function(t){var e=f;if(t&&t[e(479)]&&(r[e(496)]&&-1!==r[e(498)][e(484)]("upload")&&t[e(479)]===e(520))){console[e(450)](r[e(503)]);try{u.abort()}catch(t){}}}}),a&&u.onProgressUpdate((function(t){a(t)})),[2]}))}))}))},r[e(462)][e(477)]=function(t){var e=this,r=this;return new Promise((function(n,i){var o=Cr,s=t[o(510)],a=t[o(525)],u=wx[o(464)]({url:q(o(486),s),header:a,timeout:e[o(496)],success:function(t){var e=o;200===t[e(460)]&&t[e(512)]?n({statusCode:200,tempFilePath:t[e(512)]}):n(t)},fail:function(t){i(t)},complete:function(t){var e=o;if(t&&t[e(479)]&&(r[e(496)]&&-1!==r._restrictedMethods.indexOf(e(477))&&"request:fail timeout"===t[e(479)])){console[e(450)](r[e(503)]);try{u[e(494)]()}catch(t){}}}})}))},r}(L);function Cr(t,e){var r=Ar();return(Cr=function(t,e){return r[t-=450]})(t,e)}var jr={setItem:function(t,e){wx[Or(495)](t,e)},getItem:function(t){return wx[Or(452)](t)},removeItem:function(t){wx.removeStorageSync(t)},clear:function(){wx[Or(466)]()}},Dr=function(t,e){var r=Cr;void 0===e&&(e={});var n=wx[r(529)](kr({url:t},e));return{set onopen(t){n[r(515)](t)},set onmessage(t){n[r(483)](t)},set onclose(t){n[r(458)](t)},set onerror(t){n[r(481)](t)},send:function(t){return n.send({data:t})},close:function(t,e){return n[r(523)]({code:t,reason:e})},get readyState(){return n[r(530)]},CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3}};var Lr={genAdapter:function(){var t=Or;return{root:{},reqClass:Pr,wsClass:Dr,localStorage:jr,primaryStorage:R[t(461)],getAppSign:function(){var e,r=t,n=wx[r(501)]();return e=Or,typeof App!==e(454)||typeof getApp!==e(454)||wx[e(526)]||wx[e(504)]||wx[e(514)]||wx.offAppShow?n&&n.miniProgram?n[r(451)][r(457)]:"":n&&n[r(507)]?n[r(507)][r(457)]:""}}},isMatch:function(){var t=Or;if(typeof wx===t(454))return!1;if(typeof Page===t(454))return!1;if(!wx[t(509)])return!1;if(!wx[t(452)])return!1;if(!wx[t(495)])return!1;if(!wx[t(529)])return!1;if(!wx[t(463)])return!1;try{if(!wx.getSystemInfoSync())return!1;if("qq"===wx[t(509)]()[t(467)])return!1}catch(t){return!1}return!0},runtime:Or(459)},Ur=Gr;!function(t,e){for(var r=Gr,n=Wr();;)try{if(607330===parseInt(r(120))/1*(-parseInt(r(143))/2)+parseInt(r(123))/3+parseInt(r(125))/4+parseInt(r(148))/5+-parseInt(r(145))/6*(-parseInt(r(137))/7)+parseInt(r(130))/8+-parseInt(r(126))/9*(parseInt(r(122))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Mr=function(){for(var t=Ur,e=0,r=0,n=arguments[t(139)];r<n;r++)e+=arguments[r].length;var i=Array(e),o=0;for(r=0;r<n;r++)for(var s=arguments[r],a=0,u=s[t(139)];a<u;a++,o++)i[o]=s[a];return i},Br=dr[Ur(149)],qr={};function Fr(t,e){var r=Ur,n=e.name,i=e.namespace,o=e[r(141)],s=e[r(136)],a=e.IIFE,u=void 0!==a&&a;if(qr[n]||i&&t[i])throw new Error(JSON.stringify({code:Br[r(128)],msg:"Duplicate component "+n}));if(u){if(!o||typeof o!==r(142))throw new Error(JSON[r(138)]({code:Br[r(147)],msg:"IIFE component's entity must be a function"}));o.call(t)}if(qr[n]=e,i?t.prototype[i]=o:Hr(t[r(140)],o),s){var c=s[r(129)],f=s.events;if(!c||!f||0===f[r(139)])return;var h=t[r(140)][r(135)]||function(){};!t[r(140)][r(133)]&&(t.prototype[r(133)]={}),(t[r(140)][r(133)]||{})[n]?t[r(140)][r(133)][n][r(133)]=Mr(t.prototype[r(133)][n].events,f):t[r(140)][r(133)][n]={bus:c,events:f},t[r(140)][r(135)]=function(t,e){var n=r;for(var i in h(t,e),this[n(133)]){var o=this.events[i],s=o.bus;if(o[n(133)][n(132)](t)){s[n(135)](t,e);break}}}}}function Hr(t,e){var r=Ur;if(!(e instanceof Object))return e;switch(e[r(121)]){case Date:return new Date(e[r(124)]());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e[r(127)](n)&&(t[n]=Hr(t[n],e[n]));return t}function Wr(){var t=["5807072Zqihhp","target:","includes","events"," is not a function which is the only type supports hook","fire","injectEvents","6355517OiCuTw","stringify","length","prototype","entity","function","89686pionPm","apply","6ZXxeqC","__spreadArrays","INVALID_PARAMS","2230010AoBGQz","ERRORS","target","19bNKqGl","constructor","10SLMMuY","3489630NKwpMp","getTime","3635660abhkLT","24233355GjcfuB","hasOwnProperty","INVALID_OPERATION","bus"];return(Wr=function(){return t})()}function Gr(t,e){var r=Wr();return(Gr=function(t,e){return r[t-=119]})(t,e)}var Kr={};function Vr(t,e){var r=Yr();return(Vr=function(t,e){return r[t-=371]})(t,e)}var zr=Vr;!function(t,e){for(var r=Vr,n=Yr();;)try{if(755900===-parseInt(r(389))/1*(-parseInt(r(379))/2)+parseInt(r(377))/3+parseInt(r(397))/4*(-parseInt(r(376))/5)+parseInt(r(388))/6+parseInt(r(395))/7*(-parseInt(r(375))/8)+parseInt(r(384))/9*(-parseInt(r(386))/10)+parseInt(r(383))/11*(-parseInt(r(380))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Jr=function(){var t=Vr;return Jr=Object.assign||function(t){for(var e,r=Vr,n=1,i=arguments[r(382)];n<i;n++)for(var o in e=arguments[n])Object[r(371)][r(385)][r(390)](e,o)&&(t[o]=e[o]);return t},Jr[t(374)](this,arguments)};function Yr(){var t=["hasOwnProperty","13930850UqofTN","updatePersistence","7560720bAPjwV","227xyVbIc","call","platformInfo","anonymous_uuid","local","login_type","983101NhmmOX","access_token_expire","831952sOguua","prototype","refresh_token","user_info","apply","16ZaQquv","35NPEcMw","4380237wTsNkf","anonymousUuidKey","10622LWsDrc","480108YivKrP","CloudbaseCache","length","11DrosCJ","9EHpzrX"];return(Yr=function(){return t})()}var Xr=zr(396),$r=zr(372),Qr=zr(392),Zr=zr(394),tn=zr(373),en=gr[zr(381)],rn={},nn={};function on(t){var e=zr,r=t.env,n=t.persistence,i=t[e(391)],o={accessTokenKey:"access_token_"+r,accessTokenExpireKey:Xr+"_"+r,refreshTokenKey:$r+"_"+r,anonymousUuidKey:Qr+"_"+r,loginTypeKey:Zr+"_"+r,userInfoKey:tn+"_"+r};rn[r]?rn[r][e(387)](n):rn[r]=new en(Jr(Jr({},t),{keys:o,platformInfo:i,alwaysLocalKeys:[e(378)]})),nn[r]=nn[r]||new en(Jr(Jr({},t),{keys:o,platformInfo:i,persistence:e(393)}))}function sn(t){return rn[t]}function an(t){return nn[t]}var un=vn;function cn(){var t=["6094DcdagS","15114880rMECkm","ANONYMOUS","setSdkName","12ctCzoL","NULL","240kZKwPU","undefined","//tcb-pre.tencentcloudapi.com/web","pre","http:","6BZGAGl","194PBwmzI","CUSTOM","616698VQones","https:","99KeNLrl","69016DTXNsE","env","//tcb-api.tencentcloudapi.com/web","533245VRwUAU","4282607agdLqj","protocol","END_POINT","1307570QvFnXG","NODE_ENV","2020-01-10"];return(cn=function(){return t})()}!function(t,e){for(var r=vn,n=cn();;)try{if(767623===-parseInt(r(114))/1*(-parseInt(r(126))/2)+parseInt(r(128))/3+-parseInt(r(118))/4*(-parseInt(r(107))/5)+parseInt(r(125))/6*(parseInt(r(108))/7)+parseInt(r(131))/8*(-parseInt(r(130))/9)+parseInt(r(115))/10+parseInt(r(111))/11*(-parseInt(r(120))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var fn=dr[un(117)],hn=dr.setProtocol,pn="",ln="@cloudbase/js-sdk";function vn(t,e){var r=cn();return(vn=function(t,e){return r[t-=105]})(t,e)}var dn,yn,In,mn=un(113),gn=typeof location!==un(121)&&location[un(109)]===un(124)?un(124):un(129),bn="undefined"!=typeof process&&"e2e"===process[un(105)][un(112)]&&process[un(105)][un(110)]===un(123)?un(122):un(106);function wn(t,e){bn=t,e&&(gn=e,hn(e))}function _n(t,e){var r=En();return(_n=function(t,e){return r[t-=147]})(t,e)}function En(){var t=["200gZStBI","32430180lYByYO","1274298ZgwZLG","444010OPbecU","22bprqeL","loginStateExpire","1676984MQVPrb","14871906nYKRKk","62961McExRK","refreshAccessToken","loginTypeChanged","loginStateChanged","30COcaeI","910ecKAQK","6IZKcAW","4994HNErdb"];return(En=function(){return t})()}(yn=dn||(dn={}))[(In=un)(116)]=In(116),yn.WECHAT="WECHAT",yn.CUSTOM=In(127),yn[In(119)]=In(119);var Sn=_n;!function(t,e){for(var r=_n,n=En();;)try{if(843236===-parseInt(r(159))/1*(parseInt(r(155))/2)+-parseInt(r(149))/3*(-parseInt(r(157))/4)+parseInt(r(147))/5*(parseInt(r(153))/6)+-parseInt(r(154))/7*(parseInt(r(151))/8)+-parseInt(r(158))/9+parseInt(r(148))/10*(-parseInt(r(150))/11)+parseInt(r(152))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var On={LOGIN_STATE_CHANGED:Sn(162),LOGIN_STATE_EXPIRED:Sn(156),LOGIN_TYPE_CHANGED:Sn(161),ANONYMOUS_CONVERTED:"anonymousConverted",ACCESS_TOKEN_REFRESHD:Sn(160)},An=Bn;!function(t,e){for(var r=Bn,n=Hn();;)try{if(760286===-parseInt(r(342))/1+parseInt(r(341))/2+-parseInt(r(318))/3*(-parseInt(r(311))/4)+parseInt(r(309))/5+parseInt(r(362))/6+-parseInt(r(303))/7*(parseInt(r(365))/8)+parseInt(r(332))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Tn=function(){var t=An;return Tn=Object[t(354)]||function(e){for(var r,n=t,i=1,o=arguments[n(359)];i<o;i++)for(var s in r=arguments[i])Object[n(338)].hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},Tn[t(366)](this,arguments)},Nn=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=Bn;function a(t){var e=Bn;try{c(n[e(374)](t))}catch(t){o(t)}}function u(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e,n=Bn;t[n(308)]?i(t[n(385)]):(e=t[n(385)],e instanceof r?e:new r((function(t){t(e)})))[n(321)](a,u)}c((n=n[s(366)](t,e||[]))[s(374)]())}))},kn=function(t,e){var r,n,i,o,s=An,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol[s(315)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(329)]:o[0]?n[u(277)]||((i=n[u(329)])&&i.call(n),0):n[u(374)])&&!(i=i.call(n,o[1]))[u(308)])return i;switch(n=0,i&&(o=[2&o[0],i[u(385)]]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(312)]++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops[u(372)](),a[u(274)][u(372)]();continue;default:if(!(i=a[u(274)],(i=i.length>0&&i[i[u(359)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a[u(312)]=o[1];break}if(6===o[0]&&a.label<i[1]){a[u(312)]=i[1],i=o;break}if(i&&a[u(312)]<i[2]){a[u(312)]=i[2],a.ops[u(380)](o);break}i[2]&&a[u(351)][u(372)](),a[u(274)].pop();continue}o=e[u(337)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},xn=dr[An(356)],Rn=Er[An(392)],Pn=Er[An(370)],Cn=Er.formatUrl,jn=Er[An(285)],Dn=Ir[An(348)],Ln=[An(276),An(298),An(357),An(296),"auth.signIn",An(393),An(388),An(335),An(390),An(316),An(379)];function Un(t,e,r){var n=t[e];t[e]=function(e){var i=Bn,o={},s={};r[i(384)]((function(r){var n=i,a=r[n(337)](t,e),u=a[n(281)],c=a[n(302)];Object[n(354)](o,u),Object[n(354)](s,c)}));var a=e[i(281)];return a&&function(){var t=i;if(Pn(a))for(var r in o)a[t(297)](r,o[r]);else e.data=Tn(Tn({},a),o)}(),e[i(302)]=Tn(Tn({},e[i(302)]||{}),s),n[i(337)](t,e)}}function Mn(){var t=An,e=Rn();return{data:{seqId:e},headers:{"X-SDK-Version":t(328)+pn,"x-seqid":e}}}function Bn(t,e){var r=Hn();return(Bn=function(t,e){return r[t-=274]})(t,e)}var qn=function(){var t=An;function e(t){var e=Bn;this._throwWhenRequestFail=!1,this[e(326)]=t,this._reqClass=new(Kr.adapter[e(334)])({timeout:this[e(326)][e(313)],timeoutMsg:e(293)+this[e(326)][e(313)]/1e3+"s内未完成,已中断",restrictedMethods:[e(361)]}),this[e(284)]=t[e(277)]||!1,this[e(360)]=sn(this.config[e(286)]),this[e(327)]=an(this[e(326)].env),Un(this[e(391)],e(361),[Mn]),Un(this[e(391)],e(368),[Mn]),Un(this[e(391)],e(350),[Mn])}return e.prototype[t(361)]=function(t){return Nn(this,void 0,void 0,(function(){return kn(this,(function(e){var r=Bn;switch(e[r(312)]){case 0:return[4,this[r(391)][r(361)](t)];case 1:return[2,e[r(369)]()]}}))}))},e.prototype[t(368)]=function(t){return Nn(this,void 0,void 0,(function(){return kn(this,(function(e){var r=Bn;switch(e[r(312)]){case 0:return[4,this._reqClass[r(368)](t)];case 1:return[2,e[r(369)]()]}}))}))},e[t(338)][t(350)]=function(t){return Nn(this,void 0,void 0,(function(){return kn(this,(function(e){var r=Bn;switch(e[r(312)]){case 0:return[4,this[r(391)].download(t)];case 1:return[2,e[r(369)]()]}}))}))},e[t(338)][t(340)]=function(){return Nn(this,void 0,void 0,(function(){var t,e,r;return kn(this,(function(n){var i=Bn;switch(n[i(312)]){case 0:!this._refreshAccessTokenPromise&&(this[i(283)]=this[i(389)]()),n[i(312)]=1;case 1:return n.trys.push([1,3,,4]),[4,this[i(283)]];case 2:return t=n.sent(),[3,4];case 3:return r=n.sent(),e=r,[3,4];case 4:if(this._refreshAccessTokenPromise=null,this[i(280)]=null,e)throw e;return[2,t]}}))}))},e[t(338)][t(292)]=function(){return Nn(this,void 0,void 0,(function(){var t,e,r,n,i,o,s,a,u;return kn(this,(function(c){var f=Bn;switch(c.label){case 0:return t=this._cache[f(339)],e=t[f(299)],r=t.accessTokenExpireKey,n=t[f(279)],[4,this[f(360)][f(295)](n)];case 1:if(!c[f(369)]())throw new Error(JSON[f(301)]({code:xn.OPERATION_FAIL,msg:f(330)}));return[4,this[f(360)][f(295)](e)];case 2:return i=c[f(369)](),s=Number,[4,this[f(360)][f(295)](r)];case 3:return o=s[f(366)](void 0,[c[f(369)]()]),a=!0,(u=this[f(280)])?[4,this._shouldRefreshAccessTokenHook(i,o)]:[3,5];case 4:u=!c.sent(),c[f(312)]=5;case 5:return u&&(a=!1),i&&o&&!(o<Date[f(363)]())||!a?[3,7]:[4,this.refreshAccessToken()];case 6:return[2,c.sent()];case 7:return[2,{accessToken:i,accessTokenExpire:o}]}}))}))},e[t(338)][t(382)]=function(t,e,r){return Nn(this,void 0,void 0,(function(){var n,i,o,s,a,u,c,f,h,p,l,v,d,y,I,m,g,b,w,_,E,S,O,A,T,N;return kn(this,(function(k){var x=Bn;switch(k.label){case 0:return n="x-tcb-trace_"+this[x(326)][x(286)],i=x(355),o=Tn({action:t,dataVersion:mn,env:this.config[x(286)]},e),-1!==Ln[x(278)](t)?[3,3]:(s=this[x(360)][x(339)].refreshTokenKey,[4,this[x(360)][x(295)](s)]);case 1:return k[x(369)]()?(a=o,[4,this.getAccessToken()]):[3,3];case 2:a.access_token=k[x(369)]()[x(323)],k.label=3;case 3:if(t===x(377)){for(c in u=new FormData)u.hasOwnProperty(c)&&void 0!==u[c]&&u[x(297)](c,o[c]);i="multipart/form-data"}else for(c in i=x(307),u={},o)void 0!==o[c]&&(u[c]=o[c]);return f={headers:{"content-type":i}},(null==r?void 0:r[x(344)])&&(f.onUploadProgress=r[x(344)]),this.config[x(291)]&&(f[x(302)]["X-TCB-Region"]=this[x(326)][x(291)]),(h=this[x(327)][x(314)](n))&&(f.headers[x(319)]=h),Kr[x(287)]!==Dn[x(349)]&&(p=this[x(326)],l=p[x(289)],v=p[x(322)],d=Date[x(363)](),y=v[x(294)],I=v[x(375)],m=jn({data:{},timestamp:d,appAccessKeyId:I,appSign:l},y),f.headers["X-TCB-App-Source"]=x(304)+d+";appAccessKeyId="+I+x(364)+l+x(324)+m),g=e.parse,b=e[x(290)],w=e[x(376)],_={env:this[x(326)][x(286)]},g&&(_[x(325)]=!0),b&&(_=Tn(Tn({},b),_)),S=(E={BASE_URL:bn,PROTOCOL:gn})[x(378)],O=E[x(275)],A=Cn(O,S,_),w&&(A+=w),[4,this[x(361)](Tn({url:A,data:u},f))];case 4:if(T=k.sent(),(N=T[x(381)]&&T[x(381)]["x-tcb-trace"])&&this[x(327)].setStore(n,N),200!==Number(T[x(336)])&&200!==Number(T[x(346)])||!T.data)throw new Error(x(373));return[2,T]}}))}))},e[t(338)][t(358)]=function(t,e){return void 0===e&&(e={}),Nn(this,void 0,void 0,(function(){var r;return kn(this,(function(n){var i=Bn;switch(n[i(312)]){case 0:return[4,this[i(382)](t,e,{onUploadProgress:e[i(344)]})];case 1:return(r=n[i(369)]())[i(281)][i(367)]!==i(310)||-1!==Ln[i(278)](t)?[3,4]:[4,this[i(340)]()];case 2:return n[i(369)](),[4,this.request(t,e,{onUploadProgress:e.onUploadProgress})];case 3:r=n[i(369)](),n[i(312)]=4;case 4:if(r[i(281)][i(367)]&&this[i(284)])throw new Error(JSON[i(301)]({code:xn.OPERATION_FAIL,msg:"["+r[i(281)][i(367)]+"] "+r[i(281)].message}));return[2,r[i(281)]]}}))}))},e[t(338)][t(389)]=function(t){return void 0===t&&(t=1),Nn(this,void 0,void 0,(function(){var e,r,n,i,o,s,a,u,c,f,h,p,l;return kn(this,(function(v){var d=Bn;switch(v[d(312)]){case 0:return e=this[d(360)].keys,r=e.accessTokenKey,n=e[d(371)],i=e[d(279)],o=e.loginTypeKey,s=e.anonymousUuidKey,[4,this._cache[d(347)](r)];case 1:return v[d(369)](),[4,this._cache[d(347)](n)];case 2:return v[d(369)](),[4,this[d(360)].getStoreAsync(i)];case 3:if(!(a=v[d(369)]()))throw new Error(JSON[d(301)]({code:xn.INVALID_OPERATION,msg:d(317)}));return u={refresh_token:a},[4,this[d(382)](d(393),u)];case 4:return(c=v[d(369)]())[d(281)][d(367)]?"SIGN_PARAM_INVALID"!==(f=c[d(281)][d(367)])&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f?[3,11]:[4,this[d(360)][d(295)](o)]:[3,12];case 5:return v[d(369)]()===dn[d(300)]&&"INVALID_REFRESH_TOKEN"===f?[4,this[d(360)].getStoreAsync(s)]:[3,9];case 6:return h=v[d(369)](),[4,this._cache[d(295)](i)];case 7:return p=v[d(369)](),[4,this[d(358)](d(296),{anonymous_uuid:h,refresh_token:p})];case 8:if(l=v[d(369)](),this[d(343)](l[d(387)]),t>=1)return[2,this[d(389)](--t)];throw new Error(JSON.stringify({code:xn[d(383)],message:d(386)}));case 9:return si[d(306)](On.LOGIN_STATE_EXPIRED),[4,this[d(360)].removeStoreAsync(i)];case 10:v.sent(),v[d(312)]=11;case 11:throw new Error(JSON[d(301)]({code:xn[d(345)],msg:d(331)+c[d(281)][d(367)]}));case 12:return c[d(281)][d(353)]?(si[d(306)](On[d(282)]),[4,this._cache[d(352)](r,c[d(281)][d(353)])]):[3,15];case 13:return v[d(369)](),[4,this[d(360)].setStoreAsync(n,c[d(281)][d(320)]+Date[d(363)]())];case 14:return v[d(369)](),[2,{accessToken:c[d(281)][d(353)],accessTokenExpire:c.data[d(320)]}];case 15:return c.data[d(387)]?[4,this._cache.removeStoreAsync(i)]:[3,19];case 16:return v[d(369)](),[4,this[d(360)][d(352)](i,c.data[d(387)])];case 17:return v[d(369)](),[4,this[d(389)]()];case 18:v[d(369)](),v[d(312)]=19;case 19:return[2]}}))}))},e[t(338)][t(343)]=function(t){return Nn(this,void 0,void 0,(function(){var e,r,n,i;return kn(this,(function(o){var s=Bn;switch(o[s(312)]){case 0:return e=this[s(360)][s(339)],r=e.accessTokenKey,n=e[s(371)],i=e[s(279)],[4,this._cache[s(347)](r)];case 1:return o.sent(),[4,this._cache[s(347)](n)];case 2:return o[s(369)](),[4,this[s(360)][s(352)](i,t)];case 3:return o[s(369)](),[2]}}))}))},e}(),Fn={};function Hn(){var t=["OPERATION_FAIL","forEach","value","重试获取 refresh token 失败","refresh_token","auth.signUpWithEmailAndPassword","_refreshAccessToken","auth.sendPasswordResetEmail","_reqClass","genSeqId","auth.fetchAccessTokenWithRefreshToken","trys","PROTOCOL","auth.getJwt","throw","indexOf","refreshTokenKey","_shouldRefreshAccessTokenHook","data","ACCESS_TOKEN_REFRESHD","_refreshAccessTokenPromise","_throwWhenRequestFail","createSign","env","runtime","__awaiter","appSign","inQuery","region","getAccessToken","[@cloudbase/js-sdk] 请求在","appAccessKey","getStoreAsync","auth.signInAnonymously","append","auth.logout","accessTokenKey","ANONYMOUS","stringify","headers","2312905qdZKEd","timestamp=","__generator","fire","application/json;charset=UTF-8","done","2356715nBxBSX","ACCESS_TOKEN_EXPIRED","407988mwLQTf","label","timeout","getStore","iterator","auth.resetPasswordWithToken","not login","12nbBcQm","X-TCB-Trace","access_token_expire","then","appSecret","accessToken",";sign=","parse","config","_localCache","@cloudbase/js-sdk/","return","refresh token is not exist, your local data might be messed up, please retry after clear localStorage or sessionStorage","refresh access_token failed:","5069664OCBNYc","__assign","reqClass","auth.activateEndUserMail","status","call","prototype","keys","refreshAccessToken","1022064GFSqwd","956681vrTkEi","_setRefreshToken","onUploadProgress","NETWORK_ERROR","statusCode","removeStoreAsync","RUNTIME","WEB","download","ops","setStoreAsync","access_token","assign","application/x-www-form-urlencoded","ERRORS","auth.signInWithTicket","send","length","_cache","post","6509808jjODBh","now",";appSign=","32OYqLrj","apply","code","upload","sent","isFormData","accessTokenExpireKey","pop","network request error","next","appAccessKeyId","search","storage.uploadFile","BASE_URL","auth.isUsernameRegistered","push","header","request"];return(Hn=function(){return t})()}var Wn=Yn;!function(t,e){for(var r=Yn,n=ai();;)try{if(213903===-parseInt(r(265))/1+parseInt(r(314))/2+parseInt(r(299))/3*(-parseInt(r(324))/4)+-parseInt(r(297))/5+-parseInt(r(345))/6+-parseInt(r(339))/7*(parseInt(r(292))/8)+parseInt(r(335))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Gn=function(){var t=Wn;return Gn=Object[t(267)]||function(e){for(var r,n=t,i=1,o=arguments[n(259)];i<o;i++)for(var s in r=arguments[i])Object[n(311)].hasOwnProperty[n(295)](r,s)&&(e[s]=r[s]);return e},Gn[t(309)](this,arguments)},Kn=function(t,e,r,n){var i,o=Wn,s=arguments.length,a=s<3?e:null===n?n=Object[o(332)](e,r):n;if("object"==typeof Reflect&&typeof Reflect[o(334)]===o(282))a=Reflect[o(334)](t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object[o(319)](e,r,a),a},Vn=function(t,e){var r=Wn;if(typeof Reflect===r(343)&&typeof Reflect.metadata===r(282))return Reflect[r(305)](t,e)},zn=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){var e=Yn;try{u(n[e(278)](t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e,n=Yn;t[n(257)]?i(t[n(283)]):(e=t[n(283)],e instanceof r?e:new r((function(t){t(e)})))[n(337)](s,a)}u((n=n.apply(t,e||[])).next())}))},Jn=function(t,e){var r,n,i,o,s=Wn,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(282)&&(o[Symbol[s(281)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(269)]:o[0]?n[u(263)]||((i=n[u(269)])&&i[u(295)](n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i[u(283)]]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(338)]++,{value:o[1],done:!1};case 5:a[u(338)]++,n=o[1],o=[0];continue;case 7:o=a[u(329)].pop(),a[u(316)].pop();continue;default:if(!(i=a[u(316)],(i=i[u(259)]>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a[u(338)]=o[1];break}if(6===o[0]&&a[u(338)]<i[1]){a.label=i[1],i=o;break}if(i&&a[u(338)]<i[2]){a.label=i[2],a[u(329)][u(286)](o);break}i[2]&&a.ops[u(272)](),a[u(316)][u(272)]();continue}o=e[u(295)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function Yn(t,e){var r=ai();return(Yn=function(t,e){return r[t-=255]})(t,e)}var Xn=Ir[Wn(344)],$n=Ir.useDefaultAdapter,Qn=Ir.RUNTIME,Zn=dr[Wn(333)],ti=dr.COMMUNITY_SITE_URL,ei=Er[Wn(296)],ri=lr[Wn(268)],ni={timeout:15e3,persistence:Wn(285)},ii=6e5,oi={},si=new(function(){var t=Wn;function e(t){var e=Yn;this._config=t||this._config,this[e(328)]=null}return Object.defineProperty(e.prototype,t(298),{get:function(){return this[t(270)]},enumerable:!1,configurable:!0}),Object[t(319)](e.prototype,"platform",{get:function(){return Kr},enumerable:!1,configurable:!0}),Object[t(319)](e[t(311)],t(318),{get:function(){return sn(this[t(270)].env)},enumerable:!1,configurable:!0}),Object[t(319)](e.prototype,"localCache",{get:function(){var e=t;return an(this._config[e(256)])},enumerable:!1,configurable:!0}),Object[t(319)](e[t(311)],t(262),{get:function(){var e,r=t;return e=this[r(270)][r(256)],Fn[e]},enumerable:!1,configurable:!0}),e[t(311)][t(331)]=function(r){var n=t;if(!r[n(256)])throw new Error(JSON[n(279)]({code:Zn[n(274)],msg:n(304)}));if(!Kr.adapter&&this._useDefaultAdapter(),this[n(320)]=new(Kr[n(275)].reqClass)({timeout:r[n(336)]||5e3,timeoutMsg:"["+ln+"][REQUEST TIMEOUT] request had been abort since didn't finished within"+r[n(336)]/1e3+"s"}),Kr.runtime!==Qn[n(310)]){if(!r[n(277)])throw new Error(JSON[n(279)]({code:Zn[n(274)],msg:n(317)}));var i=Kr[n(275)][n(287)]?Kr[n(275)][n(287)]():"";if(r.appSign&&i&&r[n(308)]!==i)throw new Error(JSON.stringify({code:Zn[n(274)],msg:n(261)}));if(i&&(r[n(308)]=i),!r.appSign)throw new Error(JSON.stringify({code:Zn[n(274)],msg:n(261)}))}this[n(270)]=Gn(Gn({},ni),r),this[n(270)][n(336)]=this[n(325)](this._config.timeout);var o,s,a,u,c=this[n(270)],f=c[n(256)],h=c[n(307)],p=c[n(303)],l=c[n(336)],v=c[n(277)],d=c[n(308)];on({env:f,persistence:h,debug:p,platformInfo:this[n(276)]}),o={env:f,region:r[n(315)]||"",timeout:l,appSecret:v,appSign:d},Fn[o.env]=new qn(Tn(Tn({},o),{throw:!0})),r[n(315)]&&(s=f,wn((a=r.region||"")?"//"+s+"."+a+".tcb-api.tencentcloudapi.com/web":"//"+s+".ap-shanghai.tcb-api.tencentcloudapi.com/web",u));var y=new e(this[n(270)]);return y.requestClient=this[n(320)],y},e[t(311)][t(312)]=function(e){var r=t,n=e[r(307)],i=e[r(303)];this[r(270)].persistence=n,this[r(270)][r(303)]=i,on({env:this._config[r(256)],persistence:n,debug:i,platformInfo:this[r(276)]})},e[t(311)][t(290)]=function(e){oi[e[t(327)]]=e},e[t(311)][t(258)]=function(t,e){return zn(this,void 0,void 0,(function(){var r;return Jn(this,(function(n){var i=Yn;switch(n[i(338)]){case 0:if(!(r=oi[t]))throw new Error(JSON[i(279)]({code:Zn[i(274)],msg:i(271)+t+i(255)}));return[4,r[i(340)](e,this)];case 1:return[2,n[i(326)]()]}}))}))},e[t(311)].useAdapters=function(e){var r=t,n=Xn(e)||{},i=n.adapter,o=n[r(313)];i&&(Kr[r(275)]=i),o&&(Kr[r(313)]=o)},e.prototype[t(266)]=function(t){!function(t,e){var r=Ur,n=e[r(141)],i=e[r(119)];if(!t[r(140)].hasOwnProperty(i))throw new Error(JSON[r(138)]({code:Br[r(128)],msg:"target:"+i+" is not exist"}));var o=t[r(140)][i];if(typeof o!==r(142))throw new Error(JSON.stringify({code:Br[r(128)],msg:r(131)+i+r(134)}));t.prototype[i]=function(){for(var t=r,e=[],i=0;i<arguments[t(139)];i++)e[i]=arguments[i];return n.call[t(144)](n,Mr([this],e)),o.call.apply(o,Mr([this],e))}}(e,t)},e[t(311)][t(264)]=function(t){Fr(e,t)},e.prototype[t(273)]=function(t){pn=t},e[t(311)][t(302)]=function(t){var e;ln=e=t,fn(e)},e[t(311)][t(342)]=function(t,e){wn(t,e)},e[t(311)][t(341)]=function(){var e=t,r=$n(),n=r[e(275)],i=r[e(313)];Kr.adapter=n,Kr[e(313)]=i},e[t(311)][t(325)]=function(e){var r=t;switch(!0){case e>ii:return ei(Zn.INVALID_PARAMS,r(294)),ii;case e<100:return ei(Zn[r(274)],"timeout is less than maximum value[100ms]"),100;default:return e}},Kn([ri({mode:t(322),title:"Cloudbase 初始化失败",messages:[t(306),t(280),t(330),"如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+ti]}),Vn(t(289),Function),Vn("design:paramtypes",[Object]),Vn(t(293),e)],e[t(311)],t(331),null),Kn([ri({title:t(260),messages:[t(306)," 1 - 调用 invokeExtension() 的语法或参数是否正确",t(288),t(323)+ti]}),Vn(t(289),Function),Vn("design:paramtypes",[String,Object]),Vn("design:returntype",Promise)],e[t(311)],t(258),null),e}());function ai(){var t=["__assign","registerSdkName","debug","env must not be specified","metadata","请确认以下各项:","persistence","appSign","apply","WEB","prototype","updateConfig","runtime","814188kmIcrR","region","trys","invalid appSecret","cache","defineProperty","requestClient","__generator","sync","如果问题依然存在,建议到官方问答社区提问或寻找帮助:","4cKjArQ","_formatTimeout","sent","name","authInstance","ops"," 2 - 如果是非浏览器环境,是否配置了安全应用来源(https://docs.cloudbase.net/api-reference/webv2/adapter.html#jie-ru-liu-cheng)","init","getOwnPropertyDescriptor","ERRORS","decorate","9030681sTOWCN","timeout","then","label","7XBqKpz","invoke","_useDefaultAdapter","registerEndPoint","object","useAdapters","30300fyyfVX"," must be registered before invoke","env","done","invokeExtension","length","调用扩展能力失败","invalid appSign","request","throw","registerComponent","366458qEEhyE","registerHook","assign","catchErrorsDecorator","return","_config","extension:","pop","registerVersion","INVALID_PARAMS","adapter","platform","appSecret","next","stringify"," 1 - 调用 cloudbase.init() 的语法或参数是否正确","iterator","function","value","__metadata","local","push","getAppSign"," 2 - 被调用的扩展能力是否已经安装并通过 registerExtension() 注册","design:type","registerExtension","__awaiter","2458264WRLwCJ","design:returntype","timeout is greater than maximum value[10min]","call","printWarn","834595fmlrXy","config","1052670ttDBxu","__decorate"];return(ai=function(){return t})()}si[Wn(344)](Lr);var ui=ci;function ci(t,e){var r=yi();return(ci=function(t,e){return r[t-=289]})(t,e)}!function(t,e){for(var r=ci,n=yi();;)try{if(393281===parseInt(r(322))/1*(parseInt(r(292))/2)+parseInt(r(328))/3*(-parseInt(r(303))/4)+parseInt(r(333))/5+-parseInt(r(289))/6+-parseInt(r(313))/7+parseInt(r(331))/8+parseInt(r(336))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var fi,hi,pi,li=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=ci;function a(t){try{c(n.next(t))}catch(t){o(t)}}function u(t){var e=ci;try{c(n[e(326)](t))}catch(t){o(t)}}function c(t){var e,n=ci;t.done?i(t.value):(e=t[n(302)],e instanceof r?e:new r((function(t){t(e)})))[n(321)](a,u)}c((n=n[s(330)](t,e||[]))[s(310)]())}))},vi=function(t,e){var r,n,i,o,s=ui,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(298)&&(o[Symbol[s(294)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(327));for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(332)]:o[0]?n[u(326)]||((i=n[u(332)])&&i[u(312)](n),0):n[u(310)])&&!(i=i[u(312)](n,o[1]))[u(311)])return i;switch(n=0,i&&(o=[2&o[0],i[u(302)]]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(309)]++,{value:o[1],done:!1};case 5:a[u(309)]++,n=o[1],o=[0];continue;case 7:o=a.ops[u(304)](),a[u(300)][u(304)]();continue;default:if(!(i=a[u(300)],(i=i[u(301)]>0&&i[i[u(301)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a[u(309)]=o[1];break}if(6===o[0]&&a.label<i[1]){a[u(309)]=i[1],i=o;break}if(i&&a[u(309)]<i[2]){a[u(309)]=i[2],a[u(305)][u(319)](o);break}i[2]&&a[u(305)].pop(),a[u(300)][u(304)]();continue}o=e[u(312)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},di=function(){var t=ui;function e(t){var e=ci;this[e(323)]=t,this[e(293)]=t[e(306)],this._request=t[e(335)]}return e[t(307)][t(316)]=function(){return li(this,void 0,void 0,(function(){var t,e,r,n,i,o;return vi(this,(function(s){var a=ci;switch(s[a(309)]){case 0:return t=this._cache[a(295)],e=t[a(315)],r=t[a(299)],[4,this[a(293)].getStoreAsync(e)];case 1:return n=s[a(314)](),[4,this[a(293)][a(334)](r)];case 2:return i=s[a(314)](),n?i&&i>Date.now()?[4,(o=new Ts({envId:this[a(323)][a(320)],cache:this._cache,request:this[a(337)]})).checkLocalStateAsync()]:[3,4]:[3,7];case 3:return s[a(314)](),[2,o];case 4:return[4,this[a(293)][a(296)](e)];case 5:return s[a(314)](),[4,this._cache[a(296)](r)];case 6:s[a(314)](),s[a(309)]=7;case 7:return[2]}}))}))},e[t(307)][t(324)]=function(t){return li(this,void 0,void 0,(function(){var e,r,n,i;return vi(this,(function(o){var s=ci;switch(o.label){case 0:return e=this[s(293)][s(295)],r=e.accessTokenKey,n=e[s(299)],i=e[s(318)],[4,this[s(293)][s(296)](r)];case 1:return o.sent(),[4,this[s(293)].removeStoreAsync(n)];case 2:return o[s(314)](),[4,this[s(293)][s(329)](i,t)];case 3:return o.sent(),[2]}}))}))},e[t(307)][t(291)]=function(t,e){return li(this,void 0,void 0,(function(){var r,n,i;return vi(this,(function(o){var s=ci;switch(o.label){case 0:return r=this[s(293)].keys,n=r.accessTokenKey,i=r[s(299)],[4,this[s(293)][s(329)](n,t)];case 1:return o[s(314)](),[4,this[s(293)][s(329)](i,e)];case 2:return o[s(314)](),[2]}}))}))},e[t(307)][t(325)]=function(){return li(this,void 0,void 0,(function(){var t,e;return vi(this,(function(r){var n=ci;switch(r[n(309)]){case 0:return t=n(308),[4,this._request.send(t,{})];case 1:return e=r[n(314)]()[n(317)],[4,this.setLocalUserInfo(e)];case 2:return r[n(314)](),[2,e]}}))}))},e[t(307)][t(290)]=function(t){return li(this,void 0,void 0,(function(){var e;return vi(this,(function(r){var n=ci;switch(r[n(309)]){case 0:return e=this[n(293)].keys.userInfoKey,[4,this[n(293)][n(329)](e,t)];case 1:return r[n(314)](),[2]}}))}))},e}();function yi(){var t=["push","env","then","2333wXpkIK","_config","setRefreshToken","refreshUserInfo","throw","Generator is already executing.","15003EKJvpJ","setStoreAsync","apply","4403736mHlZKW","return","1982940GUZogY","getStoreAsync","request","3020103JsAyvz","_request","2631210MlXvdL","setLocalUserInfo","setAccessToken","386ySHdKy","_cache","iterator","keys","removeStoreAsync","__awaiter","function","accessTokenExpireKey","trys","length","value","172vPMtdo","pop","ops","cache","prototype","auth.getUserInfo","label","next","done","call","4802224DSjRaV","sent","accessTokenKey","checkLocalLoginState","data","refreshTokenKey"];return(yi=function(){return t})()}function Ii(t,e){var r=mi();return(Ii=function(t,e){return r[t-=263]})(t,e)}function mi(){var t=["12FtQezP","USERNAME","151083iKVIYa","2whBpKG","7073473brEGWB","PHONE","692898XxXuQU","CUSTOM","WECHAT_PUBLIC","10ziPaZf","5uDYhCX","WECHAT_OPEN","WECHAT","1368856ttcqlv","664dwXHrD","WECHAT-PUBLIC","NULL","102102pjjueB","WECHAT-OPEN","EMAIL","ANONYMOUS","726258CsCiSm","34881qbGxuE"];return(mi=function(){return t})()}!function(t,e){for(var r=Ii,n=mi();;)try{if(324678===parseInt(r(280))/1+parseInt(r(266))/2*(parseInt(r(284))/3)+parseInt(r(276))/4+-parseInt(r(273))/5*(parseInt(r(269))/6)+parseInt(r(285))/7*(parseInt(r(277))/8)+-parseInt(r(265))/9*(parseInt(r(272))/10)+-parseInt(r(267))/11*(parseInt(r(263))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),(hi=fi||(fi={}))[(pi=Ii)(283)]="ANONYMOUS",hi.WECHAT=pi(275),hi[pi(271)]=pi(278),hi[pi(274)]=pi(281),hi[pi(270)]="CUSTOM",hi[pi(282)]="EMAIL",hi.USERNAME=pi(264),hi[pi(279)]=pi(279),hi[pi(268)]=pi(268);var gi=Mi;function bi(){var t=["auth.signIn","请确认以下各项:","return","_runtime","微信公众号登录失败","getSdkName","setStoreAsync","href","_cache","metadata","_state","getHash","LOGIN_STATE_CHANGED","access_token_expire","] failed login via wechat: ","signInWithRedirect","keys","] action:getJwt not return refreshToken","pop","OPERATION_FAIL","WECHAT","setPrototypeOf","22034RkUrla","__proto__","_appid","state","auth.linkWithWeixinCode","env","561843Yvdthj","_redirect","API signIn has been deprecated, please use signInWithRedirect insteed","object","58614PEZjsN","decorate","__decorate","fire","snsapi_base","code","refresh_token","649232VoLqBX"," 3 - 微信公众号的 AppId 与 AppSecret 配置是否正确","weixin","call","ops","design:paramtypes","access_token","getRedirectResult","WECHAT-PUBLIC","#wechat_redirect","&state="," 1 - 调用 auth().weixinAuthProvider().getRedirectResult() 的语法或参数是否正确","_getRefreshTokenByWXCode","push","design:returntype","getLinkRedirectResult","COMMUNITY_SITE_URL","60RrXLRb","function","length","__generator","checkLocalStateAsync","done","171GQmjIQ","//open.weixin.qq.com/connect/oauth2/authorize","_request","accessTokenExpire","catchErrorsDecorator","跳转微信公众号授权失败","_scope","accessToken","createUser","design:type","sent","2005248BLYCim","create","__awaiter","RUNTIME","value","defineProperty","then","如果问题依然存在,建议到官方问答社区提问或寻找帮助:","label","17vnQpEk","ERRORS","trys","?appid=","hasOwnProperty","_config","persistence","throw","iterator","accessTokenExpireKey","600680zNhOev","send","next","refreshToken","__metadata","snsapi_login","withUnionId","48560JEPRuw"," 1 - 调用 auth().weixinAuthProvider().signInWithRedirect() 的语法或参数是否正确","prototype","&response_type=code&scope=","_signInWithCode"];return(bi=function(){return t})()}!function(t,e){for(var r=Mi,n=bi();;)try{if(186114===parseInt(r(319))/1*(-parseInt(r(259))/2)+parseInt(r(265))/3+-parseInt(r(276))/4+parseInt(r(293))/5*(parseInt(r(269))/6)+parseInt(r(310))/7+-parseInt(r(336))/8*(parseInt(r(299))/9)+parseInt(r(329))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var wi,_i=(wi=function(t,e){var r=Mi;return(wi=Object[r(258)]||{__proto__:[]}instanceof Array&&function(t,e){t[r(260)]=e}||function(t,e){var n=r;for(var i in e)e[n(323)](i)&&(t[i]=e[i])})(t,e)},function(t,e){var r=Mi;function n(){this.constructor=t}wi(t,e),t[r(234)]=null===e?Object[r(311)](e):(n[r(234)]=e[r(234)],new n)}),Ei=function(t,e,r,n){var i,o=gi,s=arguments.length,a=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if(typeof Reflect===o(268)&&typeof Reflect.decorate===o(294))a=Reflect[o(270)](t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object[o(315)](e,r,a),a},Si=function(t,e){var r=gi;if(typeof Reflect===r(268)&&typeof Reflect[r(246)]===r(294))return Reflect[r(246)](t,e)},Oi=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){var e=Mi;try{u(n[e(331)](t))}catch(t){o(t)}}function a(t){var e=Mi;try{u(n[e(326)](t))}catch(t){o(t)}}function u(t){var e,n=Mi;t.done?i(t[n(314)]):(e=t.value,e instanceof r?e:new r((function(t){t(e)})))[n(316)](s,a)}u((n=n.apply(t,e||[])).next())}))},Ai=function(t,e){var r,n,i,o,s=gi,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol[s(327)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(239)]:o[0]?n[u(326)]||((i=n.return)&&i.call(n),0):n[u(331)])&&!(i=i[u(279)](n,o[1]))[u(298)])return i;switch(n=0,i&&(o=[2&o[0],i[u(314)]]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(318)]++,{value:o[1],done:!1};case 5:a[u(318)]++,n=o[1],o=[0];continue;case 7:o=a[u(280)].pop(),a[u(321)][u(255)]();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i[u(295)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a[u(318)]<i[1]){a[u(318)]=i[1],i=o;break}if(i&&a[u(318)]<i[2]){a[u(318)]=i[2],a.ops[u(289)](o);break}i[2]&&a[u(280)][u(255)](),a[u(321)].pop();continue}o=e[u(279)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},Ti=dr[gi(242)],Ni=dr[gi(320)],ki=dr[gi(292)],xi=Ir[gi(313)],Ri=Er.getQuery,Pi=Er[gi(248)],Ci=Er.removeParam,ji=Er.printWarn,Di=lr[gi(303)],Li=function(t){var e=gi;function r(e,r,n,i){var o=Mi,s=t[o(279)](this,e)||this;return s[o(240)]=e.runtime,s[o(261)]=r,s[o(305)]=n,s[o(247)]=i||o(278),s}return _i(r,t),r[e(234)].signIn=function(){return Oi(this,void 0,void 0,(function(){return Ai(this,(function(t){var e=Mi;return[2,ji(Ni[e(256)],e(267))]}))}))},r[e(234)][e(252)]=function(){return Oi(this,void 0,void 0,(function(){return Ai(this,(function(t){return[2,this[Mi(266)]()]}))}))},r[e(234)].getRedirectResult=function(t){return Oi(this,void 0,void 0,(function(){var e;return Ai(this,(function(r){var n=Mi;return(e=Ui())?[2,this[n(236)](e,t)]:[2,null]}))}))},r.prototype[e(291)]=function(t){return void 0===t&&(t={}),Oi(this,void 0,void 0,(function(){var e,r,n,i,o,s;return Ai(this,(function(a){var u,c,f=Mi;return e=t[f(335)],r=void 0!==e&&e,(n=Ui())?(i=this._appid,u=this[f(305)],o=u===(c=f)(334)?"WECHAT-OPEN":c(284),s=this._runtime===xi.WX_MP?"1":"0",[2,this[f(301)][f(330)](f(263),{payload:{appid:i,loginType:o,code:n,hybridMiniapp:s,withUnionId:r}})]):[2,null]}))}))},r.prototype[e(266)]=function(){var t=e,r=Ci("code",location[t(244)]);r=Ci(t(262),r),r=encodeURIComponent(r);var n=t(300);this[t(305)]===t(334)&&(n="//open.weixin.qq.com/connect/qrconnect");try{location[t(244)]=n+t(322)+this[t(261)]+"&redirect_uri="+r+t(235)+this[t(305)]+t(286)+this[t(247)]+t(285)}catch(t){throw new Error("["+Ti()+"]["+Ni.UNKOWN_ERROR+"]"+t)}},r[e(234)][e(236)]=function(t,e){return Oi(this,void 0,void 0,(function(){var r,n,i,o,s,a,u,c;return Ai(this,(function(f){var h,p,l=Mi;switch(f[l(318)]){case 0:return r=this[l(245)][l(253)],n=r.accessTokenKey,i=r[l(328)],o=r.refreshTokenKey,h=this._scope,s=h===(p=l)(334)?"WECHAT-OPEN":p(284),[4,this[l(288)](this[l(261)],s,t,e)];case 1:return a=f[l(309)](),u=a[l(332)],[4,this[l(245)][l(243)](o,u)];case 2:return f[l(309)](),a[l(306)]?[4,this[l(245)][l(243)](n,a[l(306)])]:[3,4];case 3:f.sent(),f[l(318)]=4;case 4:return a[l(302)]?[4,this[l(245)][l(243)](i,String(a[l(302)]+Date.now()))]:[3,6];case 5:f.sent(),f[l(318)]=6;case 6:return Os.fire(ks[l(249)]),Os[l(272)](ks.LOGIN_TYPE_CHANGED,{env:this[l(324)][l(264)],loginType:fi[l(257)],persistence:this[l(324)][l(325)]}),[4,this.refreshUserInfo()];case 7:return f[l(309)](),[4,(c=new Ts({envId:this[l(324)][l(264)],cache:this[l(245)],request:this._request}))[l(297)]()];case 8:return f.sent(),[2,c]}}))}))},r[e(234)][e(288)]=function(t,e,r,n){return void 0===n&&(n={}),Oi(this,void 0,void 0,(function(){var i,o,s,a,u,c,f;return Ai(this,(function(h){var p=Mi;return i=n.withUnionId,o=void 0!==i&&i,s=n[p(307)],a=void 0===s||s,u=this[p(305)]!==p(273)&&(n.syncUserInfo||!1),c=p(237),f=this._runtime===xi.WX_MP?"1":"0",[2,this[p(301)][p(330)](c,{appid:t,loginType:e,hybridMiniapp:f,syncUserInfo:u,loginCredential:r,withUnionId:o,createUser:a})[p(316)]((function(t){var e=p;if(t[e(274)])throw new Error("["+Ti()+"]["+Ni[e(256)]+e(251)+t[e(274)]);if(t[e(275)])return{refreshToken:t[e(275)],accessToken:t[e(282)],accessTokenExpire:t[e(250)]};throw new Error("["+Ti()+"]["+Ni[e(256)]+e(254))}))]}))}))},Ei([Di({title:e(304),messages:["请确认以下各项:",e(337),e(317)+ki]}),Si(e(308),Function),Si("design:paramtypes",[]),Si(e(290),Promise)],r[e(234)],"signInWithRedirect",null),Ei([Di({title:e(241),messages:[e(238),e(287)," 2 - 当前环境是否开通了微信公众号登录授权",e(277),e(317)+ki]}),Si("design:type",Function),Si(e(281),[Object]),Si(e(290),Promise)],r[e(234)],e(283),null),Ei([Di({title:"获取微信重定向绑定结果",messages:[e(238)," 1 - 调用 auth().weixinAuthProvider().getLinkRedirectResult() 的语法或参数是否正确"," 2 - 当前环境是否开通了微信公众号登录授权"," 3 - 微信公众号的 AppId 与 AppSecret 配置是否正确",e(317)+ki]}),Si(e(308),Function),Si(e(281),[Object]),Si(e(290),Promise)],r.prototype,e(291),null),r}(di);function Ui(){var t=gi;return Ri(t(274))||Pi(t(274))}function Mi(t,e){var r=bi();return(Mi=function(t,e){return r[t-=234]})(t,e)}var Bi=Vi;!function(t,e){for(var r=Vi,n=to();;)try{if(723151===-parseInt(r(268))/1*(-parseInt(r(247))/2)+parseInt(r(260))/3*(parseInt(r(290))/4)+parseInt(r(276))/5*(parseInt(r(249))/6)+-parseInt(r(294))/7+parseInt(r(225))/8+parseInt(r(254))/9+-parseInt(r(233))/10*(parseInt(r(250))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var qi,Fi=(qi=function(t,e){var r=Vi;return(qi=Object[r(259)]||{__proto__:[]}instanceof Array&&function(t,e){t[r(238)]=e}||function(t,e){var n=r;for(var i in e)e[n(253)](i)&&(t[i]=e[i])})(t,e)},function(t,e){var r=Vi;function n(){this.constructor=t}qi(t,e),t[r(252)]=null===e?Object.create(e):(n[r(252)]=e[r(252)],new n)}),Hi=function(t,e,r,n){var i,o=Bi,s=arguments.length,a=s<3?e:null===n?n=Object[o(289)](e,r):n;if("object"==typeof Reflect&&typeof Reflect[o(241)]===o(236))a=Reflect[o(241)](t,e,r,n);else for(var u=t[o(277)]-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object[o(231)](e,r,a),a},Wi=function(t,e){var r=Bi;if(typeof Reflect===r(271)&&"function"==typeof Reflect[r(301)])return Reflect[r(301)](t,e)},Gi=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=Vi;function a(t){var e=Vi;try{c(n[e(275)](t))}catch(t){o(t)}}function u(t){var e=Vi;try{c(n[e(298)](t))}catch(t){o(t)}}function c(t){var e,n=Vi;t[n(304)]?i(t[n(272)]):(e=t[n(272)],e instanceof r?e:new r((function(t){t(e)})))[n(299)](a,u)}c((n=n[s(251)](t,e||[]))[s(275)]())}))},Ki=function(t,e){var r,n,i,o,s=Bi,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(236)&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(235));for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n[u(298)]||((i=n.return)&&i[u(295)](n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i[u(272)]]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(237)]++,{value:o[1],done:!1};case 5:a[u(237)]++,n=o[1],o=[0];continue;case 7:o=a[u(283)][u(288)](),a[u(239)][u(288)]();continue;default:if(!(i=a.trys,(i=i[u(277)]>0&&i[i[u(277)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a[u(237)]<i[1]){a[u(237)]=i[1],i=o;break}if(i&&a.label<i[2]){a[u(237)]=i[2],a[u(283)].push(o);break}i[2]&&a[u(283)][u(288)](),a[u(239)][u(288)]();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function Vi(t,e){var r=to();return(Vi=function(t,e){return r[t-=225]})(t,e)}var zi=dr.ERRORS,Ji=dr.COMMUNITY_SITE_URL,Yi=Er[Bi(234)],Xi=Er[Bi(282)],$i=wr[Bi(279)],Qi=lr.catchErrorsDecorator,Zi=function(t){var e=Bi;function r(e){var r=Vi,n=t[r(295)](this,e)||this;return n[r(302)]=n[r(302)].bind(n),$i(ks.ANONYMOUS_CONVERTED,n[r(302)]),n}return Fi(r,t),r[e(252)].signIn=function(){return Gi(this,void 0,void 0,(function(){var t,e,r,n,i,o,s;return Ki(this,(function(a){var u=Vi;switch(a[u(237)]){case 0:return[4,this._cache[u(258)](u(245))];case 1:return a[u(265)](),t=this[u(281)].keys,e=t[u(248)],r=t[u(232)],[4,this[u(281)][u(280)](e)];case 2:return n=a[u(265)](),[4,this[u(281)][u(280)](r)];case 3:return i=a.sent(),[4,this[u(303)][u(262)](u(256),{anonymous_uuid:n,refresh_token:i})];case 4:return(o=a[u(265)]()).uuid&&o[u(278)]?[4,this._setAnonymousUUID(o[u(284)])]:[3,10];case 5:return a[u(265)](),[4,this.setRefreshToken(o[u(278)])];case 6:return a.sent(),[4,this._request[u(246)]()];case 7:return a.sent(),Os[u(263)](ks.LOGIN_TYPE_CHANGED,{env:this[u(244)].env,loginType:fi.ANONYMOUS,persistence:"local"}),Os[u(263)](ks[u(296)]),[4,(s=new Ts({envId:this[u(244)][u(285)],cache:this[u(281)],request:this[u(303)]}))[u(300)]()];case 8:return a[u(265)](),[4,s[u(266)][u(228)]()];case 9:return a.sent(),[2,s];case 10:throw new Error(JSON[u(226)]({code:zi.OPERATION_FAIL,msg:JSON[u(226)](o)||u(274)}))}}))}))},r.prototype[e(291)]=function(t){return Gi(this,void 0,void 0,(function(){var e,r,n,i,o,s,a;return Ki(this,(function(u){var c=Vi;switch(u[c(237)]){case 0:return!Xi(t)&&Yi(zi.INVALID_PARAMS,c(240)),e=this[c(281)][c(292)],r=e[c(248)],n=e[c(232)],[4,this[c(281)][c(280)](r)];case 1:return i=u[c(265)](),[4,this[c(281)][c(280)](n)];case 2:return o=u[c(265)](),[4,this[c(303)][c(262)]("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:o,ticket:t})];case 3:return(s=u[c(265)]())[c(278)]?[4,this[c(286)]()]:[3,8];case 4:return u[c(265)](),[4,this[c(273)](s[c(278)])];case 5:return u[c(265)](),[4,this[c(303)][c(246)]()];case 6:return u[c(265)](),Os[c(263)](ks[c(229)],{env:this[c(244)][c(285)]}),Os[c(263)](ks.LOGIN_TYPE_CHANGED,{loginType:fi.CUSTOM,persistence:"local"}),[4,(a=new Ts({envId:this[c(244)][c(285)],cache:this[c(281)],request:this._request}))[c(300)]()];case 7:return u[c(265)](),[2,a];case 8:Yi(zi.OPERATION_FAIL,JSON[c(226)](s)||"linkAndRetrieveDataWithTicket failed"),u[c(237)]=9;case 9:return[2]}}))}))},r[e(252)][e(269)]=function(t){return Gi(this,void 0,void 0,(function(){var e,r,n;return Ki(this,(function(i){var o=Vi;switch(i[o(237)]){case 0:return e=this._cache[o(292)],r=e.anonymousUuidKey,n=e[o(257)],[4,this[o(281)][o(227)](r)];case 1:return i[o(265)](),[4,this[o(281)][o(287)](r,t)];case 2:return i.sent(),[4,this[o(281)][o(287)](n,fi[o(230)])];case 3:return i.sent(),[2]}}))}))},r.prototype._clearAnonymousUUID=function(){return Gi(this,void 0,void 0,(function(){return Ki(this,(function(t){var e=Vi;switch(t[e(237)]){case 0:return[4,this._cache.removeStoreAsync(this[e(281)][e(292)][e(248)])];case 1:return t[e(265)](),[2]}}))}))},r[e(252)][e(302)]=function(t){return Gi(this,void 0,void 0,(function(){return Ki(this,(function(e){var r=Vi;switch(e[r(237)]){case 0:return t.data[r(285)]!==this[r(244)].env?[2]:[4,this[r(281)][r(258)](this._config.persistence)];case 1:return e.sent(),[2]}}))}))},Hi([Qi({title:e(267),messages:["请确认以下各项:",e(270),e(293),e(261)+Ji]}),Wi("design:type",Function),Wi(e(255),[]),Wi("design:returntype",Promise)],r[e(252)],e(297),null),r}(di);function to(){var t=["_config","local","refreshAccessToken","116ENNYDU","anonymousUuidKey","2189706whVjiv","11NqxOqs","apply","prototype","hasOwnProperty","9321192RiWWMT","design:paramtypes","auth.signInAnonymously","loginTypeKey","updatePersistenceAsync","setPrototypeOf","1032jvktJY","如果问题依然存在,建议到官方问答社区提问或寻找帮助:","send","fire","__decorate","sent","user","匿名登录失败","11138GkHKzN","_setAnonymousUUID"," 1 - 当前环境是否开启了匿名登录","object","value","setRefreshToken","anonymous signIn failed","next","5QrxbwE","length","refresh_token","addEventListener","getStoreAsync","_cache","isString","ops","uuid","env","_clearAnonymousUUID","setStoreAsync","pop","getOwnPropertyDescriptor","2212uxdSRE","linkAndRetrieveDataWithTicket","keys"," 2 - 调用 auth().anonymouseProvider().signIn() 的语法或参数是否正确","10069073yOnepg","call","LOGIN_STATE_CHANGED","signIn","throw","then","checkLocalStateAsync","metadata","_onConverted","_request","done","10295264PXTLdN","stringify","removeStoreAsync","refresh","ANONYMOUS_CONVERTED","ANONYMOUS","defineProperty","refreshTokenKey","13621930AUKXWb","throwError","Generator is already executing.","function","label","__proto__","trys","ticket must be a string","decorate","__awaiter","__extends"];return(to=function(){return t})()}function eo(){var t=["return","send","22gScaqZ","getOwnPropertyDescriptor","next","design:type","checkLocalStateAsync","__metadata","267QHBnTE","design:returntype","LOGIN_TYPE_CHANGED","__extends","custom signIn failed","ops","refreshUserInfo","__decorate","2862HPktQS","create","signIn","5oiLKpj","label","call","refreshTokenKey","918799cUUpjy","auth.signInWithTicket","setRefreshToken","1230FgmxvI","iterator","_config","design:paramtypes","hasOwnProperty","25004MNpwOr","84AFnkrH","_request","2677668uTcrvM","value","setPrototypeOf","then","length","stringify","trys","prototype","fire"," 2 - 调用 auth().customAuthProvider().signIn() 的语法或参数是否正确","done","keys","env","refresh_token"," 3 - ticket 是否归属于当前环境","isString","__proto__"," 1 - 当前环境是否开启了自定义登录","persistence","1078076BZaFvg","object","concat"," 4 - 创建 ticket 的自定义登录私钥是否过期","LOGIN_STATE_CHANGED","push","pop","sent","function","throw","10761840mtvHZi","Generator is already executing.","ticket must be a string","apply","ERRORS","703440sLTvai","COMMUNITY_SITE_URL","_cache","metadata","decorate"];return(eo=function(){return t})()}var ro=co;!function(t,e){for(var r=co,n=eo();;)try{if(682246===parseInt(r(269))/1+parseInt(r(277))/2*(-parseInt(r(254))/3)+parseInt(r(226))/4*(-parseInt(r(265))/5)+parseInt(r(280))/6+-parseInt(r(278))/7*(parseInt(r(241))/8)+-parseInt(r(262))/9*(parseInt(r(272))/10)+parseInt(r(248))/11*(parseInt(r(236))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var no,io=(no=function(t,e){var r=co;return(no=Object[r(282)]||{__proto__:[]}instanceof Array&&function(t,e){t[r(223)]=e}||function(t,e){var n=r;for(var i in e)e[n(276)](i)&&(t[i]=e[i])})(t,e)},function(t,e){var r=co;function n(){this.constructor=t}no(t,e),t[r(287)]=null===e?Object[r(263)](e):(n[r(287)]=e[r(287)],new n)}),oo=function(t,e,r,n){var i,o=ro,s=arguments[o(284)],a=s<3?e:null===n?n=Object[o(249)](e,r):n;if(typeof Reflect===o(227)&&typeof Reflect[o(245)]===o(234))a=Reflect.decorate(t,e,r,n);else for(var u=t[o(284)]-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object.defineProperty(e,r,a),a},so=function(t,e){var r=ro;if(typeof Reflect===r(227)&&"function"==typeof Reflect[r(244)])return Reflect[r(244)](t,e)},ao=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=co;function a(t){var e=co;try{c(n[e(250)](t))}catch(t){o(t)}}function u(t){var e=co;try{c(n[e(235)](t))}catch(t){o(t)}}function c(t){var e,n=co;t[n(217)]?i(t[n(281)]):(e=t.value,e instanceof r?e:new r((function(t){t(e)})))[n(283)](a,u)}c((n=n[s(239)](t,e||[]))[s(250)]())}))},uo=function(t,e){var r,n,i,o,s=ro,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol[s(273)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(237));for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(246)]:o[0]?n[u(235)]||((i=n[u(246)])&&i.call(n),0):n.next)&&!(i=i[u(267)](n,o[1]))[u(217)])return i;switch(n=0,i&&(o=[2&o[0],i[u(281)]]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(266)]++,{value:o[1],done:!1};case 5:a[u(266)]++,n=o[1],o=[0];continue;case 7:o=a[u(259)][u(232)](),a[u(286)][u(232)]();continue;default:if(!(i=a.trys,(i=i[u(284)]>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a[u(266)]=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a[u(266)]<i[2]){a.label=i[2],a[u(259)][u(231)](o);break}i[2]&&a[u(259)][u(232)](),a[u(286)][u(232)]();continue}o=e[u(267)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function co(t,e){var r=eo();return(co=function(t,e){return r[t-=215]})(t,e)}var fo=dr[ro(240)],ho=dr[ro(242)],po=Er[ro(222)],lo=lr.catchErrorsDecorator,vo=function(t){var e=ro;function r(){return null!==t&&t[co(239)](this,arguments)||this}return io(r,t),r.prototype.signIn=function(t){return ao(this,void 0,void 0,(function(){var e,r,n,i,o,s,a;return uo(this,(function(u){var c=co;switch(u[c(266)]){case 0:if(!po(t))throw new Error(JSON[c(285)]({code:fo.INVALID_PARAMS,msg:c(238)}));return e=this[c(243)][c(218)][c(268)],i=(n=this._request)[c(247)],o=[c(270)],s={ticket:t},[4,this[c(243)].getStoreAsync(e)];case 1:return[4,i[c(239)](n,o[c(228)]([(s[c(220)]=u[c(233)]()||"",s)]))];case 2:return(r=u.sent())[c(220)]?[4,this[c(271)](r[c(220)])]:[3,7];case 3:return u[c(233)](),[4,this[c(279)].refreshAccessToken()];case 4:return u.sent(),Os[c(215)](ks[c(256)],{env:this._config[c(219)],loginType:fi.CUSTOM,persistence:this[c(274)][c(225)]}),Os[c(215)](ks[c(230)]),[4,this[c(260)]()];case 5:return u[c(233)](),[4,(a=new Ts({envId:this[c(274)][c(219)],cache:this[c(243)],request:this[c(279)]}))[c(252)]()];case 6:return u.sent(),[2,a];case 7:throw new Error(JSON.stringify({code:fo.OPERATION_FAIL,msg:c(258)}))}}))}))},oo([lo({title:"自定义登录失败",messages:["请确认以下各项:",e(224),e(216),e(221),e(229),"如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+ho]}),so(e(251),Function),so(e(275),[String]),so(e(255),Promise)],r[e(287)],e(264),null),r}(di),yo=xo;function Io(){var t=["catchErrorsDecorator","refreshAccessToken","refresh_token","code","keys","__decorate","Generator is already executing.","邮箱激活失败","env","persistence","defineProperty","function","auth.resetPasswordWithToken","11KIIEVf","如果问题依然存在,建议到官方问答社区提问或寻找帮助:","return","_config","constructor","setRefreshToken","design:type","setAccessToken","done"," 3 - 此邮箱地址是否已经与当前用户绑定","EMAIL","420640vsZwui","6891pZoAnl","throw","66pNnmMu"," 1 - 调用语法或参数是否正确","auth.sendPasswordResetEmail","getOwnPropertyDescriptor","26288270xVAgOn","resetPassword","activate","OPERATION_FAIL","signIn","access_token_expire","9qVNBde","674jvlbIH","decorate"," 2 - 当前环境是否开通了邮箱登录","3404875HkCIuM","label","call","448182rwFUxp","design:paramtypes","message","请确认以下各项:","email must be a string"," 1 - 调用 auth().signUpWithEmailAndPassword() 的语法或参数是否正确","ERRORS"," 1 - 调用 auth().emailAuthProvider() 的语法或参数是否正确"," 3 - 邮箱地址与密码是否匹配","apply","iterator","_request","auth.signUpWithEmailAndPassword","getStore","refreshTokenKey","send","480341fwosXV","4939328KhFurq","fire"," 1 - 调用 auth().sendPasswordResetEmail() 的语法或参数是否正确","auth.activateEndUserMail","design:returntype","sent","__proto__","metadata","ops","__extends","trys","signUp","COMMUNITY_SITE_URL","length","prototype","then","value","hasOwnProperty","LOGIN_TYPE_CHANGED","next","Email login fail","_cache","access_token","object","__metadata","__generator","pop"];return(Io=function(){return t})()}!function(t,e){for(var r=xo,n=Io();;)try{if(711712===-parseInt(r(340))/1+parseInt(r(318))/2*(-parseInt(r(305))/3)+parseInt(r(304))/4+-parseInt(r(321))/5+-parseInt(r(307))/6*(parseInt(r(324))/7)+parseInt(r(341))/8*(parseInt(r(317))/9)+-parseInt(r(311))/10*(-parseInt(r(381))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var mo,go=(mo=function(t,e){return(mo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t[xo(347)]=e}||function(t,e){var r=xo;for(var n in e)e[r(358)](n)&&(t[n]=e[n])})(t,e)},function(t,e){var r=xo;function n(){this[xo(297)]=t}mo(t,e),t.prototype=null===e?Object.create(e):(n[r(355)]=e[r(355)],new n)}),bo=function(t,e,r,n){var i,o=yo,s=arguments[o(354)],a=s<3?e:null===n?n=Object[o(310)](e,r):n;if("object"==typeof Reflect&&typeof Reflect[o(319)]===o(379))a=Reflect[o(319)](t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object[o(378)](e,r,a),a},wo=function(t,e){var r=yo;if(typeof Reflect===r(364)&&"function"==typeof Reflect[r(348)])return Reflect[r(348)](t,e)},_o=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=xo;function a(t){var e=xo;try{c(n[e(360)](t))}catch(t){o(t)}}function u(t){var e=xo;try{c(n[e(306)](t))}catch(t){o(t)}}function c(t){var e,n=xo;t[n(301)]?i(t.value):(e=t[n(357)],e instanceof r?e:new r((function(t){t(e)})))[n(356)](a,u)}c((n=n[s(333)](t,e||[]))[s(360)]())}))},Eo=function(t,e){var r,n,i,o,s=yo,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(379)&&(o[Symbol[s(334)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(374));for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(383)]:o[0]?n[u(306)]||((i=n.return)&&i.call(n),0):n[u(360)])&&!(i=i[u(323)](n,o[1]))[u(301)])return i;switch(n=0,i&&(o=[2&o[0],i[u(357)]]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a[u(322)]++,n=o[1],o=[0];continue;case 7:o=a[u(349)][u(367)](),a[u(351)][u(367)]();continue;default:if(!(i=a[u(351)],(i=i[u(354)]>0&&i[i[u(354)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a[u(322)]=i[1],i=o;break}if(i&&a[u(322)]<i[2]){a[u(322)]=i[2],a[u(349)].push(o);break}i[2]&&a[u(349)][u(367)](),a[u(351)][u(367)]();continue}o=e[u(323)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},So=Er.throwError,Oo=Er.isString,Ao=dr[yo(330)],To=dr[yo(353)],No=lr[yo(368)],ko=function(t){var e=yo;function r(){return null!==t&&t[xo(333)](this,arguments)||this}return go(r,t),r[e(355)][e(315)]=function(t,e){return _o(this,void 0,void 0,(function(){var r,n,i,o,s;return Eo(this,(function(a){var u=xo;switch(a[u(322)]){case 0:return!Oo(t)&&So(Ao.INVALID_PARAMS,u(328)),r=this._cache[u(372)][u(338)],[4,this._request.send("auth.signIn",{loginType:u(303),email:t,password:e,refresh_token:this[u(362)][u(337)](r)||""})];case 1:return n=a[u(346)](),i=n[u(370)],o=n[u(363)],s=n[u(316)],i?[4,this[u(298)](i)]:[3,8];case 2:return a[u(346)](),o&&s?[4,this[u(300)](o,s)]:[3,4];case 3:return a[u(346)](),[3,6];case 4:return[4,this[u(335)][u(369)]()];case 5:a.sent(),a[u(322)]=6;case 6:return[4,this.refreshUserInfo()];case 7:return a[u(346)](),Os[u(342)](ks.LOGIN_STATE_CHANGED),Os[u(342)](ks[u(359)],{env:this[u(384)].env,loginType:fi[u(303)],persistence:this[u(384)][u(377)]}),[2,new Ts({envId:this[u(384)][u(376)],cache:this[u(362)],request:this[u(335)]})];case 8:n[u(371)]?So(Ao[u(314)],"Email login fail["+n[u(371)]+"] "+n[u(326)]):So(Ao.OPERATION_FAIL,u(361)),a[u(322)]=9;case 9:return[2]}}))}))},r[e(355)][e(352)]=function(t,e){return _o(this,void 0,void 0,(function(){return Eo(this,(function(r){var n=xo;return[2,this[n(335)][n(339)](n(336),{email:t,password:e})]}))}))},r[e(355)][e(312)]=function(t){return _o(this,void 0,void 0,(function(){return Eo(this,(function(e){var r=xo;return[2,this[r(335)][r(339)](r(309),{email:t})]}))}))},r[e(355)].resetPasswordWithToken=function(t,e){return _o(this,void 0,void 0,(function(){return Eo(this,(function(r){var n=xo;return[2,this[n(335)].send(n(380),{token:t,newPassword:e})]}))}))},r[e(355)][e(313)]=function(t){return _o(this,void 0,void 0,(function(){return Eo(this,(function(e){var r=xo;return[2,this[r(335)].send(r(344),{token:t})]}))}))},bo([No({title:"邮箱密码登录失败",messages:[e(327),e(331),e(320),e(332),e(382)+To]}),wo(e(299),Function),wo(e(325),[String,String]),wo(e(345),Promise)],r[e(355)],"signIn",null),bo([No({title:"邮箱注册失败",messages:[e(327),e(329)," 2 - 当前环境是否开通了邮箱登录"," 3 - 此邮箱地址是否已经被其他用户占用",e(382)+To]}),wo("design:type",Function),wo(e(325),[String,String]),wo(e(345),Promise)],r[e(355)],"signUp",null),bo([No({title:"重置密码失败",messages:[e(327),e(343),e(320),e(302)," 4 - 此邮箱地址是否已经被其他用户占用",e(382)+To]}),wo(e(299),Function),wo("design:paramtypes",[String]),wo(e(345),Promise)],r[e(355)],e(312),null),bo([No({title:"重置密码失败",messages:[e(327),e(308),e(320),e(382)+To]}),wo(e(299),Function),wo(e(325),[String,String]),wo(e(345),Promise)],r[e(355)],"resetPasswordWithToken",null),bo([No({title:e(375),messages:[e(327)," 1 - 调用语法或参数是否正确",e(320),e(382)+To]}),wo(e(299),Function),wo(e(325),[String]),wo(e(345),Promise)],r[e(355)],"activate",null),r}(di);function xo(t,e){var r=Io();return(xo=function(t,e){return r[t-=297]})(t,e)}var Ro=Bo;function Po(){var t=["function","return","OPERATION_FAIL"," 2 - 当前环境是否开通了用户名密码登录","setRefreshToken","decorate","send","7720400dzOltj","apply","_request","3130064QZILnM","value","_config","130aQiMzE","Generator is already executing.","persistence","label","password is empty","98614dKPNom","7nktrIZ","throw","__generator","_cache","username must be a string","iterator","setPrototypeOf","access_token_expire","concat","312wUlqGS","refreshTokenKey","prototype","object","env","用户名密码登录失败","sent","pop","464373ggkelR","__awaiter","printWarn","refreshUserInfo","login by username failed:[","1609399kATKQU","trys","LOGIN_TYPE_CHANGED","3549888nYnAmr","refresh_token"," 3 - 用户名密码是否匹配","setAccessToken","call","signIn","access_token","7DUxfBP","__metadata","then","message","__proto__","length","code","USERNAME","string","create","stringify","如果问题依然存在,建议到官方问答社区提问或寻找帮助:","design:type","next","请确认以下各项:","INVALID_PARAMS","auth.signIn","LOGIN_STATE_CHANGED","ops","getOwnPropertyDescriptor","metadata","80525rUyOHT","24ntOrIW","login by username failed"];return(Po=function(){return t})()}!function(t,e){for(var r=Bo,n=Po();;)try{if(611980===-parseInt(r(204))/1*(-parseInt(r(203))/2)+-parseInt(r(229))/3+-parseInt(r(270))/4+-parseInt(r(257))/5*(-parseInt(r(258))/6)+parseInt(r(236))/7*(-parseInt(r(267))/8)+-parseInt(r(221))/9*(parseInt(r(198))/10)+-parseInt(r(226))/11*(-parseInt(r(213))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Co,jo=(Co=function(t,e){var r=Bo;return(Co=Object[r(210)]||{__proto__:[]}instanceof Array&&function(t,e){t[r(240)]=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){var r=Bo;function n(){this.constructor=t}Co(t,e),t[r(215)]=null===e?Object[r(245)](e):(n[r(215)]=e[r(215)],new n)}),Do=function(t,e,r,n){var i,o=Bo,s=arguments.length,a=s<3?e:null===n?n=Object[o(255)](e,r):n;if("object"==typeof Reflect&&typeof Reflect[o(265)]===o(260))a=Reflect.decorate(t,e,r,n);else for(var u=t[o(241)]-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object.defineProperty(e,r,a),a},Lo=function(t,e){var r=Ro;if(typeof Reflect===r(216)&&typeof Reflect.metadata===r(260))return Reflect[r(256)](t,e)},Uo=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=Bo;function a(t){var e=Bo;try{c(n[e(249)](t))}catch(t){o(t)}}function u(t){var e=Bo;try{c(n[e(205)](t))}catch(t){o(t)}}function c(t){var e,n=Bo;t.done?i(t.value):(e=t[n(196)],e instanceof r?e:new r((function(t){t(e)})))[n(238)](a,u)}c((n=n[s(268)](t,e||[]))[s(249)]())}))},Mo=function(t,e){var r,n,i,o,s=Ro,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(260)&&(o[Symbol[s(209)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(199));for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(261)]:o[0]?n[u(205)]||((i=n.return)&&i.call(n),0):n.next)&&!(i=i[u(233)](n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i[u(196)]]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(201)]++,{value:o[1],done:!1};case 5:a[u(201)]++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys[u(220)]();continue;default:if(!(i=a[u(227)],(i=i[u(241)]>0&&i[i[u(241)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a[u(201)]<i[1]){a.label=i[1],i=o;break}if(i&&a[u(201)]<i[2]){a[u(201)]=i[2],a[u(254)].push(o);break}i[2]&&a[u(254)][u(220)](),a[u(227)].pop();continue}o=e[u(233)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function Bo(t,e){var r=Po();return(Bo=function(t,e){return r[t-=196]})(t,e)}var qo=Er[Ro(223)],Fo=dr.ERRORS,Ho=dr.COMMUNITY_SITE_URL,Wo=lr.catchErrorsDecorator,Go=function(t){var e=Ro;function r(){return null!==t&&t[Bo(268)](this,arguments)||this}return jo(r,t),r[e(215)][e(234)]=function(t,e){return Uo(this,void 0,void 0,(function(){var r,n,i,o,s,a,u,c,f;return Mo(this,(function(h){var p=Bo;switch(h[p(201)]){case 0:if(typeof t!==p(244))throw new Error(JSON[p(246)]({code:Fo[p(251)],msg:p(208)}));return typeof e!==p(244)&&(e="",qo(Fo[p(251)],p(202))),r=this._cache.keys[p(214)],o=(i=this[p(269)])[p(266)],s=[p(252)],a={loginType:fi[p(243)],username:t,password:e},[4,this[p(207)].getStoreAsync(r)];case 1:return[4,o[p(268)](i,s[p(212)]([(a.refresh_token=h.sent()||"",a)]))];case 2:return n=h[p(219)](),u=n[p(230)],c=n[p(211)],f=n[p(235)],u?[4,this[p(264)](u)]:[3,9];case 3:return h[p(219)](),f&&c?[4,this[p(232)](f,c)]:[3,5];case 4:return h[p(219)](),[3,7];case 5:return[4,this._request.refreshAccessToken()];case 6:h[p(219)](),h[p(201)]=7;case 7:return[4,this[p(224)]()];case 8:return h[p(219)](),Os.fire(ks[p(253)]),Os.fire(ks[p(228)],{env:this[p(197)][p(217)],loginType:fi[p(243)],persistence:this._config[p(200)]}),[2,new Ts({envId:this[p(197)][p(217)],cache:this[p(207)],request:this[p(269)]})];case 9:throw n[p(242)]?new Error(JSON[p(246)]({code:Fo[p(262)],msg:p(225)+n[p(242)]+"] "+n[p(239)]})):new Error(JSON[p(246)]({code:Fo.OPERATION_FAIL,msg:p(259)}));case 10:return[2]}}))}))},Do([Wo({title:e(218),messages:[e(250)," 1 - 调用 auth().signInWithUsernameAndPassword() 的语法或参数是否正确",e(263),e(231),e(247)+Ho]}),Lo(e(248),Function),Lo("design:paramtypes",[String,String]),Lo("design:returntype",Promise)],r[e(215)],e(234),null),r}(di),Ko=Qo;!function(t,e){for(var r=Qo,n=Zo();;)try{if(100962===-parseInt(r(513))/1+-parseInt(r(527))/2+-parseInt(r(495))/3*(-parseInt(r(546))/4)+parseInt(r(511))/5*(-parseInt(r(490))/6)+-parseInt(r(481))/7*(parseInt(r(543))/8)+parseInt(r(508))/9+parseInt(r(516))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Vo,zo=(Vo=function(t,e){return(Vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){var r=Qo;for(var n in e)e[r(503)](n)&&(t[n]=e[n])})(t,e)},function(t,e){var r=Qo;function n(){this.constructor=t}Vo(t,e),t[r(566)]=null===e?Object[r(502)](e):(n[r(566)]=e.prototype,new n)}),Jo=function(t,e,r,n){var i,o=Ko,s=arguments[o(563)],a=s<3?e:null===n?n=Object[o(561)](e,r):n;if(typeof Reflect===o(537)&&typeof Reflect[o(484)]===o(545))a=Reflect[o(484)](t,e,r,n);else for(var u=t[o(563)]-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object[o(548)](e,r,a),a},Yo=function(t,e){var r=Ko;if("object"==typeof Reflect&&typeof Reflect[r(533)]===r(545))return Reflect.metadata(t,e)},Xo=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){var e=Qo;try{u(n[e(547)](t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e,n=Qo;t.done?i(t[n(520)]):(e=t[n(520)],e instanceof r?e:new r((function(t){t(e)})))[n(489)](s,a)}u((n=n[Qo(507)](t,e||[])).next())}))},$o=function(t,e){var r,n,i,o,s=Ko,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(545)&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(549));for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n[u(491)]||((i=n[u(509)])&&i[u(500)](n),0):n[u(547)])&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i[u(520)]]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(556)]++,{value:o[1],done:!1};case 5:a[u(556)]++,n=o[1],o=[0];continue;case 7:o=a[u(558)].pop(),a[u(493)].pop();continue;default:if(!(i=a[u(493)],(i=i[u(563)]>0&&i[i[u(563)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a[u(556)]<i[1]){a.label=i[1],i=o;break}if(i&&a[u(556)]<i[2]){a[u(556)]=i[2],a.ops[u(552)](o);break}i[2]&&a[u(558)].pop(),a[u(493)][u(485)]();continue}o=e[u(500)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function Qo(t,e){var r=Zo();return(Qo=function(t,e){return r[t-=481]})(t,e)}function Zo(){var t=["access_token_expire","LOGIN_TYPE_CHANGED"," 2 - 当前环境是否开通了短信验证码登录","object","手机短信注册失败","signUp","refresh_token","__generator","design:type","15136HbYlbQ","design:returntype","function","699604wExkGt","next","defineProperty","Generator is already executing.","keys","setAccessToken","push","请确认以下各项:","isString"," 1 - 调用 auth().SmsAuthProvider() 的语法或参数是否正确","label","refreshAccessToken","ops","如果问题依然存在,建议到官方问答社区提问或寻找帮助:","sent","getOwnPropertyDescriptor","code","length","env","SIGNUP","prototype","63lxNTtL","persistence","OPERATION_FAIL","decorate","pop","INVALID_PARAMS","getStore","phoneNumber must be a string","then","24rSiEKN","throw","signIn","trys","signMethod","3QRDiXn","send","__awaiter","forceResetPwd","FORCERESETPWD","call","__decorate","create","hasOwnProperty","design:paramtypes"," 1 - 调用 auth().forceResetPwd() 的语法或参数是否正确","__extends","apply","1779093KpAxOk","return","_cache","80160IIwyFq","_request","184525GngYGN","throwError","Phone login fail[","958640OLFYXJ","message","catchErrorsDecorator","SIGNIN","value","手机密码重置失败","refreshTokenKey","refreshUserInfo","fire","phoneNumber","access_token","203598sQxmhY"," 1 - 调用 auth().signUpWithPhoneCode() 的语法或参数是否正确","_config","phoneCode","Phone login fail","COMMUNITY_SITE_URL","metadata"];return(Zo=function(){return t})()}var ts=Er[Ko(514)],es=Er[Ko(554)],rs=Er.transformPhone,ns=dr.ERRORS,is=dr[Ko(532)],os=lr[Ko(518)],ss={SIGNIN:Ko(519),SIGNUP:Ko(565),FORCERESETPWD:Ko(499)},as=function(t){var e=Ko;function r(){return null!==t&&t[Qo(507)](this,arguments)||this}return zo(r,t),r[e(566)][e(492)]=function(t){return Xo(this,void 0,void 0,(function(){var e,r,n,i,o,s,a,u,c;return $o(this,(function(f){var h=Qo;switch(f.label){case 0:return e=t[h(525)],r=t[h(530)],n=t.password,i=t[h(494)],!es(e)&&ts(ns[h(486)],h(488)),!es(r)&&!es(n)&&ts(ns[h(486)],"phoneCode or password must be a string"),!i&&(i=ss[h(519)]),o=this[h(510)][h(550)][h(522)],[4,this[h(512)][h(496)]("auth.signIn",{loginType:fi.PHONE,phoneNumber:rs(e),phoneCode:r,password:n,refresh_token:this._cache[h(487)](o)||"",signMethod:i})];case 1:return s=f.sent(),a=s[h(540)],u=s[h(526)],c=s[h(534)],a?[4,this.setRefreshToken(a)]:[3,8];case 2:return f[h(560)](),u&&c?[4,this[h(551)](u,c)]:[3,4];case 3:return f[h(560)](),[3,6];case 4:return[4,this[h(512)][h(557)]()];case 5:f[h(560)](),f[h(556)]=6;case 6:return[4,this[h(523)]()];case 7:return f[h(560)](),Os.fire(ks.LOGIN_STATE_CHANGED),Os[h(524)](ks[h(535)],{env:this[h(529)][h(564)],loginType:fi.PHONE,persistence:this._config[h(482)]}),[2,new Ts({envId:this[h(529)].env,cache:this[h(510)],request:this[h(512)]})];case 8:s[h(562)]?ts(ns[h(483)],h(515)+s[h(562)]+"] "+s[h(517)]):ts(ns.OPERATION_FAIL,h(531)),f[h(556)]=9;case 9:return[2]}}))}))},r[e(566)][e(539)]=function(t,e,r){return Xo(this,void 0,void 0,(function(){return $o(this,(function(n){return[2,this[Qo(492)]({phoneNumber:t,phoneCode:e,password:r,signMethod:ss.SIGNUP})]}))}))},r[e(566)][e(498)]=function(t,e,r){return Xo(this,void 0,void 0,(function(){return $o(this,(function(n){return[2,this.signIn({phoneNumber:t,phoneCode:e,password:r,signMethod:ss.FORCERESETPWD})]}))}))},Jo([os({title:"手机号登录失败",messages:[e(553),e(555),e(536)," 3 - 短信验证码/密码是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+is]}),Yo(e(542),Function),Yo("design:paramtypes",[Object]),Yo(e(544),Promise)],r.prototype,e(492),null),Jo([os({title:e(538),messages:["请确认以下各项:",e(528),e(536),e(559)+is]}),Yo("design:type",Function),Yo(e(504),[String,String,String]),Yo(e(544),Promise)],r.prototype,"signUp",null),Jo([os({title:e(521),messages:[e(553),e(505),e(536),e(559)+is]}),Yo(e(542),Function),Yo(e(504),[String,String,String]),Yo(e(544),Promise)],r[e(566)],e(498),null),r}(di),us=cs;function cs(t,e){var r=ds();return(cs=function(t,e){return r[t-=203]})(t,e)}!function(t,e){for(var r=cs,n=ds();;)try{if(936526===-parseInt(r(334))/1*(parseInt(r(436))/2)+-parseInt(r(401))/3+-parseInt(r(299))/4*(parseInt(r(434))/5)+parseInt(r(355))/6+parseInt(r(255))/7+parseInt(r(269))/8*(-parseInt(r(368))/9)+-parseInt(r(304))/10*(-parseInt(r(212))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var fs=function(){var t=us;return fs=Object[t(249)]||function(e){for(var r,n=t,i=1,o=arguments.length;i<o;i++)for(var s in r=arguments[i])Object[n(350)][n(321)][n(258)](r,s)&&(e[s]=r[s]);return e},fs[t(378)](this,arguments)},hs=function(t,e,r,n){var i,o=us,s=arguments[o(362)],a=s<3?e:null===n?n=Object[o(245)](e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect[o(306)])a=Reflect[o(306)](t,e,r,n);else for(var u=t[o(362)]-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object[o(356)](e,r,a),a},ps=function(t,e){var r=us;if(typeof Reflect===r(385)&&typeof Reflect[r(342)]===r(413))return Reflect[r(342)](t,e)},ls=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=cs;function a(t){try{c(n.next(t))}catch(t){o(t)}}function u(t){var e=cs;try{c(n[e(349)](t))}catch(t){o(t)}}function c(t){var e,n=cs;t.done?i(t[n(256)]):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}c((n=n[s(378)](t,e||[]))[s(371)]())}))},vs=function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){var a=cs;if(r)throw new TypeError(a(276));for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n[a(349)]||((i=n.return)&&i[a(258)](n),0):n[a(371)])&&!(i=i.call(n,o[1]))[a(333)])return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s[a(223)]++,{value:o[1],done:!1};case 5:s[a(223)]++,n=o[1],o=[0];continue;case 7:o=s[a(278)][a(312)](),s[a(273)][a(312)]();continue;default:if(!(i=s.trys,(i=i[a(362)]>0&&i[i[a(362)]-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s[a(223)]=o[1];break}if(6===o[0]&&s[a(223)]<i[1]){s.label=i[1],i=o;break}if(i&&s[a(223)]<i[2]){s[a(223)]=i[2],s[a(278)][a(391)](o);break}i[2]&&s[a(278)].pop(),s.trys[a(312)]();continue}o=e[a(258)](t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function ds(){var t=["config","auth.updateUsername","refreshAccessToken","设置微信主账号失败","transformPhone"," 1 - 调用 User.linkWithRedirect() 的语法或参数是否正确","metadata","updateConfig","wxUnionId","__decorate","LOGIN_STATE_CHANGED","sent"," 1 - 是否已登录","throw","prototype","seqId","CUSTOM","loginTypeKey","isAnonymousAuth","6333300HpzeoJ","defineProperty","isRegistered","bind","INVALID_PARAMS","_onLoginTypeChanged","_loginType","length","auth.linkOrUpdatePhoneNumber","updateUsername","__metadata","接触绑定失败","data","9UQZGsH","auth.isUsernameRegistered","RUNTIME","next","绑定第三方登录方式失败","unionId"," 1 - 调用 User.setPrimaryUid() 的语法或参数是否正确","send","wxOpenId"," 2 - 调用 auth().getUserInfo() 的语法或参数是否正确","apply","linkWithTicket"," 4 - 创建 ticket 的自定义登录私钥是否过期","LOGIN_STATE_EXPIRED","isPhoneAuth","ACCESS_TOKEN_REFRESHD","_shouldRefreshAccessTokenHook","object"," 1 - 调用 User.getLinkedUidList() 的语法或参数是否正确","getAuthHeaderAsync"," 1 - 调用 auth().getCurrenUser() 的语法或参数是否正确","local","获取账户列表失败","push","signUpWithPhoneCode","primaryStorage"," 1 - 调用 User.linkWithTicket() 的语法或参数是否正确"," 1 - 调用 auth().getLoginState() 的语法或参数是否正确","credential","linkWithPhoneNumber"," 2 - 此账户是否已经绑定此第三方","debug","gender","715794bBPmsa","persistence","auth.linkWithTicket","anonymousAuthProvider","signUpWithEmailAndPassword","onLoginStateExpired","checkLocalInfo","country","auth.updateEmail","province","_emailAuthProvider","usernameAuthProvider","function","_setUserInfo","onAccessTokenRefreshed","loginType","setStoreAsync"," 3 - 新密码中是否包含非法字符","SendStatus","_anonymousAuthProvider","onLoginStateChanged","signInWithEmailAndPassword","username","design:returntype","user","updatePassword","INVALID_OPERATION","getLoginState","getUserInfo","email","更新用户名失败","accessTokenKey","fire","1640qTUSas","sendPasswordResetEmail","2JaLEXy","如果问题依然存在,建议到官方问答社区提问或寻找帮助:","request"," 3 - ticket 参数是否归属当前环境","_weixinAuthProvider","platform","accessTokenExpireKey","keys","forEach","code","currentUser","signInWithUsernameAndPassword","phoneAuthProvider","cache"," 1 - 调用 User.updatePassword() 的语法或参数是否正确","auth.updatePassword","WECHAT_OPEN","获取用户是否被占用失败","_phoneAuthProvider","ANONYMOUS_CONVERTED","_runtime","username must be a string","openid","11wlPGkp","async","isUsernameAuth","hasPassword","getLinkedUidList","authInstance","throwError","users","runtime","auth.sendPhoneCode","__assign","label","auth.updateUserInfo","shouldRefreshAccessToken","LOGIN_TYPE_CHANGED","FORCERESETPWD","design:paramtypes"," 1 - 调用 User.updateEmail() 的语法或参数是否正确","weixinAuthProvider","env","getAccessToken","string","isCustomAuth","PHONE","绑定手机号失败","current platform's storage is asynchronous, please use getCurrenUser insteed","_request","auth","signIn","updateEmail","current platform's storage is asynchronous, please use getLoginState insteed","__awaiter","refresh","getOwnPropertyDescriptor","更新密码失败","resetPassword","_config","assign","_getLocalUserInfo","location","auth.logout","getStoreAsync"," 1 - 调用 User.updateUsername() 的语法或参数是否正确","9945677fQvmJI","value","envId","call","wxPublicId","phone","refreshTokenKey"," 2 - 此账户是否已经绑定自定义登录"," 1 - 调用 auth().signOut() 的语法或参数是否正确","WECHAT_PUBLIC","checkLocalStateAsync","COMMUNITY_SITE_URL","获取本地登录态失败","setPrimaryUid","7698472DEmmFJ"," 2 - 当前环境是否开通了用户名密码登录","forceResetPwdByPhoneCode","city","trys","_customAuthProvider"," 2 - 当前环境是否开通了邮箱密码登录","Generator is already executing.","NULL","ops","auth.getLinkedUidList","ERRORS","signOut","linkWithRedirect","hasLoginState","_cache","updatePhoneNumber","isWeixinAuth","userInfoKey","signUp","getStore","_setLocalUserInfo","CloudbaseEventEmitter","removeStoreAsync","registerComponent","qqMiniOpenId","checkLocalInfoAsync","update","USERNAME","customUserId","21036hiSgPe","getCurrenUser","uid","ANONYMOUS","_getLocalUserInfoAsync","14396450USUfFg","刷新本地用户信息失败","decorate","updatePersistenceAsync","loginStateChanged"," 2 - 当前用户是否为匿名登录(匿名登录不支持signOut)"," 1 - 调用 User.update() 的语法或参数是否正确","avatarUrl","pop"," 2 - 当前环境是否开通了短信验证码登录","用户登出失败","checkLocalState","请确认以下各项:","design:type","signInWithPhoneCodeOrPassword"," 3 - 此第三方是否已经授权","nickName","hasOwnProperty","auth.getUserInfo","isUsernameRegistered","_usernameAuthProvider","adapter","mode","region","绑定自定义登录失败"," 2 - 当前账户是否已经与此登录方式解绑","scope","emailAuthProvider","accessToken","done","53621jSoNDx","onAnonymousConverted"];return(ds=function(){return t})()}var ys=wr[us(291)],Is=Ir[us(370)],ms=Er.printWarn,gs=Er[us(218)],bs=Er[us(340)],ws=dr[us(280)],_s=dr[us(266)],Es=lr.catchErrorsDecorator,Ss=us(239),Os=new ys,As=function(){var t=us;function e(t){var e=cs,r=t[e(449)],n=t[e(438)];this[e(284)]=r,this[e(238)]=n,this[e(414)]()}return e.prototype[t(407)]=function(){return ls(this,void 0,void 0,(function(){return vs(this,(function(t){var e=cs;return this[e(301)]=this._getLocalUserInfo(e(301)),this.loginType=this[e(250)]("loginType"),this[e(211)]=this[e(250)](e(376)),this[e(376)]=this[e(250)](e(376)),this.wxPublicId=this[e(250)]("wxPublicId"),this[e(373)]=this[e(250)](e(344)),this[e(294)]=this[e(250)]("qqMiniOpenId"),this[e(298)]=this._getLocalUserInfo(e(298)),this[e(320)]=this[e(250)]("nickName"),this[e(400)]=this[e(250)](e(400)),this[e(311)]=this[e(250)]("avatarUrl"),this[e(430)]=this[e(250)]("email"),this[e(215)]=Boolean(this[e(250)](e(215))),this.phone=this[e(250)](e(260)),this[e(423)]=this._getLocalUserInfo("username"),this[e(251)]={country:this[e(250)](e(408)),province:this[e(250)](e(410)),city:this._getLocalUserInfo(e(272))},[2]}))}))},e[t(350)][t(295)]=function(){return ls(this,void 0,void 0,(function(){var t,e,r,n,i,o,s,a,u,c,f,h,p,l,v,d,y,I;return vs(this,(function(m){var g=cs;switch(m.label){case 0:return t=this,[4,this[g(303)](g(301))];case 1:return t.uid=m.sent(),e=this,[4,this[g(303)](g(416))];case 2:return e[g(416)]=m[g(347)](),r=this,[4,this[g(303)](g(376))];case 3:return r[g(211)]=m.sent(),n=this,[4,this[g(303)](g(376))];case 4:return n[g(376)]=m.sent(),i=this,[4,this[g(303)](g(259))];case 5:return i[g(259)]=m.sent(),o=this,[4,this[g(303)](g(344))];case 6:return o[g(373)]=m.sent(),s=this,[4,this._getLocalUserInfoAsync("qqMiniOpenId")];case 7:return s[g(294)]=m.sent(),a=this,[4,this[g(303)](g(298))];case 8:return a[g(298)]=m.sent(),u=this,[4,this._getLocalUserInfoAsync(g(320))];case 9:return u[g(320)]=m[g(347)](),c=this,[4,this[g(303)](g(400))];case 10:return c[g(400)]=m[g(347)](),f=this,[4,this[g(303)](g(311))];case 11:return f.avatarUrl=m[g(347)](),h=this,[4,this[g(303)](g(430))];case 12:return h[g(430)]=m[g(347)](),p=this,l=Boolean,[4,this[g(303)](g(215))];case 13:return p[g(215)]=l[g(378)](void 0,[m.sent()]),v=this,[4,this[g(303)](g(260))];case 14:return v.phone=m[g(347)](),d=this,[4,this[g(303)](g(423))];case 15:return d.username=m[g(347)](),y=this,I={},[4,this._getLocalUserInfoAsync(g(408))];case 16:return I[g(408)]=m[g(347)](),[4,this[g(303)](g(410))];case 17:return I.province=m[g(347)](),[4,this[g(303)](g(272))];case 18:return y.location=(I[g(272)]=m[g(347)](),I),[2]}}))}))},e[t(350)].linkWithTicket=function(e){var r=t;if(typeof e!==r(233))throw new Error("ticket must be string");return this[r(238)].send(r(403),{ticket:e})},e[t(350)][t(282)]=function(t){t.signInWithRedirect()},e.prototype[t(216)]=function(){return ls(this,void 0,void 0,(function(){var t,e,r,n,i,o;return vs(this,(function(s){var a=cs;switch(s[a(223)]){case 0:return[4,this[a(238)][a(375)](a(279),{})];case 1:for(t=s.sent()[a(367)],e=!1,r=t[a(219)],n=0,i=r;n<i[a(362)];n++)if((o=i[n])[a(376)]&&o[a(259)]){e=!0;break}return[2,{users:r,hasPrimaryUid:e}]}}))}))},e[t(350)][t(268)]=function(e){var r=t;return this[r(238)][r(375)]("auth.setPrimaryUid",{uid:e})},e[t(350)].unlink=function(e){var r=t;return this._request[r(375)]("auth.unlink",{platform:e})},e[t(350)][t(296)]=function(t){return ls(this,void 0,void 0,(function(){var e,r,n,i,o,s,a;return vs(this,(function(u){var c=cs;switch(u[c(223)]){case 0:return e=t[c(320)],r=t[c(400)],n=t.avatarUrl,i=t[c(410)],o=t[c(408)],s=t[c(272)],[4,this[c(238)][c(375)](c(224),{nickName:e,gender:r,avatarUrl:n,province:i,country:o,city:s})];case 1:return a=u[c(347)]()[c(367)],this[c(290)](a),[2]}}))}))},e[t(350)][t(426)]=function(e,r){var n=t;return this[n(238)][n(375)](n(204),{oldPassword:r,newPassword:e})},e.prototype[t(241)]=function(e,r){var n=t;return this[n(238)][n(375)](n(409),{newEmail:e,password:r})},e[t(350)].updateUsername=function(e){var r=t;return typeof e!==r(233)&&gs(ws[r(359)],"username must be a string"),this[r(238)][r(375)](r(337),{username:e})},e[t(350)].refresh=function(){return ls(this,void 0,void 0,(function(){var t,e;return vs(this,(function(r){var n=cs;switch(r[n(223)]){case 0:return t=n(322),[4,this[n(238)][n(375)](t,{})];case 1:return e=r[n(347)]().data,this[n(290)](e),[2,e]}}))}))},e[t(350)].linkWithPhoneNumber=function(t,e){return ls(this,void 0,void 0,(function(){return vs(this,(function(r){var n=cs;return[2,this[n(238)].send(n(363),{phoneNumber:bs(t),phoneCode:e})]}))}))},e[t(350)][t(285)]=function(t,e){return ls(this,void 0,void 0,(function(){return vs(this,(function(r){var n=cs;return[2,this[n(238)].send(n(363),{phoneNumber:bs(t),phoneCode:e})]}))}))},e.prototype._getLocalUserInfo=function(e){var r=t,n=this._cache[r(443)][r(287)];return this[r(284)][r(289)](n)[e]},e.prototype[t(303)]=function(t){return ls(this,void 0,void 0,(function(){var e;return vs(this,(function(r){var n=cs;switch(r[n(223)]){case 0:return e=this[n(284)][n(443)].userInfoKey,[4,this._cache[n(253)](e)];case 1:return[2,r[n(347)]()[t]]}}))}))},e[t(350)][t(414)]=function(){var e=t,r=this,n=this[e(284)].keys.userInfoKey,i=this[e(284)][e(289)](n);[e(301),e(416),e(211),"wxOpenId",e(259),e(373),e(294),"email","hasPassword",e(298),e(320),"gender",e(311),e(260),e(423)][e(444)]((function(t){r[t]=i[t]})),this[e(251)]={country:i[e(408)],province:i[e(410)],city:i[e(272)]}},e.prototype[t(290)]=function(e){var r=t,n=this._cache.keys[r(287)];this[r(284)].setStore(n,e),this[r(414)]()},hs([Es({title:t(328),messages:[t(316),t(394),t(262),t(439),t(380),t(437)+_s]}),ps("design:type",Function),ps(t(228),[String]),ps(t(424),Promise)],e[t(350)],t(379),null),hs([Es({title:t(372),messages:["请确认以下各项:",t(341),t(398),t(319),t(437)+_s]}),ps(t(317),Function),ps(t(228),[Object]),ps(t(424),void 0)],e[t(350)],"linkWithRedirect",null),hs([Es({title:t(390),messages:[t(316),t(386),t(437)+_s]}),ps(t(317),Function),ps(t(228),[]),ps("design:returntype",Promise)],e[t(350)],"getLinkedUidList",null),hs([Es({title:t(339),messages:[t(316),t(374),t(437)+_s]}),ps(t(317),Function),ps(t(228),[String]),ps("design:returntype",void 0)],e[t(350)],"setPrimaryUid",null),hs([Es({title:t(366),messages:[t(316)," 1 - 调用 User.unlink() 的语法或参数是否正确",t(329),t(437)+_s]}),ps("design:type",Function),ps(t(228),[String]),ps("design:returntype",void 0)],e[t(350)],"unlink",null),hs([Es({title:"更新用户信息失败",messages:[t(316),t(310)," 2 - 用户信息中是否包含非法值",t(437)+_s]}),ps(t(317),Function),ps(t(228),[Object]),ps(t(424),Promise)],e.prototype,"update",null),hs([Es({title:t(246),messages:[t(316),t(203),t(418),t(437)+_s]}),ps("design:type",Function),ps("design:paramtypes",[String,String]),ps("design:returntype",void 0)],e[t(350)],t(426),null),hs([Es({title:"更新邮箱地址失败",messages:["请确认以下各项:",t(229),t(275),t(437)+_s]}),ps(t(317),Function),ps(t(228),[String,String]),ps(t(424),void 0)],e.prototype,t(241),null),hs([Es({title:t(431),messages:["请确认以下各项:",t(254),t(270),t(437)+_s]}),ps("design:type",Function),ps(t(228),[String]),ps(t(424),void 0)],e[t(350)],t(364),null),hs([Es({title:t(305),messages:[t(316)," 1 - 调用 User.refresh() 的语法或参数是否正确",t(437)+_s]}),ps("design:type",Function),ps(t(228),[]),ps(t(424),Promise)],e[t(350)],t(244),null),hs([Es({title:t(236),messages:[t(316)," 1 - 调用 auth().linkWithPhoneNumber() 的语法或参数是否正确",t(313),t(437)+_s]}),ps("design:type",Function),ps(t(228),[String,String]),ps(t(424),Promise)],e[t(350)],t(397),null),hs([Es({title:"更新手机号失败",messages:[t(316)," 1 - 调用语法或参数是否正确",t(313),t(437)+_s]}),ps(t(317),Function),ps(t(228),[String,String]),ps(t(424),Promise)],e[t(350)],t(285),null),e}(),Ts=function(){var t=us;function e(t){var e=cs,r=t[e(257)],n=t[e(449)],i=t[e(438)];!r&&gs(ws[e(359)],"envId is not defined"),this[e(284)]=n,this[e(425)]=new As({cache:n,request:i})}return e[t(350)][t(315)]=function(){return ls(this,void 0,void 0,(function(){var t,e,r,n,i,o,s;return vs(this,(function(a){var u=cs;return t=this[u(284)].keys,e=t.refreshTokenKey,r=t[u(432)],n=t.accessTokenExpireKey,i=this._cache[u(289)](e),o=this[u(284)].getStore(r),s=this[u(284)][u(289)](n),this.credential={refreshToken:i,accessToken:o,accessTokenExpire:s},this[u(361)]=this[u(284)][u(289)](this._cache.keys[u(353)]),this.user[u(407)](),[2]}))}))},e.prototype[t(265)]=function(){return ls(this,void 0,void 0,(function(){var t,e,r,n,i,o,s,a;return vs(this,(function(u){var c=cs;switch(u[c(223)]){case 0:return t=this[c(284)][c(443)],e=t[c(261)],r=t[c(432)],n=t[c(442)],[4,this._cache.getStoreAsync(e)];case 1:return i=u[c(347)](),[4,this[c(284)][c(253)](r)];case 2:return o=u[c(347)](),[4,this._cache[c(253)](n)];case 3:return s=u[c(347)](),this[c(396)]={refreshToken:i,accessToken:o,accessTokenExpire:s},a=this,[4,this._cache[c(253)](this[c(284)].keys[c(353)])];case 4:return a[c(361)]=u[c(347)](),[4,this[c(425)].checkLocalInfoAsync()];case 5:return u[c(347)](),[2]}}))}))},Object[t(356)](e.prototype,t(354),{get:function(){var e=t;return this[e(416)]===fi[e(302)]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,t(234),{get:function(){var e=t;return this[e(416)]===fi[e(352)]},enumerable:!1,configurable:!0}),Object.defineProperty(e[t(350)],t(286),{get:function(){var e=t;return this.loginType===fi.WECHAT||this[e(416)]===fi[e(205)]||this[e(416)]===fi[e(264)]},enumerable:!1,configurable:!0}),Object.defineProperty(e[t(350)],t(214),{get:function(){var e=t;return this[e(416)]===fi[e(297)]},enumerable:!1,configurable:!0}),Object[t(356)](e[t(350)],"loginType",{get:function(){return this._loginType},enumerable:!1,configurable:!0}),Object.defineProperty(e[t(350)],t(382),{get:function(){var e=t;return this.loginType===fi[e(235)]},enumerable:!1,configurable:!0}),e}(),Ns=function(){var t=us;function e(t){var e=cs;this[e(248)]=t,this._cache=t[e(449)],this[e(238)]=t[e(438)],this[e(209)]=t[e(220)]||Is.WEB,Os.on(ks[e(226)],this[e(360)][e(358)](this))}return Object[t(356)](e[t(350)],t(446),{get:function(){var e=t;if(this[e(284)][e(326)]!==e(213)){var r=this[e(283)]();return r&&r[e(425)]||null}ms(ws[e(427)],e(237))},enumerable:!1,configurable:!0}),Object.defineProperty(e[t(350)],t(416),{get:function(){var e=t;return this[e(284)][e(289)](this[e(284)].keys[e(353)])},enumerable:!1,configurable:!0}),e[t(350)].getCurrenUser=function(){return ls(this,void 0,void 0,(function(){var t;return vs(this,(function(e){var r=cs;switch(e.label){case 0:return[4,this[r(428)]()];case 1:return(t=e.sent())?[4,t.user.checkLocalInfoAsync()]:[3,3];case 2:return e[r(347)](),[2,t.user||null];case 3:return[2,null]}}))}))},e[t(350)].getLoginType=function(){return ls(this,void 0,void 0,(function(){return vs(this,(function(t){var e=cs;switch(t[e(223)]){case 0:return[4,this[e(284)][e(253)](this._cache[e(443)][e(353)])];case 1:return[2,t[e(347)]()]}}))}))},e.prototype[t(232)]=function(){return ls(this,void 0,void 0,(function(){var t;return vs(this,(function(e){var r=cs;switch(e[r(223)]){case 0:return t={},[4,this[r(238)][r(232)]()];case 1:return[2,(t[r(332)]=e[r(347)]()[r(332)],t[r(231)]=this[r(248)][r(231)],t)]}}))}))},e.prototype[t(230)]=function(e){var r=t,n=e.appid,i=e[r(330)],o=e.state;return!this[r(440)]&&(this._weixinAuthProvider=new Li(fs(fs({},this[r(248)]),{cache:this[r(284)],request:this[r(238)],runtime:this[r(209)]}),n,i,o)),this._weixinAuthProvider},e[t(350)][t(404)]=function(){var e=t;return!this._anonymousAuthProvider&&(this[e(420)]=new Zi(fs(fs({},this[e(248)]),{cache:this[e(284)],request:this[e(238)]}))),this[e(420)]},e.prototype.customAuthProvider=function(){var e=t;return!this[e(274)]&&(this[e(274)]=new vo(fs(fs({},this[e(248)]),{cache:this[e(284)],request:this[e(238)]}))),this._customAuthProvider},e[t(350)][t(331)]=function(){var e=t;return!this._emailAuthProvider&&(this[e(411)]=new ko(fs(fs({},this[e(248)]),{cache:this._cache,request:this[e(238)]}))),this[e(411)]},e[t(350)].usernameAuthProvider=function(){var e=t;return!this[e(324)]&&(this[e(324)]=new Go(fs(fs({},this[e(248)]),{cache:this[e(284)],request:this[e(238)]}))),this[e(324)]},e[t(350)].phoneAuthProvider=function(){var e=t;return!this[e(207)]&&(this[e(207)]=new as(fs(fs({},this[e(248)]),{cache:this[e(284)],request:this[e(238)]}))),this[e(207)]},e.prototype[t(447)]=function(t,e){return ls(this,void 0,void 0,(function(){return vs(this,(function(r){var n=cs;return[2,this[n(412)]()[n(240)](t,e)]}))}))},e[t(350)][t(323)]=function(t){return ls(this,void 0,void 0,(function(){var e;return vs(this,(function(r){var n=cs;switch(r[n(223)]){case 0:return typeof t!==n(233)&&gs(ws.INVALID_PARAMS,n(210)),[4,this[n(238)][n(375)](n(369),{username:t})];case 1:return[2,null==(e=r[n(347)]()[n(367)])?void 0:e[n(357)]]}}))}))},e[t(350)][t(422)]=function(t,e){return ls(this,void 0,void 0,(function(){return vs(this,(function(r){var n=cs;return[2,this[n(331)]()[n(240)](t,e)]}))}))},e[t(350)][t(405)]=function(t,e){return ls(this,void 0,void 0,(function(){return vs(this,(function(r){return[2,this[cs(331)]().signUp(t,e)]}))}))},e[t(350)][t(435)]=function(t){return ls(this,void 0,void 0,(function(){return vs(this,(function(e){var r=cs;return[2,this.emailAuthProvider()[r(247)](t)]}))}))},e.prototype[t(281)]=function(){return ls(this,void 0,void 0,(function(){var t,e,r,n,i,o,s;return vs(this,(function(a){var u=cs;switch(a[u(223)]){case 0:return t=this[u(284)].keys,e=t.refreshTokenKey,r=t[u(432)],n=t[u(442)],i=u(252),[4,this[u(284)][u(253)](e)];case 1:return(o=a[u(347)]())?[4,this[u(238)][u(375)](i,{refresh_token:o})]:[2];case 2:return s=a.sent(),this._cache[u(292)](e),this[u(284)].removeStoreAsync(r),this[u(284)][u(292)](n),Os[u(433)](ks[u(346)]),Os.fire(ks[u(226)],{env:this[u(248)].env,loginType:fi[u(277)],persistence:this._config[u(402)]}),[2,s]}}))}))},e[t(350)][t(421)]=function(t){return ls(this,void 0,void 0,(function(){var e,r=this;return vs(this,(function(n){var i=cs;switch(n[i(223)]){case 0:return Os.on(ks.LOGIN_STATE_CHANGED,(function(){return ls(r,void 0,void 0,(function(){var e;return vs(this,(function(r){var n=cs;switch(r[n(223)]){case 0:return[4,this[n(428)]()];case 1:return e=r.sent(),t[n(258)](this,e),[2]}}))}))})),[4,this[i(428)]()];case 1:return e=n.sent(),t[i(258)](this,e),[2]}}))}))},e[t(350)][t(406)]=function(e){var r=t;Os.on(ks.LOGIN_STATE_EXPIRED,e[r(358)](this))},e[t(350)][t(415)]=function(e){var r=t;Os.on(ks[r(383)],e[r(358)](this))},e[t(350)][t(335)]=function(e){var r=t;Os.on(ks[r(208)],e.bind(this))},e.prototype.onLoginTypeChanged=function(e){var r=t,n=this;Os.on(ks[r(226)],(function(){return ls(n,void 0,void 0,(function(){var t;return vs(this,(function(r){var n=cs;switch(r[n(223)]){case 0:return[4,this[n(428)]()];case 1:return t=r[n(347)](),e[n(258)](this,t),[2]}}))}))}))},e[t(350)][t(283)]=function(){var e=t;if(this._cache[e(326)]!==e(213)){var r=this[e(284)][e(443)][e(261)];if(this._cache[e(289)](r)){var n=new Ts({envId:this._config[e(231)],cache:this[e(284)],request:this._request});return n.checkLocalState(),n}return null}ms(ws.INVALID_OPERATION,e(242))},e[t(350)][t(428)]=function(){return ls(this,void 0,void 0,(function(){var t,e;return vs(this,(function(r){var n=cs;switch(r[n(223)]){case 0:return t=this._cache.keys[n(261)],[4,this[n(284)][n(253)](t)];case 1:return r[n(347)]()?[4,(e=new Ts({envId:this[n(248)][n(231)],cache:this[n(284)],request:this[n(238)]}))[n(265)]()]:[3,3];case 2:return r[n(347)](),[2,e];case 3:return[2,null]}}))}))},e[t(350)][t(225)]=function(e){var r=t;this[r(238)][r(384)]=e[r(358)](this)},e.prototype[t(429)]=function(){return ls(this,void 0,void 0,(function(){var t;return vs(this,(function(e){var r=cs;switch(e[r(223)]){case 0:return"auth.getUserInfo",[4,this[r(238)][r(375)]("auth.getUserInfo",{})];case 1:return(t=e[r(347)]())[r(445)]?[2,t]:[2,fs(fs({},t.data),{requestId:t[r(351)]})]}}))}))},e[t(350)].getAuthHeader=function(){var e=t,r=this._cache[e(443)],n=r[e(261)],i=r[e(432)],o=this[e(284)].getStore(n);return{"x-cloudbase-credentials":this[e(284)][e(289)](i)+"/@@/"+o}},e.prototype[t(387)]=function(){return ls(this,void 0,void 0,(function(){var t,e,r,n;return vs(this,(function(i){var o=cs;switch(i.label){case 0:return[4,this[o(238)][o(338)]()];case 1:return i[o(347)](),t=this[o(284)].keys,e=t[o(261)],r=t[o(432)],[4,this[o(284)][o(253)](e)];case 2:return n=i[o(347)](),[4,this._cache[o(253)](r)];case 3:return[2,{"x-cloudbase-credentials":i[o(347)]()+"/@@/"+n}]}}))}))},e[t(350)].sendPhoneCode=function(t){return ls(this,void 0,void 0,(function(){return vs(this,(function(e){var r=cs;switch(e.label){case 0:return[4,this[r(238)][r(375)](r(221),{phoneNumber:bs(t)})];case 1:return[2,"Ok"===e[r(347)]().data[r(419)]]}}))}))},e[t(350)][t(392)]=function(t,e,r){return ls(this,void 0,void 0,(function(){return vs(this,(function(n){var i=cs;return[2,this[i(448)]()[i(288)](t,e,r)]}))}))},e.prototype[t(318)]=function(t){return ls(this,void 0,void 0,(function(){return vs(this,(function(e){var r=cs;return[2,this[r(448)]()[r(240)](t)]}))}))},e[t(350)][t(271)]=function(t){return ls(this,void 0,void 0,(function(){return vs(this,(function(e){var r=cs;return[2,this[r(448)]()[r(240)](fs(fs({},t),{signMethod:ss[r(227)]}))]}))}))},e[t(350)][t(360)]=function(t){return ls(this,void 0,void 0,(function(){var e,r,n;return vs(this,(function(i){var o=cs;switch(i[o(223)]){case 0:return e=t[o(367)],r=e[o(416)],n=e[o(402)],e[o(231)]!==this._config[o(231)]?[2]:[4,this._cache[o(307)](n)];case 1:return i.sent(),[4,this._cache[o(417)](this._cache[o(443)][o(353)],r)];case 2:return i[o(347)](),[2]}}))}))},hs([Es({title:"获取用户信息失败",messages:[t(316),t(388),t(437)+_s]}),ps(t(317),Function),ps("design:paramtypes",[]),ps("design:returntype",Promise)],e[t(350)],t(300),null),hs([Es({title:t(206),messages:[t(316)," 1 - 调用 auth().isUsernameRegistered() 的语法或参数是否正确",t(437)+_s]}),ps(t(317),Function),ps("design:paramtypes",[String]),ps(t(424),Promise)],e[t(350)],t(323),null),hs([Es({title:t(314),messages:[t(316),t(263),t(309),t(437)+_s]}),ps(t(317),Function),ps(t(228),[]),ps(t(424),Promise)],e[t(350)],t(281),null),hs([Es({title:t(267),messages:[t(316),t(395),t(437)+_s]}),ps(t(317),Function),ps(t(228),[]),ps(t(424),Promise)],e.prototype,t(428),null),hs([Es({title:"获取用户信息失败",messages:[t(316),t(348),t(377),t(437)+_s]}),ps(t(317),Function),ps("design:paramtypes",[]),ps("design:returntype",Promise)],e[t(350)],t(429),null),hs([Es({title:"发送短信验证码失败",messages:[t(316)," 1 - 调用语法或参数是否正确",t(313),t(437)+_s]}),ps(t(317),Function),ps(t(228),[String]),ps(t(424),Promise)],e.prototype,"sendPhoneCode",null),e}(),ks={LOGIN_STATE_CHANGED:us(308),LOGIN_STATE_EXPIRED:"loginStateExpire",LOGIN_TYPE_CHANGED:"loginTypeChanged",ANONYMOUS_CONVERTED:"anonymousConverted",ACCESS_TOKEN_REFRESHD:"refreshAccessToken"},xs={name:Ss,namespace:us(239),injectEvents:{bus:Os,events:[ks[us(226)],ks[us(381)],ks[us(346)],ks[us(383)],ks[us(208)]]},entity:function(t){var e=us;if(void 0===t&&(t={region:"",persistence:e(389)}),this[e(217)])return ms(ws[e(427)],"every cloudbase instance should has only one auth object"),this[e(217)];var r=this[e(441)],n=r[e(325)],i=r[e(220)],o=t[e(402)]||n[e(393)];o&&o!==this[e(336)].persistence&&this[e(343)]({persistence:o});var s=this.config,a=s[e(231)],u=s[e(402)],c=s[e(399)];return this[e(217)]=new Ns({env:a,region:t[e(327)],persistence:u,debug:c,cache:this[e(449)],request:this.request,runtime:i}),this[e(217)]}};try{cloudbase[us(293)](xs)}catch(t){}var Rs=Us;function Ps(){var t=["__generator","sent","如果问题依然存在,建议到官方问答社区提问或寻找帮助:",".callFunction] invalid function name","83505dRRFOM","16263cBzkAt","push","COMMUNITY_SITE_URL","warn","126hbvVdT","functions","stringify","3899208DlmyXY","__metadata","query","registerComponent","apply","__decorate","__awaiter",".callFunction] invalid data","593107YNJGBi","ERRORS","design:paramtypes","requestId","functions.invokeFunction","data","done","Generator is already executing.","pop","send","response_data","value"," 1 - 调用 callFunction() 的语法或参数是否正确","prototype","metadata"," 3 - 函数安全规则是否限制了当前登录状态访问","catchErrorsDecorator","getOwnPropertyDescriptor","2200420vPDMPc","label","2160SCFKip",".callFunction] response data must be json","INVALID_PARAMS","trys","design:returntype","127898lmfrfc","defineProperty","throw","function","request","next","decorate","name","函数调用失败","ops","Cloudbase","2362955gZfOyK","3COqcfJ","code","callFunction"," 2 - 当前环境下是否存在此函数","length","call","parse"];return(Ps=function(){return t})()}!function(t,e){for(var r=Us,n=Ps();;)try{if(342604===parseInt(r(352))/1+-parseInt(r(377))/2*(-parseInt(r(325))/3)+parseInt(r(370))/4+-parseInt(r(336))/5*(-parseInt(r(341))/6)+-parseInt(r(324))/7+-parseInt(r(344))/8+parseInt(r(337))/9*(-parseInt(r(372))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Cs=function(t,e,r,n){var i,o=Rs,s=arguments.length,a=s<3?e:null===n?n=Object[o(369)](e,r):n;if("object"==typeof Reflect&&typeof Reflect.decorate===o(316))a=Reflect[o(319)](t,e,r,n);else for(var u=t[o(329)]-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object[o(314)](e,r,a),a},js=function(t,e){var r=Rs;if("object"==typeof Reflect&&typeof Reflect[r(366)]===r(316))return Reflect.metadata(t,e)},Ds=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=Us;function a(t){var e=Us;try{c(n[e(318)](t))}catch(t){o(t)}}function u(t){var e=Us;try{c(n[e(315)](t))}catch(t){o(t)}}function c(t){var e,n=Us;t.done?i(t[n(363)]):(e=t[n(363)],e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}c((n=n[s(348)](t,e||[]))[s(318)]())}))},Ls=function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){var a=Us;if(r)throw new TypeError(a(359));for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n[a(315)]||((i=n.return)&&i[a(330)](n),0):n.next)&&!(i=i.call(n,o[1]))[a(358)])return i;switch(n=0,i&&(o=[2&o[0],i[a(363)]]),o[0]){case 0:case 1:i=o;break;case 4:return s[a(371)]++,{value:o[1],done:!1};case 5:s[a(371)]++,n=o[1],o=[0];continue;case 7:o=s.ops[a(360)](),s.trys[a(360)]();continue;default:if(!(i=s[a(375)],(i=i[a(329)]>0&&i[i[a(329)]-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s[a(371)]<i[1]){s.label=i[1],i=o;break}if(i&&s[a(371)]<i[2]){s.label=i[2],s[a(322)][a(338)](o);break}i[2]&&s[a(322)][a(360)](),s[a(375)][a(360)]();continue}o=e[a(330)](t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function Us(t,e){var r=Ps();return(Us=function(t,e){return r[t-=314]})(t,e)}var Ms=dr.getSdkName,Bs=dr[Rs(353)],qs=dr[Rs(339)],Fs=Er.execCallback,Hs=lr[Rs(368)],Ws=Rs(342),Gs=new(function(){var t=Rs;function e(){}return e[t(365)][t(327)]=function(t,e){return Ds(this,void 0,void 0,(function(){var r,n,i,o,s,a,u,c,f,h,p,l;return Ls(this,(function(v){var d=Us;switch(v[d(371)]){case 0:if(r=t[d(320)],n=t.data,i=t[d(346)],o=t[d(331)],s=t.search,!r)throw new Error(JSON.stringify({code:Bs[d(374)],msg:"["+Ws+d(335)}));try{a=n?JSON.stringify(n):""}catch(t){throw new Error(JSON[d(343)]({code:Bs.INVALID_PARAMS,msg:"["+Ws+d(351)}))}u=d(356),c={inQuery:i,parse:o,search:s,function_name:r,request_data:a},f=this[d(317)],v[d(371)]=1;case 1:return v[d(375)][d(338)]([1,3,,4]),[4,f[d(361)](u,c)];case 2:if((h=v[d(333)]())[d(326)])return[2,Fs(e,null,h)];if(p=h[d(357)][d(362)],o)return[2,Fs(e,null,{result:p,requestId:h[d(355)]})];try{return p=JSON[d(331)](h[d(357)][d(362)]),[2,Fs(e,null,{result:p,requestId:h[d(355)]})]}catch(t){Fs(e,new Error("["+Ms()+"]["+Bs[d(374)]+"]["+Ws+d(373)))}return[3,4];case 3:return l=v[d(333)](),Fs(e,l),[3,4];case 4:return[2]}}))}))},Cs([Hs({customInfo:{className:t(323),methodName:"callFunction"},title:t(321),messages:["请确认以下各项:",t(364),t(328),t(367),t(334)+qs]}),js("design:type",Function),js(t(354),[Object,Function]),js(t(376),Promise)],e[t(365)],t(327),null),e}()),Ks={name:Ws,entity:{callFunction:Gs[Rs(327)]}};try{cloudbase[Rs(347)](Ks)}catch(t){}var Vs=ua;!function(t,e){for(var r=ua,n=ca();;)try{if(770288===-parseInt(r(308))/1*(-parseInt(r(333))/2)+-parseInt(r(277))/3+parseInt(r(270))/4*(-parseInt(r(325))/5)+parseInt(r(317))/6+parseInt(r(280))/7*(-parseInt(r(339))/8)+parseInt(r(271))/9+-parseInt(r(303))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var zs=function(t,e,r,n){var i,o=ua,s=arguments.length,a=s<3?e:null===n?n=Object[o(296)](e,r):n;if(typeof Reflect===o(298)&&typeof Reflect[o(316)]===o(306))a=Reflect[o(316)](t,e,r,n);else for(var u=t[o(266)]-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object[o(302)](e,r,a),a},Js=function(t,e){var r=ua;if(typeof Reflect===r(298)&&typeof Reflect[r(288)]===r(306))return Reflect[r(288)](t,e)},Ys=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=ua;function a(t){var e=ua;try{c(n[e(335)](t))}catch(t){o(t)}}function u(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e,n=ua;t[n(307)]?i(t.value):(e=t[n(265)],e instanceof r?e:new r((function(t){t(e)})))[n(347)](a,u)}c((n=n[s(344)](t,e||[]))[s(335)]())}))},Xs=function(t,e){var r,n,i,o,s=Vs,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(306)&&(o[Symbol[s(293)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(330));for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(287)]:o[0]?n[u(290)]||((i=n.return)&&i[u(283)](n),0):n[u(335)])&&!(i=i[u(283)](n,o[1]))[u(307)])return i;switch(n=0,i&&(o=[2&o[0],i[u(265)]]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops[u(268)](),a[u(305)][u(268)]();continue;default:if(!(i=a[u(305)],(i=i[u(266)]>0&&i[i[u(266)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a[u(273)]=o[1];break}if(6===o[0]&&a[u(273)]<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a[u(273)]=i[2],a[u(295)][u(278)](o);break}i[2]&&a[u(295)][u(268)](),a.trys.pop();continue}o=e[u(283)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},$s=dr[Vs(342)],Qs=dr.ERRORS,Zs=dr[Vs(289)],ta=Er[Vs(319)],ea=Er.isString,ra=Er.isPalinObject,na=Er[Vs(311)],ia=lr[Vs(304)],oa="storage",sa=new(function(){var t=Vs;function e(){}return e[t(348)].uploadFile=function(t,e){return Ys(this,void 0,void 0,(function(){var r,n,i,o,s,a,u,c,f,h,p,l,v,d,y;return Xs(this,(function(I){var m=ua;switch(I[m(273)]){case 0:if(r=t[m(340)],n=t.filePath,i=t[m(350)],!ea(r)||!n)throw new Error(JSON.stringify({code:Qs[m(327)],msg:"["+oa+m(313)}));return"storage.getUploadMetadata",[4,(o=this[m(279)])[m(320)]("storage.getUploadMetadata",{path:r})];case 1:return s=I.sent(),a=s[m(312)],u=a[m(282)],c=a[m(353)],f=a.token,h=a[m(292)],p=a[m(338)],l=a[m(269)],v=s[m(345)],d={key:r,signature:c,"x-cos-meta-fileid":p,success_action_status:m(328),"x-cos-security-token":f},[4,o[m(326)]({url:u,data:d,file:n,name:r,onUploadProgress:i})];case 2:return 201===(y=I[m(332)]())[m(318)]?[2,na(e,null,{fileID:h,download_url:l,requestId:v})]:[2,na(e,new Error("["+$s()+"]["+Qs.OPERATION_FAIL+"]["+oa+"]:"+y.data))]}}))}))},e[t(348)].getUploadMetadata=function(t,e){return Ys(this,void 0,void 0,(function(){var r,n,i,o,s;return Xs(this,(function(a){var u=ua;switch(a[u(273)]){case 0:if(r=t[u(340)],!ea(r))throw new Error(JSON.stringify({code:Qs[u(327)],msg:"["+oa+u(324)}));n=this[u(279)],i=u(291),a.label=1;case 1:return a[u(305)].push([1,3,,4]),[4,n.send(i,{path:r})];case 2:return o=a[u(332)](),[2,na(e,null,o)];case 3:return s=a.sent(),[2,na(e,s)];case 4:return[2]}}))}))},e[t(348)][t(322)]=function(t,e){return Ys(this,void 0,void 0,(function(){var r,n,i,o,s,a,u;return Xs(this,(function(c){var f=ua;switch(c[f(273)]){case 0:if(!(r=t[f(281)])||!ta(r)||0===r[f(266)])throw new Error(JSON[f(334)]({code:Qs[f(327)],msg:"["+oa+".deleteFile] fileList must not be empty"}));for(n=0,i=r;n<i.length;n++)if(!(o=i[n])||!ea(o))throw new Error(JSON[f(334)]({code:Qs[f(327)],msg:"["+oa+f(331)}));return s=f(329),[4,this[f(279)][f(320)](s,{fileid_list:r})];case 1:return(a=c[f(332)]()).code?[2,na(e,null,a)]:(u={fileList:a[f(312)].delete_list,requestId:a[f(345)]},[2,na(e,null,u)])}}))}))},e[t(348)][t(355)]=function(t,e){return Ys(this,void 0,void 0,(function(){var r,n,i,o,s,a,u;return Xs(this,(function(c){var f=ua;switch(c[f(273)]){case 0:if(!(r=t.fileList)||!ta(r)||0===r[f(266)])throw new Error(JSON[f(334)]({code:Qs.INVALID_PARAMS,msg:"["+oa+f(315)}));for(n=[],i=0,o=r;i<o[f(266)];i++)if(s=o[i],ra(s)){if(!s[f(309)]("fileID")||!s[f(309)](f(285)))throw new Error(JSON[f(334)]({code:Qs[f(327)],msg:"["+oa+f(274)}));n.push({fileid:s.fileID,max_age:s[f(285)]})}else{if(!ea(s))throw new Error(JSON[f(334)]({code:Qs[f(327)],msg:"["+oa+".getTempFileURL] invalid fileList"}));n[f(278)]({fileid:s})}return a=f(323),[4,this[f(279)].send(a,{file_list:n})];case 1:return(u=c.sent())[f(352)]?[2,na(e,null,u)]:[2,na(e,null,{fileList:u[f(312)].download_list,requestId:u[f(345)]})]}}))}))},e[t(348)][t(286)]=function(t,e){return Ys(this,void 0,void 0,(function(){var r,n,i,o,s,a;return Xs(this,(function(u){var c=ua;switch(u[c(273)]){case 0:if(r=t.fileID,!ea(r))throw new Error(JSON.stringify({code:Qs.INVALID_PARAMS,msg:"["+oa+".getTempFileURL] fileID must be string"}));return[4,this.getTempFileURL[c(283)](this,{fileList:[{fileID:r,maxAge:600}]})];case 1:return n=u[c(332)](),(i=n[c(281)][0])[c(352)]!==c(336)?[2,na(e,i)]:(o=this[c(279)],s=encodeURI(i[c(269)]),[4,o.download({url:s})]);case 2:return a=u[c(332)](),[2,na(e,null,a)]}}))}))},zs([ia({customInfo:{className:t(263),methodName:t(351)},title:t(264),messages:[t(294)," 1 - 调用 uploadFile() 的语法或参数是否正确",t(300),t(272),t(321)+Zs]}),Js(t(301),Function),Js(t(310),[Object,Function]),Js(t(343),Promise)],e.prototype,t(351),null),zs([ia({customInfo:{className:t(263),methodName:t(354)},title:t(275),messages:["请确认以下各项:",t(299),t(300)," 3 - 云存储安全规则是否限制了当前登录状态访问",t(321)+Zs]}),Js(t(301),Function),Js(t(310),[Object,Function]),Js("design:returntype",Promise)],e[t(348)],"getUploadMetadata",null),zs([ia({customInfo:{className:"Cloudbase",methodName:"deleteFile"},title:"删除文件失败",messages:[t(294),t(341)," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety",t(272),t(321)+Zs]}),Js(t(301),Function),Js(t(310),[Object,Function]),Js(t(343),Promise)],e[t(348)],t(322),null),zs([ia({customInfo:{className:t(263),methodName:"getTempFileURL"},title:t(297),messages:["请确认以下各项:",t(267)," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety",t(272),"如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Zs]}),Js(t(301),Function),Js(t(310),[Object,Function]),Js("design:returntype",Promise)],e.prototype,t(355),null),zs([ia({customInfo:{className:"Cloudbase",methodName:"downloadFile"},title:t(337),messages:["请确认以下各项:",t(346),t(300),t(272),t(321)+Zs]}),Js(t(301),Function),Js(t(310),[Object,Function]),Js("design:returntype",Promise)],e[t(348)],t(286),null),e}()),aa={name:oa,entity:{uploadFile:sa[Vs(351)],deleteFile:sa[Vs(322)],getTempFileURL:sa[Vs(355)],downloadFile:sa[Vs(286)],getUploadMetadata:sa[Vs(354)]}};function ua(t,e){var r=ca();return(ua=function(t,e){return r[t-=263]})(t,e)}function ca(){var t=["object"," 1 - 调用 getUploadMetadata() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety","design:type","defineProperty","2713840ScHSFe","catchErrorsDecorator","trys","function","done","81321fMNBpz","hasOwnProperty","design:paramtypes","execCallback","data",".uploadFile] invalid params","registerComponent",".getTempFileURL] fileList must not be empty","decorate","6033174KZIYOL","statusCode","isArray","send","如果问题依然存在,建议到官方问答社区提问或寻找帮助:","deleteFile","storage.batchGetDownloadUrl",".getUploadMetadata] invalid cloudPath","71390kgxKGq","upload","INVALID_PARAMS","201","storage.batchDeleteFile","Generator is already executing.",".deleteFile] fileID must be string","sent","26zXJkjO","stringify","next","SUCCESS","下载文件失败","cosFileId","2443552hzIhXl","cloudPath"," 1 - 调用 deleteFile() 的语法或参数是否正确","getSdkName","design:returntype","apply","requestId"," 1 - 调用 downloadFile() 的语法或参数是否正确","then","prototype","__generator","onUploadProgress","uploadFile","code","authorization","getUploadMetadata","getTempFileURL","Cloudbase","上传文件失败","value","length"," 1 - 调用 getTempFileURL() 的语法或参数是否正确","pop","download_url","188ZCWwhm","3305727WHyIdZ"," 3 - 云存储安全规则是否限制了当前登录状态访问","label",".getTempFileURL] file info must include fileID and maxAge","获取上传元信息失败","warn","1235469BfOLHk","push","request","7kaRtGx","fileList","url","call","__awaiter","maxAge","downloadFile","return","metadata","COMMUNITY_SITE_URL","throw","storage.getUploadMetadata","fileId","iterator","请确认以下各项:","ops","getOwnPropertyDescriptor","获取文件下载链接"];return(ca=function(){return t})()}try{cloudbase[Vs(314)](aa)}catch(t){}var fa=tu;!function(t,e){for(var r=tu,n=Na();;)try{if(566288===-parseInt(r(137))/1+-parseInt(r(156))/2+-parseInt(r(129))/3*(-parseInt(r(138))/4)+-parseInt(r(139))/5*(parseInt(r(154))/6)+-parseInt(r(159))/7+-parseInt(r(163))/8+-parseInt(r(135))/9*(-parseInt(r(161))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var ha=fa(147),pa=fa(149),la=1/0,va=9007199254740991,da=fa(150),ya=fa(145),Ia=fa(166),ma=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ga=/^\w*$/,ba=/^\./,wa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_a=/\\(\\)?/g,Ea=/^\[object .+?Constructor\]$/,Sa=/^(?:0|[1-9]\d*)$/,Oa="object"==typeof h[fa(134)]&&h[fa(134)]&&u.Object===Object&&h[fa(134)],Aa="object"==typeof self&&self&&self.Object===Object&&self,Ta=Oa||Aa||Function("return this")();function Na(){var t=["Cache","prototype","delete","238035EPBYDy","symbol","object","function","isArray","commonjsGlobal","198pnRRWm","toString","635843EDELSa","12FOJqEp","45YbbQnY","Symbol(src)_1.","cache","clear","map","splice","[object GeneratorFunction]","has","Expected a function","Symbol","__lodash_hash_undefined__","[object Function]","keys","replace","__core-js_shared__","356946NPxsFi","getDefaultExportFromCjs","1398946bpDhnM","number","Map","4601345reErCY","string","1647650PWriGA","apply","6148056lnPlMM","length","hasOwnProperty","[object Symbol]","set","$1.*?","test","hash","get","__data__","create","call","\\$&","push","boolean"];return(Na=function(){return t})()}var ka,xa,Ra=Array[fa(179)],Pa=Function[fa(179)],Ca=Object.prototype,ja=Ta[fa(153)],Da=(ka=fa,(xa=/[^.]+$/.exec(ja&&ja.keys&&ja[ka(151)].IE_PROTO||""))?ka(140)+xa:""),La=Pa[fa(136)],Ua=Ca[fa(165)],Ma=Ca[fa(136)],Ba=RegExp("^"+La[fa(174)](Ua)[fa(152)](/[\\^$.*+?()[\]{}|]/g,fa(175))[fa(152)](/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,fa(168))+"$"),qa=Ta[fa(148)],Fa=Ra[fa(144)],Ha=Za(Ta,fa(158)),Wa=Za(Object,fa(173)),Ga=qa?qa[fa(179)]:void 0,Ka=Ga?Ga.toString:void 0;function Va(t){var e=fa,r=-1,n=t?t[e(164)]:0;for(this[e(142)]();++r<n;){var i=t[r];this[e(167)](i[0],i[1])}}function za(t){var e=fa,r=-1,n=t?t[e(164)]:0;for(this[e(142)]();++r<n;){var i=t[r];this.set(i[0],i[1])}}function Ja(t){var e=fa,r=-1,n=t?t[e(164)]:0;for(this.clear();++r<n;){var i=t[r];this[e(167)](i[0],i[1])}}function Ya(t,e){for(var r=t[fa(164)];r--;)if(iu(t[r][0],e))return r;return-1}function Xa(t){return!(!su(t)||(e=t,Da&&Da in e))&&(n=fa,(i=su(r=t)?Ma[n(174)](r):"")==da||i==ya||function(t){var e=fa,r=!1;if(null!=t&&typeof t[e(136)]!=e(132))try{r=!!(t+"")}catch(t){}return r}(t)?Ba:Ea).test(function(t){var e=fa;if(null!=t){try{return La[e(174)](t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e,r,n,i}function $a(t,e,r,n){var i,o=fa;if(!su(t))return t;for(var s,a,u,c,f,h,p,l,v=-1,d=(e=function(t,e){var r=fa;if(ou(t))return!1;var n=typeof t;return!(n!=r(157)&&"symbol"!=n&&"boolean"!=n&&null!=t&&!au(t))||(ga[r(169)](t)||!ma[r(169)](t)||null!=e&&t in Object(e))}(e,t)?[e]:ou(i=e)?i:eu(i))[o(164)],y=d-1,I=t;null!=I&&++v<d;){var m=ru(e[v]),g=r;if(v!=y){var b=I[m];void 0===(g=n?n(b,m,I):void 0)&&(g=su(b)?b:(h=e[v+1],l=void 0,l=fa,(p=null==(p=void 0)?va:p)&&(typeof h==l(157)||Sa[l(169)](h))&&h>-1&&h%1==0&&h<p?[]:{}))}u=g,c=void 0,f=void 0,c=fa,f=(s=I)[a=m],(!Ua[c(174)](s,a)||!iu(f,u)||void 0===u&&!(a in s))&&(s[a]=u),I=I[m]}return t}function Qa(t,e){var r,n,i,o=fa,s=t[o(172)];return n=fa,("string"==(i=typeof(r=e))||"number"==i||i==n(130)||i==n(177)?"__proto__"!==r:null===r)?s[typeof e==o(160)?o(160):o(170)]:s[o(143)]}function Za(t,e){var r,n,i=(n=e,null==(r=t)?void 0:r[n]);return Xa(i)?i:void 0}function tu(t,e){var r=Na();return(tu=function(t,e){return r[t-=129]})(t,e)}Va[fa(179)][fa(142)]=function(){this[fa(172)]=Wa?Wa(null):{}},Va[fa(179)][fa(180)]=function(t){var e=fa;return this[e(146)](t)&&delete this[e(172)][t]},Va[fa(179)][fa(171)]=function(t){var e=this[fa(172)];if(Wa){var r=e[t];return r===pa?void 0:r}return Ua.call(e,t)?e[t]:void 0},Va[fa(179)].has=function(t){var e=fa,r=this[e(172)];return Wa?void 0!==r[t]:Ua[e(174)](r,t)},Va[fa(179)].set=function(t,e){return this[fa(172)][t]=Wa&&void 0===e?pa:e,this},za[fa(179)].clear=function(){this.__data__=[]},za[fa(179)][fa(180)]=function(t){var e=fa,r=this[e(172)],n=Ya(r,t);return!(n<0)&&(n==r[e(164)]-1?r.pop():Fa[e(174)](r,n,1),!0)},za[fa(179)][fa(171)]=function(t){var e=this[fa(172)],r=Ya(e,t);return r<0?void 0:e[r][1]},za[fa(179)].has=function(t){return Ya(this.__data__,t)>-1},za.prototype.set=function(t,e){var r=fa,n=this[r(172)],i=Ya(n,t);return i<0?n[r(176)]([t,e]):n[i][1]=e,this},Ja[fa(179)][fa(142)]=function(){this[fa(172)]={hash:new Va,map:new(Ha||za),string:new Va}},Ja[fa(179)][fa(180)]=function(t){var e=fa;return Qa(this,t)[e(180)](t)},Ja[fa(179)].get=function(t){var e=fa;return Qa(this,t)[e(171)](t)},Ja[fa(179)][fa(146)]=function(t){var e=fa;return Qa(this,t)[e(146)](t)},Ja[fa(179)][fa(167)]=function(t,e){var r=fa;return Qa(this,t)[r(167)](t,e),this};var eu=nu((function(t){var e,r=fa;t=null==(e=t)?"":function(t){var e=fa;if(typeof t==e(160))return t;if(au(t))return Ka?Ka[e(174)](t):"";var r=t+"";return"0"==r&&1/t==-la?"-0":r}(e);var n=[];return ba[r(169)](t)&&n[r(176)](""),t[r(152)](wa,(function(t,e,i,o){var s=r;n[s(176)](i?o[s(152)](_a,"$1"):e||t)})),n}));function ru(t){if(typeof t==fa(160)||au(t))return t;var e=t+"";return"0"==e&&1/t==-la?"-0":e}function nu(t,e){var r=fa;if(typeof t!=r(132)||e&&"function"!=typeof e)throw new TypeError(ha);var n=function(){var i=r,o=arguments,s=e?e.apply(this,o):o[0],a=n.cache;if(a[i(146)](s))return a[i(171)](s);var u=t[i(162)](this,o);return n.cache=a[i(167)](s,u),u};return n[r(141)]=new(nu[r(178)]||Ja),n}function iu(t,e){return t===e||t!=t&&e!=e}nu[fa(178)]=Ja;var ou=Array[fa(133)];function su(t){var e=fa,r=typeof t;return!!t&&(r==e(131)||r==e(132))}function au(t){var e,r=fa;return typeof t==r(130)||!!(e=t)&&typeof e==fa(131)&&Ma[r(174)](t)==Ia}var uu=function(t,e,r){return null==t?t:$a(t,e,r)},cu=h[fa(155)](uu),fu=Yu;!function(t,e){for(var r=Yu,n=Gu();;)try{if(173501===parseInt(r(519))/1+-parseInt(r(520))/2+-parseInt(r(518))/3*(-parseInt(r(511))/4)+-parseInt(r(495))/5*(parseInt(r(480))/6)+-parseInt(r(517))/7*(parseInt(r(500))/8)+parseInt(r(484))/9+parseInt(r(470))/10*(parseInt(r(516))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var hu=fu(499),pu=fu(514),lu=1/0,vu="[object Function]",du=fu(489),yu=fu(472),Iu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mu=/^\w*$/,gu=/^\./,bu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wu=/\\(\\)?/g,_u=/^\[object .+?Constructor\]$/,Eu="object"==typeof h[fu(479)]&&u&&u[fu(515)]===Object&&h[fu(479)],Su=typeof self==fu(507)&&self&&self[fu(515)]===Object&&self,Ou=Eu||Su||Function(fu(471))();var Au,Tu,Nu=Array[fu(481)],ku=Function[fu(481)],xu=Object[fu(481)],Ru=Ou[fu(483)],Pu=(Tu=/[^.]+$/[(Au=fu)(506)](Ru&&Ru[Au(469)]&&Ru[Au(469)].IE_PROTO||""))?Au(498)+Tu:"",Cu=ku[fu(505)],ju=xu.hasOwnProperty,Du=xu[fu(505)],Lu=RegExp("^"+Cu[fu(478)](ju).replace(/[\\^$.*+?()[\]{}|]/g,fu(503))[fu(512)](/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Uu=Ou[fu(486)],Mu=Nu[fu(510)],Bu=Zu(Ou,fu(477)),qu=Zu(Object,fu(513)),Fu=Uu?Uu[fu(481)]:void 0,Hu=Fu?Fu[fu(505)]:void 0;function Wu(t){var e=fu,r=-1,n=t?t[e(474)]:0;for(this[e(504)]();++r<n;){var i=t[r];this[e(488)](i[0],i[1])}}function Gu(){var t=["delete","symbol","\\$&","clear","toString","exec","object","pop","Cache","splice","678092CzpksZ","replace","create","__lodash_hash_undefined__","Object","869UszEuR","1685663HquXZI","6NIVFLQ","136374TycpqC","143232xeZuPG","apply","keys","16840yaFxOr","return this","[object Symbol]","push","length","__proto__","isArray","Map","call","commonjsGlobal","54TiOQfL","prototype","test","__core-js_shared__","997803ZjXfpA","__data__","Symbol","boolean","set","[object GeneratorFunction]","number","get","map","has","hash","129665EYDYyx","function","string","Symbol(src)_1.","Expected a function","8whLLfs"];return(Gu=function(){return t})()}function Ku(t){var e=fu,r=-1,n=t?t.length:0;for(this[e(504)]();++r<n;){var i=t[r];this[e(488)](i[0],i[1])}}function Vu(t){var e=fu,r=-1,n=t?t[e(474)]:0;for(this.clear();++r<n;){var i=t[r];this[e(488)](i[0],i[1])}}function zu(t,e){for(var r,n,i=t[fu(474)];i--;)if((r=t[i][0])===(n=e)||r!=r&&n!=n)return i;return-1}function Ju(t){var e,r,n,i=fu;return!(!oc(t)||(e=t,Pu&&Pu in e))&&((n=oc(r=t)?Du.call(r):"")==vu||n==du||function(t){var e=!1;if(null!=t&&"function"!=typeof t[fu(505)])try{e=!!(t+"")}catch(t){}return e}(t)?Lu:_u)[i(482)](function(t){if(null!=t){try{return Cu.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function Yu(t,e){var r=Gu();return(Yu=function(t,e){return r[t-=468]})(t,e)}function Xu(t,e){var r,n,i=fu;e=tc(e,t)?[e]:$u(e),r=t,t=1==(n=e)[fu(474)]?r:function(t,e){for(var r=fu,n=0,i=(e=tc(e,t)?[e]:$u(e))[r(474)];null!=t&&n<i;)t=t[rc(e[n++])];return n&&n==i?t:void 0}(r,function(t,e,r){var n=-1,i=t[fu(474)];e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}(n,0,-1));var o,s,a,u=rc((s=fu,(a=(o=e)?o[s(474)]:0)?o[a-1]:void 0));return!(null!=t&&ju[i(478)](t,u))||delete t[u]}function $u(t){return ic(t)?t:ec(t)}function Qu(t,e){var r,n,i,o=fu,s=t[o(485)];return((i=typeof(r=e))==(n=fu)(497)||i==n(490)||"symbol"==i||i==n(487)?r!==n(475):null===r)?s[typeof e==o(497)?"string":o(494)]:s[o(492)]}function Zu(t,e){var r,n,i=(n=e,null==(r=t)?void 0:r[n]);return Ju(i)?i:void 0}function tc(t,e){var r=fu;if(ic(t))return!1;var n=typeof t;return!(n!=r(490)&&"symbol"!=n&&n!=r(487)&&null!=t&&!sc(t))||(mu[r(482)](t)||!Iu[r(482)](t)||null!=e&&t in Object(e))}Wu[fu(481)][fu(504)]=function(){this[fu(485)]=qu?qu(null):{}},Wu[fu(481)][fu(501)]=function(t){return this[fu(493)](t)&&delete this.__data__[t]},Wu[fu(481)][fu(491)]=function(t){var e=fu,r=this[e(485)];if(qu){var n=r[t];return n===pu?void 0:n}return ju[e(478)](r,t)?r[t]:void 0},Wu.prototype[fu(493)]=function(t){var e=fu,r=this[e(485)];return qu?void 0!==r[t]:ju[e(478)](r,t)},Wu[fu(481)][fu(488)]=function(t,e){return this[fu(485)][t]=qu&&void 0===e?pu:e,this},Ku[fu(481)][fu(504)]=function(){this[fu(485)]=[]},Ku.prototype.delete=function(t){var e=fu,r=this[e(485)],n=zu(r,t);return!(n<0)&&(n==r[e(474)]-1?r[e(508)]():Mu.call(r,n,1),!0)},Ku[fu(481)][fu(491)]=function(t){var e=this[fu(485)],r=zu(e,t);return r<0?void 0:e[r][1]},Ku[fu(481)][fu(493)]=function(t){return zu(this.__data__,t)>-1},Ku[fu(481)][fu(488)]=function(t,e){var r=fu,n=this[r(485)],i=zu(n,t);return i<0?n[r(473)]([t,e]):n[i][1]=e,this},Vu[fu(481)][fu(504)]=function(){this[fu(485)]={hash:new Wu,map:new(Bu||Ku),string:new Wu}},Vu[fu(481)][fu(501)]=function(t){var e=fu;return Qu(this,t)[e(501)](t)},Vu.prototype[fu(491)]=function(t){var e=fu;return Qu(this,t)[e(491)](t)},Vu[fu(481)].has=function(t){var e=fu;return Qu(this,t)[e(493)](t)},Vu[fu(481)].set=function(t,e){var r=fu;return Qu(this,t)[r(488)](t,e),this};var ec=nc((function(t){var e,r=fu;t=null==(e=t)?"":function(t){var e=fu;if(typeof t==e(497))return t;if(sc(t))return Hu?Hu[e(478)](t):"";var r=t+"";return"0"==r&&1/t==-lu?"-0":r}(e);var n=[];return gu.test(t)&&n[r(473)](""),t[r(512)](bu,(function(t,e,i,o){var s=r;n[s(473)](i?o[s(512)](wu,"$1"):e||t)})),n}));function rc(t){if("string"==typeof t||sc(t))return t;var e=t+"";return"0"==e&&1/t==-lu?"-0":e}function nc(t,e){var r=fu;if(typeof t!=r(496)||e&&typeof e!=r(496))throw new TypeError(hu);var n=function(){var i=r,o=arguments,s=e?e[i(468)](this,o):o[0],a=n.cache;if(a.has(s))return a[i(491)](s);var u=t[i(468)](this,o);return n.cache=a[i(488)](s,u),u};return n.cache=new(nc[r(509)]||Vu),n}nc[fu(509)]=Vu;var ic=Array[fu(476)];function oc(t){var e=fu,r=typeof t;return!!t&&(r==e(507)||r==e(496))}function sc(t){var e,r=fu;return typeof t==r(502)||!!(e=t)&&typeof e==fu(507)&&Du[r(478)](t)==yu}var ac=c((function(t,e){return null==t||Xu(t,e)})),uc={exports:{}};function cc(t,e){var r=hc();return(cc=function(t,e){return r[t-=227]})(t,e)}var fc=cc;function hc(){var t=["DataView","source","callee","[object Arguments]","[object Symbol]","10LsTnJA","[object Number]","[object Int32Array]","Object","__lodash_hash_undefined__","__core-js_shared__","length","lastIndex","test","Symbol","set","193372sUykCc","call","WeakMap","Set","byteOffset","[object WeakMap]","390917bcUCUq","[object Set]","3310510jLqfmP","push","exports","[object Error]","[object Map]","getPrototypeOf","__proto__","[object Uint16Array]","string","function","[object Int16Array]","size","toString","[object String]","symbol","valueOf","nodeType","clear","isBuffer","slice","create","3307224YnBjYV","getOwnPropertySymbols","266637yrWZAi","[object Function]","[object Promise]","buffer","[object Date]","198LGMHLG","[object Int8Array]","input","[object Boolean]","return this","keys","index","6XCueBP","delete","copy","hasOwnProperty","byteLength","[object RegExp]","boolean","add","object","[object Uint8Array]","number","prototype","$1.*?","pop","IE_PROTO","constructor","commonjsGlobal","get","propertyIsEnumerable","1506794ozRpEI","splice","__data__","[object DataView]","12508218VKpyAE","[object Object]","replace","has","[object Array]","exec","[object Uint32Array]","forEach"];return(hc=function(){return t})()}!function(t,e){for(var r=cc,n=hc();;)try{if(666130===parseInt(r(261))/1+parseInt(r(227))/2+parseInt(r(298))/3*(-parseInt(r(255))/4)+-parseInt(r(263))/5+parseInt(r(291))/6*(parseInt(r(286))/7)+parseInt(r(284))/8+parseInt(r(231))/9*(-parseInt(r(244))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),fc(265),function(t,e){var r=fc,n=r(248),i=9007199254740991,o=r(242),s=r(235),a=r(294),c=r(290),f=r(266),p=r(287),l="[object GeneratorFunction]",v=r(267),d=r(245),y=r(232),I=r(288),m=r(303),g=r(262),b=r(276),w=r(243),_=r(260),E="[object ArrayBuffer]",S=r(230),O="[object Float32Array]",A="[object Float64Array]",T=r(292),N=r(273),k=r(246),x=r(307),R="[object Uint8ClampedArray]",P=r(270),C=r(237),j=/\w*$/,D=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,U={};U[o]=U[s]=U[E]=U[S]=U[a]=U[c]=U[O]=U[A]=U[T]=U[N]=U[k]=U[v]=U[d]=U[y]=U[m]=U[g]=U[b]=U[w]=U[x]=U[R]=U[P]=U[C]=!0,U[f]=U[p]=U[_]=!1;var M=typeof h[r(314)]==r(306)&&u&&h[r(314)][r(247)]===Object&&h[r(314)],B=typeof self==r(306)&&self&&self[r(247)]===Object&&self,q=M||B||Function(r(295))(),F=r(306)==r(306)&&e&&!e.nodeType&&e,H=F&&"object"==r(306)&&t&&!t[r(279)]&&t,W=H&&H[r(265)]===F;function G(t,e){return t.set(e[0],e[1]),t}function K(t,e){return t[r(305)](e),t}function V(t,e,n,i){var o=-1,s=t?t[r(250)]:0;for(i&&s&&(n=t[++o]);++o<s;)n=e(n,t[o],o,t);return n}function z(t){var e=r,n=!1;if(null!=t&&typeof t[e(275)]!=e(272))try{n=!!(t+"")}catch(t){}return n}function J(t){var e=r,n=-1,i=Array(t[e(274)]);return t[e(238)]((function(t,e){i[++n]=[e,t]})),i}function Y(t,e){return function(r){return t(e(r))}}function X(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var $,Q,Z=Array[r(309)],tt=Function[r(309)],et=Object[r(309)],rt=q[r(249)],nt=($=r,(Q=/[^.]+$/.exec(rt&&rt[$(296)]&&rt[$(296)][$(312)]||""))?"Symbol(src)_1."+Q:""),it=tt.toString,ot=et[r(301)],st=et[r(275)],at=RegExp("^"+it.call(ot)[r(233)](/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,r(310))+"$"),ut=W?q.Buffer:void 0,ct=q[r(253)],ft=q.Uint8Array,ht=Y(Object[r(268)],Object),pt=Object.create,lt=et[r(316)],vt=Z[r(228)],dt=Object[r(285)],yt=ut?ut[r(281)]:void 0,It=Y(Object[r(296)],Object),mt=Wt(q,r(239)),gt=Wt(q,"Map"),bt=Wt(q,"Promise"),wt=Wt(q,r(258)),_t=Wt(q,r(257)),Et=Wt(Object,r(283)),St=zt(mt),Ot=zt(gt),At=zt(bt),Tt=zt(wt),Nt=zt(_t),kt=ct?ct[r(309)]:void 0,xt=kt?kt[r(278)]:void 0;function Rt(t){var e=r,n=-1,i=t?t[e(250)]:0;for(this[e(280)]();++n<i;){var o=t[n];this[e(254)](o[0],o[1])}}function Pt(t){var e=r,n=-1,i=t?t[e(250)]:0;for(this[e(280)]();++n<i;){var o=t[n];this[e(254)](o[0],o[1])}}function Ct(t){var e=-1,n=t?t[r(250)]:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function jt(t){this[r(229)]=new Pt(t)}function Dt(t,e){var n,s,a,u,c,f,h=r,p=Yt(t)||(s=r,(u=a=n=t)&&"object"==typeof u&&Xt(a)&&ot[s(256)](n,s(241))&&(!lt[s(256)](n,s(241))||st[s(256)](n)==o))?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],l=p[h(250)],v=!!l;for(var d in t)(e||ot[h(256)](t,d))&&(!v||!("length"==d||(c=d,f=l,f=null==f?i:f,f&&("number"==typeof c||L.test(c))&&c>-1&&c%1==0&&c<f)))&&p.push(d);return p}function Lt(t,e,n){var i=r,o=t[e];(!ot[i(256)](t,e)||!Jt(o,n)||void 0===n&&!(e in t))&&(t[e]=n)}function Ut(t,e){for(var r=t.length;r--;)if(Jt(t[r][0],e))return r;return-1}function Mt(t,e,n,i,s,u,f){var h,I=r;if(i&&(h=u?i(t,s,u,f):i(t)),void 0!==h)return h;if(!Zt(t))return t;var _,D,L,M,B,q,F,H,W,Y,$=Yt(t);if($){if(W=(F=t)[(H=r)(250)],Y=F.constructor(W),W&&typeof F[0]==H(271)&&ot.call(F,H(297))&&(Y[H(297)]=F.index,Y.input=F[H(293)]),h=Y,!e)return function(t,e){var n=-1,i=t[r(250)];e||(e=Array(i));for(;++n<i;)e[n]=t[n];return e}(t,h)}else{var Q=Kt(t),Z=Q==p||Q==l;if($t(t))return function(t,e){var n=r;if(e)return t[n(282)]();var i=new(t[n(313)])(t[n(250)]);return t[n(300)](i),i}(t,e);if(Q==y||Q==o||Z&&!u){if(z(t))return u?t:{};if(h="function"!=typeof(B=Z?{}:t)[r(313)]||Vt(B)?{}:Zt(q=ht(B))?pt(q):{},!e)return _=t,M=t,D=(L=h)&&Ft(M,te(M),L),Ft(_,Gt(_),D)}else{if(!U[Q])return u?t:{};h=function(t,e,n,i){var o=t.constructor;switch(e){case E:return qt(t);case a:case c:return new o(+t);case S:return U=t,M=r,B=i?qt(U.buffer):U[M(289)],new(U[M(313)])(B,U[M(259)],U[M(302)]);case O:case A:case T:case N:case k:case x:case R:case P:case C:return _=t,D=r,L=i?qt(_[D(289)]):_[D(289)],new(_[D(313)])(L,_.byteOffset,_[D(250)]);case v:return y=t,I=n,V(i?I(J(y),!0):J(y),G,new y.constructor);case d:case b:return new o(t);case m:return(l=new((h=t)[(p=r)(313)])(h[p(240)],j[p(236)](h)))[p(251)]=h[p(251)],l;case g:return u=t,f=n,V(i?f(X(u),!0):X(u),K,new u.constructor);case w:return s=t,xt?Object(xt.call(s)):{}}var s;var u,f;var h,p,l;var y,I;var _,D,L;var U,M,B}(t,Q,Mt,e)}}f||(f=new jt);var tt,et,rt,nt=f.get(t);if(nt)return nt;if(f[I(254)](t,h),!$)var it=n?(et=Gt,rt=te(tt=t),Yt(tt)?rt:function(t,e){for(var n=r,i=-1,o=e.length,s=t[n(250)];++i<o;)t[s+i]=e[i];return t}(rt,et(tt))):te(t);return function(t,e){for(var n=-1,i=t?t[r(250)]:0;++n<i&&!1!==e(t[n],n,t););}(it||t,(function(r,o){it&&(r=t[o=r]),Lt(h,o,Mt(r,e,n,i,o,t,f))})),h}function Bt(t){var e,n=r;return!(!Zt(t)||(e=t,nt&&nt in e))&&(Qt(t)||z(t)?at:D)[n(252)](zt(t))}function qt(t){var e=r,n=new(t[e(313)])(t[e(302)]);return new ft(n)[e(254)](new ft(t)),n}function Ft(t,e,n,i){n||(n={});for(var o=-1,s=e[r(250)];++o<s;){var a=e[o],u=i?i(n[a],t[a],a,n,t):void 0;Lt(n,a,void 0===u?t[a]:u)}return n}function Ht(t,e){var n,i,o,s=r,a=t[s(229)];return((o=typeof(n=e))==(i=r)(271)||o==i(308)||o==i(277)||o==i(304)?n!==i(269):null===n)?a[typeof e==s(271)?"string":"hash"]:a.map}function Wt(t,e){var r,n,i=(n=e,null==(r=t)?void 0:r[n]);return Bt(i)?i:void 0}Rt[r(309)][r(280)]=function(){this[r(229)]=Et?Et(null):{}},Rt[r(309)][r(299)]=function(t){var e=r;return this.has(t)&&delete this[e(229)][t]},Rt[r(309)][r(315)]=function(t){var e=r,i=this[e(229)];if(Et){var o=i[t];return o===n?void 0:o}return ot[e(256)](i,t)?i[t]:void 0},Rt[r(309)][r(234)]=function(t){var e=this[r(229)];return Et?void 0!==e[t]:ot.call(e,t)},Rt.prototype[r(254)]=function(t,e){return this.__data__[t]=Et&&void 0===e?n:e,this},Pt[r(309)][r(280)]=function(){this[r(229)]=[]},Pt[r(309)][r(299)]=function(t){var e=r,n=this[e(229)],i=Ut(n,t);return!(i<0)&&(i==n[e(250)]-1?n[e(311)]():vt[e(256)](n,i,1),!0)},Pt[r(309)][r(315)]=function(t){var e=this.__data__,r=Ut(e,t);return r<0?void 0:e[r][1]},Pt[r(309)].has=function(t){return Ut(this.__data__,t)>-1},Pt[r(309)][r(254)]=function(t,e){var n=r,i=this[n(229)],o=Ut(i,t);return o<0?i[n(264)]([t,e]):i[o][1]=e,this},Ct[r(309)][r(280)]=function(){this[r(229)]={hash:new Rt,map:new(gt||Pt),string:new Rt}},Ct[r(309)][r(299)]=function(t){var e=r;return Ht(this,t)[e(299)](t)},Ct[r(309)][r(315)]=function(t){var e=r;return Ht(this,t)[e(315)](t)},Ct[r(309)].has=function(t){var e=r;return Ht(this,t)[e(234)](t)},Ct[r(309)][r(254)]=function(t,e){var n=r;return Ht(this,t)[n(254)](t,e),this},jt[r(309)][r(280)]=function(){this[r(229)]=new Pt},jt[r(309)][r(299)]=function(t){var e=r;return this[e(229)][e(299)](t)},jt[r(309)][r(315)]=function(t){var e=r;return this[e(229)][e(315)](t)},jt[r(309)][r(234)]=function(t){var e=r;return this.__data__[e(234)](t)},jt[r(309)][r(254)]=function(t,e){var n=r,i=this.__data__;if(i instanceof Pt){var o=i[n(229)];if(!gt||o[n(250)]<199)return o[n(264)]([t,e]),this;i=this.__data__=new Ct(o)}return i[n(254)](t,e),this};var Gt=dt?Y(dt,Object):function(){return[]},Kt=function(t){return st.call(t)};function Vt(t){var e=r,n=t&&t.constructor;return t===(typeof n==e(272)&&n[e(309)]||et)}function zt(t){if(null!=t){try{return it.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Jt(t,e){return t===e||t!=t&&e!=e}(mt&&Kt(new mt(new ArrayBuffer(1)))!=S||gt&&Kt(new gt)!=v||bt&&Kt(bt.resolve())!=I||wt&&Kt(new wt)!=g||_t&&Kt(new _t)!=_)&&(Kt=function(t){var e=st[r(256)](t),n=e==y?t.constructor:void 0,i=n?zt(n):void 0;if(i)switch(i){case St:return S;case Ot:return v;case At:return I;case Tt:return g;case Nt:return _}return e});var Yt=Array.isArray;function Xt(t){var e;return null!=t&&(typeof(e=t[r(250)])==r(308)&&e>-1&&e%1==0&&e<=i)&&!Qt(t)}var $t=yt||function(){return!1};function Qt(t){var e=r,n=Zt(t)?st[e(256)](t):"";return n==p||n==l}function Zt(t){var e=typeof t;return!!t&&(e==r(306)||"function"==e)}function te(t){return Xt(t)?Dt(t):function(t){var e=r;if(!Vt(t))return It(t);var n=[];for(var i in Object(t))ot[e(256)](t,i)&&i!=e(313)&&n.push(i);return n}(t)}t.exports=function(t){return Mt(t,!0,!0)}}(uc,uc.exports);var pc=c(uc[fc(265)]);function lc(t,e){var r=dc();return(lc=function(t,e){return r[t-=356]})(t,e)}function vc(t){var e=lc;return void 0===t&&(t=""),(t?t+"_":"")+ +new Date+"_"+Math[e(358)]()}function dc(){var t=["1042vltaVI","1119xOMfOY","random","248aDypjX","29281ooFOFD","78359SEKoxW","5zvJFDf","162cWHRjC","13687036UtEwsd","INIT_EVENT","133340gIVlyL","511244tASccN","1872408RlcqKT"];return(dc=function(){return t})()}!function(t,e){for(var r=lc,n=dc();;)try{if(162020===-parseInt(r(361))/1+-parseInt(r(356))/2*(parseInt(r(357))/3)+parseInt(r(367))/4*(-parseInt(r(362))/5)+-parseInt(r(368))/6+-parseInt(r(360))/7*(parseInt(r(359))/8)+parseInt(r(363))/9*(-parseInt(r(366))/10)+parseInt(r(364))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),function(t,e){for(var r=Ic,n=mc();;)try{if(773736===-parseInt(r(396))/1*(parseInt(r(405))/2)+parseInt(r(401))/3*(parseInt(r(404))/4)+-parseInt(r(393))/5*(parseInt(r(406))/6)+parseInt(r(399))/7+-parseInt(r(402))/8*(-parseInt(r(407))/9)+parseInt(r(398))/10+parseInt(r(395))/11*(-parseInt(r(397))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var yc=function(t){var e=Ic;this[e(394)]=t[e(394)],this.onChange=t.onChange,this[e(403)]=t[e(403)],t[e(400)]&&Object[e(408)](this,"virtualClient",{get:function(){return t.virtualClient}})};function Ic(t,e){var r=mc();return(Ic=function(t,e){return r[t-=393]})(t,e)}function mc(){var t=["12bKZdNo","9uZIGwr","defineProperty","217010oArbtG","close","2658051hzdWPv","120391ElofTK","108NFUQjf","7243850lZTcsI","9637285fKJCMH","debug","991758flqLrq","8925872ydoVnx","onError","8BbNjGi","14vwPnbL"];return(mc=function(){return t})()}function gc(){var t=["1646280XOpKhg","type","docChanges","12PwPaYj","stringify","1570360mAXdRH","8IpCBPN","10467020JeQHbE","6933kRMBlJ","357661vnbTKn","docs","554792AtEDLU","3679137nDcnNC","defineProperties","2HvAULR","parse","msgType"];return(gc=function(){return t})()}function bc(t,e){var r=gc();return(bc=function(t,e){return r[t-=462]})(t,e)}!function(t,e){for(var r=bc,n=gc();;)try{if(211369===parseInt(r(462))/1*(-parseInt(r(467))/2)+-parseInt(r(478))/3+-parseInt(r(470))/4+-parseInt(r(475))/5+-parseInt(r(473))/6*(parseInt(r(464))/7)+-parseInt(r(476))/8*(-parseInt(r(465))/9)+parseInt(r(477))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var wc=function(t){var e,r,n=bc,i=t.id,o=t[n(472)],s=t[n(463)],a=t[n(469)],u=t[n(471)];Object[n(466)](this,{id:{get:function(){return i},enumerable:!0},docChanges:{get:function(){var t=n;return!e&&(e=JSON[t(468)](JSON[t(474)](o))),e},enumerable:!0},docs:{get:function(){var t=n;return!r&&(r=JSON[t(468)](JSON[t(474)](s))),r},enumerable:!0},msgType:{get:function(){return a},enumerable:!0},type:{get:function(){return u},enumerable:!0}})},_c=Tc;!function(t,e){for(var r=Tc,n=Ac();;)try{if(444039===-parseInt(r(525))/1+parseInt(r(517))/2+-parseInt(r(522))/3*(-parseInt(r(492))/4)+-parseInt(r(495))/5+parseInt(r(512))/6+-parseInt(r(488))/7*(-parseInt(r(503))/8)+parseInt(r(498))/9*(parseInt(r(491))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Ec,Sc=(Ec=function(t,e){var r=Tc;return(Ec=Object[r(509)]||{__proto__:[]}instanceof Array&&function(t,e){t[r(513)]=e}||function(t,e){var n=r;for(var i in e)e[n(520)](i)&&(t[i]=e[i])})(t,e)},function(t,e){var r=Tc;function n(){this.constructor=t}Ec(t,e),t.prototype=null===e?Object[r(518)](e):(n[r(501)]=e.prototype,new n)}),Oc=function(t){function e(e){var r=Tc,n=t.call(this,"Watch Error "+JSON.stringify(e.msgData)+r(487)+e[r(524)]+")")||this;return n[r(511)]=!0,n[r(527)]=e,n}return Sc(e,t),e}(Error);function Ac(){var t=["create","SDK_DATABASE_REALTIME_LISTENER_INIT_WATCH_FAIL","hasOwnProperty","__extends","39lJNxjY","UNKNOWN_ERROR","requestId","653482XPIGQB","apply","payload","message"," (requestid: ","9863IrVyGf","SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR","type","30uNjpep","4716BzOOLL","SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL"," | errMsg: ","3668030EABGoe","generic","SDK_DATABASE_REALTIME_LISTENER_CLOSE_WATCH_FAIL","1890441YvFdwJ","errCode","cancelled","prototype","SDK_DATABASE_REALTIME_LISTENER_REBUILD_WATCH_FAIL","4248wEKbkF","SDK_DATABASE_REALTIME_LISTENER_SERVER_ERROR_MSG","SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED","defineProperties","errCode: ","call","setPrototypeOf","errMsg","isRealtimeErrorMessageError","1578600RbjXyx","__proto__","timeout","SDK_DATABASE_REALTIME_LISTENER_RECEIVE_INVALID_SERVER_DATA","defineProperty","348748UDQjFe"];return(Ac=function(){return t})()}function Tc(t,e){var r=Ac();return(Tc=function(t,e){return r[t-=487]})(t,e)}var Nc=function(t){return null==t?void 0:t.isRealtimeErrorMessageError},kc=function(t){function e(){var e=Tc,r=null!==t&&t[e(526)](this,arguments)||this;return r.type=e(514),r[e(527)]=null,r.generic=!0,r}return Sc(e,t),e}(Error),xc=function(t){function e(){var e=Tc,r=null!==t&&t[e(526)](this,arguments)||this;return r[e(490)]=e(500),r[e(527)]=null,r[e(496)]=!0,r}return Sc(e,t),e}(Error),Rc=function(t){var e=_c;function r(e){var r=Tc,n=t[r(508)](this,e[r(510)])||this;return n[r(499)]=r(523),Object[r(506)](n,{message:{get:function(){var t=r;return t(507)+this.errCode+" "+(Pc[this[t(499)]]||"")+t(494)+this.errMsg},set:function(t){this[r(510)]=t}}}),n[r(499)]=e[r(499)]||r(523),n[r(510)]=e.errMsg,n}return Sc(r,t),Object[e(516)](r[e(501)],e(528),{get:function(){var t=e;return t(507)+this[t(499)]+t(494)+this[t(510)]},set:function(t){this[e(510)]=t},enumerable:!1,configurable:!0}),r}(Error),Pc={UNKNOWN_ERROR:_c(523),SDK_DATABASE_REALTIME_LISTENER_INIT_WATCH_FAIL:_c(519),SDK_DATABASE_REALTIME_LISTENER_RECONNECT_WATCH_FAIL:"SDK_DATABASE_REALTIME_LISTENER_RECONNECT_WATCH_FAIL",SDK_DATABASE_REALTIME_LISTENER_REBUILD_WATCH_FAIL:_c(502),SDK_DATABASE_REALTIME_LISTENER_CLOSE_WATCH_FAIL:_c(497),SDK_DATABASE_REALTIME_LISTENER_SERVER_ERROR_MSG:_c(504),SDK_DATABASE_REALTIME_LISTENER_RECEIVE_INVALID_SERVER_DATA:_c(515),SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_ERROR:"SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_ERROR",SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED:_c(505),SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL:_c(493),SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR:_c(489)},Cc=function(t){return void 0===t&&(t=0),new Promise((function(e){return setTimeout(e,t)}))},jc=Fc;!function(t,e){for(var r=Fc,n=Hc();;)try{if(589869===parseInt(r(232))/1*(parseInt(r(359))/2)+parseInt(r(266))/3+-parseInt(r(208))/4+parseInt(r(234))/5*(-parseInt(r(276))/6)+-parseInt(r(224))/7*(-parseInt(r(203))/8)+-parseInt(r(230))/9*(parseInt(r(314))/10)+parseInt(r(304))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Dc,Lc,Uc,Mc=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=Fc;function a(t){var e=Fc;try{c(n[e(281)](t))}catch(t){o(t)}}function u(t){var e=Fc;try{c(n[e(303)](t))}catch(t){o(t)}}function c(t){var e,n=Fc;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)})))[n(213)](a,u)}c((n=n[s(250)](t,e||[]))[s(281)]())}))},Bc=function(t,e){var r,n,i,o,s=jc,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(240)&&(o[Symbol[s(379)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(333));for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(302)]:o[0]?n[u(303)]||((i=n.return)&&i[u(321)](n),0):n[u(281)])&&!(i=i[u(321)](n,o[1]))[u(345)])return i;switch(n=0,i&&(o=[2&o[0],i[u(287)]]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a[u(237)]++,n=o[1],o=[0];continue;case 7:o=a.ops[u(277)](),a[u(355)][u(277)]();continue;default:if(!(i=a[u(355)],(i=i.length>0&&i[i[u(291)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a[u(237)]<i[1]){a.label=i[1],i=o;break}if(i&&a[u(237)]<i[2]){a[u(237)]=i[2],a.ops[u(215)](o);break}i[2]&&a[u(274)][u(277)](),a[u(355)][u(277)]();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},qc=function(){for(var t=jc,e=0,r=0,n=arguments.length;r<n;r++)e+=arguments[r][t(291)];var i=Array(e),o=0;for(r=0;r<n;r++)for(var s=arguments[r],a=0,u=s[t(291)];a<u;a++,o++)i[o]=s[a];return i};function Fc(t,e){var r=Hc();return(Fc=function(t,e){return r[t-=200]})(t,e)}function Hc(){var t=["updatedFields","expectEventId","ops","handleWatchEstablishmentError","6GViYVO","pop","[realtime listener] internal non-fatal error: sessionInfo lost after server event handling, this should never occur","SIGN_EXPIRED_ERROR","listener","next","INVALIID_ENV","RESUMING","doc","nextevent ","continue","value","__generator","_availableRetries","currEvent","length","dequeue","scheduleSendACK","object","COLLECTION_PERMISSION_DENIED","RemovedFields","sessionInfo","replace","[realtime] rebuildWatch cancelled on pause","DocID","reject","return","throw","4522826faohQi","_login","removedFields","[realtime] waitExpectedTimeoutLength ","_handleServerEvents","[realtime listener] internal non-fatal error: client eventId does not match with server event id after server event handling","payload","REBUILD_WATCH","update","enqueue","2124550RpAwqx","SDK_DATABASE_REALTIME_LISTENER_RECEIVE_INVALID_SERVER_DATA","QUERYID_INVALID_ERROR","_waitExpectedTimeoutId","filter"," but got ","[realtime] ","call","code","message","_initWatchPromise","getWaitExpectedTimeoutLength","onChange","handleServerEvents","fail","parse","debug","ERRORED"," ignored","Generator is already executing.","initWatch","UpdatedFields","PAUSED","handleCommonError","SIGN_PARAM_INVALID","SDK_DATABASE_REALTIME_LISTENER_SERVER_ERROR_MSG","onError","LOGGINGIN","error","_postHandleServerEventsValidityCheck","onWatchStart","done","CLOSING","onWatchClose","watchid_","send","resume","slice","CHECK_LAST","queueType","[realtime listener] internal non-fatal error: unexpected message received while ","trys","clearACKSchedule",'HandleServerEvents: full doc is not provided with dataType="limit" and queueType="enqueue" (requestId ',"SIGN_INVALID_ERROR","4OQjJrI","closeWithError",'HandleServerEvents: full doc is not provided with dataType="replace" (requestId ',"QueueType","INIT_WATCH"," use a retry ticket, now only ","sent","collectionName","ERROR","watchId","Doc","CHECK_EVENT","clearWaitExpectedEvent","find","msgData"," cancelled due to pause after unknownError","[realtime] client closed (","closeWatch","operationName"," - ","iterator","NEXT_EVENT","[realtime listener] internal non-fatal error: unexpected message received when the watch has ended with error","__awaiter","rebuildWatch","onceWSConnected","onNotRetryableError","_ackTimeoutId","664OEImzW","[realtime] client paused (","DataType","SDK_DATABASE_REALTIME_LISTENER_INIT_WATCH_FAIL","isWSConnected","555524YvQFQL","pause","[realtime listener] virtual client receive unexpected msg ","[realtime] initWatch cancelled on pause","limit","then","[realtime listener] internal non-fatal server error: unexpected update dataType event where no doc is associated.","push",") (","[realtime listener] internal non-fatal error: unexpected message received when the watch has closed","_id","[realtime listener] internal non-fatal server error: unexpected queueType update event where no doc is associated.","prototype","requestId","useRetryTicket","INITING","36827nomZwm","CHECK_LOGIN_FAILED","[realtime listener] internal non-fatal error: sessionInfo not found while message is received.","[realtime] client resume failed (","_rebuildWatchPromise","msgType","36mtopJZ","REBUILDING","559956yVGDJI","[realtime listener] internal non-fatal server error: unexpected remove event where no doc is associated.","3954690fFZBza","can not rebuildWatch without a successful initWatch (lack of sessionInfo)","sendACK","label","warn","events","function","CLOSE_WATCH","init","envId","watchStatus","SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL","onUnknownError","orderBy","[realtime listener] internal non-fatal error: handle server events failed with error: ","[realtime] rebuildWatch ","apply","SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR","findIndex","SYS_ERR","random","currentEventId","map","CLOSED","queryID","resolve","onTimeoutError","currentDocs","[realtime listener] internal non-fatal server error: unexpected limit dataType event where no doc is associated."," retry left","docId","ACTIVE","1205301nrJNaa","onCancelledError","log","login","query",") (watchId "];return(Hc=function(){return t})()}(Lc=Dc||(Dc={}))[(Uc=jc)(341)]=Uc(341),Lc[Uc(223)]=Uc(223),Lc[Uc(231)]=Uc(231),Lc.ACTIVE=Uc(265),Lc[Uc(331)]=Uc(331),Lc[Uc(346)]=Uc(346),Lc.CLOSED=Uc(257),Lc[Uc(336)]="PAUSED",Lc[Uc(283)]=Uc(283);var Wc=function(){var t=jc;function e(t){var e=Fc,r=this;this.watchStatus=Dc[e(223)],this._login=function(t,e){return Mc(r,void 0,void 0,(function(){var r;return Bc(this,(function(n){var i=Fc;switch(n[i(237)]){case 0:return this.watchStatus=Dc[i(341)],[4,this[i(269)](t,e)];case 1:return r=n.sent(),!this[i(243)]&&(this[i(243)]=r[i(243)]),[2,r]}}))}))},this.initWatch=function(t){return Mc(r,void 0,void 0,(function(){var e,r=this;return Bc(this,(function(n){var i=Fc;switch(n[i(237)]){case 0:if(this[i(324)])return[2,this._initWatchPromise];this[i(324)]=new Promise((function(e,n){return Mc(r,void 0,void 0,(function(){var r,i,o,s,a,u,c,f,h,p;return Bc(this,(function(l){var v=Fc;switch(l[v(237)]){case 0:return l[v(355)][v(215)]([0,3,,4]),this[v(244)]===Dc[v(336)]?(console.log(v(211)),[2,e()]):[4,this[v(305)](this.envId,t)];case 1:return r=l[v(365)]()[v(243)],this[v(244)]===Dc[v(336)]?(console[v(268)](v(211)),[2,e()]):(this[v(244)]=Dc.INITING,i={watchId:this.watchId,requestId:vc(),msgType:"INIT_WATCH",msgData:{envId:r,collName:this.collectionName,query:this[v(270)],limit:this[v(212)],orderBy:this[v(247)]}},[4,this[v(349)]({msg:i,waitResponse:!0,skipOnMessage:!0,timeout:1e4})]);case 2:if(o=l[v(365)](),s=o[v(373)],a=s.events,u=s[v(290)],this[v(297)]={queryID:o[v(373)].queryID,currentEventId:u-1,currentDocs:[]},a.length>0){for(c=0,f=a;c<f[v(291)];c++)f[c].ID=u;this[v(327)](o)}else this[v(297)][v(255)]=u,h=new wc({id:u,docChanges:[],docs:[],type:v(242)}),this[v(280)][v(326)](h),this.scheduleSendACK();return this[v(344)](this,this[v(297)][v(258)]),this[v(244)]=Dc[v(265)],this._availableRetries[v(363)]=2,e(),[3,4];case 3:return p=l[v(365)](),this[v(275)](p,{operationName:v(363),resolve:e,reject:n}),[3,4];case 4:return[2]}}))}))})),e=!1,n[i(237)]=1;case 1:return n.trys[i(215)]([1,,3,4]),[4,this[i(324)]];case 2:return n.sent(),e=!0,[3,4];case 3:return this._initWatchPromise=void 0,[7];case 4:return console[i(268)]("[realtime] initWatch "+(e?"success":i(328))),[2]}}))}))},this[e(383)]=function(t){return Mc(r,void 0,void 0,(function(){var e,r=this;return Bc(this,(function(n){var i=Fc;switch(n[i(237)]){case 0:if(this._rebuildWatchPromise)return[2,this[i(228)]];this._rebuildWatchPromise=new Promise((function(e,n){return Mc(r,void 0,void 0,(function(){var r,i,o,s;return Bc(this,(function(a){var u=Fc;switch(a[u(237)]){case 0:return a[u(355)].push([0,3,,4]),this[u(244)]===Dc.PAUSED?(console[u(268)](u(299)),[2,e()]):[4,this[u(305)](this[u(243)],t)];case 1:if(r=a[u(365)]()[u(243)],!this.sessionInfo)throw new Error(u(235));return this.watchStatus===Dc[u(336)]?(console[u(268)]("[realtime] rebuildWatch cancelled on pause"),[2,e()]):(this[u(244)]=Dc[u(231)],i={watchId:this[u(368)],requestId:vc(),msgType:u(311),msgData:{envId:r,collName:this.collectionName,queryID:this[u(297)][u(258)],eventID:this[u(297)].currentEventId}},[4,this[u(349)]({msg:i,waitResponse:!0,skipOnMessage:!1,timeout:1e4})]);case 2:return o=a.sent(),this.handleServerEvents(o),this[u(244)]=Dc[u(265)],this[u(289)].REBUILD_WATCH=2,e(),[3,4];case 3:return s=a[u(365)](),this[u(275)](s,{operationName:"REBUILD_WATCH",resolve:e,reject:n}),[3,4];case 4:return[2]}}))}))})),e=!1,n[i(237)]=1;case 1:return n[i(355)][i(215)]([1,,3,4]),[4,this[i(228)]];case 2:return n.sent(),e=!0,[3,4];case 3:return this[i(228)]=void 0,[7];case 4:return console[i(268)](i(249)+(e?"success":i(328))),[2]}}))}))},this[e(275)]=function(t,e){return Mc(r,void 0,void 0,(function(){var r,n,i,o=this;return Bc(this,(function(s){var a=Fc;return r=e.operationName===a(363),n=function(){var n=a;o[n(360)](new Rc({errCode:r?Pc[n(206)]:Pc.SDK_DATABASE_REALTIME_LISTENER_REBUILD_WATCH_FAIL,errMsg:t})),e.reject(t)},i=function(t){var i=a;o[i(222)](e[i(377)])?r?(o[i(324)]=void 0,e.resolve(o.initWatch(t))):(o[i(228)]=void 0,e[i(259)](o.rebuildWatch(t))):n()},this[a(337)](t,{onSignError:function(){return i(!0)},onTimeoutError:function(){return i(!1)},onNotRetryableError:n,onCancelledError:e[a(301)],onUnknownError:function(){return Mc(o,void 0,void 0,(function(){var t,r=this;return Bc(this,(function(n){var o=Fc;switch(n.label){case 0:return n.trys[o(215)]([0,8,,9]),t=function(){return Mc(r,void 0,void 0,(function(){return Bc(this,(function(t){var e=Fc;switch(t.label){case 0:return this[e(209)](),[4,this[e(200)]()];case 1:return t.sent(),i(!0),[2]}}))}))},this.isWSConnected()?[3,2]:[4,t()];case 1:return n[o(365)](),[3,7];case 2:return[4,Cc(100)];case 3:return n.sent(),this[o(244)]!==Dc[o(336)]?[3,4]:(e[o(301)](new xc(e[o(377)]+o(374))),[3,7]);case 4:return this[o(207)]()?[3,6]:[4,t()];case 5:return n.sent(),[3,7];case 6:i(!1),n[o(237)]=7;case 7:return[3,9];case 8:return n.sent(),i(!0),[3,9];case 9:return[2]}}))}))}}),[2]}))}))},this[e(376)]=function(){return Mc(r,void 0,void 0,(function(){var t,e,r;return Bc(this,(function(n){var i=Fc;switch(n[i(237)]){case 0:if(t=this.sessionInfo?this.sessionInfo[i(258)]:"",this[i(244)]!==Dc[i(265)])return this.watchStatus=Dc[i(257)],this[i(347)](this,t),[2];n[i(237)]=1;case 1:return n[i(355)][i(215)]([1,3,4,5]),this[i(244)]=Dc.CLOSING,e={watchId:this.watchId,requestId:vc(),msgType:i(241),msgData:null},[4,this[i(349)]({msg:e})];case 2:return n[i(365)](),this[i(297)]=void 0,this[i(244)]=Dc[i(257)],[3,5];case 3:return r=n[i(365)](),this.closeWithError(new Rc({errCode:Pc.SDK_DATABASE_REALTIME_LISTENER_CLOSE_WATCH_FAIL,errMsg:r})),[3,5];case 4:return this[i(347)](this,t),[7];case 5:return[2]}}))}))},this[e(293)]=function(){var t=e;r[t(356)](),r[t(202)]=setTimeout((function(){r[t(317)]?r.scheduleSendACK():r.sendACK()}),1e4)},this.clearACKSchedule=function(){var t=e;r[t(202)]&&clearTimeout(r[t(202)])},this[e(236)]=function(){return Mc(r,void 0,void 0,(function(){var t,e,r;return Bc(this,(function(n){var i=Fc;switch(n[i(237)]){case 0:return n[i(355)][i(215)]([0,2,,3]),this.watchStatus!==Dc[i(265)]?(this[i(293)](),[2]):this[i(297)]?(t={watchId:this[i(368)],requestId:vc(),msgType:i(352),msgData:{queryID:this.sessionInfo[i(258)],eventID:this.sessionInfo[i(255)]}},[4,this[i(349)]({msg:t})]):(console[i(238)]("[realtime listener] can not send ack without a successful initWatch (lack of sessionInfo)"),[2]);case 1:return n[i(365)](),this[i(293)](),[3,3];case 2:if(e=n[i(365)](),Nc(e))switch((r=e[i(310)])[i(373)].code){case i(225):case i(279):case i(358):case"SIGN_PARAM_INVALID":return this[i(383)](),[2];case"QUERYID_INVALID_ERROR":case i(253):case"INVALIID_ENV":case"COLLECTION_PERMISSION_DENIED":return this[i(360)](new Rc({errCode:Pc[i(245)],errMsg:r[i(373)].code})),[2]}return this._availableRetries.CHECK_LAST&&this._availableRetries.CHECK_LAST>0?(this[i(289)].CHECK_LAST--,this[i(293)]()):this[i(360)](new Rc({errCode:Pc.SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL,errMsg:e})),[3,3];case 3:return[2]}}))}))},this[e(337)]=function(t,r){var n,i=e;if(Nc(t)){switch(t.payload[i(373)][i(322)]){case"CHECK_LOGIN_FAILED":case i(279):case i(358):case i(338):return void r.onSignError(t);case i(316):case i(253):case i(282):case i(295):default:return void r[i(201)](t)}}else{if(t[(n=_c)(490)]===n(514))return void r[i(260)](t);if("cancelled"===t[_c(490)])return void r[i(267)](t)}r[i(246)](t)},this.watchId=e(348)+ +new Date+"_"+Math[e(254)](),this[e(243)]=t[e(243)],this[e(366)]=t.collectionName,this[e(270)]=t[e(270)],this[e(212)]=t.limit,this[e(247)]=t.orderBy,this.send=t[e(349)],this[e(269)]=t.login,this[e(207)]=t[e(207)],this.onceWSConnected=t.onceWSConnected,this[e(325)]=t[e(325)],this[e(344)]=t[e(344)],this[e(347)]=t[e(347)],this[e(330)]=t[e(330)],this[e(289)]={INIT_WATCH:2,REBUILD_WATCH:2,CHECK_LAST:2},this[e(280)]=new yc({close:this[e(376)],onChange:t[e(326)],onError:t[e(340)],debug:this[e(330)],virtualClient:this}),this[e(334)]()}return e[t(220)].onMessage=function(e){var r=t,n=this;switch(this[r(244)]){case Dc[r(336)]:if(e[r(229)]!==r(367))return;break;case Dc.LOGGINGIN:case Dc.INITING:case Dc[r(231)]:return void console[r(238)](r(354)+this[r(244)]);case Dc[r(257)]:return void console[r(238)](r(217));case Dc[r(331)]:return void console[r(238)](r(381))}if(this[r(297)])switch(this[r(293)](),e[r(229)]){case r(380):console[r(238)](r(285)+e[r(373)][r(290)]+r(332),e),this[r(327)](e);break;case r(370):this[r(297)][r(255)]<e[r(373)].currEvent&&(this[r(297)].expectEventId=e[r(373)][r(290)],this[r(371)](),this._waitExpectedTimeoutId=setTimeout((function(){n[r(383)]()}),this[r(325)]()),console[r(268)](r(307)+this.getWaitExpectedTimeoutLength()));break;case"ERROR":this.closeWithError(new Rc({errCode:Pc[r(339)],errMsg:e[r(373)][r(322)]+r(378)+e[r(373)][r(323)]}));break;default:console.warn(r(210)+e[r(229)]+": ",e)}else console[r(238)](r(226))},e[t(220)].closeWithError=function(e){var r=t;this.watchStatus=Dc[r(331)],this[r(356)](),this[r(280)][r(340)](e),this[r(347)](this,this.sessionInfo&&this.sessionInfo.queryID||""),console[r(268)](r(375)+this[r(366)]+" "+this[r(270)]+r(271)+this[r(368)]+")")},e[t(220)].pause=function(){var e=t;this[e(244)]=Dc[e(336)],console[e(268)](e(204)+this[e(366)]+" "+this[e(270)]+e(271)+this[e(368)]+")")},e[t(220)][t(350)]=function(){return Mc(this,void 0,void 0,(function(){var t;return Bc(this,(function(e){var r=Fc;switch(e[r(237)]){case 0:this[r(244)]=Dc[r(283)],console[r(268)]("[realtime] client resuming with "+(this.sessionInfo?r(311):r(363))+" ("+this[r(366)]+" "+this[r(270)]+r(216)+this[r(368)]+")"),e[r(237)]=1;case 1:return e[r(355)][r(215)]([1,3,,4]),[4,this[r(297)]?this.rebuildWatch():this[r(334)]()];case 2:return e[r(365)](),console[r(268)]("[realtime] client successfully resumed ("+this[r(366)]+" "+this[r(270)]+r(216)+this.watchId+")"),[3,4];case 3:return t=e.sent(),console[r(342)](r(227)+this.collectionName+" "+this[r(270)]+") ("+this.watchId+")",t),[3,4];case 4:return[2]}}))}))},e[t(220)].useRetryTicket=function(e){var r=t;return!!(this[r(289)][e]&&this[r(289)][e]>0)&&(this[r(289)][e]--,console[r(268)](r(320)+e+r(364)+this[r(289)][e]+r(263)),!0)},e[t(220)][t(327)]=function(t){return Mc(this,void 0,void 0,(function(){var e;return Bc(this,(function(r){var n=Fc;switch(r.label){case 0:return r[n(355)].push([0,2,,3]),this[n(293)](),[4,this[n(308)](t)];case 1:return r[n(365)](),this[n(343)](t),[3,3];case 2:throw e=r[n(365)](),console[n(342)](n(248),e),e;case 3:return[2]}}))}))},e.prototype._handleServerEvents=function(t){return Mc(this,void 0,void 0,(function(){var e,r,n,i,o,s,a,u,c,f,h,p;return Bc(this,(function(l){var v=Fc;switch(l[v(237)]){case 0:if(e=t[v(221)],r=t.msgData[v(239)],n=t[v(229)],!r.length||!this[v(297)])return[2];i=this[v(297)];try{o=r[v(256)](Gc)}catch(t){return this.closeWithError(new Rc({errCode:Pc[v(315)],errMsg:t})),[2]}s=qc(i[v(261)]),a=!1,u=function(r,u){var f,h,p,l,v,d,y,I,m,g,b;return Bc(this,(function(w){var _=Fc;switch(w[_(237)]){case 0:return f=o[r],i.currentEventId>=f.id?(!o[r-1]||f.id>o[r-1].id?console[_(238)]("[realtime] duplicate event received, cur "+i[_(255)]+_(319)+f.id):console.error("[realtime listener] server non-fatal error: events out of order (the latter event's id is smaller than that of the former) (requestId "+e+")"),[2,_(286)]):[3,1];case 1:if(i[_(255)]!==f.id-1)return[3,2];switch(f.dataType){case _(312):if(!f[_(284)])switch(f.queueType){case"update":case _(292):if(h=s[_(372)]((function(t){var e=_;return t[e(218)]===f[e(264)]}))){if(d=pc(h),f[_(272)])for(v in f[_(272)])cu(d,v,f[_(272)][v]);if(f[_(306)])for(p=0,l=f[_(306)];p<l.length;p++)v=l[p],ac(d,v);f[_(284)]=d}else console.error(_(214));break;case _(313):throw y=new Rc({errCode:Pc.SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR,errMsg:'HandleServerEvents: full doc is not provided with dataType="update" and queueType="enqueue" (requestId '+t.requestId+")"}),c[_(360)](y),y}break;case _(298):if(!f.doc)throw y=new Rc({errCode:Pc.SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR,errMsg:_(361)+t[_(221)]+")"}),c[_(360)](y),y;break;case"remove":(d=s[_(372)]((function(t){return t[_(218)]===f.docId})))?f[_(284)]=d:console[_(342)](_(233));break;case"limit":if(!f[_(284)])switch(f[_(353)]){case"dequeue":(d=s[_(372)]((function(t){var e=_;return t[e(218)]===f[e(264)]})))?f[_(284)]=d:console[_(342)](_(262));break;case"enqueue":throw y=new Rc({errCode:Pc[_(251)],errMsg:_(357)+t.requestId+")"}),c.closeWithError(y),y}}switch(f[_(353)]){case _(242):a?s.push(f[_(284)]):(a=!0,s=[f[_(284)]]);break;case"enqueue":s[_(215)](f[_(284)]);break;case"dequeue":(I=s.findIndex((function(t){var e=_;return t[e(218)]===f[e(264)]})))>-1?s.splice(I,1):console.error("[realtime listener] internal non-fatal server error: unexpected dequeue event where no doc is associated.");break;case _(312):(I=s[_(252)]((function(t){var e=_;return t._id===f[e(264)]})))>-1?s[I]=f[_(284)]:console[_(342)](_(219))}return(r===u-1||o[r+1]&&o[r+1].id!==f.id)&&(m=qc(s),g=o[_(351)](0,r+1)[_(318)]((function(t){return t.id===f.id})),c[_(297)][_(255)]=f.id,c[_(297)][_(261)]=s,b=new wc({id:f.id,docChanges:g,docs:m,msgType:n}),c[_(280)][_(326)](b)),[3,4];case 2:return console.warn("[realtime listener] event received is out of order, cur "+c[_(297)][_(255)]+_(319)+f.id),[4,c[_(383)]()];case 3:return w.sent(),[2,{value:void 0}];case 4:return[2]}}))},c=this,f=0,h=o[v(291)],l.label=1;case 1:return f<h?[5,u(f,h)]:[3,4];case 2:if(typeof(p=l[v(365)]())===v(294))return[2,p.value];l[v(237)]=3;case 3:return f++,[3,1];case 4:return[2]}}))}))},e[t(220)][t(343)]=function(e){var r=t;this.sessionInfo?(this[r(297)].expectEventId&&this[r(297)].currentEventId>=this.sessionInfo[r(273)]&&this[r(371)](),this.sessionInfo[r(255)]<e[r(373)][r(290)]&&console[r(238)](r(309))):console[r(342)](r(278))},e.prototype.clearWaitExpectedEvent=function(){this._waitExpectedTimeoutId&&(clearTimeout(this._waitExpectedTimeoutId),this._waitExpectedTimeoutId=void 0)},e}();function Gc(t){var e=jc,r={id:t.ID,dataType:t[e(205)],queueType:t[e(362)],docId:t[e(300)],doc:t[e(369)]&&"{}"!==t.Doc?JSON.parse(t[e(369)]):void 0};return"update"===t[e(205)]&&(t[e(335)]&&(r.updatedFields=JSON[e(329)](t[e(335)])),(t.removedFields||t[e(296)])&&(r[e(306)]=JSON[e(329)](t[e(306)]))),r}var Kc=$c;function Vc(){var t=["Internal Error","The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.","Service Restart","Abnormal Closure","4mmoIlg","Server Close","Bad Gateway","81504CqtNnG","The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code.","The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection.","437050wTkjXZ","The client is terminating the connection because it wants to reconnect","The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable.","Indicates that no status code was provided even though one was expected.",", reason ","2053170yasuVN","1826532UmnLSA","Invalid frame payload data","Missing Extension","Protocol Error","7afAmbN","NormalClosure","The client is terminating the connection because no more realtime listeners exist","3258464DAJiiR","InvalidFramePayloadData","4165632GwWhCS","Policy Violation","ReconnectWebSocket","ServiceRestart","Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified).","UnsupportedData","The client is terminating the connection because no heartbeat response is received from the server","MissingExtension","The endpoint is terminating the connection because a data frame was received that is too large.","153VGMYQY","name","Going Away","1308280VRGxxf","Heartbeat Ping Error","description","Message too big","HeartbeatPingError","InternalError","3mHbWOK","NoStatusReceived","GoingAway","HeartbeatPongTimeoutError","PolicyViolation","NoRealtimeListeners","TLS Handshake","AbnormalClosure","SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED","NoAuthentication","MessageTooBig","TryAgainLater","BadGateway","Normal Closure","ProtocolError","Try Again Later"];return(Vc=function(){return t})()}!function(t,e){for(var r=$c,n=Vc();;)try{if(391463===-parseInt(r(361))/1*(parseInt(r(358))/2)+-parseInt(r(397))/3*(-parseInt(r(370))/4)+-parseInt(r(369))/5+-parseInt(r(379))/6+parseInt(r(374))/7*(parseInt(r(391))/8)+-parseInt(r(388))/9*(-parseInt(r(364))/10)+parseInt(r(377))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var zc,Jc,Yc,Xc={1e3:{code:1e3,name:Kc(351),description:"Normal closure; the connection successfully completed whatever purpose for which it was created."},1001:{code:1001,name:Kc(390),description:Kc(363)},1002:{code:1002,name:Kc(373),description:"The endpoint is terminating the connection due to a protocol error."},1003:{code:1003,name:"Unsupported Data",description:"The connection is being terminated because the endpoint received data of a type it cannot accept (for example, a text-only endpoint received binary data)."},1005:{code:1005,name:"No Status Received",description:Kc(367)},1006:{code:1006,name:Kc(357),description:"Used to indicate that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected."},1007:{code:1007,name:Kc(371),description:"The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message)."},1008:{code:1008,name:Kc(380),description:Kc(366)},1009:{code:1009,name:Kc(394),description:Kc(387)},1010:{code:1010,name:Kc(372),description:"The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't."},1011:{code:1011,name:Kc(354),description:Kc(355)},1012:{code:1012,name:Kc(356),description:"The server is terminating the connection because it is restarting."},1013:{code:1013,name:Kc(353),description:"The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients."},1014:{code:1014,name:Kc(360),description:Kc(362)},1015:{code:1015,name:Kc(403),description:Kc(383)},3e3:{code:3e3,name:"Reconnect WebSocket",description:Kc(365)},3001:{code:3001,name:"No Realtime Listeners",description:Kc(376)},3002:{code:3002,name:Kc(392),description:"The client is terminating the connection due to its failure in sending heartbeat messages"},3003:{code:3003,name:"Heartbeat Pong Timeout Error",description:"The client is terminating the connection because no heartbeat response is received from the server"},3050:{code:3050,name:Kc(359),description:Kc(385)}};function $c(t,e){var r=Vc();return($c=function(t,e){return r[t-=350]})(t,e)}(Jc=zc||(zc={}))[Jc[(Yc=Kc)(375)]=1e3]=Yc(375),Jc[Jc[Yc(399)]=1001]="GoingAway",Jc[Jc[Yc(352)]=1002]=Yc(352),Jc[Jc[Yc(384)]=1003]=Yc(384),Jc[Jc[Yc(398)]=1005]=Yc(398),Jc[Jc[Yc(404)]=1006]=Yc(404),Jc[Jc[Yc(378)]=1007]="InvalidFramePayloadData",Jc[Jc[Yc(401)]=1008]="PolicyViolation",Jc[Jc[Yc(407)]=1009]=Yc(407),Jc[Jc[Yc(386)]=1010]="MissingExtension",Jc[Jc[Yc(396)]=1011]=Yc(396),Jc[Jc[Yc(382)]=1012]=Yc(382),Jc[Jc[Yc(408)]=1013]="TryAgainLater",Jc[Jc[Yc(350)]=1014]=Yc(350),Jc[Jc.TLSHandshake=1015]="TLSHandshake",Jc[Jc[Yc(381)]=3e3]=Yc(381),Jc[Jc[Yc(402)]=3001]="NoRealtimeListeners",Jc[Jc[Yc(395)]=3002]=Yc(395),Jc[Jc[Yc(400)]=3003]="HeartbeatPongTimeoutError",Jc[Jc[Yc(406)]=3050]=Yc(406);var Qc=function(t,e){var r=Kc,n=Xc[t],i=n?n[r(389)]+", code "+t+r(368)+(e||n[r(393)]):"code "+t;return new Rc({errCode:Pc[r(405)],errMsg:i})};function Zc(){var t=["28giIuFT","web","2253357lbwYJO","467964ucpTqz","1028632EptHyF","7764jtIxub","12EdpXyC","19198212GEoUrm","20mPykaI","956anNEvN","4jLYfkr","4651055wClgAC","7268436hgcUux"];return(Zc=function(){return t})()}var tf=of;!function(t,e){for(var r=of,n=Zc();;)try{if(708567===parseInt(r(184))/1+-parseInt(r(177))/2*(parseInt(r(186))/3)+parseInt(r(178))/4*(parseInt(r(179))/5)+-parseInt(r(180))/6+-parseInt(r(181))/7*(-parseInt(r(185))/8)+parseInt(r(183))/9*(-parseInt(r(189))/10)+parseInt(r(188))/11*(parseInt(r(187))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var ef=null,rf=tf(182);function nf(){return rf}function of(t,e){var r=Zc();return(of=function(t,e){return r[t-=177]})(t,e)}var sf=hf;!function(t,e){for(var r=hf,n=ff();;)try{if(483689===parseInt(r(410))/1+-parseInt(r(390))/2*(-parseInt(r(397))/3)+parseInt(r(365))/4*(-parseInt(r(382))/5)+parseInt(r(359))/6*(-parseInt(r(297))/7)+parseInt(r(268))/8+parseInt(r(337))/9*(-parseInt(r(279))/10)+parseInt(r(395))/11*(-parseInt(r(407))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var af=function(){var t=sf;return af=Object[t(275)]||function(e){for(var r,n=t,i=1,o=arguments[n(357)];i<o;i++)for(var s in r=arguments[i])Object[n(339)][n(393)][n(385)](r,s)&&(e[s]=r[s]);return e},af[t(406)](this,arguments)},uf=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=hf;function a(t){var e=hf;try{c(n[e(274)](t))}catch(t){o(t)}}function u(t){var e=hf;try{c(n[e(322)](t))}catch(t){o(t)}}function c(t){var e,n=hf;t[n(344)]?i(t[n(328)]):(e=t.value,e instanceof r?e:new r((function(t){t(e)})))[n(292)](a,u)}c((n=n[s(406)](t,e||[]))[s(274)]())}))},cf=function(t,e){var r,n,i,o,s=sf,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol[s(343)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(290));for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n[u(322)]||((i=n[u(308)])&&i[u(385)](n),0):n[u(274)])&&!(i=i[u(385)](n,o[1]))[u(344)])return i;switch(n=0,i&&(o=[2&o[0],i[u(328)]]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a[u(334)]++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a[u(330)][u(418)]();continue;default:if(!(i=a[u(330)],(i=i.length>0&&i[i[u(357)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a[u(334)]<i[1]){a[u(334)]=i[1],i=o;break}if(i&&a[u(334)]<i[2]){a[u(334)]=i[2],a[u(416)][u(303)](o);break}i[2]&&a[u(416)][u(418)](),a[u(330)][u(418)]();continue}o=e[u(385)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function ff(){var t=["then","close","_wsSign","appConfig","error","865193pDDrNA","webLogin","[realtime] ws event: error","_wsResponseWait","_pongMissed","_pongTimeoutId","push","context","HeartbeatPongTimeoutError","data","get","return","SDK_DATABASE_REALTIME_LISTENER_RECONNECT_WATCH_FAIL","queryID","web","name","_reconnectInterval","wss://tcb-ws.tencentcloudapi.com","secretVersion","[tcb-js-sdk] 获取实时数据推送登录票据失败","timeout","[realtime] onMessage parse res.data error: ","[realtime] ws open failed with ws event: error","[realtime] ws event: open","wsUrl","throw","reason","requestId","_ws","reject","realtimePongWaitTimeout","value","skipOnMessage","trys","now","set","warn","label","expiredTs","forEach","4957083SQAbPH","onceWSConnected","prototype","CHECK_EVENT","getWsSign","resolve","iterator","done","NoRealtimeListeners","signStr","msg","onmessage","_rttObserved","_wsInitPromise","pauseClients","loggingInPromise","onMessage","isWSConnected","_pingTimeoutId","clearHeartbeat","length","listener","18hQiJkC","[realtime] initWebSocketConnection connect fail","reduce","resumeClients","closeWithError","__assign","2865464HjYDxg","onWatchClose","_pingFailed","envId","_reconnectState","size","parse","code","msgData","_maxReconnect","[realtime] no realtime listener found responsible for watchId ","can not initWebSocketEvent, ws not exists","request","onopen","onerror","loginStartTS","heartbeat","5KcZRXW","initWebSocketEvent","_wsReadySubsribers","call","ping","_watchIdClientMap","splice","[tcb-js-sdk] 获取实时数据推送登录票据失败: ","2tuBfJO","entries","_context","hasOwnProperty","readyState","1497419gaYQRg","connect","2214642VBfTnj","NoAuthentication","onError","watchId","ws readyState invalid: ","ERROR","loggedIn","__awaiter","PING","apply","24CNURbA","delete","initWebSocketConnection","828393kbuyAm","AbnormalClosure","INIT_EVENT","closeAllClients","NEXT_EVENT","wsclient.send timedout","ops","send","pop","invalid state: ws connection not exists, can not send message","ReconnectWebSocket","NormalClosure","_lastPingSendTS","sent","6618320DQKBAi","_logins",", can not send message","waitResponse","[realtime] untrusted rtt observed: ","from","next","assign","onclose","pong timed out","OPEN","10JtQFqr","reconnectInterval","_virtualWSClient","msgType","resume","maxReconnect","_queryIdClientMap","HeartbeatPingError","watch","message","loginResult","Generator is already executing.","getWaitExpectedTimeoutLength"];return(ff=function(){return t})()}function hf(t,e){var r=ff();return(hf=function(t,e){return r[t-=266]})(t,e)}var pf={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},lf=function(){var t=sf;function e(t){var e=hf,r=this;this[e(281)]=new Set,this[e(285)]=new Map,this[e(387)]=new Map,this[e(367)]=0,this[e(301)]=0,this[e(269)]=new Map,this._wsReadySubsribers=[],this[e(300)]=new Map,this[e(349)]=[],this[e(417)]=function(t){return uf(r,void 0,void 0,(function(){var e=this;return cf(this,(function(r){return[2,new Promise((function(r,n){return uf(e,void 0,void 0,(function(){var e,i,o,s,a,u,c,f=this;return cf(this,(function(h){var p=hf;switch(h[p(334)]){case 0:i=!1,o=!1,s=function(t){i=!0,e&&clearTimeout(e),r(t)},a=function(t){o=!0,e&&clearTimeout(e),n(t)},t[p(317)]&&(e=setTimeout((function(){return uf(f,void 0,void 0,(function(){return cf(this,(function(t){var e=hf;switch(t[e(334)]){case 0:return i&&o?[3,2]:[4,Cc(0)];case 1:t.sent(),(!i||!o)&&a(new kc(e(415))),t.label=2;case 2:return[2]}}))}))}),t[p(317)])),h[p(334)]=1;case 1:return h.trys[p(303)]([1,8,,9]),this[p(350)]?[4,this[p(350)]]:[3,3];case 2:h[p(267)](),h[p(334)]=3;case 3:if(!this[p(325)])return a(new Error(p(419))),[2];if(this[p(325)][p(394)]!==pf.OPEN)return a(new Error(p(401)+this._ws.readyState+p(270))),[2];t[p(271)]&&this[p(300)][p(332)](t.msg[p(324)],{resolve:s,reject:a,skipOnMessage:t[p(329)]}),h[p(334)]=4;case 4:return h[p(330)][p(303)]([4,6,,7]),[4,this[p(325)][p(417)](JSON.stringify(t[p(347)]))];case 5:return h[p(267)](),!t[p(271)]&&s(),[3,7];case 6:return(u=h[p(267)]())&&(a(u),t[p(271)]&&this[p(300)][p(408)](t.msg[p(324)])),[3,7];case 7:return[3,9];case 8:return c=h[p(267)](),a(c),[3,9];case 9:return[2]}}))}))}))]}))}))},this[e(413)]=function(t){var n=e;r[n(281)].forEach((function(e){e[n(363)](t)}))},this[e(351)]=function(t){(t||r._virtualWSClient).forEach((function(t){t.pause()}))},this[e(362)]=function(t){var n=e;(t||r[n(281)])[n(336)]((function(t){t[n(283)]()}))},this[e(409)]=function(t,e){return void 0===e&&(e=r._maxReconnect),uf(r,void 0,void 0,(function(){var r=this;return cf(this,(function(n){var i=hf;switch(n.label){case 0:if(t&&this._reconnectState)return[2];if(t&&(this[i(369)]=!0),this[i(350)])return[2,this._wsInitPromise];t&&this.pauseClients(),this.close(zc[i(420)]),this._wsInitPromise=new Promise((function(n,i){return uf(r,void 0,void 0,(function(){var r,o,s=this;return cf(this,(function(a){var u=hf;switch(a.label){case 0:return a[u(330)].push([0,6,,11]),[4,this[u(341)]()];case 1:return r=a[u(267)](),[4,new Promise((function(t){var e=u,n=r[e(321)]||e(314),i=ef;s[e(325)]=i?new i(n):new WebSocket(n),t()}))];case 2:return a.sent(),this[u(325)][u(396)]?[4,this[u(325)][u(396)]()]:[3,4];case 3:a.sent(),a.label=4;case 4:return[4,this.initWebSocketEvent()];case 5:return a[u(267)](),n(),t&&(this[u(362)](),this[u(369)]=!1),[3,11];case 6:return o=a[u(267)](),console[u(296)](u(360),o),e>0?(!0,this[u(350)]=void 0,[4,Cc(this[u(313)])]):[3,9];case 7:a.sent(),t&&(this[u(369)]=!1),a[u(334)]=8;case 8:return n(this[u(409)](t,e-1)),[3,10];case 9:i(o),t&&this[u(413)](new Rc({errCode:Pc[u(309)],errMsg:o})),a[u(334)]=10;case 10:return[3,11];case 11:return[2]}}))}))})),n[i(334)]=1;case 1:return n[i(330)][i(303)]([1,3,4,5]),[4,this[i(350)]];case 2:return n[i(267)](),this[i(384)][i(336)]((function(t){return(0,t[i(342)])()})),[3,5];case 3:return n[i(267)](),this[i(384)].forEach((function(t){return(0,t[i(326)])()})),[3,5];case 4:return this[i(350)]=void 0,this._wsReadySubsribers=[],[7];case 5:return[2]}}))}))},this[e(383)]=function(){return new Promise((function(t,e){var n=hf;if(!r._ws)throw new Error(n(376));var i=!1;r[n(325)][n(378)]=function(e){var r=n;console.warn(r(320),e),i=!0,t()},r[n(325)][n(379)]=function(t){var o=n;r[o(269)]=new Map,i?(console.error(o(299),t),r[o(356)](),r._virtualWSClient[o(336)]((function(e){return e[o(363)](new Rc({errCode:Pc.SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_ERROR,errMsg:t}))}))):(console[o(296)](o(319),t),e(t))},r[n(325)][n(276)]=function(t){var e=n;switch(console[e(333)]("[realtime] ws event: close",t),r[e(269)]=new Map,r[e(356)](),t[e(372)]){case zc[e(420)]:case zc.NoRealtimeListeners:break;case zc[e(286)]:case zc[e(305)]:case zc[e(421)]:case zc[e(411)]:r[e(374)]>0?r[e(409)](!0,r._maxReconnect):r.closeAllClients(Qc(t[e(372)]));break;case zc[e(398)]:r[e(413)](Qc(t[e(372)],t[e(323)]));break;default:r[e(374)]>0?r[e(409)](!0,r[e(374)]):r[e(413)](Qc(t[e(372)]))}},r[n(325)][n(348)]=function(t){var e,i=n,o=t[i(306)];r[i(381)]();try{e=JSON[i(371)](o)}catch(t){throw new Error(i(318)+t)}if("ERROR"===e.msgType){var s=null;r[i(281)].forEach((function(t){var r=i;t[r(400)]===e[r(400)]&&(s=t)})),s&&s[i(358)][i(399)](e)}var a=r[i(300)].get(e[i(324)]);if(a){try{e[i(282)]===i(402)?a[i(326)](new Oc(e)):a[i(342)](e)}catch(t){console[i(296)]("ws onMessage responseWaitSpec.resolve(msg) errored:",t)}finally{r[i(300)][i(408)](e.requestId)}if(a[i(329)])return}if("PONG"!==e[i(282)]){var u=e[i(400)]&&r[i(387)][i(307)](e[i(400)]);if(u)u[i(353)](e);else switch(console.error(i(375)+e.watchId+": ",e),e.msgType){case i(412):case i(414):case i(340):(u=r[i(285)][i(307)](e[i(373)][i(310)]))&&u[i(353)](e);break;default:for(var c=0,f=Array[i(273)](r[i(387)][i(391)]());c<f[i(357)];c++){f[c][1][i(353)](e);break}}}else if(r[i(266)]){var h=Date.now()-r[i(266)];if(h>1e4)return void console[i(333)](i(272)+h);r[i(349)].length>=3&&r[i(349)][i(388)](0,r[i(349)][i(357)]-3+1),r[i(349)][i(303)](h)}},r[n(381)]()}))},this.isWSConnected=function(){var t=e;return Boolean(r._ws&&r[t(325)][t(394)]===pf.OPEN)},this[e(338)]=function(){return uf(r,void 0,void 0,(function(){var t=this;return cf(this,(function(e){var r=hf;return this[r(354)]()?[2]:this._wsInitPromise?[2,this[r(350)]]:[2,new Promise((function(e,n){t[r(384)].push({resolve:e,reject:n})}))]}))}))},this[e(298)]=function(t,e){return uf(r,void 0,void 0,(function(){var r,n,i,o,s,a,u,c,f=this;return cf(this,(function(h){var p=hf;switch(h[p(334)]){case 0:if(!e)if(t){if(r=this[p(269)][p(307)](t)){if(r[p(403)]&&r[p(289)])return[2,r[p(289)]];if(r[p(352)])return[2,r[p(352)]]}}else if(null==(n=this._logins[p(307)](""))?void 0:n[p(352)])return[2,n.loggingInPromise];i=new Promise((function(t,e){return uf(f,void 0,void 0,(function(){var r,n,i,o,s;return cf(this,(function(a){var u=hf;switch(a[u(334)]){case 0:return a.trys[u(303)]([0,3,,4]),[4,this[u(341)]()];case 1:return r=a[u(267)](),n={envId:r[u(368)]||"",accessToken:"",referrer:u(311),sdkVersion:"",dataVersion:""},i={watchId:void 0,requestId:vc(),msgType:"LOGIN",msgData:n,exMsgData:{runtime:nf(),signStr:r[u(346)],secretVersion:r[u(315)]}},[4,this[u(417)]({msg:i,waitResponse:!0,skipOnMessage:!0,timeout:5e3})];case 2:return(o=a[u(267)]())[u(373)][u(372)]?e(new Error(o.msgData[u(372)]+" "+o[u(373)][u(288)])):t({envId:r[u(368)]}),[3,4];case 3:return s=a[u(267)](),e(s),[3,4];case 4:return[2]}}))}))})),o=t&&this[p(269)][p(307)](t),s=Date[p(331)](),o?(o[p(403)]=!1,o[p(352)]=i,o[p(380)]=s):(o={loggedIn:!1,loggingInPromise:i,loginStartTS:s},this[p(269)].set(t||"",o)),h[p(334)]=1;case 1:return h[p(330)].push([1,3,,4]),[4,i];case 2:if(a=h[p(267)](),(u=t&&this[p(269)][p(307)](t))&&u===o&&u[p(380)]===s)return o[p(403)]=!0,o.loggingInPromise=void 0,o[p(380)]=void 0,o[p(289)]=a,[2,a];if(u){if(u[p(403)]&&u[p(289)])return[2,u[p(289)]];if(u.loggingInPromise)return[2,u[p(352)]];throw new Error("ws unexpected login info")}throw new Error("ws login info reset");case 3:throw c=h[p(267)](),o[p(403)]=!1,o.loggingInPromise=void 0,o[p(380)]=void 0,o.loginResult=void 0,c;case 4:return[2]}}))}))},this[e(341)]=function(){return uf(r,void 0,void 0,(function(){var t,e,r,n,i,o,s;return cf(this,(function(a){var u=hf;switch(a[u(334)]){case 0:return this[u(294)]&&this[u(294)][u(335)]>Date.now()?[2,this._wsSign]:(t=Date[u(331)]()+6e4,[4,this[u(392)][u(295)][u(377)][u(417)]("auth.wsWebSign",{runtime:nf()})]);case 1:if((e=a[u(267)]())[u(372)])throw new Error(u(389)+e[u(372)]);if(e.data)return r=e[u(306)],n=r[u(346)],i=r[u(321)],o=r.secretVersion,s=r[u(368)],[2,{signStr:n,wsUrl:i,secretVersion:o,envId:s,expiredTs:t}];throw new Error(u(316))}}))}))},this[e(291)]=function(){var t=e;return r[t(349)][t(357)]?r[t(349)][t(361)]((function(t,e){return t+e}))/r[t(349)][t(357)]*1.5:5e3},this[e(386)]=function(){return uf(r,void 0,void 0,(function(){var t;return cf(this,(function(e){var r=hf;switch(e[r(334)]){case 0:return t={watchId:void 0,requestId:vc(),msgType:r(405),msgData:null},[4,this.send({msg:t})];case 1:return e.sent(),[2]}}))}))},this.onWatchStart=function(t,n){var i=e;r._queryIdClientMap[i(332)](n,t)},this[e(366)]=function(t,n){var i=e;n&&r[i(285)].delete(n),r[i(387)].delete(t[i(400)]),r[i(281)][i(408)](t),!r[i(281)][i(370)]&&r[i(293)](zc[i(345)])},this[e(374)]=t[e(284)]||5,this[e(313)]=t[e(280)]||1e4,this[e(392)]=t[e(304)]}return e[t(339)][t(356)]=function(){var e=t;this[e(355)]&&clearTimeout(this[e(355)]),this._pongTimeoutId&&clearTimeout(this._pongTimeoutId)},e[t(339)].close=function(e){var r=t;this[r(356)](),this._ws&&(this[r(325)][r(293)](e,Xc[e][r(312)]),this._ws=void 0)},e.prototype[t(287)]=function(e){var r=t;!this[r(325)]&&!this[r(350)]&&this[r(409)](!1);var n=new Wc(af(af({},e),{send:this.send,login:this[r(298)],isWSConnected:this[r(354)],onceWSConnected:this.onceWSConnected,getWaitExpectedTimeoutLength:this[r(291)],onWatchStart:this.onWatchStart,onWatchClose:this[r(366)],debug:!0}));return this[r(281)].add(n),this[r(387)][r(332)](n[r(400)],n),n[r(358)]},e[t(339)][t(381)]=function(e){var r=t,n=this;this[r(356)](),this[r(355)]=setTimeout((function(){return uf(n,void 0,void 0,(function(){var t=this;return cf(this,(function(e){var r=hf;switch(e.label){case 0:return e.trys[r(303)]([0,2,,3]),this[r(325)]&&this[r(325)][r(394)]===pf[r(278)]?(this[r(266)]=Date[r(331)](),[4,this[r(386)]()]):[2];case 1:return e[r(267)](),this[r(367)]=0,this[r(302)]=setTimeout((function(){var e=r;console.error(e(277)),t[e(301)]<2?(t._pongMissed++,t[e(381)](!0)):t[e(409)](!0)}),this[r(392)][r(295)][r(327)]),[3,3];case 2:return e[r(267)](),this._pingFailed<2?(this[r(367)]++,this[r(381)]()):this.close(zc.HeartbeatPingError),[3,3];case 3:return[2]}}))}))}),e?0:this[r(392)][r(295)].realtimePingInterval)},e}(),vf=df;function df(t,e){var r=mf();return(df=function(t,e){return r[t-=202]})(t,e)}!function(t,e){for(var r=df,n=mf();;)try{if(930047===-parseInt(r(211))/1*(-parseInt(r(218))/2)+-parseInt(r(207))/3*(-parseInt(r(214))/4)+-parseInt(r(206))/5*(parseInt(r(213))/6)+-parseInt(r(217))/7+-parseInt(r(204))/8+parseInt(r(215))/9+parseInt(r(216))/10*(-parseInt(r(209))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var yf={target:"database",entity:function(){var t,e=df,r=this[e(205)],n=r[e(208)],i=r[e(202)];t=n[e(210)],ef=t,rf=i}},If={name:"realtime",IIFE:!0,entity:function(){this[df(212)].wsClientClass=lf}};function mf(){var t=["6omgcKG","adapter","11975755zUDWuI","wsClass","27oVeNhp","prototype","18rYSmWN","2699104YXSASK","14278806mNqhod","10Ungcbb","534450nRGtIG","7586nPSHjT","registerComponent","runtime","registerHook","1879776fSIsPV","platform","1180705XEmlCC"];return(mf=function(){return t})()}try{cloudbase[vf(219)](If),cloudbase[vf(203)](yf)}catch(t){}var gf=xf;!function(t,e){for(var r=xf,n=kf();;)try{if(932343===parseInt(r(509))/1*(parseInt(r(500))/2)+-parseInt(r(508))/3+parseInt(r(502))/4*(-parseInt(r(512))/5)+-parseInt(r(545))/6*(parseInt(r(515))/7)+parseInt(r(548))/8*(parseInt(r(516))/9)+parseInt(r(531))/10*(-parseInt(r(498))/11)+-parseInt(r(514))/12*(parseInt(r(533))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var bf=function(t,e,r,n){var i,o=gf,s=arguments[o(538)],a=s<3?e:null===n?n=Object[o(518)](e,r):n;if(typeof Reflect===o(520)&&typeof Reflect[o(554)]===o(523))a=Reflect.decorate(t,e,r,n);else for(var u=t[o(538)]-1;u>=0;u--)(i=t[u])&&(a=(s<3?i(a):s>3?i(e,r,a):i(e,r))||a);return s>3&&a&&Object[o(504)](e,r,a),a},wf=function(t,e){var r=gf;if(typeof Reflect===r(520)&&"function"==typeof Reflect[r(527)])return Reflect[r(527)](t,e)},_f=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=xf;function a(t){var e=xf;try{c(n[e(521)](t))}catch(t){o(t)}}function u(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e,n=xf;t[n(553)]?i(t[n(536)]):(e=t[n(536)],e instanceof r?e:new r((function(t){t(e)})))[n(550)](a,u)}c((n=n.apply(t,e||[]))[s(521)]())}))},Ef=function(t,e){var r,n,i,o,s=gf,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol[s(529)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(501));for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(543)]:o[0]?n.throw||((i=n.return)&&i[u(503)](n),0):n[u(521)])&&!(i=i.call(n,o[1]))[u(553)])return i;switch(n=0,i&&(o=[2&o[0],i[u(536)]]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops[u(528)](),a[u(510)][u(528)]();continue;default:if(!(i=a[u(510)],(i=i[u(538)]>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a[u(539)]<i[1]){a[u(539)]=i[1],i=o;break}if(i&&a[u(539)]<i[2]){a[u(539)]=i[2],a[u(537)][u(513)](o);break}i[2]&&a[u(537)][u(528)](),a[u(510)][u(528)]();continue}o=e[u(503)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},Sf=dr.ERRORS,Of=dr[gf(540)],Af=lr[gf(525)],Tf="analytics",Nf=["mall"];function kf(){var t=["171780MktWBI","report_data","now","13136808sYspzX","如果问题依然存在,建议到官方问答社区提问或寻找帮助:","then","__awaiter","上报调用失败","done","decorate","report_type","action_type","action_time","11QbHrIg","toString","11222sHlzEl","Generator is already executing.","134788AekIvT","call","defineProperty"," 1 - 调用 analytics() 的语法或参数是否正确","slice","analytics","709794yqvQNP","311PeREuX","trys","warn","15kcoeuM","push","852bodRrm","406uHPECi","9OrDQMz","design:type","getOwnPropertyDescriptor","prototype","object","next","design:paramtypes","function","__decorate","catchErrorsDecorator","Object","metadata","pop","iterator","analytics.report","4019510gnQbDX","registerComponent","9997NPzsgi","stringify","请确认以下各项:","value","ops","length","label","COMMUNITY_SITE_URL","includes","request","return","floor"];return(kf=function(){return t})()}function xf(t,e){var r=kf();return(xf=function(t,e){return r[t-=497]})(t,e)}var Rf=new(function(){var t=gf;function e(){}return e[t(519)][t(507)]=function(t){return _f(this,void 0,void 0,(function(){var e,r,n,i;return Ef(this,(function(o){var s=xf;if(!function(t){var e=gf;if(Object[e(519)][e(499)][e(503)](t)[e(506)](8,-1)!==e(526))return!1;var r=t[e(546)],n=t[e(555)];return!1!==Nf[e(541)](n)&&Object[e(519)][e(499)][e(503)](r).slice(8,-1)===e(526)&&!(void 0!==r[e(497)]&&!Number.isInteger(r[e(497)]))&&"string"==typeof r[e(556)]}(t))throw new Error(JSON[s(534)]({code:Sf.INVALID_PARAMS,msg:"["+Tf+".analytics] invalid report data"}));return e=s(530),r=void 0===t[s(546)][s(497)]?Math[s(544)](Date[s(547)]()/1e3):t[s(546)].action_time,n={analytics_scene:t.report_type,analytics_data:Object.assign({},t[s(546)],{action_time:r})},i={requestData:n},this[s(542)].send(e,i),[2]}))}))},bf([Af({customInfo:{className:"Cloudbase",methodName:t(507)},title:t(552),messages:[t(535),t(505),t(549)+Of]}),wf(t(517),Function),wf(t(522),[Object]),wf("design:returntype",Promise)],e[t(519)],"analytics",null),e}()),Pf={name:Tf,entity:{analytics:Rf[gf(507)]}};try{cloudbase[gf(532)](Pf)}catch(t){}var Cf,jf,Df,Lf,Uf=Bf;function Mf(){var t=["Object","QueryParamValueError","$shift","集合名称不合法","BsonDate","Null","$lte","232qlWfah","查询参数必须为对象","5fLJZMv","$eq","6RdqUTW","494356SuVSvW","DOC","260HMFMBI","String","QueryParamTypeError","244114giZdSG","Boolean","2655bXFNMr","$unshift","IntergerError","Number","24lpszRn","$mul","2472067TFUCsG","OpStrError","Date","操作符不合法","lte","GeoMultiLineString","gte","WHERE","1742223qDLHyr","50508UBLKrK","Command","desc","文档ID不合法","GeoMultiPolygon","454PPiSHV","99176iCusGM","$inc","GeoMultiPoint","查询参数对象值不能均为undefined","$currentDate","$gte","DocIDError","排序字符不合法","$pop","CollNameError","$lt","$gt"];return(Mf=function(){return t})()}function Bf(t,e){var r=Mf();return(Bf=function(t,e){return r[t-=309]})(t,e)}!function(t,e){for(var r=Bf,n=Mf();;)try{if(140131===-parseInt(r(339))/1+parseInt(r(309))/2*(parseInt(r(341))/3)+-parseInt(r(334))/4*(-parseInt(r(331))/5)+-parseInt(r(333))/6*(parseInt(r(355))/7)+parseInt(r(329))/8*(parseInt(r(356))/9)+parseInt(r(336))/10*(-parseInt(r(310))/11)+parseInt(r(345))/12*(parseInt(r(347))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),(Df=jf||(jf={}))[(Lf=Bf)(316)]=Lf(359),Df[Lf(319)]=Lf(325),Df[Lf(348)]=Lf(350),Df.DirectionError=Lf(317),Df[Lf(343)]="must be integer",Df[Lf(338)]=Lf(330),Df[Lf(323)]=Lf(313);var qf,Ff,Hf,Wf,Gf,Kf,Vf={String:Uf(337),Number:Uf(344),Object:Uf(322),Array:"Array",Boolean:Uf(340),Null:Uf(327),GeoPoint:"GeoPoint",GeoLineString:"GeoLineString",GeoPolygon:"GeoPolygon",GeoMultiPoint:Uf(312),GeoMultiLineString:Uf(352),GeoMultiPolygon:Uf(360),Timestamp:Uf(349),Command:Uf(357),ServerDate:"ServerDate",BsonDate:Uf(326)},zf=[Uf(358),"asc"],Jf=["<","<=","==",">=",">"];function Yf(){var t=["instance","defineProperties","hasOwnProperty","setPrototypeOf","constructor","115CGChee","106832ANvZwo","341420heGRPZ","create","length","prototype","488Sjsegw","277896UjhzrS","764981SUbekw","__proto__","4158880UnjFUM","for","InternalSymbol cannot be constructed with new operator","99258kcfcCg","push","198FvXgAR","8571dSVSpy"];return(Yf=function(){return t})()}Ff=qf||(qf={}),Hf=Uf,Ff.lt="<",Ff.gt=">",Ff[Hf(351)]="<=",Ff[Hf(353)]=">=",Ff.eq="==",(Cf={})[qf.eq]=Uf(332),Cf[qf.lt]=Uf(320),Cf[qf[Uf(351)]]=Uf(328),Cf[qf.gt]=Uf(321),Cf[qf[Uf(353)]]=Uf(315),Uf(311),Uf(346),Uf(318),Uf(342),Uf(324),Uf(314),(Gf=Wf||(Wf={}))[(Kf=Uf)(354)]=Kf(354),Gf[Kf(335)]="DOC",function(t,e){for(var r=eh,n=Yf();;)try{if(331122===parseInt(r(235))/1+-parseInt(r(240))/2+parseInt(r(227))/3*(parseInt(r(239))/4)+parseInt(r(233))/5*(parseInt(r(224))/6)+parseInt(r(219))/7+parseInt(r(234))/8*(-parseInt(r(226))/9)+-parseInt(r(221))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Xf,$f=(Xf=function(t,e){var r=eh;return(Xf=Object[r(231)]||{__proto__:[]}instanceof Array&&function(t,e){t[r(220)]=e}||function(t,e){var n=r;for(var i in e)e[n(230)](i)&&(t[i]=e[i])})(t,e)},function(t,e){var r=eh;function n(){this[eh(232)]=t}Xf(t,e),t[r(238)]=null===e?Object[r(236)](e):(n[r(238)]=e[r(238)],new n)}),Qf=[],Zf={},th=function(t){var e=eh;function r(e,r){if(r!==Zf)throw new TypeError(eh(223));return t.call(this,e)||this}return $f(r,t),r[e(222)]=function(t){for(var n=e,i=0,o=Qf[n(237)];i<o;i++)if(Qf[i].target===t)return Qf[i][n(228)];var s=new r(t,Zf);return Qf[n(225)]({target:t,instance:s}),s},r}((function(t){Object[eh(229)](this,{target:{enumerable:!1,writable:!1,configurable:!1,value:t}})}));function eh(t,e){var r=Yf();return(eh=function(t,e){return r[t-=219]})(t,e)}var rh=th;function nh(){var t=["493841BIXzsn","2618637cFjttK","SYMBOL_GEO_MULTI_POINT","171jIBWqf","381916fuRIab","SYMBOL_GEO_POLYGON","15Hbdvls","3607570eORDXi","SYMBOL_GEO_MULTI_LINE_STRING","GEO_POINT","UNSET_FIELD_NAME","146656xwBJrP","LOGIC_COMMAND","SERVER_DATE","2614026OfcHSW","for","905494HvvLJW","SYMBOL_GEO_LINE_STRING","5DUlRyF","UPDATE_COMMAND"];return(nh=function(){return t})()}var ih=oh;function oh(t,e){var r=nh();return(oh=function(t,e){return r[t-=325]})(t,e)}!function(t,e){for(var r=oh,n=nh();;)try{if(278824===-parseInt(r(325))/1+parseInt(r(341))/2+-parseInt(r(331))/3*(parseInt(r(329))/4)+-parseInt(r(343))/5*(-parseInt(r(339))/6)+parseInt(r(326))/7+-parseInt(r(336))/8*(-parseInt(r(328))/9)+-parseInt(r(332))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var sh=rh[ih(340)](ih(335)),ah=rh[ih(340)](ih(344)),uh=rh[ih(340)]("QUERY_COMMAND"),ch=rh[ih(340)](ih(337)),fh=rh[ih(340)](ih(334)),hh=rh[ih(340)](ih(342)),ph=rh.for(ih(330)),lh=rh.for(ih(327)),vh=rh[ih(340)](ih(333)),dh=rh[ih(340)]("SYMBOL_GEO_MULTI_POLYGON"),yh=rh[ih(340)](ih(338)),Ih=rh[ih(340)]("REGEXP");function mh(t,e){var r=gh();return(mh=function(t,e){return r[t-=448]})(t,e)}function gh(){var t=["offset","2199HtuPhW","771813imPUxR","357039vuQySF","parse","5820635ZydXMF","6vnqVMa","_internalType","10qIMwkK","383918bJWuCj","defineProperty","5776589VwKnmX","248iVLbKu","prototype","568NYPpJe","19147579KUHgjS"];return(gh=function(){return t})()}!function(t,e){for(var r=mh,n=gh();;)try{if(647756===parseInt(r(453))/1+-parseInt(r(460))/2+parseInt(r(452))/3*(-parseInt(r(449))/4)+parseInt(r(456))/5*(-parseInt(r(457))/6)+parseInt(r(462))/7+parseInt(r(463))/8*(-parseInt(r(454))/9)+parseInt(r(459))/10*(parseInt(r(450))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var bh=function(){var t=mh;function e(t){var e=mh,r=(void 0===t?{}:t)[e(451)],n=void 0===r?0:r;this[e(451)]=n}return Object[t(461)](e[t(448)],t(458),{get:function(){return yh},enumerable:!0,configurable:!0}),e[t(448)][t(455)]=function(){return{$date:{offset:this[t(451)]}}},e}();function wh(t){return new bh(t)}var _h=Eh;function Eh(t,e){var r=Sh();return(Eh=function(t,e){return r[t-=393]})(t,e)}function Sh(){var t=["prototype","18TjvfkZ","4805AXMBUC","2808FeKqUu","function","GeoMultiPoint","414812ZluByW","GeoMultiPolygon","iterator","GeoPolygon","$date","Object","GeoMultiLineString","707396srShQQ","whichType","__read","error","3126492nbwvjV","isArray","return","Timestamp","generateDocId","next","keys","call","10PVUQLJ","slice","map","5896SWwiHu","1041276qMNQII","ServerDate","$timestamp","done","value","25671569nJgfsD","1267IxtRPC","validate","formatResDocumentData","charAt","GeoPoint","GeoLineString","push","forEach","coordinates","formatField","random","floor"];return(Sh=function(){return t})()}!function(t,e){for(var r=Eh,n=Sh();;)try{if(593298===parseInt(r(439))/1+parseInt(r(415))/2+parseInt(r(434))/3*(parseInt(r(399))/4)+-parseInt(r(435))/5*(-parseInt(r(436))/6)+parseInt(r(421))/7*(parseInt(r(414))/8)+parseInt(r(403))/9+parseInt(r(411))/10*(-parseInt(r(420))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Oh=function(t,e){var r=_h,n=typeof Symbol===r(437)&&t[Symbol[r(394)]];if(!n)return t;var i,o,s=n[r(410)](t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=s[r(408)]())[r(418)];)a[r(427)](i[r(419)])}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=s[r(405)])&&n.call(s)}finally{if(o)throw o[r(402)]}}return a},Ah=function(){var t=_h;function e(){}return e[t(423)]=function(r){var n=t;return r[n(413)]((function(t){return e[n(430)](t)}))},e[t(430)]=function(r){var n=t,i=Object[n(409)](r),o={};return Array[n(404)](r)&&(o=[]),i[n(428)]((function(t){var i,s=n,a=r[t];switch(e.whichType(a)){case Vf[s(425)]:i=new Bh(a[s(429)][0],a[s(429)][1]);break;case Vf[s(426)]:i=new Gh(a[s(429)][s(413)]((function(t){return new Bh(t[0],t[1])})));break;case Vf[s(395)]:i=new Xh(a[s(429)].map((function(t){return new Gh(t.map((function(t){var e=Oh(t,2),r=e[0],n=e[1];return new Bh(r,n)})))})));break;case Vf[s(438)]:i=new ep(a[s(429)][s(413)]((function(t){return new Bh(t[0],t[1])})));break;case Vf[s(398)]:i=new op(a[s(429)][s(413)]((function(t){return new Gh(t.map((function(t){var e=Oh(t,2),r=e[0],n=e[1];return new Bh(r,n)})))})));break;case Vf[s(393)]:i=new ap(a[s(429)].map((function(t){var e=s;return new Xh(t[e(413)]((function(t){return new Gh(t[e(413)]((function(t){var e=Oh(t,2),r=e[0],n=e[1];return new Bh(r,n)})))})))})));break;case Vf.Timestamp:i=new Date(1e3*a[s(417)]);break;case Vf.Object:case Vf.Array:i=e[s(430)](a);break;case Vf[s(416)]:i=new Date(a[s(396)]);break;default:i=a}Array[s(404)](o)?o[s(427)](i):o[t]=i})),o},e[t(400)]=function(e){var r=t,n=Object[r(433)].toString.call(e)[r(412)](8,-1);if(n===Vf.Timestamp)return Vf.BsonDate;if(n===Vf[r(397)]){if(e instanceof Bh)return Vf[r(425)];if(e instanceof Date)return Vf[r(406)];if(e instanceof bh)return Vf[r(416)];e[r(417)]?n=Vf.Timestamp:e[r(396)]?n=Vf.ServerDate:Bh[r(422)](e)?n=Vf[r(425)]:Gh.validate(e)?n=Vf[r(426)]:Xh[r(422)](e)?n=Vf[r(395)]:ep.validate(e)?n=Vf[r(438)]:op.validate(e)?n=Vf[r(398)]:ap.validate(e)&&(n=Vf.GeoMultiPolygon)}return n},e[t(407)]=function(){for(var e=t,r="ABCDEFabcdef0123456789",n="",i=0;i<24;i++)n+=r[e(424)](Math[e(432)](22*Math[e(431)]()));return n},e}();function Th(t,e){var r=Nh();return(Th=function(t,e){return r[t-=188]})(t,e)}function Nh(){var t=["DirectionError","latitude","111648mbppyJ","DocIDError","6284106FldpnJ","476727jxFIpT","14unOGvZ","OpStrError","indexOf","isDocID","latitude should be a number ranges from -90 to 90","4VrgUvl","364902EMyMXj","longitude","1490584IQmVRD","abs","1121975JrjMWz","Number","isFieldPath","isCollName","1422362rrrWqy","isInteger","test","isOperator"];return(Nh=function(){return t})()}!function(t,e){for(var r=Th,n=Nh();;)try{if(363120===-parseInt(r(194))/1+parseInt(r(209))/2+-parseInt(r(191))/3+-parseInt(r(200))/4*(parseInt(r(205))/5)+-parseInt(r(201))/6*(parseInt(r(195))/7)+-parseInt(r(203))/8+parseInt(r(193))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var kh=function(){var t=Th;function e(){}return e.isGeopoint=function(t,e){var r=Th;if(Ah.whichType(e)!==Vf[r(206)])throw new Error("Geo Point must be number type");var n=Math[r(204)](e);if(t===r(190)&&n>90)throw new Error(r(199));if(t===r(202)&&n>180)throw new Error("longitude should be a number ranges from -180 to 180");return!0},e[t(210)]=function(e,r){if(!Number[t(210)](r))throw new Error(e+jf.IntergerError);return!0},e.isFieldOrder=function(e){var r=t;if(-1===zf.indexOf(e))throw new Error(jf[r(189)]);return!0},e[t(207)]=function(e){if(!/^[a-zA-Z0-9-_\.]/[t(211)](e))throw new Error;return!0},e[t(188)]=function(e){var r=t;if(-1===Jf[r(197)](e))throw new Error(jf[r(196)]);return!0},e[t(208)]=function(e){if(!/^[a-zA-Z0-9]([a-zA-Z0-9-_]){1,32}$/[t(211)](e))throw new Error(jf.CollNameError);return!0},e[t(198)]=function(e){var r=t;if(!/^([a-fA-F0-9]){24}$/[r(211)](e))throw new Error(jf[r(192)]);return!0},e}();!function(t,e){for(var r=Ch,n=Mh();;)try{if(744496===parseInt(r(427))/1*(-parseInt(r(438))/2)+-parseInt(r(429))/3*(parseInt(r(437))/4)+-parseInt(r(432))/5*(-parseInt(r(422))/6)+parseInt(r(417))/7+parseInt(r(434))/8+parseInt(r(418))/9*(-parseInt(r(439))/10)+parseInt(r(425))/11*(parseInt(r(416))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var xh=function(t){var e=Ch;return Object[e(426)][e(423)][e(440)](t).slice(8,-1)[e(435)]()},Rh=function(t){var e=Ch;return xh(t)===e(433)},Ph=function(t){var e=Ch;return xh(t)===e(424)};function Ch(t,e){var r=Mh();return(Ch=function(t,e){return r[t-=416]})(t,e)}var jh=function(t){return Array[Ch(419)](t)},Dh=function(t){var e=Ch;return xh(t)===e(421)},Lh=function(t){var e=Ch;return xh(t)===e(420)},Uh=function(t){return t&&t[Ch(436)]instanceof th};function Mh(){var t=["getPrototypeOf","191150nULyjG","object","7093120hLUjxh","toLowerCase","_internalType","8pCfzxX","2hVXfzh","840nrEDjV","call","string","948eBUSex","9232986HuPnab","136332JVMOyr","isArray","regexp","date","132KSvczF","toString","number","167365XYYkei","prototype","1334417OxFpHu","promise","1346007zYmWjI","function"];return(Mh=function(){return t})()}!function(t,e){for(var r=qh,n=Fh();;)try{if(915369===parseInt(r(252))/1*(-parseInt(r(259))/2)+parseInt(r(256))/3+parseInt(r(251))/4*(parseInt(r(263))/5)+parseInt(r(269))/6*(-parseInt(r(253))/7)+-parseInt(r(261))/8*(-parseInt(r(266))/9)+-parseInt(r(249))/10*(parseInt(r(250))/11)+-parseInt(r(258))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Bh=function(){var t=qh;function e(t,e){var r=qh;kh[r(267)](r(248),t),kh.isGeopoint(r(264),e),this[r(248)]=t,this[r(264)]=e}return e[t(257)].parse=function(t){var e;return(e={})[t]={type:"Point",coordinates:[this.longitude,this.latitude]},e},e[t(257)][t(254)]=function(){var e=t;return{type:"Point",coordinates:[this[e(248)],this[e(264)]]}},e[t(257)].toReadableString=function(){var e=t;return"["+this[e(248)]+","+this[e(264)]+"]"},e[t(268)]=function(e){var r=t;return e[r(255)]===r(260)&&jh(e[r(265)])&&kh[r(267)]("longitude",e[r(265)][0])&&kh.isGeopoint(r(264),e[r(265)][1])},Object[t(262)](e[t(257)],"_internalType",{get:function(){return fh},enumerable:!0,configurable:!0}),e}();function qh(t,e){var r=Fh();return(qh=function(t,e){return r[t-=248]})(t,e)}function Fh(){var t=["11195QGIwoU","latitude","coordinates","99IiecYN","isGeopoint","validate","12NsagGC","longitude","37110DFCGzi","2838VjKgen","2892lKlmDw","79819pYibpm","3386012wlsqiK","toJSON","type","4528536fKmuag","prototype","281844YySXhf","22axgqjB","Point","446128vZDKXL","defineProperty"];return(Fh=function(){return t})()}!function(t,e){for(var r=Wh,n=Kh();;)try{if(863198===-parseInt(r(327))/1*(-parseInt(r(312))/2)+-parseInt(r(310))/3+parseInt(r(317))/4*(parseInt(r(330))/5)+parseInt(r(321))/6*(-parseInt(r(329))/7)+parseInt(r(314))/8*(-parseInt(r(311))/9)+parseInt(r(323))/10*(parseInt(r(306))/11)+parseInt(r(309))/12*(parseInt(r(322))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Hh=function(t){var e=Wh,r=typeof Symbol===e(307)&&Symbol.iterator,n=r&&t[r],i=0;if(n)return n[e(313)](t);if(t&&typeof t[e(334)]===e(324))return{next:function(){return t&&i>=t[e(334)]&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function Wh(t,e){var r=Kh();return(Wh=function(t,e){return r[t-=305]})(t,e)}var Gh=function(){var t=Wh;function e(t){var e=Wh;if(!jh(t))throw new TypeError(e(315)+typeof t);if(t[e(334)]<2)throw new Error('"points" must contain 2 points at least');t[e(308)]((function(t){if(!(t instanceof Bh))throw new TypeError(e(315)+typeof t+"[]")})),this[e(326)]=t}return e[t(333)].parse=function(e){var r,n=t;return(r={})[e]={type:n(319),coordinates:this.points[n(331)]((function(t){var e=n;return t[e(336)]()[e(325)]}))},r},e[t(333)][t(336)]=function(){var e=t;return{type:e(319),coordinates:this[e(326)][e(331)]((function(t){var r=e;return t[r(336)]()[r(325)]}))}},e.validate=function(e){var r,n,i=t;if(e[i(320)]!==i(319)||!jh(e[i(325)]))return!1;try{for(var o=Hh(e[i(325)]),s=o[i(335)]();!s[i(305)];s=o[i(335)]()){var a=s.value;if(!Ph(a[0])||!Ph(a[1]))return!1}}catch(t){r={error:t}}finally{try{s&&!s[i(305)]&&(n=o.return)&&n[i(313)](o)}finally{if(r)throw r[i(328)]}}return!0},e.isClosed=function(e){var r=t,n=e.points[0],i=e[r(326)][e[r(326)][r(334)]-1];if(n.latitude===i.latitude&&n[r(318)]===i[r(318)])return!0},Object[t(316)](e[t(333)],t(332),{get:function(){return hh},enumerable:!0,configurable:!0}),e}();function Kh(){var t=["76208eSIWeB","longitude","LineString","type","7501722jmwFbJ","24391588vEwpLc","313010rQDWCo","number","coordinates","points","2bswJhA","error","7LDSUyT","115AYOsmp","map","_internalType","prototype","length","next","toJSON","done","209mmzZCk","function","forEach","12WafuCS","158844UQuzxM","18pZqKSR","190124jjedqf","call","3731528ZyKryi",'"points" must be of type Point[]. Received type ',"defineProperty"];return(Kh=function(){return t})()}var Vh=zh;function zh(t,e){var r=Jh();return(zh=function(t,e){return r[t-=497]})(t,e)}function Jh(){var t=["Polygon must contain 1 linestring at least","lines","longitude","isCloseLineString","done","prototype","toJSON","15FfaCRX","__values","38460twBnsU","_internalType","LineString ","toReadableString","latitude","map","iterator","isClosed","242351LrHUWB","6619278nEqfAn","5duhQdo",'"lines" must be of type LineString[]. Received type ',"number","value","6149DvrkhZ","133mZrtrE","7700690aDJvEo","115932rXORHt","validate","call","Object is not iterable.","184216DGumRj","type","error","parse","9FayPRw","coordinates","next","Polygon","return","1431416suXTKr","points","length"];return(Jh=function(){return t})()}!function(t,e){for(var r=zh,n=Jh();;)try{if(847642===-parseInt(r(526))/1+parseInt(r(506))/2+-parseInt(r(516))/3*(parseInt(r(535))/4)+-parseInt(r(528))/5*(-parseInt(r(527))/6)+parseInt(r(533))/7*(parseInt(r(497))/8)+parseInt(r(501))/9*(parseInt(r(534))/10)+-parseInt(r(532))/11*(parseInt(r(518))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Yh=function(t){var e=Vh,r="function"==typeof Symbol&&Symbol[e(524)],n=r&&t[r],i=0;if(n)return n[e(537)](t);if(t&&typeof t[e(508)]===e(530))return{next:function(){return t&&i>=t[e(508)]&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?e(538):"Symbol.iterator is not defined.")},Xh=function(){var t=Vh;function e(t){var e=zh;if(!jh(t))throw new TypeError(e(529)+typeof t);if(0===t.length)throw new Error(e(509));t.forEach((function(t){var r=e;if(!(t instanceof Gh))throw new TypeError('"lines" must be of type LineString[]. Received type '+typeof t+"[]");if(!Gh[r(525)](t))throw new Error(r(520)+t[r(507)].map((function(t){return t[r(521)]()}))+" is not a closed cycle")})),this[e(510)]=t}return e[t(514)][t(500)]=function(e){var r,n=t;return(r={})[e]={type:"Polygon",coordinates:this.lines[n(523)]((function(t){var e=n;return t[e(507)][e(523)]((function(t){var r=e;return[t[r(511)],t[r(522)]]}))}))},r},e[t(514)][t(515)]=function(){var e=t;return{type:e(504),coordinates:this[e(510)][e(523)]((function(t){var r=e;return t.points[r(523)]((function(t){var e=r;return[t[e(511)],t[e(522)]]}))}))}},e[t(536)]=function(e){var r,n,i,o,s=t;if(e[s(498)]!==s(504)||!jh(e[s(502)]))return!1;try{for(var a=Yh(e[s(502)]),u=a[s(503)]();!u.done;u=a[s(503)]()){var c=u[s(531)];if(!this[s(512)](c))return!1;try{for(var f=(i=void 0,Yh(c)),h=f[s(503)]();!h[s(513)];h=f[s(503)]()){var p=h.value;if(!Ph(p[0])||!Ph(p[1]))return!1}}catch(t){i={error:t}}finally{try{h&&!h[s(513)]&&(o=f[s(505)])&&o.call(f)}finally{if(i)throw i.error}}}}catch(t){r={error:t}}finally{try{u&&!u[s(513)]&&(n=a.return)&&n[s(537)](a)}finally{if(r)throw r[s(499)]}}return!0},e[t(512)]=function(e){var r=t,n=e[0],i=e[e[r(508)]-1];return n[0]===i[0]&&n[1]===i[1]},Object.defineProperty(e.prototype,t(519),{get:function(){return dh},enumerable:!0,configurable:!0}),e}(),$h=tp;!function(t,e){for(var r=tp,n=Zh();;)try{if(608199===parseInt(r(363))/1*(parseInt(r(357))/2)+parseInt(r(331))/3*(-parseInt(r(358))/4)+parseInt(r(327))/5*(parseInt(r(342))/6)+-parseInt(r(335))/7*(-parseInt(r(361))/8)+-parseInt(r(345))/9+-parseInt(r(337))/10*(-parseInt(r(359))/11)+-parseInt(r(341))/12*(parseInt(r(338))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Qh=function(t){var e=$h,r=typeof Symbol===e(352)&&Symbol[e(333)],n=r&&t[r],i=0;if(n)return n[e(348)](t);if(t&&typeof t[e(349)]===e(343))return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?e(340):"Symbol.iterator is not defined.")};function Zh(){var t=["__values","3704016FNkwEX","toJSON","99341nmRcYd",'"points" must contain 1 point at least',"1819025cqGFqK","defineProperty","_internalType","map","501qrjPxi","parse","iterator","error","7hECwir","return","40710zTQRsU","1963TRAWbI","coordinates","Object is not iterable.","57204bJHrOc","12SaynuV","number","forEach","10328967GMYqEy","validate","MultiPoint","call","length",'"points" must be of type Point[]. Received type ',"prototype","function","type","done","next","points","22mlTNAz","4852UZuRCM","1067AiEUJd"];return(Zh=function(){return t})()}function tp(t,e){var r=Zh();return(tp=function(t,e){return r[t-=326]})(t,e)}var ep=function(){var t=$h;function e(t){var e=tp;if(!jh(t))throw new TypeError(e(350)+typeof t);if(0===t[e(349)])throw new Error(e(326));t[e(344)]((function(t){if(!(t instanceof Bh))throw new TypeError(e(350)+typeof t+"[]")})),this[e(356)]=t}return e[t(351)][t(332)]=function(e){var r,n=t;return(r={})[e]={type:n(347),coordinates:this[n(356)][n(330)]((function(t){var e=n;return t[e(362)]()[e(339)]}))},r},e.prototype[t(362)]=function(){var e=t;return{type:"MultiPoint",coordinates:this[e(356)][e(330)]((function(t){return t[e(362)]().coordinates}))}},e[t(346)]=function(e){var r,n,i=t;if(e[i(353)]!==i(347)||!jh(e.coordinates))return!1;try{for(var o=Qh(e[i(339)]),s=o[i(355)]();!s[i(354)];s=o.next()){var a=s.value;if(!Ph(a[0])||!Ph(a[1]))return!1}}catch(t){r={error:t}}finally{try{s&&!s[i(354)]&&(n=o[i(336)])&&n[i(348)](o)}finally{if(r)throw r[i(334)]}}return!0},Object[t(328)](e[t(351)],t(329),{get:function(){return lh},enumerable:!0,configurable:!0}),e}();!function(t,e){for(var r=ip,n=np();;)try{if(680156===-parseInt(r(494))/1+parseInt(r(474))/2*(-parseInt(r(490))/3)+parseInt(r(468))/4+parseInt(r(488))/5+parseInt(r(467))/6*(parseInt(r(473))/7)+-parseInt(r(484))/8+parseInt(r(478))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var rp=function(t){var e=ip,r=typeof Symbol===e(493)&&Symbol.iterator,n=r&&t[r],i=0;if(n)return n[e(496)](t);if(t&&typeof t.length===e(499))return{next:function(){return t&&i>=t[e(472)]&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e(r?498:482))};function np(){var t=["error","Object is not iterable.","number","map","parse","Polygon must contain 1 linestring at least","24LAgYgE","2807780YsfyWX","return","defineProperty","MultiLineString","length","1052044bcLXyx","2SwRwSA","forEach",'"lines" must be of type LineString[]. Received type ',"prototype","18980451pkqHbr","coordinates","value","toJSON","Symbol.iterator is not defined.","latitude","10271072igkWiN","next","validate","points","1174430jJeBFn","lines","1022610YwbJsU","type","done","function","1342028upnWhX","_internalType","call"];return(np=function(){return t})()}function ip(t,e){var r=np();return(ip=function(t,e){return r[t-=467]})(t,e)}var op=function(){var t=ip;function e(t){var e=ip;if(!jh(t))throw new TypeError(e(476)+typeof t);if(0===t[e(472)])throw new Error(e(502));t[e(475)]((function(t){if(!(t instanceof Gh))throw new TypeError('"lines" must be of type LineString[]. Received type '+typeof t+"[]")})),this.lines=t}return e[t(477)][t(501)]=function(e){var r,n=t;return(r={})[e]={type:n(471),coordinates:this[n(489)][n(500)]((function(t){return t[n(487)].map((function(t){return[t.longitude,t.latitude]}))}))},r},e[t(477)][t(481)]=function(){return{type:"MultiLineString",coordinates:this.lines.map((function(t){return t.points.map((function(t){var e=ip;return[t.longitude,t[e(483)]]}))}))}},e[t(486)]=function(e){var r,n,i,o,s=t;if("MultiLineString"!==e[s(491)]||!jh(e.coordinates))return!1;try{for(var a=rp(e[s(479)]),u=a[s(485)]();!u[s(492)];u=a[s(485)]()){var c=u[s(480)];try{for(var f=(i=void 0,rp(c)),h=f[s(485)]();!h[s(492)];h=f[s(485)]()){var p=h[s(480)];if(!Ph(p[0])||!Ph(p[1]))return!1}}catch(t){i={error:t}}finally{try{h&&!h[s(492)]&&(o=f[s(469)])&&o[s(496)](f)}finally{if(i)throw i[s(497)]}}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n[s(496)](a)}finally{if(r)throw r[s(497)]}}return!0},Object[t(470)](e[t(477)],t(495),{get:function(){return vh},enumerable:!0,configurable:!0}),e}();!function(t,e){for(var r=cp,n=up();;)try{if(225612===-parseInt(r(407))/1+-parseInt(r(396))/2+parseInt(r(395))/3+-parseInt(r(414))/4*(parseInt(r(410))/5)+-parseInt(r(412))/6+parseInt(r(408))/7+-parseInt(r(404))/8*(-parseInt(r(405))/9))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var sp=function(t){var e=cp,r="function"==typeof Symbol&&Symbol[e(411)],n=r&&t[r],i=0;if(n)return n.call(t);if(t&&typeof t[e(400)]===e(423))return{next:function(){return t&&i>=t[e(400)]&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e(r?394:418))},ap=function(){var t=cp;function e(t){var e,r,n=cp;if(!jh(t))throw new TypeError(n(424)+typeof t);if(0===t.length)throw new Error(n(425));try{for(var i=sp(t),o=i[n(399)]();!o[n(409)];o=i[n(399)]()){var s=o[n(413)];if(!(s instanceof Xh))throw new TypeError('"polygon" must be of type Polygon[]. Received type '+typeof s+"[]")}}catch(t){e={error:t}}finally{try{o&&!o[n(409)]&&(r=i.return)&&r.call(i)}finally{if(e)throw e[n(417)]}}this[n(403)]=t}return e[t(421)][t(420)]=function(e){var r,n=t;return(r={})[e]={type:n(426),coordinates:this[n(403)][n(397)]((function(t){var e=n;return t[e(401)][e(397)]((function(t){var r=e;return t.points[r(397)]((function(t){var e=r;return[t[e(406)],t[e(415)]]}))}))}))},r},e[t(421)][t(402)]=function(){var e=t;return{type:e(426),coordinates:this.polygons.map((function(t){var r=e;return t[r(401)][r(397)]((function(t){var e=r;return t.points[e(397)]((function(t){var r=e;return[t[r(406)],t[r(415)]]}))}))}))}},e[t(398)]=function(e){var r,n,i,o,s,a,u=t;if(e.type!==u(426)||!jh(e[u(427)]))return!1;try{for(var c=sp(e[u(427)]),f=c[u(399)]();!f[u(409)];f=c[u(399)]()){var h=f.value;try{for(var p=(i=void 0,sp(h)),l=p.next();!l[u(409)];l=p[u(399)]()){var v=l.value;try{for(var d=(s=void 0,sp(v)),y=d.next();!y[u(409)];y=d[u(399)]()){var I=y[u(413)];if(!Ph(I[0])||!Ph(I[1]))return!1}}catch(t){s={error:t}}finally{try{y&&!y[u(409)]&&(a=d[u(416)])&&a.call(d)}finally{if(s)throw s[u(417)]}}}}catch(t){i={error:t}}finally{try{l&&!l[u(409)]&&(o=p[u(416)])&&o[u(419)](p)}finally{if(i)throw i[u(417)]}}}}catch(t){r={error:t}}finally{try{f&&!f[u(409)]&&(n=c[u(416)])&&n.call(c)}finally{if(r)throw r.error}}return!0},Object[t(422)](e[t(421)],"_internalType",{get:function(){return ph},enumerable:!0,configurable:!0}),e}();function up(){var t=["number",'"polygons" must be of type Polygon[]. Received type ',"MultiPolygon must contain 1 polygon at least","MultiPolygon","coordinates","Object is not iterable.","1000530tXxEyT","70582PxtyeF","map","validate","next","length","lines","toJSON","polygons","64uqVtuY","163521hqcwNt","longitude","275013cveVBt","2312625WMQZnY","done","25tFaxMi","iterator","1484616XjukXj","value","20708OioOqN","latitude","return","error","Symbol.iterator is not defined.","call","parse","prototype","defineProperty"];return(up=function(){return t})()}function cp(t,e){var r=up();return(cp=function(t,e){return r[t-=394]})(t,e)}function fp(t,e){var r=hp();return(fp=function(t,e){return r[t-=440]})(t,e)}function hp(){var t=["4638otBMjx","3575mjpGGt","8866647vpyQUy","365167zIKixJ","563298DWIoiL","483627PVjjTv","4wtRIeL","374VNFDyn","353066BFHLnu","137090UoJJmn","8Qbmdfs"];return(hp=function(){return t})()}!function(t,e){for(var r=fp,n=hp();;)try{if(603429===-parseInt(r(447))/1+parseInt(r(448))/2+parseInt(r(449))/3*(-parseInt(r(450))/4)+-parseInt(r(445))/5*(parseInt(r(444))/6)+parseInt(r(441))/7*(-parseInt(r(443))/8)+parseInt(r(446))/9+parseInt(r(442))/10*(parseInt(r(440))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var pp=Object.freeze({__proto__:null,LineString:Gh,MultiLineString:op,MultiPoint:ep,MultiPolygon:ap,Point:Bh,Polygon:Xh});function lp(t,e){var r=mp();return(lp=function(t,e){return r[t-=170]})(t,e)}!function(t,e){for(var r=lp,n=mp();;)try{if(224227===-parseInt(r(181))/1+parseInt(r(175))/2+-parseInt(r(176))/3+parseInt(r(183))/4+parseInt(r(179))/5*(parseInt(r(170))/6)+parseInt(r(172))/7*(-parseInt(r(174))/8)+parseInt(r(173))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var vp,dp,yp,Ip=function(){var t,e=lp;if(!Promise){(t=function(){}).promise={};var r=function(){throw new Error(lp(177)+'Set "global.Promise" to your preferred implementation of promises.')};return Object[e(178)](t[e(182)],e(180),{get:r}),Object[e(178)](t.promise,e(171),{get:r}),t}var n=new Promise((function(e,r){t=function(t,n){return t?r(t):e(n)}}));return t.promise=n,t};function mp(){var t=["Your Node runtime does support ES6 Promises. ","defineProperty","5srstfK","then","380912hYGOoV","promise","1621028oUPLMI","2035032zvEhtE","catch","77uGJFcb","954837oKpmrK","171992pzVJaD","834080pbTskE","1277802pqQtHD"];return(mp=function(){return t})()}function gp(t,e){var r=bp();return(gp=function(t,e){return r[t-=272]})(t,e)}function bp(){var t=["SET","2537780rSGrTu","PULL_ALL","inc","pop","shift","MUL","operands","prototype","set","rename","PULL","2210910iNlVyM","_internalType","defineProperties","5918rWDTsK","_setFieldName","SHIFT","90haOegI","ADD_TO_SET","12791RyVddl","INC","BIT","bit","remove","pullAll","2048576uyiSnp","MIN","UNSHIFT","REMOVE","POP","133344XqRksF","20140LemrQQ","MAX","push","122325MFfTTi","min","27pNxvRD","operator","180JLClav","max","toUpperCase"];return(bp=function(){return t})()}!function(t,e){for(var r=gp,n=bp();;)try{if(419785===-parseInt(r(304))/1*(parseInt(r(302))/2)+-parseInt(r(296))/3+parseInt(r(285))/4+parseInt(r(281))/5*(parseInt(r(273))/6)+-parseInt(r(277))/7+-parseInt(r(310))/8*(parseInt(r(279))/9)+parseInt(r(274))/10*(parseInt(r(299))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),(dp=vp||(vp={}))[(yp=gp)(284)]=yp(293),dp[yp(313)]=yp(308),dp[yp(305)]=yp(287),dp[yp(290)]="mul",dp.PUSH=yp(276),dp[yp(295)]="pull",dp[yp(286)]=yp(309),dp[yp(272)]=yp(288),dp[yp(301)]=yp(289),dp[yp(312)]="unshift",dp[yp(303)]="addToSet",dp[yp(306)]=yp(307),dp.RENAME=yp(294),dp[yp(275)]=yp(282),dp[yp(311)]=yp(278);var wp=function(){var t=gp;function e(t,e,r){var n=gp;this[n(297)]=ah,Object[n(298)](this,{_internalType:{enumerable:!1,configurable:!1}}),this[n(280)]=t,this[n(291)]=e,this.fieldName=r||sh}return e[t(292)][t(300)]=function(r){var n=t;return new e(this[n(280)],this[n(291)],r)},e}();function _p(t){return t&&t instanceof wp&&t[gp(297)]===ah}var Ep,Sp,Op,Ap=Tp;function Tp(t,e){var r=Np();return(Tp=function(t,e){return r[t-=169]})(t,e)}function Np(){var t=["651ibExVh","4105928AxSRBX","82515aHHQHI","length","1240771YsuAmT","6FMQqlV","_internalType","NOR","operator","from","13300tOIUQA","3552201NVbxVv","prototype","NOT","164936OBiSUN","nor","99255uKlAFF","operands","fieldName","and","unshift","AND","_setFieldName","defineProperties","isArray","not"];return(Np=function(){return t})()}!function(t,e){for(var r=Tp,n=Np();;)try{if(363374===-parseInt(r(193))/1+parseInt(r(191))/2+-parseInt(r(177))/3*(parseInt(r(187))/4)+-parseInt(r(179))/5*(-parseInt(r(182))/6)+parseInt(r(181))/7+parseInt(r(178))/8+parseInt(r(188))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Ap(170),Ap(192),(Sp=Ep||(Ep={}))[(Op=Ap)(172)]=Op(170),Sp.OR="or",Sp[Op(190)]=Op(176),Sp[Op(184)]=Op(192);var kp=function(){var t=Ap;function e(t,e,r){var n=Tp;if(this[n(183)]=ch,Object[n(174)](this,{_internalType:{enumerable:!1,configurable:!1}}),this.operator=t,this.operands=e,this[n(169)]=r||sh,this[n(169)]!==sh)if(Array[n(175)](e)){e=e.slice(),this.operands=e;for(var i=0,o=e[n(180)];i<o;i++){(xp(s=e[i])||qp(s))&&(e[i]=s[n(173)](this[n(169)]))}}else{var s;(xp(s=e)||qp(s))&&(e=s._setFieldName(this.fieldName))}}return e[t(189)]._setFieldName=function(r){var n=t,i=this[n(194)].map((function(t){return t instanceof e?t[n(173)](r):t}));return new e(this[n(185)],i,r)},e[t(189)][t(170)]=function(){var r=t,n=Array[r(175)](arguments[0])?arguments[0]:Array[r(186)](arguments);return n[r(171)](this),new e(Ep[r(172)],n,this[r(169)])},e.prototype.or=function(){for(var r=t,n=0;n<arguments[r(180)];n++);var i=Array.isArray(arguments[0])?arguments[0]:Array[r(186)](arguments);return i[r(171)](this),new e(Ep.OR,i,this[r(169)])},e}();function xp(t){return t&&t instanceof kp&&t[Ap(183)]===ch}var Rp=Up;!function(t,e){for(var r=Up,n=Mp();;)try{if(736814===parseInt(r(196))/1*(-parseInt(r(195))/2)+-parseInt(r(204))/3+-parseInt(r(235))/4+parseInt(r(215))/5+parseInt(r(234))/6*(-parseInt(r(232))/7)+-parseInt(r(192))/8*(-parseInt(r(205))/9)+parseInt(r(221))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Pp,Cp,jp,Dp,Lp=(Pp=function(t,e){return(Pp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){var r=Up;for(var n in e)e[r(211)](n)&&(t[n]=e[n])})(t,e)},function(t,e){var r=Up;function n(){this[Up(210)]=t}Pp(t,e),t[r(227)]=null===e?Object[r(219)](e):(n[r(227)]=e[r(227)],new n)});function Up(t,e){var r=Mp();return(Up=function(t,e){return r[t-=189]})(t,e)}function Mp(){var t=["maxDistance",'"geometry" must be of type Polygon or MultiPolygon. Received type ',"create","and","11377440UkVFUU","geoWithin",'"maxDistance" must be of type Number. Received type ',"GEO_WITHIN","GEO_NEAR","EXISTS","prototype","geoNear","lte","toUpperCase","LTE","4543fmmOzb","size","12486qVRGPW","2117916KnNhsi","operator","operands","__extends","NIN","call","NEQ","104NARjDQ","all","neq","2EisPOk","152302aULGTI","GEO_INTERSECTS","GTE",'"minDistance" must be of type Number. Received type ',"nin","mod","elemMatch","ELEM_MATCH","1323102qevLzu","806337zWuaaK","toJSON","minDistance","geoIntersects","fieldName","constructor","hasOwnProperty","gte","exists",'"geometry" must be of type Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon. Received type ',"4538725pwHiTg","geometry"];return(Mp=function(){return t})()}Rp(212),Rp(229),Rp(200),Rp(193),Rp(213),Rp(233),Rp(201),jp=Cp||(Cp={}),Dp=Rp,jp.EQ="eq",jp[Dp(191)]=Dp(194),jp.GT="gt",jp[Dp(198)]=Dp(212),jp.LT="lt",jp[Dp(231)]="lte",jp.IN="in",jp[Dp(189)]=Dp(200),jp.ALL=Dp(193),jp[Dp(203)]=Dp(202),jp[Dp(226)]=Dp(213),jp.SIZE=Dp(233),jp.MOD="mod",jp[Dp(225)]=Dp(228),jp[Dp(224)]="geoWithin",jp[Dp(197)]=Dp(208);var Bp=function(t){var e=Rp;function r(e,r,n){var i=t[Up(190)](this,e,r,n)||this;return i.operator=e,i._internalType=uh,i}return Lp(r,t),r[e(227)][e(206)]=function(){var t,r,n=e;switch(this[n(236)]){case Cp.IN:case Cp[n(189)]:return(t={})["$"+this.operator]=this[n(237)],t;default:return(r={})["$"+this[n(236)]]=this[n(237)][0],r}},r.prototype._setFieldName=function(t){var n=e;return new r(this.operator,this[n(237)],t)},r[e(227)].eq=function(t){var n=e,i=new r(Cp.EQ,[t],this[n(209)]);return this[n(220)](i)},r.prototype.neq=function(t){var n=e,i=new r(Cp[n(191)],[t],this[n(209)]);return this.and(i)},r[e(227)].gt=function(t){var n=e,i=new r(Cp.GT,[t],this[n(209)]);return this.and(i)},r[e(227)][e(212)]=function(t){var e=new r(Cp.GTE,[t],this.fieldName);return this.and(e)},r[e(227)].lt=function(t){var n=e,i=new r(Cp.LT,[t],this.fieldName);return this[n(220)](i)},r.prototype[e(229)]=function(t){var n=e,i=new r(Cp[n(231)],[t],this[n(209)]);return this[n(220)](i)},r[e(227)].in=function(t){var n=e,i=new r(Cp.IN,t,this[n(209)]);return this[n(220)](i)},r[e(227)].nin=function(t){var n=e,i=new r(Cp.NIN,t,this[n(209)]);return this[n(220)](i)},r.prototype[e(228)]=function(t){var n=e;if(!(t[n(216)]instanceof Bh))throw new TypeError('"geometry" must be of type Point. Received type '+typeof t[n(216)]);if(void 0!==t[n(217)]&&!Ph(t[n(217)]))throw new TypeError(n(223)+typeof t.maxDistance);if(void 0!==t[n(207)]&&!Ph(t[n(207)]))throw new TypeError(n(199)+typeof t[n(207)]);var i=new r(Cp[n(225)],[t],this.fieldName);return this[n(220)](i)},r.prototype[e(222)]=function(t){var n=e;if(!(t[n(216)]instanceof ap||t.geometry instanceof Xh))throw new TypeError(n(218)+typeof t.geometry);var i=new r(Cp[n(224)],[t],this[n(209)]);return this[n(220)](i)},r[e(227)][e(208)]=function(t){var n=e;if(!(t[n(216)]instanceof Bh||t[n(216)]instanceof Gh||t.geometry instanceof Xh||t[n(216)]instanceof ep||t[n(216)]instanceof op||t.geometry instanceof ap))throw new TypeError(n(214)+typeof t[n(216)]);var i=new r(Cp[n(197)],[t],this.fieldName);return this.and(i)},r}(kp);function qp(t){return t&&t instanceof Bp&&t._internalType===uh}function Fp(t){return qp(t)}var Hp=Vp;function Wp(){var t=["404943oYGxJE","NEQ","$ne","$pop","6mYkOUN","6yfvSHv","838860scjUNS","6534290MNIlDL","9TKEXIb","$push","9920104dtIVBN","170OMOwWy","SHIFT","6Gpgymd","REMOVE","376946ZkjOSt","67153812BPSkyc","514290CfdxOZ"];return(Wp=function(){return t})()}!function(t,e){for(var r=Vp,n=Wp();;)try{if(946661===parseInt(r(197))/1*(-parseInt(r(190))/2)+-parseInt(r(198))/3*(parseInt(r(199))/4)+-parseInt(r(200))/5*(parseInt(r(188))/6)+parseInt(r(192))/7+-parseInt(r(203))/8*(parseInt(r(201))/9)+parseInt(r(204))/10*(-parseInt(r(193))/11)+parseInt(r(191))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Gp={};for(var Kp in Cp)Gp[Kp]="$"+Kp;for(var Kp in Ep)Gp[Kp]="$"+Kp;for(var Kp in vp)Gp[Kp]="$"+Kp;function Vp(t,e){var r=Wp();return(Vp=function(t,e){return r[t-=188]})(t,e)}function zp(t){return Gp[t]||"$"+t}function Jp(t,e){var r=Yp();return(Jp=function(t,e){return r[t-=434]})(t,e)}function Yp(){var t=["push","Cannot convert circular structure to JSON","__spread","_internalType","next","hasOwnProperty","81542TIqVMU","number","length","37XvkBeB","apply","indexOf","call","152JJmSWo","iterator","flags","$date","done","26946293SekkCR","3XtOcTG","6036884oIFysv","988206ZqLyfK","40YfVMeH","coordinates","2196580IIWswY","11414565XbwKFZ","value","parse","toJSON","map","concat","function","type","482083FEHrro","__read","assign","error"];return(Yp=function(){return t})()}Gp[Cp[Hp(194)]]=Hp(195),Gp[vp[Hp(189)]]="$unset",Gp[vp[Hp(205)]]=Hp(196),Gp[vp.UNSHIFT]=Hp(202);var Xp=Jp;!function(t,e){for(var r=Jp,n=Yp();;)try{if(872865===-parseInt(r(463))/1*(parseInt(r(460))/2)+-parseInt(r(436))/3*(-parseInt(r(437))/4)+parseInt(r(439))/5*(-parseInt(r(438))/6)+parseInt(r(450))/7*(-parseInt(r(467))/8)+parseInt(r(442))/9+-parseInt(r(441))/10+parseInt(r(435))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var $p=function(){var t=Jp;return $p=Object[t(452)]||function(e){for(var r,n=t,i=1,o=arguments.length;i<o;i++)for(var s in r=arguments[i])Object.prototype[n(459)][n(466)](r,s)&&(e[s]=r[s]);return e},$p[t(464)](this,arguments)},Qp=function(t,e){var r=Xp,n=typeof Symbol===r(448)&&t[Symbol[r(468)]];if(!n)return t;var i,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=s[r(458)]()).done;)a[r(454)](i[r(443)])}catch(t){o={error:t}}finally{try{i&&!i[r(434)]&&(n=s.return)&&n.call(s)}finally{if(o)throw o[r(453)]}}return a},Zp=function(){for(var t=Xp,e=[],r=0;r<arguments[t(462)];r++)e=e[t(447)](Qp(arguments[r]));return e};function tl(t){return el(t,[t])}function el(t,e){var r=Xp;if(!Uh(t)){if(Dh(t))return{$date:+t};if(Lh(t))return{$regex:t.source,$options:t[r(469)]};if(jh(t))return t[r(446)]((function(t){var n=r;if(e.indexOf(t)>-1)throw new Error(n(455));return el(t,Zp(e,[t]))}));if(Rh(t)){var n=$p({},t);for(var i in n){if(e[r(465)](n[i])>-1)throw new Error("Cannot convert circular structure to JSON");n[i]=el(n[i],Zp(e,[n[i]]))}return n}return t}switch(t[r(457)]){case fh:return t[r(445)]();case yh:return t[r(444)]();case Ih:return t.parse();default:return t[r(445)]?t[r(445)]():t}}var rl=fl;!function(t,e){for(var r=fl,n=cl();;)try{if(394446===-parseInt(r(350))/1+-parseInt(r(344))/2*(parseInt(r(331))/3)+parseInt(r(354))/4*(-parseInt(r(326))/5)+-parseInt(r(346))/6+parseInt(r(335))/7*(parseInt(r(341))/8)+-parseInt(r(333))/9*(parseInt(r(336))/10)+parseInt(r(334))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var nl=function(){var t=rl;return nl=Object[t(328)]||function(e){for(var r,n=t,i=1,o=arguments.length;i<o;i++)for(var s in r=arguments[i])Object.prototype[n(330)].call(r,s)&&(e[s]=r[s]);return e},nl.apply(this,arguments)},il=function(t,e){var r=rl,n=typeof Symbol===r(329)&&t[Symbol.iterator];if(!n)return t;var i,o,s=n[r(348)](t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=s[r(337)]())[r(342)];)a.push(i[r(340)])}catch(t){o={error:t}}finally{try{i&&!i[r(342)]&&(n=s[r(351)])&&n[r(348)](s)}finally{if(o)throw o[r(347)]}}return a},ol=function(){for(var t=rl,e=[],r=0;r<arguments[t(343)];r++)e=e[t(349)](il(arguments[r]));return e};function sl(t,e,r,n){var i=rl,o=nl({},t);for(var s in t)if(!/^\$/[i(353)](s)){var a=t[s];if(a&&Rh(a)&&!e(a)){if(n.indexOf(a)>-1)throw new Error(i(327));var u=sl(a,e,ol(r,[s]),ol(n,[a]));o[s]=u;var c=!1;for(var f in u)/^\$/[i(353)](f)?c=!0:(o[s+"."+f]=u[f],delete o[s][f]);!c&&delete o[s]}}return o}function al(t){return sl(t,hl,[],[t])}function ul(t,e,r){var n=rl;for(var i in!e[r]&&delete t[r],e)t[i]?jh(t[i])?t[i][n(352)](e[i]):Rh(t[i])?Rh(e[i])?Object.assign(t[i],e[i]):(console[n(345)](n(332)+xh(e)+", can only overwrite",e,r),t[i]=e[i]):(console[n(345)]("to-merge query is of type "+xh(t)+", can only overwrite",t,e,r),t[i]=e[i]):t[i]=e[i]}function cl(){var t=["concat","717689GrOkOz","return","push","test","88tOtILI","169115RklZFf","Cannot convert circular structure to JSON","assign","function","hasOwnProperty","987mNpZZO","unmergable condition, query is object but condition is ","27ZgRdzm","30713551nVHzrw","7haSfmE","1688370QEUdQi","next","__read","__assign","value","5438392nYbSDA","done","length","2462VKiole","warn","4225134YhhuBN","error","call"];return(cl=function(){return t})()}function fl(t,e){var r=cl();return(fl=function(t,e){return r[t-=326]})(t,e)}function hl(t){return Uh(t)||Dh(t)||Lh(t)}function pl(t){return tl(t)}function ll(t,e){var r=vl();return(ll=function(t,e){return r[t-=324]})(t,e)}function vl(){var t=["REMOVE","encode","PULL_ALL","11634271UjEFrT","encodeArrayUpdateCommand","UNSHIFT","map","test","10964VCblon","POP","Cannot encode a comparison command with unset field name","operands","6923FbJwaD","978104MRvXAr","ADD_TO_SET","prototype","SET","362790CYfico","186rshFDj","PUSH","encodeUpdate","SHIFT","encodeFieldUpdateCommand","18872SoPuUR","fieldName","_setFieldName","PULL","297NzuRwe","encodeUpdateObject","operator","encodeUpdateCommand","6othfuQ","18empyPa","2085640sHmTWS"];return(vl=function(){return t})()}!function(t,e){for(var r=ll,n=vl();;)try{if(156309===parseInt(r(355))/1*(-parseInt(r(340))/2)+-parseInt(r(336))/3*(parseInt(r(351))/4)+-parseInt(r(326))/5+-parseInt(r(327))/6*(parseInt(r(332))/7)+-parseInt(r(356))/8*(parseInt(r(341))/9)+-parseInt(r(342))/10+parseInt(r(346))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var dl=function(){var t=ll;function e(){}return e[t(344)]=function(t){return(new e).encodeUpdate(t)},e.prototype[t(329)]=function(e){var r=t;return _p(e)?this.encodeUpdateCommand(e):"object"===xh(e)?this[r(337)](e):e},e.prototype[t(339)]=function(e){var r=t;if(e[r(333)]===sh)throw new Error(r(353));switch(e.operator){case vp[r(328)]:case vp[r(335)]:case vp[r(345)]:case vp[r(352)]:case vp[r(330)]:case vp[r(348)]:case vp[r(357)]:return this[r(347)](e);default:return this[r(331)](e)}},e[t(324)][t(331)]=function(e){var r,n,i,o,s=t,a=zp(e[s(338)]);return e[s(338)]===vp[s(343)]?((r={})[a]=((n={})[e.fieldName]="",n),r):((i={})[a]=((o={})[e[s(333)]]=e.operands[0],o),i)},e[t(324)][t(347)]=function(e){var r,n,i,o,s,a,u,c,f,h,p=t,l=zp(e[p(338)]);switch(e[p(338)]){case vp.PUSH:var v=void 0;return v=jh(e[p(354)])?{$each:e[p(354)][p(349)](pl)}:e[p(354)],(r={})[l]=((n={})[e[p(333)]]=v,n),r;case vp[p(348)]:v={$each:e[p(354)].map(pl),$position:0};return(i={})[l]=((o={})[e.fieldName]=v,o),i;case vp[p(352)]:return(s={})[l]=((a={})[e[p(333)]]=1,a),s;case vp.SHIFT:return(u={})[l]=((c={})[e[p(333)]]=-1,c),u;default:return(f={})[l]=((h={})[e.fieldName]=pl(e.operands),h),f}},e[t(324)].encodeUpdateObject=function(e){var r=t,n=al(e);for(var i in n)if(!/^\$/[r(350)](i)){var o=n[i];if(_p(o)){n[i]=o[r(334)](i),ul(n,this[r(339)](n[i]),i)}else{n[i]=o=pl(o);var s=new wp(vp[r(325)],[o],i);ul(n,this[r(339)](s),i)}}return n},e}();function yl(){var t=["58518TpXkPZ","to use realtime you must import realtime module first","371NYvgDu","649320HJYxxh","2QSYBWb","11XGeyqI","24328aqyRvK","161611RCFGzy","config","reqClass","280sGzOwU","wsClientClass","4850100xfbYwd","1416uDrMwL","4100AlzmDm","680960mMXCzF","any"];return(yl=function(){return t})()}function Il(t,e){var r=yl();return(Il=function(t,e){return r[t-=245]})(t,e)}!function(t,e){for(var r=Il,n=yl();;)try{if(116127===parseInt(r(256))/1*(-parseInt(r(253))/2)+parseInt(r(252))/3+-parseInt(r(247))/4+parseInt(r(246))/5*(-parseInt(r(245))/6)+-parseInt(r(251))/7*(parseInt(r(255))/8)+-parseInt(r(249))/9*(-parseInt(r(259))/10)+-parseInt(r(254))/11*(-parseInt(r(261))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var ml={};function gl(t){var e=Il;if(!$d[e(260)])throw new Error(e(250));var r=t.config.env;return!ml[r]&&(ml[r]=new($d[e(260)])({context:{appConfig:{docSizeLimit:1e3,realtimePingInterval:1e4,realtimePongWaitTimeout:5e3,request:new($d[e(258)])(t[e(257)])}}})),ml[r]}!function(t,e){for(var r=_l,n=wl();;)try{if(532881===-parseInt(r(149))/1+parseInt(r(118))/2+parseInt(r(155))/3*(-parseInt(r(161))/4)+-parseInt(r(152))/5*(parseInt(r(133))/6)+parseInt(r(115))/7+parseInt(r(141))/8*(parseInt(r(162))/9)+-parseInt(r(156))/10*(-parseInt(r(148))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var bl=function(){var t=_l;return bl=Object[t(150)]||function(e){for(var r,n=t,i=1,o=arguments.length;i<o;i++)for(var s in r=arguments[i])Object[n(137)][n(165)].call(r,s)&&(e[s]=r[s]);return e},bl[t(127)](this,arguments)};function wl(){var t=["prototype","不能更新_id的值","watch","encode","8TCwRMb","INVALID_PARAM","TotalCount","参数必需是非空对象","formatResDocumentData","database.queryDocument","code","1639OMzqfl","433041djkFDf","assign","_id","15365RooILz","DOC","upserted_id","7401BnFWVb","12970pqrcTp","env","deleted","config","stringify","300CpFnlr","7855695PMMTgb","catch","requestId","hasOwnProperty","data","remove","1811901RJEvVY","projection","updated","1772362AtNcig","_coll","field","then","database.addDocument","resolve","database.updateDocument","get","_db","apply","database.deleteDocument","object","send","docId不能为空","promise","2070YKtuZi","request","set","reqClass"];return(wl=function(){return t})()}function _l(t,e){var r=wl();return(_l=function(t,e){return r[t-=113]})(t,e)}var El=function(){var t=_l;function e(t,e,r,n){var i=_l,o=this;void 0===n&&(n={}),this[i(139)]=function(t){var e=i;return gl(o[e(126)])[e(139)](bl(bl({},t),{envId:o._db[e(159)][e(157)],collectionName:o[e(119)],query:JSON[e(160)]({_id:o.id})}))},this[i(126)]=t,this[i(119)]=e,this.id=r,this[i(134)]=new($d[i(136)])(this[i(126)][i(159)]),this.projection=n}return e[t(137)].create=function(e,r){var n=t;r=r||Ip();var i={collectionName:this[n(119)],data:tl(e)};return this.id&&(i[n(151)]=this.id),this[n(134)][n(130)](n(122),i)[n(121)]((function(t){var e=n;t.code?r(0,t):r(0,{id:t[e(113)][e(151)],requestId:t.requestId})}))[n(163)]((function(t){r(t)})),r[n(132)]},e[t(137)][t(135)]=function(e,r){var n=t;if(r=r||Ip(),!this.id)return Promise[n(123)]({code:n(142),message:n(131)});if(!e||"object"!=typeof e)return Promise[n(123)]({code:"INVALID_PARAM",message:"参数必需是非空对象"});if(e.hasOwnProperty("_id"))return Promise[n(123)]({code:"INVALID_PARAM",message:n(138)});var i=!1,o=function(t){var e=n;if("object"==typeof t)for(var r in t)t[r]instanceof wp?i=!0:typeof t[r]===e(129)&&o(t[r])};if(o(e),i)return Promise[n(123)]({code:"DATABASE_REQUEST_FAILED",message:"update operator complicit"});var s={collectionName:this[n(119)],queryType:Wf[n(153)],data:tl(e),multi:!1,merge:!1,upsert:!0};return this.id&&(s.query={_id:this.id}),this.request[n(130)](n(124),s).then((function(t){var e=n;t[e(147)]?r(0,t):r(0,{updated:t[e(113)][e(117)],upsertedId:t[e(113)].upserted_id,requestId:t[e(164)]})}))[n(163)]((function(t){r(t)})),r[n(132)]},e[t(137)].update=function(e,r){var n=t;if(r=r||Ip(),!e||typeof e!==n(129))return Promise.resolve({code:n(142),message:n(144)});if(e[n(165)](n(151)))return Promise[n(123)]({code:n(142),message:n(138)});var i={_id:this.id},o={collectionName:this[n(119)],data:dl[n(140)](e),query:i,queryType:Wf[n(153)],multi:!1,merge:!0,upsert:!1};return this[n(134)][n(130)]("database.updateDocument",o)[n(121)]((function(t){var e=n;t[e(147)]?r(0,t):r(0,{updated:t[e(113)][e(117)],upsertedId:t[e(113)][e(154)],requestId:t.requestId})}))[n(163)]((function(t){r(t)})),r[n(132)]},e.prototype[t(114)]=function(e){var r=t;e=e||Ip();var n={_id:this.id},i={collectionName:this._coll,query:n,queryType:Wf[r(153)],multi:!1};return this[r(134)][r(130)](r(128),i).then((function(t){var n=r;t[n(147)]?e(0,t):e(0,{deleted:t[n(113)][n(158)],requestId:t.requestId})}))[r(163)]((function(t){e(t)})),e.promise},e[t(137)][t(125)]=function(e){var r=t;e=e||Ip();var n={_id:this.id},i={collectionName:this[r(119)],query:n,queryType:Wf[r(153)],multi:!1,projection:this[r(116)]};return this[r(134)].send(r(146),i).then((function(t){var n=r;if(t.code)e(0,t);else{var i=Ah[n(145)](t[n(113)].list);e(0,{data:i,requestId:t[n(164)],total:t[n(143)],limit:t.Limit,offset:t.Offset})}}))[r(163)]((function(t){e(t)})),e[r(132)]},e[t(137)][t(120)]=function(r){var n=t;for(var i in r)r[i]?r[i]=1:r[i]=0;return new e(this[n(126)],this[n(119)],this.id,r)},e}();function Sl(t,e){var r=Ol();return(Sl=function(t,e){return r[t-=160]})(t,e)}function Ol(){var t=["704katZQj","2679816nmnrNY","source","235hEMLBa","geometry","163636gPnBKu","ELEM_MATCH",", can only overwrite","NOT","1672999AOQImi","NOR","ALL","Cannot encode a comparison command with unset field name","NIN","encodeQueryCommand","GTE","maxDistance","845020ZgEZdB","to-merge query is of type ","minDistance","prototype","SIZE","encodeQueryObject","_setFieldName","operands","concat","warn","map","117ucBKkq","94920rtjhAn","operator","encodeRegExp","16772635xNKmoB","encode","LTE","MOD","toJSON","mergeConditionAfterEncode","NEQ","encodeLogicCommand","81ZvEpcu","encodeComparisonCommand","fieldName","unmergable condition, query is object but condition is ","121530AiLHKm","encodeQuery"];return(Ol=function(){return t})()}!function(t,e){for(var r=Sl,n=Ol();;)try{if(922980===parseInt(r(177))/1+-parseInt(r(169))/2+-parseInt(r(196))/3*(-parseInt(r(173))/4)+-parseInt(r(171))/5*(-parseInt(r(166))/6)+-parseInt(r(197))/7*(parseInt(r(168))/8)+parseInt(r(162))/9*(parseInt(r(185))/10)+-parseInt(r(200))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Al=function(){function t(){}return t[Sl(201)]=function(t){return(new Tl).encodeQuery(t)},t}(),Tl=function(){var t=Sl;function e(){}return e[t(188)][t(167)]=function(e,r){var n,i=t;return hl(e)?xp(e)?this[i(161)](e):qp(e)?this[i(182)](e):((n={})[r]=this[i(190)](e),n):Rh(e)?this.encodeQueryObject(e):e},e[t(188)][t(199)]=function(e){return{$regex:e[t(170)],$options:e.flags}},e.prototype.encodeLogicCommand=function(e){var r,n,i,o,s,a,u,c=t,f=this;switch(e[c(198)]){case Ep[c(178)]:case Ep.AND:case Ep.OR:var h=zp(e[c(198)]),p=e.operands[c(195)]((function(t){var r=c;return f[r(167)](t,e[r(164)])}));return(r={})[h]=p,r;case Ep[c(176)]:h=zp(e[c(198)]);var l=e[c(192)][0];if(Lh(l))return(n={})[e[c(164)]]=((i={})[h]=this.encodeRegExp(l),i),n;p=this[c(167)](l)[e[c(164)]];return(o={})[e.fieldName]=((s={})[h]=p,s),o;default:h=zp(e[c(198)]);if(1===e[c(192)].length){var v=this[c(167)](e[c(192)][0]);return(a={})[h]=v,a}p=e[c(192)].map(this[c(167)].bind(this));return(u={})[h]=p,u}},e[t(188)][t(182)]=function(t){return Fp(t),this.encodeComparisonCommand(t)},e.prototype[t(163)]=function(e){var r,n,i,o,s,a,u,c,f,h=t;if(e[h(164)]===sh)throw new Error(h(180));var p=zp(e[h(198)]);switch(e[h(198)]){case Cp.EQ:case Cp[h(160)]:case Cp.LT:case Cp[h(202)]:case Cp.GT:case Cp[h(183)]:case Cp[h(174)]:case Cp.EXISTS:case Cp[h(189)]:case Cp[h(203)]:return(r={})[e.fieldName]=((n={})[p]=pl(e[h(192)][0]),n),r;case Cp.IN:case Cp[h(181)]:case Cp[h(179)]:return(i={})[e[h(164)]]=((o={})[p]=pl(e.operands),o),i;case Cp.GEO_NEAR:var l=e[h(192)][0];return(s={})[e[h(164)]]={$nearSphere:{$geometry:l[h(172)].toJSON(),$maxDistance:l[h(184)],$minDistance:l[h(187)]}},s;case Cp.GEO_WITHIN:l=e[h(192)][0];return(a={})[e[h(164)]]={$geoWithin:{$geometry:l.geometry[h(204)]()}},a;case Cp.GEO_INTERSECTS:l=e[h(192)][0];return(u={})[e[h(164)]]={$geoIntersects:{$geometry:l.geometry[h(204)]()}},u;default:return(c={})[e[h(164)]]=((f={})[p]=pl(e[h(192)][0]),f),c}},e[t(188)].encodeQueryObject=function(e){var r=t,n=al(e);for(var i in n){var o=n[i];if(xp(o)){n[i]=o[r(191)](i);var s=this.encodeLogicCommand(n[i]);this[r(205)](n,s,i)}else if(Fp(o)){n[i]=o[r(191)](i);s=this[r(163)](n[i]);this[r(205)](n,s,i)}else hl(o)&&(n[i]=pl(o))}return n},e[t(188)][t(205)]=function(e,r,n){var i=t;for(var o in!r[n]&&delete e[n],r)e[o]?jh(e[o])?e[o]=e[o][i(193)](r[o]):Rh(e[o])?Rh(r[o])?Object.assign(e,r):(console[i(194)](i(165)+xh(r)+i(175),r,n),e[o]=r[o]):(console[i(194)](i(186)+xh(e)+i(175),e,r,n),e[o]=r[o]):e[o]=r[o]},e}(),Nl=kl;function kl(t,e){var r=Rl();return(kl=function(t,e){return r[t-=273]})(t,e)}!function(t,e){for(var r=kl,n=Rl();;)try{if(164892===parseInt(r(330))/1*(parseInt(r(295))/2)+-parseInt(r(276))/3*(parseInt(r(309))/4)+parseInt(r(323))/5*(parseInt(r(304))/6)+-parseInt(r(321))/7*(parseInt(r(297))/8)+parseInt(r(325))/9+-parseInt(r(289))/10*(-parseInt(r(284))/11)+parseInt(r(312))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var xl=function(){var t=Nl;return xl=Object.assign||function(t){for(var e,r=kl,n=1,i=arguments[r(308)];n<i;n++)for(var o in e=arguments[n])Object[r(345)][r(302)][r(299)](e,o)&&(t[o]=e[o]);return t},xl[t(320)](this,arguments)};function Rl(){var t=["_coll","remove","count","data","encode","apply","298991PHwgyk","slice","5QIvVQI","_queryOptions","1709334LRLuBI","_fieldOrders","warn","updated","limit","51eEeoWq","promise","update","`orderBy` is not supported in remove() operation","code","forEach","upsert_id","keys","Object","database.queryDocument","QueryParamValueError","database.countDocument","direction","QueryParamTypeError","watch","prototype","_fieldFilters","Limit","requestId","catch","object","resolve","order","get","141OWjzLP","INVALID_PARAM","isFieldOrder","then","不能更新_id的值","_db","__assign","offset","1944371IOpggA","Offset","isInteger","参数必需是非空对象","`offset`, `limit` and `projection` are not supported in remove() operation","10pKwuEU","TotalCount","list","push","total","field","1558VcUldR","skip","40oyjncR","send","call","config","_id","hasOwnProperty","projection","139962tbYUHv","_request","stringify","database.updateDocument","length","9988fwlhhd","toString","some","792876CvPuVq","WHERE","query"];return(Rl=function(){return t})()}var Pl=function(){var t=Nl;function e(t,e,r,n,i){var o=kl,s=this;this.watch=function(t){var e=kl;return gl(s[e(281)])[e(344)](xl(xl({},t),{envId:s[e(281)][e(300)].env,collectionName:s[e(315)],query:JSON[e(306)](s[e(346)]||{}),limit:s[e(324)].limit,orderBy:s[e(326)]?s._fieldOrders.reduce((function(t,r){var n=e;return t[r[n(294)]]=r[n(342)],t}),{}):void 0}))},this[o(281)]=t,this[o(315)]=e,this[o(346)]=r,this[o(326)]=n||[],this[o(324)]=i||{},this[o(305)]=new $d.reqClass(this._db[o(300)])}return e[t(345)][t(275)]=function(e){var r=t;e=e||Ip();var n=[];this[r(326)]&&this[r(326)][r(335)]((function(t){n[r(292)](t)}));var i={collectionName:this[r(315)],queryType:Wf[r(313)]};return this._fieldFilters&&(i[r(314)]=this[r(346)]),n[r(308)]>0&&(i[r(274)]=n),this._queryOptions[r(283)]&&(i[r(283)]=this[r(324)][r(283)]),this[r(324)][r(329)]?i[r(329)]=this[r(324)].limit<1e3?this[r(324)][r(329)]:1e3:i[r(329)]=100,this[r(324)].projection&&(i[r(303)]=this._queryOptions[r(303)]),this[r(305)][r(298)](r(339),i).then((function(t){var n=r;if(t.code)e(0,t);else{var i={data:Ah.formatResDocumentData(t[n(318)][n(291)]),requestId:t[n(348)]};t[n(290)]&&(i.total=t[n(290)]),t.Limit&&(i[n(329)]=t[n(347)]),t[n(285)]&&(i.offset=t[n(285)]),e(0,i)}}))[r(349)]((function(t){e(t)})),e[r(331)]},e[t(345)][t(317)]=function(e){var r=t;e=e||Ip();var n={collectionName:this[r(315)],queryType:Wf[r(313)]};return this._fieldFilters&&(n[r(314)]=this[r(346)]),this._request[r(298)](r(341),n).then((function(t){var n=r;t[n(334)]?e(0,t):e(0,{requestId:t.requestId,total:t.data[n(293)]})}))[r(349)]((function(t){e(t)})),e[r(331)]},e[t(345)].where=function(r){var n=t;if(Object.prototype[n(310)][n(299)](r)[n(322)](8,-1)!==n(338))throw Error(jf[n(343)]);var i=Object.keys(r),o=i[n(311)]((function(t){return void 0!==r[t]}));if(i.length&&!o)throw Error(jf[n(340)]);return new e(this[n(281)],this._coll,Al[n(319)](r),this[n(326)],this[n(324)])},e[t(345)].orderBy=function(r,n){var i=t;kh.isFieldPath(r),kh[i(278)](n);var o={field:r,direction:n},s=this[i(326)].concat(o);return new e(this[i(281)],this._coll,this[i(346)],s,this[i(324)])},e[t(345)].limit=function(r){var n=t;kh[n(286)](n(329),r);var i=xl({},this[n(324)]);return i.limit=r,new e(this._db,this[n(315)],this[n(346)],this._fieldOrders,i)},e[t(345)][t(296)]=function(r){var n=t;kh.isInteger("offset",r);var i=xl({},this[n(324)]);return i[n(283)]=r,new e(this[n(281)],this[n(315)],this[n(346)],this[n(326)],i)},e.prototype[t(332)]=function(e,r){var n=t;if(r=r||Ip(),!e||typeof e!==n(350))return Promise.resolve({code:n(277),message:n(287)});if(e[n(302)](n(301)))return Promise[n(273)]({code:"INVALID_PARAM",message:n(280)});var i={collectionName:this[n(315)],query:this[n(346)],queryType:Wf[n(313)],multi:!0,merge:!0,upsert:!1,data:dl.encode(e)};return this[n(305)][n(298)](n(307),i)[n(279)]((function(t){var e=n;t[e(334)]?r(0,t):r(0,{requestId:t[e(348)],updated:t.data[e(328)],upsertId:t[e(318)][e(336)]})}))[n(349)]((function(t){r(t)})),r.promise},e[t(345)][t(294)]=function(r){var n=t;for(var i in r)r[i]?"object"!=typeof r[i]&&(r[i]=1):r[i]=0;var o=xl({},this[n(324)]);return o[n(303)]=r,new e(this[n(281)],this[n(315)],this[n(346)],this._fieldOrders,o)},e.prototype[t(316)]=function(e){var r=t;e=e||Ip(),Object[r(337)](this[r(324)])[r(308)]>0&&console[r(327)](r(288)),this._fieldOrders[r(308)]>0&&console[r(327)](r(333));var n={collectionName:this[r(315)],query:Al[r(319)](this[r(346)]),queryType:Wf[r(313)],multi:!0};return this[r(305)][r(298)]("database.deleteDocument",n)[r(279)]((function(t){var n=r;t.code?e(0,t):e(0,{requestId:t[n(348)],deleted:t[n(318)].deleted})})).catch((function(t){e(t)})),e[r(331)]},e}(),Cl=Ll;!function(t,e){for(var r=Ll,n=Rv();;)try{if(844380===-parseInt(r(304))/1+parseInt(r(534))/2*(-parseInt(r(239))/3)+-parseInt(r(216))/4*(parseInt(r(269))/5)+-parseInt(r(358))/6*(parseInt(r(360))/7)+-parseInt(r(280))/8+-parseInt(r(243))/9*(parseInt(r(558))/10)+parseInt(r(299))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var jl=function(t,e){var r=Ll;return(jl=Object[r(580)]||{__proto__:[]}instanceof Array&&function(t,e){t[r(206)]=e}||function(t,e){var n=r;for(var i in e)e[n(425)](i)&&(t[i]=e[i])})(t,e)};function Dl(t,e){var r=Ll;function n(){this[Ll(461)]=t}jl(t,e),t[r(488)]=null===e?Object[r(581)](e):(n[r(488)]=e[r(488)],new n)}function Ll(t,e){var r=Rv();return(Ll=function(t,e){return r[t-=203]})(t,e)}var Ul=function(t){var e=Ll;function r(e){var n=Ll,i=t.call(this,e)||this;return Object.setPrototypeOf(i,r[n(488)]),i}return Dl(r,t),Object[e(279)](r[e(488)],e(222),{get:function(){return"BSONError"},enumerable:!1,configurable:!0}),r}(Error),Ml=function(t){var e=Ll;function r(e){var n=Ll,i=t[n(252)](this,e)||this;return Object[n(580)](i,r[n(488)]),i}return Dl(r,t),Object[e(279)](r[e(488)],e(222),{get:function(){return e(228)},enumerable:!1,configurable:!0}),r}(TypeError);function Bl(t){return t&&t[Ll(237)]==Math&&t}function ql(){var t=Ll;return Bl(typeof globalThis===t(376)&&globalThis)||Bl("object"==typeof window&&window)||Bl("object"==typeof self&&self)||Bl(typeof global===t(376)&&global)||Function("return this")()}var Fl=function(e){var r,n,i=Ll,o=(r=Ll,typeof(n=ql())[r(317)]===r(376)&&n.navigator[r(555)]===r(540)?"BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.":"BSON: No cryptographic implementation for random bytes present, falling back to a less secure implementation.");console.warn(o);for(var s=t[i(592)](e),a=0;a<e;++a)s[a]=Math[i(591)](256*Math[i(328)]());return s},Hl=function(){var t=Ll,e=void 0;try{e=require("crypto")[t(204)]}catch(t){}return e||Fl}();function Wl(t){var e=Ll;return Object[e(488)][e(408)].call(t)===e(400)}function Gl(t){return typeof t===Ll(376)&&null!==t}function Kl(t,e){var r=!1;return function(){for(var n=Ll,i=[],o=0;o<arguments[n(491)];o++)i[o]=arguments[o];return!r&&(console.warn(e),r=!0),t[n(246)](this,i)}}function Vl(e){var r,n,i=Ll;if(ArrayBuffer[i(241)](e))return t[i(514)](e[i(323)],e[i(213)],e[i(418)]);if(r=e,[(n=Ll)(428),n(303)].includes(Object.prototype[n(408)][n(252)](r)))return t[i(514)](e);throw new Ml(i(544))}var zl=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15})$/i,Jl=function(t){var e=Ll;return typeof t===e(462)&&zl[e(384)](t)},Yl=function(e){var r=Ll;if(!Jl(e))throw new Ml('UUID string representations must be a 32 or 36 character hex string (dashes excluded/included). Format: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" or "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".');var n=e[r(377)](/-/g,"");return t[r(514)](n,r(325))},Xl=function(t,e){var r=Ll;return void 0===e&&(e=!0),e?t.toString(r(325),0,4)+"-"+t.toString(r(325),4,6)+"-"+t[r(408)]("hex",6,8)+"-"+t[r(408)](r(325),8,10)+"-"+t.toString("hex",10,16):t[r(408)](r(325))};Math[Cl(551)](2,63),Math[Cl(551)](2,63);var $l=Math.pow(2,53),Ql=-Math[Cl(551)](2,53),Zl=function(){var e=Cl;function r(e,n){var i=Ll;if(!(this instanceof r))return new r(e,n);if(!(null==e||typeof e===i(462)||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||Array.isArray(e)))throw new Ml(i(337));this.sub_type=null!=n?n:r[i(567)],null==e?(this.buffer=t[i(592)](r[i(261)]),this[i(565)]=0):(typeof e===i(462)?this[i(323)]=t.from(e,i(208)):Array[i(283)](e)?this[i(323)]=t.from(e):this[i(323)]=Vl(e),this[i(565)]=this[i(323)][i(418)])}return r[e(488)][e(585)]=function(n){var i,o=e;if(typeof n===o(462)&&1!==n[o(491)])throw new Ml("only accepts single character String");if(typeof n!==o(307)&&1!==n.length)throw new Ml(o(452));if((i=typeof n===o(462)?n[o(355)](0):"number"==typeof n?n:n[0])<0||i>255)throw new Ml(o(517));if(this[o(323)][o(491)]>this.position)this[o(323)][this[o(565)]++]=i;else{var s=t[o(592)](r[o(261)]+this[o(323)][o(491)]);this.buffer[o(464)](s,0,0,this[o(323)][o(491)]),this[o(323)]=s,this[o(323)][this[o(565)]++]=i}},r[e(488)][e(576)]=function(r,n){var i=e;if(n=typeof n===i(307)?n:this[i(565)],this[i(323)][i(491)]<n+r[i(491)]){var o=t[i(592)](this[i(323)][i(491)]+r[i(491)]);this[i(323)].copy(o,0,0,this[i(323)][i(491)]),this[i(323)]=o}ArrayBuffer[i(241)](r)?(this[i(323)][i(315)](Vl(r),n),this[i(565)]=n+r[i(418)]>this[i(565)]?n+r[i(491)]:this[i(565)]):typeof r===i(462)&&(this[i(323)][i(576)](r,n,r[i(491)],i(208)),this[i(565)]=n+r.length>this[i(565)]?n+r.length:this.position)},r[e(488)][e(465)]=function(t,r){var n=e;return r=r&&r>0?r:this[n(565)],this[n(323)][n(570)](t,t+r)},r[e(488)][e(260)]=function(t){var r=e;return(t=!!t)&&this[r(323)][r(491)]===this.position?this.buffer:t?this[r(323)].slice(0,this[r(565)]):this[r(323)][r(408)](r(208),0,this.position)},r[e(488)][e(491)]=function(){return this[e(565)]},r[e(488)][e(285)]=function(){var t=e;return this[t(323)].toString(t(572))},r[e(488)][e(408)]=function(t){var r=e;return this.buffer[r(408)](t)},r.prototype[e(515)]=function(t){var r=e;t=t||{};var n=this.buffer[r(408)](r(572)),i=Number(this.sub_type)[r(408)](16);return t.legacy?{$binary:n,$type:1===i[r(491)]?"0"+i:i}:{$binary:{base64:n,subType:1===i[r(491)]?"0"+i:i}}},r.prototype[e(568)]=function(){var t=e;if(this[t(225)]===r[t(209)])return new tv(this[t(323)].slice(0,this[t(565)]));throw new Ul('Binary sub_type "'[t(244)](this[t(225)],'" is not supported for converting to UUID. Only "')[t(244)](r[t(209)],t(549)))},r[e(496)]=function(n,i){var o,s,a=e;if(i=i||{},a(306)in n?i[a(231)]&&typeof n.$binary===a(462)&&a(229)in n?(s=n[a(229)]?parseInt(n[a(229)],16):0,o=t[a(514)](n[a(306)],a(572))):typeof n[a(306)]!==a(462)&&(s=n[a(306)].subType?parseInt(n[a(306)].subType,16):0,o=t.from(n[a(306)][a(572)],a(572))):a(300)in n&&(s=4,o=Yl(n[a(300)])),!o)throw new Ml("Unexpected Binary Extended JSON format "[a(244)](JSON[a(389)](n)));return 4===s?new tv(o):new r(o,s)},r.prototype[Symbol[e(380)]("nodejs.util.inspect.custom")]=function(){return this[e(519)]()},r[e(488)][e(519)]=function(){var t=e,r=this[t(260)](!0);return t(211)[t(244)](r[t(408)](t(325)),t(535))[t(244)](this.sub_type,")")},r[e(567)]=0,r[e(261)]=256,r.SUBTYPE_DEFAULT=0,r.SUBTYPE_FUNCTION=1,r[e(274)]=2,r[e(368)]=3,r[e(209)]=4,r[e(426)]=5,r[e(338)]=6,r[e(443)]=7,r.SUBTYPE_USER_DEFINED=128,r}();Object.defineProperty(Zl[Cl(488)],"_bsontype",{value:Cl(471)});var tv=function(e){var r=Cl;function n(r){var i,o,s=Ll,a=this;if(null==r)i=n.generate();else if(r instanceof n)i=t[s(514)](r[s(323)]),o=r[s(382)];else if(ArrayBuffer.isView(r)&&16===r[s(418)])i=Vl(r);else{if("string"!=typeof r)throw new Ml(s(263));i=Yl(r)}return(a=e[s(252)](this,i,4)||this)[s(382)]=o,a}return Dl(n,e),Object.defineProperty(n[r(488)],"id",{get:function(){return this.buffer},set:function(t){var e=r;this[e(323)]=t,n.cacheHexString&&(this[e(382)]=Xl(t))},enumerable:!1,configurable:!0}),n[r(488)].toHexString=function(t){var e=r;if(void 0===t&&(t=!0),n[e(214)]&&this[e(382)])return this.__id;var i=Xl(this.id,t);return n[e(214)]&&(this[e(382)]=i),i},n[r(488)][r(408)]=function(t){var e=r;return t?this.id.toString(t):this[e(314)]()},n.prototype[r(285)]=function(){return this.toHexString()},n[r(488)][r(399)]=function(t){var e=r;if(!t)return!1;if(t instanceof n)return t.id[e(399)](this.id);try{return new n(t).id[e(399)](this.id)}catch(t){return!1}},n[r(488)].toBinary=function(){var t=r;return new Zl(this.id,Zl[t(209)])},n[r(502)]=function(){var e=Hl(16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,t.from(e)},n.isValid=function(t){var e=r;return!!t&&(t instanceof n||(typeof t===e(462)?Jl(t):!!Wl(t)&&(16===t[e(491)]&&(64==(240&t[6])&&128==(128&t[8])))))},n[r(313)]=function(t){return new n(Yl(t))},n[r(488)][Symbol[r(380)](r(470))]=function(){return this.inspect()},n[r(488)][r(519)]=function(){var t=r;return t(292)[t(244)](this[t(314)](),'")')},n}(Zl),ev=function(){var t=Cl;function e(t,r){var n=Ll;if(!(this instanceof e))return new e(t,r);this[n(278)]=t,this[n(480)]=r}return e[t(488)][t(285)]=function(){var e=t;return{code:this.code,scope:this[e(480)]}},e[t(488)][t(515)]=function(){var e=t;return this[e(480)]?{$code:this[e(278)],$scope:this[e(480)]}:{$code:this[e(278)]}},e[t(496)]=function(r){var n=t;return new e(r[n(434)],r[n(509)])},e[t(488)][Symbol.for(t(470))]=function(){return this.inspect()},e[t(488)][t(519)]=function(){var e=t,r=this[e(285)]();return e(305).concat(String(r[e(278)]),'"')[e(244)](r.scope?", ".concat(JSON[e(389)](r[e(480)])):"",")")},e}();Object.defineProperty(ev[Cl(488)],Cl(383),{value:Cl(265)});var rv=function(){var t=Cl;function e(t,r,n,i){var o=Ll;if(!(this instanceof e))return new e(t,r,n,i);var s=t[o(227)](".");2===s.length&&(n=s[o(348)](),t=s[o(348)]()),this.collection=t,this[o(575)]=r,this.db=n,this[o(388)]=i||{}}return Object.defineProperty(e[t(488)],t(386),{get:function(){return this[t(371)]},set:function(e){this[t(371)]=e},enumerable:!1,configurable:!0}),e[t(488)][t(285)]=function(){var e=t,r=Object[e(508)]({$ref:this.collection,$id:this[e(575)]},this[e(388)]);return null!=this.db&&(r.$db=this.db),r},e.prototype.toExtendedJSON=function(e){var r=t;e=e||{};var n={$ref:this[r(371)],$id:this.oid};return e[r(231)]?n:(this.db&&(n[r(398)]=this.db),n=Object[r(508)](n,this[r(388)]))},e.fromExtendedJSON=function(r){var n=t,i=Object[n(508)]({},r);return delete i.$ref,delete i.$id,delete i[n(398)],new e(r.$ref,r[n(406)],r[n(398)],i)},e[t(488)][Symbol[t(380)](t(470))]=function(){return this[t(519)]()},e.prototype[t(519)]=function(){var e=t,r=void 0===this[e(575)]||void 0===this[e(575)][e(408)]?this[e(575)]:this[e(575)].toString();return e(588)[e(244)](this.namespace,e(245))[e(244)](String(r),'")')[e(244)](this.db?e(430)[e(244)](this.db,'"'):"",")")},e}();Object[Cl(279)](rv.prototype,Cl(383),{value:Cl(506)});var nv=void 0;try{nv=new(WebAssembly[Cl(494)])(new(WebAssembly[Cl(559)])(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{})[Cl(548)]}catch(t){}var iv=4294967296,ov=0x10000000000000000,sv=ov/2,av={},uv={},cv=function(){var t=Cl;function e(t,r,n){var i=Ll;if(void 0===t&&(t=0),!(this instanceof e))return new e(t,r,n);typeof t===i(379)?Object.assign(this,e[i(284)](t,!!r)):typeof t===i(462)?Object[i(508)](this,e[i(489)](t,!!r)):(this[i(254)]=0|t,this[i(332)]=0|r,this[i(344)]=!!n),Object.defineProperty(this,i(403),{value:!0,configurable:!1,writable:!1,enumerable:!1})}return e.fromBits=function(t,r,n){return new e(t,r,n)},e[t(419)]=function(r,n){var i,o,s,a=t;return n?(s=0<=(r>>>=0)&&r<256)&&(o=uv[r])?o:(i=e[a(455)](r,(0|r)<0?-1:0,!0),s&&(uv[r]=i),i):(s=-128<=(r|=0)&&r<128)&&(o=av[r])?o:(i=e[a(455)](r,r<0?-1:0,!1),s&&(av[r]=i),i)},e[t(474)]=function(r,n){var i=t;if(isNaN(r))return n?e.UZERO:e[i(207)];if(n){if(r<0)return e[i(510)];if(r>=ov)return e[i(442)]}else{if(r<=-sv)return e[i(449)];if(r+1>=sv)return e[i(498)]}return r<0?e.fromNumber(-r,n)[i(270)]():e[i(455)](r%iv|0,r/iv|0,n)},e[t(284)]=function(r,n){var i=t;return e[i(489)](r[i(408)](),n)},e[t(489)]=function(r,n,i){var o,s=t;if(0===r[s(491)])throw Error(s(451));if(r===s(444)||"Infinity"===r||"+Infinity"===r||"-Infinity"===r)return e[s(207)];if(typeof n===s(307)?(i=n,n=!1):n=!!n,(i=i||10)<2||36<i)throw RangeError(s(481));if((o=r[s(363)]("-"))>0)throw Error(s(499));if(0===o)return e[s(489)](r[s(264)](1),n,i).neg();for(var a=e[s(474)](Math[s(551)](i,8)),u=e.ZERO,c=0;c<r[s(491)];c+=8){var f=Math[s(333)](8,r[s(491)]-c),h=parseInt(r[s(264)](c,c+f),i);if(f<8){var p=e.fromNumber(Math[s(551)](i,f));u=u[s(294)](p)[s(404)](e[s(474)](h))}else u=(u=u[s(294)](a))[s(404)](e[s(474)](h))}return u[s(344)]=n,u},e.fromBytes=function(r,n,i){var o=t;return i?e[o(402)](r,n):e[o(438)](r,n)},e[t(402)]=function(t,r){return new e(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,r)},e[t(438)]=function(t,r){return new e(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],r)},e.isLong=function(e){var r=t;return Gl(e)&&!0===e[r(403)]},e[t(577)]=function(r,n){var i=t;return typeof r===i(307)?e[i(474)](r,n):typeof r===i(462)?e[i(489)](r,n):e.fromBits(r[i(254)],r.high,"boolean"==typeof n?n:r.unsigned)},e[t(488)][t(404)]=function(r){var n=t;e[n(584)](r)||(r=e[n(577)](r));var i=this.high>>>16,o=65535&this[n(332)],s=this.low>>>16,a=65535&this[n(254)],u=r[n(332)]>>>16,c=65535&r[n(332)],f=r[n(254)]>>>16,h=0,p=0,l=0,v=0;return l+=(v+=a+(65535&r[n(254)]))>>>16,v&=65535,p+=(l+=s+f)>>>16,l&=65535,h+=(p+=o+c)>>>16,p&=65535,h+=i+u,h&=65535,e.fromBits(l<<16|v,h<<16|p,this[n(344)])},e[t(488)].and=function(r){var n=t;return e[n(584)](r)||(r=e[n(577)](r)),e[n(455)](this[n(254)]&r[n(254)],this[n(332)]&r.high,this[n(344)])},e.prototype[t(412)]=function(r){var n=t;if(e[n(584)](r)||(r=e.fromValue(r)),this.eq(r))return 0;var i=this[n(248)](),o=r[n(248)]();return i&&!o?-1:!i&&o?1:this[n(344)]?r[n(332)]>>>0>this.high>>>0||r[n(332)]===this[n(332)]&&r[n(254)]>>>0>this[n(254)]>>>0?-1:1:this[n(523)](r)[n(248)]()?-1:1},e[t(488)].comp=function(e){return this[t(412)](e)},e.prototype[t(205)]=function(r){var n,i,o,s=t;if(e[s(584)](r)||(r=e.fromValue(r)),r[s(247)]())throw Error(s(433));if(nv){if(!this.unsigned&&-2147483648===this.high&&-1===r[s(254)]&&-1===r[s(332)])return this;var a=(this[s(344)]?nv[s(490)]:nv[s(219)])(this[s(254)],this[s(332)],r[s(254)],r.high);return e[s(455)](a,nv[s(210)](),this[s(344)])}if(this[s(247)]())return this[s(344)]?e[s(510)]:e[s(207)];if(this[s(344)]){if(r[s(344)]||(r=r[s(521)]()),r.gt(this))return e[s(510)];if(r.gt(this[s(217)](1)))return e[s(486)];o=e[s(510)]}else{if(this.eq(e.MIN_VALUE))return r.eq(e[s(527)])||r.eq(e[s(532)])?e[s(449)]:r.eq(e[s(449)])?e[s(527)]:(n=this[s(587)](1).div(r)[s(520)](1)).eq(e[s(207)])?r[s(248)]()?e[s(527)]:e[s(532)]:(i=this[s(523)](r[s(294)](n)),o=n[s(404)](i[s(324)](r)));if(r.eq(e[s(449)]))return this[s(344)]?e[s(510)]:e[s(207)];if(this[s(248)]())return r[s(248)]()?this[s(270)]()[s(324)](r.neg()):this[s(270)]()[s(324)](r)[s(270)]();if(r[s(248)]())return this[s(324)](r[s(270)]())[s(270)]();o=e[s(207)]}for(i=this;i[s(301)](r);){n=Math[s(267)](1,Math.floor(i[s(422)]()/r.toNumber()));for(var u=Math[s(271)](Math[s(407)](n)/Math.LN2),c=u<=48?1:Math[s(551)](2,u-48),f=e[s(474)](n),h=f[s(294)](r);h[s(248)]()||h.gt(i);)n-=c,h=(f=e[s(474)](n,this.unsigned)).mul(r);f[s(247)]()&&(f=e.ONE),o=o[s(404)](f),i=i[s(523)](h)}return o},e[t(488)].div=function(e){return this[t(205)](e)},e[t(488)][t(399)]=function(r){var n=t;return e.isLong(r)||(r=e[n(577)](r)),(this[n(344)]===r[n(344)]||this[n(332)]>>>31!=1||r.high>>>31!=1)&&(this[n(332)]===r[n(332)]&&this[n(254)]===r[n(254)])},e[t(488)].eq=function(e){return this[t(399)](e)},e.prototype[t(375)]=function(){return this[t(332)]},e.prototype[t(401)]=function(){return this[t(332)]>>>0},e.prototype.getLowBits=function(){return this.low},e[t(488)][t(327)]=function(){return this[t(254)]>>>0},e[t(488)].getNumBitsAbs=function(){var r=t;if(this.isNegative())return this.eq(e[r(449)])?64:this.neg().getNumBitsAbs();var n,i=0!==this[r(332)]?this.high:this[r(254)];for(n=31;n>0&&0==(i&1<<n);n--);return 0!==this[r(332)]?n+33:n+1},e[t(488)][t(475)]=function(e){return this[t(492)](e)>0},e[t(488)].gt=function(e){return this[t(475)](e)},e[t(488)][t(437)]=function(t){return this.comp(t)>=0},e[t(488)].gte=function(e){return this[t(437)](e)},e[t(488)].ge=function(e){return this[t(437)](e)},e[t(488)][t(409)]=function(){return 0==(1&this.low)},e[t(488)][t(248)]=function(){var e=t;return!this[e(344)]&&this[e(332)]<0},e[t(488)][t(538)]=function(){return 1==(1&this[t(254)])},e[t(488)][t(421)]=function(){var e=t;return this[e(344)]||this[e(332)]>=0},e[t(488)].isZero=function(){var e=t;return 0===this[e(332)]&&0===this[e(254)]},e[t(488)][t(396)]=function(e){return this[t(492)](e)<0},e.prototype.lt=function(e){return this[t(396)](e)},e[t(488)][t(458)]=function(e){return this[t(492)](e)<=0},e[t(488)][t(242)]=function(e){return this[t(458)](e)},e.prototype[t(483)]=function(r){var n=t;if(e[n(584)](r)||(r=e[n(577)](r)),nv){var i=(this[n(344)]?nv[n(373)]:nv.rem_s)(this[n(254)],this[n(332)],r[n(254)],r.high);return e[n(455)](i,nv.get_high(),this[n(344)])}return this[n(523)](this[n(324)](r).mul(r))},e.prototype.mod=function(e){return this[t(483)](e)},e[t(488)][t(218)]=function(t){return this.modulo(t)},e[t(488)][t(286)]=function(r){var n=t;if(this[n(247)]())return e.ZERO;if(e[n(584)](r)||(r=e.fromValue(r)),nv){var i=nv.mul(this.low,this[n(332)],r[n(254)],r[n(332)]);return e.fromBits(i,nv[n(210)](),this[n(344)])}if(r.isZero())return e[n(207)];if(this.eq(e[n(449)]))return r[n(538)]()?e.MIN_VALUE:e.ZERO;if(r.eq(e[n(449)]))return this[n(538)]()?e[n(449)]:e[n(207)];if(this[n(248)]())return r.isNegative()?this[n(270)]()[n(294)](r[n(270)]()):this[n(270)]()[n(294)](r).neg();if(r[n(248)]())return this[n(294)](r[n(270)]())[n(270)]();if(this.lt(e.TWO_PWR_24)&&r.lt(e.TWO_PWR_24))return e.fromNumber(this[n(422)]()*r[n(422)](),this.unsigned);var o=this[n(332)]>>>16,s=65535&this.high,a=this.low>>>16,u=65535&this[n(254)],c=r.high>>>16,f=65535&r[n(332)],h=r[n(254)]>>>16,p=65535&r[n(254)],l=0,v=0,d=0,y=0;return d+=(y+=u*p)>>>16,y&=65535,v+=(d+=a*p)>>>16,d&=65535,v+=(d+=u*h)>>>16,d&=65535,l+=(v+=s*p)>>>16,v&=65535,l+=(v+=a*h)>>>16,v&=65535,l+=(v+=u*f)>>>16,v&=65535,l+=o*p+s*h+a*f+u*c,l&=65535,e.fromBits(d<<16|y,l<<16|v,this[n(344)])},e.prototype[t(294)]=function(t){return this.multiply(t)},e[t(488)].negate=function(){var r=t;return!this.unsigned&&this.eq(e[r(449)])?e[r(449)]:this[r(547)]()[r(404)](e[r(527)])},e[t(488)][t(270)]=function(){return this[t(530)]()},e[t(488)].not=function(){var r=t;return e.fromBits(~this[r(254)],~this[r(332)],this[r(344)])},e[t(488)].notEquals=function(t){return!this.equals(t)},e[t(488)][t(417)]=function(e){return this[t(346)](e)},e[t(488)].ne=function(e){return this[t(346)](e)},e.prototype.or=function(r){var n=t;return e[n(584)](r)||(r=e[n(577)](r)),e.fromBits(this.low|r[n(254)],this[n(332)]|r.high,this.unsigned)},e.prototype[t(594)]=function(r){var n=t;return e[n(584)](r)&&(r=r[n(485)]()),0==(r&=63)?this:r<32?e[n(455)](this[n(254)]<<r,this[n(332)]<<r|this[n(254)]>>>32-r,this[n(344)]):e[n(455)](0,this.low<<r-32,this.unsigned)},e[t(488)][t(520)]=function(e){return this[t(594)](e)},e[t(488)][t(573)]=function(r){var n=t;return e[n(584)](r)&&(r=r[n(485)]()),0==(r&=63)?this:r<32?e[n(455)](this.low>>>r|this[n(332)]<<32-r,this[n(332)]>>r,this[n(344)]):e[n(455)](this[n(332)]>>r-32,this[n(332)]>=0?0:-1,this[n(344)])},e[t(488)][t(587)]=function(t){return this.shiftRight(t)},e.prototype[t(339)]=function(r){var n=t;if(e[n(584)](r)&&(r=r[n(485)]()),0===(r&=63))return this;var i=this[n(332)];if(r<32){var o=this.low;return e[n(455)](o>>>r|i<<32-r,i>>>r,this.unsigned)}return 32===r?e[n(455)](i,0,this.unsigned):e[n(455)](i>>>r-32,0,this[n(344)])},e[t(488)][t(411)]=function(e){return this[t(339)](e)},e[t(488)][t(217)]=function(e){return this[t(339)](e)},e[t(488)][t(529)]=function(r){var n=t;return e[n(584)](r)||(r=e[n(577)](r)),this[n(404)](r.neg())},e[t(488)][t(523)]=function(t){return this.subtract(t)},e[t(488)][t(485)]=function(){var e=t;return this[e(344)]?this[e(254)]>>>0:this[e(254)]},e[t(488)][t(422)]=function(){var e=t;return this[e(344)]?(this[e(332)]>>>0)*iv+(this[e(254)]>>>0):this[e(332)]*iv+(this[e(254)]>>>0)},e[t(488)].toBigInt=function(){return BigInt(this[t(408)]())},e.prototype[t(290)]=function(e){var r=t;return e?this[r(460)]():this[r(582)]()},e[t(488)][t(460)]=function(){var e=t,r=this[e(332)],n=this[e(254)];return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&r,r>>>8&255,r>>>16&255,r>>>24]},e.prototype[t(582)]=function(){var e=this[t(332)],r=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,r>>>24,r>>>16&255,r>>>8&255,255&r]},e[t(488)][t(366)]=function(){var r=t;return this[r(344)]?e.fromBits(this.low,this[r(332)],!1):this},e.prototype[t(408)]=function(r){var n=t;if((r=r||10)<2||36<r)throw RangeError(n(481));if(this.isZero())return"0";if(this.isNegative()){if(this.eq(e[n(449)])){var i=e[n(474)](r),o=this[n(324)](i),s=o[n(294)](i)[n(523)](this);return o[n(408)](r)+s[n(485)]()[n(408)](r)}return"-"+this[n(270)]().toString(r)}for(var a=e[n(474)](Math.pow(r,6),this[n(344)]),u=this,c="";;){var f=u.div(a),h=(u[n(523)](f[n(294)](a)).toInt()>>>0)[n(408)](r);if((u=f)[n(247)]())return h+c;for(;h[n(491)]<6;)h="0"+h;c=""+h+c}},e.prototype[t(521)]=function(){var r=t;return this.unsigned?this:e[r(455)](this[r(254)],this.high,!0)},e.prototype[t(364)]=function(r){var n=t;return e[n(584)](r)||(r=e[n(577)](r)),e[n(455)](this[n(254)]^r[n(254)],this[n(332)]^r.high,this[n(344)])},e[t(488)].eqz=function(){return this[t(247)]()},e[t(488)].le=function(t){return this.lessThanOrEqual(t)},e.prototype[t(515)]=function(e){var r=t;return e&&e.relaxed?this[r(422)]():{$numberLong:this[r(408)]()}},e.fromExtendedJSON=function(r,n){var i=t,o=e[i(489)](r[i(374)]);return n&&n[i(446)]?o[i(422)]():o},e.prototype[Symbol[t(380)](t(470))]=function(){return this[t(519)]()},e[t(488)][t(519)]=function(){var e=t;return e(249).concat(this.toString(),'"')[e(244)](this[e(344)]?", true":"",")")},e[t(370)]=e[t(419)](16777216),e.MAX_UNSIGNED_VALUE=e[t(455)](-1,-1,!0),e[t(207)]=e[t(419)](0),e[t(510)]=e.fromInt(0,!0),e[t(527)]=e[t(419)](1),e[t(486)]=e[t(419)](1,!0),e.NEG_ONE=e[t(419)](-1),e.MAX_VALUE=e[t(455)](-1,2147483647,!1),e.MIN_VALUE=e[t(455)](0,-2147483648,!1),e}();Object.defineProperty(cv[Cl(488)],Cl(403),{value:!0}),Object[Cl(279)](cv.prototype,Cl(383),{value:Cl(302)});var fv=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,hv=/^(\+|-)?(Infinity|inf)$/i,pv=/^(\+|-)?NaN$/i,lv=6111,vv=-6176,dv=[124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),yv=[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0][Cl(321)](),Iv=[120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0][Cl(321)](),mv=/^([-+])?(\d+)?$/;function gv(t){return!isNaN(parseInt(t,10))}function bv(t){var e=Cl,r=cv.fromNumber(1e9),n=cv[e(474)](0);if(!(t[e(414)][0]||t[e(414)][1]||t[e(414)][2]||t[e(414)][3]))return{quotient:t,rem:n};for(var i=0;i<=3;i++)n=(n=n[e(594)](32)).add(new cv(t[e(414)][i],0)),t[e(414)][i]=n[e(324)](r)[e(254)],n=n[e(483)](r);return{quotient:t,rem:n}}function wv(t,e){var r=Cl;throw new Ml('"'[r(244)](t,'" is not a valid Decimal128 string - ')[r(244)](e))}var _v=function(){var e=Cl;function r(t){var e=Ll;if(!(this instanceof r))return new r(t);if("string"==typeof t)this[e(289)]=r[e(489)](t)[e(289)];else{if(!Wl(t))throw new Ml("Decimal128 must take a Buffer or string");if(16!==t[e(418)])throw new Ml(e(472));this[e(289)]=t}}return r.fromString=function(e){var n,i=Ll,o=!1,s=!1,a=!1,u=0,c=0,f=0,h=0,p=0,l=[0],v=0,d=0,y=0,I=0,m=0,g=0,b=new cv(0,0),w=new cv(0,0),_=0;if(e[i(491)]>=7e3)throw new Ml(""+e+i(347));var E=e[i(453)](fv),S=e[i(453)](hv),O=e[i(453)](pv);if(!E&&!S&&!O||0===e.length)throw new Ml(""+e+i(347));if(E){var A=E[2],T=E[4],N=E[5],k=E[6];T&&void 0===k&&wv(e,i(322)),T&&void 0===A&&wv(e,i(553)),void 0===T&&(N||k)&&wv(e,i(503))}if(("+"===e[_]||"-"===e[_])&&(o="-"===e[_++]),!gv(e[_])&&"."!==e[_]){if("i"===e[_]||"I"===e[_])return new r(t[i(514)](o?yv:Iv));if("N"===e[_])return new r(t[i(514)](dv))}for(;gv(e[_])||"."===e[_];)"."!==e[_]?(v<34&&("0"!==e[_]||a)&&(!a&&(p=c),a=!0,l[d++]=parseInt(e[_],10),v+=1),a&&(f+=1),s&&(h+=1),c+=1,_+=1):(s&&wv(e,i(387)),s=!0,_+=1);if(s&&!c)throw new Ml(e+" not a valid Decimal128 string");if("e"===e[_]||"E"===e[_]){var x=e[i(595)](++_)[i(453)](mv);if(!x||!x[2])return new r(t.from(dv));m=parseInt(x[0],10),_+=x[0][i(491)]}if(e[_])return new r(t[i(514)](dv));if(y=0,v){if(I=v-1,1!==(u=f))for(;0===l[p+u-1];)u-=1}else y=0,I=0,l[0]=0,f=1,v=1,u=0;for(m<=h&&h-m>16384?m=vv:m-=h;m>lv;){if((I+=1)-y>34){if(l[i(288)]("")[i(453)](/^0+$/)){m=lv;break}wv(e,i(459))}m-=1}for(;m<vv||v<f;){if(0===I&&u<v){m=vv,u=0;break}if(v<f?f-=1:I-=1,m<lv)m+=1;else{if(l.join("")[i(453)](/^0+$/)){m=lv;break}wv(e,i(459))}}if(I-y+1<u){var R=c;s&&(p+=1,R+=1),o&&(p+=1,R+=1);var P=parseInt(e[p+I+1],10),C=0;if(P>=5&&(C=1,5===P))for(C=l[I]%2==1?1:0,g=p+I+2;g<R;g++)if(parseInt(e[g],10)){C=1;break}if(C)for(var j=I;j>=0;j--)if(++l[j]>9&&(l[j]=0,0===j)){if(!(m<lv))return new r(t.from(o?yv:Iv));m+=1,l[j]=1}}if(b=cv[i(474)](0),w=cv[i(474)](0),0===u)b=cv[i(474)](0),w=cv[i(474)](0);else if(I-y<17){j=y;for(w=cv[i(474)](l[j++]),b=new cv(0,0);j<=I;j++)w=(w=w[i(286)](cv[i(474)](10)))[i(404)](cv.fromNumber(l[j]))}else{j=y;for(b=cv[i(474)](l[j++]);j<=I-17;j++)b=(b=b.multiply(cv.fromNumber(10))).add(cv[i(474)](l[j]));for(w=cv[i(474)](l[j++]);j<=I;j++)w=(w=w[i(286)](cv.fromNumber(10))).add(cv[i(474)](l[j]))}var D,L,U,M,B=function(t,e){var r=Cl;if(!t&&!e)return{high:cv[r(474)](0),low:cv[r(474)](0)};var n=t[r(339)](32),i=new cv(t.getLowBits(),0),o=e[r(339)](32),s=new cv(e.getLowBits(),0),a=n[r(286)](o),u=n[r(286)](s),c=i[r(286)](o),f=i[r(286)](s);return a=a[r(404)](u[r(339)](32)),u=new cv(u[r(526)](),0)[r(404)](c)[r(404)](f[r(339)](32)),{high:a=a[r(404)](u[r(339)](32)),low:f=u[r(594)](32).add(new cv(f[r(526)](),0))}}(b,cv[i(489)](i(445)));B.low=B.low[i(404)](w),D=B.low,L=w,U=D[Cl(332)]>>>0,M=L.high>>>0,(U<M||U===M&&D.low>>>0<L.low>>>0)&&(B[i(332)]=B[i(332)][i(404)](cv[i(474)](1))),n=m+6176;var q={low:cv[i(474)](0),high:cv[i(474)](0)};B[i(332)].shiftRightUnsigned(49)[i(255)](cv[i(474)](1)).equals(cv[i(474)](1))?(q[i(332)]=q[i(332)].or(cv.fromNumber(3).shiftLeft(61)),q.high=q[i(332)].or(cv[i(474)](n)[i(255)](cv[i(474)](16383)[i(594)](47))),q[i(332)]=q[i(332)].or(B[i(332)].and(cv[i(474)](0x7fffffffffff)))):(q[i(332)]=q[i(332)].or(cv.fromNumber(16383&n)[i(594)](49)),q.high=q[i(332)].or(B.high[i(255)](cv[i(474)](562949953421311)))),q[i(254)]=B[i(254)],o&&(q[i(332)]=q[i(332)].or(cv.fromString(i(556))));var F=t.alloc(16);return _=0,F[_++]=255&q[i(254)][i(254)],F[_++]=q[i(254)][i(254)]>>8&255,F[_++]=q[i(254)][i(254)]>>16&255,F[_++]=q[i(254)][i(254)]>>24&255,F[_++]=255&q[i(254)][i(332)],F[_++]=q.low.high>>8&255,F[_++]=q[i(254)][i(332)]>>16&255,F[_++]=q[i(254)][i(332)]>>24&255,F[_++]=255&q[i(332)][i(254)],F[_++]=q[i(332)].low>>8&255,F[_++]=q.high[i(254)]>>16&255,F[_++]=q.high[i(254)]>>24&255,F[_++]=255&q[i(332)][i(332)],F[_++]=q[i(332)][i(332)]>>8&255,F[_++]=q[i(332)][i(332)]>>16&255,F[_++]=q.high[i(332)]>>24&255,new r(F)},r[e(488)][e(408)]=function(){for(var t,r=e,n=0,i=new Array(36),o=0;o<i.length;o++)i[o]=0;var s,a,u,c=0,f=!1,h={parts:[0,0,0,0]},p=[];c=0;var l=this[r(289)],v=l[c++]|l[c++]<<8|l[c++]<<16|l[c++]<<24,d=l[c++]|l[c++]<<8|l[c++]<<16|l[c++]<<24,y=l[c++]|l[c++]<<8|l[c++]<<16|l[c++]<<24,I=l[c++]|l[c++]<<8|l[c++]<<16|l[c++]<<24;c=0,{low:new cv(v,d),high:new cv(y,I)}.high[r(396)](cv[r(207)])&&p[r(357)]("-");var m=I>>26&31;if(m>>3==3){if(30===m)return p[r(288)]("")+r(224);if(31===m)return r(444);t=I>>15&16383,s=8+(I>>14&1)}else s=I>>14&7,t=I>>17&16383;var g=t-6176;if(h[r(414)][0]=(16383&I)+((15&s)<<14),h[r(414)][1]=y,h[r(414)][2]=d,h[r(414)][3]=v,0===h[r(414)][0]&&0===h[r(414)][1]&&0===h[r(414)][2]&&0===h.parts[3])f=!0;else for(u=3;u>=0;u--){var b=0,w=bv(h);if(h=w.quotient,b=w.rem[r(254)])for(a=8;a>=0;a--)i[9*u+a]=b%10,b=Math[r(591)](b/10)}if(f)n=1,i[c]=0;else for(n=36;!i[c];)n-=1,c+=1;var _=n-1+g;if(_>=34||_<=-7||g>0){if(n>34)return p[r(357)](""[r(244)](0)),g>0?p[r(357)]("E+".concat(g)):g<0&&p[r(357)]("E".concat(g)),p[r(288)]("");p[r(357)](""[r(244)](i[c++])),(n-=1)&&p[r(357)](".");for(o=0;o<n;o++)p[r(357)](""[r(244)](i[c++]));p[r(357)]("E"),_>0?p[r(357)]("+"[r(244)](_)):p[r(357)](""[r(244)](_))}else if(g>=0)for(o=0;o<n;o++)p[r(357)](""[r(244)](i[c++]));else{var E=n+g;if(E>0)for(o=0;o<E;o++)p[r(357)]("".concat(i[c++]));else p[r(357)]("0");for(p[r(357)](".");E++<0;)p[r(357)]("0");for(o=0;o<n-Math[r(267)](E-1,0);o++)p[r(357)](""[r(244)](i[c++]))}return p[r(288)]("")},r[e(488)][e(285)]=function(){return{$numberDecimal:this.toString()}},r[e(488)][e(515)]=function(){return{$numberDecimal:this[e(408)]()}},r[e(496)]=function(t){var n=e;return r[n(489)](t[n(251)])},r[e(488)][Symbol[e(380)](e(470))]=function(){return this[e(519)]()},r.prototype[e(519)]=function(){var t=e;return t(354)[t(244)](this[t(408)](),'")')},r}();Object.defineProperty(_v[Cl(488)],"_bsontype",{value:"Decimal128"});var Ev=function(){var t=Cl;function e(t){var r=Ll;if(!(this instanceof e))return new e(t);t instanceof Number&&(t=t[r(257)]()),this[r(260)]=+t}return e[t(488)][t(257)]=function(){return this[t(260)]},e.prototype.toJSON=function(){return this.value},e[t(488)][t(408)]=function(e){return this[t(260)].toString(e)},e[t(488)].toExtendedJSON=function(e){var r=t;return e&&(e[r(231)]||e[r(446)]&&isFinite(this[r(260)]))?this[r(260)]:Object.is(Math.sign(this[r(260)]),-0)?{$numberDouble:"-"[r(244)](this[r(260)].toFixed(1))}:{$numberDouble:Number[r(341)](this.value)?this[r(260)][r(291)](1):this.value[r(408)]()}},e[t(496)]=function(r,n){var i=t,o=parseFloat(r[i(518)]);return n&&n[i(446)]?o:new e(o)},e[t(488)][Symbol.for(t(470))]=function(){return this[t(519)]()},e.prototype.inspect=function(){var e=t,r=this[e(515)]();return"new Double("[e(244)](r.$numberDouble,")")},e}();Object[Cl(279)](Ev[Cl(488)],"_bsontype",{value:Cl(276)});var Sv=function(){var t=Cl;function e(t){var r=Ll;if(!(this instanceof e))return new e(t);t instanceof Number&&(t=t[r(257)]()),this[r(260)]=0|+t}return e[t(488)][t(257)]=function(){return this[t(260)]},e[t(488)][t(408)]=function(t){return this.value.toString(t)},e[t(488)].toJSON=function(){return this[t(260)]},e[t(488)][t(515)]=function(e){var r=t;return e&&(e.relaxed||e[r(231)])?this[r(260)]:{$numberInt:this[r(260)][r(408)]()}},e[t(496)]=function(r,n){var i=t;return n&&n.relaxed?parseInt(r[i(598)],10):new e(r.$numberInt)},e[t(488)][Symbol[t(380)]("nodejs.util.inspect.custom")]=function(){return this[t(519)]()},e[t(488)].inspect=function(){var e=t;return e(362).concat(this[e(257)](),")")},e}();Object[Cl(279)](Sv[Cl(488)],Cl(383),{value:Cl(431)});var Ov=function(){var t=Cl;function e(){if(!(this instanceof e))return new e}return e[t(488)][t(515)]=function(){return{$maxKey:1}},e.fromExtendedJSON=function(){return new e},e[t(488)][Symbol[t(380)](t(470))]=function(){return this[t(519)]()},e[t(488)][t(519)]=function(){return t(542)},e}();Object[Cl(279)](Ov[Cl(488)],Cl(383),{value:"MaxKey"});var Av=function(){var t=Cl;function e(){if(!(this instanceof e))return new e}return e[t(488)][t(515)]=function(){return{$minKey:1}},e[t(496)]=function(){return new e},e[t(488)][Symbol.for(t(470))]=function(){return this.inspect()},e[t(488)][t(519)]=function(){return t(501)},e}();Object[Cl(279)](Av[Cl(488)],"_bsontype",{value:Cl(342)});var Tv=new RegExp(Cl(393)),Nv=null,kv=Symbol("id"),xv=function(){var e=Cl;function r(e){var n,i=Ll;if(!(this instanceof r))return new r(e);if("object"==typeof e&&e&&"id"in e){if(typeof e.id!==i(462)&&!ArrayBuffer[i(241)](e.id))throw new Ml(i(477));n=i(314)in e&&typeof e[i(314)]===i(273)?t[i(514)](e[i(314)](),i(325)):e.id}else n=e;if(null==n||typeof n===i(307))this[kv]=r[i(502)]("number"==typeof n?n:void 0);else if(ArrayBuffer[i(241)](n)&&12===n[i(418)])this[kv]=n instanceof t?n:Vl(n);else{if("string"!=typeof n)throw new Ml(i(372));if(12===n.length){var o=t.from(n);if(12!==o.byteLength)throw new Ml(i(441));this[kv]=o}else{if(24!==n[i(491)]||!Tv[i(384)](n))throw new Ml(i(262));this[kv]=t[i(514)](n,"hex")}}r.cacheHexString&&(this[i(382)]=this.id.toString(i(325)))}return Object[e(279)](r[e(488)],"id",{get:function(){return this[kv]},set:function(t){var n=e;this[kv]=t,r[n(214)]&&(this[n(382)]=t[n(408)](n(325)))},enumerable:!1,configurable:!0}),Object.defineProperty(r[e(488)],"generationTime",{get:function(){var t=e;return this.id[t(415)](0)},set:function(t){var r=e;this.id[r(571)](t,0)},enumerable:!1,configurable:!0}),r[e(488)][e(314)]=function(){var t=e;if(r.cacheHexString&&this[t(382)])return this.__id;var n=this.id[t(408)](t(325));return r[t(214)]&&!this[t(382)]&&(this[t(382)]=n),n},r[e(525)]=function(){return r[e(234)]=(r.index+1)%16777215},r.generate=function(n){var i=e;i(307)!==typeof n&&(n=Math[i(591)](Date[i(561)]()/1e3));var o=r[i(525)](),s=t[i(592)](12);return s[i(571)](n,0),null===Nv&&(Nv=Hl(5)),s[4]=Nv[0],s[5]=Nv[1],s[6]=Nv[2],s[7]=Nv[3],s[8]=Nv[4],s[11]=255&o,s[10]=o>>8&255,s[9]=o>>16&255,s},r[e(488)][e(408)]=function(t){var r=e;return t?this.id.toString(t):this[r(314)]()},r[e(488)].toJSON=function(){return this[e(314)]()},r[e(488)][e(399)]=function(n){var i=e;if(null==n)return!1;if(n instanceof r)return this[kv][11]===n[kv][11]&&this[kv][i(399)](n[kv]);if("string"==typeof n&&r[i(236)](n)&&12===n[i(491)]&&Wl(this.id))return n===t[i(488)][i(408)][i(252)](this.id,i(569));if(typeof n===i(462)&&r[i(236)](n)&&24===n[i(491)])return n.toLowerCase()===this[i(314)]();if("string"==typeof n&&r.isValid(n)&&12===n.length)return t[i(514)](n)[i(399)](this.id);if(typeof n===i(376)&&i(314)in n&&typeof n[i(314)]===i(273)){var o=n[i(314)](),s=this[i(314)]().toLowerCase();return typeof o===i(462)&&o[i(281)]()===s}return!1},r[e(488)][e(221)]=function(){var t=e,r=new Date,n=this.id[t(235)](0);return r[t(240)](1e3*Math.floor(n)),r},r[e(282)]=function(){return new r},r[e(312)]=function(n){var i=e,o=t.from([0,0,0,0,0,0,0,0,0,0,0,0]);return o[i(571)](n,0),new r(o)},r[e(313)]=function(n){var i=e;if(typeof n===i(391)||null!=n&&24!==n[i(491)])throw new Ml(i(468));return new r(t.from(n,i(325)))},r.isValid=function(t){if(null==t)return!1;try{return new r(t),!0}catch(t){return!1}},r[e(488)].toExtendedJSON=function(){var t=e;return this[t(314)]?{$oid:this[t(314)]()}:{$oid:this[t(408)](t(325))}},r[e(496)]=function(t){return new r(t[e(392)])},r[e(488)][Symbol.for(e(470))]=function(){return this[e(519)]()},r[e(488)][e(519)]=function(){return'new ObjectId("'.concat(this.toHexString(),'")')},r.index=Math.floor(16777215*Math[e(328)]()),r}();function Rv(){var t=["promoteLongs","fromBits","function(","ignoreCase","lessThanOrEqual","overflow","toBytesLE","constructor","string","Binary type size larger than document size","copy","read","Unexpected BSONRegExp EJSON object form: ","$symbol","Argument passed in must be a single String of 12 bytes or a string of 24 hex characters","corrupted array bson","nodejs.util.inspect.custom","Binary","Decimal128 must take a Buffer of 16 bytes","function (","fromNumber","greaterThan","$regularExpression","Argument passed in must have an id that is of type string or Buffer","propertyName","toBSON function did not return an object","scope","radix"," + options.index ","modulo","done","toInt","UONE","ObjectId","prototype","fromString","div_u","length","comp","Invalid UTF-8 validation option, must specify boolean values","Instance","source","fromExtendedJSON","[object RegExp]","MAX_VALUE","interior hyphen"," must be >= bson size ","new MinKey()","generate","missing e before exponent","(bson size ","unsigned_","DBRef","[object Map]","assign","$scope","UZERO","BSONRegExp","keys","high_","from","toExtendedJSON","[object BigUint64Array]","only accepts number in a valid unsigned byte range 0-255","$numberDouble","inspect","shl","toUnsigned"," must be <= buffer length ","sub","Bad BSON Document: illegal CString","getInc","getLowBits","ONE","allowObjectSmallerThanBufferSize","subtract","negate","corrupt bson message","NEG_ONE","map","2913382CUaJfH",'", "hex"), ',"$ref","toObject","isOdd","cacheFunctions","ReactNative","UTF-8 validation setting cannot be empty","new MaxKey()",'new BSONSymbol("',"Must use either Buffer or TypedArray","setFloat64"," must not start with '$'","not","exports",'" is currently supported.',"BSON Document field names cannot contain null bytes, found: ","pow","entries","missing exponent base","validation","product","9223372036854775808"," must === bson size ","7924690qPYKhu","Module","raw","now","code_w_scope total size is too long, clips outer document","pattern ","Please use the static `ObjectId.getInc()` instead","position","splice","BSON_BINARY_SUBTYPE_DEFAULT","toUUID","latin1","slice","writeUInt32BE","base64","shiftRight","corrupt array bson","oid","write","fromValue","$undefined","_keys","setPrototypeOf","create","toBytesBE"," must not contain null bytes","isLong","put","has","shr",'new DBRef("',"pattern","fieldsAsRaw","floor","alloc","$timestamp","shiftLeft","substr","bad string length in bson","flags","$numberInt","subarray","randomBytes","divide","__proto__","ZERO","binary","SUBTYPE_UUID","get_high",'new Binary(Buffer.from("',"values","byteOffset","cacheHexString","promoteValues","564sGKcQj","shru","rem","div_s","[object BigInt64Array]","getTimestamp","name","findIndex","Infinity","sub_type",' for fieldname "',"split","BSONTypeError","$type","ascii","legacy","checkKeys","Binary type with subtype 0x02 contains too short binary size","index","readUInt32BE","isValid","Math","Invalid UTF-8 string in BSON document","3wKwqvH","setTime","isView","lte","18IaJZOp","concat",'", new ObjectId("',"apply","isZero","isNegative",'new Long("',"new Timestamp({ t: ","$numberDecimal","call","Binary type with subtype 0x02 contains too long binary size","low","and","code_w_scope total size is too short, truncating scope","valueOf","parse","$regex","value","BUFFER_SIZE","Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer","Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).","substring","Code","size","max","bsonRegExp","14075rVGhwr","neg","ceil","Invalid UTF-8 validation option - keys must be all true or all false","function","SUBTYPE_BYTE_ARRAY","key ","Double","bson size must be >= 5, is ","code","defineProperty","12339464YxQYnG","toLowerCase","createPk","isArray","fromBigInt","toJSON","multiply","parseOptions","join","bytes","toBytes","toFixed",'new UUID("',"Converting circular structure to EJSON:\n","mul","getTime","options","obj","filter","73774129HhgXAH","$uuid","gte","Long","[object SharedArrayBuffer]","691761oDHrxI",'new Code("',"$binary","number","buffer length ","$dbPointer","repeat","_bsontype must be a string, but was: ","createFromTime","createFromHexString","toHexString","set","utf8","navigator","every","code_w_scope total size shorter minimum expected length","BSON Regex options cannot contain null bytes, found: ","reverse","missing exponent power","buffer","div","hex","get_inc","getLowBitsUnsigned","random",", i: ","value ","ignoreUndefined","high","min","evalFunctions","global","[object Date]","Binary can only be constructed from string, Buffer, TypedArray, or Array<number>","SUBTYPE_ENCRYPTED","shiftRightUnsigned","(root)","isInteger","MinKey","Unrecognized or invalid _bsontype: ","unsigned","_values","notEquals"," not a valid Decimal128 string","shift","minInternalBufferSize","promoteBuffers","boolean","next","bad embedded document length in bson",'new Decimal128("',"charCodeAt","low_","push","126414ngczUv","Map","63AUFSOQ","deserialize","new Int32(","indexOf","xor","Please use the static `ObjectId.generate(time)` instead","toSigned","multiline","SUBTYPE_UUID_OLD"," must not contain '.'","TWO_PWR_24","collection","Argument passed in does not match the accepted types","rem_u","$numberLong","getHighBits","object","replace","startsWith","bigint","for","strict","__id","_bsontype","test","MaxKey","namespace","contains multiple periods","fields","stringify","seenObjects","undefined","$oid","^[0-9a-fA-F]{24}$","clear","Negative binary type element size found for subtype 0x02","lessThan","corrupt bson message < 5 bytes long","$db","equals","[object Uint8Array]","getHighBitsUnsigned","fromBytesLE","__isLong__","add","sort","$id","log","toString","isEven","delete","shr_u","compare","serializeFunctions","parts","readInt32BE"," -> ","neq","byteLength","fromInt","cyclic dependency detected","isPositive","toNumber"," })","Decimal128","hasOwnProperty","SUBTYPE_MD5","One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00","[object ArrayBuffer]","serialize",', "',"Int32","Symbol","division by zero","$code","Timestamp","ObjectID","greaterThanOrEqual","fromBytesBE","toBSON","pop","Argument passed in must be a string of 12 bytes","MAX_UNSIGNED_VALUE","SUBTYPE_COLUMN","NaN","100000000000000000","relaxed","Unsupported type BigInt, please use Decimal128","] is not supported","MIN_VALUE","illegal boolean type value","empty string","only accepts single character Uint8Array or Array","match"];return(Rv=function(){return t})()}Object[Cl(279)](xv.prototype,Cl(502),{value:Kl((function(t){return xv[Cl(502)](t)}),Cl(365))}),Object[Cl(279)](xv[Cl(488)],Cl(525),{value:Kl((function(){return xv[Cl(525)]()}),Cl(564))}),Object[Cl(279)](xv[Cl(488)],Cl(326),{value:Kl((function(){return xv[Cl(525)]()}),Cl(564))}),Object.defineProperty(xv,Cl(326),{value:Kl((function(){return xv[Cl(525)]()}),Cl(564))}),Object[Cl(279)](xv[Cl(488)],"_bsontype",{value:"ObjectID"});var Pv=function(){var t=Cl;function e(t,r){var n,i=Ll;if(!(this instanceof e))return new e(t,r);if(this[i(589)]=t,this[i(296)]=(null!=r?r:"")[(n=Cl)(227)]("")[n(405)]().join(""),-1!==this[i(589)][i(363)]("\0"))throw new Ul("BSON Regex patterns cannot contain null bytes, found: "[i(244)](JSON[i(389)](this[i(589)])));if(-1!==this.options[i(363)]("\0"))throw new Ul(i(320)[i(244)](JSON[i(389)](this[i(296)])));for(var o=0;o<this[i(296)][i(491)];o++)if("i"!==this[i(296)][o]&&"m"!==this[i(296)][o]&&"x"!==this.options[o]&&"l"!==this.options[o]&&"s"!==this[i(296)][o]&&"u"!==this[i(296)][o])throw new Ul("The regular expression option ["[i(244)](this[i(296)][o],i(448)))}return e[t(287)]=function(e){var r=t;return e?e.split("")[r(405)]()[r(288)](""):""},e.prototype.toExtendedJSON=function(e){var r=t;return(e=e||{})[r(231)]?{$regex:this.pattern,$options:this[r(296)]}:{$regularExpression:{pattern:this[r(589)],options:this[r(296)]}}},e[t(496)]=function(r){var n=t;if("$regex"in r){if(typeof r.$regex===n(462))return new e(r[n(259)],e[n(287)](r.$options));if(r[n(259)][n(383)]===n(511))return r}if(n(476)in r)return new e(r[n(476)][n(589)],e[n(287)](r.$regularExpression.options));throw new Ml(n(466).concat(JSON.stringify(r)))},e}();Object[Cl(279)](Pv[Cl(488)],Cl(383),{value:Cl(511)});var Cv=function(){var t=Cl;function e(t){var r=Ll;if(!(this instanceof e))return new e(t);this[r(260)]=t}return e[t(488)][t(257)]=function(){return this[t(260)]},e[t(488)][t(408)]=function(){return this[t(260)]},e[t(488)][t(519)]=function(){var e=t;return e(543)[e(244)](this[e(260)],'")')},e[t(488)][t(285)]=function(){return this.value},e[t(488)][t(515)]=function(){return{$symbol:this.value}},e[t(496)]=function(r){return new e(r[t(467)])},e[t(488)][Symbol[t(380)](t(470))]=function(){return this[t(519)]()},e}();Object[Cl(279)](Cv.prototype,Cl(383),{value:Cl(432)});var jv=function(t){var e=Cl;function r(e,n){var i=Ll,o=this;return o instanceof r?(o=cv[i(584)](e)?t[i(252)](this,e.low,e[i(332)],!0)||this:Gl(e)&&typeof e.t!==i(391)&&typeof e.i!==i(391)?t[i(252)](this,e.i,e.t,!0)||this:t[i(252)](this,e,n,!0)||this,Object[i(279)](o,i(383),{value:i(435),writable:!1,configurable:!1,enumerable:!1}),o):new r(e,n)}return Dl(r,t),r[e(488)][e(285)]=function(){return{$timestamp:this[e(408)]()}},r.fromInt=function(t){return new r(cv[e(419)](t,!0))},r.fromNumber=function(t){return new r(cv[e(474)](t,!0))},r[e(455)]=function(t,e){return new r(t,e)},r[e(489)]=function(t,e){return new r(cv.fromString(t,!0,e))},r[e(488)][e(515)]=function(){var t=e;return{$timestamp:{t:this[t(332)]>>>0,i:this[t(254)]>>>0}}},r.fromExtendedJSON=function(t){return new r(t[e(593)])},r[e(488)][Symbol[e(380)]("nodejs.util.inspect.custom")]=function(){return this[e(519)]()},r.prototype.inspect=function(){var t=e;return t(250)[t(244)](this[t(375)](),t(329))[t(244)](this.getLowBits(),t(423))},r[e(498)]=cv[e(442)],r}(cv);var Dv=2147483647,Lv=-2147483648,Uv=0x8000000000000000,Mv=-0x8000000000000000,Bv={$oid:xv,$binary:Zl,$uuid:Zl,$symbol:Cv,$numberInt:Sv,$numberDecimal:_v,$numberDouble:Ev,$numberLong:cv,$minKey:Av,$maxKey:Ov,$regex:Pv,$regularExpression:Pv,$timestamp:jv};function qv(t,e){var r=Cl;if(void 0===e&&(e={}),typeof t===r(307)){if(e[r(446)]||e[r(231)])return t;if(Math.floor(t)===t){if(t>=Lv&&t<=Dv)return new Sv(t);if(t>=Mv&&t<=Uv)return cv[r(474)](t)}return new Ev(t)}if(null==t||typeof t!==r(376))return t;if(t[r(578)])return null;for(var n,i,o=Object[r(512)](t)[r(298)]((function(e){return e.startsWith("$")&&null!=t[e]})),s=0;s<o[r(491)];s++){var a=Bv[o[s]];if(a)return a[r(496)](t,e)}if(null!=t.$date){var u=t.$date,c=new Date;return e[r(231)]?"number"==typeof u?c[r(240)](u):"string"==typeof u&&c[r(240)](Date[r(258)](u)):typeof u===r(462)?c[r(240)](Date[r(258)](u)):cv[r(584)](u)?c[r(240)](u[r(422)]()):typeof u===r(307)&&e[r(446)]&&c[r(240)](u),c}if(null!=t[r(434)]){var f=Object.assign({},t);return t[r(509)]&&(f[r(509)]=qv(t[r(509)])),ev[r(496)](t)}if(i=Cl,Gl(n=t)&&null!=n[i(406)]&&"string"==typeof n[i(536)]&&(null==n[i(398)]||typeof n[i(398)]===i(462))||t[r(309)]){var h=t[r(536)]?t:t[r(309)];if(h instanceof rv)return h;var p=Object[r(512)](h)[r(298)]((function(t){return t[r(378)]("$")})),l=!0;if(p.forEach((function(t){var e=r;-1===[e(536),e(406),"$db"][e(363)](t)&&(l=!1)})),l)return rv[r(496)](h)}return t}function Fv(t){var e=t.toISOString();return 0!==t.getUTCMilliseconds()?e:e.slice(0,-5)+"Z"}function Hv(t,e){var r,n,i,o,s,a,u=Cl;if((typeof t===u(376)||typeof t===u(273))&&null!==t){var c=e[u(390)][u(223)]((function(e){return e[u(297)]===t}));if(-1!==c){var f=e[u(390)].map((function(t){return t[u(478)]})),h=f[u(570)](0,c)[u(533)]((function(t){var e=u;return""[e(244)](t,e(416))}))[u(288)](""),p=f[c],l=u(416)+f[u(570)](c+1,f[u(491)]-1)[u(533)]((function(t){var e=u;return""[e(244)](t,e(416))}))[u(288)](""),v=f[f.length-1],d=" "[u(310)](h.length+p.length/2),y="-"[u(310)](l[u(491)]+(p.length+v[u(491)])/2-1);throw new Ml(u(293)+" "[u(244)](h).concat(p)[u(244)](l)[u(244)](v,"\n")+" "[u(244)](d,"\\")[u(244)](y,"/"))}e[u(390)][e[u(390)][u(491)]-1][u(297)]=t}if(Array[u(283)](t))return r=e,t[(n=Cl)(533)]((function(t,e){var i=n;r[i(390)][i(357)]({propertyName:"index ".concat(e),obj:null});try{return Hv(t,r)}finally{r[i(390)][i(440)]()}}));if(void 0===t)return null;if(t instanceof Date||(o=Ll,Gl(i=t)&&Object[o(488)][o(408)][o(252)](i)===o(336))){var I=t[u(295)](),m=I>-1&&I<2534023188e5;return e[u(231)]?e.relaxed&&m?{$date:t.getTime()}:{$date:Fv(t)}:e[u(446)]&&m?{$date:Fv(t)}:{$date:{$numberLong:t[u(295)]()[u(408)]()}}}if(!("number"!=typeof t||e[u(446)]&&isFinite(t))){if(Math[u(591)](t)===t){var g=t>=Mv&&t<=Uv;if(t>=Lv&&t<=Dv)return{$numberInt:t.toString()};if(g)return{$numberLong:t[u(408)]()}}return{$numberDouble:t[u(408)]()}}if(t instanceof RegExp||(s=t,a=Ll,Object[a(488)][a(408)][a(252)](s)===a(497))){var b=t[u(597)];if(void 0===b){var w=t.toString()[u(453)](/[gimuy]*$/);w&&(b=w[0])}return new Pv(t[u(495)],b)[u(515)](e)}return null!=t&&typeof t===u(376)?function(t,e){var r=Cl;if(null==t||"object"!=typeof t)throw new Ul("not an object instance");var n=t[r(383)];if(typeof n===r(391)){var i={};for(var o in t){e[r(390)].push({propertyName:o,obj:null});try{var s=Hv(t[o],e);o===r(206)?Object[r(279)](i,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):i[o]=s}finally{e[r(390)][r(440)]()}}return i}if(f=Cl,Gl(c=t)&&Reflect[f(586)](c,f(383))&&typeof c[f(383)]===f(462)){var a=t;if(typeof a[r(515)]!==r(273)){var u=Gv[t[r(383)]];if(!u)throw new Ml("Unrecognized or invalid _bsontype: "+t._bsontype);a=u(a)}return n===r(265)&&a[r(480)]?a=new ev(a[r(278)],Hv(a.scope,e)):n===r(506)&&a.oid&&(a=new rv(Hv(a.collection,e),Hv(a[r(575)],e),Hv(a.db,e),Hv(a[r(388)],e))),a.toExtendedJSON(e)}throw new Ul(r(311)+typeof n);var c,f}(t,e):t}var Wv,Gv={Binary:function(t){var e=Cl;return new Zl(t[e(260)](),t[e(225)])},Code:function(t){return new ev(t[Cl(278)],t.scope)},DBRef:function(t){var e=Cl;return new rv(t[e(371)]||t[e(386)],t[e(575)],t.db,t[e(388)])},Decimal128:function(t){return new _v(t[Cl(289)])},Double:function(t){return new Ev(t.value)},Int32:function(t){return new Sv(t.value)},Long:function(t){var e=Cl;return cv[e(455)](null!=t[e(254)]?t.low:t[e(356)],null!=t.low?t[e(332)]:t[e(513)],null!=t[e(254)]?t.unsigned:t[e(505)])},MaxKey:function(){return new Ov},MinKey:function(){return new Av},ObjectID:function(t){return new xv(t)},ObjectId:function(t){return new xv(t)},BSONRegExp:function(t){var e=Cl;return new Pv(t.pattern,t[e(296)])},Symbol:function(t){return new Cv(t[Cl(260)])},Timestamp:function(t){var e=Cl;return jv.fromBits(t[e(254)],t[e(332)])}};!function(t){var e=Cl;function r(t,e){var r=Ll,n=Object[r(508)]({},{relaxed:!0,legacy:!1},e);return"boolean"==typeof n.relaxed&&(n[r(381)]=!n[r(446)]),"boolean"==typeof n[r(381)]&&(n.relaxed=!n[r(381)]),JSON.parse(t,(function(t,e){var i=r;if(-1!==t[i(363)]("\0"))throw new Ul(i(550).concat(JSON.stringify(t)));return qv(e,n)}))}function n(t,r,n,i){var o=e;null!=n&&typeof n===o(376)&&(i=n,n=0),null!=r&&typeof r===o(376)&&!Array[o(283)](r)&&(i=r,r=void 0,n=0);var s=Hv(t,Object[o(508)]({relaxed:!0,legacy:!1},i,{seenObjects:[{propertyName:o(340),obj:null}]}));return JSON[o(389)](s,r,n)}t[e(258)]=r,t.stringify=n,t[e(429)]=function(t,e){return e=e||{},JSON.parse(n(t,e))},t[e(361)]=function(t,n){return n=n||{},r(JSON[e(389)](t),n)}}(Wv||(Wv={}));var Kv=ql();Kv[Cl(359)]?Kv[Cl(359)]:function(){var t=Cl;function e(t){var e=Ll;void 0===t&&(t=[]),this[e(579)]=[],this[e(345)]={};for(var r=0;r<t[e(491)];r++)if(null!=t[r]){var n=t[r],i=n[0],o=n[1];this._keys[e(357)](i),this[e(345)][i]={v:o,i:this[e(579)][e(491)]-1}}}e.prototype[t(394)]=function(){var e=t;this[e(579)]=[],this[e(345)]={}},e.prototype[t(410)]=function(e){var r=t,n=this[r(345)][e];return null!=n&&(delete this[r(345)][e],this[r(579)][r(566)](n.i,1),!0)},e.prototype[t(552)]=function(){var t=this,e=0;return{next:function(){var r=Ll,n=t[r(579)][e++];return{value:void 0!==n?[n,t[r(345)][n].v]:void 0,done:void 0===n}}}},e[t(488)].forEach=function(e,r){var n=t;r=r||this;for(var i=0;i<this[n(579)][n(491)];i++){var o=this[n(579)][i];e.call(r,this._values[o].v,o,r)}},e[t(488)].get=function(e){var r=t;return this[r(345)][e]?this[r(345)][e].v:void 0},e[t(488)][t(586)]=function(e){return null!=this[t(345)][e]},e[t(488)][t(512)]=function(){var t=this,e=0;return{next:function(){var r=t._keys[e++];return{value:void 0!==r?r:void 0,done:void 0===r}}}},e.prototype[t(315)]=function(e,r){var n=t;return this[n(345)][e]?(this._values[e].v=r,this):(this._keys.push(e),this._values[e]={v:r,i:this[n(579)][n(491)]-1},this)},e.prototype[t(212)]=function(){var t=this,e=0;return{next:function(){var r=Ll,n=t[r(579)][e++];return{value:void 0!==n?t[r(345)][n].v:void 0,done:void 0===n}}}},Object.defineProperty(e[t(488)],t(266),{get:function(){var e=t;return this._keys[e(491)]},enumerable:!1,configurable:!0})}(),cv.fromNumber($l),cv[Cl(474)](Ql),new Set([Cl(398),Cl(536),Cl(406),"$clusterTime"]);var Vv=new Uint8Array(8);new DataView(Vv[Cl(323)],Vv[Cl(213)],Vv[Cl(418)]);function zv(t,e){var r=$v();return(zv=function(t,e){return r[t-=459]})(t,e)}t[Cl(592)](17825792);var Jv=zv;!function(t,e){for(var r=zv,n=$v();;)try{if(987580===parseInt(r(500))/1*(parseInt(r(515))/2)+parseInt(r(487))/3+parseInt(r(483))/4*(-parseInt(r(481))/5)+parseInt(r(473))/6*(-parseInt(r(513))/7)+-parseInt(r(467))/8*(parseInt(r(501))/9)+parseInt(r(472))/10*(-parseInt(r(521))/11)+-parseInt(r(519))/12*(parseInt(r(511))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Yv=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=zv;function a(t){try{c(n.next(t))}catch(t){o(t)}}function u(t){var e=zv;try{c(n[e(479)](t))}catch(t){o(t)}}function c(t){var e,n=zv;t.done?i(t.value):(e=t[n(462)],e instanceof r?e:new r((function(t){t(e)})))[n(475)](a,u)}c((n=n[s(512)](t,e||[]))[s(514)]())}))},Xv=function(t,e){var r,n,i,o,s=Jv,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(459)&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(497));for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n[u(479)]||((i=n[u(494)])&&i.call(n),0):n[u(514)])&&!(i=i[u(498)](n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(492)]++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a[u(504)][u(482)](),a[u(486)][u(482)]();continue;default:if(!(i=a[u(486)],(i=i[u(522)]>0&&i[i[u(522)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a[u(492)]=o[1];break}if(6===o[0]&&a[u(492)]<i[1]){a.label=i[1],i=o;break}if(i&&a[u(492)]<i[2]){a[u(492)]=i[2],a[u(504)][u(476)](o);break}i[2]&&a[u(504)][u(482)](),a[u(486)].pop();continue}o=e[u(498)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function $v(){var t=["project","send","lookup","stageValue","label","unwrap","return","sent","done","Generator is already executing.","call","bucket","293ulBIWC","72EpNPFA","group","_request","ops","_collectionName","match","data","_pipe","geoNear","encode","2139397MlinMR","apply","7DGSZXS","next","12326vDAqBT","config","prototype","__generator","12pTjQMx","sortByCount","313819skZADg","length","map","function","count","replaceRoot","value","skip","unwind","stringify","Aggregation pipeline cannot send request","368752UUhVsn","parse","sample","_stages","addFields","100ATaLVo","5066922uCMxub","bucketAuto","then","push","_db","sort","throw","limit","312665Pkpyqw","pop","44PlIxAG","list","database.aggregate","trys","4598346SAoACr"];return($v=function(){return t})()}var Qv=function(){var t=Jv;function e(t,e){var r=zv;this[r(470)]=[],t&&e&&(this[r(477)]=t,this[r(503)]=new $d.reqClass(this[r(477)][r(516)]),this[r(505)]=e)}return e[t(517)].end=function(){return Yv(this,void 0,void 0,(function(){var t;return Xv(this,(function(e){var r=zv;switch(e[r(492)]){case 0:if(!this[r(505)]||!this[r(477)])throw new Error(r(466));return[4,this[r(503)][r(489)](r(485),{collectionName:this[r(505)],stages:this[r(470)]})];case 1:return(t=e[r(495)]())&&t[r(507)]&&t[r(507)][r(484)]?[2,{requestId:t.requestId,data:JSON[r(468)](t.data[r(484)])[r(523)](Wv[r(468)])}]:[2,t]}}))}))},e[t(517)][t(493)]=function(){return this._stages},e.prototype[t(496)]=function(){var e=t;return this[e(470)].map((function(t){var r,n=e,i=t.stageKey,o=t[n(491)];return(r={})[i]=JSON.parse(o),r}))},e[t(517)][t(508)]=function(e,r){var n=t;return this[n(470)][n(476)]({stageKey:"$"+e,stageValue:JSON[n(465)](r)}),this},e[t(517)][t(471)]=function(e){var r=t;return this[r(508)](r(471),e)},e[t(517)].bucket=function(e){var r=t;return this[r(508)](r(499),e)},e.prototype[t(474)]=function(e){var r=t;return this[r(508)](r(474),e)},e[t(517)][t(460)]=function(e){var r=t;return this[r(508)](r(460),e)},e[t(517)].geoNear=function(e){var r=t;return this[r(508)](r(509),e)},e[t(517)][t(502)]=function(e){return this[t(508)]("group",e)},e[t(517)].limit=function(e){var r=t;return this._pipe(r(480),e)},e[t(517)][t(506)]=function(e){var r=t;return this._pipe(r(506),Al[r(510)](e))},e[t(517)][t(488)]=function(e){var r=t;return this[r(508)](r(488),e)},e[t(517)][t(490)]=function(e){var r=t;return this._pipe(r(490),e)},e[t(517)][t(461)]=function(e){var r=t;return this[r(508)](r(461),e)},e[t(517)][t(469)]=function(e){return this[t(508)]("sample",e)},e[t(517)].skip=function(e){var r=t;return this._pipe(r(463),e)},e[t(517)][t(478)]=function(e){var r=t;return this._pipe(r(478),e)},e[t(517)][t(520)]=function(e){var r=t;return this[r(508)](r(520),e)},e[t(517)][t(464)]=function(e){var r=t;return this[r(508)](r(464),e)},e}(),Zv=nd;!function(t,e){for(var r=nd,n=rd();;)try{if(572895===parseInt(r(313))/1*(-parseInt(r(316))/2)+-parseInt(r(307))/3+parseInt(r(325))/4+-parseInt(r(309))/5+-parseInt(r(314))/6*(-parseInt(r(321))/7)+parseInt(r(326))/8*(parseInt(r(324))/9)+-parseInt(r(319))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var td,ed=(td=function(t,e){return(td=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t[nd(312)]=e}||function(t,e){var r=nd;for(var n in e)e[r(318)](n)&&(t[n]=e[n])})(t,e)},function(t,e){var r=nd;function n(){this.constructor=t}td(t,e),t[r(304)]=null===e?Object[r(305)](e):(n.prototype=e[r(304)],new n)});function rd(){var t=["__proto__","12199lTEDvK","648FfCHXt","__extends","20HoLiEF","number","hasOwnProperty","7376010sFuetM","_db","41489XejuRr","aggregate","name","212265whYqWb","3627072QGpGkz","320yKZLlC","prototype","create","string","1639173YFOzcr","_coll","2557035jvDdOg","add","defineProperty"];return(rd=function(){return t})()}function nd(t,e){var r=rd();return(nd=function(t,e){return r[t-=304]})(t,e)}var id=function(t){var e=Zv;function r(e,r){return t.call(this,e,r)||this}return ed(r,t),Object[e(311)](r[e(304)],e(323),{get:function(){return this._coll},enumerable:!0,configurable:!0}),r[e(304)].doc=function(t){var r=e;if(typeof t!==r(306)&&typeof t!==r(317))throw new Error("docId必须为字符串或数字");return new El(this[r(320)],this._coll,t)},r[e(304)][e(310)]=function(t,r){var n=e;return new El(this[n(320)],this[n(308)],void 0)[n(305)](t,r)},r[e(304)][e(322)]=function(){return new Qv(this[e(320)],this._coll)},r}(Pl);function od(t,e){var r=cd();return(od=function(t,e){return r[t-=100]})(t,e)}!function(t,e){for(var r=od,n=cd();;)try{if(316703===-parseInt(r(140))/1+-parseInt(r(174))/2*(-parseInt(r(148))/3)+-parseInt(r(154))/4+-parseInt(r(160))/5*(parseInt(r(189))/6)+parseInt(r(152))/7+-parseInt(r(138))/8*(parseInt(r(196))/9)+parseInt(r(188))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var sd={eq:function(t){return new Bp(Cp.EQ,[t])},neq:function(t){return new Bp(Cp[od(118)],[t])},lt:function(t){return new Bp(Cp.LT,[t])},lte:function(t){return new Bp(Cp[od(191)],[t])},gt:function(t){return new Bp(Cp.GT,[t])},gte:function(t){return new Bp(Cp[od(108)],[t])},in:function(t){return new Bp(Cp.IN,t)},nin:function(t){return new Bp(Cp.NIN,t)},all:function(t){return new Bp(Cp.ALL,t)},elemMatch:function(t){return new Bp(Cp.ELEM_MATCH,[t])},exists:function(t){return new Bp(Cp.EXISTS,[t])},size:function(t){return new Bp(Cp[od(171)],[t])},mod:function(t){return new Bp(Cp.MOD,[t])},geoNear:function(t){return new Bp(Cp[od(201)],[t])},geoWithin:function(t){return new Bp(Cp[od(185)],[t])},geoIntersects:function(t){return new Bp(Cp[od(167)],[t])},and:function(){for(var t=od,e=0;e<arguments[t(181)];e++);var r=jh(arguments[0])?arguments[0]:Array[t(109)](arguments);return new kp(Ep.AND,r)},nor:function(){var t=od,e=jh(arguments[0])?arguments[0]:Array[t(109)](arguments);return new kp(Ep.NOR,e)},or:function(){for(var t=od,e=0;e<arguments[t(181)];e++);var r=jh(arguments[0])?arguments[0]:Array[t(109)](arguments);return new kp(Ep.OR,r)},not:function(){for(var t=od,e=0;e<arguments[t(181)];e++);var r=jh(arguments[0])?arguments[0]:Array[t(109)](arguments);return new kp(Ep[t(158)],r)},set:function(t){return new wp(vp[od(103)],[t])},remove:function(){return new wp(vp.REMOVE,[])},inc:function(t){return new wp(vp[od(153)],[t])},mul:function(t){return new wp(vp[od(202)],[t])},push:function(){for(var t,e=od,r=[],n=0;n<arguments[e(181)];n++)r[n]=arguments[n];if(Rh(r[0])&&r[0][e(151)](e(190))){var i=r[0];t={$each:i[e(190)],$position:i[e(170)],$sort:i[e(119)],$slice:i[e(159)]}}else t=jh(r[0])?r[0]:Array[e(109)](r);return new wp(vp[e(127)],t)},pull:function(t){return new wp(vp[od(142)],t)},pullAll:function(t){return new wp(vp[od(122)],t)},pop:function(){return new wp(vp[od(102)],[])},shift:function(){return new wp(vp[od(183)],[])},unshift:function(){for(var t=od,e=0;e<arguments[t(181)];e++);var r=jh(arguments[0])?arguments[0]:Array[t(109)](arguments);return new wp(vp[t(117)],r)},addToSet:function(t){return new wp(vp.ADD_TO_SET,t)},rename:function(t){return new wp(vp.RENAME,[t])},bit:function(t){return new wp(vp[od(125)],[t])},max:function(t){return new wp(vp.MAX,[t])},min:function(t){return new wp(vp[od(157)],[t])},expr:function(t){return{$expr:t}},jsonSchema:function(t){return{$jsonSchema:t}},text:function(t){var e,r=od;return e=Ch,xh(t)===e(441)?{$search:t[r(146)]}:{$search:t.search,$language:t[r(164)],$caseSensitive:t.caseSensitive,$diacriticSensitive:t[r(133)]}},aggregate:{pipeline:function(){return new Qv},abs:function(t){return new ad("abs",t)},add:function(t){return new ad(od(135),t)},ceil:function(t){return new ad(od(187),t)},divide:function(t){return new ad(od(100),t)},exp:function(t){return new ad(od(180),t)},floor:function(t){return new ad(od(195),t)},ln:function(t){return new ad("ln",t)},log:function(t){return new ad(od(150),t)},log10:function(t){return new ad(od(106),t)},mod:function(t){return new ad(od(186),t)},multiply:function(t){return new ad(od(163),t)},pow:function(t){return new ad("pow",t)},sqrt:function(t){return new ad("sqrt",t)},subtract:function(t){return new ad("subtract",t)},trunc:function(t){return new ad(od(136),t)},arrayElemAt:function(t){return new ad("arrayElemAt",t)},arrayToObject:function(t){return new ad(od(113),t)},concatArrays:function(t){return new ad(od(114),t)},filter:function(t){return new ad(od(129),t)},in:function(t){return new ad("in",t)},indexOfArray:function(t){return new ad(od(110),t)},isArray:function(t){return new ad(od(200),t)},map:function(t){return new ad("map",t)},range:function(t){return new ad(od(128),t)},reduce:function(t){return new ad(od(184),t)},reverseArray:function(t){return new ad(od(198),t)},size:function(t){return new ad(od(168),t)},slice:function(t){return new ad(od(159),t)},zip:function(t){return new ad(od(130),t)},and:function(t){return new ad(od(161),t)},not:function(t){return new ad(od(105),t)},or:function(t){return new ad("or",t)},cmp:function(t){return new ad(od(178),t)},eq:function(t){return new ad("eq",t)},gt:function(t){return new ad("gt",t)},gte:function(t){return new ad("gte",t)},lt:function(t){return new ad("lt",t)},lte:function(t){return new ad(od(192),t)},neq:function(t){return new ad("ne",t)},cond:function(t){return new ad(od(179),t)},ifNull:function(t){return new ad(od(121),t)},switch:function(t){return new ad("switch",t)},dateFromParts:function(t){return new ad(od(172),t)},dateFromString:function(t){return new ad("dateFromString",t)},dayOfMonth:function(t){return new ad(od(166),t)},dayOfWeek:function(t){return new ad(od(175),t)},dayOfYear:function(t){return new ad(od(124),t)},isoDayOfWeek:function(t){return new ad(od(112),t)},isoWeek:function(t){return new ad(od(139),t)},isoWeekYear:function(t){return new ad(od(116),t)},millisecond:function(t){return new ad("millisecond",t)},minute:function(t){return new ad("minute",t)},month:function(t){return new ad("month",t)},second:function(t){return new ad(od(132),t)},hour:function(t){return new ad("hour",t)},week:function(t){return new ad("week",t)},year:function(t){return new ad(od(182),t)},literal:function(t){return new ad(od(107),t)},mergeObjects:function(t){return new ad(od(169),t)},objectToArray:function(t){return new ad(od(101),t)},allElementsTrue:function(t){return new ad(od(123),t)},anyElementTrue:function(t){return new ad(od(120),t)},setDifference:function(t){return new ad(od(156),t)},setEquals:function(t){return new ad(od(165),t)},setIntersection:function(t){return new ad(od(141),t)},setIsSubset:function(t){return new ad(od(162),t)},setUnion:function(t){return new ad(od(134),t)},concat:function(t){return new ad(od(143),t)},dateToString:function(t){return new ad(od(193),t)},indexOfBytes:function(t){return new ad(od(104),t)},indexOfCP:function(t){return new ad(od(147),t)},split:function(t){return new ad(od(149),t)},strLenBytes:function(t){return new ad(od(126),t)},strLenCP:function(t){return new ad("strLenCP",t)},strcasecmp:function(t){return new ad(od(137),t)},substr:function(t){return new ad(od(145),t)},substrBytes:function(t){return new ad(od(197),t)},substrCP:function(t){return new ad(od(131),t)},toLower:function(t){return new ad(od(144),t)},toUpper:function(t){return new ad("toUpper",t)},meta:function(t){return new ad(od(194),t)},addToSet:function(t){return new ad(od(173),t)},avg:function(t){return new ad("avg",t)},first:function(t){return new ad("first",t)},last:function(t){return new ad(od(203),t)},max:function(t){return new ad(od(155),t)},min:function(t){return new ad(od(176),t)},push:function(t){return new ad(od(115),t)},stdDevPop:function(t){return new ad("stdDevPop",t)},stdDevSamp:function(t){return new ad(od(177),t)},sum:function(t){return new ad(od(111),t)},let:function(t){return new ad(od(199),t)}},project:{slice:function(t){return new ud(od(159),t)},elemMatch:function(t){return new ud("elemMatch",t)}}},ad=function(t,e){this["$"+t]=e},ud=function(t,e){this["$"+t]=e};function cd(){var t=["GEO_INTERSECTS","size","mergeObjects","position","SIZE","dateFromParts","addToSet","4KOeuhM","dayOfWeek","min","stdDevSamp","cmp","cond","exp","length","year","SHIFT","reduce","GEO_WITHIN","mod","ceil","15948360rYHhgq","6GbPrcE","each","LTE","lte","dateToString","meta","floor","7011yMOVsH","substrBytes","reverseArray","let","isArray","GEO_NEAR","MUL","last","divide","objectToArray","POP","SET","indexOfBytes","not","log10","literal","GTE","from","indexOfArray","sum","isoDayOfWeek","arrayToObject","concatArrays","push","isoWeekYear","UNSHIFT","NEQ","sort","anyElementTrue","ifNull","PULL_ALL","allElementsTrue","dayOfYear","BIT","strLenBytes","PUSH","range","filter","zip","substrCP","second","diacriticSensitive","setUnion","add","trunc","strcasecmp","1448qoWZSt","isoWeek","483730BJuWso","setIntersection","PULL","concat","toLower","substr","search","indexOfCP","759405QGXKwa","split","log","hasOwnProperty","146510kvKQob","INC","2191556xWsewQ","max","setDifference","MIN","NOT","slice","3163575xfZHJI","and","setIsSubset","multiply","language","setEquals","dayOfMonth"];return(cd=function(){return t})()}function fd(t,e){var r=hd();return(fd=function(t,e){return r[t-=362]})(t,e)}function hd(){var t=["options","37aoKlIV","1169485lbnFaI","208956pqrSnz","$options","80181NmgPKa","615120zGkhRn","414906lUrynC","$regex","parse","1172WEATsc","defineProperty","4tUBoff","prototype","1541939GLyCeC"];return(hd=function(){return t})()}!function(t,e){for(var r=fd,n=hd();;)try{if(122631===-parseInt(r(370))/1*(-parseInt(r(364))/2)+parseInt(r(376))/3+-parseInt(r(366))/4*(-parseInt(r(371))/5)+parseInt(r(372))/6+-parseInt(r(368))/7+-parseInt(r(375))/8+-parseInt(r(374))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var pd=function(){var t=fd;function e(t){var e=fd,r=t.regexp,n=t[e(369)];if(!r)throw new TypeError("regexp must be a string");this.$regex=r,this[e(373)]=n}return e.prototype[t(363)]=function(){return{$regex:this[t(362)],$options:this.$options}},Object[t(365)](e[t(367)],"_internalType",{get:function(){return Ih},enumerable:!0,configurable:!0}),e}();function ld(t){return new pd(t)}function vd(){var t=["INSERT_DOC_FAIL","27MmsRGx","3528twSHbz","CREATE_WATCH_SERVER_ERROR","CREATE_WACTH_EXCEED_ERROR","1864615WpKOyS","create watch network error","create watch server error","insert document failed","INVALID_PARAM","database transaction conflict","6047682vBHlWP","16723liSbET","212720Ophasr","CONN_ERROR","482247FzWVmT","4031510rTUOVb","1670830UWFBET","DATABASE_TRANSACTION_CONFLICT","6PunFrg","connection error"];return(vd=function(){return t})()}var dd=yd;function yd(t,e){var r=vd();return(yd=function(t,e){return r[t-=279]})(t,e)}!function(t,e){for(var r=yd,n=vd();;)try{if(544120===parseInt(r(280))/1+-parseInt(r(282))/2+-parseInt(r(284))/3*(-parseInt(r(299))/4)+-parseInt(r(291))/5+parseInt(r(297))/6+parseInt(r(298))/7*(-parseInt(r(288))/8)+parseInt(r(287))/9*(parseInt(r(281))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Id={CREATE_WATCH_NET_ERROR:{code:"CREATE_WATCH_NET_ERROR",message:dd(292)},CREATE_WACTH_EXCEED_ERROR:{code:dd(290),message:"maximum connections exceed"},CREATE_WATCH_SERVER_ERROR:{code:dd(289),message:dd(293)},CONN_ERROR:{code:dd(279),message:dd(285)},INVALID_PARAM:{code:dd(295),message:"Invalid request param"},INSERT_DOC_FAIL:{code:dd(286),message:dd(294)},DATABASE_TRANSACTION_CONFLICT:{code:dd(283),message:dd(296)}},md=Ed;!function(t,e){for(var r=Ed,n=_d();;)try{if(786270===-parseInt(r(279))/1+parseInt(r(248))/2+-parseInt(r(274))/3+parseInt(r(261))/4+parseInt(r(234))/5+-parseInt(r(269))/6+parseInt(r(260))/7*(-parseInt(r(244))/8))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var gd=function(){var t=md;return gd=Object[t(240)]||function(e){for(var r,n=t,i=1,o=arguments[n(249)];i<o;i++)for(var s in r=arguments[i])Object[n(247)][n(257)][n(276)](r,s)&&(e[s]=r[s]);return e},gd[t(235)](this,arguments)},bd=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=Ed;function a(t){var e=Ed;try{c(n[e(231)](t))}catch(t){o(t)}}function u(t){var e=Ed;try{c(n[e(286)](t))}catch(t){o(t)}}function c(t){var e,n=Ed;t.done?i(t[n(268)]):(e=t[n(268)],e instanceof r?e:new r((function(t){t(e)})))[n(243)](a,u)}c((n=n.apply(t,e||[]))[s(231)]())}))},wd=function(t,e){var r,n,i,o,s=md,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(250)&&(o[Symbol[s(263)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError(u(275));for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(232)]:o[0]?n[u(286)]||((i=n[u(232)])&&i[u(276)](n),0):n[u(231)])&&!(i=i.call(n,o[1]))[u(246)])return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a[u(258)]++,{value:o[1],done:!1};case 5:a[u(258)]++,n=o[1],o=[0];continue;case 7:o=a[u(251)][u(267)](),a[u(285)][u(267)]();continue;default:if(!(i=a[u(285)],(i=i.length>0&&i[i[u(249)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a[u(258)]=o[1];break}if(6===o[0]&&a.label<i[1]){a[u(258)]=i[1],i=o;break}if(i&&a[u(258)]<i[2]){a[u(258)]=i[2],a[u(251)][u(270)](o);break}i[2]&&a[u(251)][u(267)](),a[u(285)][u(267)]();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function _d(){var t=["then","108528arHqtE","sent","done","prototype","2453762VbvKGT","length","function","ops","getTransactionId","upserted","code","database.deleteDocInTransaction","database.updateDocInTransaction","hasOwnProperty","label","null","700GqydZv","3458540KxkKnz","inserted","iterator","__awaiter","stringify","_transactionId","pop","value","2399958egvEDv","push","encode","formatField","_transaction","71874pagJgH","Generator is already executing.","call","update","create","888395DFkMiE","getRequestMethod","updated","parse","_request","send","trys","throw","database.getInTransaction","data","next","return","set","6818500gtHQzr","apply","_coll","message","get","database.insertDocInTransaction","assign","requestId","__assign"];return(_d=function(){return t})()}function Ed(t,e){var r=_d();return(Ed=function(t,e){return r[t-=230]})(t,e)}var Sd=md(287),Od=md(256),Ad=md(255),Td=md(239),Nd=function(){var t=md;function e(t,e,r){var n=Ed;this[n(236)]=e,this.id=r,this[n(273)]=t,this._request=this[n(273)][n(280)](),this[n(266)]=this._transaction[n(252)]()}return e.prototype[t(278)]=function(t){return bd(this,void 0,void 0,(function(){var e,r,n,i;return wd(this,(function(o){var s=Ed;switch(o.label){case 0:return e={collectionName:this._coll,transactionId:this._transactionId,data:Wv[s(265)](tl(t),{relaxed:!1})},this.id&&(e._id=this.id),[4,this._request[s(284)](Td,e)];case 1:if((r=o.sent())[s(254)])throw r;if(n=Wv[s(282)](r[s(262)]),1==(i=Wv[s(282)](r.ok))&&1==n)return[2,gd(gd({},r),{ok:i,inserted:n})];throw new Error(Id.INSERT_DOC_FAIL[s(237)])}}))}))},e[t(247)][t(238)]=function(){return bd(this,void 0,void 0,(function(){var t,e;return wd(this,(function(r){var n=Ed;switch(r[n(258)]){case 0:return t={collectionName:this._coll,transactionId:this[n(266)],query:{_id:{$eq:this.id}}},[4,this[n(283)][n(284)](Sd,t)];case 1:if((e=r.sent())[n(254)])throw e;return[2,{data:e[n(230)]!==n(259)?Ah[n(272)](Wv[n(282)](e[n(230)])):Wv[n(282)](e[n(230)]),requestId:e[n(241)]}]}}))}))},e.prototype[t(233)]=function(t){return bd(this,void 0,void 0,(function(){var e,r;return wd(this,(function(n){var i=Ed;switch(n[i(258)]){case 0:return e={collectionName:this[i(236)],transactionId:this[i(266)],query:{_id:{$eq:this.id}},data:Wv.stringify(tl(t),{relaxed:!1}),upsert:!0},[4,this[i(283)][i(284)](Od,e)];case 1:if((r=n[i(245)]())[i(254)])throw r;return[2,gd(gd({},r),{updated:Wv[i(282)](r.updated),upserted:r[i(253)]?JSON[i(282)](r[i(253)]):null})]}}))}))},e[t(247)][t(277)]=function(t){return bd(this,void 0,void 0,(function(){var e,r;return wd(this,(function(n){var i=Ed;switch(n[i(258)]){case 0:return e={collectionName:this[i(236)],transactionId:this._transactionId,query:{_id:{$eq:this.id}},data:Wv[i(265)](dl[i(271)](t),{relaxed:!1})},[4,this[i(283)][i(284)](Od,e)];case 1:if((r=n.sent()).code)throw r;return[2,gd(gd({},r),{updated:Wv[i(282)](r[i(281)])})]}}))}))},e[t(247)].delete=function(){return bd(this,void 0,void 0,(function(){var t,e;return wd(this,(function(r){var n=Ed;switch(r[n(258)]){case 0:return t={collectionName:this[n(236)],transactionId:this._transactionId,query:{_id:{$eq:this.id}}},[4,this._request.send(Ad,t)];case 1:if((e=r.sent()).code)throw e;return[2,gd(gd({},e),{deleted:Wv[n(282)](e.deleted)})]}}))}))},e}();!function(t,e){for(var r=xd,n=Rd();;)try{if(659883===-parseInt(r(487))/1+parseInt(r(485))/2+-parseInt(r(483))/3+-parseInt(r(488))/4+-parseInt(r(486))/5*(parseInt(r(482))/6)+-parseInt(r(484))/7*(parseInt(r(479))/8)+parseInt(r(481))/9*(parseInt(r(478))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var kd=function(t,e){var r=xd;this._coll=e,this[r(480)]=t};function xd(t,e){var r=Rd();return(xd=function(t,e){return r[t-=478]})(t,e)}function Rd(){var t=["2491566ETXKtn","221755rSFbSo","358352WDdzZP","2614736cfVBWQ","50cgcaob","333544lSCmBp","_transaction","4032882OGJFCf","72wtQZxM","2470557XaYIpQ","77ZPZqMF"];return(Rd=function(){return t})()}function Pd(){var t=["__proto__","doc","create","14564928nrmArH","_coll","3aJPMpR","713896BeOGqi","call","4602085TPLnLb","constructor","985180xpHhdV","1973ZkwXpI","536CaSCCP","_id","__extends","11836062RZZcBP","prototype","number","6PlzNuq","_transaction","defineProperty","2714660snNTXT","docId必须为字符串或数字","name"];return(Pd=function(){return t})()}var Cd=Ud;!function(t,e){for(var r=Ud,n=Pd();;)try{if(991431===parseInt(r(396))/1*(parseInt(r(397))/2)+parseInt(r(414))/3*(parseInt(r(415))/4)+parseInt(r(417))/5*(parseInt(r(403))/6)+parseInt(r(395))/7+-parseInt(r(412))/8+parseInt(r(400))/9+-parseInt(r(406))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var jd,Dd=(jd=function(t,e){return(jd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t[Ud(409)]=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){var r=Ud;function n(){this[Ud(394)]=t}jd(t,e),t[r(401)]=null===e?Object.create(e):(n[r(401)]=e[r(401)],new n)}),Ld=function(t){var e=Cd;function r(e,r){return t[Ud(416)](this,e,r)||this}return Dd(r,t),Object[e(405)](r[e(401)],e(408),{get:function(){return this[e(413)]},enumerable:!0,configurable:!0}),r[e(401)][e(410)]=function(t){var r=e;if("string"!=typeof t&&typeof t!==r(402))throw new Error(r(407));return new Nd(this[r(404)],this[r(413)],t)},r.prototype.add=function(t){var r,n=e;return void 0!==t._id&&(r=t[n(398)]),new Nd(this._transaction,this[n(413)],r)[n(411)](t)},r}(kd);function Ud(t,e){var r=Pd();return(Ud=function(t,e){return r[t-=394]})(t,e)}var Md=Hd;function Bd(){var t=["apply","call","label","aborted","2453715ZtIcKa","prototype","collection","commit","database.commitTransaction","_request","transactionId","abortReason","2845kaTIhE","trys","code","pop","ops","12999DkLBVA","throw","done","value","sent","getTransactionId","372orPOFq","commited","1992xVCeuU","856Wbapcd","inited","7639191fniuQS","5076DlVGCK","length","5797350qSmmPc","send","iterator","974klvQwx","init","database.startTransaction","reqClass","_db","function","next","rollback","DATABASE_TRANSACTION_CONFLICT","push","_id","then","599GOkJac","config","database.abortTransaction","return"];return(Bd=function(){return t})()}!function(t,e){for(var r=Hd,n=Bd();;)try{if(496111===parseInt(r(402))/1*(-parseInt(r(390))/2)+-parseInt(r(381))/3*(-parseInt(r(379))/4)+-parseInt(r(368))/5*(-parseInt(r(385))/6)+-parseInt(r(373))/7*(-parseInt(r(382))/8)+parseInt(r(384))/9+-parseInt(r(387))/10+-parseInt(r(360))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var qd=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){var e=Hd;try{u(n[e(396)](t))}catch(t){o(t)}}function a(t){var e=Hd;try{u(n[e(374)](t))}catch(t){o(t)}}function u(t){var e,n=Hd;t[n(375)]?i(t[n(376)]):(e=t[n(376)],e instanceof r?e:new r((function(t){t(e)})))[n(401)](s,a)}u((n=n[Hd(406)](t,e||[])).next())}))},Fd=function(t,e){var r,n,i,o,s=Hd,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol===s(395)&&(o[Symbol[s(389)]]=function(){return this}),o;function u(o){return function(u){return function(o){var u=s;if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n[u(405)]:o[0]?n.throw||((i=n[u(405)])&&i[u(407)](n),0):n[u(396)])&&!(i=i.call(n,o[1]))[u(375)])return i;switch(n=0,i&&(o=[2&o[0],i[u(376)]]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a[u(372)][u(371)](),a[u(369)][u(371)]();continue;default:if(!(i=a[u(369)],(i=i[u(386)]>0&&i[i[u(386)]-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a[u(408)]=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a[u(408)]<i[2]){a[u(408)]=i[2],a[u(372)].push(o);break}i[2]&&a[u(372)][u(371)](),a.trys[u(371)]();continue}o=e[u(407)](t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function Hd(t,e){var r=Bd();return(Hd=function(t,e){return r[t-=360]})(t,e)}var Wd=Md(392),Gd=Md(364),Kd=Md(404),Vd=function(){var t=Md;function e(t){var e=Hd;this[e(394)]=t,this[e(365)]=new($d[e(393)])(this[e(394)][e(403)]),this.aborted=!1,this[e(380)]=!1,this.inited=!1}return e[t(361)][t(391)]=function(){return qd(this,void 0,void 0,(function(){var t;return Fd(this,(function(e){var r=Hd;switch(e[r(408)]){case 0:return[4,this[r(365)][r(388)](Wd)];case 1:if((t=e[r(377)]())[r(370)])throw t;return this[r(383)]=!0,this[r(400)]=t[r(366)],[2]}}))}))},e.prototype[t(362)]=function(t){if(!t)throw new Error("Collection name is required");return new Ld(this,t)},e[t(361)][t(378)]=function(){return this[t(400)]},e.prototype.getRequestMethod=function(){return this[t(365)]},e[t(361)][t(363)]=function(){return qd(this,void 0,void 0,(function(){var t,e;return Fd(this,(function(r){var n=Hd;switch(r.label){case 0:return t={transactionId:this[n(400)]},[4,this[n(365)][n(388)](Gd,t)];case 1:if((e=r[n(377)]()).code)throw e;return this[n(380)]=!0,[2,e]}}))}))},e.prototype[t(397)]=function(t){return qd(this,void 0,void 0,(function(){var e,r;return Fd(this,(function(n){var i=Hd;switch(n[i(408)]){case 0:return e={transactionId:this[i(400)]},[4,this[i(365)][i(388)](Kd,e)];case 1:if((r=n.sent())[i(370)])throw r;return this[i(409)]=!0,this.abortReason=t,[2,r]}}))}))},e}();function zd(){return qd(this,void 0,void 0,(function(){var t;return Fd(this,(function(e){var r=Hd;switch(e[r(408)]){case 0:return[4,(t=new Vd(this))[r(391)]()];case 1:return e.sent(),[2,t]}}))}))}function Jd(t,e){return void 0===e&&(e=3),qd(this,void 0,void 0,(function(){var r,n,i,o,s=this;return Fd(this,(function(a){var u=Hd;switch(a[u(408)]){case 0:return a[u(369)].push([0,4,,10]),[4,(r=new Vd(this))[u(391)]()];case 1:return a[u(377)](),[4,t(r)];case 2:if(n=a[u(377)](),!0===r.aborted)throw r.abortReason;return[4,r[u(363)]()];case 3:return a[u(377)](),[2,n];case 4:if(i=a[u(377)](),!1===r.inited)throw i;return o=function(t){return qd(s,void 0,void 0,(function(){return Fd(this,(function(e){var n=Hd;switch(e[n(408)]){case 0:if(r[n(409)]||r[n(380)])return[3,5];e.label=1;case 1:return e[n(369)][n(399)]([1,3,,4]),[4,r.rollback()];case 2:case 3:return e[n(377)](),[3,4];case 4:throw t;case 5:if(!0===r[n(409)])throw r[n(367)];throw t}}))}))},e<=0?[4,o(i)]:[3,6];case 5:a[u(377)](),a.label=6;case 6:return i&&i[u(370)]===Id[u(398)][u(370)]?[4,Jd.bind(this)(t,--e)]:[3,8];case 7:return[2,a[u(377)]()];case 8:return[4,o(i)];case 9:return a[u(377)](),[3,10];case 10:return[2]}}))}))}function Yd(t,e){var r=Xd();return(Yd=function(t,e){return r[t-=220]})(t,e)}function Xd(){var t=["config","RegExp","11046VMGejZ","createCollection","2705Jwnoun","3750110xpLTdz","prototype","7GzwJww","reqClass","updateCommand","3276378mJtvLm","1208214FuZVKh","Geo","Collection name is required","55zEZKpT","2nAnbfp","serverDate","1018538dezRuW","collection","startTransaction","send","8639864JGVxNV","4312384fYrsdH","database.addCollection"];return(Xd=function(){return t})()}!function(t,e){for(var r=Yd,n=Xd();;)try{if(697413===-parseInt(r(220))/1*(-parseInt(r(242))/2)+parseInt(r(237))/3+-parseInt(r(225))/4+-parseInt(r(231))/5*(parseInt(r(229))/6)+parseInt(r(234))/7*(-parseInt(r(224))/8)+-parseInt(r(238))/9+-parseInt(r(232))/10*(-parseInt(r(241))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var $d=function(){var t=Yd;function e(t){var e=Yd;this[e(227)]=t,this[e(239)]=pp,this[e(243)]=wh,this.command=sd,this[e(228)]=ld,this[e(222)]=zd,this.runTransaction=Jd,this.logicCommand=kp,this[e(236)]=wp,this.queryCommand=Bp}return e[t(233)][t(221)]=function(e){if(!e)throw new Error(t(240));return new id(this,e)},e[t(233)][t(230)]=function(r){var n=t,i={collectionName:r};return new(e[n(235)])(this[n(227)])[n(223)](n(226),i)},e}(),Qd=ry;!function(t,e){for(var r=ry,n=ty();;)try{if(122844===parseInt(r(437))/1+-parseInt(r(423))/2*(parseInt(r(420))/3)+parseInt(r(430))/4+-parseInt(r(424))/5+parseInt(r(442))/6*(parseInt(r(440))/7)+-parseInt(r(447))/8*(parseInt(r(419))/9)+parseInt(r(443))/10*(parseInt(r(435))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Zd=function(){var t=Qd;return Zd=Object[t(427)]||function(e){for(var r,n=t,i=1,o=arguments[n(428)];i<o;i++)for(var s in r=arguments[i])Object[n(439)][n(431)][n(418)](r,s)&&(e[s]=r[s]);return e},Zd[t(444)](this,arguments)};function ty(){var t=["406132dYJvEs","424705VMAVad","bind","runtime","assign","length","platform","119608NrWtrK","hasOwnProperty","warn","reqClass","registerComponent","33OQOrro","wsClass","14277BrEmPY","adapter","prototype","588287VbRdVy","database","6sUVmEk","1644710kZVEwO","apply","__assign","constructor","11792PSYEEh","call","1287GoiIAZ","3YSzXBa","wsClientClass","getAccessToken"];return(ty=function(){return t})()}var ey={name:Qd(441),entity:{database:function(t){var e=Qd,r=this[e(429)],n=r[e(438)],i=r.runtime;return $d[e(433)]=this.request[e(446)],$d[e(422)]=this.authInstance?this.authInstance[e(422)][e(425)](this.authInstance):function(){return""},$d[e(426)]=i,this.wsClientClass&&($d[e(436)]=n.wsClass,$d[e(421)]=this[e(421)]),!$d.ws&&($d.ws=null),new $d(Zd(Zd({},this.config),t))}}};function ry(t,e){var r=ty();return(ry=function(t,e){return r[t-=418]})(t,e)}try{cloudbase[Qd(434)](ey)}catch(t){}var ny="1.7.2",iy=oy;function oy(t,e){var r=sy();return(oy=function(t,e){return r[t-=272]})(t,e)}function sy(){var t=["cloudbase","2920104CqRXCn","551661oncJaT","1177782EcQYBV","3tECZIV","10xNCKJK","778555JwwqCg","registerVersion","4410774XhMVDU","1847664CwarUV","30722DTSLUR","4rzKaWY"];return(sy=function(){return t})()}!function(t,e){for(var r=oy,n=sy();;)try{if(438007===parseInt(r(276))/1+parseInt(r(272))/2*(-parseInt(r(278))/3)+parseInt(r(273))/4*(-parseInt(r(280))/5)+parseInt(r(277))/6+-parseInt(r(283))/7+-parseInt(r(275))/8+parseInt(r(282))/9*(parseInt(r(279))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var ay,uy,cy,fy=ny;si[iy(281)](fy);try{(function(t){var e=us;try{t[e(293)](xs)}catch(t){console.warn(t)}})(si),function(t){var e=Rs;try{t[e(347)](Ks)}catch(t){console[e(340)](t)}}(si),function(t){var e=Vs;try{t[e(314)](aa)}catch(t){console[e(276)](t)}}(si),function(t){var e=Qd;try{t[e(434)](ey)}catch(t){console[e(432)](t)}}(si),function(t){var e=vf;try{t[e(219)](If),t[e(203)](yf)}catch(t){console.warn(t)}}(si),function(t){var e=gf;try{t[e(532)](Pf)}catch(t){console[e(511)](t)}}(si)}catch(t){}try{window[iy(274)]=si}catch(t){}function hy(t,e){var r=py();return(hy=function(t,e){return r[t-=102]})(t,e)}function py(){var t=["release-7gvojkxi667a3f26","4238BjKIjL","testing","818084qhoFDB","3088971BdOflE","production","12EWrHrV","35JFNwYM","2080938mDindN","19613rkrwff","40TXvzOF","dev-1gpp53ju3ceb46c7","241283YYaFaW","5052nZdwzO","216JXhexy","4045143GxFASM","development"];return(py=function(){return t})()}!function(t,e){for(var r=hy,n=py();;)try{if(737339===-parseInt(r(109))/1*(parseInt(r(104))/2)+parseInt(r(118))/3+parseInt(r(106))/4*(-parseInt(r(110))/5)+-parseInt(r(111))/6+parseInt(r(115))/7*(-parseInt(r(117))/8)+-parseInt(r(107))/9*(-parseInt(r(113))/10)+-parseInt(r(112))/11*(-parseInt(r(116))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),(uy=ay||(ay={}))[(cy=hy)(102)]=cy(114),uy[cy(105)]="dev-1gpp53ju3ceb46c7",uy[cy(108)]=cy(103);var ly=dy;function vy(){var t=["data","callFunction","init","result","2275343jhLDmj","20dLElhQ","8550322JpFWvW","16CfwEbG","15nuYiyA","6TDqleX","success","NODE_ENV","855300kbHReH","ENV","280818lAPglj","2239803IRSiFB","24107OUriKf","3324384IkpEmS","label"];return(vy=function(){return t})()}function dy(t,e){var r=vy();return(dy=function(t,e){return r[t-=150]})(t,e)}!function(t,e){for(var r=dy,n=vy();;)try{if(291028===-parseInt(r(164))/1*(-parseInt(r(155))/2)+-parseInt(r(157))/3*(-parseInt(r(160))/4)+parseInt(r(156))/5*(-parseInt(r(162))/6)+-parseInt(r(152))/7+parseInt(r(165))/8+parseInt(r(163))/9*(parseInt(r(153))/10)+-parseInt(r(154))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var yy={ENV:ay[process.env[ly(159)]],REGION:"ap-shanghai"},Iy={region:yy.REGION,env:yy[ly(161)]},my=si[ly(150)](Iy);function gy(t){return i(this,void 0,void 0,(function(){var e;return o(this,(function(r){var n=dy;switch(r[n(166)]){case 0:return[4,my[n(168)](t)];case 1:return e=r.sent(),[2,new Promise((function(t,r){var i,o=n;(null===(i=e.result)||void 0===i?void 0:i[o(158)])?t(e[o(151)][o(167)]):r(e[o(151)])}))]}}))}))}!function(t,e){for(var r=wy,n=_y();;)try{if(669138===parseInt(r(368))/1*(parseInt(r(376))/2)+parseInt(r(366))/3*(-parseInt(r(365))/4)+parseInt(r(372))/5*(parseInt(r(377))/6)+parseInt(r(374))/7*(-parseInt(r(370))/8)+-parseInt(r(371))/9+-parseInt(r(362))/10*(parseInt(r(369))/11)+-parseInt(r(359))/12*(-parseInt(r(361))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var by=e.create();function wy(t,e){var r=_y();return(wy=function(t,e){return r[t-=356]})(t,e)}function _y(){var t=["274888XOkoMO","10141758kFLUbI","155ADEkQt","requestInterceptors","133DrbUEX","get","1127888PlfhxZ","235692IALKsR","catchCallback","use","post","data","timeout","params","method","response","function","request","24yjwtMt","headers","9400183bTqvVc","67570ialysW","interceptors","then","23116ljGdwT","171QNQKal","responseInterceptors","2nrdzBr","1650Trkjsx"];return(_y=function(){return t})()}function Ey(t){return!(n=t)[(i=wy)(384)]&&n.data&&(n.method=i(380)),!n.method&&!n.data&&(n[i(384)]=i(375)),(e=t)[(r=wy)(373)]&&typeof e[r(373)]===r(357)&&by[r(363)][r(358)][r(379)](e[r(373)]),e[r(367)]&&typeof e[r(367)]===r(357)&&by[r(363)].response.use(e.responseInterceptors),new Promise((function(e,r){var n=wy;by.request({method:t[n(384)],url:t.url,headers:(null==t?void 0:t[n(360)])||{},data:null==t?void 0:t[n(381)],params:null==t?void 0:t[n(383)],timeout:(null==t?void 0:t[n(382)])||8e3})[n(364)]((function(t){var i=n;if(200===t.status){var o=t[i(381)];e(o)}else{o=t.data;r(o)}})).catch((function(e){var i=n,o=(null==e?void 0:e[i(356)])||{};(null==t?void 0:t[i(378)])&&"function"==typeof(null==t?void 0:t[i(378)])&&(null==t||t.catchCallback(e));var s=null==o?void 0:o.data;r(s)}))}));var e,r,n,i}var Sy={exports:{}};function Oy(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ay,Ty={exports:{}},Ny=ky;function ky(t,e){var r=Ry();return(ky=function(t,e){return r[t-=493]})(t,e)}function xy(){var t,e,r,n,i=Ny;return Ay?Ty[i(522)]:(Ay=1,t=Ty,Ty[i(522)],e=h[i(532)],r=function(){var t=t||function(t,e){var r,n=ky;if(typeof window!==n(498)&&window[n(525)]&&(r=window.crypto),"undefined"!=typeof self&&self[n(525)]&&(r=self[n(525)]),typeof globalThis!==n(498)&&globalThis[n(525)]&&(r=globalThis[n(525)]),!r&&typeof window!==n(498)&&window[n(493)]&&(r=window[n(493)]),!r&&typeof u!==n(498)&&u[n(525)]&&(r=h[n(532)].crypto),!r&&typeof Oy===n(562))try{r=require("crypto")}catch(t){}var i=function(){var t=n;if(r){if(typeof r[t(515)]===t(562))try{return r[t(515)](new Uint32Array(1))[0]}catch(t){}if(typeof r[t(533)]===t(562))try{return r[t(533)](4)[t(508)]()}catch(t){}}throw new Error(t(537))},o=Object[n(517)]||function(){function t(){}return function(e){var r,n=ky;return t.prototype=e,r=new t,t[n(541)]=null,r}}(),s={},a=s[n(551)]={},c=a[n(516)]={extend:function(t){var e=ky,r=o(this);return t&&r[e(497)](t),(!r[e(518)](e(523))||this[e(523)]===r[e(523)])&&(r[e(523)]=function(){r[e(514)].init.apply(this,arguments)}),r[e(523)].prototype=r,r.$super=this,r},create:function(){var t=ky,e=this.extend();return e[t(523)][t(500)](e,arguments),e},init:function(){},mixIn:function(t){var e=ky;for(var r in t)t[e(518)](r)&&(this[r]=t[r]);t.hasOwnProperty(e(534))&&(this[e(534)]=t[e(534)])},clone:function(){var t=ky;return this[t(523)][t(541)][t(507)](this)}},f=a[n(505)]=c[n(507)]({init:function(t,e){var r=n;t=this[r(503)]=t||[],this[r(530)]=null!=e?e:4*t[r(524)]},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=n,r=this.words,i=t[e(503)],o=this.sigBytes,s=t[e(530)];if(this[e(539)](),o%4)for(var a=0;a<s;a++){var u=i[a>>>2]>>>24-a%4*8&255;r[o+a>>>2]|=u<<24-(o+a)%4*8}else for(var c=0;c<s;c+=4)r[o+c>>>2]=i[c>>>2];return this[e(530)]+=s,this},clamp:function(){var e=n,r=this.words,i=this[e(530)];r[i>>>2]&=4294967295<<32-i%4*8,r[e(524)]=t[e(495)](i/4)},clone:function(){var t=n,e=c[t(506)][t(535)](this);return e[t(503)]=this[t(503)][t(558)](0),e},random:function(t){for(var e=n,r=[],o=0;o<t;o+=4)r[e(550)](i());return new(f[e(523)])(r,t)}}),p=s[n(504)]={},l=p[n(496)]={stringify:function(t){for(var e=n,r=t[e(503)],i=t[e(530)],o=[],s=0;s<i;s++){var a=r[s>>>2]>>>24-s%4*8&255;o.push((a>>>4)[e(534)](16)),o[e(550)]((15&a)[e(534)](16))}return o[e(559)]("")},parse:function(t){for(var e=n,r=t.length,i=[],o=0;o<r;o+=2)i[o>>>3]|=parseInt(t[e(540)](o,2),16)<<24-o%8*4;return new f.init(i,r/2)}},v=p[n(502)]={stringify:function(t){for(var e=n,r=t.words,i=t.sigBytes,o=[],s=0;s<i;s++){var a=r[s>>>2]>>>24-s%4*8&255;o[e(550)](String[e(553)](a))}return o.join("")},parse:function(t){for(var e=n,r=t[e(524)],i=[],o=0;o<r;o++)i[o>>>2]|=(255&t[e(552)](o))<<24-o%4*8;return new(f[e(523)])(i,r)}},d=p[n(545)]={stringify:function(t){var e=n;try{return decodeURIComponent(escape(v[e(529)](t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return v[n(557)](unescape(encodeURIComponent(t)))}},y=a[n(548)]=c.extend({reset:function(){var t=n;this._data=new(f[t(523)]),this[t(544)]=0},_append:function(t){var e=n;"string"==typeof t&&(t=d.parse(t)),this[e(560)][e(509)](t),this[e(544)]+=t[e(530)]},_process:function(e){var r,i=n,o=this._data,s=o[i(503)],a=o[i(530)],u=this.blockSize,c=a/(4*u),h=(c=e?t[i(495)](c):t[i(521)]((0|c)-this[i(513)],0))*u,p=t[i(546)](4*h,a);if(h){for(var l=0;l<h;l+=u)this[i(494)](s,l);r=s.splice(0,h),o.sigBytes-=p}return new(f[i(523)])(r,p)},clone:function(){var t=n,e=c.clone[t(535)](this);return e[t(560)]=this[t(560)][t(506)](),e},_minBufferSize:0});a[n(554)]=y[n(507)]({cfg:c.extend(),init:function(t){var e=n;this[e(542)]=this[e(542)][e(507)](t),this.reset()},reset:function(){var t=n;y[t(527)][t(535)](this),this[t(501)]()},update:function(t){var e=n;return this[e(555)](t),this[e(512)](),this},finalize:function(t){var e=n;return t&&this[e(555)](t),this[e(556)]()},blockSize:16,_createHelper:function(t){return function(e,r){var n=ky;return new(t[n(523)])(r)[n(510)](e)}},_createHmacHelper:function(t){return function(e,r){var n=ky;return new I.HMAC.init(t,r)[n(510)](e)}}});var I=s.algo={};return s}(Math);return t},"object"===(n=ky)(547)?t.exports=r():"undefined"===n(562)&&(void 0)[n(528)]?(void 0)([],r):e[n(536)]=r(),Ty.exports)}function Ry(){var t=["_nDataBytes","Utf8","min","object","BufferedBlockAlgorithm","24fdpzvz","push","lib","charCodeAt","fromCharCode","Hasher","_append","_doFinalize","parse","slice","join","_data","1292523hBqkvT","function","msCrypto","_doProcessBlock","ceil","Hex","mixIn","undefined","613532KzMPpY","apply","_doReset","Latin1","words","enc","WordArray","clone","extend","readInt32LE","concat","finalize","7508590bYoQNL","_process","_minBufferSize","$super","getRandomValues","Base","create","hasOwnProperty","373264iCQapF","1708816ZErNGE","max","exports","init","length","crypto","171354sWcckr","reset","amd","stringify","sigBytes","5ghMqhm","commonjsGlobal","randomBytes","toString","call","CryptoJS","Native crypto module could not be used to get secure random number.","112PMjTnN","clamp","substr","prototype","cfg","520551xyATPj"];return(Ry=function(){return t})()}!function(t,e){for(var r=ky,n=Ry();;)try{if(242739===parseInt(r(519))/1+-parseInt(r(499))/2+-parseInt(r(561))/3+parseInt(r(520))/4*(-parseInt(r(531))/5)+parseInt(r(526))/6*(parseInt(r(538))/7)+parseInt(r(549))/8*(-parseInt(r(543))/9)+parseInt(r(511))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Ty[Ny(522)];var Py,Cy={exports:{}},jy=Ly;function Dy(){var t=["x64","push","call","3199JHnbXY","1330408xUDkyZ","WordArray","clone","14188580RKAOiN","amd","sigBytes","extend","11TNfLUu","slice","5459967BSYayF","CryptoJS","low","length","216459bNztBo","Base","1965269EtIZpN","create","function","9258792BrIXXz","exports","words","Word","52xRqQyr","5gqtYAC","object","19736VulYSV"];return(Dy=function(){return t})()}function Ly(t,e){var r=Dy();return(Ly=function(t,e){return r[t-=179]})(t,e)}function Uy(){var t,e,r,n;return Py||(Py=1,t=Cy,Cy[jy(199)],e=u,r=function(t){return e=Ly,n=(r=t).lib,i=n[e(194)],o=n[e(181)],(s=r[e(206)]={})[e(201)]=i[e(186)]({init:function(t,r){var n=e;this.high=t,this[n(191)]=r}}),s.WordArray=i[e(186)]({init:function(t,r){var n=e;t=this.words=t||[],this[n(185)]=null!=r?r:8*t[n(192)]},toX32:function(){for(var t=e,r=this[t(200)],n=r[t(192)],i=[],s=0;s<n;s++){var a=r[s];i[t(207)](a.high),i[t(207)](a[t(191)])}return o[t(196)](i,this[t(185)])},clone:function(){for(var t=e,r=i[t(182)][t(208)](this),n=r[t(200)]=this[t(200)][t(188)](0),o=n[t(192)],s=0;s<o;s++)n[s]=n[s][t(182)]();return r}}),t;var e,r,n,i,o,s},(n=Ly)(204)==n(204)?t.exports=r(xy()):"undefined"===n(197)&&(void 0)[n(184)]?(void 0)(["./core"],r):r(e[n(190)])),Cy.exports}!function(t,e){for(var r=Ly,n=Dy();;)try{if(984597===parseInt(r(195))/1+parseInt(r(202))/2*(-parseInt(r(193))/3)+-parseInt(r(180))/4*(parseInt(r(203))/5)+parseInt(r(198))/6+parseInt(r(179))/7*(-parseInt(r(205))/8)+-parseInt(r(189))/9+parseInt(r(183))/10*(parseInt(r(187))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Cy[jy(199)];var My,By={exports:{}},qy=Hy;function Fy(){var t=["71056eHpYUW","66JOCpfx","init","WordArray","./core","1189296ckQMGq","209vEjwqh","amd","byteLength","lib","byteOffset","500210qsHQLs","90hOglcb","679Tlffgp","1386596hmbnlS","88095dQqpkU","exports","1644840mkkVlp","function","apply","25447pSZmCt","undefined","call"];return(Fy=function(){return t})()}function Hy(t,e){var r=Fy();return(Hy=function(t,e){return r[t-=490]})(t,e)}function Wy(){var t,e,r,n=qy;return My||(My=1,t=By,n(490),t[Hy(490)]=(e=xy(),r=Hy,function(){var t=Hy;if(typeof ArrayBuffer==t(492)){var r=e[t(506)][t(500)],n=r[t(499)],i=r.init=function(e){var r=t;if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||typeof Uint8ClampedArray!==r(495)&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e[r(507)],e[r(505)])),e instanceof Uint8Array){for(var i=e[r(505)],o=[],s=0;s<i;s++)o[s>>>2]|=e[s]<<24-s%4*8;n[r(496)](this,o,i)}else n[r(493)](this,arguments)};i.prototype=r}}(),e[r(506)][r(500)])),By[n(490)]}!function(t,e){for(var r=Hy,n=Fy();;)try{if(473702===parseInt(r(494))/1*(-parseInt(r(498))/2)+-parseInt(r(491))/3+-parseInt(r(511))/4+-parseInt(r(512))/5*(-parseInt(r(509))/6)+-parseInt(r(510))/7*(-parseInt(r(497))/8)+parseInt(r(502))/9+parseInt(r(508))/10*(parseInt(r(503))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),qy(490);var Gy,Ky={exports:{}},Vy=zy;function zy(t,e){var r=Jy();return(zy=function(t,e){return r[t-=266]})(t,e)}function Jy(){var t=["Utf16LE","3743835KHBwPt","words","CryptoJS","242235PdzJjz","Utf16BE","7324724feajbC","exports","./core","5244810lKxBxP","length","enc","amd","2644090XTLzZR","join","fromCharCode","sigBytes","commonjsGlobal","function","charCodeAt","12077513ldveYP","create","1876782nttwcu","object","Utf16","push"];return(Jy=function(){return t})()}!function(t,e){for(var r=zy,n=Jy();;)try{if(946678===parseInt(r(272))/1+parseInt(r(281))/2+-parseInt(r(269))/3+-parseInt(r(274))/4+parseInt(r(277))/5+-parseInt(r(290))/6+parseInt(r(288))/7)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Vy(275);var Yy,Xy={exports:{}},$y=Zy;function Qy(){var t=["charAt","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","615237ISXLGI","charCodeAt","288003pDjjRc","function","103998KUZhsB","Base64","./core","52684CgFVac","push","204392CWCZrV","WordArray","1461230kLXnfJ","91eAwLzM","commonjsGlobal","CryptoJS","45OsiunF","object","words","sigBytes","enc","join","4ZqNfEW","indexOf","lib","exports","clamp","1393105kyHtVT"];return(Qy=function(){return t})()}function Zy(t,e){var r=Qy();return(Zy=function(t,e){return r[t-=130]})(t,e)}function tI(){var t,e,r,n,i,o=$y;return Yy?Xy.exports:(Yy=1,t=Xy,Xy[o(131)],e=h[(i=Zy)(149)],r=function(t){var e,r,n,o=i;return n=(r=t)[(e=Zy)(130)][e(146)],r[e(155)][e(141)]={stringify:function(t){var r=e,n=t[r(153)],i=t[r(154)],o=this._map;t[r(132)]();for(var s=[],a=0;a<i;a+=3)for(var u=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c<i;c++)s[r(144)](o[r(134)](u>>>6*(3-c)&63));var f=o[r(134)](64);if(f)for(;s.length%4;)s[r(144)](f);return s[r(156)]("")},parse:function(t){var r=e,i=t.length,o=this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var a=0;a<o.length;a++)s[o[r(137)](a)]=a}var u=o[r(134)](64);if(u){var c=t[r(158)](u);-1!==c&&(i=c)}return function(t,r,i){for(var o=e,s=[],a=0,u=0;u<r;u++)if(u%4){var c=i[t[o(137)](u-1)]<<u%4*2|i[t[o(137)](u)]>>>6-u%4*2;s[a>>>2]|=c<<24-a%4*8,a++}return n.create(s,a)}(t,i,s)},_map:e(135)},t[o(155)][o(141)]},(n=Zy)(152)==n(152)?t.exports=r(xy()):"undefined"===n(139)&&(void 0).amd?(void 0)([n(142)],r):r(e[n(150)]),Xy[o(131)])}!function(t,e){for(var r=Zy,n=Qy();;)try{if(183448===-parseInt(r(138))/1+-parseInt(r(143))/2+parseInt(r(136))/3*(-parseInt(r(157))/4)+-parseInt(r(133))/5+parseInt(r(140))/6*(parseInt(r(148))/7)+parseInt(r(145))/8+parseInt(r(151))/9*(parseInt(r(147))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Xy[$y(131)];var eI,rI={exports:{}},nI=oI;function iI(){var t=["create","function","charCodeAt","words","charAt","1835771ZuhSwE","_reverseMap","Base64url","enc","706446XIxqzP","indexOf","3045SDKAMT","411292NDxqsL","exports","WordArray","length","_safe_map","885760IAtSHD","lib","8CZLjne","4481667asEJmt","_map","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","push","6joXIfI","clamp","commonjsGlobal","3258900ZGfTmL","object"];return(iI=function(){return t})()}function oI(t,e){var r=iI();return(oI=function(t,e){return r[t-=120]})(t,e)}function sI(){var t,e,r,n,i,o=nI;return eI||(eI=1,t=rI,e=h[(i=o)(133)],r=function(t){var e,r,n,o=i;return n=(r=t)[(e=oI)(125)][e(121)],r[e(144)][e(143)]={stringify:function(t,r){var n=e;void 0===r&&(r=!0);var i=t[n(139)],o=t.sigBytes,s=r?this[n(123)]:this._map;t[n(132)]();for(var a=[],u=0;u<o;u+=3)for(var c=(i[u>>>2]>>>24-u%4*8&255)<<16|(i[u+1>>>2]>>>24-(u+1)%4*8&255)<<8|i[u+2>>>2]>>>24-(u+2)%4*8&255,f=0;f<4&&u+.75*f<o;f++)a[n(130)](s[n(140)](c>>>6*(3-f)&63));var h=s[n(140)](64);if(h)for(;a[n(122)]%4;)a[n(130)](h);return a.join("")},parse:function(t,r){var i=e;void 0===r&&(r=!0);var o=t.length,s=r?this[i(123)]:this[i(128)],a=this[i(142)];if(!a){a=this._reverseMap=[];for(var u=0;u<s[i(122)];u++)a[s.charCodeAt(u)]=u}var c=s.charAt(64);if(c){var f=t[i(146)](c);-1!==f&&(o=f)}return function(t,r,i){for(var o=e,s=[],a=0,u=0;u<r;u++)if(u%4){var c=i[t[o(138)](u-1)]<<u%4*2|i[t.charCodeAt(u)]>>>6-u%4*2;s[a>>>2]|=c<<24-a%4*8,a++}return n[o(136)](s,a)}(t,o,a)},_map:e(129),_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},t.enc[o(143)]},"object"===(n=oI)(135)?t[n(120)]=r(xy()):"undefined"===n(137)&&(void 0).amd?(void 0)(["./core"],r):r(e.CryptoJS)),rI[o(120)]}!function(t,e){for(var r=oI,n=iI();;)try{if(421702===parseInt(r(147))/1+parseInt(r(124))/2+-parseInt(r(145))/3+parseInt(r(148))/4+-parseInt(r(134))/5+parseInt(r(131))/6*(parseInt(r(141))/7)+-parseInt(r(126))/8*(-parseInt(r(127))/9))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),nI(120);var aI,uI={exports:{}},cI=hI;function fI(){var t=["8490224LnzivF","function","init","clone","2cTMKiY","Hasher","CryptoJS","amd","12uKFKPP","10636hrQFUc","4833kgXwij","1660fYZPHH","_hash","_createHelper","length","1280245HnwbcA","algo","sin","object","commonjsGlobal","HmacMD5","MD5","2511117nZDNcE","abs","549356roFUqt","_process","words","795Daktnh","lib","extend","call","WordArray","40234205CAmPGr","sigBytes","exports"];return(fI=function(){return t})()}function hI(t,e){var r=fI();return(hI=function(t,e){return r[t-=477]})(t,e)}function pI(){var t,e,r,n,i,o=cI;return aI||(aI=1,t=uI,uI.exports,e=h[(i=o)(506)],r=function(t){var e=i;return function(e){var r=hI,n=t,i=n[r(480)],o=i[r(483)],s=i[r(492)],a=n[r(503)],u=[];!function(){for(var t=r,n=0;n<64;n++)u[n]=4294967296*e[t(510)](e[t(504)](n+1))|0}();var c=a[r(508)]=s[r(481)]({_doReset:function(){var t=r;this._hash=new(o[t(489)])([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=r,i=0;i<16;i++){var o=e+i,s=t[o];t[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var a=this[n(499)][n(478)],c=t[e+0],v=t[e+1],d=t[e+2],y=t[e+3],I=t[e+4],m=t[e+5],g=t[e+6],b=t[e+7],w=t[e+8],_=t[e+9],E=t[e+10],S=t[e+11],O=t[e+12],A=t[e+13],T=t[e+14],N=t[e+15],k=a[0],x=a[1],R=a[2],P=a[3];k=f(k,x,R,P,c,7,u[0]),P=f(P,k,x,R,v,12,u[1]),R=f(R,P,k,x,d,17,u[2]),x=f(x,R,P,k,y,22,u[3]),k=f(k,x,R,P,I,7,u[4]),P=f(P,k,x,R,m,12,u[5]),R=f(R,P,k,x,g,17,u[6]),x=f(x,R,P,k,b,22,u[7]),k=f(k,x,R,P,w,7,u[8]),P=f(P,k,x,R,_,12,u[9]),R=f(R,P,k,x,E,17,u[10]),x=f(x,R,P,k,S,22,u[11]),k=f(k,x,R,P,O,7,u[12]),P=f(P,k,x,R,A,12,u[13]),R=f(R,P,k,x,T,17,u[14]),k=h(k,x=f(x,R,P,k,N,22,u[15]),R,P,v,5,u[16]),P=h(P,k,x,R,g,9,u[17]),R=h(R,P,k,x,S,14,u[18]),x=h(x,R,P,k,c,20,u[19]),k=h(k,x,R,P,m,5,u[20]),P=h(P,k,x,R,E,9,u[21]),R=h(R,P,k,x,N,14,u[22]),x=h(x,R,P,k,I,20,u[23]),k=h(k,x,R,P,_,5,u[24]),P=h(P,k,x,R,T,9,u[25]),R=h(R,P,k,x,y,14,u[26]),x=h(x,R,P,k,w,20,u[27]),k=h(k,x,R,P,A,5,u[28]),P=h(P,k,x,R,d,9,u[29]),R=h(R,P,k,x,b,14,u[30]),k=p(k,x=h(x,R,P,k,O,20,u[31]),R,P,m,4,u[32]),P=p(P,k,x,R,w,11,u[33]),R=p(R,P,k,x,S,16,u[34]),x=p(x,R,P,k,T,23,u[35]),k=p(k,x,R,P,v,4,u[36]),P=p(P,k,x,R,I,11,u[37]),R=p(R,P,k,x,b,16,u[38]),x=p(x,R,P,k,E,23,u[39]),k=p(k,x,R,P,A,4,u[40]),P=p(P,k,x,R,c,11,u[41]),R=p(R,P,k,x,y,16,u[42]),x=p(x,R,P,k,g,23,u[43]),k=p(k,x,R,P,_,4,u[44]),P=p(P,k,x,R,O,11,u[45]),R=p(R,P,k,x,N,16,u[46]),k=l(k,x=p(x,R,P,k,d,23,u[47]),R,P,c,6,u[48]),P=l(P,k,x,R,b,10,u[49]),R=l(R,P,k,x,T,15,u[50]),x=l(x,R,P,k,m,21,u[51]),k=l(k,x,R,P,O,6,u[52]),P=l(P,k,x,R,y,10,u[53]),R=l(R,P,k,x,E,15,u[54]),x=l(x,R,P,k,v,21,u[55]),k=l(k,x,R,P,w,6,u[56]),P=l(P,k,x,R,N,10,u[57]),R=l(R,P,k,x,g,15,u[58]),x=l(x,R,P,k,A,21,u[59]),k=l(k,x,R,P,I,6,u[60]),P=l(P,k,x,R,S,10,u[61]),R=l(R,P,k,x,d,15,u[62]),x=l(x,R,P,k,_,21,u[63]),a[0]=a[0]+k|0,a[1]=a[1]+x|0,a[2]=a[2]+R|0,a[3]=a[3]+P|0},_doFinalize:function(){var t=r,n=this._data,i=n[t(478)],o=8*this._nDataBytes,s=8*n[t(485)];i[s>>>5]|=128<<24-s%32;var a=e.floor(o/4294967296),u=o;i[15+(s+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i[14+(s+64>>>9<<4)]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),n[t(485)]=4*(i[t(501)]+1),this[t(477)]();for(var c=this[t(499)],f=c.words,h=0;h<4;h++){var p=f[h];f[h]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}return c},clone:function(){var t=r,e=s[t(490)][t(482)](this);return e[t(499)]=this[t(499)][t(490)](),e}});function f(t,e,r,n,i,o,s){var a=t+(e&r|~e&n)+i+s;return(a<<o|a>>>32-o)+e}function h(t,e,r,n,i,o,s){var a=t+(e&n|r&~n)+i+s;return(a<<o|a>>>32-o)+e}function p(t,e,r,n,i,o,s){var a=t+(e^r^n)+i+s;return(a<<o|a>>>32-o)+e}function l(t,e,r,n,i,o,s){var a=t+(r^(e|~n))+i+s;return(a<<o|a>>>32-o)+e}n[r(508)]=s[r(500)](c),n[r(507)]=s._createHmacHelper(c)}(Math),t[e(508)]},(n=hI)(505)==n(505)?t[n(486)]=r(xy()):"undefined"===n(488)&&(void 0)[n(494)]?(void 0)(["./core"],r):r(e[n(493)])),uI[o(486)]}!function(t,e){for(var r=hI,n=fI();;)try{if(560699===-parseInt(r(491))/1*(parseInt(r(511))/2)+parseInt(r(479))/3*(-parseInt(r(496))/4)+parseInt(r(502))/5*(-parseInt(r(495))/6)+-parseInt(r(509))/7+-parseInt(r(487))/8+-parseInt(r(497))/9*(-parseInt(r(498))/10)+parseInt(r(484))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),uI[cI(486)];var lI,vI={exports:{}},dI=yI;function yI(t,e){var r=II();return(yI=function(t,e){return r[t-=330]})(t,e)}function II(){var t=["1hgpvLR","algo","exports","WordArray","_hash","Hasher","clone","amd","lib","_process","_nDataBytes","SHA1","12iAuKgY","length","init","./core","function","2504068tEseZm","104104jdkBXa","76417fCJNNh","extend","468NGgQgf","956720jHITDd","259214xuXDua","object","3110OhFJRj","sigBytes","words","floor","940088zjmwDB","_createHelper","2030709JZqCHh"];return(II=function(){return t})()}function mI(){var t,e,r,n,i=dI;return lI?vI[i(336)]:(lI=1,t=vI,vI[i(336)],e=u,r=function(t){var e,r,n,i,o,s,a,u,c=yI;return n=(r=t)[(e=yI)(342)],i=n[e(337)],o=n[e(339)],s=r[e(335)],a=[],u=s.SHA1=o[e(354)]({_doReset:function(){var t=e;this[t(338)]=new(i[t(348)])([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,r){for(var n=e,i=this._hash[n(361)],o=i[0],s=i[1],u=i[2],c=i[3],f=i[4],h=0;h<80;h++){if(h<16)a[h]=0|t[r+h];else{var p=a[h-3]^a[h-8]^a[h-14]^a[h-16];a[h]=p<<1|p>>>31}var l=(o<<5|o>>>27)+f+a[h];l+=h<20?1518500249+(s&u|~s&c):h<40?1859775393+(s^u^c):h<60?(s&u|s&c|u&c)-1894007588:(s^u^c)-899497514,f=c,c=u,u=s<<30|s>>>2,s=o,o=l}i[0]=i[0]+o|0,i[1]=i[1]+s|0,i[2]=i[2]+u|0,i[3]=i[3]+c|0,i[4]=i[4]+f|0},_doFinalize:function(){var t=e,r=this._data,n=r[t(361)],i=8*this[t(344)],o=8*r[t(360)];return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=Math[t(330)](i/4294967296),n[15+(o+64>>>9<<4)]=i,r[t(360)]=4*n[t(347)],this[t(343)](),this._hash},clone:function(){var t=e,r=o[t(340)].call(this);return r[t(338)]=this[t(338)][t(340)](),r}}),r[e(345)]=o[e(332)](u),r.HmacSHA1=o._createHmacHelper(u),t[c(345)]},(n=yI)(358)==n(358)?t[n(336)]=r(xy()):"undefined"===n(350)&&(void 0)[n(341)]?(void 0)([n(349)],r):r(e.CryptoJS),vI.exports)}!function(t,e){for(var r=yI,n=II();;)try{if(467273===parseInt(r(334))/1*(-parseInt(r(357))/2)+-parseInt(r(333))/3+-parseInt(r(331))/4+-parseInt(r(356))/5*(-parseInt(r(346))/6)+-parseInt(r(351))/7+-parseInt(r(352))/8*(parseInt(r(355))/9)+-parseInt(r(359))/10*(-parseInt(r(353))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),vI[dI(336)];var gI,bI={exports:{}},wI=_I;function _I(t,e){var r=EI();return(_I=function(t,e){return r[t-=168]})(t,e)}function EI(){var t=["sigBytes","_data","2206764YfjhPq","301374aojpJA","11196NIyOOH","9081832uluLpb","8cuHzga","init","_createHmacHelper","words","Hasher","pow","5183265YVBjGq","591238tttfft","function","WordArray","length","_nDataBytes","10923Fsjwkq","7pzRezD","SHA256","_hash","commonjsGlobal","floor","420gAQheG","slice","6CVsppb","amd","CryptoJS","exports","342129IqqGBu","algo","_createHelper","clone"];return(EI=function(){return t})()}function SI(){var t,e,r,n,i=wI;return gI?bI[i(197)]:(gI=1,t=bI,bI[i(197)],h[(n=i)(190)],t.exports=(e=xy(),r=n,function(t){var r=_I,n=e,i=n.lib,o=i[r(183)],s=i[r(178)],a=n[r(199)],u=[],c=[];!function(){var e=r;function n(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function i(t){return 4294967296*(t-(0|t))|0}for(var o=2,s=0;s<64;)n(o)&&(s<8&&(u[s]=i(t[e(179)](o,.5))),c[s]=i(t.pow(o,1/3)),s++),o++}();var f=[],h=a.SHA256=s.extend({_doReset:function(){var t=r;this[t(189)]=new(o[t(175)])(u[t(193)](0))},_doProcessBlock:function(t,e){for(var n=r,i=this[n(189)][n(177)],o=i[0],s=i[1],a=i[2],u=i[3],h=i[4],p=i[5],l=i[6],v=i[7],d=0;d<64;d++){if(d<16)f[d]=0|t[e+d];else{var y=f[d-15],I=(y<<25|y>>>7)^(y<<14|y>>>18)^y>>>3,m=f[d-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;f[d]=I+f[d-7]+g+f[d-16]}var b=o&s^o&a^s&a,w=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),_=v+((h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25))+(h&p^~h&l)+c[d]+f[d];v=l,l=p,p=h,h=u+_|0,u=a,a=s,s=o,o=_+(w+b)|0}i[0]=i[0]+o|0,i[1]=i[1]+s|0,i[2]=i[2]+a|0,i[3]=i[3]+u|0,i[4]=i[4]+h|0,i[5]=i[5]+p|0,i[6]=i[6]+l|0,i[7]=i[7]+v|0},_doFinalize:function(){var e=r,n=this[e(169)],i=n[e(177)],o=8*this[e(185)],s=8*n[e(168)];return i[s>>>5]|=128<<24-s%32,i[14+(s+64>>>9<<4)]=t[e(191)](o/4294967296),i[15+(s+64>>>9<<4)]=o,n[e(168)]=4*i[e(184)],this._process(),this[e(189)]},clone:function(){var t=r,e=s[t(201)].call(this);return e._hash=this[t(189)][t(201)](),e}});n[r(188)]=s[r(200)](h),n.HmacSHA256=s[r(176)](h)}(Math),e[r(188)]),bI.exports)}!function(t,e){for(var r=_I,n=EI();;)try{if(901229===-parseInt(r(181))/1+parseInt(r(170))/2+parseInt(r(198))/3*(parseInt(r(174))/4)+parseInt(r(180))/5*(-parseInt(r(194))/6)+-parseInt(r(187))/7*(parseInt(r(173))/8)+-parseInt(r(171))/9*(-parseInt(r(192))/10)+parseInt(r(186))/11*(parseInt(r(172))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),bI[wI(197)];var OI,AI={exports:{}},TI=kI;function NI(){var t,e,r,n,i,o,s,a,u,c,f=TI;return OI?AI[f(265)]:(OI=1,t=AI,f(265),h[(c=f)(261)],t[kI(265)]=(e=xy(),SI(),r=c,o=(i=e)[(n=kI)(268)][n(283)],s=i[n(270)],a=s[n(262)],u=s.SHA224=a.extend({_doReset:function(){this[n(278)]=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=a[n(274)].call(this);return t.sigBytes-=4,t}}),i[n(279)]=a._createHelper(u),i[n(271)]=a[n(272)](u),e[r(279)]),AI.exports)}function kI(t,e){var r=xI();return(kI=function(t,e){return r[t-=261]})(t,e)}function xI(){var t=["84ruNcsK","_hash","SHA224","./core","646865QRPqwl","9HgBWPC","WordArray","amd","2296450USLTXJ","commonjsGlobal","SHA256","1073980zBSfAK","5612425rGPqDH","exports","6CYkPii","5356483YUTuge","lib","6gRWGPQ","algo","HmacSHA224","_createHmacHelper","5165jPIAdN","_doFinalize","4747088RkxxJP","./sha256"];return(xI=function(){return t})()}!function(t,e){for(var r=kI,n=xI();;)try{if(417596===-parseInt(r(273))/1*(-parseInt(r(277))/2)+-parseInt(r(266))/3*(-parseInt(r(263))/4)+-parseInt(r(281))/5*(-parseInt(r(269))/6)+-parseInt(r(264))/7+parseInt(r(275))/8+parseInt(r(282))/9*(parseInt(r(285))/10)+-parseInt(r(267))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),TI(265);var RI,PI={exports:{}},CI=jI;function jI(t,e){var r=DI();return(jI=function(t,e){return r[t-=421]})(t,e)}function DI(){var t=["2090816hplNvD","algo","low","high","./core","lib","24RXcKzx","6iisPdZ","4720Zdhnai","_hash","_data","_nDataBytes","SHA512","Hasher","sigBytes","CryptoJS","./x64-core","7621lScrSl","4374147glYvrk","init","amd","x64","floor","apply","function","Word","28962WNdXfE","_process","toX32","call","10955835SiBPiy","extend","_createHelper","exports","1797278wubAOR","words","1867095cFImqK","length","6umOHLr"];return(DI=function(){return t})()}function LI(){var t,e,r;return RI||(RI=1,t=PI,PI[CI(449)],t[jI(449)]=(e=xy(),Uy(),r=jI,function(){var t=jI,r=e,n=r[t(421)][t(429)],i=r[t(437)],o=i[t(441)],s=i.WordArray,a=r[t(456)];function u(){var e=t;return o.create[e(439)](o,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];!function(){for(var t=0;t<80;t++)f[t]=u()}();var h=a.SHA512=n[t(447)]({_doReset:function(){var e=t;this[e(425)]=new(s[e(435)])([new(o[e(435)])(1779033703,4089235720),new(o[e(435)])(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new(o[e(435)])(1359893119,2917565137),new(o[e(435)])(2600822924,725511199),new(o[e(435)])(528734635,4215389547),new(o[e(435)])(1541459225,327033209)])},_doProcessBlock:function(e,r){for(var n=t,i=this[n(425)][n(451)],o=i[0],s=i[1],a=i[2],u=i[3],h=i[4],p=i[5],l=i[6],v=i[7],d=o[n(458)],y=o[n(457)],I=s[n(458)],m=s[n(457)],g=a[n(458)],b=a[n(457)],w=u[n(458)],_=u[n(457)],E=h[n(458)],S=h.low,O=p[n(458)],A=p[n(457)],T=l[n(458)],N=l[n(457)],k=v[n(458)],x=v[n(457)],R=d,P=y,C=I,j=m,D=g,L=b,U=w,M=_,B=E,q=S,F=O,H=A,W=T,G=N,K=k,V=x,z=0;z<80;z++){var J,Y,X=f[z];if(z<16)Y=X[n(458)]=0|e[r+2*z],J=X.low=0|e[r+2*z+1];else{var $=f[z-15],Q=$.high,Z=$[n(457)],tt=(Q>>>1|Z<<31)^(Q>>>8|Z<<24)^Q>>>7,et=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^(Z>>>7|Q<<25),rt=f[z-2],nt=rt.high,it=rt[n(457)],ot=(nt>>>19|it<<13)^(nt<<3|it>>>29)^nt>>>6,st=(it>>>19|nt<<13)^(it<<3|nt>>>29)^(it>>>6|nt<<26),at=f[z-7],ut=at.high,ct=at[n(457)],ft=f[z-16],ht=ft[n(458)],pt=ft.low;Y=(Y=(Y=tt+ut+((J=et+ct)>>>0<et>>>0?1:0))+ot+((J+=st)>>>0<st>>>0?1:0))+ht+((J+=pt)>>>0<pt>>>0?1:0),X[n(458)]=Y,X.low=J}var lt,vt=B&F^~B&W,dt=q&H^~q&G,yt=R&C^R&D^C&D,It=P&j^P&L^j&L,mt=(R>>>28|P<<4)^(R<<30|P>>>2)^(R<<25|P>>>7),gt=(P>>>28|R<<4)^(P<<30|R>>>2)^(P<<25|R>>>7),bt=(B>>>14|q<<18)^(B>>>18|q<<14)^(B<<23|q>>>9),wt=(q>>>14|B<<18)^(q>>>18|B<<14)^(q<<23|B>>>9),_t=c[z],Et=_t[n(458)],St=_t[n(457)],Ot=K+bt+((lt=V+wt)>>>0<V>>>0?1:0),At=gt+It;K=W,V=G,W=F,G=H,F=B,H=q,B=U+(Ot=(Ot=(Ot=Ot+vt+((lt+=dt)>>>0<dt>>>0?1:0))+Et+((lt+=St)>>>0<St>>>0?1:0))+Y+((lt+=J)>>>0<J>>>0?1:0))+((q=M+lt|0)>>>0<M>>>0?1:0)|0,U=D,M=L,D=C,L=j,C=R,j=P,R=Ot+(mt+yt+(At>>>0<gt>>>0?1:0))+((P=lt+At|0)>>>0<lt>>>0?1:0)|0}y=o[n(457)]=y+P,o[n(458)]=d+R+(y>>>0<P>>>0?1:0),m=s[n(457)]=m+j,s.high=I+C+(m>>>0<j>>>0?1:0),b=a[n(457)]=b+L,a[n(458)]=g+D+(b>>>0<L>>>0?1:0),_=u[n(457)]=_+M,u[n(458)]=w+U+(_>>>0<M>>>0?1:0),S=h.low=S+q,h[n(458)]=E+B+(S>>>0<q>>>0?1:0),A=p[n(457)]=A+H,p[n(458)]=O+F+(A>>>0<H>>>0?1:0),N=l[n(457)]=N+G,l[n(458)]=T+W+(N>>>0<G>>>0?1:0),x=v[n(457)]=x+V,v[n(458)]=k+K+(x>>>0<V>>>0?1:0)},_doFinalize:function(){var e=t,r=this[e(426)],n=r[e(451)],i=8*this[e(427)],o=8*r[e(430)];return n[o>>>5]|=128<<24-o%32,n[30+(o+128>>>10<<5)]=Math[e(438)](i/4294967296),n[31+(o+128>>>10<<5)]=i,r.sigBytes=4*n[e(453)],this[e(443)](),this[e(425)][e(444)]()},clone:function(){var e=t,r=n.clone[e(445)](this);return r._hash=this[e(425)].clone(),r},blockSize:32});r.SHA512=n[t(448)](h),r.HmacSHA512=n._createHmacHelper(h)}(),e[r(428)])),PI.exports}!function(t,e){for(var r=jI,n=DI();;)try{if(832140===parseInt(r(433))/1*(parseInt(r(454))/2)+parseInt(r(434))/3+-parseInt(r(455))/4+-parseInt(r(452))/5*(parseInt(r(423))/6)+-parseInt(r(450))/7*(-parseInt(r(422))/8)+-parseInt(r(442))/9*(parseInt(r(424))/10)+parseInt(r(446))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),PI[CI(449)];var UI,MI={exports:{}},BI=qI;function qI(t,e){var r=FI();return(qI=function(t,e){return r[t-=449]})(t,e)}function FI(){var t=["SHA512","function","Word","SHA384","HmacSHA384","call","_createHelper","766014qjyUqs","11052450CeAMqq","12602LSoOri","exports","7ttoZVV","2252865zxjUCO","5123584AaUPNS","init","algo","object","5547815GvqeOb","_hash","10BFCHJr","commonjsGlobal","2315464ZWPWnO","extend","WordArray","CryptoJS","./sha512","137fYoarl"];return(FI=function(){return t})()}!function(t,e){for(var r=qI,n=FI();;)try{if(782671===parseInt(r(474))/1*(-parseInt(r(457))/2)+parseInt(r(460))/3+-parseInt(r(461))/4+parseInt(r(465))/5+parseInt(r(455))/6*(parseInt(r(459))/7)+-parseInt(r(469))/8+parseInt(r(456))/9*(parseInt(r(467))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),BI(458);var HI,WI={exports:{}},GI=KI;function KI(t,e){var r=VI();return(KI=function(t,e){return r[t-=424]})(t,e)}function VI(){var t=["x64","SHA3","35252NAHrRY","3920110aSvFsh","_nDataBytes","./x64-core","amd","./core","length","_state","CryptoJS","1542nnAoYH","high","slice","exports","9zwnhRb","_data","_createHelper","push","HmacSHA3","WordArray","Hasher","8371fzCnvD","blockSize","clone","Word","outputLength","low","298827gYeSwb","algo","1030452JsDkOI","8aBPoAJ","ceil","222228MTLeaK","call","extend","init","words","cfg","create","object","4830YYcUoo","4651083FOIXkr","sigBytes"];return(VI=function(){return t})()}!function(t,e){for(var r=KI,n=VI();;)try{if(917412===parseInt(r(427))/1*(-parseInt(r(445))/2)+parseInt(r(454))/3+parseInt(r(442))/4+-parseInt(r(459))/5+parseInt(r(467))/6*(parseInt(r(458))/7)+parseInt(r(443))/8*(-parseInt(r(440))/9)+-parseInt(r(453))/10*(parseInt(r(434))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),GI(426);var zI={exports:{}};function JI(){var t=["7688688TEQlUu","_createHelper","7529016mtLPdx","object","5682890bVFday","clone","4463800EmevYD","_process","WordArray","extend","commonjsGlobal","words","CryptoJS","_createHmacHelper","1619wTjiZy","create","_hash","lib","exports","call","RIPEMD160","sigBytes","_data","function","1054SXsXcg","1316685vHShJI","593660GwyDpU","length"];return(JI=function(){return t})()}var YI,XI=$I;function $I(t,e){var r=JI();return($I=function(t,e){return r[t-=233]})(t,e)}!function(t,e){for(var r=$I,n=JI();;)try{if(721542===parseInt(r(249))/1*(parseInt(r(259))/2)+parseInt(r(260))/3+-parseInt(r(233))/4+-parseInt(r(239))/5+parseInt(r(237))/6+-parseInt(r(235))/7+parseInt(r(241))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),XI(253);var QI={exports:{}};function ZI(t,e){var r=rm();return(ZI=function(t,e){return r[t-=296]})(t,e)}var tm,em=ZI;function rm(){var t=["./core","concat","clamp","_iKey","2290071ekqTrb","reset","sigBytes","blockSize","init","179166QQMkPu","520UQZGNy","195629iEkSJa","algo","words","_oKey","2916072qptIEN","2328688BlEwqx","extend","finalize","CryptoJS","exports","enc","Base","_hasher","39350FckBWQ","commonjsGlobal","387168oLfMDb","HMAC","parse","update","clone","amd"];return(rm=function(){return t})()}function nm(){var t,e,r,n,i,o,s=em;return tm?QI.exports:(tm=1,t=QI,QI.exports,h[ZI(311)],t[ZI(306)]=(e=xy(),r=ZI,i=(n=e).lib[r(308)],o=n[r(307)].Utf8,void(n[r(298)][r(313)]=i[r(303)]({init:function(t,e){var n=r;t=this._hasher=new(t[n(326)]),"string"==typeof e&&(e=o[n(314)](e));var i=t[n(325)],s=4*i;e.sigBytes>s&&(e=t[n(304)](e)),e[n(320)]();for(var a=this[n(300)]=e[n(316)](),u=this[n(321)]=e[n(316)](),c=a[n(299)],f=u[n(299)],h=0;h<i;h++)c[h]^=1549556828,f[h]^=909522486;a[n(324)]=u[n(324)]=s,this[n(323)]()},reset:function(){var t=r,e=this[t(309)];e.reset(),e.update(this[t(321)])},update:function(t){var e=r;return this[e(309)][e(315)](t),this},finalize:function(t){var e=r,n=this[e(309)],i=n[e(304)](t);return n.reset(),n[e(304)](this[e(300)][e(316)]()[e(319)](i))}}))),QI[s(306)])}!function(t,e){for(var r=ZI,n=rm();;)try{if(472417===-parseInt(r(312))/1+-parseInt(r(327))/2+-parseInt(r(322))/3+-parseInt(r(302))/4+-parseInt(r(310))/5+parseInt(r(301))/6+-parseInt(r(297))/7*(-parseInt(r(296))/8))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),QI[em(306)];var im,om={exports:{}},sm=um;function am(){var t=["304428mbKhtB","1187990ifRLXT","reset","Base","163767eURhZu","amd","15800XIONHU","8015830VNuuCX","object","lib","length","3661064lHvtVq","cfg","iterations","80hwoiSa","words","create","./hmac","PBKDF2","finalize","1035sZBxrG","SHA256","function","extend","concat","hasher","253557nRbvju","exports","CryptoJS","update","keySize","sigBytes","187ecrFTo","algo","21lAmEzf","./sha256","WordArray"];return(am=function(){return t})()}function um(t,e){var r=am();return(um=function(t,e){return r[t-=435]})(t,e)}!function(t,e){for(var r=um,n=am();;)try{if(976523===-parseInt(r(458))/1+parseInt(r(443))/2+-parseInt(r(436))/3*(parseInt(r(446))/4)+-parseInt(r(439))/5+parseInt(r(469))/6*(-parseInt(r(466))/7)+-parseInt(r(438))/8*(-parseInt(r(452))/9)+parseInt(r(470))/10*(parseInt(r(464))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),sm(459);var cm,fm={exports:{}},hm=pm;function pm(t,e){var r=vm();return(pm=function(t,e){return r[t-=404]})(t,e)}function lm(){var t,e,r,n,i=hm;return cm?fm[i(413)]:(cm=1,t=fm,fm[i(413)],e=u,r=function(t){var e,r,n,i,o,s,a,u,c=pm;return e=pm,n=(r=t).lib,i=n[e(410)],o=n[e(430)],s=r[e(417)],a=s[e(409)],u=s[e(425)]=i[e(438)]({cfg:i[e(438)]({keySize:4,hasher:a,iterations:1}),init:function(t){var r=e;this.cfg=this[r(406)][r(438)](t)},compute:function(t,r){for(var n,i=e,s=this[i(406)],a=s[i(423)].create(),u=o.create(),c=u[i(414)],f=s[i(412)],h=s[i(407)];c[i(404)]<f;){n&&a.update(n),n=a[i(429)](t)[i(437)](r),a[i(436)]();for(var p=1;p<h;p++)n=a[i(437)](n),a[i(436)]();u[i(415)](n)}return u[i(431)]=4*f,u}}),r.EvpKDF=function(t,r,n){var i=e;return u[i(419)](n)[i(424)](t,r)},t[c(425)]},(n=pm)(420)==n(420)?t[n(413)]=r(xy(),mI(),nm()):r(e.CryptoJS),fm.exports)}function vm(){var t=["algo","270TTrycZ","create","object","652284qZmlNq","1750688sHqWkY","hasher","compute","EvpKDF","3ikHAYT","10woUqAr","6568NzTdBg","update","WordArray","sigBytes","467919ICOcBr","./hmac","./sha1","11cSuDPE","reset","finalize","extend","length","2935608DKgKHf","cfg","iterations","3157FejtNK","MD5","Base","117130PGRCkO","keySize","exports","words","concat","68885AKxfIb"];return(vm=function(){return t})()}!function(t,e){for(var r=pm,n=vm();;)try{if(317659===-parseInt(r(411))/1+parseInt(r(421))/2+parseInt(r(426))/3*(-parseInt(r(422))/4)+parseInt(r(416))/5*(parseInt(r(418))/6)+-parseInt(r(408))/7*(parseInt(r(428))/8)+parseInt(r(432))/9*(parseInt(r(427))/10)+parseInt(r(435))/11*(parseInt(r(405))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),fm[hm(413)];var dm,ym={exports:{}},Im=mm;function mm(t,e){var r=gm();return(mm=function(t,e){return r[t-=494]})(t,e)}function gm(){var t=["init","PasswordBasedCipher","blockSize","./core","lib","reset","salt","BlockCipherMode","encryptBlock","2231991JSFPGw","_cipher","processBlock","algo","toString","string","ciphertext","flush","SerializableCipher","decryptBlock","Base","Utf8","format","exports","147DPbuKr","formatter","words","__creator","push","_iv","Decryptor","finalize","_parse","_prevBlock","unpad","createEncryptor","random","mode","kdf","_mode","1382ExLAlV","10Cstoik","compute","_data","key","1762335snpcsd","createDecryptor","OpenSSL","_ENC_XFORM_MODE","object","WordArray","1866159NYkwJo","_DEC_XFORM_MODE","ivSize","_key","BlockCipher","./evpkdf","keySize","hasher","parse","CryptoJS","enc","concat","CipherParams","cfg","extend","execute","CBC","573404qWYzws","_doReset","slice","mixIn","pad","StreamCipher","splice","Encryptor","5098584nagSqD","_process","BufferedBlockAlgorithm","call","sigBytes","create","26808kWoiUs","_xformMode","amd","padding","encrypt","1506oiIZZS","_append","Cipher","decrypt"];return(gm=function(){return t})()}function bm(){var t,e,r,n,i=Im;return dm?ym.exports:(dm=1,t=ym,ym[i(525)],e=u,r=function(t){var e=mm;t[e(507)][e(501)]||function(r){var n=e,i=t,o=i[n(507)],s=o[n(522)],a=o[n(552)],u=o[n(580)],c=i[n(563)];c[n(523)];var f=c.Base64,h=i[n(515)].EvpKDF,p=o.Cipher=u[n(567)]({cfg:s[n(567)](),createEncryptor:function(t,e){var r=n;return this.create(this[r(550)],t,e)},createDecryptor:function(t,e){var r=n;return this[r(583)](this[r(554)],t,e)},init:function(t,e,r){var i=n;this[i(566)]=this.cfg.extend(r),this._xformMode=t,this[i(556)]=e,this.reset()},reset:function(){var t=n;u[t(508)][t(581)](this),this[t(571)]()},process:function(t){var e=n;return this[e(500)](t),this[e(579)]()},finalize:function(t){return t&&this[n(500)](t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return typeof t==mm(517)?w:g}return function(e){return{encrypt:function(r,n,i){var o=mm;return t(n)[o(498)](e,r,n,i)},decrypt:function(r,n,i){var o=mm;return t(n)[o(502)](e,r,n,i)}}}}()});o[n(575)]=p.extend({_doFinalize:function(){var t=n;return this[t(579)](!!t(519))},blockSize:1});var l=i[n(539)]={},v=o[n(510)]=s[n(567)]({createEncryptor:function(t,e){return this[n(577)].create(t,e)},createDecryptor:function(t,e){var r=n;return this[r(532)][r(583)](t,e)},init:function(t,e){var r=n;this[r(513)]=t,this[r(531)]=e}}),d=l[n(569)]=function(){var t=n,e=v[t(567)]();function r(e,r,n){var i,o=t,s=this[o(531)];s?(i=s,this[o(531)]=void 0):i=this._prevBlock;for(var a=0;a<n;a++)e[r+a]^=i[a]}return e[t(577)]=e[t(567)]({processBlock:function(e,n){var i=t,o=this[i(513)],s=o[i(505)];r.call(this,e,n,s),o[i(511)](e,n),this[i(535)]=e[i(572)](n,n+s)}}),e.Decryptor=e.extend({processBlock:function(e,n){var i=t,o=this[i(513)],s=o.blockSize,a=e[i(572)](n,n+s);o[i(521)](e,n),r[i(581)](this,e,n,s),this[i(535)]=a}}),e}(),y=(i[n(574)]={}).Pkcs7={pad:function(t,e){for(var r=n,i=4*e,o=i-t[r(582)]%i,s=o<<24|o<<16|o<<8|o,u=[],c=0;c<o;c+=4)u[r(530)](s);var f=a[r(583)](u,o);t.concat(f)},unpad:function(t){var e=n,r=255&t[e(528)][t[e(582)]-1>>>2];t[e(582)]-=r}};o[n(557)]=p[n(567)]({cfg:p[n(566)][n(567)]({mode:d,padding:y}),reset:function(){var t,e=n;p[e(508)].call(this);var r=this[e(566)],i=r.iv,o=r[e(539)];this[e(495)]==this[e(550)]?t=o[e(537)]:(t=o[e(548)],this._minBufferSize=1),this._mode&&this[e(541)][e(529)]==t?this._mode[e(503)](this,i&&i[e(528)]):(this[e(541)]=t[e(581)](o,this,i&&i.words),this[e(541)].__creator=t)},_doProcessBlock:function(t,e){var r=n;this[r(541)][r(514)](t,e)},_doFinalize:function(){var t,e=n,r=this.cfg[e(497)];return this[e(495)]==this[e(550)]?(r[e(574)](this[e(545)],this[e(505)]),t=this[e(579)](!0)):(t=this[e(579)](!!e(519)),r[e(536)](t)),t},blockSize:4});var I=o[n(565)]=s[n(567)]({init:function(t){this[n(573)](t)},toString:function(t){return(t||this[n(527)]).stringify(this)}}),m=(i[n(524)]={})[n(549)]={stringify:function(t){var e=n,r=t.ciphertext,i=t[e(509)];return(i?a[e(583)]([1398893684,1701076831])[e(564)](i)[e(564)](r):r)[e(516)](f)},parse:function(t){var e,r=n,i=f[r(561)](t),o=i.words;return 1398893684==o[0]&&1701076831==o[1]&&(e=a.create(o[r(572)](2,4)),o[r(576)](0,4),i.sigBytes-=16),I[r(583)]({ciphertext:i,salt:e})}},g=o[n(520)]=s[n(567)]({cfg:s.extend({format:m}),encrypt:function(t,e,r,i){var o=n;i=this[o(566)][o(567)](i);var s=t[o(537)](r,i),a=s[o(533)](e),u=s[o(566)];return I.create({ciphertext:a,key:r,iv:u.iv,algorithm:t,mode:u[o(539)],padding:u[o(497)],blockSize:t[o(505)],formatter:i[o(524)]})},decrypt:function(t,e,r,i){var o=n;return i=this.cfg.extend(i),e=this._parse(e,i[o(524)]),t.createDecryptor(r,i)[o(533)](e[o(518)])},_parse:function(t,e){var r=n;return typeof t==r(517)?e[r(561)](t,this):t}}),b=(i.kdf={})[n(549)]={execute:function(t,e,r,i,o){var s=n;if(!i&&(i=a[s(538)](8)),o)u=h[s(583)]({keySize:e+r,hasher:o}).compute(t,i);else var u=h[s(583)]({keySize:e+r})[s(544)](t,i);var c=a.create(u.words[s(572)](e),4*r);return u[s(582)]=4*e,I[s(583)]({key:u,iv:c,salt:i})}},w=o[n(504)]=g[n(567)]({cfg:g[n(566)].extend({kdf:b}),encrypt:function(t,e,r,i){var o=n,s=(i=this.cfg[o(567)](i)).kdf[o(568)](r,t.keySize,t[o(555)],i[o(509)],i[o(560)]);i.iv=s.iv;var a=g.encrypt[o(581)](this,t,e,s[o(546)],i);return a[o(573)](s),a},decrypt:function(t,e,r,i){var o=n;i=this[o(566)][o(567)](i),e=this[o(534)](e,i.format);var s=i[o(540)][o(568)](r,t[o(559)],t[o(555)],e.salt,i[o(560)]);return i.iv=s.iv,g.decrypt.call(this,t,e,s[o(546)],i)}})}()},"object"===(n=mm)(551)?t[n(525)]=r(xy(),lm()):r(e[n(562)]),ym[i(525)])}!function(t,e){for(var r=mm,n=gm();;)try{if(990383===parseInt(r(499))/1*(parseInt(r(542))/2)+parseInt(r(553))/3+parseInt(r(570))/4+parseInt(r(547))/5+-parseInt(r(578))/6+parseInt(r(526))/7*(-parseInt(r(494))/8)+-parseInt(r(512))/9*(parseInt(r(543))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),ym[Im(525)];var wm,_m={exports:{}},Em=Sm;function Sm(t,e){var r=Om();return(Sm=function(t,e){return r[t-=281]})(t,e)}function Om(){var t=["encryptBlock","230195tkHSrc","lib","_prevBlock","1559667OyEEyB","function","extend","2517978OyxNlL","exports","_iv","4130231NRjcih","_cipher","BlockCipherMode","mode","commonjsGlobal","call","./cipher-core","11826738VlLnLw","30004848LnGACB","object","8ijFjlK","8AOCOoq","11510mRpeeY","5OUJFVr","./core","4WKTUQO","4741sTGhcw","CFB","slice","Encryptor"];return(Om=function(){return t})()}!function(t,e){for(var r=Sm,n=Om();;)try{if(767962===parseInt(r(281))/1*(parseInt(r(301))/2)+parseInt(r(284))/3*(parseInt(r(305))/4)+-parseInt(r(303))/5*(-parseInt(r(287))/6)+parseInt(r(290))/7*(parseInt(r(300))/8)+parseInt(r(297))/9+-parseInt(r(302))/10*(parseInt(r(306))/11)+-parseInt(r(298))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Em(288);var Am,Tm={exports:{}},Nm=xm;function km(){var t=["1284CQJdJt","_counter","939715cSsLzQ","1480040ASdGoD","_iv","CTR","5480706qdnMwa","72ZWdeky","blockSize","exports","30zSiTgc","CryptoJS","extend","Decryptor","5688676VKUEaa","amd","1243290yXEouN","Encryptor","BlockCipherMode","encryptBlock","lib","./core","slice","120144VjDVaN","7406WRslyK","commonjsGlobal","mode","function"];return(km=function(){return t})()}function xm(t,e){var r=km();return(xm=function(t,e){return r[t-=107]})(t,e)}function Rm(){var t,e,r,n,i,o,s,a=Nm;return Am||(Am=1,t=Tm,h[(s=a)(128)],t[xm(112)]=(e=xy(),bm(),e[(r=s)(129)][r(108)]=(i=e[(n=r)(123)][n(121)][n(115)](),o=i[n(120)]=i[n(115)]({processBlock:function(t,e){var r=n,i=this._cipher,o=i[r(111)],s=this._iv,a=this[r(132)];s&&(a=this[r(132)]=s[r(125)](0),this[r(107)]=void 0);var u=a.slice(0);i[r(122)](u,0),a[o-1]=a[o-1]+1|0;for(var c=0;c<o;c++)t[e+c]^=u[c]}}),i[n(116)]=o,i),e[r(129)].CTR)),Tm[a(112)]}!function(t,e){for(var r=xm,n=km();;)try{if(955617===-parseInt(r(126))/1+parseInt(r(127))/2*(parseInt(r(131))/3)+-parseInt(r(117))/4+parseInt(r(133))/5*(parseInt(r(113))/6)+parseInt(r(109))/7+parseInt(r(134))/8+parseInt(r(110))/9*(-parseInt(r(119))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Nm(112);var Pm={exports:{}};function Cm(t,e){var r=Lm();return(Cm=function(t,e){return r[t-=156]})(t,e)}var jm,Dm=Cm;function Lm(){var t=["27KBugBx","Encryptor","./cipher-core","mode","_counter","14871530mtXBxU","1862815bQvhoG","_iv","Decryptor","commonjsGlobal","slice","6FwwErL","2112488ScvLzv","exports","9075871SMKJJb","extend","8518125WzuLcM","CTRGladman","object","327780ddXISm","blockSize","2246572zVpAFI","_cipher","1VTiRjF","encryptBlock","CryptoJS","function","lib","6DZBXtN"];return(Lm=function(){return t})()}function Um(){var t,e,r,n,i,o=Dm;return jm||(jm=1,t=Pm,e=h[(i=o)(175)],r=function(t){var e=i;return t[e(169)][e(183)]=function(){var r=e,n=t[r(164)].BlockCipherMode.extend();function i(t){if(255==(t>>24&255)){var e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}else t+=1<<24;return t}var o=n[r(167)]=n[r(181)]({processBlock:function(t,e){var n,o=r,s=this[o(159)],a=s[o(157)],u=this[o(173)],c=this[o(170)];u&&(c=this[o(170)]=u[o(176)](0),this[o(173)]=void 0),0===((n=c)[0]=i(n[0]))&&(n[1]=i(n[1]));var f=c[o(176)](0);s[o(161)](f,0);for(var h=0;h<a;h++)t[e+h]^=f[h]}});return n[r(174)]=o,n}(),t[e(169)][e(183)]},"object"===(n=Cm)(184)?t.exports=r(xy(),bm()):"undefined"===n(163)&&(void 0).amd?(void 0)(["./core",n(168)],r):r(e[n(162)])),Pm[o(179)]}!function(t,e){for(var r=Cm,n=Lm();;)try{if(842545===-parseInt(r(160))/1*(parseInt(r(156))/2)+parseInt(r(177))/3*(-parseInt(r(158))/4)+parseInt(r(172))/5+parseInt(r(165))/6*(-parseInt(r(180))/7)+parseInt(r(178))/8*(parseInt(r(166))/9)+parseInt(r(171))/10+parseInt(r(182))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Dm(179);var Mm,Bm={exports:{}},qm=Hm;function Fm(){var t=["53340uFwUvj","./cipher-core","_keystream","_iv","Encryptor","3967292FxTGfZ","3AARiYl","_cipher","blockSize","112669wQnSQo","./core","171306ITwUlf","mode","function","object","extend","9794880dJSOYY","lib","460300rsXArg","235wCSavX","amd","commonjsGlobal","5094432XRgcvX","CryptoJS","exports","OFB"];return(Fm=function(){return t})()}function Hm(t,e){var r=Fm();return(Hm=function(t,e){return r[t-=453]})(t,e)}!function(t,e){for(var r=Hm,n=Fm();;)try{if(629371===parseInt(r(457))/1+parseInt(r(466))/2*(-parseInt(r(454))/3)+-parseInt(r(474))/4*(-parseInt(r(467))/5)+parseInt(r(459))/6+-parseInt(r(453))/7+parseInt(r(464))/8+-parseInt(r(470))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),qm(472);var Wm,Gm={exports:{}},Km=Vm;function Vm(t,e){var r=zm();return(Vm=function(t,e){return r[t-=189]})(t,e)}function zm(){var t=["535mBLRRk","ECB","commonjsGlobal","277155CnSRbZ","object","370WInnTD","25669almKEt","77400qpiCSa","./core","CryptoJS","174AJxHMH","_cipher","exports","3075080KOGVSf","function","extend","10308fylOSE","mode","291819LGahef","decryptBlock","./cipher-core","552771OSXopC","9bSffcs"];return(zm=function(){return t})()}!function(t,e){for(var r=Vm,n=zm();;)try{if(207606===parseInt(r(191))/1+-parseInt(r(195))/2+parseInt(r(209))/3+parseInt(r(204))/4*(parseInt(r(211))/5)+-parseInt(r(198))/6*(-parseInt(r(194))/7)+-parseInt(r(201))/8*(-parseInt(r(210))/9)+parseInt(r(193))/10*(-parseInt(r(206))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Km(200);var Jm,Ym={exports:{}};function Xm(){var t=["7wIDmzq","Ansix923","words","399318phuaPK","10380zrAguP","130hVvZID","21273576mkNdTq","447RpUCxw","function","pad","5FgZcZI","object","./cipher-core","sigBytes","commonjsGlobal","exports","151790LSIpYE","5171715ZjveCZ","16SHJXzj","./core","661234wxnQJO","CryptoJS","695684ZQVUzL"];return(Xm=function(){return t})()}function $m(t,e){var r=Xm();return($m=function(t,e){return r[t-=453]})(t,e)}!function(t,e){for(var r=$m,n=Xm();;)try{if(846938===parseInt(r(475))/1*(-parseInt(r(468))/2)+-parseInt(r(459))/3*(parseInt(r(456))/4)+-parseInt(r(462))/5*(parseInt(r(455))/6)+parseInt(r(472))/7*(-parseInt(r(470))/8)+-parseInt(r(469))/9+-parseInt(r(457))/10*(-parseInt(r(474))/11)+parseInt(r(458))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Qm,Zm={exports:{}},tg=eg;function eg(t,e){var r=rg();return(eg=function(t,e){return r[t-=138]})(t,e)}function rg(){var t=["amd","235736SFksTo","object","exports","11718783hXQKjC","2947476IDnzLb","2748574lkwSQR","./cipher-core","11465663kjUGyy","concat","words","1fUOGlS","4PCfIso","commonjsGlobal","./core","pad","lib","5443510wCKRwd","2111724bpRzSF","CryptoJS","WordArray","7aulEnz","10vjFUkd","Iso10126","sigBytes","random"];return(rg=function(){return t})()}!function(t,e){for(var r=eg,n=rg();;)try{if(694922===-parseInt(r(138))/1*(parseInt(r(159))/2)+parseInt(r(158))/3*(-parseInt(r(139))/4)+parseInt(r(144))/5+-parseInt(r(145))/6*(parseInt(r(148))/7)+-parseInt(r(154))/8+parseInt(r(157))/9+-parseInt(r(149))/10*(-parseInt(r(161))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),tg(156);var ng={exports:{}};function ig(){var t=["function","amd","concat","commonjsGlobal","CryptoJS","105oeHovX","792ZMMTRh","3596964oeMEMp","object","8DsAxes","create","1607714vjkdxF","ZeroPadding","306168lDvvdx","2308070DDHHoU","1985695zbfVix","pad","./core","exports","sigBytes","unpad","11ZyTlDx","Iso97971","1zklPdn","1726542JtCaIY","47984ojfQep"];return(ig=function(){return t})()}var og,sg=ag;function ag(t,e){var r=ig();return(ag=function(t,e){return r[t-=186]})(t,e)}!function(t,e){for(var r=ag,n=ig();;)try{if(729663===parseInt(r(187))/1*(parseInt(r(201))/2)+-parseInt(r(188))/3+parseInt(r(199))/4*(parseInt(r(205))/5)+parseInt(r(203))/6*(parseInt(r(195))/7)+-parseInt(r(189))/8*(parseInt(r(196))/9)+-parseInt(r(204))/10+parseInt(r(211))/11*(-parseInt(r(197))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),sg(208);var ug,cg={exports:{}};function fg(t,e){var r=hg();return(fg=function(t,e){return r[t-=173]})(t,e)}function hg(){var t=["48684xsgzLd","pad","./core","CryptoJS","amd","4757583hcdFpn","exports","25QjdBeL","16gIJklC","clamp","11HhWtHF","7005393VzvVqq","sigBytes","ZeroPadding","object","34028290hyoPNi","389352RHIGpG","12TRBrUX","5881113zjtkVs","10650288CVbbGl"];return(hg=function(){return t})()}!function(t,e){for(var r=fg,n=hg();;)try{if(953101===parseInt(r(181))/1*(-parseInt(r(178))/2)+-parseInt(r(186))/3+parseInt(r(177))/4*(parseInt(r(188))/5)+-parseInt(r(180))/6+-parseInt(r(179))/7+-parseInt(r(189))/8*(-parseInt(r(192))/9)+parseInt(r(176))/10*(parseInt(r(191))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var pg,lg={exports:{}},vg=yg;function dg(){var t=["47576JNGbXL","12gNPqpY","863866SEkyRR","131807cjlVtE","exports","1528795leCcfI","commonjsGlobal","./cipher-core","./core","pad","2216991vyJVIE","3928878NelLXr","462000qdgqSO","NoPadding","object","function","amd","1143BfBpCL"];return(dg=function(){return t})()}function yg(t,e){var r=dg();return(yg=function(t,e){return r[t-=221]})(t,e)}!function(t,e){for(var r=yg,n=dg();;)try{if(924706===-parseInt(r(232))/1+-parseInt(r(231))/2+parseInt(r(223))/3+parseInt(r(230))/4*(parseInt(r(234))/5)+-parseInt(r(222))/6+parseInt(r(221))/7+parseInt(r(229))/8*(parseInt(r(228))/9))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),vg(233);var Ig,mg={exports:{}},gg=bg;function bg(t,e){var r=wg();return(bg=function(t,e){return r[t-=199]})(t,e)}function wg(){var t=["create","644zpZPJe","44cZeIGC","object","547677QZDJWl","25XhpHpm","exports","amd","5676BrHKCm","format","26055oxyjWH","373fSNDgM","commonjsGlobal","lib","178032dqZVnJ","./cipher-core","8tqjQaI","29497ZGeNUF","784oMYdPD","Hex","130890mUjnfG","ciphertext","./core","parse","1468992tzKNKh"];return(wg=function(){return t})()}!function(t,e){for(var r=bg,n=wg();;)try{if(190451===-parseInt(r(200))/1*(parseInt(r(215))/2)+parseInt(r(218))/3*(-parseInt(r(205))/4)+-parseInt(r(219))/5*(-parseInt(r(203))/6)+-parseInt(r(213))/7+-parseInt(r(207))/8*(parseInt(r(199))/9)+-parseInt(r(209))/10*(parseInt(r(216))/11)+-parseInt(r(222))/12*(-parseInt(r(206))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),gg(220);var _g={exports:{}};function Eg(t,e){var r=Ag();return(Eg=function(t,e){return r[t-=318]})(t,e)}var Sg,Og=Eg;function Ag(){var t=["174797oNZqzy","10009420heQaPG","_nRounds","CryptoJS","./md5","104yQHbka","4284552xaeaYJ","2380248EntZLI","_key","BlockCipher","27399zqBgbd","1545ZCrqaO","./enc-base64","words","extend","AES","lib","_doCryptBlock","commonjsGlobal","_invKeySchedule","435670hAuede","_keyPriorReset","function","_createHelper","sigBytes","_keySchedule","11RpMhJl","object","exports","6584BEadAs","algo","140FhMwJJ"];return(Ag=function(){return t})()}!function(t,e){for(var r=Eg,n=Ag();;)try{if(365253===-parseInt(r(346))/1+parseInt(r(325))/2*(parseInt(r(336))/3)+parseInt(r(323))/4*(parseInt(r(337))/5)+parseInt(r(332))/6+-parseInt(r(326))/7*(parseInt(r(331))/8)+parseInt(r(333))/9+-parseInt(r(327))/10*(parseInt(r(320))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Og(322);var Tg={exports:{}};function Ng(t,e){var r=Rg();return(Ng=function(t,e){return r[t-=188]})(t,e)}var kg,xg=Ng;function Rg(){var t=["_rBlock","object","algo","CryptoJS","_subKeys","./enc-base64","DES","16793CXzpll","./md5","_lBlock","3678mQJSyD","_des2","2108302aHGUQN","4283160biNwNx","WordArray","_des3","./evpkdf","TripleDES","function","10615832iMMssn","slice","create","./core","1490100KHbxtS","67urnKPE","_des1","26252330BOTRTS","call","_invSubKeys","_key","createEncryptor","lib","length","8SnCmEw","encryptBlock","exports","words","BlockCipher","9NiPbHy","_createHelper","extend","decryptBlock","amd","_doCryptBlock"];return(Rg=function(){return t})()}!function(t,e){for(var r=Ng,n=Rg();;)try{if(744983===-parseInt(r(212))/1+parseInt(r(200))/2+parseInt(r(211))/3*(-parseInt(r(221))/4)+parseInt(r(201))/5+-parseInt(r(198))/6*(parseInt(r(195))/7)+parseInt(r(207))/8*(-parseInt(r(226))/9)+parseInt(r(214))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),xg(223);var Pg,Cg={exports:{}},jg=Lg;function Dg(){var t=["./cipher-core","StreamCipher","object","_key","8414180tQhJgf","sigBytes","1847226sZYbEx","94884VarwIs","amd","3479740uOljMk","words","./enc-base64","5nqrVDk","RC4","exports","254952uhjASt","2963800vqwTKL","function","lib","1084602ltnBxH","commonjsGlobal","call","1AhRLVD","RC4Drop","cfg","drop","extend","algo","16xKYIjO","CryptoJS","./core","_doReset"];return(Dg=function(){return t})()}function Lg(t,e){var r=Dg();return(Lg=function(t,e){return r[t-=429]})(t,e)}!function(t,e){for(var r=Lg,n=Dg();;)try{if(450946===parseInt(r(453))/1*(parseInt(r(450))/2)+-parseInt(r(437))/3+parseInt(r(440))/4*(parseInt(r(443))/5)+parseInt(r(438))/6+parseInt(r(447))/7+parseInt(r(459))/8*(parseInt(r(446))/9)+-parseInt(r(435))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),jg(445);var Ug,Mg={exports:{}},Bg=qg;function qg(t,e){var r=Fg();return(qg=function(t,e){return r[t-=364]})(t,e)}function Fg(){var t=["5mzeuqA","cfg","words","63MdYisg","./evpkdf","1274590sfMGhW","_key","commonjsGlobal","255246zlJzul","415834BIFaiQ","2015526UoPjnJ","329gCTeIl","2015196pPNHzP","./cipher-core","1122000YKvYgp","44728fDgzxk","extend","amd","call","_createHelper","./core","exports","Rabbit","object","StreamCipher"];return(Fg=function(){return t})()}!function(t,e){for(var r=qg,n=Fg();;)try{if(299447===parseInt(r(382))/1+parseInt(r(383))/2+-parseInt(r(388))/3+parseInt(r(386))/4+parseInt(r(374))/5*(parseInt(r(384))/6)+parseInt(r(385))/7*(parseInt(r(364))/8)+-parseInt(r(377))/9*(parseInt(r(379))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),Bg(370);var Hg,Wg={exports:{}};function Gg(){var t=["exports","8UEKCKZ","466830DlBzFN","CryptoJS","14973318XnLhvA","words","./core","156XXueCW","16893500eelmKh","_key","8jQlefE","./md5","call","./cipher-core","1924371oSYvzc","_createHelper","cfg","lib","amd","commonjsGlobal","./enc-base64","RabbitLegacy","931191qoCpxa","object","36737734IqsYxI","2YsXfAE","4360835MSxFRu"];return(Gg=function(){return t})()}function Kg(t,e){var r=Gg();return(Kg=function(t,e){return r[t-=312]})(t,e)}!function(t,e){for(var r=Kg,n=Gg();;)try{if(979804===-parseInt(r(312))/1+-parseInt(r(323))/2*(parseInt(r(320))/3)+parseInt(r(326))/4*(-parseInt(r(324))/5)+parseInt(r(332))/6*(-parseInt(r(327))/7)+-parseInt(r(335))/8*(-parseInt(r(329))/9)+parseInt(r(333))/10+parseInt(r(322))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var Vg,zg,Jg,Yg,Xg,$g,Qg,Zg,tb,eb,rb,nb,ib,ob,sb,ab,ub,cb,fb,hb,pb,lb,vb,db,yb,Ib,mb,gb,bb,wb,_b,Eb,Sb,Ob,Ab,Tb,Nb,kb,xb,Rb,Pb,Cb,jb,Db,Lb,Ub,Mb,Bb,qb,Fb,Hb,Wb,Gb,Kb,Vb,zb,Jb,Yb,Xb,$b,Qb,Zb,tw,ew,rw,nw,iw,ow,sw,aw,uw,cw,fw,hw,pw,lw,vw,dw,yw,Iw,mw,gw,bw,ww,_w,Ew,Sw,Ow,Aw,Tw,Nw,kw,xw,Rw,Pw,Cw,jw,Dw,Lw,Uw,Mw,Bw,qw,Fw,Hw,Ww,Gw,Kw,Vw,zw,Jw,Yw,Xw,$w,Qw={exports:{}};function Zw(){const t=["5nDXMFl","4217406CLKLuU","6364028ZEdrmd","_key","sbox","object","./md5","./enc-base64","right","sigBytes","function","commonjsGlobal","left","_keyPriorReset","_createHelper","lib","algo","./cipher-core","pbox","extend","461438BQKBwj","432082KmutsZ","BlockCipher","1594719HIBzCy","Blowfish","exports","21225880SbPWdg","5992476sfaMlX"];return(Zw=function(){return t})()}function t_(){const t=e_;return Vg?Qw[t(381)]:(Vg=1,function(e,r){const n=t;!function(t,r,n){const i=e_;i(361)==i(361)?e.exports=r(xy(),tI(),pI(),lm(),bm()):"undefined"===i(366)&&(void 0).amd?(void 0)(["./core",i(363),i(362),"./evpkdf",i(373)],r):r(t.CryptoJS)}(h[n(367)],(function(t){const e=n;return function(){const e=e_;var r=t,n=r[e(371)][e(378)],i=r[e(372)];const o=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function c(t,r){const n=e;let i=r>>24&255,o=r>>16&255,s=r>>8&255,a=255&r,u=t.sbox[0][i]+t.sbox[1][o];return u^=t[n(360)][2][s],u+=t[n(360)][3][a],u}function f(t,r,n){const i=e;let s,a=r,u=n;for(let e=0;e<o;++e)a^=t[i(374)][e],u=c(t,a)^u,s=a,a=u,u=s;return s=a,a=u,u=s,u^=t[i(374)][o],a^=t.pbox[o+1],{left:a,right:u}}var h=i[e(380)]=n[e(375)]({_doReset:function(){const t=e;if(this[t(369)]!==this._key){var r=this[t(369)]=this[t(359)],n=r.words,i=r[t(365)]/4;!function(t,r,n){const i=e;for(let e=0;e<4;e++){t[i(360)][e]=[];for(let r=0;r<256;r++)t.sbox[e][r]=a[e][r]}let u=0;for(let e=0;e<o+2;e++)t[i(374)][e]=s[e]^r[u],u++,u>=n&&(u=0);let c=0,h=0,p=0;for(let e=0;e<o+2;e+=2)p=f(t,c,h),c=p[i(368)],h=p[i(364)],t[i(374)][e]=c,t[i(374)][e+1]=h;for(let e=0;e<4;e++)for(let r=0;r<256;r+=2)p=f(t,c,h),c=p.left,h=p[i(364)],t.sbox[e][r]=c,t.sbox[e][r+1]=h}(u,n,i)}},encryptBlock:function(t,e){var r=f(u,t[e],t[e+1]);t[e]=r.left,t[e+1]=r.right},decryptBlock:function(t,r){const n=e;var i=function(t,r,n){const i=e;let s,a=r,u=n;for(let e=o+1;e>1;--e)a^=t.pbox[e],u=c(t,a)^u,s=a,a=u,u=s;return s=a,a=u,u=s,u^=t[i(374)][1],a^=t[i(374)][0],{left:a,right:u}}(u,t[r],t[r+1]);t[r]=i[n(368)],t[r+1]=i[n(364)]},blockSize:2,keySize:4,ivSize:2});r.Blowfish=n[e(370)](h)}(),t[e(380)]}))}(Qw,t(381)),Qw.exports)}function e_(t,e){const r=Zw();return(e_=function(t,e){return r[t-=354]})(t,e)}function r_(){var t=["349984WOIvSk","CryptoJS","6000iqPiuA","6031088Tkuxhp","2453uVDHLW","./sha3","./rabbit","./pad-nopadding","./pad-ansix923","./mode-ctr","./mode-ofb","./sha224","./enc-base64url","1558532xCnntg","3ZCHuiw","./hmac","./rc4","4405XBfEQq","commonjsGlobal","./blowfish","103050iygPym","./aes","amd","./cipher-core","./pad-iso97971","368yFvMym","./mode-cfb","./evpkdf","./pad-iso10126","exports","./sha1","object","./mode-ctr-gladman","103941NiWNUL","./core","11717377uEMkfa","./ripemd160","./enc-utf16","./tripledes","./mode-ecb","./enc-base64","./lib-typedarrays"];return(r_=function(){return t})()}function n_(t,e){var r=r_();return(n_=function(t,e){return r[t-=182]})(t,e)}!function(t,e){const r=e_,n=Zw();for(;;)try{if(929219===parseInt(r(376))/1+-parseInt(r(377))/2+-parseInt(r(379))/3+-parseInt(r(358))/4+-parseInt(r(356))/5*(parseInt(r(357))/6)+parseInt(r(355))/7+parseInt(r(354))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),function(t,e){for(var r=n_,n=r_();;)try{if(985158===-parseInt(r(199))/1+-parseInt(r(212))/2+-parseInt(r(213))/3*(parseInt(r(202))/4)+parseInt(r(216))/5*(-parseInt(r(201))/6)+parseInt(r(192))/7+parseInt(r(182))/8*(parseInt(r(190))/9)+parseInt(r(219))/10*(parseInt(r(203))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),zg=Sy,Jg=h[n_(217)],Yg=function(t){return t},"object"===($w=n_)(188)?zg[$w(186)]=Yg(xy(),Uy(),Wy(),(Xw=Vy,Gy||(Gy=1,Vw=Ky,zw=h[zy(285)],Jw=function(t){return function(){var e=zy,r=t,n=r.lib.WordArray,i=r[e(279)];function o(t){return t<<8&4278255360|t>>>8&16711935}i[e(266)]=i[e(273)]={stringify:function(t){for(var r=e,n=t[r(270)],i=t[r(284)],o=[],s=0;s<i;s+=2){var a=n[s>>>2]>>>16-s%4*8&65535;o[r(267)](String[r(283)](a))}return o[r(282)]("")},parse:function(t){for(var r=e,i=t[r(278)],o=[],s=0;s<i;s++)o[s>>>1]|=t[r(287)](s)<<16-s%2*16;return n[r(289)](o,2*i)}},i[e(268)]={stringify:function(t){for(var r=e,n=t.words,i=t[r(284)],s=[],a=0;a<i;a+=2){var u=o(n[a>>>2]>>>16-a%4*8&65535);s.push(String[r(283)](u))}return s[r(282)]("")},parse:function(t){for(var r=e,i=t.length,s=[],a=0;a<i;a++)s[a>>>1]|=o(t[r(287)](a)<<16-a%2*16);return n[r(289)](s,2*i)}}}(),t.enc.Utf16},"object"===(Yw=zy)(291)?Vw[Yw(275)]=Jw(xy()):"undefined"===Yw(286)&&(void 0)[Yw(280)]?(void 0)([Yw(276)],Jw):Jw(zw[Yw(271)]),Xw(275))),tI(),sI(),pI(),mI(),SI(),NI(),LI(),(Kw=BI,UI||(UI=1,qw=MI,Kw(458),Fw=h[(Gw=Kw)(468)],Hw=function(t){var e,r,n,i,o,s,a,u,c=Gw;return e=qI,n=(r=t).x64,i=n[e(450)],o=n[e(471)],s=r[e(463)],a=s[e(475)],u=s.SHA384=a[e(470)]({_doReset:function(){var t=e;this[t(466)]=new o.init([new i.init(3418070365,3238371032),new(i[t(462)])(1654270250,914150663),new(i[t(462)])(2438529370,812702999),new i.init(355462360,4144912697),new(i[t(462)])(1731405415,4290775857),new i.init(2394180231,1750603025),new(i[t(462)])(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=e,r=a._doFinalize[t(453)](this);return r.sigBytes-=16,r}}),r.SHA384=a[e(454)](u),r[e(452)]=a._createHmacHelper(u),t[c(451)]},(Ww=qI)(464)==Ww(464)?qw.exports=Hw(xy(),Uy(),LI()):"undefined"===Ww(449)&&(void 0).amd?(void 0)(["./core","./x64-core",Ww(473)],Hw):Hw(Fw[Ww(472)])),Kw(458)),(Bw=GI,HI||(HI=1,Dw=WI,Lw=u,Uw=function(t){var e=KI;return function(e){var r=KI,n=t,i=n.lib,o=i[r(432)],s=i[r(433)],a=n[r(456)][r(437)],u=n[r(441)],c=[],f=[],h=[];!function(){for(var t=1,e=0,r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var n=(2*t+3*e)%5;t=e%5,e=n}for(t=0;t<5;t++)for(e=0;e<5;e++)f[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,u=0,p=0;p<7;p++){if(1&i){var l=(1<<p)-1;l<32?u^=1<<l:s^=1<<l-32}128&i?i=i<<1^113:i<<=1}h[o]=a.create(s,u)}}();var p=[];!function(){for(var t=r,e=0;e<25;e++)p[e]=a[t(451)]()}();var l=u[r(457)]=s[r(447)]({cfg:s.cfg[r(447)]({outputLength:512}),_doReset:function(){for(var t=r,e=this[t(465)]=[],n=0;n<25;n++)e[n]=new(a[t(448)]);this[t(435)]=(1600-2*this[t(450)][t(438)])/32},_doProcessBlock:function(t,e){for(var n=r,i=this[n(465)],o=this[n(435)]/2,s=0;s<o;s++){var a=t[e+2*s],u=t[e+2*s+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),(x=i[s])[n(424)]^=u,x[n(439)]^=a}for(var l=0;l<24;l++){for(var v=0;v<5;v++){for(var d=0,y=0,I=0;I<5;I++)d^=(x=i[v+5*I]).high,y^=x[n(439)];var m=p[v];m.high=d,m[n(439)]=y}for(v=0;v<5;v++){var g=p[(v+4)%5],b=p[(v+1)%5],w=b[n(424)],_=b[n(439)];for(d=g[n(424)]^(w<<1|_>>>31),y=g[n(439)]^(_<<1|w>>>31),I=0;I<5;I++)(x=i[v+5*I])[n(424)]^=d,x.low^=y}for(var E=1;E<25;E++){var S=(x=i[E])[n(424)],O=x.low,A=c[E];A<32?(d=S<<A|O>>>32-A,y=O<<A|S>>>32-A):(d=O<<A-32|S>>>64-A,y=S<<A-32|O>>>64-A);var T=p[f[E]];T[n(424)]=d,T[n(439)]=y}var N=p[0],k=i[0];for(N[n(424)]=k[n(424)],N.low=k.low,v=0;v<5;v++)for(I=0;I<5;I++){var x=i[E=v+5*I],R=p[E],P=p[(v+1)%5+5*I],C=p[(v+2)%5+5*I];x[n(424)]=R[n(424)]^~P[n(424)]&C.high,x[n(439)]=R[n(439)]^~P.low&C[n(439)]}x=i[0];var j=h[l];x.high^=j[n(424)],x[n(439)]^=j.low}},_doFinalize:function(){var t=r,n=this[t(428)],i=n[t(449)];this[t(460)];var s=8*n[t(455)],a=32*this[t(435)];i[s>>>5]|=1<<24-s%32,i[(e[t(444)]((s+1)/a)*a>>>5)-1]|=128,n[t(455)]=4*i[t(464)],this._process();for(var u=this[t(465)],c=this[t(450)][t(438)]/8,f=c/8,h=[],p=0;p<f;p++){var l=u[p],v=l[t(424)],d=l[t(439)];v=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h[t(430)](d),h[t(430)](v)}return new(o[t(448)])(h,c)},clone:function(){for(var t=r,e=s[t(436)][t(446)](this),n=e._state=this[t(465)][t(425)](0),i=0;i<25;i++)n[i]=n[i][t(436)]();return e}});n[r(457)]=s[r(429)](l),n[r(431)]=s._createHmacHelper(l)}(Math),t[e(457)]},(Mw=KI)(452)==Mw(452)?Dw[Mw(426)]=Uw(xy(),Uy()):Uw(Lw[Mw(466)])),Bw(426)),(jw=XI,YI?jw(253):(YI=1,kw=zI,jw(253),xw=h[(Cw=jw)(245)],Rw=function(t){var e=Cw;return function(e){var r=$I,n=t,i=n[r(252)],o=i[r(243)],s=i.Hasher,a=n.algo,u=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o[r(250)]([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=o[r(250)]([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=o[r(250)]([0,1518500249,1859775393,2400959708,2840853838]),l=o[r(250)]([1352829926,1548603684,1836072691,2053994217,0]),v=a.RIPEMD160=s[r(244)]({_doReset:function(){var t=r;this._hash=o[t(250)]([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=r,i=0;i<16;i++){var o=e+i,s=t[o];t[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var a,v,w,_,E,S,O,A,T,N,k,x=this[n(251)][n(246)],R=p.words,P=l[n(246)],C=u[n(246)],j=c[n(246)],D=f[n(246)],L=h[n(246)];for(S=a=x[0],O=v=x[1],A=w=x[2],T=_=x[3],N=E=x[4],i=0;i<80;i+=1)k=a+t[e+C[i]]|0,k+=i<16?d(v,w,_)+R[0]:i<32?y(v,w,_)+R[1]:i<48?I(v,w,_)+R[2]:i<64?m(v,w,_)+R[3]:g(v,w,_)+R[4],k=(k=b(k|=0,D[i]))+E|0,a=E,E=_,_=b(w,10),w=v,v=k,k=S+t[e+j[i]]|0,k+=i<16?g(O,A,T)+P[0]:i<32?m(O,A,T)+P[1]:i<48?I(O,A,T)+P[2]:i<64?y(O,A,T)+P[3]:d(O,A,T)+P[4],k=(k=b(k|=0,L[i]))+N|0,S=N,N=T,T=b(A,10),A=O,O=k;k=x[1]+w+T|0,x[1]=x[2]+_+N|0,x[2]=x[3]+E+S|0,x[3]=x[4]+a+O|0,x[4]=x[0]+v+A|0,x[0]=k},_doFinalize:function(){var t=r,e=this[t(257)],n=e[t(246)],i=8*this._nDataBytes,o=8*e[t(256)];n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e[t(256)]=4*(n[t(234)]+1),this[t(242)]();for(var s=this[t(251)],a=s.words,u=0;u<5;u++){var c=a[u];a[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=r,e=s[t(240)][t(254)](this);return e._hash=this[t(251)][t(240)](),e}});function d(t,e,r){return t^e^r}function y(t,e,r){return t&e|~t&r}function I(t,e,r){return(t|~e)^r}function m(t,e,r){return t&r|e&~r}function g(t,e,r){return t^(e|~r)}function b(t,e){return t<<e|t>>>32-e}n[r(255)]=s[r(236)](v),n.HmacRIPEMD160=s[r(248)](v)}(),t[e(255)]},(Pw=$I)(238)==Pw(238)?kw[Pw(253)]=Rw(xy()):"undefined"===Pw(258)&&(void 0).amd?(void 0)(["./core"],Rw):Rw(xw[Pw(247)]))),nm(),(Nw=sm,im||(im=1,Sw=om,Ow=u,Aw=function(t){var e,r,n,i,o,s,a,u,c,f=um;return i=(n=(r=t)[(e=um)(441)])[e(435)],o=n[e(468)],a=(s=r[e(465)])[e(453)],u=s.HMAC,c=s[e(450)]=i[e(455)]({cfg:i[e(455)]({keySize:4,hasher:a,iterations:25e4}),init:function(t){var r=e;this[r(444)]=this[r(444)][r(455)](t)},compute:function(t,r){for(var n=e,i=this[n(444)],s=u.create(i[n(457)],t),a=o[n(448)](),c=o.create([1]),f=a[n(447)],h=c[n(447)],p=i[n(462)],l=i[n(445)];f.length<p;){var v=s[n(461)](r).finalize(c);s[n(471)]();for(var d=v[n(447)],y=d[n(442)],I=v,m=1;m<l;m++){I=s[n(451)](I),s[n(471)]();for(var g=I[n(447)],b=0;b<y;b++)d[b]^=g[b]}a[n(456)](v),h[0]++}return a[n(463)]=4*p,a}}),r[e(450)]=function(t,e,r){return c.create(r).compute(t,e)},t[f(450)]},(Tw=um)(440)==Tw(440)?Sw[Tw(459)]=Aw(xy(),SI(),nm()):"undefined"===Tw(454)&&(void 0)[Tw(437)]?(void 0)(["./core",Tw(467),Tw(449)],Aw):Aw(Ow[Tw(460)])),Nw(459)),lm(),bm(),(Ew=Em,wm||(wm=1,mw=_m,Ew(288),gw=h[(_w=Ew)(294)],bw=function(t){var e=_w;return t.mode[e(307)]=function(){var r=e,n=t[r(282)][r(292)][r(286)]();function i(t,e,n,i){var o,s=r,a=this[s(289)];a?(o=a.slice(0),this[s(289)]=void 0):o=this[s(283)],i[s(310)](o,0);for(var u=0;u<n;u++)t[e+u]^=o[u]}return n[r(309)]=n.extend({processBlock:function(t,e){var n=r,o=this[n(291)],s=o.blockSize;i[n(295)](this,t,e,s,o),this._prevBlock=t[n(308)](e,e+s)}}),n.Decryptor=n[r(286)]({processBlock:function(t,e){var n=r,o=this[n(291)],s=o.blockSize,a=t[n(308)](e,e+s);i.call(this,t,e,s,o),this[n(283)]=a}}),n}(),t[e(293)][e(307)]},(ww=Sm)(299)==ww(299)?mw[ww(288)]=bw(xy(),bm()):"undefined"===ww(285)&&(void 0).amd?(void 0)([ww(304),ww(296)],bw):bw(gw.CryptoJS)),Ew(288)),Rm(),Um(),(Iw=qm,Mm||(Mm=1,pw=Bm,Iw(472),lw=h[(yw=Iw)(469)],vw=function(t){var e,r,n,i=yw;return t.mode[i(473)]=(n=(r=t[(e=i)(465)].BlockCipherMode[e(463)]())[e(478)]=r[e(463)]({processBlock:function(t,r){var n=e,i=this[n(455)],o=i[n(456)],s=this[n(477)],a=this[n(476)];s&&(a=this[n(476)]=s.slice(0),this[n(477)]=void 0),i.encryptBlock(a,0);for(var u=0;u<o;u++)t[r+u]^=a[u]}}),r.Decryptor=n,r),t[i(460)][i(473)]},(dw=Hm)(462)==dw(462)?pw[dw(472)]=vw(xy(),bm()):"undefined"===dw(461)&&(void 0)[dw(468)]?(void 0)([dw(458),dw(475)],vw):vw(lw[dw(471)])),Iw(472)),(hw=Km,Wm||(Wm=1,sw=Gm,aw=h[(fw=hw)(190)],uw=function(t){var e,r,n=fw;return t[n(205)][n(189)]=(e=n,(r=t.lib.BlockCipherMode[e(203)]()).Encryptor=r.extend({processBlock:function(t,r){this[e(199)].encryptBlock(t,r)}}),r.Decryptor=r.extend({processBlock:function(t,r){var n=e;this[n(199)][n(207)](t,r)}}),r),t[n(205)][n(189)]},(cw=Vm)(192)==cw(192)?sw[cw(200)]=uw(xy(),bm()):"undefined"===cw(202)&&(void 0).amd?(void 0)([cw(196),cw(208)],uw):uw(aw[cw(197)])),hw(200)),(ow=$m,Jm||(Jm=1,tw=Ym,ow(467),ew=h[(iw=$m)(466)],rw=function(t){var e=iw;return t[e(461)].AnsiX923={pad:function(t,r){var n=e,i=t[n(465)],o=4*r,s=o-i%o,a=i+s-1;t.clamp(),t.words[a>>>2]|=s<<24-a%4*8,t[n(465)]+=s},unpad:function(t){var r=e,n=255&t[r(454)][t.sigBytes-1>>>2];t[r(465)]-=n}},t[e(461)][e(453)]},(nw=$m)(463)==nw(463)?tw.exports=rw(xy(),bm()):"undefined"===nw(460)&&(void 0).amd?(void 0)([nw(471),nw(464)],rw):rw(ew[nw(473)]),ow(467))),(Zb=tg,Qm?Zb(156):(Qm=1,Jb=Zm,Zb(156),Yb=h[(Qb=Zb)(140)],Xb=function(t){var e=Qb;return t[e(142)][e(150)]={pad:function(r,n){var i=e,o=4*n,s=o-r.sigBytes%o;r[i(162)](t[i(143)][i(147)][i(152)](s-1))[i(162)](t.lib[i(147)].create([s<<24],1))},unpad:function(t){var r=e,n=255&t[r(163)][t[r(151)]-1>>>2];t.sigBytes-=n}},t[e(142)][e(150)]},($b=eg)(155)==$b(155)?Jb[$b(156)]=Xb(xy(),bm()):Xb(Yb[$b(146)]))),(zb=sg,og||(og=1,Hb=ng,zb(208),Wb=h[(Vb=zb)(193)],Gb=function(t){var e=Vb;return t[e(206)].Iso97971={pad:function(r,n){var i=e;r[i(192)](t.lib.WordArray[i(200)]([2147483648],1)),t[i(206)][i(202)].pad(r,n)},unpad:function(r){var n=e;t.pad[n(202)][n(210)](r),r[n(209)]--}},t[e(206)][e(186)]},(Kb=ag)(198)==Kb(198)?Hb.exports=Gb(xy(),bm()):"undefined"===Kb(190)&&(void 0)[Kb(191)]?(void 0)([Kb(207),"./cipher-core"],Gb):Gb(Wb[Kb(194)])),zb(208)),(Fb=fg,ug||(ug=1,Ub=cg,Fb(187),Mb=u,Bb=function(t){var e=fg;return t.pad[e(174)]={pad:function(t,r){var n=e,i=4*r;t[n(190)](),t[n(173)]+=i-(t.sigBytes%i||i)},unpad:function(t){var r=e,n=t.words,i=t[r(173)]-1;for(i=t[r(173)]-1;i>=0;i--)if(n[i>>>2]>>>24-i%4*8&255){t[r(173)]=i+1;break}}},t[e(182)][e(174)]},(qb=fg)(175)==qb(175)?Ub[qb(187)]=Bb(xy(),bm()):Bb(Mb[qb(184)])),Fb(187)),(Lb=vg,pg?Lb(233):(pg=1,Rb=lg,Pb=h[(Db=Lb)(235)],Cb=function(t){var e=Db;return t.pad[e(224)]={pad:function(){},unpad:function(){}},t[e(238)].NoPadding},(jb=yg)(225)==jb(225)?Rb[jb(233)]=Cb(xy(),bm()):"undefined"===jb(226)&&(void 0)[jb(227)]?(void 0)([jb(237),jb(236)],Cb):Cb(Pb.CryptoJS))),(xb=gg,Ig||(Ig=1,Ob=mg,Ab=h[(kb=xb)(201)],Tb=function(t){var e,r,n,i,o=kb;return n=(r=t)[(e=bg)(202)].CipherParams,i=r.enc[e(208)],r.format[e(208)]={stringify:function(t){return t[e(210)].toString(i)},parse:function(t){var r=e,o=i[r(212)](t);return n[r(214)]({ciphertext:o})}},t[o(223)][o(208)]},(Nb=bg)(217)==Nb(217)?Ob[Nb(220)]=Tb(xy(),bm()):Tb(Ab.CryptoJS)),xb(220)),(Sb=Og,Sg||(Sg=1,gb=_g,Sb(322),bb=h[(Eb=Eg)(344)],wb=function(t){var e=Eb;return function(){var e=Eg,r=t,n=r[e(342)][e(335)],i=r[e(324)],o=[],s=[],a=[],u=[],c=[],f=[],h=[],p=[],l=[],v=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var i=n^n<<1^n<<2^n<<3^n<<4;i=i>>>8^255&i^99,o[r]=i,s[i]=r;var d=t[r],y=t[d],I=t[y],m=257*t[i]^16843008*i;a[r]=m<<24|m>>>8,u[r]=m<<16|m>>>16,c[r]=m<<8|m>>>24,f[r]=m,m=16843009*I^65537*y^257*d^16843008*r,h[i]=m<<24|m>>>8,p[i]=m<<16|m>>>16,l[i]=m<<8|m>>>24,v[i]=m,r?(r=d^t[t[t[I^d]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=n[e(340)]({_doReset:function(){var t=e;if(!this[t(328)]||this[t(347)]!==this[t(334)]){for(var r=this[t(347)]=this[t(334)],n=r[t(339)],i=r[t(318)]/4,s=4*((this._nRounds=i+6)+1),a=this[t(319)]=[],u=0;u<s;u++)u<i?a[u]=n[u]:(y=a[u-1],u%i?i>6&&u%i==4&&(y=o[y>>>24]<<24|o[y>>>16&255]<<16|o[y>>>8&255]<<8|o[255&y]):(y=o[(y=y<<8|y>>>24)>>>24]<<24|o[y>>>16&255]<<16|o[y>>>8&255]<<8|o[255&y],y^=d[u/i|0]<<24),a[u]=a[u-i]^y);for(var c=this[t(345)]=[],f=0;f<s;f++){if(u=s-f,f%4)var y=a[u];else y=a[u-4];c[f]=f<4||u<=4?y:h[o[y>>>24]]^p[o[y>>>16&255]]^l[o[y>>>8&255]]^v[o[255&y]]}}},encryptBlock:function(t,r){var n=e;this[n(343)](t,r,this[n(319)],a,u,c,f,o)},decryptBlock:function(t,r){var n=e,i=t[r+1];t[r+1]=t[r+3],t[r+3]=i,this[n(343)](t,r,this[n(345)],h,p,l,v,s),i=t[r+1],t[r+1]=t[r+3],t[r+3]=i},_doCryptBlock:function(t,e,r,n,i,o,s,a){for(var u=this._nRounds,c=t[e]^r[0],f=t[e+1]^r[1],h=t[e+2]^r[2],p=t[e+3]^r[3],l=4,v=1;v<u;v++){var d=n[c>>>24]^i[f>>>16&255]^o[h>>>8&255]^s[255&p]^r[l++],y=n[f>>>24]^i[h>>>16&255]^o[p>>>8&255]^s[255&c]^r[l++],I=n[h>>>24]^i[p>>>16&255]^o[c>>>8&255]^s[255&f]^r[l++],m=n[p>>>24]^i[c>>>16&255]^o[f>>>8&255]^s[255&h]^r[l++];c=d,f=y,h=I,p=m}d=(a[c>>>24]<<24|a[f>>>16&255]<<16|a[h>>>8&255]<<8|a[255&p])^r[l++],y=(a[f>>>24]<<24|a[h>>>16&255]<<16|a[p>>>8&255]<<8|a[255&c])^r[l++],I=(a[h>>>24]<<24|a[p>>>16&255]<<16|a[c>>>8&255]<<8|a[255&f])^r[l++],m=(a[p>>>24]<<24|a[c>>>16&255]<<16|a[f>>>8&255]<<8|a[255&h])^r[l++],t[e]=d,t[e+1]=y,t[e+2]=I,t[e+3]=m},keySize:8});r.AES=n[e(349)](y)}(),t[e(341)]},(_b=Eg)(321)==_b(321)?gb[_b(322)]=wb(xy(),tI(),pI(),lm(),bm()):"undefined"===_b(348)&&(void 0).amd?(void 0)(["./core",_b(338),_b(330),"./evpkdf","./cipher-core"],wb):wb(bb[_b(329)]),Sb(322))),(mb=xg,kg||(kg=1,vb=Tg,mb(223),db=u,yb=function(t){return function(){var e=Ng,r=t,n=r[e(219)],i=n[e(202)],o=n[e(225)],s=r[e(190)],a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=s[e(194)]=o[e(228)]({_doReset:function(){for(var t=e,r=this[t(217)][t(224)],n=[],i=0;i<56;i++){var o=a[i]-1;n[i]=r[o>>>5]>>>31-o%32&1}for(var s=this[t(192)]=[],f=0;f<16;f++){var h=s[f]=[],p=c[f];for(i=0;i<24;i++)h[i/6|0]|=n[(u[i]-1+p)%28]<<31-i%6,h[4+(i/6|0)]|=n[28+(u[i+24]-1+p)%28]<<31-i%6;for(h[0]=h[0]<<1|h[0]>>>31,i=1;i<7;i++)h[i]=h[i]>>>4*(i-1)+3;h[7]=h[7]<<5|h[7]>>>27}var l=this[t(216)]=[];for(i=0;i<16;i++)l[i]=s[15-i]},encryptBlock:function(t,r){this[e(231)](t,r,this._subKeys)},decryptBlock:function(t,r){this[e(231)](t,r,this._invSubKeys)},_doCryptBlock:function(t,r,n){var i=e;this[i(197)]=t[r],this._rBlock=t[r+1],l[i(215)](this,4,252645135),l.call(this,16,65535),v[i(215)](this,2,858993459),v[i(215)](this,8,16711935),l[i(215)](this,1,1431655765);for(var o=0;o<16;o++){for(var s=n[o],a=this[i(197)],u=this._rBlock,c=0,p=0;p<8;p++)c|=f[p][((u^s[p])&h[p])>>>0];this[i(197)]=u,this._rBlock=a^c}var d=this[i(197)];this._lBlock=this._rBlock,this[i(188)]=d,l.call(this,1,1431655765),v[i(215)](this,8,16711935),v[i(215)](this,2,858993459),l.call(this,16,65535),l[i(215)](this,4,252645135),t[r]=this[i(197)],t[r+1]=this[i(188)]},keySize:2,ivSize:2,blockSize:2});function l(t,r){var n=e,i=(this[n(197)]>>>t^this[n(188)])&r;this[n(188)]^=i,this[n(197)]^=i<<t}function v(t,r){var n=e,i=(this[n(188)]>>>t^this[n(197)])&r;this._lBlock^=i,this[n(188)]^=i<<t}r[e(194)]=o[e(227)](p);var d=s[e(205)]=o[e(228)]({_doReset:function(){var t=e,r=this._key[t(224)];if(2!==r[t(220)]&&4!==r.length&&r[t(220)]<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=r.slice(0,2),o=r[t(220)]<4?r[t(208)](0,2):r[t(208)](2,4),s=r[t(220)]<6?r[t(208)](0,2):r[t(208)](4,6);this[t(213)]=p[t(218)](i[t(209)](n)),this[t(199)]=p.createEncryptor(i[t(209)](o)),this[t(203)]=p[t(218)](i[t(209)](s))},encryptBlock:function(t,r){var n=e;this[n(213)][n(222)](t,r),this._des2.decryptBlock(t,r),this[n(203)][n(222)](t,r)},decryptBlock:function(t,r){var n=e;this[n(203)].decryptBlock(t,r),this._des2[n(222)](t,r),this[n(213)][n(229)](t,r)},keySize:6,ivSize:2,blockSize:2});r[e(205)]=o[e(227)](d)}(),t.TripleDES},(Ib=Ng)(189)==Ib(189)?vb[Ib(223)]=yb(xy(),tI(),pI(),lm(),bm()):"undefined"===Ib(206)&&(void 0)[Ib(230)]?(void 0)([Ib(210),Ib(193),Ib(196),Ib(204),"./cipher-core"],yb):yb(db[Ib(191)]),mb(223))),(lb=jg,Pg||(Pg=1,ub=Cg,cb=h[(pb=lb)(451)],fb=function(t){var e=pb;return function(){var e=Lg,r=t,n=r[e(449)][e(432)],i=r[e(458)],o=i[e(444)]=n[e(457)]({_doReset:function(){for(var t=e,r=this[t(434)],n=r[t(441)],i=r[t(436)],o=this._S=[],s=0;s<256;s++)o[s]=s;s=0;for(var a=0;s<256;s++){var u=s%i,c=n[u>>>2]>>>24-u%4*8&255;a=(a+o[s]+c)%256;var f=o[s];o[s]=o[a],o[a]=f}this._i=this._j=0},_doProcessBlock:function(t,r){var n=e;t[r]^=s[n(452)](this)},keySize:8,ivSize:0});function s(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}r[e(444)]=n._createHelper(o);var a=i.RC4Drop=o.extend({cfg:o[e(455)][e(457)]({drop:192}),_doReset:function(){var t=e;o[t(430)][t(452)](this);for(var r=this.cfg[t(456)];r>0;r--)s[t(452)](this)}});r[e(454)]=n._createHelper(a)}(),t[e(444)]},(hb=Lg)(433)==hb(433)?ub[hb(445)]=fb(xy(),tI(),pI(),lm(),bm()):"undefined"===hb(448)&&(void 0)[hb(439)]?(void 0)([hb(429),hb(442),"./md5","./evpkdf",hb(431)],fb):fb(cb[hb(460)])),lb(445)),(ab=Bg,Ug?ab(370):(Ug=1,rb=Mg,ab(370),nb=h[(sb=ab)(381)],ib=function(t){var e=sb;return function(){var e=qg,r=t,n=r.lib[e(373)],i=r.algo,o=[],s=[],a=[],u=i[e(371)]=n[e(365)]({_doReset:function(){for(var t=e,r=this[t(380)][t(376)],n=this[t(375)].iv,i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8);var o=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],s=this._C=[r[2]<<16|r[2]>>>16,4294901760&r[0]|65535&r[1],r[3]<<16|r[3]>>>16,4294901760&r[1]|65535&r[2],r[0]<<16|r[0]>>>16,4294901760&r[2]|65535&r[3],r[1]<<16|r[1]>>>16,4294901760&r[3]|65535&r[0]];for(this._b=0,i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)s[i]^=o[i+4&7];if(n){var a=n[t(376)],u=a[0],f=a[1],h=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),p=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),l=h>>>16|4294901760&p,v=p<<16|65535&h;for(s[0]^=h,s[1]^=l,s[2]^=p,s[3]^=v,s[4]^=h,s[5]^=l,s[6]^=p,s[7]^=v,i=0;i<4;i++)c[t(367)](this)}},_doProcessBlock:function(t,r){var n=e,i=this._X;c[n(367)](this),o[0]=i[0]^i[5]>>>16^i[3]<<16,o[1]=i[2]^i[7]>>>16^i[5]<<16,o[2]=i[4]^i[1]>>>16^i[7]<<16,o[3]=i[6]^i[3]>>>16^i[1]<<16;for(var s=0;s<4;s++)o[s]=16711935&(o[s]<<8|o[s]>>>24)|4278255360&(o[s]<<24|o[s]>>>8),t[r+s]^=o[s]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)s[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<s[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<s[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<s[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<s[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<s[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<s[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<s[6]>>>0?1:0)|0,this._b=e[7]>>>0<s[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,o=n>>>16,u=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r[e(371)]=n[e(368)](u)}(),t[e(371)]},(ob=qg)(372)==ob(372)?rb[ob(370)]=ib(xy(),tI(),pI(),lm(),bm()):ib(nb.CryptoJS))),(eb=Kg,Hg?eb(325):(Hg=1,Xg=Wg,eb(325),$g=h[(tb=eb)(317)],Qg=function(t){var e=tb;return function(){var e=Kg,r=t,n=r[e(315)].StreamCipher,i=r.algo,o=[],s=[],a=[],u=i[e(319)]=n.extend({_doReset:function(){var t=e,r=this[t(334)].words,n=this[t(314)].iv,i=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],o=this._C=[r[2]<<16|r[2]>>>16,4294901760&r[0]|65535&r[1],r[3]<<16|r[3]>>>16,4294901760&r[1]|65535&r[2],r[0]<<16|r[0]>>>16,4294901760&r[2]|65535&r[3],r[1]<<16|r[1]>>>16,4294901760&r[3]|65535&r[0]];this._b=0;for(var s=0;s<4;s++)c[t(337)](this);for(s=0;s<8;s++)o[s]^=i[s+4&7];if(n){var a=n[t(330)],u=a[0],f=a[1],h=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),p=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),l=h>>>16|4294901760&p,v=p<<16|65535&h;for(o[0]^=h,o[1]^=l,o[2]^=p,o[3]^=v,o[4]^=h,o[5]^=l,o[6]^=p,o[7]^=v,s=0;s<4;s++)c.call(this)}},_doProcessBlock:function(t,r){var n=e,i=this._X;c[n(337)](this),o[0]=i[0]^i[5]>>>16^i[3]<<16,o[1]=i[2]^i[7]>>>16^i[5]<<16,o[2]=i[4]^i[1]>>>16^i[7]<<16,o[3]=i[6]^i[3]>>>16^i[1]<<16;for(var s=0;s<4;s++)o[s]=16711935&(o[s]<<8|o[s]>>>24)|4278255360&(o[s]<<24|o[s]>>>8),t[r+s]^=o[s]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)s[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<s[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<s[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<s[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<s[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<s[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<s[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<s[6]>>>0?1:0)|0,this._b=e[7]>>>0<s[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,o=n>>>16,u=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=u^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.RabbitLegacy=n[e(313)](u)}(),t[e(319)]},"object"===(Zg=Kg)(321)?Xg.exports=Qg(xy(),tI(),pI(),lm(),bm()):Qg($g[Zg(328)]))),t_()):Jg[$w(200)]=Jg[$w(200)];var i_=c(Sy.exports);function o_(t,e){var r=a_();return(o_=function(t,e){return r[t-=110]})(t,e)}!function(t,e){for(var r=o_,n=a_();;)try{if(560382===parseInt(r(131))/1+parseInt(r(129))/2*(parseInt(r(135))/3)+-parseInt(r(158))/4+-parseInt(r(139))/5*(parseInt(r(112))/6)+-parseInt(r(151))/7*(parseInt(r(137))/8)+parseInt(r(166))/9*(-parseInt(r(163))/10)+-parseInt(r(136))/11*(-parseInt(r(123))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var s_=new(function(){var t=o_;function n(){var t=o_;this.token=null,this[t(146)]="",this[t(111)]=e[t(155)](),this[t(157)]()}return n.prototype[t(132)]=function(e){var r=t,n=this;window[r(149)]("storage",(function(t){var i=r;if(typeof e===i(153)&&t[i(124)]===e&&t[i(148)]&&n.setToken(t[i(148)]),"function"==typeof e){var o=e();n[i(160)](o)}}));var i,o=typeof e===(i=o_)(153)?window[i(144)][i(125)](e):typeof e===i(138)?e():null;o&&this[r(160)](o)},n.prototype[t(162)]=function(e){var r=t;this.instance[r(110)].response[r(119)]((function(t){return t}),(function(t){var n=r;return t[n(133)]&&401===t[n(133)][n(120)]&&(typeof e===n(153)?location[n(121)](e):typeof e===n(138)&&e()),Promise[n(113)](t)}))},n.prototype[t(140)]=function(e){var r=t;if(e){var n=e+r(114)+(new Date).getTime(),i=r(154);return i_[r(117)][r(159)](n,i).toString()}},n.prototype[t(160)]=function(e){this[t(150)]=e},n[t(147)][t(157)]=function(){var e=t,r=this;this[e(111)].interceptors[e(145)][e(119)]((function(t){var n=e;return r[n(150)]&&(t[n(143)][n(152)]=r[n(140)](r.token)),t}))},n[t(147)][t(141)]=function(e){var r=t;e&&!(null==e?void 0:e[r(142)])&&(e[r(142)]=(null==e?void 0:e[r(118)])?r(156):r(130))},n.prototype[t(127)]=function(e){var r=t;typeof e[r(165)]===r(138)&&this[r(111)][r(110)][r(145)][r(119)](e[r(165)]),"function"==typeof e[r(164)]&&this[r(111)][r(110)][r(133)][r(119)](e[r(164)])},n.prototype[t(116)]=function(e){var r=t;(null==e?void 0:e[r(122)])&&this[r(160)](e.customToken)},n[t(147)][t(145)]=function(t){return i(this,void 0,void 0,(function(){var e=this;return o(this,(function(n){var i=o_;return this.setRequestMethod(t),this[i(127)](t),this[i(116)](t),[2,new Promise((function(n,o){var s=i;e[s(111)][s(145)]({method:t[s(142)],url:t[s(126)],headers:t[s(143)],data:t.data,params:t.params,timeout:t[s(134)]||8e3})[s(128)]((function(t){var e=s;200===t[e(120)]?n(t.data):o(t[e(118)])}))[s(161)]((function(e){var n,i=s;null==e||e[i(133)],t.catchCallback&&e instanceof r&&t[i(115)](e),o((null===(n=e[i(133)])||void 0===n?void 0:n[i(118)])||e)}))}))]}))}))},n}());function a_(){var t=["encryptToken","setRequestMethod","method","headers","localStorage","request","loginPath","prototype","newValue","addEventListener","token","28RYXisy","x-belink-authorization","string","214c!dsf1","create","post","setupInterceptors","153784novATm","encrypt","setToken","catch","setupAuthorizationCallback","5489650wCzzbK","responseInterceptors","requestInterceptors","9spbPzz","interceptors","instance","5008434gWpfOo","reject","|+|","catchCallback","setupCustomToken","AES","data","use","status","replace","customToken","372tWVWlN","key","getItem","url","setInterceptors","then","2apuQet","get","438062FjJkHq","setupTokenListener","response","timeout","3246855nnWniW","242297onPdeZ","441304mOXxrO","function","5dKRXwH"];return(a_=function(){return t})()}function u_(){var t=["14882gXdkWI","1034798DTsQVT","5WhhQNQ","1992JMDyEs","584DJBMhI","143KxOGPa","73601lknAzT","3027836sPTwhP","6mmQJoI","4291512OjcDCF","146295kjcCiv","293602AbtrcI","250BLWlrM"];return(u_=function(){return t})()}function c_(t,e){var r=u_();return(c_=function(t,e){return r[t-=329]})(t,e)}!function(t,e){for(var r=c_,n=u_();;)try{if(710559===-parseInt(r(332))/1+-parseInt(r(329))/2*(-parseInt(r(339))/3)+parseInt(r(338))/4*(-parseInt(r(333))/5)+-parseInt(r(334))/6*(parseInt(r(331))/7)+-parseInt(r(335))/8*(parseInt(r(341))/9)+parseInt(r(330))/10*(parseInt(r(337))/11)+parseInt(r(340))/12*(parseInt(r(336))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();export{s_ as beLinkRequest,gy as callFunction,Ey as request};
|
|
1
|
+
import{Buffer as e}from"buffer";import t,{AxiosError as n}from"axios";function r(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function o(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}"function"==typeof SuppressedError&&SuppressedError;var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var c={},u={},f={};Object.defineProperty(f,"__esModule",{value:!0}),f.COMMUNITY_SITE_URL=f.IS_DEBUG_MODE=f.getProtocol=f.setProtocol=f.getSdkName=f.setSdkName=void 0;var l="@cloudbase/js-sdk";f.setSdkName=function(e){l=e},f.getSdkName=function(){return l};var h="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";f.setProtocol=function(e){h=e},f.getProtocol=function(){return h},f.IS_DEBUG_MODE="development"===process.env.NODE_ENV,f.COMMUNITY_SITE_URL="https://support.qq.com/products/148793";var p={};Object.defineProperty(p,"__esModule",{value:!0}),p.ERRORS=void 0,p.ERRORS={INVALID_PARAMS:"INVALID_PARAMS",INVALID_SYNTAX:"INVALID_SYNTAX",INVALID_OPERATION:"INVALID_OPERATION",OPERATION_FAIL:"OPERATION_FAIL",NETWORK_ERROR:"NETWORK_ERROR",UNKOWN_ERROR:"UNKOWN_ERROR"},function(e){var t=i&&i.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=i&&i.__exportStar||function(e,n){for(var r in e)"default"===r||n.hasOwnProperty(r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(f,e),n(p,e)}(u);var d,y={},g={};!function(e){e.local="local",e.none="none",e.session="session"}(d||(d={}));var v=function(){},_=function(){};function m(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";for(var i in n)""===o?!r&&(t+="?"):o+="&",o+=i+"="+encodeURIComponent(n[i]);return/^http(s)?\:\/\//.test(t+=o)?t:""+e+t}var w,b=a(Object.freeze({__proto__:null,AbstractSDKRequest:v,AbstractStorage:_,get StorageType(){return d},formatUrl:m})),E={},S={exports:{}},I={exports:{}};function A(){return w||(w=1,I.exports=function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},i=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=o.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=s<<24-(r+i)%4*8}else for(i=0;i<o;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var a=o(4294967296*(n||e.random()));n=987654071*a(),r.push(4294967296*a()|0)}return new s.init(r,t)}}),a=r.enc={},c=a.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s.init(n,t/2)}},u=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s.init(n,t)}},f=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},l=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,a=o/(4*i),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*i,u=e.min(4*c,o);if(c){for(var f=0;f<c;f+=i)this._doProcessBlock(r,f);var l=r.splice(0,c);n.sigBytes-=u}return new s.init(l,u)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=l.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=r.algo={};return r}(Math);return e}()),I.exports}var O,N={exports:{}};function T(){return O||(O=1,N.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(a[o]=n(t.pow(r,.5))),c[o]=n(t.pow(r,1/3)),o++),r++}();var u=[],f=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],f=n[5],l=n[6],h=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var d=u[p-15],y=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,g=u[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[p]=y+u[p-7]+v+u[p-16]}var _=r&o^r&i^o&i,m=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&f^~a&l)+c[p]+u[p];h=l,l=f,f=a,a=s+w|0,s=i,i=o,o=r,r=w+(m+_)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+f|0,n[6]=n[6]+l|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(f),n.HmacSHA256=i._createHmacHelper(f)}(Math),e.SHA256}(A())),N.exports}var x,R,P,k,C={exports:{}};S.exports=function(e){return e.HmacSHA256}(A(),T(),x||(x=1,C.exports=(P=(R=A()).lib.Base,k=R.enc.Utf8,void(R.algo.HMAC=P.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=k.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),s=o.words,a=i.words,c=0;c<n;c++)s[c]^=1549556828,a[c]^=909522486;o.sigBytes=i.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))));var L=S.exports,D={exports:{}};D.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2,c=r[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=(a|c)<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<n;a++)o.push(r.charAt(s>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(A());var U=D.exports,j={exports:{}};j.exports=function(e){return e.enc.Utf8}(A());var M=j.exports,B=i&&i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.transformPhone=E.sleep=E.printGroupLog=E.throwError=E.printInfo=E.printError=E.printWarn=E.execCallback=E.createPromiseCallback=E.removeParam=E.getHash=E.getQuery=E.toQueryString=E.createSign=E.formatUrl=E.genSeqId=E.isFormData=E.isInstanceOf=E.isNull=E.isPalinObject=E.isUndefined=E.isString=E.isArray=void 0;var q=B(L),W=B(U),F=B(M),H=u;function $(e){var t=W.default.stringify(e);return t=(t=(t=t.replace(/=+$/,"")).replace(/\+/g,"-")).replace(/\//g,"_")}E.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},E.isString=function(e){return"string"==typeof e},E.isUndefined=function(e){return void 0===e},E.isPalinObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},E.isNull=function(e){return"[object Null]"===Object.prototype.toString.call(e)},E.isInstanceOf=function(e,t){return e instanceof t},E.isFormData=function(e){return"[object FormData]"===Object.prototype.toString.call(e)},E.genSeqId=function(){return Math.random().toString(16).slice(2)},E.formatUrl=function(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),o="";for(var i in n)""===o?!r&&(t+="?"):o+="&",o+=i+"="+encodeURIComponent(n[i]);return/^http(s)?\:\/\//.test(t+=o)?t:""+e+t},E.createSign=function(e,t){var n=$(F.default.parse(JSON.stringify({alg:"HS256",typ:"JWT"})))+"."+$(F.default.parse(JSON.stringify(e)));return n+"."+$(q.default(n,t))},E.toQueryString=function(e){void 0===e&&(e={});var t=[];for(var n in e)t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")},E.getQuery=function(e,t){if("undefined"==typeof window)return!1;var n=t||window.location.search,r=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),o=n.substr(n.indexOf("?")+1).match(r);return null!=o?o[2]:""},E.getHash=function(e){if("undefined"==typeof window)return"";var t=window.location.hash.match(new RegExp("[#?&/]"+e+"=([^&#]*)"));return t?t[1]:""},E.removeParam=function(e,t){var n=t.split("?")[0],r=[],o=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==o){for(var i=(r=o.split("&")).length-1;i>=0;i-=1)r[i].split("=")[0]===e&&r.splice(i,1);n=n+"?"+r.join("&")}return n},E.createPromiseCallback=function(){var e;if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e},E.execCallback=function(e,t,n){if(void 0===n&&(n=null),e&&"function"==typeof e)return e(t,n);if(t)throw t;return n},E.printWarn=function(e,t){console.warn("["+H.getSdkName()+"]["+e+"]:"+t)},E.printError=function(e,t){console.error({code:e,msg:"["+H.getSdkName()+"]["+e+"]:"+t})},E.printInfo=function(e,t){console.log("["+H.getSdkName()+"]["+e+"]:"+t)},E.throwError=function(e,t){throw new Error(JSON.stringify({code:e,msg:"["+H.getSdkName()+"]["+e+"]:"+t}))},E.printGroupLog=function(e){var t=e.title,n=e.subtitle,r=void 0===n?"":n,o=e.content,i=void 0===o?[]:o,s=e.printTrace,a=void 0!==s&&s,c=e.collapsed;void 0!==c&&c?console.groupCollapsed(t,r):console.group(t,r);for(var u=0,f=i;u<f.length;u++){var l=f[u],h=l.type,p=l.body;switch(h){case"info":console.log(p);break;case"warn":console.warn(p);break;case"error":console.error(p)}}a&&console.trace("stack trace:"),console.groupEnd()},E.sleep=function(e){return void 0===e&&(e=0),new Promise((function(t){return setTimeout(t,e)}))},E.transformPhone=function(e){return"+86"+e};var K,G=i&&i.__extends||(K=function(e,t){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},K(e,t)},function(e,t){function n(){this.constructor=e}K(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),V=i&&i.__assign||function(){return V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},V.apply(this,arguments)},J=i&&i.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},z=i&&i.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(g,"__esModule",{value:!0}),g.WebRequest=g.genAdapter=void 0;var Y=E,X=f,Z=function(e){function t(t){var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n._timeout=r||0,n._timeoutMsg=o||"请求超时",n._restrictedMethods=i||["get","post","upload","download"],n}return G(t,e),t.prototype.get=function(e){return this._request(V(V({},e),{method:"get"}),this._restrictedMethods.includes("get"))},t.prototype.post=function(e){return this._request(V(V({},e),{method:"post"}),this._restrictedMethods.includes("post"))},t.prototype.put=function(e){return this._request(V(V({},e),{method:"put"}))},t.prototype.upload=function(e){var t=e.data,n=e.file,r=e.name,o=new FormData;for(var i in t)o.append(i,t[i]);return o.append("key",r),o.append("file",n),this._request(V(V({},e),{data:o,method:"post"}),this._restrictedMethods.includes("upload"))},t.prototype.download=function(e){return J(this,void 0,void 0,(function(){var t,n,r,o;return z(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.get(V(V({},e),{headers:{},responseType:"blob"}))];case 1:return t=i.sent().data,n=window.URL.createObjectURL(new Blob([t])),r=decodeURIComponent(new URL(e.url).pathname.split("/").pop()||""),(o=document.createElement("a")).href=n,o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(n),document.body.removeChild(o),[3,3];case 2:return i.sent(),[3,3];case 3:return[2,new Promise((function(t){t({statusCode:200,tempFilePath:e.url})}))]}}))}))},t.prototype._request=function(e,t){var n=this;void 0===t&&(t=!1);var r=String(e.method).toLowerCase()||"get";return new Promise((function(o){var i,s,a=e.url,c=e.headers,u=void 0===c?{}:c,f=e.data,l=e.responseType,h=e.withCredentials,p=e.body,d=e.onUploadProgress,y=Y.formatUrl(X.getProtocol(),a,"get"===r?f:{}),g=new XMLHttpRequest;for(var v in g.open(r,y),l&&(g.responseType=l),u)g.setRequestHeader(v,u[v]);d&&g.upload.addEventListener("progress",d),g.onreadystatechange=function(){var e={};if(4===g.readyState){var t=g.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};t.forEach((function(e){var t=e.split(": "),r=t.shift().toLowerCase(),o=t.join(": ");n[r]=o})),e.header=n,e.statusCode=g.status;try{e.data="blob"===l?g.response:JSON.parse(g.responseText)}catch(t){e.data="blob"===l?g.response:g.responseText}clearTimeout(i),o(e)}},t&&n._timeout&&(i=setTimeout((function(){console.warn(n._timeoutMsg),g.abort()}),n._timeout)),s=Y.isFormData(f)?f:"application/x-www-form-urlencoded"===u["content-type"]?Y.toQueryString(f):p||(f?JSON.stringify(f):void 0),h&&(g.withCredentials=!0),g.send(s)}))},t}(b.AbstractSDKRequest);g.WebRequest=Z,g.genAdapter=function(){return{root:window,reqClass:Z,wsClass:WebSocket,localStorage:localStorage,sessionStorage:sessionStorage}},function(e){var t=i&&i.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=i&&i.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=i&&i.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.useDefaultAdapter=e.useAdapters=e.RUNTIME=void 0;var o,s=r(g),a=E;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(o=e.RUNTIME||(e.RUNTIME={})),e.useAdapters=function(e){for(var t=0,n=a.isArray(e)?e:[e];t<n.length;t++){var r=n[t],o=r.isMatch,i=r.genAdapter,s=r.runtime;if(o())return{adapter:i(),runtime:s}}},e.useDefaultAdapter=function(){return{adapter:s.genAdapter(),runtime:o.WEB}}}(y);var Q={},ee=i&&i.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),te=i&&i.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},ne=i&&i.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(Q,"__esModule",{value:!0}),Q.CloudbaseCache=void 0;var re=E,oe=u,ie=function(e){function t(t){var n=e.call(this)||this;return n._root=t,t.tcbCacheObject||(t.tcbCacheObject={}),n}return ee(t,e),t.prototype.setItem=function(e,t){this._root.tcbCacheObject[e]=t},t.prototype.getItem=function(e){return this._root.tcbCacheObject[e]},t.prototype.removeItem=function(e){delete this._root.tcbCacheObject[e]},t.prototype.clear=function(){delete this._root.tcbCacheObject},t}(b.AbstractStorage);function se(e,t){switch(e){case"local":default:return t.localStorage?t.localStorage:(re.printWarn(oe.ERRORS.INVALID_PARAMS,"localStorage is not supported on current platform"),new ie(t.root));case"none":return new ie(t.root);case"session":return t.sessionStorage?t.sessionStorage:(re.printWarn(oe.ERRORS.INVALID_PARAMS,"sessionStorage is not supported on current platform"),new ie(t.root))}}var ae=function(){function e(e){this.keys={};var t=e.persistence,n=e.platformInfo,r=void 0===n?{}:n,o=e.keys,i=void 0===o?{}:o,s=e.alwaysLocalKeys,a=void 0===s?[]:s;this._platformInfo=r,this._alwaysLocalKeys=a,this._storage||(this._persistence=r.adapter.primaryStorage||t,this._storage=se(this._persistence,r.adapter),this.keys=i)}return Object.defineProperty(e.prototype,"mode",{get:function(){return this._storage.mode||"sync"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"persistence",{get:function(){return this._persistence},enumerable:!1,configurable:!0}),e.prototype.updatePersistence=function(e){if("async"!==this.mode){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=se(e,this._platformInfo.adapter);for(var r in this.keys){var o=this.keys[r];if(!t||!this._alwaysLocalKeys.includes(r)){var i=this._storage.getItem(o);re.isUndefined(i)||re.isNull(i)||(n.setItem(o,i),this._storage.removeItem(o))}}this._storage=n}}else re.printWarn(oe.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use updatePersistenceAsync insteed")},e.prototype.updatePersistenceAsync=function(e){return te(this,void 0,void 0,(function(){var t,n,r,o,i,s,a,c;return ne(this,(function(u){switch(u.label){case 0:if(e===this._persistence)return[2];for(o in t="local"===this._persistence,this._persistence=e,n=se(e,this._platformInfo.adapter),r=[],this.keys)r.push(o);i=0,u.label=1;case 1:return i<r.length?(s=r[i],a=this.keys[s],t&&this._alwaysLocalKeys.includes(s)?[3,4]:[4,this._storage.getItem(a)]):[3,5];case 2:return c=u.sent(),re.isUndefined(c)||re.isNull(c)?[3,4]:(n.setItem(a,c),[4,this._storage.removeItem(a)]);case 3:u.sent(),u.label=4;case 4:return i++,[3,1];case 5:return this._storage=n,[2]}}))}))},e.prototype.setStore=function(e,t,n){if("async"!==this.mode){if(this._storage)try{var r={version:n||"localCachev1",content:t};this._storage.setItem(e,JSON.stringify(r))}catch(e){throw new Error(JSON.stringify({code:oe.ERRORS.OPERATION_FAIL,msg:"["+oe.getSdkName()+"]["+oe.ERRORS.OPERATION_FAIL+"]setStore failed",info:e}))}}else re.printWarn(oe.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use setStoreAsync insteed")},e.prototype.setStoreAsync=function(e,t,n){return te(this,void 0,void 0,(function(){var r;return ne(this,(function(o){switch(o.label){case 0:if(!this._storage)return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),r={version:n||"localCachev1",content:t},[4,this._storage.setItem(e,JSON.stringify(r))];case 2:return o.sent(),[3,4];case 3:return o.sent(),[2];case 4:return[2]}}))}))},e.prototype.getStore=function(e,t){var n;if("async"!==this.mode){try{if("undefined"!=typeof process&&(null===(n=process.env)||void 0===n?void 0:n.tcb_token))return process.env.tcb_token;if(!this._storage)return""}catch(e){return""}t=t||"localCachev1";var r=this._storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}re.printWarn(oe.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use getStoreAsync insteed")},e.prototype.getStoreAsync=function(e,t){var n;return te(this,void 0,void 0,(function(){var r;return ne(this,(function(o){switch(o.label){case 0:try{if("undefined"!=typeof process&&(null===(n=process.env)||void 0===n?void 0:n.tcb_token))return[2,process.env.tcb_token];if(!this._storage)return[2,""]}catch(e){return[2,""]}return t=t||"localCachev1",[4,this._storage.getItem(e)];case 1:return(r=o.sent())&&r.indexOf(t)>=0?[2,JSON.parse(r).content]:[2,""]}}))}))},e.prototype.removeStore=function(e){"async"!==this.mode?this._storage.removeItem(e):re.printWarn(oe.ERRORS.INVALID_OPERATION,"current platform's storage is asynchronous, please use removeStoreAsync insteed")},e.prototype.removeStoreAsync=function(e){return te(this,void 0,void 0,(function(){return ne(this,(function(t){switch(t.label){case 0:return[4,this._storage.removeItem(e)];case 1:return t.sent(),[2]}}))}))},e}();Q.CloudbaseCache=ae;var ce={},ue=i&&i.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fe=i&&i.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r};Object.defineProperty(ce,"__esModule",{value:!0}),ce.removeEventListener=ce.activateEvent=ce.addEventListener=ce.CloudbaseEventEmitter=ce.IErrorEvent=ce.CloudbaseEvent=void 0;var le=E;var he=function(e,t){this.data=t||null,this.name=e};ce.CloudbaseEvent=he;var pe=function(e){function t(t,n){var r=e.call(this,"error",{error:t,data:n})||this;return r.error=t,r}return ue(t,e),t}(he);ce.IErrorEvent=pe;var de=function(){function e(){this._listeners={}}return e.prototype.on=function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this},e.prototype.off=function(e,t){return function(e,t,n){if(null==n?void 0:n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this},e.prototype.fire=function(e,t){if(le.isInstanceOf(e,pe))return console.error(e.error),this;var n=le.isString(e)?new he(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;for(var o=0,i=this._listeners[r]?fe(this._listeners[r]):[];o<i.length;o++){i[o].call(this,n)}}return this},e.prototype._listens=function(e){return this._listeners[e]&&this._listeners[e].length>0},e}();ce.CloudbaseEventEmitter=de;var ye=new de;ce.addEventListener=function(e,t){ye.on(e,t)},ce.activateEvent=function(e,t){void 0===t&&(t={}),ye.fire(e,t)},ce.removeEventListener=function(e,t){ye.off(e,t)};var ge={},ve={},_e=i&&i.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},me=i&&i.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.catchErrorsDecorator=void 0;var we=E,be=u,Ee=!1;"undefined"!=typeof navigator&&navigator.userAgent&&(Ee=-1!==navigator.userAgent.indexOf("Firefox"));var Se=Ee?/(\.js\/)?__decorate(\$\d+)?<@.*\d$/:/(\/\w+\.js\.)?__decorate(\$\d+)?\s*\(.*\)$/,Ie=/https?\:\/\/.+\:\d*\/.*\.js\:\d+\:\d+/;function Ae(e){var t=e.err,n=e.className,r=e.methodName,o=e.sourceLink;if(!o)return null;var i,s=t.stack.split("\n"),a=Ee?/^catchErrorsDecorator\/<\/descriptor.value@.*\d$/:new RegExp(n+"\\.descriptor.value\\s*\\[as\\s"+r+"\\]\\s*\\(.*\\)$"),c=Ee?/^catchErrorsDecorator\/<\/descriptor.value/:new RegExp(n+"\\.descriptor.value\\s*\\[as\\s"+r+"\\]"),u=s.findIndex((function(e){return a.test(e)}));if(-1!==u){var f=s.filter((function(e,t){return t>u}));f.unshift(s[u].replace(c,n+"."+r).replace(Ie,o)),(i=new Error).stack=(Ee?"@debugger":"Error")+"\n"+f.join("\n")}return i}ve.catchErrorsDecorator=function(e){var t=e.mode,n=void 0===t?"async":t,r=e.customInfo,o=void 0===r?{}:r,i=e.title,s=e.messages,a=void 0===s?[]:s;return function(e,t,r){if(be.IS_DEBUG_MODE){var s=o.className||e.constructor.name,c=o.methodName||t,u=r.value,f=function(e){var t="",n=e.stack.split("\n"),r=n.findIndex((function(e){return Se.test(e)}));if(-1!==r){var o=Ie.exec(n[r+1]||"");t=o?o[0]:""}return t}(new Error);r.value="sync"===n?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ae({err:new Error,className:s,methodName:c,sourceLink:f});try{return u.apply(this,e)}catch(e){var r=e,o=e.message,l={title:i||s+"."+c+" failed",content:[{type:"error",body:e}]};if(o&&/^\{.*\}$/.test(o)){var h=JSON.parse(o);l.subtitle=o,h.code&&(n?(n.code=h.code,n.msg=h.msg):(e.code=h.code,e.message=h.msg),r=n||e,l.content=a.map((function(e){return{type:"info",body:e}})))}throw we.printGroupLog(l),r}}:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _e(this,void 0,void 0,(function(){var t,n,r,o,l,h;return me(this,(function(p){switch(p.label){case 0:t=Ae({err:new Error,className:s,methodName:c,sourceLink:f}),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,u.apply(this,e)];case 2:return[2,p.sent()];case 3:throw n=p.sent(),r=n,o=n.message,l={title:i||s+"."+c+" failed",content:[{type:"error",body:n}]},o&&/^\{.*\}$/.test(o)&&(h=JSON.parse(o),l.subtitle=h,h.code&&(t?(t.code=h.code,t.message=h.msg):(n.code=h.code,n.message=h.msg),r=t||n,l.content=a.map((function(e){return{type:"info",body:e}})))),we.printGroupLog(l),r;case 4:return[2]}}))}))}}}},function(e){var t=i&&i.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=i&&i.__exportStar||function(e,n){for(var r in e)"default"===r||n.hasOwnProperty(r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(ve,e)}(ge);var Oe=i&&i.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),Ne=i&&i.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Te=i&&i.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&Oe(t,e,n);return Ne(t,e),t};Object.defineProperty(c,"__esModule",{value:!0});var xe=c.helpers=c.utils=c.events=c.cache=c.adapters=c.constants=void 0,Re=Te(u),Pe=c.constants=Re,ke=Te(y),Ce=c.adapters=ke,Le=Te(Q),De=c.cache=Le,Ue=Te(ce),je=c.events=Ue,Me=Te(E),Be=c.utils=Me,qe=Te(ge);xe=c.helpers=qe;var We=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fe=function(){return Fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fe.apply(this,arguments)},He=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},$e=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};var Ke=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this,r=t.timeout,o=t.timeoutMsg,i=t.restrictedMethods;return n._timeout=r||0,n._timeoutMsg=o||"请求超时",n._restrictedMethods=i||["get","post","upload","download"],n}return We(t,e),t.prototype.post=function(e){var t=this;return new Promise((function(n,r){var o=e.url,i=e.data,s=e.headers,a=wx.request({url:m("https:",o),data:i,timeout:t._timeout,method:"POST",header:s,success:function(e){n(e)},fail:function(e){r(e)},complete:function(e){if(e&&e.errMsg&&(t._timeout&&-1!==t._restrictedMethods.indexOf("post")&&"request:fail timeout"===e.errMsg)){console.warn(t._timeoutMsg);try{a.abort()}catch(e){}}}})}))},t.prototype.upload=function(e){var t=this,n=this;return new Promise((function(r){return He(t,void 0,void 0,(function(){var t,o,i,s,a,c;return $e(this,(function(u){return t=e.url,o=e.file,i=e.data,s=e.headers,a=e.onUploadProgress,c=wx.uploadFile({url:t,filePath:o,name:"file",formData:Fe({},i),header:s,timeout:this._timeout,success:function(e){var t={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(t.statusCode=parseInt(i.success_action_status,10)),r(t)},fail:function(e){r(e)},complete:function(e){if(e&&e.errMsg&&(n._timeout&&-1!==n._restrictedMethods.indexOf("upload")&&"request:fail timeout"===e.errMsg)){console.warn(n._timeoutMsg);try{c.abort()}catch(e){}}}}),a&&c.onProgressUpdate((function(e){a(e)})),[2]}))}))}))},t.prototype.download=function(e){var t=this,n=this;return new Promise((function(r,o){var i=e.url,s=e.headers,a=wx.downloadFile({url:m("https:",i),header:s,timeout:t._timeout,success:function(e){200===e.statusCode&&e.tempFilePath?r({statusCode:200,tempFilePath:e.tempFilePath}):r(e)},fail:function(e){o(e)},complete:function(e){if(e&&e.errMsg&&(n._timeout&&-1!==n._restrictedMethods.indexOf("download")&&"request:fail timeout"===e.errMsg)){console.warn(n._timeoutMsg);try{a.abort()}catch(e){}}}})}))},t}(v),Ge={setItem:function(e,t){wx.setStorageSync(e,t)},getItem:function(e){return wx.getStorageSync(e)},removeItem:function(e){wx.removeStorageSync(e)},clear:function(){wx.clearStorageSync()}},Ve=function(e,t){void 0===t&&(t={});var n=wx.connectSocket(Fe({url:e},t));return{set onopen(e){n.onOpen(e)},set onmessage(e){n.onMessage(e)},set onclose(e){n.onClose(e)},set onerror(e){n.onError(e)},send:function(e){return n.send({data:e})},close:function(e,t){return n.close({code:e,reason:t})},get readyState(){return n.readyState},CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3}};var Je={genAdapter:function(){return{root:{},reqClass:Ke,wsClass:Ve,localStorage:Ge,primaryStorage:d.local,getAppSign:function(){var e=wx.getAccountInfoSync();return"undefined"!=typeof App||"undefined"!=typeof getApp||wx.onAppHide||wx.offAppHide||wx.onAppShow||wx.offAppShow?e&&e.miniProgram?e.miniProgram.appId:"":e&&e.plugin?e.plugin.appId:""}}},isMatch:function(){if("undefined"==typeof wx)return!1;if("undefined"==typeof Page)return!1;if(!wx.getSystemInfoSync)return!1;if(!wx.getStorageSync)return!1;if(!wx.setStorageSync)return!1;if(!wx.connectSocket)return!1;if(!wx.request)return!1;try{if(!wx.getSystemInfoSync())return!1;if("qq"===wx.getSystemInfoSync().AppPlatform)return!1}catch(e){return!1}return!0},runtime:"wx_mp"},ze=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},Ye=Pe.ERRORS,Xe={};function Ze(e,t){var n=t.name,r=t.namespace,o=t.entity,i=t.injectEvents,s=t.IIFE,a=void 0!==s&&s;if(Xe[n]||r&&e[r])throw new Error(JSON.stringify({code:Ye.INVALID_OPERATION,msg:"Duplicate component "+n}));if(a){if(!o||"function"!=typeof o)throw new Error(JSON.stringify({code:Ye.INVALID_PARAMS,msg:"IIFE component's entity must be a function"}));o.call(e)}if(Xe[n]=t,r?e.prototype[r]=o:Qe(e.prototype,o),i){var c=i.bus,u=i.events;if(!c||!u||0===u.length)return;var f=e.prototype.fire||function(){};e.prototype.events||(e.prototype.events={}),(e.prototype.events||{})[n]?e.prototype.events[n].events=ze(e.prototype.events[n].events,u):e.prototype.events[n]={bus:c,events:u},e.prototype.fire=function(e,t){for(var n in f(e,t),this.events){var r=this.events[n],o=r.bus;if(r.events.includes(e)){o.fire(e,t);break}}}}}function Qe(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=Qe(e[n],t[n]));return e}var et={},tt=function(){return tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tt.apply(this,arguments)},nt=De.CloudbaseCache,rt={},ot={};function it(e){var t=e.env,n=e.persistence,r=e.platformInfo,o={accessTokenKey:"access_token_"+t,accessTokenExpireKey:"access_token_expire_"+t,refreshTokenKey:"refresh_token_"+t,anonymousUuidKey:"anonymous_uuid_"+t,loginTypeKey:"login_type_"+t,userInfoKey:"user_info_"+t};rt[t]?rt[t].updatePersistence(n):rt[t]=new nt(tt(tt({},e),{keys:o,platformInfo:r,alwaysLocalKeys:["anonymousUuidKey"]})),ot[t]=ot[t]||new nt(tt(tt({},e),{keys:o,platformInfo:r,persistence:"local"}))}function st(e){return rt[e]}function at(e){return ot[e]}var ct=Pe.setSdkName,ut=Pe.setProtocol,ft="",lt="@cloudbase/js-sdk";var ht,pt="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:",dt="undefined"!=typeof process&&"e2e"===process.env.NODE_ENV&&"pre"===process.env.END_POINT?"//tcb-pre.tencentcloudapi.com/web":"//tcb-api.tencentcloudapi.com/web";function yt(e,t){dt=e,t&&(pt=t,ut(t))}function gt(){return{BASE_URL:dt,PROTOCOL:pt}}!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.CUSTOM="CUSTOM",e.NULL="NULL"}(ht||(ht={}));var vt="loginStateExpire",_t="refreshAccessToken",mt=function(){return mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mt.apply(this,arguments)},wt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},bt=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},Et=Pe.ERRORS,St=Be.genSeqId,It=Be.isFormData,At=Be.formatUrl,Ot=Be.createSign,Nt=Ce.RUNTIME,Tt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"];function xt(e,t,n){var r=e[t];e[t]=function(t){var o={},i={};n.forEach((function(n){var r=n.call(e,t),s=r.data,a=r.headers;Object.assign(o,s),Object.assign(i,a)}));var s=t.data;return s&&function(){if(It(s))for(var e in o)s.append(e,o[e]);else t.data=mt(mt({},s),o)}(),t.headers=mt(mt({},t.headers||{}),i),r.call(e,t)}}function Rt(){var e=St();return{data:{seqId:e},headers:{"X-SDK-Version":"@cloudbase/js-sdk/"+ft,"x-seqid":e}}}var Pt=function(){function e(e){this._throwWhenRequestFail=!1,this.config=e,this._reqClass=new et.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"[@cloudbase/js-sdk] 请求在"+this.config.timeout/1e3+"s内未完成,已中断",restrictedMethods:["post"]}),this._throwWhenRequestFail=e.throw||!1,this._cache=st(this.config.env),this._localCache=at(this.config.env),xt(this._reqClass,"post",[Rt]),xt(this._reqClass,"upload",[Rt]),xt(this._reqClass,"download",[Rt])}return e.prototype.post=function(e){return wt(this,void 0,void 0,(function(){return bt(this,(function(t){switch(t.label){case 0:return[4,this._reqClass.post(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.upload=function(e){return wt(this,void 0,void 0,(function(){return bt(this,(function(t){switch(t.label){case 0:return[4,this._reqClass.upload(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.download=function(e){return wt(this,void 0,void 0,(function(){return bt(this,(function(t){switch(t.label){case 0:return[4,this._reqClass.download(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.refreshAccessToken=function(){return wt(this,void 0,void 0,(function(){var e,t,n;return bt(this,(function(r){switch(r.label){case 0:this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._refreshAccessTokenPromise];case 2:return e=r.sent(),[3,4];case 3:return n=r.sent(),t=n,[3,4];case 4:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return[2,e]}}))}))},e.prototype.getAccessToken=function(){return wt(this,void 0,void 0,(function(){var e,t,n,r,o,i,s,a,c;return bt(this,(function(u){switch(u.label){case 0:return e=this._cache.keys,t=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey,[4,this._cache.getStoreAsync(r)];case 1:if(!u.sent())throw new Error(JSON.stringify({code:Et.OPERATION_FAIL,msg:"refresh token is not exist, your local data might be messed up, please retry after clear localStorage or sessionStorage"}));return[4,this._cache.getStoreAsync(t)];case 2:return o=u.sent(),s=Number,[4,this._cache.getStoreAsync(n)];case 3:return i=s.apply(void 0,[u.sent()]),a=!0,(c=this._shouldRefreshAccessTokenHook)?[4,this._shouldRefreshAccessTokenHook(o,i)]:[3,5];case 4:c=!u.sent(),u.label=5;case 5:return c&&(a=!1),o&&i&&!(i<Date.now())||!a?[3,7]:[4,this.refreshAccessToken()];case 6:return[2,u.sent()];case 7:return[2,{accessToken:o,accessTokenExpire:i}]}}))}))},e.prototype.request=function(e,t,n){return wt(this,void 0,void 0,(function(){var r,o,i,s,a,c,u,f,l,h,p,d,y,g,v,_,m,w,b,E,S,I,A,O,N,T;return bt(this,(function(x){switch(x.label){case 0:return r="x-tcb-trace_"+this.config.env,o="application/x-www-form-urlencoded",i=mt({action:e,dataVersion:"2020-01-10",env:this.config.env},t),-1!==Tt.indexOf(e)?[3,3]:(s=this._cache.keys.refreshTokenKey,[4,this._cache.getStoreAsync(s)]);case 1:return x.sent()?(a=i,[4,this.getAccessToken()]):[3,3];case 2:a.access_token=x.sent().accessToken,x.label=3;case 3:if("storage.uploadFile"===e){for(u in c=new FormData)c.hasOwnProperty(u)&&void 0!==c[u]&&c.append(u,i[u]);o="multipart/form-data"}else for(u in o="application/json;charset=UTF-8",c={},i)void 0!==i[u]&&(c[u]=i[u]);return f={headers:{"content-type":o}},(null==n?void 0:n.onUploadProgress)&&(f.onUploadProgress=n.onUploadProgress),this.config.region&&(f.headers["X-TCB-Region"]=this.config.region),(l=this._localCache.getStore(r))&&(f.headers["X-TCB-Trace"]=l),et.runtime!==Nt.WEB&&(h=this.config,p=h.appSign,d=h.appSecret,y=Date.now(),g=d.appAccessKey,v=d.appAccessKeyId,_=Ot({data:{},timestamp:y,appAccessKeyId:v,appSign:p},g),f.headers["X-TCB-App-Source"]="timestamp="+y+";appAccessKeyId="+v+";appSign="+p+";sign="+_),m=t.parse,w=t.inQuery,b=t.search,E={env:this.config.env},m&&(E.parse=!0),w&&(E=mt(mt({},w),E)),S=gt(),I=S.BASE_URL,A=S.PROTOCOL,O=At(A,I,E),b&&(O+=b),[4,this.post(mt({url:O,data:c},f))];case 4:if(N=x.sent(),(T=N.header&&N.header["x-tcb-trace"])&&this._localCache.setStore(r,T),200!==Number(N.status)&&200!==Number(N.statusCode)||!N.data)throw new Error("network request error");return[2,N]}}))}))},e.prototype.send=function(e,t){return void 0===t&&(t={}),wt(this,void 0,void 0,(function(){var n;return bt(this,(function(r){switch(r.label){case 0:return[4,this.request(e,t,{onUploadProgress:t.onUploadProgress})];case 1:return"ACCESS_TOKEN_EXPIRED"!==(n=r.sent()).data.code||-1!==Tt.indexOf(e)?[3,4]:[4,this.refreshAccessToken()];case 2:return r.sent(),[4,this.request(e,t,{onUploadProgress:t.onUploadProgress})];case 3:n=r.sent(),r.label=4;case 4:if(n.data.code&&this._throwWhenRequestFail)throw new Error(JSON.stringify({code:Et.OPERATION_FAIL,msg:"["+n.data.code+"] "+n.data.message}));return[2,n.data]}}))}))},e.prototype._refreshAccessToken=function(e){return void 0===e&&(e=1),wt(this,void 0,void 0,(function(){var t,n,r,o,i,s,a,c,u,f,l,h,p;return bt(this,(function(d){switch(d.label){case 0:return t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,i=t.loginTypeKey,s=t.anonymousUuidKey,[4,this._cache.removeStoreAsync(n)];case 1:return d.sent(),[4,this._cache.removeStoreAsync(r)];case 2:return d.sent(),[4,this._cache.getStoreAsync(o)];case 3:if(!(a=d.sent()))throw new Error(JSON.stringify({code:Et.INVALID_OPERATION,msg:"not login"}));return c={refresh_token:a},[4,this.request("auth.fetchAccessTokenWithRefreshToken",c)];case 4:return(u=d.sent()).data.code?"SIGN_PARAM_INVALID"!==(f=u.data.code)&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f?[3,11]:[4,this._cache.getStoreAsync(i)]:[3,12];case 5:return d.sent()===ht.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===f?[4,this._cache.getStoreAsync(s)]:[3,9];case 6:return l=d.sent(),[4,this._cache.getStoreAsync(o)];case 7:return h=d.sent(),[4,this.send("auth.signInAnonymously",{anonymous_uuid:l,refresh_token:h})];case 8:if(p=d.sent(),this._setRefreshToken(p.refresh_token),e>=1)return[2,this._refreshAccessToken(--e)];throw new Error(JSON.stringify({code:Et.OPERATION_FAIL,message:"重试获取 refresh token 失败"}));case 9:return zt.fire(vt),[4,this._cache.removeStoreAsync(o)];case 10:d.sent(),d.label=11;case 11:throw new Error(JSON.stringify({code:Et.NETWORK_ERROR,msg:"refresh access_token failed:"+u.data.code}));case 12:return u.data.access_token?(zt.fire(_t),[4,this._cache.setStoreAsync(n,u.data.access_token)]):[3,15];case 13:return d.sent(),[4,this._cache.setStoreAsync(r,u.data.access_token_expire+Date.now())];case 14:return d.sent(),[2,{accessToken:u.data.access_token,accessTokenExpire:u.data.access_token_expire}];case 15:return u.data.refresh_token?[4,this._cache.removeStoreAsync(o)]:[3,19];case 16:return d.sent(),[4,this._cache.setStoreAsync(o,u.data.refresh_token)];case 17:return d.sent(),[4,this._refreshAccessToken()];case 18:d.sent(),d.label=19;case 19:return[2]}}))}))},e.prototype._setRefreshToken=function(e){return wt(this,void 0,void 0,(function(){var t,n,r,o;return bt(this,(function(i){switch(i.label){case 0:return t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,[4,this._cache.removeStoreAsync(n)];case 1:return i.sent(),[4,this._cache.removeStoreAsync(r)];case 2:return i.sent(),[4,this._cache.setStoreAsync(o,e)];case 3:return i.sent(),[2]}}))}))},e}(),kt={};var Ct=function(){return Ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ct.apply(this,arguments)},Lt=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Dt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ut=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},jt=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},Mt=Ce.useAdapters,Bt=Ce.useDefaultAdapter,qt=Ce.RUNTIME,Wt=Pe.ERRORS,Ft=Pe.COMMUNITY_SITE_URL,Ht=Be.printWarn,$t=xe.catchErrorsDecorator,Kt={timeout:15e3,persistence:"local"},Gt=6e5,Vt={},Jt=function(){function e(e){this._config=e||this._config,this.authInstance=null}return Object.defineProperty(e.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"platform",{get:function(){return et},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cache",{get:function(){return st(this._config.env)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localCache",{get:function(){return at(this._config.env)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"request",{get:function(){return e=this._config.env,kt[e];var e},enumerable:!1,configurable:!0}),e.prototype.init=function(t){if(!t.env)throw new Error(JSON.stringify({code:Wt.INVALID_PARAMS,msg:"env must not be specified"}));if(et.adapter||this._useDefaultAdapter(),this.requestClient=new et.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"["+lt+"][REQUEST TIMEOUT] request had been abort since didn't finished within"+t.timeout/1e3+"s"}),et.runtime!==qt.WEB){if(!t.appSecret)throw new Error(JSON.stringify({code:Wt.INVALID_PARAMS,msg:"invalid appSecret"}));var n=et.adapter.getAppSign?et.adapter.getAppSign():"";if(t.appSign&&n&&t.appSign!==n)throw new Error(JSON.stringify({code:Wt.INVALID_PARAMS,msg:"invalid appSign"}));if(n&&(t.appSign=n),!t.appSign)throw new Error(JSON.stringify({code:Wt.INVALID_PARAMS,msg:"invalid appSign"}))}this._config=Ct(Ct({},Kt),t),this._config.timeout=this._formatTimeout(this._config.timeout);var r=this._config,o=r.env,i=r.persistence,s=r.debug,a=r.timeout,c=r.appSecret,u=r.appSign;it({env:o,persistence:i,debug:s,platformInfo:this.platform}),function(e){kt[e.env]=new Pt(mt(mt({},e),{throw:!0}))}({env:o,region:t.region||"",timeout:a,appSecret:c,appSign:u}),t.region&&function(e,t,n){yt(t?"//"+e+"."+t+".tcb-api.tencentcloudapi.com/web":"//"+e+".ap-shanghai.tcb-api.tencentcloudapi.com/web",n)}(o,t.region||"");var f=new e(this._config);return f.requestClient=this.requestClient,f},e.prototype.updateConfig=function(e){var t=e.persistence,n=e.debug;this._config.persistence=t,this._config.debug=n,it({env:this._config.env,persistence:t,debug:n,platformInfo:this.platform})},e.prototype.registerExtension=function(e){Vt[e.name]=e},e.prototype.invokeExtension=function(e,t){return Ut(this,void 0,void 0,(function(){var n;return jt(this,(function(r){switch(r.label){case 0:if(!(n=Vt[e]))throw new Error(JSON.stringify({code:Wt.INVALID_PARAMS,msg:"extension:"+e+" must be registered before invoke"}));return[4,n.invoke(t,this)];case 1:return[2,r.sent()]}}))}))},e.prototype.useAdapters=function(e){var t=Mt(e)||{},n=t.adapter,r=t.runtime;n&&(et.adapter=n),r&&(et.runtime=r)},e.prototype.registerHook=function(t){!function(e,t){var n=t.entity,r=t.target;if(!e.prototype.hasOwnProperty(r))throw new Error(JSON.stringify({code:Ye.INVALID_OPERATION,msg:"target:"+r+" is not exist"}));var o=e.prototype[r];if("function"!=typeof o)throw new Error(JSON.stringify({code:Ye.INVALID_OPERATION,msg:"target:"+r+" is not a function which is the only type supports hook"}));e.prototype[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.call.apply(n,ze([this],e)),o.call.apply(o,ze([this],e))}}(e,t)},e.prototype.registerComponent=function(t){Ze(e,t)},e.prototype.registerVersion=function(e){!function(e){ft=e}(e)},e.prototype.registerSdkName=function(e){!function(e){lt=e,ct(e)}(e)},e.prototype.registerEndPoint=function(e,t){yt(e,t)},e.prototype._useDefaultAdapter=function(){var e=Bt(),t=e.adapter,n=e.runtime;et.adapter=t,et.runtime=n},e.prototype._formatTimeout=function(e){switch(!0){case e>Gt:return Ht(Wt.INVALID_PARAMS,"timeout is greater than maximum value[10min]"),Gt;case e<100:return Ht(Wt.INVALID_PARAMS,"timeout is less than maximum value[100ms]"),100;default:return e}},Lt([$t({mode:"sync",title:"Cloudbase 初始化失败",messages:["请确认以下各项:"," 1 - 调用 cloudbase.init() 的语法或参数是否正确"," 2 - 如果是非浏览器环境,是否配置了安全应用来源(https://docs.cloudbase.net/api-reference/webv2/adapter.html#jie-ru-liu-cheng)","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Ft]}),Dt("design:type",Function),Dt("design:paramtypes",[Object]),Dt("design:returntype",e)],e.prototype,"init",null),Lt([$t({title:"调用扩展能力失败",messages:["请确认以下各项:"," 1 - 调用 invokeExtension() 的语法或参数是否正确"," 2 - 被调用的扩展能力是否已经安装并通过 registerExtension() 注册","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Ft]}),Dt("design:type",Function),Dt("design:paramtypes",[String,Object]),Dt("design:returntype",Promise)],e.prototype,"invokeExtension",null),e}(),zt=new Jt;zt.useAdapters(Je);var Yt,Xt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Zt=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},Qt=function(){function e(e){this._config=e,this._cache=e.cache,this._request=e.request}return e.prototype.checkLocalLoginState=function(){return Xt(this,void 0,void 0,(function(){var e,t,n,r,o,i;return Zt(this,(function(s){switch(s.label){case 0:return e=this._cache.keys,t=e.accessTokenKey,n=e.accessTokenExpireKey,[4,this._cache.getStoreAsync(t)];case 1:return r=s.sent(),[4,this._cache.getStoreAsync(n)];case 2:return o=s.sent(),r?o&&o>Date.now()?[4,(i=new Ur({envId:this._config.env,cache:this._cache,request:this._request})).checkLocalStateAsync()]:[3,4]:[3,7];case 3:return s.sent(),[2,i];case 4:return[4,this._cache.removeStoreAsync(t)];case 5:return s.sent(),[4,this._cache.removeStoreAsync(n)];case 6:s.sent(),s.label=7;case 7:return[2]}}))}))},e.prototype.setRefreshToken=function(e){return Xt(this,void 0,void 0,(function(){var t,n,r,o;return Zt(this,(function(i){switch(i.label){case 0:return t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,o=t.refreshTokenKey,[4,this._cache.removeStoreAsync(n)];case 1:return i.sent(),[4,this._cache.removeStoreAsync(r)];case 2:return i.sent(),[4,this._cache.setStoreAsync(o,e)];case 3:return i.sent(),[2]}}))}))},e.prototype.setAccessToken=function(e,t){return Xt(this,void 0,void 0,(function(){var n,r,o;return Zt(this,(function(i){switch(i.label){case 0:return n=this._cache.keys,r=n.accessTokenKey,o=n.accessTokenExpireKey,[4,this._cache.setStoreAsync(r,e)];case 1:return i.sent(),[4,this._cache.setStoreAsync(o,t)];case 2:return i.sent(),[2]}}))}))},e.prototype.refreshUserInfo=function(){return Xt(this,void 0,void 0,(function(){var e;return Zt(this,(function(t){switch(t.label){case 0:return"auth.getUserInfo",[4,this._request.send("auth.getUserInfo",{})];case 1:return e=t.sent().data,[4,this.setLocalUserInfo(e)];case 2:return t.sent(),[2,e]}}))}))},e.prototype.setLocalUserInfo=function(e){return Xt(this,void 0,void 0,(function(){var t;return Zt(this,(function(n){switch(n.label){case 0:return t=this._cache.keys.userInfoKey,[4,this._cache.setStoreAsync(t,e)];case 1:return n.sent(),[2]}}))}))},e}();!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL",e.PHONE="PHONE"}(Yt||(Yt={}));var en=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tn=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},nn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},rn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},on=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},sn=Pe.getSdkName,an=Pe.ERRORS,cn=Pe.COMMUNITY_SITE_URL,un=Ce.RUNTIME,fn=Be.getQuery,ln=Be.getHash,hn=Be.removeParam,pn=Be.printWarn,dn=xe.catchErrorsDecorator,yn=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i._runtime=t.runtime,i._appid=n,i._scope=r,i._state=o||"weixin",i}return en(t,e),t.prototype.signIn=function(){return rn(this,void 0,void 0,(function(){return on(this,(function(e){return[2,pn(an.OPERATION_FAIL,"API signIn has been deprecated, please use signInWithRedirect insteed")]}))}))},t.prototype.signInWithRedirect=function(){return rn(this,void 0,void 0,(function(){return on(this,(function(e){return[2,this._redirect()]}))}))},t.prototype.getRedirectResult=function(e){return rn(this,void 0,void 0,(function(){var t;return on(this,(function(n){return(t=gn())?[2,this._signInWithCode(t,e)]:[2,null]}))}))},t.prototype.getLinkRedirectResult=function(e){return void 0===e&&(e={}),rn(this,void 0,void 0,(function(){var t,n,r,o,i,s;return on(this,(function(a){return t=e.withUnionId,n=void 0!==t&&t,(r=gn())?(o=this._appid,c=this._scope,i="snsapi_login"===c?"WECHAT-OPEN":"WECHAT-PUBLIC",s=this._runtime===un.WX_MP?"1":"0",[2,this._request.send("auth.linkWithWeixinCode",{payload:{appid:o,loginType:i,code:r,hybridMiniapp:s,withUnionId:n}})]):[2,null];var c}))}))},t.prototype._redirect=function(){var e=hn("code",location.href);e=hn("state",e),e=encodeURIComponent(e);var t="//open.weixin.qq.com/connect/oauth2/authorize";"snsapi_login"===this._scope&&(t="//open.weixin.qq.com/connect/qrconnect");try{location.href=t+"?appid="+this._appid+"&redirect_uri="+e+"&response_type=code&scope="+this._scope+"&state="+this._state+"#wechat_redirect"}catch(e){throw new Error("["+sn()+"]["+an.UNKOWN_ERROR+"]"+e)}},t.prototype._signInWithCode=function(e,t){return rn(this,void 0,void 0,(function(){var n,r,o,i,s,a,c,u;return on(this,(function(f){switch(f.label){case 0:return n=this._cache.keys,r=n.accessTokenKey,o=n.accessTokenExpireKey,i=n.refreshTokenKey,l=this._scope,s="snsapi_login"===l?"WECHAT-OPEN":"WECHAT-PUBLIC",[4,this._getRefreshTokenByWXCode(this._appid,s,e,t)];case 1:return a=f.sent(),c=a.refreshToken,[4,this._cache.setStoreAsync(i,c)];case 2:return f.sent(),a.accessToken?[4,this._cache.setStoreAsync(r,a.accessToken)]:[3,4];case 3:f.sent(),f.label=4;case 4:return a.accessTokenExpire?[4,this._cache.setStoreAsync(o,String(a.accessTokenExpire+Date.now()))]:[3,6];case 5:f.sent(),f.label=6;case 6:return Lr.fire(Mr.LOGIN_STATE_CHANGED),Lr.fire(Mr.LOGIN_TYPE_CHANGED,{env:this._config.env,loginType:Yt.WECHAT,persistence:this._config.persistence}),[4,this.refreshUserInfo()];case 7:return f.sent(),[4,(u=new Ur({envId:this._config.env,cache:this._cache,request:this._request})).checkLocalStateAsync()];case 8:return f.sent(),[2,u]}var l}))}))},t.prototype._getRefreshTokenByWXCode=function(e,t,n,r){return void 0===r&&(r={}),rn(this,void 0,void 0,(function(){var o,i,s,a,c,u;return on(this,(function(f){return o=r.withUnionId,i=void 0!==o&&o,s=r.createUser,a=void 0===s||s,c="snsapi_base"!==this._scope&&(r.syncUserInfo||!1),"auth.signIn",u=this._runtime===un.WX_MP?"1":"0",[2,this._request.send("auth.signIn",{appid:e,loginType:t,hybridMiniapp:u,syncUserInfo:c,loginCredential:n,withUnionId:i,createUser:a}).then((function(e){if(e.code)throw new Error("["+sn()+"]["+an.OPERATION_FAIL+"] failed login via wechat: "+e.code);if(e.refresh_token)return{refreshToken:e.refresh_token,accessToken:e.access_token,accessTokenExpire:e.access_token_expire};throw new Error("["+sn()+"]["+an.OPERATION_FAIL+"] action:getJwt not return refreshToken")}))]}))}))},tn([dn({title:"跳转微信公众号授权失败",messages:["请确认以下各项:"," 1 - 调用 auth().weixinAuthProvider().signInWithRedirect() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+cn]}),nn("design:type",Function),nn("design:paramtypes",[]),nn("design:returntype",Promise)],t.prototype,"signInWithRedirect",null),tn([dn({title:"微信公众号登录失败",messages:["请确认以下各项:"," 1 - 调用 auth().weixinAuthProvider().getRedirectResult() 的语法或参数是否正确"," 2 - 当前环境是否开通了微信公众号登录授权"," 3 - 微信公众号的 AppId 与 AppSecret 配置是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+cn]}),nn("design:type",Function),nn("design:paramtypes",[Object]),nn("design:returntype",Promise)],t.prototype,"getRedirectResult",null),tn([dn({title:"获取微信重定向绑定结果",messages:["请确认以下各项:"," 1 - 调用 auth().weixinAuthProvider().getLinkRedirectResult() 的语法或参数是否正确"," 2 - 当前环境是否开通了微信公众号登录授权"," 3 - 微信公众号的 AppId 与 AppSecret 配置是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+cn]}),nn("design:type",Function),nn("design:paramtypes",[Object]),nn("design:returntype",Promise)],t.prototype,"getLinkRedirectResult",null),t}(Qt);function gn(){return fn("code")||ln("code")}var vn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_n=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},mn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},wn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},bn=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},En=Pe.ERRORS,Sn=Pe.COMMUNITY_SITE_URL,In=Be.throwError,An=Be.isString,On=je.addEventListener,Nn=xe.catchErrorsDecorator,Tn=function(e){function t(t){var n=e.call(this,t)||this;return n._onConverted=n._onConverted.bind(n),On(Mr.ANONYMOUS_CONVERTED,n._onConverted),n}return vn(t,e),t.prototype.signIn=function(){return wn(this,void 0,void 0,(function(){var e,t,n,r,o,i,s;return bn(this,(function(a){switch(a.label){case 0:return[4,this._cache.updatePersistenceAsync("local")];case 1:return a.sent(),e=this._cache.keys,t=e.anonymousUuidKey,n=e.refreshTokenKey,[4,this._cache.getStoreAsync(t)];case 2:return r=a.sent(),[4,this._cache.getStoreAsync(n)];case 3:return o=a.sent(),[4,this._request.send("auth.signInAnonymously",{anonymous_uuid:r,refresh_token:o})];case 4:return(i=a.sent()).uuid&&i.refresh_token?[4,this._setAnonymousUUID(i.uuid)]:[3,10];case 5:return a.sent(),[4,this.setRefreshToken(i.refresh_token)];case 6:return a.sent(),[4,this._request.refreshAccessToken()];case 7:return a.sent(),Lr.fire(Mr.LOGIN_TYPE_CHANGED,{env:this._config.env,loginType:Yt.ANONYMOUS,persistence:"local"}),Lr.fire(Mr.LOGIN_STATE_CHANGED),[4,(s=new Ur({envId:this._config.env,cache:this._cache,request:this._request})).checkLocalStateAsync()];case 8:return a.sent(),[4,s.user.refresh()];case 9:return a.sent(),[2,s];case 10:throw new Error(JSON.stringify({code:En.OPERATION_FAIL,msg:JSON.stringify(i)||"anonymous signIn failed"}))}}))}))},t.prototype.linkAndRetrieveDataWithTicket=function(e){return wn(this,void 0,void 0,(function(){var t,n,r,o,i,s,a;return bn(this,(function(c){switch(c.label){case 0:return An(e)||In(En.INVALID_PARAMS,"ticket must be a string"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,[4,this._cache.getStoreAsync(n)];case 1:return o=c.sent(),[4,this._cache.getStoreAsync(r)];case 2:return i=c.sent(),[4,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:i,ticket:e})];case 3:return(s=c.sent()).refresh_token?[4,this._clearAnonymousUUID()]:[3,8];case 4:return c.sent(),[4,this.setRefreshToken(s.refresh_token)];case 5:return c.sent(),[4,this._request.refreshAccessToken()];case 6:return c.sent(),Lr.fire(Mr.ANONYMOUS_CONVERTED,{env:this._config.env}),Lr.fire(Mr.LOGIN_TYPE_CHANGED,{loginType:Yt.CUSTOM,persistence:"local"}),[4,(a=new Ur({envId:this._config.env,cache:this._cache,request:this._request})).checkLocalStateAsync()];case 7:return c.sent(),[2,a];case 8:In(En.OPERATION_FAIL,JSON.stringify(s)||"linkAndRetrieveDataWithTicket failed"),c.label=9;case 9:return[2]}}))}))},t.prototype._setAnonymousUUID=function(e){return wn(this,void 0,void 0,(function(){var t,n,r;return bn(this,(function(o){switch(o.label){case 0:return t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey,[4,this._cache.removeStoreAsync(n)];case 1:return o.sent(),[4,this._cache.setStoreAsync(n,e)];case 2:return o.sent(),[4,this._cache.setStoreAsync(r,Yt.ANONYMOUS)];case 3:return o.sent(),[2]}}))}))},t.prototype._clearAnonymousUUID=function(){return wn(this,void 0,void 0,(function(){return bn(this,(function(e){switch(e.label){case 0:return[4,this._cache.removeStoreAsync(this._cache.keys.anonymousUuidKey)];case 1:return e.sent(),[2]}}))}))},t.prototype._onConverted=function(e){return wn(this,void 0,void 0,(function(){return bn(this,(function(t){switch(t.label){case 0:return e.data.env!==this._config.env?[2]:[4,this._cache.updatePersistenceAsync(this._config.persistence)];case 1:return t.sent(),[2]}}))}))},_n([Nn({title:"匿名登录失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了匿名登录"," 2 - 调用 auth().anonymouseProvider().signIn() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Sn]}),mn("design:type",Function),mn("design:paramtypes",[]),mn("design:returntype",Promise)],t.prototype,"signIn",null),t}(Qt),xn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rn=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Pn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},kn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Cn=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},Ln=Pe.ERRORS,Dn=Pe.COMMUNITY_SITE_URL,Un=Be.isString,jn=xe.catchErrorsDecorator,Mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xn(t,e),t.prototype.signIn=function(e){return kn(this,void 0,void 0,(function(){var t,n,r,o,i,s,a;return Cn(this,(function(c){switch(c.label){case 0:if(!Un(e))throw new Error(JSON.stringify({code:Ln.INVALID_PARAMS,msg:"ticket must be a string"}));return t=this._cache.keys.refreshTokenKey,o=(r=this._request).send,i=["auth.signInWithTicket"],s={ticket:e},[4,this._cache.getStoreAsync(t)];case 1:return[4,o.apply(r,i.concat([(s.refresh_token=c.sent()||"",s)]))];case 2:return(n=c.sent()).refresh_token?[4,this.setRefreshToken(n.refresh_token)]:[3,7];case 3:return c.sent(),[4,this._request.refreshAccessToken()];case 4:return c.sent(),Lr.fire(Mr.LOGIN_TYPE_CHANGED,{env:this._config.env,loginType:Yt.CUSTOM,persistence:this._config.persistence}),Lr.fire(Mr.LOGIN_STATE_CHANGED),[4,this.refreshUserInfo()];case 5:return c.sent(),[4,(a=new Ur({envId:this._config.env,cache:this._cache,request:this._request})).checkLocalStateAsync()];case 6:return c.sent(),[2,a];case 7:throw new Error(JSON.stringify({code:Ln.OPERATION_FAIL,msg:"custom signIn failed"}))}}))}))},Rn([jn({title:"自定义登录失败",messages:["请确认以下各项:"," 1 - 当前环境是否开启了自定义登录"," 2 - 调用 auth().customAuthProvider().signIn() 的语法或参数是否正确"," 3 - ticket 是否归属于当前环境"," 4 - 创建 ticket 的自定义登录私钥是否过期","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Dn]}),Pn("design:type",Function),Pn("design:paramtypes",[String]),Pn("design:returntype",Promise)],t.prototype,"signIn",null),t}(Qt),Bn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qn=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Fn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Hn=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},$n=Be.throwError,Kn=Be.isString,Gn=Pe.ERRORS,Vn=Pe.COMMUNITY_SITE_URL,Jn=xe.catchErrorsDecorator,zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bn(t,e),t.prototype.signIn=function(e,t){return Fn(this,void 0,void 0,(function(){var n,r,o,i,s;return Hn(this,(function(a){switch(a.label){case 0:return Kn(e)||$n(Gn.INVALID_PARAMS,"email must be a string"),n=this._cache.keys.refreshTokenKey,[4,this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""})];case 1:return r=a.sent(),o=r.refresh_token,i=r.access_token,s=r.access_token_expire,o?[4,this.setRefreshToken(o)]:[3,8];case 2:return a.sent(),i&&s?[4,this.setAccessToken(i,s)]:[3,4];case 3:return a.sent(),[3,6];case 4:return[4,this._request.refreshAccessToken()];case 5:a.sent(),a.label=6;case 6:return[4,this.refreshUserInfo()];case 7:return a.sent(),Lr.fire(Mr.LOGIN_STATE_CHANGED),Lr.fire(Mr.LOGIN_TYPE_CHANGED,{env:this._config.env,loginType:Yt.EMAIL,persistence:this._config.persistence}),[2,new Ur({envId:this._config.env,cache:this._cache,request:this._request})];case 8:r.code?$n(Gn.OPERATION_FAIL,"Email login fail["+r.code+"] "+r.message):$n(Gn.OPERATION_FAIL,"Email login fail"),a.label=9;case 9:return[2]}}))}))},t.prototype.signUp=function(e,t){return Fn(this,void 0,void 0,(function(){return Hn(this,(function(n){return[2,this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})]}))}))},t.prototype.resetPassword=function(e){return Fn(this,void 0,void 0,(function(){return Hn(this,(function(t){return[2,this._request.send("auth.sendPasswordResetEmail",{email:e})]}))}))},t.prototype.resetPasswordWithToken=function(e,t){return Fn(this,void 0,void 0,(function(){return Hn(this,(function(n){return[2,this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})]}))}))},t.prototype.activate=function(e){return Fn(this,void 0,void 0,(function(){return Hn(this,(function(t){return[2,this._request.send("auth.activateEndUserMail",{token:e})]}))}))},qn([Jn({title:"邮箱密码登录失败",messages:["请确认以下各项:"," 1 - 调用 auth().emailAuthProvider() 的语法或参数是否正确"," 2 - 当前环境是否开通了邮箱登录"," 3 - 邮箱地址与密码是否匹配","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Vn]}),Wn("design:type",Function),Wn("design:paramtypes",[String,String]),Wn("design:returntype",Promise)],t.prototype,"signIn",null),qn([Jn({title:"邮箱注册失败",messages:["请确认以下各项:"," 1 - 调用 auth().signUpWithEmailAndPassword() 的语法或参数是否正确"," 2 - 当前环境是否开通了邮箱登录"," 3 - 此邮箱地址是否已经被其他用户占用","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Vn]}),Wn("design:type",Function),Wn("design:paramtypes",[String,String]),Wn("design:returntype",Promise)],t.prototype,"signUp",null),qn([Jn({title:"重置密码失败",messages:["请确认以下各项:"," 1 - 调用 auth().sendPasswordResetEmail() 的语法或参数是否正确"," 2 - 当前环境是否开通了邮箱登录"," 3 - 此邮箱地址是否已经与当前用户绑定"," 4 - 此邮箱地址是否已经被其他用户占用","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Vn]}),Wn("design:type",Function),Wn("design:paramtypes",[String]),Wn("design:returntype",Promise)],t.prototype,"resetPassword",null),qn([Jn({title:"重置密码失败",messages:["请确认以下各项:"," 1 - 调用语法或参数是否正确"," 2 - 当前环境是否开通了邮箱登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Vn]}),Wn("design:type",Function),Wn("design:paramtypes",[String,String]),Wn("design:returntype",Promise)],t.prototype,"resetPasswordWithToken",null),qn([Jn({title:"邮箱激活失败",messages:["请确认以下各项:"," 1 - 调用语法或参数是否正确"," 2 - 当前环境是否开通了邮箱登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Vn]}),Wn("design:type",Function),Wn("design:paramtypes",[String]),Wn("design:returntype",Promise)],t.prototype,"activate",null),t}(Qt),Yn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xn=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Zn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Qn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},er=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},tr=Be.printWarn,nr=Pe.ERRORS,rr=Pe.COMMUNITY_SITE_URL,or=xe.catchErrorsDecorator,ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yn(t,e),t.prototype.signIn=function(e,t){return Qn(this,void 0,void 0,(function(){var n,r,o,i,s,a,c,u,f;return er(this,(function(l){switch(l.label){case 0:if("string"!=typeof e)throw new Error(JSON.stringify({code:nr.INVALID_PARAMS,msg:"username must be a string"}));return"string"!=typeof t&&(t="",tr(nr.INVALID_PARAMS,"password is empty")),n=this._cache.keys.refreshTokenKey,i=(o=this._request).send,s=["auth.signIn"],a={loginType:Yt.USERNAME,username:e,password:t},[4,this._cache.getStoreAsync(n)];case 1:return[4,i.apply(o,s.concat([(a.refresh_token=l.sent()||"",a)]))];case 2:return r=l.sent(),c=r.refresh_token,u=r.access_token_expire,f=r.access_token,c?[4,this.setRefreshToken(c)]:[3,9];case 3:return l.sent(),f&&u?[4,this.setAccessToken(f,u)]:[3,5];case 4:return l.sent(),[3,7];case 5:return[4,this._request.refreshAccessToken()];case 6:l.sent(),l.label=7;case 7:return[4,this.refreshUserInfo()];case 8:return l.sent(),Lr.fire(Mr.LOGIN_STATE_CHANGED),Lr.fire(Mr.LOGIN_TYPE_CHANGED,{env:this._config.env,loginType:Yt.USERNAME,persistence:this._config.persistence}),[2,new Ur({envId:this._config.env,cache:this._cache,request:this._request})];case 9:throw r.code?new Error(JSON.stringify({code:nr.OPERATION_FAIL,msg:"login by username failed:["+r.code+"] "+r.message})):new Error(JSON.stringify({code:nr.OPERATION_FAIL,msg:"login by username failed"}));case 10:return[2]}}))}))},Xn([or({title:"用户名密码登录失败",messages:["请确认以下各项:"," 1 - 调用 auth().signInWithUsernameAndPassword() 的语法或参数是否正确"," 2 - 当前环境是否开通了用户名密码登录"," 3 - 用户名密码是否匹配","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+rr]}),Zn("design:type",Function),Zn("design:paramtypes",[String,String]),Zn("design:returntype",Promise)],t.prototype,"signIn",null),t}(Qt),sr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ar=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},cr=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ur=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},fr=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},lr=Be.throwError,hr=Be.isString,pr=Be.transformPhone,dr=Pe.ERRORS,yr=Pe.COMMUNITY_SITE_URL,gr=xe.catchErrorsDecorator,vr="SIGNIN",_r="SIGNUP",mr="FORCERESETPWD",wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.prototype.signIn=function(e){return ur(this,void 0,void 0,(function(){var t,n,r,o,i,s,a,c,u;return fr(this,(function(f){switch(f.label){case 0:return t=e.phoneNumber,n=e.phoneCode,r=e.password,o=e.signMethod,hr(t)||lr(dr.INVALID_PARAMS,"phoneNumber must be a string"),hr(n)||hr(r)||lr(dr.INVALID_PARAMS,"phoneCode or password must be a string"),o||(o=vr),i=this._cache.keys.refreshTokenKey,[4,this._request.send("auth.signIn",{loginType:Yt.PHONE,phoneNumber:pr(t),phoneCode:n,password:r,refresh_token:this._cache.getStore(i)||"",signMethod:o})];case 1:return s=f.sent(),a=s.refresh_token,c=s.access_token,u=s.access_token_expire,a?[4,this.setRefreshToken(a)]:[3,8];case 2:return f.sent(),c&&u?[4,this.setAccessToken(c,u)]:[3,4];case 3:return f.sent(),[3,6];case 4:return[4,this._request.refreshAccessToken()];case 5:f.sent(),f.label=6;case 6:return[4,this.refreshUserInfo()];case 7:return f.sent(),Lr.fire(Mr.LOGIN_STATE_CHANGED),Lr.fire(Mr.LOGIN_TYPE_CHANGED,{env:this._config.env,loginType:Yt.PHONE,persistence:this._config.persistence}),[2,new Ur({envId:this._config.env,cache:this._cache,request:this._request})];case 8:s.code?lr(dr.OPERATION_FAIL,"Phone login fail["+s.code+"] "+s.message):lr(dr.OPERATION_FAIL,"Phone login fail"),f.label=9;case 9:return[2]}}))}))},t.prototype.signUp=function(e,t,n){return ur(this,void 0,void 0,(function(){return fr(this,(function(r){return[2,this.signIn({phoneNumber:e,phoneCode:t,password:n,signMethod:_r})]}))}))},t.prototype.forceResetPwd=function(e,t,n){return ur(this,void 0,void 0,(function(){return fr(this,(function(r){return[2,this.signIn({phoneNumber:e,phoneCode:t,password:n,signMethod:mr})]}))}))},ar([gr({title:"手机号登录失败",messages:["请确认以下各项:"," 1 - 调用 auth().SmsAuthProvider() 的语法或参数是否正确"," 2 - 当前环境是否开通了短信验证码登录"," 3 - 短信验证码/密码是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+yr]}),cr("design:type",Function),cr("design:paramtypes",[Object]),cr("design:returntype",Promise)],t.prototype,"signIn",null),ar([gr({title:"手机短信注册失败",messages:["请确认以下各项:"," 1 - 调用 auth().signUpWithPhoneCode() 的语法或参数是否正确"," 2 - 当前环境是否开通了短信验证码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+yr]}),cr("design:type",Function),cr("design:paramtypes",[String,String,String]),cr("design:returntype",Promise)],t.prototype,"signUp",null),ar([gr({title:"手机密码重置失败",messages:["请确认以下各项:"," 1 - 调用 auth().forceResetPwd() 的语法或参数是否正确"," 2 - 当前环境是否开通了短信验证码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+yr]}),cr("design:type",Function),cr("design:paramtypes",[String,String,String]),cr("design:returntype",Promise)],t.prototype,"forceResetPwd",null),t}(Qt),br=function(){return br=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},br.apply(this,arguments)},Er=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Sr=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ir=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Ar=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},Or=je.CloudbaseEventEmitter,Nr=Ce.RUNTIME,Tr=Be.printWarn,xr=Be.throwError,Rr=Be.transformPhone,Pr=Pe.ERRORS,kr=Pe.COMMUNITY_SITE_URL,Cr=xe.catchErrorsDecorator,Lr=new Or,Dr=function(){function e(e){var t=e.cache,n=e.request;this._cache=t,this._request=n,this._setUserInfo()}return e.prototype.checkLocalInfo=function(){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(e){return this.uid=this._getLocalUserInfo("uid"),this.loginType=this._getLocalUserInfo("loginType"),this.openid=this._getLocalUserInfo("wxOpenId"),this.wxOpenId=this._getLocalUserInfo("wxOpenId"),this.wxPublicId=this._getLocalUserInfo("wxPublicId"),this.unionId=this._getLocalUserInfo("wxUnionId"),this.qqMiniOpenId=this._getLocalUserInfo("qqMiniOpenId"),this.customUserId=this._getLocalUserInfo("customUserId"),this.nickName=this._getLocalUserInfo("nickName"),this.gender=this._getLocalUserInfo("gender"),this.avatarUrl=this._getLocalUserInfo("avatarUrl"),this.email=this._getLocalUserInfo("email"),this.hasPassword=Boolean(this._getLocalUserInfo("hasPassword")),this.phone=this._getLocalUserInfo("phone"),this.username=this._getLocalUserInfo("username"),this.location={country:this._getLocalUserInfo("country"),province:this._getLocalUserInfo("province"),city:this._getLocalUserInfo("city")},[2]}))}))},e.prototype.checkLocalInfoAsync=function(){return Ir(this,void 0,void 0,(function(){var e,t,n,r,o,i,s,a,c,u,f,l,h,p,d,y,g,v;return Ar(this,(function(_){switch(_.label){case 0:return e=this,[4,this._getLocalUserInfoAsync("uid")];case 1:return e.uid=_.sent(),t=this,[4,this._getLocalUserInfoAsync("loginType")];case 2:return t.loginType=_.sent(),n=this,[4,this._getLocalUserInfoAsync("wxOpenId")];case 3:return n.openid=_.sent(),r=this,[4,this._getLocalUserInfoAsync("wxOpenId")];case 4:return r.wxOpenId=_.sent(),o=this,[4,this._getLocalUserInfoAsync("wxPublicId")];case 5:return o.wxPublicId=_.sent(),i=this,[4,this._getLocalUserInfoAsync("wxUnionId")];case 6:return i.unionId=_.sent(),s=this,[4,this._getLocalUserInfoAsync("qqMiniOpenId")];case 7:return s.qqMiniOpenId=_.sent(),a=this,[4,this._getLocalUserInfoAsync("customUserId")];case 8:return a.customUserId=_.sent(),c=this,[4,this._getLocalUserInfoAsync("nickName")];case 9:return c.nickName=_.sent(),u=this,[4,this._getLocalUserInfoAsync("gender")];case 10:return u.gender=_.sent(),f=this,[4,this._getLocalUserInfoAsync("avatarUrl")];case 11:return f.avatarUrl=_.sent(),l=this,[4,this._getLocalUserInfoAsync("email")];case 12:return l.email=_.sent(),h=this,p=Boolean,[4,this._getLocalUserInfoAsync("hasPassword")];case 13:return h.hasPassword=p.apply(void 0,[_.sent()]),d=this,[4,this._getLocalUserInfoAsync("phone")];case 14:return d.phone=_.sent(),y=this,[4,this._getLocalUserInfoAsync("username")];case 15:return y.username=_.sent(),g=this,v={},[4,this._getLocalUserInfoAsync("country")];case 16:return v.country=_.sent(),[4,this._getLocalUserInfoAsync("province")];case 17:return v.province=_.sent(),[4,this._getLocalUserInfoAsync("city")];case 18:return g.location=(v.city=_.sent(),v),[2]}}))}))},e.prototype.linkWithTicket=function(e){if("string"!=typeof e)throw new Error("ticket must be string");return this._request.send("auth.linkWithTicket",{ticket:e})},e.prototype.linkWithRedirect=function(e){e.signInWithRedirect()},e.prototype.getLinkedUidList=function(){return Ir(this,void 0,void 0,(function(){var e,t,n,r,o,i;return Ar(this,(function(s){switch(s.label){case 0:return[4,this._request.send("auth.getLinkedUidList",{})];case 1:for(e=s.sent().data,t=!1,n=e.users,r=0,o=n;r<o.length;r++)if((i=o[r]).wxOpenId&&i.wxPublicId){t=!0;break}return[2,{users:n,hasPrimaryUid:t}]}}))}))},e.prototype.setPrimaryUid=function(e){return this._request.send("auth.setPrimaryUid",{uid:e})},e.prototype.unlink=function(e){return this._request.send("auth.unlink",{platform:e})},e.prototype.update=function(e){return Ir(this,void 0,void 0,(function(){var t,n,r,o,i,s,a;return Ar(this,(function(c){switch(c.label){case 0:return t=e.nickName,n=e.gender,r=e.avatarUrl,o=e.province,i=e.country,s=e.city,[4,this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:r,province:o,country:i,city:s})];case 1:return a=c.sent().data,this._setLocalUserInfo(a),[2]}}))}))},e.prototype.updatePassword=function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})},e.prototype.updateEmail=function(e,t){return this._request.send("auth.updateEmail",{newEmail:e,password:t})},e.prototype.updateUsername=function(e){return"string"!=typeof e&&xr(Pr.INVALID_PARAMS,"username must be a string"),this._request.send("auth.updateUsername",{username:e})},e.prototype.refresh=function(){return Ir(this,void 0,void 0,(function(){var e;return Ar(this,(function(t){switch(t.label){case 0:return"auth.getUserInfo",[4,this._request.send("auth.getUserInfo",{})];case 1:return e=t.sent().data,this._setLocalUserInfo(e),[2,e]}}))}))},e.prototype.linkWithPhoneNumber=function(e,t){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(n){return[2,this._request.send("auth.linkOrUpdatePhoneNumber",{phoneNumber:Rr(e),phoneCode:t})]}))}))},e.prototype.updatePhoneNumber=function(e,t){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(n){return[2,this._request.send("auth.linkOrUpdatePhoneNumber",{phoneNumber:Rr(e),phoneCode:t})]}))}))},e.prototype._getLocalUserInfo=function(e){var t=this._cache.keys.userInfoKey;return this._cache.getStore(t)[e]},e.prototype._getLocalUserInfoAsync=function(e){return Ir(this,void 0,void 0,(function(){var t;return Ar(this,(function(n){switch(n.label){case 0:return t=this._cache.keys.userInfoKey,[4,this._cache.getStoreAsync(t)];case 1:return[2,n.sent()[e]]}}))}))},e.prototype._setUserInfo=function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl","phone","username"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}},e.prototype._setLocalUserInfo=function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this._setUserInfo()},Er([Cr({title:"绑定自定义登录失败",messages:["请确认以下各项:"," 1 - 调用 User.linkWithTicket() 的语法或参数是否正确"," 2 - 此账户是否已经绑定自定义登录"," 3 - ticket 参数是否归属当前环境"," 4 - 创建 ticket 的自定义登录私钥是否过期","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[String]),Sr("design:returntype",Promise)],e.prototype,"linkWithTicket",null),Er([Cr({title:"绑定第三方登录方式失败",messages:["请确认以下各项:"," 1 - 调用 User.linkWithRedirect() 的语法或参数是否正确"," 2 - 此账户是否已经绑定此第三方"," 3 - 此第三方是否已经授权","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[Object]),Sr("design:returntype",void 0)],e.prototype,"linkWithRedirect",null),Er([Cr({title:"获取账户列表失败",messages:["请确认以下各项:"," 1 - 调用 User.getLinkedUidList() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[]),Sr("design:returntype",Promise)],e.prototype,"getLinkedUidList",null),Er([Cr({title:"设置微信主账号失败",messages:["请确认以下各项:"," 1 - 调用 User.setPrimaryUid() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[String]),Sr("design:returntype",void 0)],e.prototype,"setPrimaryUid",null),Er([Cr({title:"接触绑定失败",messages:["请确认以下各项:"," 1 - 调用 User.unlink() 的语法或参数是否正确"," 2 - 当前账户是否已经与此登录方式解绑","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[String]),Sr("design:returntype",void 0)],e.prototype,"unlink",null),Er([Cr({title:"更新用户信息失败",messages:["请确认以下各项:"," 1 - 调用 User.update() 的语法或参数是否正确"," 2 - 用户信息中是否包含非法值","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[Object]),Sr("design:returntype",Promise)],e.prototype,"update",null),Er([Cr({title:"更新密码失败",messages:["请确认以下各项:"," 1 - 调用 User.updatePassword() 的语法或参数是否正确"," 3 - 新密码中是否包含非法字符","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[String,String]),Sr("design:returntype",void 0)],e.prototype,"updatePassword",null),Er([Cr({title:"更新邮箱地址失败",messages:["请确认以下各项:"," 1 - 调用 User.updateEmail() 的语法或参数是否正确"," 2 - 当前环境是否开通了邮箱密码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[String,String]),Sr("design:returntype",void 0)],e.prototype,"updateEmail",null),Er([Cr({title:"更新用户名失败",messages:["请确认以下各项:"," 1 - 调用 User.updateUsername() 的语法或参数是否正确"," 2 - 当前环境是否开通了用户名密码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[String]),Sr("design:returntype",void 0)],e.prototype,"updateUsername",null),Er([Cr({title:"刷新本地用户信息失败",messages:["请确认以下各项:"," 1 - 调用 User.refresh() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[]),Sr("design:returntype",Promise)],e.prototype,"refresh",null),Er([Cr({title:"绑定手机号失败",messages:["请确认以下各项:"," 1 - 调用 auth().linkWithPhoneNumber() 的语法或参数是否正确"," 2 - 当前环境是否开通了短信验证码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[String,String]),Sr("design:returntype",Promise)],e.prototype,"linkWithPhoneNumber",null),Er([Cr({title:"更新手机号失败",messages:["请确认以下各项:"," 1 - 调用语法或参数是否正确"," 2 - 当前环境是否开通了短信验证码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[String,String]),Sr("design:returntype",Promise)],e.prototype,"updatePhoneNumber",null),e}(),Ur=function(){function e(e){var t=e.envId,n=e.cache,r=e.request;t||xr(Pr.INVALID_PARAMS,"envId is not defined"),this._cache=n,this.user=new Dr({cache:n,request:r})}return e.prototype.checkLocalState=function(){return Ir(this,void 0,void 0,(function(){var e,t,n,r,o,i,s;return Ar(this,(function(a){return e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=e.accessTokenExpireKey,o=this._cache.getStore(t),i=this._cache.getStore(n),s=this._cache.getStore(r),this.credential={refreshToken:o,accessToken:i,accessTokenExpire:s},this._loginType=this._cache.getStore(this._cache.keys.loginTypeKey),this.user.checkLocalInfo(),[2]}))}))},e.prototype.checkLocalStateAsync=function(){return Ir(this,void 0,void 0,(function(){var e,t,n,r,o,i,s,a;return Ar(this,(function(c){switch(c.label){case 0:return e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=e.accessTokenExpireKey,[4,this._cache.getStoreAsync(t)];case 1:return o=c.sent(),[4,this._cache.getStoreAsync(n)];case 2:return i=c.sent(),[4,this._cache.getStoreAsync(r)];case 3:return s=c.sent(),this.credential={refreshToken:o,accessToken:i,accessTokenExpire:s},a=this,[4,this._cache.getStoreAsync(this._cache.keys.loginTypeKey)];case 4:return a._loginType=c.sent(),[4,this.user.checkLocalInfoAsync()];case 5:return c.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"isAnonymousAuth",{get:function(){return this.loginType===Yt.ANONYMOUS},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCustomAuth",{get:function(){return this.loginType===Yt.CUSTOM},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWeixinAuth",{get:function(){return this.loginType===Yt.WECHAT||this.loginType===Yt.WECHAT_OPEN||this.loginType===Yt.WECHAT_PUBLIC},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUsernameAuth",{get:function(){return this.loginType===Yt.USERNAME},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loginType",{get:function(){return this._loginType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPhoneAuth",{get:function(){return this.loginType===Yt.PHONE},enumerable:!1,configurable:!0}),e}(),jr=function(){function e(e){this._config=e,this._cache=e.cache,this._request=e.request,this._runtime=e.runtime||Nr.WEB,Lr.on(Mr.LOGIN_TYPE_CHANGED,this._onLoginTypeChanged.bind(this))}return Object.defineProperty(e.prototype,"currentUser",{get:function(){if("async"!==this._cache.mode){var e=this.hasLoginState();return e&&e.user||null}Tr(Pr.INVALID_OPERATION,"current platform's storage is asynchronous, please use getCurrenUser insteed")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loginType",{get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)},enumerable:!1,configurable:!0}),e.prototype.getCurrenUser=function(){return Ir(this,void 0,void 0,(function(){var e;return Ar(this,(function(t){switch(t.label){case 0:return[4,this.getLoginState()];case 1:return(e=t.sent())?[4,e.user.checkLocalInfoAsync()]:[3,3];case 2:return t.sent(),[2,e.user||null];case 3:return[2,null]}}))}))},e.prototype.getLoginType=function(){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(e){switch(e.label){case 0:return[4,this._cache.getStoreAsync(this._cache.keys.loginTypeKey)];case 1:return[2,e.sent()]}}))}))},e.prototype.getAccessToken=function(){return Ir(this,void 0,void 0,(function(){var e;return Ar(this,(function(t){switch(t.label){case 0:return e={},[4,this._request.getAccessToken()];case 1:return[2,(e.accessToken=t.sent().accessToken,e.env=this._config.env,e)]}}))}))},e.prototype.weixinAuthProvider=function(e){var t=e.appid,n=e.scope,r=e.state;return this._weixinAuthProvider||(this._weixinAuthProvider=new yn(br(br({},this._config),{cache:this._cache,request:this._request,runtime:this._runtime}),t,n,r)),this._weixinAuthProvider},e.prototype.anonymousAuthProvider=function(){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Tn(br(br({},this._config),{cache:this._cache,request:this._request}))),this._anonymousAuthProvider},e.prototype.customAuthProvider=function(){return this._customAuthProvider||(this._customAuthProvider=new Mn(br(br({},this._config),{cache:this._cache,request:this._request}))),this._customAuthProvider},e.prototype.emailAuthProvider=function(){return this._emailAuthProvider||(this._emailAuthProvider=new zn(br(br({},this._config),{cache:this._cache,request:this._request}))),this._emailAuthProvider},e.prototype.usernameAuthProvider=function(){return this._usernameAuthProvider||(this._usernameAuthProvider=new ir(br(br({},this._config),{cache:this._cache,request:this._request}))),this._usernameAuthProvider},e.prototype.phoneAuthProvider=function(){return this._phoneAuthProvider||(this._phoneAuthProvider=new wr(br(br({},this._config),{cache:this._cache,request:this._request}))),this._phoneAuthProvider},e.prototype.signInWithUsernameAndPassword=function(e,t){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(n){return[2,this.usernameAuthProvider().signIn(e,t)]}))}))},e.prototype.isUsernameRegistered=function(e){return Ir(this,void 0,void 0,(function(){var t;return Ar(this,(function(n){switch(n.label){case 0:return"string"!=typeof e&&xr(Pr.INVALID_PARAMS,"username must be a string"),[4,this._request.send("auth.isUsernameRegistered",{username:e})];case 1:return[2,null==(t=n.sent().data)?void 0:t.isRegistered]}}))}))},e.prototype.signInWithEmailAndPassword=function(e,t){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(n){return[2,this.emailAuthProvider().signIn(e,t)]}))}))},e.prototype.signUpWithEmailAndPassword=function(e,t){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(n){return[2,this.emailAuthProvider().signUp(e,t)]}))}))},e.prototype.sendPasswordResetEmail=function(e){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(t){return[2,this.emailAuthProvider().resetPassword(e)]}))}))},e.prototype.signOut=function(){return Ir(this,void 0,void 0,(function(){var e,t,n,r,o,i,s;return Ar(this,(function(a){switch(a.label){case 0:return e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=e.accessTokenExpireKey,o="auth.logout",[4,this._cache.getStoreAsync(t)];case 1:return(i=a.sent())?[4,this._request.send(o,{refresh_token:i})]:[2];case 2:return s=a.sent(),this._cache.removeStoreAsync(t),this._cache.removeStoreAsync(n),this._cache.removeStoreAsync(r),Lr.fire(Mr.LOGIN_STATE_CHANGED),Lr.fire(Mr.LOGIN_TYPE_CHANGED,{env:this._config.env,loginType:Yt.NULL,persistence:this._config.persistence}),[2,s]}}))}))},e.prototype.onLoginStateChanged=function(e){return Ir(this,void 0,void 0,(function(){var t,n=this;return Ar(this,(function(r){switch(r.label){case 0:return Lr.on(Mr.LOGIN_STATE_CHANGED,(function(){return Ir(n,void 0,void 0,(function(){var t;return Ar(this,(function(n){switch(n.label){case 0:return[4,this.getLoginState()];case 1:return t=n.sent(),e.call(this,t),[2]}}))}))})),[4,this.getLoginState()];case 1:return t=r.sent(),e.call(this,t),[2]}}))}))},e.prototype.onLoginStateExpired=function(e){Lr.on(Mr.LOGIN_STATE_EXPIRED,e.bind(this))},e.prototype.onAccessTokenRefreshed=function(e){Lr.on(Mr.ACCESS_TOKEN_REFRESHD,e.bind(this))},e.prototype.onAnonymousConverted=function(e){Lr.on(Mr.ANONYMOUS_CONVERTED,e.bind(this))},e.prototype.onLoginTypeChanged=function(e){var t=this;Lr.on(Mr.LOGIN_TYPE_CHANGED,(function(){return Ir(t,void 0,void 0,(function(){var t;return Ar(this,(function(n){switch(n.label){case 0:return[4,this.getLoginState()];case 1:return t=n.sent(),e.call(this,t),[2]}}))}))}))},e.prototype.hasLoginState=function(){if("async"!==this._cache.mode){var e=this._cache.keys.refreshTokenKey;if(this._cache.getStore(e)){var t=new Ur({envId:this._config.env,cache:this._cache,request:this._request});return t.checkLocalState(),t}return null}Tr(Pr.INVALID_OPERATION,"current platform's storage is asynchronous, please use getLoginState insteed")},e.prototype.getLoginState=function(){return Ir(this,void 0,void 0,(function(){var e,t;return Ar(this,(function(n){switch(n.label){case 0:return e=this._cache.keys.refreshTokenKey,[4,this._cache.getStoreAsync(e)];case 1:return n.sent()?[4,(t=new Ur({envId:this._config.env,cache:this._cache,request:this._request})).checkLocalStateAsync()]:[3,3];case 2:return n.sent(),[2,t];case 3:return[2,null]}}))}))},e.prototype.shouldRefreshAccessToken=function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)},e.prototype.getUserInfo=function(){return Ir(this,void 0,void 0,(function(){var e;return Ar(this,(function(t){switch(t.label){case 0:return"auth.getUserInfo",[4,this._request.send("auth.getUserInfo",{})];case 1:return(e=t.sent()).code?[2,e]:[2,br(br({},e.data),{requestId:e.seqId})]}}))}))},e.prototype.getAuthHeader=function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}},e.prototype.getAuthHeaderAsync=function(){return Ir(this,void 0,void 0,(function(){var e,t,n,r;return Ar(this,(function(o){switch(o.label){case 0:return[4,this._request.refreshAccessToken()];case 1:return o.sent(),e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,[4,this._cache.getStoreAsync(t)];case 2:return r=o.sent(),[4,this._cache.getStoreAsync(n)];case 3:return[2,{"x-cloudbase-credentials":o.sent()+"/@@/"+r}]}}))}))},e.prototype.sendPhoneCode=function(e){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(t){switch(t.label){case 0:return[4,this._request.send("auth.sendPhoneCode",{phoneNumber:Rr(e)})];case 1:return[2,"Ok"===t.sent().data.SendStatus]}}))}))},e.prototype.signUpWithPhoneCode=function(e,t,n){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(r){return[2,this.phoneAuthProvider().signUp(e,t,n)]}))}))},e.prototype.signInWithPhoneCodeOrPassword=function(e){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(t){return[2,this.phoneAuthProvider().signIn(e)]}))}))},e.prototype.forceResetPwdByPhoneCode=function(e){return Ir(this,void 0,void 0,(function(){return Ar(this,(function(t){return[2,this.phoneAuthProvider().signIn(br(br({},e),{signMethod:mr}))]}))}))},e.prototype._onLoginTypeChanged=function(e){return Ir(this,void 0,void 0,(function(){var t,n,r;return Ar(this,(function(o){switch(o.label){case 0:return t=e.data,n=t.loginType,r=t.persistence,t.env!==this._config.env?[2]:[4,this._cache.updatePersistenceAsync(r)];case 1:return o.sent(),[4,this._cache.setStoreAsync(this._cache.keys.loginTypeKey,n)];case 2:return o.sent(),[2]}}))}))},Er([Cr({title:"获取用户信息失败",messages:["请确认以下各项:"," 1 - 调用 auth().getCurrenUser() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[]),Sr("design:returntype",Promise)],e.prototype,"getCurrenUser",null),Er([Cr({title:"获取用户是否被占用失败",messages:["请确认以下各项:"," 1 - 调用 auth().isUsernameRegistered() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[String]),Sr("design:returntype",Promise)],e.prototype,"isUsernameRegistered",null),Er([Cr({title:"用户登出失败",messages:["请确认以下各项:"," 1 - 调用 auth().signOut() 的语法或参数是否正确"," 2 - 当前用户是否为匿名登录(匿名登录不支持signOut)","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[]),Sr("design:returntype",Promise)],e.prototype,"signOut",null),Er([Cr({title:"获取本地登录态失败",messages:["请确认以下各项:"," 1 - 调用 auth().getLoginState() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[]),Sr("design:returntype",Promise)],e.prototype,"getLoginState",null),Er([Cr({title:"获取用户信息失败",messages:["请确认以下各项:"," 1 - 是否已登录"," 2 - 调用 auth().getUserInfo() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[]),Sr("design:returntype",Promise)],e.prototype,"getUserInfo",null),Er([Cr({title:"发送短信验证码失败",messages:["请确认以下各项:"," 1 - 调用语法或参数是否正确"," 2 - 当前环境是否开通了短信验证码登录","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+kr]}),Sr("design:type",Function),Sr("design:paramtypes",[String]),Sr("design:returntype",Promise)],e.prototype,"sendPhoneCode",null),e}(),Mr={LOGIN_STATE_CHANGED:"loginStateChanged",LOGIN_STATE_EXPIRED:"loginStateExpire",LOGIN_TYPE_CHANGED:"loginTypeChanged",ANONYMOUS_CONVERTED:"anonymousConverted",ACCESS_TOKEN_REFRESHD:"refreshAccessToken"},Br={name:"auth",namespace:"auth",injectEvents:{bus:Lr,events:[Mr.LOGIN_TYPE_CHANGED,Mr.LOGIN_STATE_EXPIRED,Mr.LOGIN_STATE_CHANGED,Mr.ACCESS_TOKEN_REFRESHD,Mr.ANONYMOUS_CONVERTED]},entity:function(e){if(void 0===e&&(e={region:"",persistence:"local"}),this.authInstance)return Tr(Pr.INVALID_OPERATION,"every cloudbase instance should has only one auth object"),this.authInstance;var t=this.platform,n=t.adapter,r=t.runtime,o=e.persistence||n.primaryStorage;o&&o!==this.config.persistence&&this.updateConfig({persistence:o});var i=this.config,s=i.env,a=i.persistence,c=i.debug;return this.authInstance=new jr({env:s,region:e.region,persistence:a,debug:c,cache:this.cache,request:this.request,runtime:r}),this.authInstance}};try{cloudbase.registerComponent(Br)}catch(e){}var qr=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Wr=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Fr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Hr=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},$r=Pe.getSdkName,Kr=Pe.ERRORS,Gr=Pe.COMMUNITY_SITE_URL,Vr=Be.execCallback,Jr=xe.catchErrorsDecorator,zr="functions",Yr=function(){function e(){}return e.prototype.callFunction=function(e,t){return Fr(this,void 0,void 0,(function(){var n,r,o,i,s,a,c,u,f,l,h,p;return Hr(this,(function(d){switch(d.label){case 0:if(n=e.name,r=e.data,o=e.query,i=e.parse,s=e.search,!n)throw new Error(JSON.stringify({code:Kr.INVALID_PARAMS,msg:"["+zr+".callFunction] invalid function name"}));try{a=r?JSON.stringify(r):""}catch(e){throw new Error(JSON.stringify({code:Kr.INVALID_PARAMS,msg:"["+zr+".callFunction] invalid data"}))}c="functions.invokeFunction",u={inQuery:o,parse:i,search:s,function_name:n,request_data:a},f=this.request,d.label=1;case 1:return d.trys.push([1,3,,4]),[4,f.send(c,u)];case 2:if((l=d.sent()).code)return[2,Vr(t,null,l)];if(h=l.data.response_data,i)return[2,Vr(t,null,{result:h,requestId:l.requestId})];try{return h=JSON.parse(l.data.response_data),[2,Vr(t,null,{result:h,requestId:l.requestId})]}catch(e){Vr(t,new Error("["+$r()+"]["+Kr.INVALID_PARAMS+"]["+zr+".callFunction] response data must be json"))}return[3,4];case 3:return p=d.sent(),Vr(t,p),[3,4];case 4:return[2]}}))}))},qr([Jr({customInfo:{className:"Cloudbase",methodName:"callFunction"},title:"函数调用失败",messages:["请确认以下各项:"," 1 - 调用 callFunction() 的语法或参数是否正确"," 2 - 当前环境下是否存在此函数"," 3 - 函数安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Gr]}),Wr("design:type",Function),Wr("design:paramtypes",[Object,Function]),Wr("design:returntype",Promise)],e.prototype,"callFunction",null),e}(),Xr=new Yr,Zr={name:zr,entity:{callFunction:Xr.callFunction}};try{cloudbase.registerComponent(Zr)}catch(e){}var Qr=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},eo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},to=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},no=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},ro=Pe.getSdkName,oo=Pe.ERRORS,io=Pe.COMMUNITY_SITE_URL,so=Be.isArray,ao=Be.isString,co=Be.isPalinObject,uo=Be.execCallback,fo=xe.catchErrorsDecorator,lo="storage",ho=function(){function e(){}return e.prototype.uploadFile=function(e,t){return to(this,void 0,void 0,(function(){var n,r,o,i,s,a,c,u,f,l,h,p,d,y,g;return no(this,(function(v){switch(v.label){case 0:if(n=e.cloudPath,r=e.filePath,o=e.onUploadProgress,!ao(n)||!r)throw new Error(JSON.stringify({code:oo.INVALID_PARAMS,msg:"["+lo+".uploadFile] invalid params"}));return"storage.getUploadMetadata",[4,(i=this.request).send("storage.getUploadMetadata",{path:n})];case 1:return s=v.sent(),a=s.data,c=a.url,u=a.authorization,f=a.token,l=a.fileId,h=a.cosFileId,p=a.download_url,d=s.requestId,y={key:n,signature:u,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":f},[4,i.upload({url:c,data:y,file:r,name:n,onUploadProgress:o})];case 2:return 201===(g=v.sent()).statusCode?[2,uo(t,null,{fileID:l,download_url:p,requestId:d})]:[2,uo(t,new Error("["+ro()+"]["+oo.OPERATION_FAIL+"]["+lo+"]:"+g.data))]}}))}))},e.prototype.getUploadMetadata=function(e,t){return to(this,void 0,void 0,(function(){var n,r,o,i,s;return no(this,(function(a){switch(a.label){case 0:if(n=e.cloudPath,!ao(n))throw new Error(JSON.stringify({code:oo.INVALID_PARAMS,msg:"["+lo+".getUploadMetadata] invalid cloudPath"}));r=this.request,o="storage.getUploadMetadata",a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r.send(o,{path:n})];case 2:return i=a.sent(),[2,uo(t,null,i)];case 3:return s=a.sent(),[2,uo(t,s)];case 4:return[2]}}))}))},e.prototype.deleteFile=function(e,t){return to(this,void 0,void 0,(function(){var n,r,o,i,s,a;return no(this,(function(c){switch(c.label){case 0:if(!(n=e.fileList)||!so(n)||0===n.length)throw new Error(JSON.stringify({code:oo.INVALID_PARAMS,msg:"["+lo+".deleteFile] fileList must not be empty"}));for(r=0,o=n;r<o.length;r++)if(!(i=o[r])||!ao(i))throw new Error(JSON.stringify({code:oo.INVALID_PARAMS,msg:"["+lo+".deleteFile] fileID must be string"}));return"storage.batchDeleteFile",[4,this.request.send("storage.batchDeleteFile",{fileid_list:n})];case 1:return(s=c.sent()).code?[2,uo(t,null,s)]:(a={fileList:s.data.delete_list,requestId:s.requestId},[2,uo(t,null,a)])}}))}))},e.prototype.getTempFileURL=function(e,t){return to(this,void 0,void 0,(function(){var n,r,o,i,s,a;return no(this,(function(c){switch(c.label){case 0:if(!(n=e.fileList)||!so(n)||0===n.length)throw new Error(JSON.stringify({code:oo.INVALID_PARAMS,msg:"["+lo+".getTempFileURL] fileList must not be empty"}));for(r=[],o=0,i=n;o<i.length;o++)if(s=i[o],co(s)){if(!s.hasOwnProperty("fileID")||!s.hasOwnProperty("maxAge"))throw new Error(JSON.stringify({code:oo.INVALID_PARAMS,msg:"["+lo+".getTempFileURL] file info must include fileID and maxAge"}));r.push({fileid:s.fileID,max_age:s.maxAge})}else{if(!ao(s))throw new Error(JSON.stringify({code:oo.INVALID_PARAMS,msg:"["+lo+".getTempFileURL] invalid fileList"}));r.push({fileid:s})}return"storage.batchGetDownloadUrl",[4,this.request.send("storage.batchGetDownloadUrl",{file_list:r})];case 1:return(a=c.sent()).code?[2,uo(t,null,a)]:[2,uo(t,null,{fileList:a.data.download_list,requestId:a.requestId})]}}))}))},e.prototype.downloadFile=function(e,t){return to(this,void 0,void 0,(function(){var n,r,o,i,s,a;return no(this,(function(c){switch(c.label){case 0:if(n=e.fileID,!ao(n))throw new Error(JSON.stringify({code:oo.INVALID_PARAMS,msg:"["+lo+".getTempFileURL] fileID must be string"}));return[4,this.getTempFileURL.call(this,{fileList:[{fileID:n,maxAge:600}]})];case 1:return r=c.sent(),"SUCCESS"!==(o=r.fileList[0]).code?[2,uo(t,o)]:(i=this.request,s=encodeURI(o.download_url),[4,i.download({url:s})]);case 2:return a=c.sent(),[2,uo(t,null,a)]}}))}))},Qr([fo({customInfo:{className:"Cloudbase",methodName:"uploadFile"},title:"上传文件失败",messages:["请确认以下各项:"," 1 - 调用 uploadFile() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+io]}),eo("design:type",Function),eo("design:paramtypes",[Object,Function]),eo("design:returntype",Promise)],e.prototype,"uploadFile",null),Qr([fo({customInfo:{className:"Cloudbase",methodName:"getUploadMetadata"},title:"获取上传元信息失败",messages:["请确认以下各项:"," 1 - 调用 getUploadMetadata() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+io]}),eo("design:type",Function),eo("design:paramtypes",[Object,Function]),eo("design:returntype",Promise)],e.prototype,"getUploadMetadata",null),Qr([fo({customInfo:{className:"Cloudbase",methodName:"deleteFile"},title:"删除文件失败",messages:["请确认以下各项:"," 1 - 调用 deleteFile() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+io]}),eo("design:type",Function),eo("design:paramtypes",[Object,Function]),eo("design:returntype",Promise)],e.prototype,"deleteFile",null),Qr([fo({customInfo:{className:"Cloudbase",methodName:"getTempFileURL"},title:"获取文件下载链接",messages:["请确认以下各项:"," 1 - 调用 getTempFileURL() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+io]}),eo("design:type",Function),eo("design:paramtypes",[Object,Function]),eo("design:returntype",Promise)],e.prototype,"getTempFileURL",null),Qr([fo({customInfo:{className:"Cloudbase",methodName:"downloadFile"},title:"下载文件失败",messages:["请确认以下各项:"," 1 - 调用 downloadFile() 的语法或参数是否正确"," 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety"," 3 - 云存储安全规则是否限制了当前登录状态访问","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+io]}),eo("design:type",Function),eo("design:paramtypes",[Object,Function]),eo("design:returntype",Promise)],e.prototype,"downloadFile",null),e}(),po=new ho,yo={name:lo,entity:{uploadFile:po.uploadFile,deleteFile:po.deleteFile,getTempFileURL:po.getTempFileURL,downloadFile:po.downloadFile,getUploadMetadata:po.getUploadMetadata}};try{cloudbase.registerComponent(yo)}catch(e){}var go="__lodash_hash_undefined__",vo=1/0,_o=9007199254740991,mo="[object Function]",wo="[object GeneratorFunction]",bo="[object Symbol]",Eo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,So=/^\w*$/,Io=/^\./,Ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oo=/\\(\\)?/g,No=/^\[object .+?Constructor\]$/,To=/^(?:0|[1-9]\d*)$/,xo="object"==typeof i&&i&&i.Object===Object&&i,Ro="object"==typeof self&&self&&self.Object===Object&&self,Po=xo||Ro||Function("return this")();var ko,Co=Array.prototype,Lo=Function.prototype,Do=Object.prototype,Uo=Po["__core-js_shared__"],jo=(ko=/[^.]+$/.exec(Uo&&Uo.keys&&Uo.keys.IE_PROTO||""))?"Symbol(src)_1."+ko:"",Mo=Lo.toString,Bo=Do.hasOwnProperty,qo=Do.toString,Wo=RegExp("^"+Mo.call(Bo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fo=Po.Symbol,Ho=Co.splice,$o=ni(Po,"Map"),Ko=ni(Object,"create"),Go=Fo?Fo.prototype:void 0,Vo=Go?Go.toString:void 0;function Jo(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zo(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yo(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xo(e,t,n){var r=e[t];Bo.call(e,t)&&ai(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Zo(e,t){for(var n=e.length;n--;)if(ai(e[n][0],t))return n;return-1}function Qo(e){if(!ui(e)||(t=e,jo&&jo in t))return!1;var t,n=function(e){var t=ui(e)?qo.call(e):"";return t==mo||t==wo}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Wo:No;return n.test(function(e){if(null!=e){try{return Mo.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ei(e,t,n,r){if(!ui(e))return e;t=function(e,t){if(ci(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||fi(e))return!0;return So.test(e)||!Eo.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return ci(e)?e:oi(e)}(t);for(var o=-1,i=t.length,s=i-1,a=e;null!=a&&++o<i;){var c=ii(t[o]),u=n;if(o!=s){var f=a[c];void 0===(u=r?r(f,c,a):void 0)&&(u=ui(f)?f:ri(t[o+1])?[]:{})}Xo(a,c,u),a=a[c]}return e}function ti(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ni(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Qo(n)?n:void 0}function ri(e,t){return!!(t=null==t?_o:t)&&("number"==typeof e||To.test(e))&&e>-1&&e%1==0&&e<t}Jo.prototype.clear=function(){this.__data__=Ko?Ko(null):{}},Jo.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Jo.prototype.get=function(e){var t=this.__data__;if(Ko){var n=t[e];return n===go?void 0:n}return Bo.call(t,e)?t[e]:void 0},Jo.prototype.has=function(e){var t=this.__data__;return Ko?void 0!==t[e]:Bo.call(t,e)},Jo.prototype.set=function(e,t){return this.__data__[e]=Ko&&void 0===t?go:t,this},zo.prototype.clear=function(){this.__data__=[]},zo.prototype.delete=function(e){var t=this.__data__,n=Zo(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ho.call(t,n,1),!0)},zo.prototype.get=function(e){var t=this.__data__,n=Zo(t,e);return n<0?void 0:t[n][1]},zo.prototype.has=function(e){return Zo(this.__data__,e)>-1},zo.prototype.set=function(e,t){var n=this.__data__,r=Zo(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Yo.prototype.clear=function(){this.__data__={hash:new Jo,map:new($o||zo),string:new Jo}},Yo.prototype.delete=function(e){return ti(this,e).delete(e)},Yo.prototype.get=function(e){return ti(this,e).get(e)},Yo.prototype.has=function(e){return ti(this,e).has(e)},Yo.prototype.set=function(e,t){return ti(this,e).set(e,t),this};var oi=si((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(fi(e))return Vo?Vo.call(e):"";var t=e+"";return"0"==t&&1/e==-vo?"-0":t}(t);var n=[];return Io.test(e)&&n.push(""),e.replace(Ao,(function(e,t,r,o){n.push(r?o.replace(Oo,"$1"):t||e)})),n}));function ii(e){if("string"==typeof e||fi(e))return e;var t=e+"";return"0"==t&&1/e==-vo?"-0":t}function si(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(si.Cache||Yo),n}function ai(e,t){return e===t||e!=e&&t!=t}si.Cache=Yo;var ci=Array.isArray;function ui(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function fi(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&qo.call(e)==bo}var li=s((function(e,t,n){return null==e?e:ei(e,t,n)})),hi="__lodash_hash_undefined__",pi=1/0,di="[object Function]",yi="[object GeneratorFunction]",gi="[object Symbol]",vi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_i=/^\w*$/,mi=/^\./,wi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bi=/\\(\\)?/g,Ei=/^\[object .+?Constructor\]$/,Si="object"==typeof i&&i&&i.Object===Object&&i,Ii="object"==typeof self&&self&&self.Object===Object&&self,Ai=Si||Ii||Function("return this")();var Oi=Array.prototype,Ni=Function.prototype,Ti=Object.prototype,xi=Ai["__core-js_shared__"],Ri=function(){var e=/[^.]+$/.exec(xi&&xi.keys&&xi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pi=Ni.toString,ki=Ti.hasOwnProperty,Ci=Ti.toString,Li=RegExp("^"+Pi.call(ki).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Di=Ai.Symbol,Ui=Oi.splice,ji=zi(Ai,"Map"),Mi=zi(Object,"create"),Bi=Di?Di.prototype:void 0,qi=Bi?Bi.toString:void 0;function Wi(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fi(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hi(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $i(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function Ki(e){if(!ts(e)||(t=e,Ri&&Ri in t))return!1;var t,n=function(e){var t=ts(e)?Ci.call(e):"";return t==di||t==yi}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Li:Ei;return n.test(function(e){if(null!=e){try{return Pi.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function Gi(e,t){e=function(e,t){return 1==t.length?e:function(e,t){for(var n=0,r=(t=Yi(t,e)?[t]:Vi(t)).length;null!=e&&n<r;)e=e[Zi(t[n++])];return n&&n==r?e:void 0}(e,function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(t,0,-1))}(e,t=Yi(t,e)?[t]:Vi(t));var n,r,o=Zi((r=(n=t)?n.length:0)?n[r-1]:void 0);return!(null!=e&&ki.call(e,o))||delete e[o]}function Vi(e){return es(e)?e:Xi(e)}function Ji(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function zi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ki(n)?n:void 0}function Yi(e,t){if(es(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ns(e))||(_i.test(e)||!vi.test(e)||null!=t&&e in Object(t))}Wi.prototype.clear=function(){this.__data__=Mi?Mi(null):{}},Wi.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Wi.prototype.get=function(e){var t=this.__data__;if(Mi){var n=t[e];return n===hi?void 0:n}return ki.call(t,e)?t[e]:void 0},Wi.prototype.has=function(e){var t=this.__data__;return Mi?void 0!==t[e]:ki.call(t,e)},Wi.prototype.set=function(e,t){return this.__data__[e]=Mi&&void 0===t?hi:t,this},Fi.prototype.clear=function(){this.__data__=[]},Fi.prototype.delete=function(e){var t=this.__data__,n=$i(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ui.call(t,n,1),!0)},Fi.prototype.get=function(e){var t=this.__data__,n=$i(t,e);return n<0?void 0:t[n][1]},Fi.prototype.has=function(e){return $i(this.__data__,e)>-1},Fi.prototype.set=function(e,t){var n=this.__data__,r=$i(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Hi.prototype.clear=function(){this.__data__={hash:new Wi,map:new(ji||Fi),string:new Wi}},Hi.prototype.delete=function(e){return Ji(this,e).delete(e)},Hi.prototype.get=function(e){return Ji(this,e).get(e)},Hi.prototype.has=function(e){return Ji(this,e).has(e)},Hi.prototype.set=function(e,t){return Ji(this,e).set(e,t),this};var Xi=Qi((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ns(e))return qi?qi.call(e):"";var t=e+"";return"0"==t&&1/e==-pi?"-0":t}(t);var n=[];return mi.test(e)&&n.push(""),e.replace(wi,(function(e,t,r,o){n.push(r?o.replace(bi,"$1"):t||e)})),n}));function Zi(e){if("string"==typeof e||ns(e))return e;var t=e+"";return"0"==t&&1/e==-pi?"-0":t}function Qi(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(Qi.Cache||Hi),n}Qi.Cache=Hi;var es=Array.isArray;function ts(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ns(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Ci.call(e)==gi}var rs=s((function(e,t){return null==e||Gi(e,t)})),os={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",s="[object Boolean]",a="[object Date]",c="[object Function]",u="[object GeneratorFunction]",f="[object Map]",l="[object Number]",h="[object Object]",p="[object Promise]",d="[object RegExp]",y="[object Set]",g="[object String]",v="[object Symbol]",_="[object WeakMap]",m="[object ArrayBuffer]",w="[object DataView]",b="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",I="[object Int16Array]",A="[object Int32Array]",O="[object Uint8Array]",N="[object Uint8ClampedArray]",T="[object Uint16Array]",x="[object Uint32Array]",R=/\w*$/,P=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,C={};C[o]=C["[object Array]"]=C[m]=C[w]=C[s]=C[a]=C[b]=C[E]=C[S]=C[I]=C[A]=C[f]=C[l]=C[h]=C[d]=C[y]=C[g]=C[v]=C[O]=C[N]=C[T]=C[x]=!0,C["[object Error]"]=C[c]=C[_]=!1;var L="object"==typeof i&&i&&i.Object===Object&&i,D="object"==typeof self&&self&&self.Object===Object&&self,U=L||D||Function("return this")(),j=t&&!t.nodeType&&t,M=j&&e&&!e.nodeType&&e,B=M&&M.exports===j;function q(e,t){return e.set(t[0],t[1]),e}function W(e,t){return e.add(t),e}function F(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function K(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var V=Array.prototype,J=Function.prototype,z=Object.prototype,Y=U["__core-js_shared__"],X=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Z=J.toString,Q=z.hasOwnProperty,ee=z.toString,te=RegExp("^"+Z.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=B?U.Buffer:void 0,re=U.Symbol,oe=U.Uint8Array,ie=K(Object.getPrototypeOf,Object),se=Object.create,ae=z.propertyIsEnumerable,ce=V.splice,ue=Object.getOwnPropertySymbols,fe=ne?ne.isBuffer:void 0,le=K(Object.keys,Object),he=je(U,"DataView"),pe=je(U,"Map"),de=je(U,"Promise"),ye=je(U,"Set"),ge=je(U,"WeakMap"),ve=je(Object,"create"),_e=Fe(he),me=Fe(pe),we=Fe(de),be=Fe(ye),Ee=Fe(ge),Se=re?re.prototype:void 0,Ie=Se?Se.valueOf:void 0;function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ne(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){this.__data__=new Oe(e)}function xe(e,t){var n=$e(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ke(e)}(e)&&Q.call(e,"callee")&&(!ae.call(e,"callee")||ee.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var s in e)!t&&!Q.call(e,s)||i&&("length"==s||qe(s,r))||n.push(s);return n}function Re(e,t,n){var r=e[t];Q.call(e,t)&&He(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Pe(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function ke(e,t,n,r,i,p,_){var P;if(r&&(P=p?r(e,i,p,_):r(e)),void 0!==P)return P;if(!Je(e))return e;var k=$e(e);if(k){if(P=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,P)}else{var L=Be(e),D=L==c||L==u;if(Ge(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==h||L==o||D&&!p){if(H(e))return p?e:{};if(P=function(e){return"function"!=typeof e.constructor||We(e)?{}:(t=ie(e),Je(t)?se(t):{});var t}(D?{}:e),!t)return function(e,t){return De(e,Me(e),t)}(e,function(e,t){return e&&De(t,ze(t),e)}(P,e))}else{if(!C[L])return p?e:{};P=function(e,t,n,r){var o=e.constructor;switch(t){case m:return Le(e);case s:case a:return new o(+e);case w:return function(e,t){var n=t?Le(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case b:case E:case S:case I:case A:case O:case N:case T:case x:return function(e,t){var n=t?Le(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case f:return function(e,t,n){var r=t?n($(e),!0):$(e);return F(r,q,new e.constructor)}(e,r,n);case l:case g:return new o(e);case d:return function(e){var t=new e.constructor(e.source,R.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return function(e,t,n){var r=t?n(G(e),!0):G(e);return F(r,W,new e.constructor)}(e,r,n);case v:return i=e,Ie?Object(Ie.call(i)):{}}var i}(e,L,ke,t)}}_||(_=new Te);var U=_.get(e);if(U)return U;if(_.set(e,P),!k)var j=n?function(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,ze,Me)}(e):ze(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(j||e,(function(o,i){j&&(o=e[i=o]),Re(P,i,ke(o,t,n,r,i,e,_))})),P}function Ce(e){return!(!Je(e)||(t=e,X&&X in t))&&(Ve(e)||H(e)?te:P).test(Fe(e));var t}function Le(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function De(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var s=t[o],a=r?r(n[s],e[s],s,n,e):void 0;Re(n,s,void 0===a?e[s]:a)}return n}function Ue(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function je(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ce(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=ve?ve(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:Q.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?n:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=Pe(t,e);return!(n<0)&&(n==t.length-1?t.pop():ce.call(t,n,1),!0)},Oe.prototype.get=function(e){var t=this.__data__,n=Pe(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Pe(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Pe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ne.prototype.clear=function(){this.__data__={hash:new Ae,map:new(pe||Oe),string:new Ae}},Ne.prototype.delete=function(e){return Ue(this,e).delete(e)},Ne.prototype.get=function(e){return Ue(this,e).get(e)},Ne.prototype.has=function(e){return Ue(this,e).has(e)},Ne.prototype.set=function(e,t){return Ue(this,e).set(e,t),this},Te.prototype.clear=function(){this.__data__=new Oe},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ne(r)}return n.set(e,t),this};var Me=ue?K(ue,Object):function(){return[]},Be=function(e){return ee.call(e)};function qe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function We(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||z)}function Fe(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(he&&Be(new he(new ArrayBuffer(1)))!=w||pe&&Be(new pe)!=f||de&&Be(de.resolve())!=p||ye&&Be(new ye)!=y||ge&&Be(new ge)!=_)&&(Be=function(e){var t=ee.call(e),n=t==h?e.constructor:void 0,r=n?Fe(n):void 0;if(r)switch(r){case _e:return w;case me:return f;case we:return p;case be:return y;case Ee:return _}return t});var $e=Array.isArray;function Ke(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Ve(e)}var Ge=fe||function(){return!1};function Ve(e){var t=Je(e)?ee.call(e):"";return t==c||t==u}function Je(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ze(e){return Ke(e)?xe(e):function(e){if(!We(e))return le(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return ke(e,!0,!0)}}(os,os.exports);var is=s(os.exports);function ss(e){return void 0===e&&(e=""),(e?e+"_":"")+ +new Date+"_"+Math.random()}var as,cs=function(e){this.close=e.close,this.onChange=e.onChange,this.onError=e.onError,e.debug&&Object.defineProperty(this,"virtualClient",{get:function(){return e.virtualClient}})},us=function(e){var t,n,r=e.id,o=e.docChanges,i=e.docs,s=e.msgType,a=e.type;Object.defineProperties(this,{id:{get:function(){return r},enumerable:!0},docChanges:{get:function(){return t||(t=JSON.parse(JSON.stringify(o))),t},enumerable:!0},docs:{get:function(){return n||(n=JSON.parse(JSON.stringify(i))),n},enumerable:!0},msgType:{get:function(){return s},enumerable:!0},type:{get:function(){return a},enumerable:!0}})},fs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ls=function(e){function t(t){var n=e.call(this,"Watch Error "+JSON.stringify(t.msgData)+" (requestid: "+t.requestId+")")||this;return n.isRealtimeErrorMessageError=!0,n.payload=t,n}return fs(t,e),t}(Error),hs=function(e){return null==e?void 0:e.isRealtimeErrorMessageError},ps=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="timeout",t.payload=null,t.generic=!0,t}return fs(t,e),t}(Error),ds=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cancelled",t.payload=null,t.generic=!0,t}return fs(t,e),t}(Error),ys=function(e){function t(t){var n=e.call(this,t.errMsg)||this;return n.errCode="UNKNOWN_ERROR",Object.defineProperties(n,{message:{get:function(){return"errCode: "+this.errCode+" "+(gs[this.errCode]||"")+" | errMsg: "+this.errMsg},set:function(e){this.errMsg=e}}}),n.errCode=t.errCode||"UNKNOWN_ERROR",n.errMsg=t.errMsg,n}return fs(t,e),Object.defineProperty(t.prototype,"message",{get:function(){return"errCode: "+this.errCode+" | errMsg: "+this.errMsg},set:function(e){this.errMsg=e},enumerable:!1,configurable:!0}),t}(Error),gs={UNKNOWN_ERROR:"UNKNOWN_ERROR",SDK_DATABASE_REALTIME_LISTENER_INIT_WATCH_FAIL:"SDK_DATABASE_REALTIME_LISTENER_INIT_WATCH_FAIL",SDK_DATABASE_REALTIME_LISTENER_RECONNECT_WATCH_FAIL:"SDK_DATABASE_REALTIME_LISTENER_RECONNECT_WATCH_FAIL",SDK_DATABASE_REALTIME_LISTENER_REBUILD_WATCH_FAIL:"SDK_DATABASE_REALTIME_LISTENER_REBUILD_WATCH_FAIL",SDK_DATABASE_REALTIME_LISTENER_CLOSE_WATCH_FAIL:"SDK_DATABASE_REALTIME_LISTENER_CLOSE_WATCH_FAIL",SDK_DATABASE_REALTIME_LISTENER_SERVER_ERROR_MSG:"SDK_DATABASE_REALTIME_LISTENER_SERVER_ERROR_MSG",SDK_DATABASE_REALTIME_LISTENER_RECEIVE_INVALID_SERVER_DATA:"SDK_DATABASE_REALTIME_LISTENER_RECEIVE_INVALID_SERVER_DATA",SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_ERROR:"SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_ERROR",SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED:"SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED",SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL:"SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL",SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR:"SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR"},vs=function(e){return void 0===e&&(e=0),new Promise((function(t){return setTimeout(t,e)}))},_s=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},ms=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},ws=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r};!function(e){e.LOGGINGIN="LOGGINGIN",e.INITING="INITING",e.REBUILDING="REBUILDING",e.ACTIVE="ACTIVE",e.ERRORED="ERRORED",e.CLOSING="CLOSING",e.CLOSED="CLOSED",e.PAUSED="PAUSED",e.RESUMING="RESUMING"}(as||(as={}));var bs=function(){function e(e){var t=this;this.watchStatus=as.INITING,this._login=function(e,n){return _s(t,void 0,void 0,(function(){var t;return ms(this,(function(r){switch(r.label){case 0:return this.watchStatus=as.LOGGINGIN,[4,this.login(e,n)];case 1:return t=r.sent(),this.envId||(this.envId=t.envId),[2,t]}}))}))},this.initWatch=function(e){return _s(t,void 0,void 0,(function(){var t,n=this;return ms(this,(function(r){switch(r.label){case 0:if(this._initWatchPromise)return[2,this._initWatchPromise];this._initWatchPromise=new Promise((function(t,r){return _s(n,void 0,void 0,(function(){var n,o,i,s,a,c,u,f,l,h;return ms(this,(function(p){switch(p.label){case 0:return p.trys.push([0,3,,4]),this.watchStatus===as.PAUSED?(console.log("[realtime] initWatch cancelled on pause"),[2,t()]):[4,this._login(this.envId,e)];case 1:return n=p.sent().envId,this.watchStatus===as.PAUSED?(console.log("[realtime] initWatch cancelled on pause"),[2,t()]):(this.watchStatus=as.INITING,o={watchId:this.watchId,requestId:ss(),msgType:"INIT_WATCH",msgData:{envId:n,collName:this.collectionName,query:this.query,limit:this.limit,orderBy:this.orderBy}},[4,this.send({msg:o,waitResponse:!0,skipOnMessage:!0,timeout:1e4})]);case 2:if(i=p.sent(),s=i.msgData,a=s.events,c=s.currEvent,this.sessionInfo={queryID:i.msgData.queryID,currentEventId:c-1,currentDocs:[]},a.length>0){for(u=0,f=a;u<f.length;u++)f[u].ID=c;this.handleServerEvents(i)}else this.sessionInfo.currentEventId=c,l=new us({id:c,docChanges:[],docs:[],type:"init"}),this.listener.onChange(l),this.scheduleSendACK();return this.onWatchStart(this,this.sessionInfo.queryID),this.watchStatus=as.ACTIVE,this._availableRetries.INIT_WATCH=2,t(),[3,4];case 3:return h=p.sent(),this.handleWatchEstablishmentError(h,{operationName:"INIT_WATCH",resolve:t,reject:r}),[3,4];case 4:return[2]}}))}))})),t=!1,r.label=1;case 1:return r.trys.push([1,,3,4]),[4,this._initWatchPromise];case 2:return r.sent(),t=!0,[3,4];case 3:return this._initWatchPromise=void 0,[7];case 4:return console.log("[realtime] initWatch "+(t?"success":"fail")),[2]}}))}))},this.rebuildWatch=function(e){return _s(t,void 0,void 0,(function(){var t,n=this;return ms(this,(function(r){switch(r.label){case 0:if(this._rebuildWatchPromise)return[2,this._rebuildWatchPromise];this._rebuildWatchPromise=new Promise((function(t,r){return _s(n,void 0,void 0,(function(){var n,o,i,s;return ms(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),this.watchStatus===as.PAUSED?(console.log("[realtime] rebuildWatch cancelled on pause"),[2,t()]):[4,this._login(this.envId,e)];case 1:if(n=a.sent().envId,!this.sessionInfo)throw new Error("can not rebuildWatch without a successful initWatch (lack of sessionInfo)");return this.watchStatus===as.PAUSED?(console.log("[realtime] rebuildWatch cancelled on pause"),[2,t()]):(this.watchStatus=as.REBUILDING,o={watchId:this.watchId,requestId:ss(),msgType:"REBUILD_WATCH",msgData:{envId:n,collName:this.collectionName,queryID:this.sessionInfo.queryID,eventID:this.sessionInfo.currentEventId}},[4,this.send({msg:o,waitResponse:!0,skipOnMessage:!1,timeout:1e4})]);case 2:return i=a.sent(),this.handleServerEvents(i),this.watchStatus=as.ACTIVE,this._availableRetries.REBUILD_WATCH=2,t(),[3,4];case 3:return s=a.sent(),this.handleWatchEstablishmentError(s,{operationName:"REBUILD_WATCH",resolve:t,reject:r}),[3,4];case 4:return[2]}}))}))})),t=!1,r.label=1;case 1:return r.trys.push([1,,3,4]),[4,this._rebuildWatchPromise];case 2:return r.sent(),t=!0,[3,4];case 3:return this._rebuildWatchPromise=void 0,[7];case 4:return console.log("[realtime] rebuildWatch "+(t?"success":"fail")),[2]}}))}))},this.handleWatchEstablishmentError=function(e,n){return _s(t,void 0,void 0,(function(){var t,r,o,i=this;return ms(this,(function(s){return t="INIT_WATCH"===n.operationName,r=function(){i.closeWithError(new ys({errCode:t?gs.SDK_DATABASE_REALTIME_LISTENER_INIT_WATCH_FAIL:gs.SDK_DATABASE_REALTIME_LISTENER_REBUILD_WATCH_FAIL,errMsg:e})),n.reject(e)},o=function(e){i.useRetryTicket(n.operationName)?t?(i._initWatchPromise=void 0,n.resolve(i.initWatch(e))):(i._rebuildWatchPromise=void 0,n.resolve(i.rebuildWatch(e))):r()},this.handleCommonError(e,{onSignError:function(){return o(!0)},onTimeoutError:function(){return o(!1)},onNotRetryableError:r,onCancelledError:n.reject,onUnknownError:function(){return _s(i,void 0,void 0,(function(){var e,t=this;return ms(this,(function(r){switch(r.label){case 0:return r.trys.push([0,8,,9]),e=function(){return _s(t,void 0,void 0,(function(){return ms(this,(function(e){switch(e.label){case 0:return this.pause(),[4,this.onceWSConnected()];case 1:return e.sent(),o(!0),[2]}}))}))},this.isWSConnected()?[3,2]:[4,e()];case 1:return r.sent(),[3,7];case 2:return[4,vs(100)];case 3:return r.sent(),this.watchStatus!==as.PAUSED?[3,4]:(n.reject(new ds(n.operationName+" cancelled due to pause after unknownError")),[3,7]);case 4:return this.isWSConnected()?[3,6]:[4,e()];case 5:return r.sent(),[3,7];case 6:o(!1),r.label=7;case 7:return[3,9];case 8:return r.sent(),o(!0),[3,9];case 9:return[2]}}))}))}}),[2]}))}))},this.closeWatch=function(){return _s(t,void 0,void 0,(function(){var e,t,n;return ms(this,(function(r){switch(r.label){case 0:if(e=this.sessionInfo?this.sessionInfo.queryID:"",this.watchStatus!==as.ACTIVE)return this.watchStatus=as.CLOSED,this.onWatchClose(this,e),[2];r.label=1;case 1:return r.trys.push([1,3,4,5]),this.watchStatus=as.CLOSING,t={watchId:this.watchId,requestId:ss(),msgType:"CLOSE_WATCH",msgData:null},[4,this.send({msg:t})];case 2:return r.sent(),this.sessionInfo=void 0,this.watchStatus=as.CLOSED,[3,5];case 3:return n=r.sent(),this.closeWithError(new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_CLOSE_WATCH_FAIL,errMsg:n})),[3,5];case 4:return this.onWatchClose(this,e),[7];case 5:return[2]}}))}))},this.scheduleSendACK=function(){t.clearACKSchedule(),t._ackTimeoutId=setTimeout((function(){t._waitExpectedTimeoutId?t.scheduleSendACK():t.sendACK()}),1e4)},this.clearACKSchedule=function(){t._ackTimeoutId&&clearTimeout(t._ackTimeoutId)},this.sendACK=function(){return _s(t,void 0,void 0,(function(){var e,t,n;return ms(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),this.watchStatus!==as.ACTIVE?(this.scheduleSendACK(),[2]):this.sessionInfo?(e={watchId:this.watchId,requestId:ss(),msgType:"CHECK_LAST",msgData:{queryID:this.sessionInfo.queryID,eventID:this.sessionInfo.currentEventId}},[4,this.send({msg:e})]):(console.warn("[realtime listener] can not send ack without a successful initWatch (lack of sessionInfo)"),[2]);case 1:return r.sent(),this.scheduleSendACK(),[3,3];case 2:if(t=r.sent(),hs(t))switch((n=t.payload).msgData.code){case"CHECK_LOGIN_FAILED":case"SIGN_EXPIRED_ERROR":case"SIGN_INVALID_ERROR":case"SIGN_PARAM_INVALID":return this.rebuildWatch(),[2];case"QUERYID_INVALID_ERROR":case"SYS_ERR":case"INVALIID_ENV":case"COLLECTION_PERMISSION_DENIED":return this.closeWithError(new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL,errMsg:n.msgData.code})),[2]}return this._availableRetries.CHECK_LAST&&this._availableRetries.CHECK_LAST>0?(this._availableRetries.CHECK_LAST--,this.scheduleSendACK()):this.closeWithError(new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL,errMsg:t})),[3,3];case 3:return[2]}}))}))},this.handleCommonError=function(e,t){if(hs(e)){switch(e.payload.msgData.code){case"CHECK_LOGIN_FAILED":case"SIGN_EXPIRED_ERROR":case"SIGN_INVALID_ERROR":case"SIGN_PARAM_INVALID":return void t.onSignError(e);default:return void t.onNotRetryableError(e)}}else{if(function(e){return"timeout"===e.type}(e))return void t.onTimeoutError(e);if(function(e){return"cancelled"===e.type}(e))return void t.onCancelledError(e)}t.onUnknownError(e)},this.watchId="watchid_"+ +new Date+"_"+Math.random(),this.envId=e.envId,this.collectionName=e.collectionName,this.query=e.query,this.limit=e.limit,this.orderBy=e.orderBy,this.send=e.send,this.login=e.login,this.isWSConnected=e.isWSConnected,this.onceWSConnected=e.onceWSConnected,this.getWaitExpectedTimeoutLength=e.getWaitExpectedTimeoutLength,this.onWatchStart=e.onWatchStart,this.onWatchClose=e.onWatchClose,this.debug=e.debug,this._availableRetries={INIT_WATCH:2,REBUILD_WATCH:2,CHECK_LAST:2},this.listener=new cs({close:this.closeWatch,onChange:e.onChange,onError:e.onError,debug:this.debug,virtualClient:this}),this.initWatch()}return e.prototype.onMessage=function(e){var t=this;switch(this.watchStatus){case as.PAUSED:if("ERROR"!==e.msgType)return;break;case as.LOGGINGIN:case as.INITING:case as.REBUILDING:return void console.warn("[realtime listener] internal non-fatal error: unexpected message received while "+this.watchStatus);case as.CLOSED:return void console.warn("[realtime listener] internal non-fatal error: unexpected message received when the watch has closed");case as.ERRORED:return void console.warn("[realtime listener] internal non-fatal error: unexpected message received when the watch has ended with error")}if(this.sessionInfo)switch(this.scheduleSendACK(),e.msgType){case"NEXT_EVENT":console.warn("nextevent "+e.msgData.currEvent+" ignored",e),this.handleServerEvents(e);break;case"CHECK_EVENT":this.sessionInfo.currentEventId<e.msgData.currEvent&&(this.sessionInfo.expectEventId=e.msgData.currEvent,this.clearWaitExpectedEvent(),this._waitExpectedTimeoutId=setTimeout((function(){t.rebuildWatch()}),this.getWaitExpectedTimeoutLength()),console.log("[realtime] waitExpectedTimeoutLength "+this.getWaitExpectedTimeoutLength()));break;case"ERROR":this.closeWithError(new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_SERVER_ERROR_MSG,errMsg:e.msgData.code+" - "+e.msgData.message}));break;default:console.warn("[realtime listener] virtual client receive unexpected msg "+e.msgType+": ",e)}else console.warn("[realtime listener] internal non-fatal error: sessionInfo not found while message is received.")},e.prototype.closeWithError=function(e){this.watchStatus=as.ERRORED,this.clearACKSchedule(),this.listener.onError(e),this.onWatchClose(this,this.sessionInfo&&this.sessionInfo.queryID||""),console.log("[realtime] client closed ("+this.collectionName+" "+this.query+") (watchId "+this.watchId+")")},e.prototype.pause=function(){this.watchStatus=as.PAUSED,console.log("[realtime] client paused ("+this.collectionName+" "+this.query+") (watchId "+this.watchId+")")},e.prototype.resume=function(){return _s(this,void 0,void 0,(function(){var e;return ms(this,(function(t){switch(t.label){case 0:this.watchStatus=as.RESUMING,console.log("[realtime] client resuming with "+(this.sessionInfo?"REBUILD_WATCH":"INIT_WATCH")+" ("+this.collectionName+" "+this.query+") ("+this.watchId+")"),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.sessionInfo?this.rebuildWatch():this.initWatch()];case 2:return t.sent(),console.log("[realtime] client successfully resumed ("+this.collectionName+" "+this.query+") ("+this.watchId+")"),[3,4];case 3:return e=t.sent(),console.error("[realtime] client resume failed ("+this.collectionName+" "+this.query+") ("+this.watchId+")",e),[3,4];case 4:return[2]}}))}))},e.prototype.useRetryTicket=function(e){return!!(this._availableRetries[e]&&this._availableRetries[e]>0)&&(this._availableRetries[e]--,console.log("[realtime] "+e+" use a retry ticket, now only "+this._availableRetries[e]+" retry left"),!0)},e.prototype.handleServerEvents=function(e){return _s(this,void 0,void 0,(function(){var t;return ms(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.scheduleSendACK(),[4,this._handleServerEvents(e)];case 1:return n.sent(),this._postHandleServerEventsValidityCheck(e),[3,3];case 2:throw t=n.sent(),console.error("[realtime listener] internal non-fatal error: handle server events failed with error: ",t),t;case 3:return[2]}}))}))},e.prototype._handleServerEvents=function(e){return _s(this,void 0,void 0,(function(){var t,n,r,o,i,s,a,c,u,f,l,h;return ms(this,(function(p){switch(p.label){case 0:if(t=e.requestId,n=e.msgData.events,r=e.msgType,!n.length||!this.sessionInfo)return[2];o=this.sessionInfo;try{i=n.map(Es)}catch(e){return this.closeWithError(new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_RECEIVE_INVALID_SERVER_DATA,errMsg:e})),[2]}s=ws(o.currentDocs),a=!1,c=function(n,c){var f,l,h,p,d,y,g,v,_,m,w;return ms(this,(function(b){switch(b.label){case 0:return f=i[n],o.currentEventId>=f.id?(!i[n-1]||f.id>i[n-1].id?console.warn("[realtime] duplicate event received, cur "+o.currentEventId+" but got "+f.id):console.error("[realtime listener] server non-fatal error: events out of order (the latter event's id is smaller than that of the former) (requestId "+t+")"),[2,"continue"]):[3,1];case 1:if(o.currentEventId!==f.id-1)return[3,2];switch(f.dataType){case"update":if(!f.doc)switch(f.queueType){case"update":case"dequeue":if(l=s.find((function(e){return e._id===f.docId})),l){if(y=is(l),f.updatedFields)for(d in f.updatedFields)li(y,d,f.updatedFields[d]);if(f.removedFields)for(h=0,p=f.removedFields;h<p.length;h++)d=p[h],rs(y,d);f.doc=y}else console.error("[realtime listener] internal non-fatal server error: unexpected update dataType event where no doc is associated.");break;case"enqueue":throw g=new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR,errMsg:'HandleServerEvents: full doc is not provided with dataType="update" and queueType="enqueue" (requestId '+e.requestId+")"}),u.closeWithError(g),g}break;case"replace":if(!f.doc)throw g=new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR,errMsg:'HandleServerEvents: full doc is not provided with dataType="replace" (requestId '+e.requestId+")"}),u.closeWithError(g),g;break;case"remove":(y=s.find((function(e){return e._id===f.docId})))?f.doc=y:console.error("[realtime listener] internal non-fatal server error: unexpected remove event where no doc is associated.");break;case"limit":if(!f.doc)switch(f.queueType){case"dequeue":(y=s.find((function(e){return e._id===f.docId})))?f.doc=y:console.error("[realtime listener] internal non-fatal server error: unexpected limit dataType event where no doc is associated.");break;case"enqueue":throw g=new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR,errMsg:'HandleServerEvents: full doc is not provided with dataType="limit" and queueType="enqueue" (requestId '+e.requestId+")"}),u.closeWithError(g),g}}switch(f.queueType){case"init":a?s.push(f.doc):(a=!0,s=[f.doc]);break;case"enqueue":s.push(f.doc);break;case"dequeue":v=s.findIndex((function(e){return e._id===f.docId})),v>-1?s.splice(v,1):console.error("[realtime listener] internal non-fatal server error: unexpected dequeue event where no doc is associated.");break;case"update":v=s.findIndex((function(e){return e._id===f.docId})),v>-1?s[v]=f.doc:console.error("[realtime listener] internal non-fatal server error: unexpected queueType update event where no doc is associated.")}return(n===c-1||i[n+1]&&i[n+1].id!==f.id)&&(_=ws(s),m=i.slice(0,n+1).filter((function(e){return e.id===f.id})),u.sessionInfo.currentEventId=f.id,u.sessionInfo.currentDocs=s,w=new us({id:f.id,docChanges:m,docs:_,msgType:r}),u.listener.onChange(w)),[3,4];case 2:return console.warn("[realtime listener] event received is out of order, cur "+u.sessionInfo.currentEventId+" but got "+f.id),[4,u.rebuildWatch()];case 3:return b.sent(),[2,{value:void 0}];case 4:return[2]}}))},u=this,f=0,l=i.length,p.label=1;case 1:return f<l?[5,c(f,l)]:[3,4];case 2:if("object"==typeof(h=p.sent()))return[2,h.value];p.label=3;case 3:return f++,[3,1];case 4:return[2]}}))}))},e.prototype._postHandleServerEventsValidityCheck=function(e){this.sessionInfo?(this.sessionInfo.expectEventId&&this.sessionInfo.currentEventId>=this.sessionInfo.expectEventId&&this.clearWaitExpectedEvent(),this.sessionInfo.currentEventId<e.msgData.currEvent&&console.warn("[realtime listener] internal non-fatal error: client eventId does not match with server event id after server event handling")):console.error("[realtime listener] internal non-fatal error: sessionInfo lost after server event handling, this should never occur")},e.prototype.clearWaitExpectedEvent=function(){this._waitExpectedTimeoutId&&(clearTimeout(this._waitExpectedTimeoutId),this._waitExpectedTimeoutId=void 0)},e}();function Es(e){var t={id:e.ID,dataType:e.DataType,queueType:e.QueueType,docId:e.DocID,doc:e.Doc&&"{}"!==e.Doc?JSON.parse(e.Doc):void 0};return"update"===e.DataType&&(e.UpdatedFields&&(t.updatedFields=JSON.parse(e.UpdatedFields)),(e.removedFields||e.RemovedFields)&&(t.removedFields=JSON.parse(e.removedFields))),t}var Ss,Is={1e3:{code:1e3,name:"Normal Closure",description:"Normal closure; the connection successfully completed whatever purpose for which it was created."},1001:{code:1001,name:"Going Away",description:"The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection."},1002:{code:1002,name:"Protocol Error",description:"The endpoint is terminating the connection due to a protocol error."},1003:{code:1003,name:"Unsupported Data",description:"The connection is being terminated because the endpoint received data of a type it cannot accept (for example, a text-only endpoint received binary data)."},1005:{code:1005,name:"No Status Received",description:"Indicates that no status code was provided even though one was expected."},1006:{code:1006,name:"Abnormal Closure",description:"Used to indicate that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected."},1007:{code:1007,name:"Invalid frame payload data",description:"The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message)."},1008:{code:1008,name:"Policy Violation",description:"The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable."},1009:{code:1009,name:"Message too big",description:"The endpoint is terminating the connection because a data frame was received that is too large."},1010:{code:1010,name:"Missing Extension",description:"The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't."},1011:{code:1011,name:"Internal Error",description:"The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request."},1012:{code:1012,name:"Service Restart",description:"The server is terminating the connection because it is restarting."},1013:{code:1013,name:"Try Again Later",description:"The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients."},1014:{code:1014,name:"Bad Gateway",description:"The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code."},1015:{code:1015,name:"TLS Handshake",description:"Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified)."},3e3:{code:3e3,name:"Reconnect WebSocket",description:"The client is terminating the connection because it wants to reconnect"},3001:{code:3001,name:"No Realtime Listeners",description:"The client is terminating the connection because no more realtime listeners exist"},3002:{code:3002,name:"Heartbeat Ping Error",description:"The client is terminating the connection due to its failure in sending heartbeat messages"},3003:{code:3003,name:"Heartbeat Pong Timeout Error",description:"The client is terminating the connection because no heartbeat response is received from the server"},3050:{code:3050,name:"Server Close",description:"The client is terminating the connection because no heartbeat response is received from the server"}};!function(e){e[e.NormalClosure=1e3]="NormalClosure",e[e.GoingAway=1001]="GoingAway",e[e.ProtocolError=1002]="ProtocolError",e[e.UnsupportedData=1003]="UnsupportedData",e[e.NoStatusReceived=1005]="NoStatusReceived",e[e.AbnormalClosure=1006]="AbnormalClosure",e[e.InvalidFramePayloadData=1007]="InvalidFramePayloadData",e[e.PolicyViolation=1008]="PolicyViolation",e[e.MessageTooBig=1009]="MessageTooBig",e[e.MissingExtension=1010]="MissingExtension",e[e.InternalError=1011]="InternalError",e[e.ServiceRestart=1012]="ServiceRestart",e[e.TryAgainLater=1013]="TryAgainLater",e[e.BadGateway=1014]="BadGateway",e[e.TLSHandshake=1015]="TLSHandshake",e[e.ReconnectWebSocket=3e3]="ReconnectWebSocket",e[e.NoRealtimeListeners=3001]="NoRealtimeListeners",e[e.HeartbeatPingError=3002]="HeartbeatPingError",e[e.HeartbeatPongTimeoutError=3003]="HeartbeatPongTimeoutError",e[e.NoAuthentication=3050]="NoAuthentication"}(Ss||(Ss={}));var As=function(e,t){var n=Is[e],r=n?n.name+", code "+e+", reason "+(t||n.description):"code "+e;return new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED,errMsg:r})},Os=null,Ns="web";function Ts(){return Os}function xs(){return Ns}function Rs(e){Ns=e}var Ps=function(){return Ps=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ps.apply(this,arguments)},ks=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Cs=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},Ls=1,Ds=function(){function e(e){var t=this;this._virtualWSClient=new Set,this._queryIdClientMap=new Map,this._watchIdClientMap=new Map,this._pingFailed=0,this._pongMissed=0,this._logins=new Map,this._wsReadySubsribers=[],this._wsResponseWait=new Map,this._rttObserved=[],this.send=function(e){return ks(t,void 0,void 0,(function(){var t=this;return Cs(this,(function(n){return[2,new Promise((function(n,r){return ks(t,void 0,void 0,(function(){var t,o,i,s,a,c,u,f=this;return Cs(this,(function(l){switch(l.label){case 0:o=!1,i=!1,s=function(e){o=!0,t&&clearTimeout(t),n(e)},a=function(e){i=!0,t&&clearTimeout(t),r(e)},e.timeout&&(t=setTimeout((function(){return ks(f,void 0,void 0,(function(){return Cs(this,(function(e){switch(e.label){case 0:return o&&i?[3,2]:[4,vs(0)];case 1:e.sent(),o&&i||a(new ps("wsclient.send timedout")),e.label=2;case 2:return[2]}}))}))}),e.timeout)),l.label=1;case 1:return l.trys.push([1,8,,9]),this._wsInitPromise?[4,this._wsInitPromise]:[3,3];case 2:l.sent(),l.label=3;case 3:if(!this._ws)return a(new Error("invalid state: ws connection not exists, can not send message")),[2];if(this._ws.readyState!==Ls)return a(new Error("ws readyState invalid: "+this._ws.readyState+", can not send message")),[2];e.waitResponse&&this._wsResponseWait.set(e.msg.requestId,{resolve:s,reject:a,skipOnMessage:e.skipOnMessage}),l.label=4;case 4:return l.trys.push([4,6,,7]),[4,this._ws.send(JSON.stringify(e.msg))];case 5:return l.sent(),e.waitResponse||s(),[3,7];case 6:return(c=l.sent())&&(a(c),e.waitResponse&&this._wsResponseWait.delete(e.msg.requestId)),[3,7];case 7:return[3,9];case 8:return u=l.sent(),a(u),[3,9];case 9:return[2]}}))}))}))]}))}))},this.closeAllClients=function(e){t._virtualWSClient.forEach((function(t){t.closeWithError(e)}))},this.pauseClients=function(e){(e||t._virtualWSClient).forEach((function(e){e.pause()}))},this.resumeClients=function(e){(e||t._virtualWSClient).forEach((function(e){e.resume()}))},this.initWebSocketConnection=function(e,n){return void 0===n&&(n=t._maxReconnect),ks(t,void 0,void 0,(function(){var t=this;return Cs(this,(function(r){switch(r.label){case 0:if(e&&this._reconnectState)return[2];if(e&&(this._reconnectState=!0),this._wsInitPromise)return[2,this._wsInitPromise];e&&this.pauseClients(),this.close(Ss.ReconnectWebSocket),this._wsInitPromise=new Promise((function(r,o){return ks(t,void 0,void 0,(function(){var t,i,s=this;return Cs(this,(function(a){switch(a.label){case 0:return a.trys.push([0,6,,11]),[4,this.getWsSign()];case 1:return t=a.sent(),[4,new Promise((function(e){var n=t.wsUrl||"wss://tcb-ws.tencentcloudapi.com",r=Ts();s._ws=r?new r(n):new WebSocket(n),e()}))];case 2:return a.sent(),this._ws.connect?[4,this._ws.connect()]:[3,4];case 3:a.sent(),a.label=4;case 4:return[4,this.initWebSocketEvent()];case 5:return a.sent(),r(),e&&(this.resumeClients(),this._reconnectState=!1),[3,11];case 6:return i=a.sent(),console.error("[realtime] initWebSocketConnection connect fail",i),n>0?(!0,this._wsInitPromise=void 0,[4,vs(this._reconnectInterval)]):[3,9];case 7:a.sent(),e&&(this._reconnectState=!1),a.label=8;case 8:return r(this.initWebSocketConnection(e,n-1)),[3,10];case 9:o(i),e&&this.closeAllClients(new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_RECONNECT_WATCH_FAIL,errMsg:i})),a.label=10;case 10:return[3,11];case 11:return[2]}}))}))})),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,this._wsInitPromise];case 2:return r.sent(),this._wsReadySubsribers.forEach((function(e){return(0,e.resolve)()})),[3,5];case 3:return r.sent(),this._wsReadySubsribers.forEach((function(e){return(0,e.reject)()})),[3,5];case 4:return this._wsInitPromise=void 0,this._wsReadySubsribers=[],[7];case 5:return[2]}}))}))},this.initWebSocketEvent=function(){return new Promise((function(e,n){if(!t._ws)throw new Error("can not initWebSocketEvent, ws not exists");var r=!1;t._ws.onopen=function(t){console.warn("[realtime] ws event: open",t),r=!0,e()},t._ws.onerror=function(e){t._logins=new Map,r?(console.error("[realtime] ws event: error",e),t.clearHeartbeat(),t._virtualWSClient.forEach((function(t){return t.closeWithError(new ys({errCode:gs.SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_ERROR,errMsg:e}))}))):(console.error("[realtime] ws open failed with ws event: error",e),n(e))},t._ws.onclose=function(e){switch(console.warn("[realtime] ws event: close",e),t._logins=new Map,t.clearHeartbeat(),e.code){case Ss.ReconnectWebSocket:case Ss.NoRealtimeListeners:break;case Ss.HeartbeatPingError:case Ss.HeartbeatPongTimeoutError:case Ss.NormalClosure:case Ss.AbnormalClosure:t._maxReconnect>0?t.initWebSocketConnection(!0,t._maxReconnect):t.closeAllClients(As(e.code));break;case Ss.NoAuthentication:t.closeAllClients(As(e.code,e.reason));break;default:t._maxReconnect>0?t.initWebSocketConnection(!0,t._maxReconnect):t.closeAllClients(As(e.code))}},t._ws.onmessage=function(e){var n,r=e.data;t.heartbeat();try{n=JSON.parse(r)}catch(e){throw new Error("[realtime] onMessage parse res.data error: "+e)}if("ERROR"===n.msgType){var o=null;t._virtualWSClient.forEach((function(e){e.watchId===n.watchId&&(o=e)})),o&&o.listener.onError(n)}var i=t._wsResponseWait.get(n.requestId);if(i){try{"ERROR"===n.msgType?i.reject(new ls(n)):i.resolve(n)}catch(e){console.error("ws onMessage responseWaitSpec.resolve(msg) errored:",e)}finally{t._wsResponseWait.delete(n.requestId)}if(i.skipOnMessage)return}if("PONG"!==n.msgType){var s=n.watchId&&t._watchIdClientMap.get(n.watchId);if(s)s.onMessage(n);else switch(console.error("[realtime] no realtime listener found responsible for watchId "+n.watchId+": ",n),n.msgType){case"INIT_EVENT":case"NEXT_EVENT":case"CHECK_EVENT":(s=t._queryIdClientMap.get(n.msgData.queryID))&&s.onMessage(n);break;default:for(var a=0,c=Array.from(t._watchIdClientMap.entries());a<c.length;a++){c[a][1].onMessage(n);break}}}else if(t._lastPingSendTS){var u=Date.now()-t._lastPingSendTS;if(u>1e4)return void console.warn("[realtime] untrusted rtt observed: "+u);t._rttObserved.length>=3&&t._rttObserved.splice(0,t._rttObserved.length-3+1),t._rttObserved.push(u)}},t.heartbeat()}))},this.isWSConnected=function(){return Boolean(t._ws&&t._ws.readyState===Ls)},this.onceWSConnected=function(){return ks(t,void 0,void 0,(function(){var e=this;return Cs(this,(function(t){return this.isWSConnected()?[2]:this._wsInitPromise?[2,this._wsInitPromise]:[2,new Promise((function(t,n){e._wsReadySubsribers.push({resolve:t,reject:n})}))]}))}))},this.webLogin=function(e,n){return ks(t,void 0,void 0,(function(){var t,r,o,i,s,a,c,u,f=this;return Cs(this,(function(l){switch(l.label){case 0:if(!n)if(e){if(t=this._logins.get(e)){if(t.loggedIn&&t.loginResult)return[2,t.loginResult];if(t.loggingInPromise)return[2,t.loggingInPromise]}}else if(null==(r=this._logins.get(""))?void 0:r.loggingInPromise)return[2,r.loggingInPromise];o=new Promise((function(e,t){return ks(f,void 0,void 0,(function(){var n,r,o,i,s;return Cs(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,this.getWsSign()];case 1:return n=a.sent(),r={envId:n.envId||"",accessToken:"",referrer:"web",sdkVersion:"",dataVersion:""},o={watchId:void 0,requestId:ss(),msgType:"LOGIN",msgData:r,exMsgData:{runtime:xs(),signStr:n.signStr,secretVersion:n.secretVersion}},[4,this.send({msg:o,waitResponse:!0,skipOnMessage:!0,timeout:5e3})];case 2:return(i=a.sent()).msgData.code?t(new Error(i.msgData.code+" "+i.msgData.message)):e({envId:n.envId}),[3,4];case 3:return s=a.sent(),t(s),[3,4];case 4:return[2]}}))}))})),i=e&&this._logins.get(e),s=Date.now(),i?(i.loggedIn=!1,i.loggingInPromise=o,i.loginStartTS=s):(i={loggedIn:!1,loggingInPromise:o,loginStartTS:s},this._logins.set(e||"",i)),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,o];case 2:if(a=l.sent(),(c=e&&this._logins.get(e))&&c===i&&c.loginStartTS===s)return i.loggedIn=!0,i.loggingInPromise=void 0,i.loginStartTS=void 0,i.loginResult=a,[2,a];if(c){if(c.loggedIn&&c.loginResult)return[2,c.loginResult];if(c.loggingInPromise)return[2,c.loggingInPromise];throw new Error("ws unexpected login info")}throw new Error("ws login info reset");case 3:throw u=l.sent(),i.loggedIn=!1,i.loggingInPromise=void 0,i.loginStartTS=void 0,i.loginResult=void 0,u;case 4:return[2]}}))}))},this.getWsSign=function(){return ks(t,void 0,void 0,(function(){var e,t,n,r,o,i,s;return Cs(this,(function(a){switch(a.label){case 0:return this._wsSign&&this._wsSign.expiredTs>Date.now()?[2,this._wsSign]:(e=Date.now()+6e4,[4,this._context.appConfig.request.send("auth.wsWebSign",{runtime:xs()})]);case 1:if((t=a.sent()).code)throw new Error("[tcb-js-sdk] 获取实时数据推送登录票据失败: "+t.code);if(t.data)return n=t.data,r=n.signStr,o=n.wsUrl,i=n.secretVersion,s=n.envId,[2,{signStr:r,wsUrl:o,secretVersion:i,envId:s,expiredTs:e}];throw new Error("[tcb-js-sdk] 获取实时数据推送登录票据失败")}}))}))},this.getWaitExpectedTimeoutLength=function(){return t._rttObserved.length?t._rttObserved.reduce((function(e,t){return e+t}))/t._rttObserved.length*1.5:5e3},this.ping=function(){return ks(t,void 0,void 0,(function(){var e;return Cs(this,(function(t){switch(t.label){case 0:return e={watchId:void 0,requestId:ss(),msgType:"PING",msgData:null},[4,this.send({msg:e})];case 1:return t.sent(),[2]}}))}))},this.onWatchStart=function(e,n){t._queryIdClientMap.set(n,e)},this.onWatchClose=function(e,n){n&&t._queryIdClientMap.delete(n),t._watchIdClientMap.delete(e.watchId),t._virtualWSClient.delete(e),t._virtualWSClient.size||t.close(Ss.NoRealtimeListeners)},this._maxReconnect=e.maxReconnect||5,this._reconnectInterval=e.reconnectInterval||1e4,this._context=e.context}return e.prototype.clearHeartbeat=function(){this._pingTimeoutId&&clearTimeout(this._pingTimeoutId),this._pongTimeoutId&&clearTimeout(this._pongTimeoutId)},e.prototype.close=function(e){this.clearHeartbeat(),this._ws&&(this._ws.close(e,Is[e].name),this._ws=void 0)},e.prototype.watch=function(e){this._ws||this._wsInitPromise||this.initWebSocketConnection(!1);var t=new bs(Ps(Ps({},e),{send:this.send,login:this.webLogin,isWSConnected:this.isWSConnected,onceWSConnected:this.onceWSConnected,getWaitExpectedTimeoutLength:this.getWaitExpectedTimeoutLength,onWatchStart:this.onWatchStart,onWatchClose:this.onWatchClose,debug:!0}));return this._virtualWSClient.add(t),this._watchIdClientMap.set(t.watchId,t),t.listener},e.prototype.heartbeat=function(e){var t=this;this.clearHeartbeat(),this._pingTimeoutId=setTimeout((function(){return ks(t,void 0,void 0,(function(){var e=this;return Cs(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),this._ws&&this._ws.readyState===Ls?(this._lastPingSendTS=Date.now(),[4,this.ping()]):[2];case 1:return t.sent(),this._pingFailed=0,this._pongTimeoutId=setTimeout((function(){console.error("pong timed out"),e._pongMissed<2?(e._pongMissed++,e.heartbeat(!0)):e.initWebSocketConnection(!0)}),this._context.appConfig.realtimePongWaitTimeout),[3,3];case 2:return t.sent(),this._pingFailed<2?(this._pingFailed++,this.heartbeat()):this.close(Ss.HeartbeatPingError),[3,3];case 3:return[2]}}))}))}),e?0:this._context.appConfig.realtimePingInterval)},e}(),Us={target:"database",entity:function(){var e,t=this.platform,n=t.adapter,r=t.runtime;e=n.wsClass,Os=e,Rs(r)}},js={name:"realtime",IIFE:!0,entity:function(){this.prototype.wsClientClass=Ds}};try{cloudbase.registerComponent(js),cloudbase.registerHook(Us)}catch(e){}var Ms=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Bs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},qs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},Ws=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},Fs=Pe.ERRORS,Hs=Pe.COMMUNITY_SITE_URL,$s=xe.catchErrorsDecorator,Ks="analytics",Gs=["mall"];var Vs,Js,zs=new(function(){function e(){}return e.prototype.analytics=function(e){return qs(this,void 0,void 0,(function(){var t,n,r;return Ws(this,(function(o){if(!function(e){if("Object"!==Object.prototype.toString.call(e).slice(8,-1))return!1;var t=e.report_data,n=e.report_type;return!1!==Gs.includes(n)&&"Object"===Object.prototype.toString.call(t).slice(8,-1)&&!(void 0!==t.action_time&&!Number.isInteger(t.action_time))&&"string"==typeof t.action_type}(e))throw new Error(JSON.stringify({code:Fs.INVALID_PARAMS,msg:"["+Ks+".analytics] invalid report data"}));return"analytics.report",t=void 0===e.report_data.action_time?Math.floor(Date.now()/1e3):e.report_data.action_time,n={analytics_scene:e.report_type,analytics_data:Object.assign({},e.report_data,{action_time:t})},r={requestData:n},this.request.send("analytics.report",r),[2]}))}))},Ms([$s({customInfo:{className:"Cloudbase",methodName:"analytics"},title:"上报调用失败",messages:["请确认以下各项:"," 1 - 调用 analytics() 的语法或参数是否正确","如果问题依然存在,建议到官方问答社区提问或寻找帮助:"+Hs]}),Bs("design:type",Function),Bs("design:paramtypes",[Object]),Bs("design:returntype",Promise)],e.prototype,"analytics",null),e}()),Ys={name:Ks,entity:{analytics:zs.analytics}};try{cloudbase.registerComponent(Ys)}catch(e){}!function(e){e.DocIDError="文档ID不合法",e.CollNameError="集合名称不合法",e.OpStrError="操作符不合法",e.DirectionError="排序字符不合法",e.IntergerError="must be integer",e.QueryParamTypeError="查询参数必须为对象",e.QueryParamValueError="查询参数对象值不能均为undefined"}(Js||(Js={}));var Xs,Zs,Qs="Number",ea="Object",ta="Array",na="GeoPoint",ra="GeoLineString",oa="GeoPolygon",ia="GeoMultiPoint",sa="GeoMultiLineString",aa="GeoMultiPolygon",ca="Date",ua="ServerDate",fa="BsonDate",la=["desc","asc"],ha=["<","<=","==",">=",">"];!function(e){e.lt="<",e.gt=">",e.lte="<=",e.gte=">=",e.eq="=="}(Xs||(Xs={})),(Vs={})[Xs.eq]="$eq",Vs[Xs.lt]="$lt",Vs[Xs.lte]="$lte",Vs[Xs.gt]="$gt",Vs[Xs.gte]="$gte",function(e){e.WHERE="WHERE",e.DOC="DOC"}(Zs||(Zs={}));var pa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),da=[],ya={},ga=function(e){function t(t,n){if(n!==ya)throw new TypeError("InternalSymbol cannot be constructed with new operator");return e.call(this,t)||this}return pa(t,e),t.for=function(e){for(var n=0,r=da.length;n<r;n++)if(da[n].target===e)return da[n].instance;var o=new t(e,ya);return da.push({target:e,instance:o}),o},t}((function(e){Object.defineProperties(this,{target:{enumerable:!1,writable:!1,configurable:!1,value:e}})})),va=ga,_a=va.for("UNSET_FIELD_NAME"),ma=va.for("UPDATE_COMMAND"),wa=va.for("QUERY_COMMAND"),ba=va.for("LOGIC_COMMAND"),Ea=va.for("GEO_POINT"),Sa=va.for("SYMBOL_GEO_LINE_STRING"),Ia=va.for("SYMBOL_GEO_POLYGON"),Aa=va.for("SYMBOL_GEO_MULTI_POINT"),Oa=va.for("SYMBOL_GEO_MULTI_LINE_STRING"),Na=va.for("SYMBOL_GEO_MULTI_POLYGON"),Ta=va.for("SERVER_DATE"),xa=va.for("REGEXP"),Ra=function(){function e(e){var t=(void 0===e?{}:e).offset,n=void 0===t?0:t;this.offset=n}return Object.defineProperty(e.prototype,"_internalType",{get:function(){return Ta},enumerable:!0,configurable:!0}),e.prototype.parse=function(){return{$date:{offset:this.offset}}},e}();function Pa(e){return new Ra(e)}var ka,Ca=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},La=function(){function e(){}return e.formatResDocumentData=function(t){return t.map((function(t){return e.formatField(t)}))},e.formatField=function(t){var n=Object.keys(t),r={};return Array.isArray(t)&&(r=[]),n.forEach((function(n){var o,i=t[n];switch(e.whichType(i)){case na:o=new Ha(i.coordinates[0],i.coordinates[1]);break;case ra:o=new Ka(i.coordinates.map((function(e){return new Ha(e[0],e[1])})));break;case oa:o=new Va(i.coordinates.map((function(e){return new Ka(e.map((function(e){var t=Ca(e,2),n=t[0],r=t[1];return new Ha(n,r)})))})));break;case ia:o=new za(i.coordinates.map((function(e){return new Ha(e[0],e[1])})));break;case sa:o=new Xa(i.coordinates.map((function(e){return new Ka(e.map((function(e){var t=Ca(e,2),n=t[0],r=t[1];return new Ha(n,r)})))})));break;case aa:o=new Qa(i.coordinates.map((function(e){return new Va(e.map((function(e){return new Ka(e.map((function(e){var t=Ca(e,2),n=t[0],r=t[1];return new Ha(n,r)})))})))})));break;case ca:o=new Date(1e3*i.$timestamp);break;case ea:case ta:o=e.formatField(i);break;case ua:o=new Date(i.$date);break;default:o=i}Array.isArray(r)?r.push(o):r[n]=o})),r},e.whichType=function(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(t===ca)return fa;if(t===ea){if(e instanceof Ha)return na;if(e instanceof Date)return ca;if(e instanceof Ra)return ua;e.$timestamp?t=ca:e.$date?t=ua:Ha.validate(e)?t=na:Ka.validate(e)?t=ra:Va.validate(e)?t=oa:za.validate(e)?t=ia:Xa.validate(e)?t=sa:Qa.validate(e)&&(t=aa)}return t},e.generateDocId=function(){for(var e="ABCDEFabcdef0123456789",t="",n=0;n<24;n++)t+=e.charAt(Math.floor(22*Math.random()));return t},e}(),Da=function(){function e(){}return e.isGeopoint=function(e,t){if(La.whichType(t)!==Qs)throw new Error("Geo Point must be number type");var n=Math.abs(t);if("latitude"===e&&n>90)throw new Error("latitude should be a number ranges from -90 to 90");if("longitude"===e&&n>180)throw new Error("longitude should be a number ranges from -180 to 180");return!0},e.isInteger=function(e,t){if(!Number.isInteger(t))throw new Error(e+Js.IntergerError);return!0},e.isFieldOrder=function(e){if(-1===la.indexOf(e))throw new Error(Js.DirectionError);return!0},e.isFieldPath=function(e){if(!/^[a-zA-Z0-9-_\.]/.test(e))throw new Error;return!0},e.isOperator=function(e){if(-1===ha.indexOf(e))throw new Error(Js.OpStrError);return!0},e.isCollName=function(e){if(!/^[a-zA-Z0-9]([a-zA-Z0-9-_]){1,32}$/.test(e))throw new Error(Js.CollNameError);return!0},e.isDocID=function(e){if(!/^([a-fA-F0-9]){24}$/.test(e))throw new Error(Js.DocIDError);return!0},e}(),Ua=function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()},ja=function(e){return"object"===Ua(e)},Ma=function(e){return"number"===Ua(e)},Ba=function(e){return Array.isArray(e)},qa=function(e){return"date"===Ua(e)},Wa=function(e){return"regexp"===Ua(e)},Fa=function(e){return e&&e._internalType instanceof ga},Ha=function(){function e(e,t){Da.isGeopoint("longitude",e),Da.isGeopoint("latitude",t),this.longitude=e,this.latitude=t}return e.prototype.parse=function(e){var t;return(t={})[e]={type:"Point",coordinates:[this.longitude,this.latitude]},t},e.prototype.toJSON=function(){return{type:"Point",coordinates:[this.longitude,this.latitude]}},e.prototype.toReadableString=function(){return"["+this.longitude+","+this.latitude+"]"},e.validate=function(e){return"Point"===e.type&&Ba(e.coordinates)&&Da.isGeopoint("longitude",e.coordinates[0])&&Da.isGeopoint("latitude",e.coordinates[1])},Object.defineProperty(e.prototype,"_internalType",{get:function(){return Ea},enumerable:!0,configurable:!0}),e}(),$a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ka=function(){function e(e){if(!Ba(e))throw new TypeError('"points" must be of type Point[]. Received type '+typeof e);if(e.length<2)throw new Error('"points" must contain 2 points at least');e.forEach((function(e){if(!(e instanceof Ha))throw new TypeError('"points" must be of type Point[]. Received type '+typeof e+"[]")})),this.points=e}return e.prototype.parse=function(e){var t;return(t={})[e]={type:"LineString",coordinates:this.points.map((function(e){return e.toJSON().coordinates}))},t},e.prototype.toJSON=function(){return{type:"LineString",coordinates:this.points.map((function(e){return e.toJSON().coordinates}))}},e.validate=function(e){var t,n;if("LineString"!==e.type||!Ba(e.coordinates))return!1;try{for(var r=$a(e.coordinates),o=r.next();!o.done;o=r.next()){var i=o.value;if(!Ma(i[0])||!Ma(i[1]))return!1}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!0},e.isClosed=function(e){var t=e.points[0],n=e.points[e.points.length-1];if(t.latitude===n.latitude&&t.longitude===n.longitude)return!0},Object.defineProperty(e.prototype,"_internalType",{get:function(){return Sa},enumerable:!0,configurable:!0}),e}(),Ga=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Va=function(){function e(e){if(!Ba(e))throw new TypeError('"lines" must be of type LineString[]. Received type '+typeof e);if(0===e.length)throw new Error("Polygon must contain 1 linestring at least");e.forEach((function(e){if(!(e instanceof Ka))throw new TypeError('"lines" must be of type LineString[]. Received type '+typeof e+"[]");if(!Ka.isClosed(e))throw new Error("LineString "+e.points.map((function(e){return e.toReadableString()}))+" is not a closed cycle")})),this.lines=e}return e.prototype.parse=function(e){var t;return(t={})[e]={type:"Polygon",coordinates:this.lines.map((function(e){return e.points.map((function(e){return[e.longitude,e.latitude]}))}))},t},e.prototype.toJSON=function(){return{type:"Polygon",coordinates:this.lines.map((function(e){return e.points.map((function(e){return[e.longitude,e.latitude]}))}))}},e.validate=function(e){var t,n,r,o;if("Polygon"!==e.type||!Ba(e.coordinates))return!1;try{for(var i=Ga(e.coordinates),s=i.next();!s.done;s=i.next()){var a=s.value;if(!this.isCloseLineString(a))return!1;try{for(var c=(r=void 0,Ga(a)),u=c.next();!u.done;u=c.next()){var f=u.value;if(!Ma(f[0])||!Ma(f[1]))return!1}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!0},e.isCloseLineString=function(e){var t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]},Object.defineProperty(e.prototype,"_internalType",{get:function(){return Na},enumerable:!0,configurable:!0}),e}(),Ja=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},za=function(){function e(e){if(!Ba(e))throw new TypeError('"points" must be of type Point[]. Received type '+typeof e);if(0===e.length)throw new Error('"points" must contain 1 point at least');e.forEach((function(e){if(!(e instanceof Ha))throw new TypeError('"points" must be of type Point[]. Received type '+typeof e+"[]")})),this.points=e}return e.prototype.parse=function(e){var t;return(t={})[e]={type:"MultiPoint",coordinates:this.points.map((function(e){return e.toJSON().coordinates}))},t},e.prototype.toJSON=function(){return{type:"MultiPoint",coordinates:this.points.map((function(e){return e.toJSON().coordinates}))}},e.validate=function(e){var t,n;if("MultiPoint"!==e.type||!Ba(e.coordinates))return!1;try{for(var r=Ja(e.coordinates),o=r.next();!o.done;o=r.next()){var i=o.value;if(!Ma(i[0])||!Ma(i[1]))return!1}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!0},Object.defineProperty(e.prototype,"_internalType",{get:function(){return Aa},enumerable:!0,configurable:!0}),e}(),Ya=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Xa=function(){function e(e){if(!Ba(e))throw new TypeError('"lines" must be of type LineString[]. Received type '+typeof e);if(0===e.length)throw new Error("Polygon must contain 1 linestring at least");e.forEach((function(e){if(!(e instanceof Ka))throw new TypeError('"lines" must be of type LineString[]. Received type '+typeof e+"[]")})),this.lines=e}return e.prototype.parse=function(e){var t;return(t={})[e]={type:"MultiLineString",coordinates:this.lines.map((function(e){return e.points.map((function(e){return[e.longitude,e.latitude]}))}))},t},e.prototype.toJSON=function(){return{type:"MultiLineString",coordinates:this.lines.map((function(e){return e.points.map((function(e){return[e.longitude,e.latitude]}))}))}},e.validate=function(e){var t,n,r,o;if("MultiLineString"!==e.type||!Ba(e.coordinates))return!1;try{for(var i=Ya(e.coordinates),s=i.next();!s.done;s=i.next()){var a=s.value;try{for(var c=(r=void 0,Ya(a)),u=c.next();!u.done;u=c.next()){var f=u.value;if(!Ma(f[0])||!Ma(f[1]))return!1}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!0},Object.defineProperty(e.prototype,"_internalType",{get:function(){return Oa},enumerable:!0,configurable:!0}),e}(),Za=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Qa=function(){function e(e){var t,n;if(!Ba(e))throw new TypeError('"polygons" must be of type Polygon[]. Received type '+typeof e);if(0===e.length)throw new Error("MultiPolygon must contain 1 polygon at least");try{for(var r=Za(e),o=r.next();!o.done;o=r.next()){var i=o.value;if(!(i instanceof Va))throw new TypeError('"polygon" must be of type Polygon[]. Received type '+typeof i+"[]")}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}this.polygons=e}return e.prototype.parse=function(e){var t;return(t={})[e]={type:"MultiPolygon",coordinates:this.polygons.map((function(e){return e.lines.map((function(e){return e.points.map((function(e){return[e.longitude,e.latitude]}))}))}))},t},e.prototype.toJSON=function(){return{type:"MultiPolygon",coordinates:this.polygons.map((function(e){return e.lines.map((function(e){return e.points.map((function(e){return[e.longitude,e.latitude]}))}))}))}},e.validate=function(e){var t,n,r,o,i,s;if("MultiPolygon"!==e.type||!Ba(e.coordinates))return!1;try{for(var a=Za(e.coordinates),c=a.next();!c.done;c=a.next()){var u=c.value;try{for(var f=(r=void 0,Za(u)),l=f.next();!l.done;l=f.next()){var h=l.value;try{for(var p=(i=void 0,Za(h)),d=p.next();!d.done;d=p.next()){var y=d.value;if(!Ma(y[0])||!Ma(y[1]))return!1}}catch(e){i={error:e}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return!0},Object.defineProperty(e.prototype,"_internalType",{get:function(){return Ia},enumerable:!0,configurable:!0}),e}(),ec=Object.freeze({__proto__:null,LineString:Ka,MultiLineString:Xa,MultiPoint:za,MultiPolygon:Qa,Point:Ha,Polygon:Va}),tc=function(){var e;if(!Promise){(e=function(){}).promise={};var t=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};!function(e){e.SET="set",e.REMOVE="remove",e.INC="inc",e.MUL="mul",e.PUSH="push",e.PULL="pull",e.PULL_ALL="pullAll",e.POP="pop",e.SHIFT="shift",e.UNSHIFT="unshift",e.ADD_TO_SET="addToSet",e.BIT="bit",e.RENAME="rename",e.MAX="max",e.MIN="min"}(ka||(ka={}));var nc,rc=function(){function e(e,t,n){this._internalType=ma,Object.defineProperties(this,{_internalType:{enumerable:!1,configurable:!1}}),this.operator=e,this.operands=t,this.fieldName=n||_a}return e.prototype._setFieldName=function(t){return new e(this.operator,this.operands,t)},e}();function oc(e){return e&&e instanceof rc&&e._internalType===ma}!function(e){e.AND="and",e.OR="or",e.NOT="not",e.NOR="nor"}(nc||(nc={}));var ic=function(){function e(e,t,n){if(this._internalType=ba,Object.defineProperties(this,{_internalType:{enumerable:!1,configurable:!1}}),this.operator=e,this.operands=t,this.fieldName=n||_a,this.fieldName!==_a)if(Array.isArray(t)){t=t.slice(),this.operands=t;for(var r=0,o=t.length;r<o;r++){(sc(i=t[r])||fc(i))&&(t[r]=i._setFieldName(this.fieldName))}}else{var i;(sc(i=t)||fc(i))&&(t=i._setFieldName(this.fieldName))}}return e.prototype._setFieldName=function(t){var n=this.operands.map((function(n){return n instanceof e?n._setFieldName(t):n}));return new e(this.operator,n,t)},e.prototype.and=function(){var t=Array.isArray(arguments[0])?arguments[0]:Array.from(arguments);return t.unshift(this),new e(nc.AND,t,this.fieldName)},e.prototype.or=function(){var t=Array.isArray(arguments[0])?arguments[0]:Array.from(arguments);return t.unshift(this),new e(nc.OR,t,this.fieldName)},e}();function sc(e){return e&&e instanceof ic&&e._internalType===ba}var ac,cc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){e.EQ="eq",e.NEQ="neq",e.GT="gt",e.GTE="gte",e.LT="lt",e.LTE="lte",e.IN="in",e.NIN="nin",e.ALL="all",e.ELEM_MATCH="elemMatch",e.EXISTS="exists",e.SIZE="size",e.MOD="mod",e.GEO_NEAR="geoNear",e.GEO_WITHIN="geoWithin",e.GEO_INTERSECTS="geoIntersects"}(ac||(ac={}));var uc=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.operator=t,o._internalType=wa,o}return cc(t,e),t.prototype.toJSON=function(){var e,t;switch(this.operator){case ac.IN:case ac.NIN:return(e={})["$"+this.operator]=this.operands,e;default:return(t={})["$"+this.operator]=this.operands[0],t}},t.prototype._setFieldName=function(e){return new t(this.operator,this.operands,e)},t.prototype.eq=function(e){var n=new t(ac.EQ,[e],this.fieldName);return this.and(n)},t.prototype.neq=function(e){var n=new t(ac.NEQ,[e],this.fieldName);return this.and(n)},t.prototype.gt=function(e){var n=new t(ac.GT,[e],this.fieldName);return this.and(n)},t.prototype.gte=function(e){var n=new t(ac.GTE,[e],this.fieldName);return this.and(n)},t.prototype.lt=function(e){var n=new t(ac.LT,[e],this.fieldName);return this.and(n)},t.prototype.lte=function(e){var n=new t(ac.LTE,[e],this.fieldName);return this.and(n)},t.prototype.in=function(e){var n=new t(ac.IN,e,this.fieldName);return this.and(n)},t.prototype.nin=function(e){var n=new t(ac.NIN,e,this.fieldName);return this.and(n)},t.prototype.geoNear=function(e){if(!(e.geometry instanceof Ha))throw new TypeError('"geometry" must be of type Point. Received type '+typeof e.geometry);if(void 0!==e.maxDistance&&!Ma(e.maxDistance))throw new TypeError('"maxDistance" must be of type Number. Received type '+typeof e.maxDistance);if(void 0!==e.minDistance&&!Ma(e.minDistance))throw new TypeError('"minDistance" must be of type Number. Received type '+typeof e.minDistance);var n=new t(ac.GEO_NEAR,[e],this.fieldName);return this.and(n)},t.prototype.geoWithin=function(e){if(!(e.geometry instanceof Qa||e.geometry instanceof Va))throw new TypeError('"geometry" must be of type Polygon or MultiPolygon. Received type '+typeof e.geometry);var n=new t(ac.GEO_WITHIN,[e],this.fieldName);return this.and(n)},t.prototype.geoIntersects=function(e){if(!(e.geometry instanceof Ha||e.geometry instanceof Ka||e.geometry instanceof Va||e.geometry instanceof za||e.geometry instanceof Xa||e.geometry instanceof Qa))throw new TypeError('"geometry" must be of type Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon. Received type '+typeof e.geometry);var n=new t(ac.GEO_INTERSECTS,[e],this.fieldName);return this.and(n)},t}(ic);function fc(e){return e&&e instanceof uc&&e._internalType===wa}function lc(e){return fc(e)}var hc={};for(var pc in ac)hc[pc]="$"+pc;for(var pc in nc)hc[pc]="$"+pc;for(var pc in ka)hc[pc]="$"+pc;function dc(e){return hc[e]||"$"+e}hc[ac.NEQ]="$ne",hc[ka.REMOVE]="$unset",hc[ka.SHIFT]="$pop",hc[ka.UNSHIFT]="$push";var yc=function(){return yc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yc.apply(this,arguments)},gc=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},vc=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(gc(arguments[t]));return e};function _c(e){return mc(e,[e])}function mc(e,t){if(!Fa(e)){if(qa(e))return{$date:+e};if(Wa(e))return{$regex:e.source,$options:e.flags};if(Ba(e))return e.map((function(e){if(t.indexOf(e)>-1)throw new Error("Cannot convert circular structure to JSON");return mc(e,vc(t,[e]))}));if(ja(e)){var n=yc({},e);for(var r in n){if(t.indexOf(n[r])>-1)throw new Error("Cannot convert circular structure to JSON");n[r]=mc(n[r],vc(t,[n[r]]))}return n}return e}switch(e._internalType){case Ea:return e.toJSON();case Ta:case xa:return e.parse();default:return e.toJSON?e.toJSON():e}}var wc=function(){return wc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wc.apply(this,arguments)},bc=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Ec=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(bc(arguments[t]));return e};function Sc(e,t,n,r){var o=wc({},e);for(var i in e)if(!/^\$/.test(i)){var s=e[i];if(s&&ja(s)&&!t(s)){if(r.indexOf(s)>-1)throw new Error("Cannot convert circular structure to JSON");var a=Sc(s,t,Ec(n,[i]),Ec(r,[s]));o[i]=a;var c=!1;for(var u in a)/^\$/.test(u)?c=!0:(o[i+"."+u]=a[u],delete o[i][u]);c||delete o[i]}}return o}function Ic(e){return Sc(e,Oc,[],[e])}function Ac(e,t,n){for(var r in t[n]||delete e[n],t)e[r]?Ba(e[r])?e[r].push(t[r]):ja(e[r])?ja(t[r])?Object.assign(e[r],t[r]):(console.warn("unmergable condition, query is object but condition is "+Ua(t)+", can only overwrite",t,n),e[r]=t[r]):(console.warn("to-merge query is of type "+Ua(e)+", can only overwrite",e,t,n),e[r]=t[r]):e[r]=t[r]}function Oc(e){return Fa(e)||qa(e)||Wa(e)}function Nc(e){return _c(e)}var Tc=function(){function e(){}return e.encode=function(t){return(new e).encodeUpdate(t)},e.prototype.encodeUpdate=function(e){return oc(e)?this.encodeUpdateCommand(e):"object"===Ua(e)?this.encodeUpdateObject(e):e},e.prototype.encodeUpdateCommand=function(e){if(e.fieldName===_a)throw new Error("Cannot encode a comparison command with unset field name");switch(e.operator){case ka.PUSH:case ka.PULL:case ka.PULL_ALL:case ka.POP:case ka.SHIFT:case ka.UNSHIFT:case ka.ADD_TO_SET:return this.encodeArrayUpdateCommand(e);default:return this.encodeFieldUpdateCommand(e)}},e.prototype.encodeFieldUpdateCommand=function(e){var t,n,r,o,i=dc(e.operator);return e.operator===ka.REMOVE?((t={})[i]=((n={})[e.fieldName]="",n),t):((r={})[i]=((o={})[e.fieldName]=e.operands[0],o),r)},e.prototype.encodeArrayUpdateCommand=function(e){var t,n,r,o,i,s,a,c,u,f,l=dc(e.operator);switch(e.operator){case ka.PUSH:var h=void 0;return h=Ba(e.operands)?{$each:e.operands.map(Nc)}:e.operands,(t={})[l]=((n={})[e.fieldName]=h,n),t;case ka.UNSHIFT:h={$each:e.operands.map(Nc),$position:0};return(r={})[l]=((o={})[e.fieldName]=h,o),r;case ka.POP:return(i={})[l]=((s={})[e.fieldName]=1,s),i;case ka.SHIFT:return(a={})[l]=((c={})[e.fieldName]=-1,c),a;default:return(u={})[l]=((f={})[e.fieldName]=Nc(e.operands),f),u}},e.prototype.encodeUpdateObject=function(e){var t=Ic(e);for(var n in t)if(!/^\$/.test(n)){var r=t[n];if(oc(r)){t[n]=r._setFieldName(n),Ac(t,this.encodeUpdateCommand(t[n]),n)}else{t[n]=r=Nc(r);var o=new rc(ka.SET,[r],n);Ac(t,this.encodeUpdateCommand(o),n)}}return t},e}(),xc={};function Rc(e){if(!bf.wsClientClass)throw new Error("to use realtime you must import realtime module first");var t=e.config.env;return xc[t]||(xc[t]=new bf.wsClientClass({context:{appConfig:{docSizeLimit:1e3,realtimePingInterval:1e4,realtimePongWaitTimeout:5e3,request:new bf.reqClass(e.config)}}})),xc[t]}var Pc=function(){return Pc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pc.apply(this,arguments)},kc=function(){function e(e,t,n,r){var o=this;void 0===r&&(r={}),this.watch=function(e){return Rc(o._db).watch(Pc(Pc({},e),{envId:o._db.config.env,collectionName:o._coll,query:JSON.stringify({_id:o.id})}))},this._db=e,this._coll=t,this.id=n,this.request=new bf.reqClass(this._db.config),this.projection=r}return e.prototype.create=function(e,t){t=t||tc();var n={collectionName:this._coll,data:_c(e)};return this.id&&(n._id=this.id),this.request.send("database.addDocument",n).then((function(e){e.code?t(0,e):t(0,{id:e.data._id,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},e.prototype.set=function(e,t){if(t=t||tc(),!this.id)return Promise.resolve({code:"INVALID_PARAM",message:"docId不能为空"});if(!e||"object"!=typeof e)return Promise.resolve({code:"INVALID_PARAM",message:"参数必需是非空对象"});if(e.hasOwnProperty("_id"))return Promise.resolve({code:"INVALID_PARAM",message:"不能更新_id的值"});var n=!1,r=function(e){if("object"==typeof e)for(var t in e)e[t]instanceof rc?n=!0:"object"==typeof e[t]&&r(e[t])};if(r(e),n)return Promise.resolve({code:"DATABASE_REQUEST_FAILED",message:"update operator complicit"});var o={collectionName:this._coll,queryType:Zs.DOC,data:_c(e),multi:!1,merge:!1,upsert:!0};return this.id&&(o.query={_id:this.id}),this.request.send("database.updateDocument",o).then((function(e){e.code?t(0,e):t(0,{updated:e.data.updated,upsertedId:e.data.upserted_id,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},e.prototype.update=function(e,t){if(t=t||tc(),!e||"object"!=typeof e)return Promise.resolve({code:"INVALID_PARAM",message:"参数必需是非空对象"});if(e.hasOwnProperty("_id"))return Promise.resolve({code:"INVALID_PARAM",message:"不能更新_id的值"});var n={_id:this.id},r={collectionName:this._coll,data:Tc.encode(e),query:n,queryType:Zs.DOC,multi:!1,merge:!0,upsert:!1};return this.request.send("database.updateDocument",r).then((function(e){e.code?t(0,e):t(0,{updated:e.data.updated,upsertedId:e.data.upserted_id,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},e.prototype.remove=function(e){e=e||tc();var t={_id:this.id},n={collectionName:this._coll,query:t,queryType:Zs.DOC,multi:!1};return this.request.send("database.deleteDocument",n).then((function(t){t.code?e(0,t):e(0,{deleted:t.data.deleted,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},e.prototype.get=function(e){e=e||tc();var t={_id:this.id},n={collectionName:this._coll,query:t,queryType:Zs.DOC,multi:!1,projection:this.projection};return this.request.send("database.queryDocument",n).then((function(t){if(t.code)e(0,t);else{var n=La.formatResDocumentData(t.data.list);e(0,{data:n,requestId:t.requestId,total:t.TotalCount,limit:t.Limit,offset:t.Offset})}})).catch((function(t){e(t)})),e.promise},e.prototype.field=function(t){for(var n in t)t[n]?t[n]=1:t[n]=0;return new e(this._db,this._coll,this.id,t)},e}(),Cc=function(){function e(){}return e.encode=function(e){return(new Lc).encodeQuery(e)},e}(),Lc=function(){function e(){}return e.prototype.encodeQuery=function(e,t){var n;return Oc(e)?sc(e)?this.encodeLogicCommand(e):fc(e)?this.encodeQueryCommand(e):((n={})[t]=this.encodeQueryObject(e),n):ja(e)?this.encodeQueryObject(e):e},e.prototype.encodeRegExp=function(e){return{$regex:e.source,$options:e.flags}},e.prototype.encodeLogicCommand=function(e){var t,n,r,o,i,s,a,c=this;switch(e.operator){case nc.NOR:case nc.AND:case nc.OR:var u=dc(e.operator),f=e.operands.map((function(t){return c.encodeQuery(t,e.fieldName)}));return(t={})[u]=f,t;case nc.NOT:u=dc(e.operator);var l=e.operands[0];if(Wa(l))return(n={})[e.fieldName]=((r={})[u]=this.encodeRegExp(l),r),n;f=this.encodeQuery(l)[e.fieldName];return(o={})[e.fieldName]=((i={})[u]=f,i),o;default:u=dc(e.operator);if(1===e.operands.length){var h=this.encodeQuery(e.operands[0]);return(s={})[u]=h,s}f=e.operands.map(this.encodeQuery.bind(this));return(a={})[u]=f,a}},e.prototype.encodeQueryCommand=function(e){return lc(e),this.encodeComparisonCommand(e)},e.prototype.encodeComparisonCommand=function(e){var t,n,r,o,i,s,a,c,u;if(e.fieldName===_a)throw new Error("Cannot encode a comparison command with unset field name");var f=dc(e.operator);switch(e.operator){case ac.EQ:case ac.NEQ:case ac.LT:case ac.LTE:case ac.GT:case ac.GTE:case ac.ELEM_MATCH:case ac.EXISTS:case ac.SIZE:case ac.MOD:return(t={})[e.fieldName]=((n={})[f]=Nc(e.operands[0]),n),t;case ac.IN:case ac.NIN:case ac.ALL:return(r={})[e.fieldName]=((o={})[f]=Nc(e.operands),o),r;case ac.GEO_NEAR:var l=e.operands[0];return(i={})[e.fieldName]={$nearSphere:{$geometry:l.geometry.toJSON(),$maxDistance:l.maxDistance,$minDistance:l.minDistance}},i;case ac.GEO_WITHIN:l=e.operands[0];return(s={})[e.fieldName]={$geoWithin:{$geometry:l.geometry.toJSON()}},s;case ac.GEO_INTERSECTS:l=e.operands[0];return(a={})[e.fieldName]={$geoIntersects:{$geometry:l.geometry.toJSON()}},a;default:return(c={})[e.fieldName]=((u={})[f]=Nc(e.operands[0]),u),c}},e.prototype.encodeQueryObject=function(e){var t=Ic(e);for(var n in t){var r=t[n];if(sc(r)){t[n]=r._setFieldName(n);var o=this.encodeLogicCommand(t[n]);this.mergeConditionAfterEncode(t,o,n)}else if(lc(r)){t[n]=r._setFieldName(n);o=this.encodeComparisonCommand(t[n]);this.mergeConditionAfterEncode(t,o,n)}else Oc(r)&&(t[n]=Nc(r))}return t},e.prototype.mergeConditionAfterEncode=function(e,t,n){for(var r in t[n]||delete e[n],t)e[r]?Ba(e[r])?e[r]=e[r].concat(t[r]):ja(e[r])?ja(t[r])?Object.assign(e,t):(console.warn("unmergable condition, query is object but condition is "+Ua(t)+", can only overwrite",t,n),e[r]=t[r]):(console.warn("to-merge query is of type "+Ua(e)+", can only overwrite",e,t,n),e[r]=t[r]):e[r]=t[r]},e}(),Dc=function(){return Dc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dc.apply(this,arguments)},Uc=function(){function e(e,t,n,r,o){var i=this;this.watch=function(e){return Rc(i._db).watch(Dc(Dc({},e),{envId:i._db.config.env,collectionName:i._coll,query:JSON.stringify(i._fieldFilters||{}),limit:i._queryOptions.limit,orderBy:i._fieldOrders?i._fieldOrders.reduce((function(e,t){return e[t.field]=t.direction,e}),{}):void 0}))},this._db=e,this._coll=t,this._fieldFilters=n,this._fieldOrders=r||[],this._queryOptions=o||{},this._request=new bf.reqClass(this._db.config)}return e.prototype.get=function(e){e=e||tc();var t=[];this._fieldOrders&&this._fieldOrders.forEach((function(e){t.push(e)}));var n={collectionName:this._coll,queryType:Zs.WHERE};return this._fieldFilters&&(n.query=this._fieldFilters),t.length>0&&(n.order=t),this._queryOptions.offset&&(n.offset=this._queryOptions.offset),this._queryOptions.limit?n.limit=this._queryOptions.limit<1e3?this._queryOptions.limit:1e3:n.limit=100,this._queryOptions.projection&&(n.projection=this._queryOptions.projection),this._request.send("database.queryDocument",n).then((function(t){if(t.code)e(0,t);else{var n={data:La.formatResDocumentData(t.data.list),requestId:t.requestId};t.TotalCount&&(n.total=t.TotalCount),t.Limit&&(n.limit=t.Limit),t.Offset&&(n.offset=t.Offset),e(0,n)}})).catch((function(t){e(t)})),e.promise},e.prototype.count=function(e){e=e||tc();var t={collectionName:this._coll,queryType:Zs.WHERE};return this._fieldFilters&&(t.query=this._fieldFilters),this._request.send("database.countDocument",t).then((function(t){t.code?e(0,t):e(0,{requestId:t.requestId,total:t.data.total})})).catch((function(t){e(t)})),e.promise},e.prototype.where=function(t){if("Object"!==Object.prototype.toString.call(t).slice(8,-1))throw Error(Js.QueryParamTypeError);var n=Object.keys(t),r=n.some((function(e){return void 0!==t[e]}));if(n.length&&!r)throw Error(Js.QueryParamValueError);return new e(this._db,this._coll,Cc.encode(t),this._fieldOrders,this._queryOptions)},e.prototype.orderBy=function(t,n){Da.isFieldPath(t),Da.isFieldOrder(n);var r={field:t,direction:n},o=this._fieldOrders.concat(r);return new e(this._db,this._coll,this._fieldFilters,o,this._queryOptions)},e.prototype.limit=function(t){Da.isInteger("limit",t);var n=Dc({},this._queryOptions);return n.limit=t,new e(this._db,this._coll,this._fieldFilters,this._fieldOrders,n)},e.prototype.skip=function(t){Da.isInteger("offset",t);var n=Dc({},this._queryOptions);return n.offset=t,new e(this._db,this._coll,this._fieldFilters,this._fieldOrders,n)},e.prototype.update=function(e,t){if(t=t||tc(),!e||"object"!=typeof e)return Promise.resolve({code:"INVALID_PARAM",message:"参数必需是非空对象"});if(e.hasOwnProperty("_id"))return Promise.resolve({code:"INVALID_PARAM",message:"不能更新_id的值"});var n={collectionName:this._coll,query:this._fieldFilters,queryType:Zs.WHERE,multi:!0,merge:!0,upsert:!1,data:Tc.encode(e)};return this._request.send("database.updateDocument",n).then((function(e){e.code?t(0,e):t(0,{requestId:e.requestId,updated:e.data.updated,upsertId:e.data.upsert_id})})).catch((function(e){t(e)})),t.promise},e.prototype.field=function(t){for(var n in t)t[n]?"object"!=typeof t[n]&&(t[n]=1):t[n]=0;var r=Dc({},this._queryOptions);return r.projection=t,new e(this._db,this._coll,this._fieldFilters,this._fieldOrders,r)},e.prototype.remove=function(e){e=e||tc(),Object.keys(this._queryOptions).length>0&&console.warn("`offset`, `limit` and `projection` are not supported in remove() operation"),this._fieldOrders.length>0&&console.warn("`orderBy` is not supported in remove() operation");var t={collectionName:this._coll,query:Cc.encode(this._fieldFilters),queryType:Zs.WHERE,multi:!0};return this._request.send("database.deleteDocument",t).then((function(t){t.code?e(0,t):e(0,{requestId:t.requestId,deleted:t.data.deleted})})).catch((function(t){e(t)})),e.promise},e}(),jc=function(e,t){return jc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},jc(e,t)};function Mc(e,t){function n(){this.constructor=e}jc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Bc=function(e){function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return Mc(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"BSONError"},enumerable:!1,configurable:!0}),t}(Error),qc=function(e){function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return Mc(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"BSONTypeError"},enumerable:!1,configurable:!0}),t}(TypeError);function Wc(e){return e&&e.Math==Math&&e}function Fc(){return Wc("object"==typeof globalThis&&globalThis)||Wc("object"==typeof window&&window)||Wc("object"==typeof self&&self)||Wc("object"==typeof global&&global)||Function("return this")()}var Hc=function(t){var n,r="object"==typeof(n=Fc()).navigator&&"ReactNative"===n.navigator.product?"BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.":"BSON: No cryptographic implementation for random bytes present, falling back to a less secure implementation.";console.warn(r);for(var o=e.alloc(t),i=0;i<t;++i)o[i]=Math.floor(256*Math.random());return o},$c=function(){var e=void 0;try{e=require("crypto").randomBytes}catch(e){}return e||Hc}();function Kc(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function Gc(e){return"object"==typeof e&&null!==e}function Vc(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(console.warn(t),n=!0),e.apply(this,r)}}function Jc(t){if(ArrayBuffer.isView(t))return e.from(t.buffer,t.byteOffset,t.byteLength);if(n=t,["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(n)))return e.from(t);var n;throw new qc("Must use either Buffer or TypedArray")}var zc=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15})$/i,Yc=function(e){return"string"==typeof e&&zc.test(e)},Xc=function(t){if(!Yc(t))throw new qc('UUID string representations must be a 32 or 36 character hex string (dashes excluded/included). Format: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" or "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".');var n=t.replace(/-/g,"");return e.from(n,"hex")},Zc=function(e,t){return void 0===t&&(t=!0),t?e.toString("hex",0,4)+"-"+e.toString("hex",4,6)+"-"+e.toString("hex",6,8)+"-"+e.toString("hex",8,10)+"-"+e.toString("hex",10,16):e.toString("hex")},Qc=Math.pow(2,53),eu=-Math.pow(2,53),tu=function(){function t(n,r){if(!(this instanceof t))return new t(n,r);if(!(null==n||"string"==typeof n||ArrayBuffer.isView(n)||n instanceof ArrayBuffer||Array.isArray(n)))throw new qc("Binary can only be constructed from string, Buffer, TypedArray, or Array<number>");this.sub_type=null!=r?r:t.BSON_BINARY_SUBTYPE_DEFAULT,null==n?(this.buffer=e.alloc(t.BUFFER_SIZE),this.position=0):("string"==typeof n?this.buffer=e.from(n,"binary"):Array.isArray(n)?this.buffer=e.from(n):this.buffer=Jc(n),this.position=this.buffer.byteLength)}return t.prototype.put=function(n){if("string"==typeof n&&1!==n.length)throw new qc("only accepts single character String");if("number"!=typeof n&&1!==n.length)throw new qc("only accepts single character Uint8Array or Array");var r;if((r="string"==typeof n?n.charCodeAt(0):"number"==typeof n?n:n[0])<0||r>255)throw new qc("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.length>this.position)this.buffer[this.position++]=r;else{var o=e.alloc(t.BUFFER_SIZE+this.buffer.length);this.buffer.copy(o,0,0,this.buffer.length),this.buffer=o,this.buffer[this.position++]=r}},t.prototype.write=function(t,n){if(n="number"==typeof n?n:this.position,this.buffer.length<n+t.length){var r=e.alloc(this.buffer.length+t.length);this.buffer.copy(r,0,0,this.buffer.length),this.buffer=r}ArrayBuffer.isView(t)?(this.buffer.set(Jc(t),n),this.position=n+t.byteLength>this.position?n+t.length:this.position):"string"==typeof t&&(this.buffer.write(t,n,t.length,"binary"),this.position=n+t.length>this.position?n+t.length:this.position)},t.prototype.read=function(e,t){return t=t&&t>0?t:this.position,this.buffer.slice(e,e+t)},t.prototype.value=function(e){return(e=!!e)&&this.buffer.length===this.position?this.buffer:e?this.buffer.slice(0,this.position):this.buffer.toString("binary",0,this.position)},t.prototype.length=function(){return this.position},t.prototype.toJSON=function(){return this.buffer.toString("base64")},t.prototype.toString=function(e){return this.buffer.toString(e)},t.prototype.toExtendedJSON=function(e){e=e||{};var t=this.buffer.toString("base64"),n=Number(this.sub_type).toString(16);return e.legacy?{$binary:t,$type:1===n.length?"0"+n:n}:{$binary:{base64:t,subType:1===n.length?"0"+n:n}}},t.prototype.toUUID=function(){if(this.sub_type===t.SUBTYPE_UUID)return new nu(this.buffer.slice(0,this.position));throw new Bc('Binary sub_type "'.concat(this.sub_type,'" is not supported for converting to UUID. Only "').concat(t.SUBTYPE_UUID,'" is currently supported.'))},t.fromExtendedJSON=function(n,r){var o,i;if(r=r||{},"$binary"in n?r.legacy&&"string"==typeof n.$binary&&"$type"in n?(i=n.$type?parseInt(n.$type,16):0,o=e.from(n.$binary,"base64")):"string"!=typeof n.$binary&&(i=n.$binary.subType?parseInt(n.$binary.subType,16):0,o=e.from(n.$binary.base64,"base64")):"$uuid"in n&&(i=4,o=Xc(n.$uuid)),!o)throw new qc("Unexpected Binary Extended JSON format ".concat(JSON.stringify(n)));return 4===i?new nu(o):new t(o,i)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){var e=this.value(!0);return'new Binary(Buffer.from("'.concat(e.toString("hex"),'", "hex"), ').concat(this.sub_type,")")},t.BSON_BINARY_SUBTYPE_DEFAULT=0,t.BUFFER_SIZE=256,t.SUBTYPE_DEFAULT=0,t.SUBTYPE_FUNCTION=1,t.SUBTYPE_BYTE_ARRAY=2,t.SUBTYPE_UUID_OLD=3,t.SUBTYPE_UUID=4,t.SUBTYPE_MD5=5,t.SUBTYPE_ENCRYPTED=6,t.SUBTYPE_COLUMN=7,t.SUBTYPE_USER_DEFINED=128,t}();Object.defineProperty(tu.prototype,"_bsontype",{value:"Binary"});var nu=function(t){function n(r){var o,i,s=this;if(null==r)o=n.generate();else if(r instanceof n)o=e.from(r.buffer),i=r.__id;else if(ArrayBuffer.isView(r)&&16===r.byteLength)o=Jc(r);else{if("string"!=typeof r)throw new qc("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");o=Xc(r)}return(s=t.call(this,o,4)||this).__id=i,s}return Mc(n,t),Object.defineProperty(n.prototype,"id",{get:function(){return this.buffer},set:function(e){this.buffer=e,n.cacheHexString&&(this.__id=Zc(e))},enumerable:!1,configurable:!0}),n.prototype.toHexString=function(e){if(void 0===e&&(e=!0),n.cacheHexString&&this.__id)return this.__id;var t=Zc(this.id,e);return n.cacheHexString&&(this.__id=t),t},n.prototype.toString=function(e){return e?this.id.toString(e):this.toHexString()},n.prototype.toJSON=function(){return this.toHexString()},n.prototype.equals=function(e){if(!e)return!1;if(e instanceof n)return e.id.equals(this.id);try{return new n(e).id.equals(this.id)}catch(e){return!1}},n.prototype.toBinary=function(){return new tu(this.id,tu.SUBTYPE_UUID)},n.generate=function(){var t=$c(16);return t[6]=15&t[6]|64,t[8]=63&t[8]|128,e.from(t)},n.isValid=function(e){return!!e&&(e instanceof n||("string"==typeof e?Yc(e):!!Kc(e)&&(16===e.length&&(64==(240&e[6])&&128==(128&e[8])))))},n.createFromHexString=function(e){return new n(Xc(e))},n.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},n.prototype.inspect=function(){return'new UUID("'.concat(this.toHexString(),'")')},n}(tu),ru=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);this.code=t,this.scope=n}return e.prototype.toJSON=function(){return{code:this.code,scope:this.scope}},e.prototype.toExtendedJSON=function(){return this.scope?{$code:this.code,$scope:this.scope}:{$code:this.code}},e.fromExtendedJSON=function(t){return new e(t.$code,t.$scope)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var e=this.toJSON();return'new Code("'.concat(String(e.code),'"').concat(e.scope?", ".concat(JSON.stringify(e.scope)):"",")")},e}();Object.defineProperty(ru.prototype,"_bsontype",{value:"Code"});var ou=function(){function e(t,n,r,o){if(!(this instanceof e))return new e(t,n,r,o);var i=t.split(".");2===i.length&&(r=i.shift(),t=i.shift()),this.collection=t,this.oid=n,this.db=r,this.fields=o||{}}return Object.defineProperty(e.prototype,"namespace",{get:function(){return this.collection},set:function(e){this.collection=e},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){var e=Object.assign({$ref:this.collection,$id:this.oid},this.fields);return null!=this.db&&(e.$db=this.db),e},e.prototype.toExtendedJSON=function(e){e=e||{};var t={$ref:this.collection,$id:this.oid};return e.legacy?t:(this.db&&(t.$db=this.db),t=Object.assign(t,this.fields))},e.fromExtendedJSON=function(t){var n=Object.assign({},t);return delete n.$ref,delete n.$id,delete n.$db,new e(t.$ref,t.$id,t.$db,n)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var e=void 0===this.oid||void 0===this.oid.toString?this.oid:this.oid.toString();return'new DBRef("'.concat(this.namespace,'", new ObjectId("').concat(String(e),'")').concat(this.db?', "'.concat(this.db,'"'):"",")")},e}();Object.defineProperty(ou.prototype,"_bsontype",{value:"DBRef"});var iu=void 0;try{iu=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(Vs){}var su=4294967296,au=0x10000000000000000,cu=au/2,uu={},fu={},lu=function(){function e(t,n,r){if(void 0===t&&(t=0),!(this instanceof e))return new e(t,n,r);"bigint"==typeof t?Object.assign(this,e.fromBigInt(t,!!n)):"string"==typeof t?Object.assign(this,e.fromString(t,!!n)):(this.low=0|t,this.high=0|n,this.unsigned=!!r),Object.defineProperty(this,"__isLong__",{value:!0,configurable:!1,writable:!1,enumerable:!1})}return e.fromBits=function(t,n,r){return new e(t,n,r)},e.fromInt=function(t,n){var r,o,i;return n?(i=0<=(t>>>=0)&&t<256)&&(o=fu[t])?o:(r=e.fromBits(t,(0|t)<0?-1:0,!0),i&&(fu[t]=r),r):(i=-128<=(t|=0)&&t<128)&&(o=uu[t])?o:(r=e.fromBits(t,t<0?-1:0,!1),i&&(uu[t]=r),r)},e.fromNumber=function(t,n){if(isNaN(t))return n?e.UZERO:e.ZERO;if(n){if(t<0)return e.UZERO;if(t>=au)return e.MAX_UNSIGNED_VALUE}else{if(t<=-cu)return e.MIN_VALUE;if(t+1>=cu)return e.MAX_VALUE}return t<0?e.fromNumber(-t,n).neg():e.fromBits(t%su|0,t/su|0,n)},e.fromBigInt=function(t,n){return e.fromString(t.toString(),n)},e.fromString=function(t,n,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return e.ZERO;if("number"==typeof n?(r=n,n=!1):n=!!n,(r=r||10)<2||36<r)throw RangeError("radix");var o;if((o=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===o)return e.fromString(t.substring(1),n,r).neg();for(var i=e.fromNumber(Math.pow(r,8)),s=e.ZERO,a=0;a<t.length;a+=8){var c=Math.min(8,t.length-a),u=parseInt(t.substring(a,a+c),r);if(c<8){var f=e.fromNumber(Math.pow(r,c));s=s.mul(f).add(e.fromNumber(u))}else s=(s=s.mul(i)).add(e.fromNumber(u))}return s.unsigned=n,s},e.fromBytes=function(t,n,r){return r?e.fromBytesLE(t,n):e.fromBytesBE(t,n)},e.fromBytesLE=function(t,n){return new e(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},e.fromBytesBE=function(t,n){return new e(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)},e.isLong=function(e){return Gc(e)&&!0===e.__isLong__},e.fromValue=function(t,n){return"number"==typeof t?e.fromNumber(t,n):"string"==typeof t?e.fromString(t,n):e.fromBits(t.low,t.high,"boolean"==typeof n?n:t.unsigned)},e.prototype.add=function(t){e.isLong(t)||(t=e.fromValue(t));var n=this.high>>>16,r=65535&this.high,o=this.low>>>16,i=65535&this.low,s=t.high>>>16,a=65535&t.high,c=t.low>>>16,u=0,f=0,l=0,h=0;return l+=(h+=i+(65535&t.low))>>>16,h&=65535,f+=(l+=o+c)>>>16,l&=65535,u+=(f+=r+a)>>>16,f&=65535,u+=n+s,u&=65535,e.fromBits(l<<16|h,u<<16|f,this.unsigned)},e.prototype.and=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low&t.low,this.high&t.high,this.unsigned)},e.prototype.compare=function(t){if(e.isLong(t)||(t=e.fromValue(t)),this.eq(t))return 0;var n=this.isNegative(),r=t.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},e.prototype.comp=function(e){return this.compare(e)},e.prototype.divide=function(t){if(e.isLong(t)||(t=e.fromValue(t)),t.isZero())throw Error("division by zero");if(iu){if(!this.unsigned&&-2147483648===this.high&&-1===t.low&&-1===t.high)return this;var n=(this.unsigned?iu.div_u:iu.div_s)(this.low,this.high,t.low,t.high);return e.fromBits(n,iu.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?e.UZERO:e.ZERO;var r,o,i;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return e.UZERO;if(t.gt(this.shru(1)))return e.UONE;i=e.UZERO}else{if(this.eq(e.MIN_VALUE))return t.eq(e.ONE)||t.eq(e.NEG_ONE)?e.MIN_VALUE:t.eq(e.MIN_VALUE)?e.ONE:(r=this.shr(1).div(t).shl(1)).eq(e.ZERO)?t.isNegative()?e.ONE:e.NEG_ONE:(o=this.sub(t.mul(r)),i=r.add(o.div(t)));if(t.eq(e.MIN_VALUE))return this.unsigned?e.UZERO:e.ZERO;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=e.ZERO}for(o=this;o.gte(t);){r=Math.max(1,Math.floor(o.toNumber()/t.toNumber()));for(var s=Math.ceil(Math.log(r)/Math.LN2),a=s<=48?1:Math.pow(2,s-48),c=e.fromNumber(r),u=c.mul(t);u.isNegative()||u.gt(o);)r-=a,u=(c=e.fromNumber(r,this.unsigned)).mul(t);c.isZero()&&(c=e.ONE),i=i.add(c),o=o.sub(u)}return i},e.prototype.div=function(e){return this.divide(e)},e.prototype.equals=function(t){return e.isLong(t)||(t=e.fromValue(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},e.prototype.eq=function(e){return this.equals(e)},e.prototype.getHighBits=function(){return this.high},e.prototype.getHighBitsUnsigned=function(){return this.high>>>0},e.prototype.getLowBits=function(){return this.low},e.prototype.getLowBitsUnsigned=function(){return this.low>>>0},e.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.eq(e.MIN_VALUE)?64:this.neg().getNumBitsAbs();var t,n=0!==this.high?this.high:this.low;for(t=31;t>0&&0==(n&1<<t);t--);return 0!==this.high?t+33:t+1},e.prototype.greaterThan=function(e){return this.comp(e)>0},e.prototype.gt=function(e){return this.greaterThan(e)},e.prototype.greaterThanOrEqual=function(e){return this.comp(e)>=0},e.prototype.gte=function(e){return this.greaterThanOrEqual(e)},e.prototype.ge=function(e){return this.greaterThanOrEqual(e)},e.prototype.isEven=function(){return 0==(1&this.low)},e.prototype.isNegative=function(){return!this.unsigned&&this.high<0},e.prototype.isOdd=function(){return 1==(1&this.low)},e.prototype.isPositive=function(){return this.unsigned||this.high>=0},e.prototype.isZero=function(){return 0===this.high&&0===this.low},e.prototype.lessThan=function(e){return this.comp(e)<0},e.prototype.lt=function(e){return this.lessThan(e)},e.prototype.lessThanOrEqual=function(e){return this.comp(e)<=0},e.prototype.lte=function(e){return this.lessThanOrEqual(e)},e.prototype.modulo=function(t){if(e.isLong(t)||(t=e.fromValue(t)),iu){var n=(this.unsigned?iu.rem_u:iu.rem_s)(this.low,this.high,t.low,t.high);return e.fromBits(n,iu.get_high(),this.unsigned)}return this.sub(this.div(t).mul(t))},e.prototype.mod=function(e){return this.modulo(e)},e.prototype.rem=function(e){return this.modulo(e)},e.prototype.multiply=function(t){if(this.isZero())return e.ZERO;if(e.isLong(t)||(t=e.fromValue(t)),iu){var n=iu.mul(this.low,this.high,t.low,t.high);return e.fromBits(n,iu.get_high(),this.unsigned)}if(t.isZero())return e.ZERO;if(this.eq(e.MIN_VALUE))return t.isOdd()?e.MIN_VALUE:e.ZERO;if(t.eq(e.MIN_VALUE))return this.isOdd()?e.MIN_VALUE:e.ZERO;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(e.TWO_PWR_24)&&t.lt(e.TWO_PWR_24))return e.fromNumber(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,o=65535&this.high,i=this.low>>>16,s=65535&this.low,a=t.high>>>16,c=65535&t.high,u=t.low>>>16,f=65535&t.low,l=0,h=0,p=0,d=0;return p+=(d+=s*f)>>>16,d&=65535,h+=(p+=i*f)>>>16,p&=65535,h+=(p+=s*u)>>>16,p&=65535,l+=(h+=o*f)>>>16,h&=65535,l+=(h+=i*u)>>>16,h&=65535,l+=(h+=s*c)>>>16,h&=65535,l+=r*f+o*u+i*c+s*a,l&=65535,e.fromBits(p<<16|d,l<<16|h,this.unsigned)},e.prototype.mul=function(e){return this.multiply(e)},e.prototype.negate=function(){return!this.unsigned&&this.eq(e.MIN_VALUE)?e.MIN_VALUE:this.not().add(e.ONE)},e.prototype.neg=function(){return this.negate()},e.prototype.not=function(){return e.fromBits(~this.low,~this.high,this.unsigned)},e.prototype.notEquals=function(e){return!this.equals(e)},e.prototype.neq=function(e){return this.notEquals(e)},e.prototype.ne=function(e){return this.notEquals(e)},e.prototype.or=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low|t.low,this.high|t.high,this.unsigned)},e.prototype.shiftLeft=function(t){return e.isLong(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?e.fromBits(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):e.fromBits(0,this.low<<t-32,this.unsigned)},e.prototype.shl=function(e){return this.shiftLeft(e)},e.prototype.shiftRight=function(t){return e.isLong(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?e.fromBits(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):e.fromBits(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},e.prototype.shr=function(e){return this.shiftRight(e)},e.prototype.shiftRightUnsigned=function(t){if(e.isLong(t)&&(t=t.toInt()),0===(t&=63))return this;var n=this.high;if(t<32){var r=this.low;return e.fromBits(r>>>t|n<<32-t,n>>>t,this.unsigned)}return 32===t?e.fromBits(n,0,this.unsigned):e.fromBits(n>>>t-32,0,this.unsigned)},e.prototype.shr_u=function(e){return this.shiftRightUnsigned(e)},e.prototype.shru=function(e){return this.shiftRightUnsigned(e)},e.prototype.subtract=function(t){return e.isLong(t)||(t=e.fromValue(t)),this.add(t.neg())},e.prototype.sub=function(e){return this.subtract(e)},e.prototype.toInt=function(){return this.unsigned?this.low>>>0:this.low},e.prototype.toNumber=function(){return this.unsigned?(this.high>>>0)*su+(this.low>>>0):this.high*su+(this.low>>>0)},e.prototype.toBigInt=function(){return BigInt(this.toString())},e.prototype.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},e.prototype.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},e.prototype.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},e.prototype.toSigned=function(){return this.unsigned?e.fromBits(this.low,this.high,!1):this},e.prototype.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(e.MIN_VALUE)){var n=e.fromNumber(t),r=this.div(n),o=r.mul(n).sub(this);return r.toString(t)+o.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var i=e.fromNumber(Math.pow(t,6),this.unsigned),s=this,a="";;){var c=s.div(i),u=(s.sub(c.mul(i)).toInt()>>>0).toString(t);if((s=c).isZero())return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}},e.prototype.toUnsigned=function(){return this.unsigned?this:e.fromBits(this.low,this.high,!0)},e.prototype.xor=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low^t.low,this.high^t.high,this.unsigned)},e.prototype.eqz=function(){return this.isZero()},e.prototype.le=function(e){return this.lessThanOrEqual(e)},e.prototype.toExtendedJSON=function(e){return e&&e.relaxed?this.toNumber():{$numberLong:this.toString()}},e.fromExtendedJSON=function(t,n){var r=e.fromString(t.$numberLong);return n&&n.relaxed?r.toNumber():r},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new Long("'.concat(this.toString(),'"').concat(this.unsigned?", true":"",")")},e.TWO_PWR_24=e.fromInt(16777216),e.MAX_UNSIGNED_VALUE=e.fromBits(-1,-1,!0),e.ZERO=e.fromInt(0),e.UZERO=e.fromInt(0,!0),e.ONE=e.fromInt(1),e.UONE=e.fromInt(1,!0),e.NEG_ONE=e.fromInt(-1),e.MAX_VALUE=e.fromBits(-1,2147483647,!1),e.MIN_VALUE=e.fromBits(0,-2147483648,!1),e}();Object.defineProperty(lu.prototype,"__isLong__",{value:!0}),Object.defineProperty(lu.prototype,"_bsontype",{value:"Long"});var hu=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,pu=/^(\+|-)?(Infinity|inf)$/i,du=/^(\+|-)?NaN$/i,yu=6111,gu=-6176,vu=[124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),_u=[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),mu=[120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),wu=/^([-+])?(\d+)?$/;function bu(e){return!isNaN(parseInt(e,10))}function Eu(e){var t=lu.fromNumber(1e9),n=lu.fromNumber(0);if(!(e.parts[0]||e.parts[1]||e.parts[2]||e.parts[3]))return{quotient:e,rem:n};for(var r=0;r<=3;r++)n=(n=n.shiftLeft(32)).add(new lu(e.parts[r],0)),e.parts[r]=n.div(t).low,n=n.modulo(t);return{quotient:e,rem:n}}function Su(e,t){throw new qc('"'.concat(e,'" is not a valid Decimal128 string - ').concat(t))}var Iu=function(){function t(e){if(!(this instanceof t))return new t(e);if("string"==typeof e)this.bytes=t.fromString(e).bytes;else{if(!Kc(e))throw new qc("Decimal128 must take a Buffer or string");if(16!==e.byteLength)throw new qc("Decimal128 must take a Buffer of 16 bytes");this.bytes=e}}return t.fromString=function(n){var r,o=!1,i=!1,s=!1,a=0,c=0,u=0,f=0,l=0,h=[0],p=0,d=0,y=0,g=0,v=0,_=0,m=new lu(0,0),w=new lu(0,0),b=0;if(n.length>=7e3)throw new qc(n+" not a valid Decimal128 string");var E=n.match(hu),S=n.match(pu),I=n.match(du);if(!E&&!S&&!I||0===n.length)throw new qc(n+" not a valid Decimal128 string");if(E){var A=E[2],O=E[4],N=E[5],T=E[6];O&&void 0===T&&Su(n,"missing exponent power"),O&&void 0===A&&Su(n,"missing exponent base"),void 0===O&&(N||T)&&Su(n,"missing e before exponent")}if("+"!==n[b]&&"-"!==n[b]||(o="-"===n[b++]),!bu(n[b])&&"."!==n[b]){if("i"===n[b]||"I"===n[b])return new t(e.from(o?_u:mu));if("N"===n[b])return new t(e.from(vu))}for(;bu(n[b])||"."===n[b];)"."!==n[b]?(p<34&&("0"!==n[b]||s)&&(s||(l=c),s=!0,h[d++]=parseInt(n[b],10),p+=1),s&&(u+=1),i&&(f+=1),c+=1,b+=1):(i&&Su(n,"contains multiple periods"),i=!0,b+=1);if(i&&!c)throw new qc(n+" not a valid Decimal128 string");if("e"===n[b]||"E"===n[b]){var x=n.substr(++b).match(wu);if(!x||!x[2])return new t(e.from(vu));v=parseInt(x[0],10),b+=x[0].length}if(n[b])return new t(e.from(vu));if(y=0,p){if(g=p-1,1!==(a=u))for(;0===h[l+a-1];)a-=1}else y=0,g=0,h[0]=0,u=1,p=1,a=0;for(v<=f&&f-v>16384?v=gu:v-=f;v>yu;){if((g+=1)-y>34){if(h.join("").match(/^0+$/)){v=yu;break}Su(n,"overflow")}v-=1}for(;v<gu||p<u;){if(0===g&&a<p){v=gu,a=0;break}if(p<u?u-=1:g-=1,v<yu)v+=1;else{if(h.join("").match(/^0+$/)){v=yu;break}Su(n,"overflow")}}if(g-y+1<a){var R=c;i&&(l+=1,R+=1),o&&(l+=1,R+=1);var P=parseInt(n[l+g+1],10),k=0;if(P>=5&&(k=1,5===P))for(k=h[g]%2==1?1:0,_=l+g+2;_<R;_++)if(parseInt(n[_],10)){k=1;break}if(k)for(var C=g;C>=0;C--)if(++h[C]>9&&(h[C]=0,0===C)){if(!(v<yu))return new t(e.from(o?_u:mu));v+=1,h[C]=1}}if(m=lu.fromNumber(0),w=lu.fromNumber(0),0===a)m=lu.fromNumber(0),w=lu.fromNumber(0);else if(g-y<17){C=y;for(w=lu.fromNumber(h[C++]),m=new lu(0,0);C<=g;C++)w=(w=w.multiply(lu.fromNumber(10))).add(lu.fromNumber(h[C]))}else{C=y;for(m=lu.fromNumber(h[C++]);C<=g-17;C++)m=(m=m.multiply(lu.fromNumber(10))).add(lu.fromNumber(h[C]));for(w=lu.fromNumber(h[C++]);C<=g;C++)w=(w=w.multiply(lu.fromNumber(10))).add(lu.fromNumber(h[C]))}var L,D,U,j,M=function(e,t){if(!e&&!t)return{high:lu.fromNumber(0),low:lu.fromNumber(0)};var n=e.shiftRightUnsigned(32),r=new lu(e.getLowBits(),0),o=t.shiftRightUnsigned(32),i=new lu(t.getLowBits(),0),s=n.multiply(o),a=n.multiply(i),c=r.multiply(o),u=r.multiply(i);return s=s.add(a.shiftRightUnsigned(32)),a=new lu(a.getLowBits(),0).add(c).add(u.shiftRightUnsigned(32)),{high:s=s.add(a.shiftRightUnsigned(32)),low:u=a.shiftLeft(32).add(new lu(u.getLowBits(),0))}}(m,lu.fromString("100000000000000000"));M.low=M.low.add(w),L=M.low,D=w,U=L.high>>>0,j=D.high>>>0,(U<j||U===j&&L.low>>>0<D.low>>>0)&&(M.high=M.high.add(lu.fromNumber(1))),r=v+6176;var B={low:lu.fromNumber(0),high:lu.fromNumber(0)};M.high.shiftRightUnsigned(49).and(lu.fromNumber(1)).equals(lu.fromNumber(1))?(B.high=B.high.or(lu.fromNumber(3).shiftLeft(61)),B.high=B.high.or(lu.fromNumber(r).and(lu.fromNumber(16383).shiftLeft(47))),B.high=B.high.or(M.high.and(lu.fromNumber(0x7fffffffffff)))):(B.high=B.high.or(lu.fromNumber(16383&r).shiftLeft(49)),B.high=B.high.or(M.high.and(lu.fromNumber(562949953421311)))),B.low=M.low,o&&(B.high=B.high.or(lu.fromString("9223372036854775808")));var q=e.alloc(16);return b=0,q[b++]=255&B.low.low,q[b++]=B.low.low>>8&255,q[b++]=B.low.low>>16&255,q[b++]=B.low.low>>24&255,q[b++]=255&B.low.high,q[b++]=B.low.high>>8&255,q[b++]=B.low.high>>16&255,q[b++]=B.low.high>>24&255,q[b++]=255&B.high.low,q[b++]=B.high.low>>8&255,q[b++]=B.high.low>>16&255,q[b++]=B.high.low>>24&255,q[b++]=255&B.high.high,q[b++]=B.high.high>>8&255,q[b++]=B.high.high>>16&255,q[b++]=B.high.high>>24&255,new t(q)},t.prototype.toString=function(){for(var e,t=0,n=new Array(36),r=0;r<n.length;r++)n[r]=0;var o,i,s,a=0,c=!1,u={parts:[0,0,0,0]},f=[];a=0;var l=this.bytes,h=l[a++]|l[a++]<<8|l[a++]<<16|l[a++]<<24,p=l[a++]|l[a++]<<8|l[a++]<<16|l[a++]<<24,d=l[a++]|l[a++]<<8|l[a++]<<16|l[a++]<<24,y=l[a++]|l[a++]<<8|l[a++]<<16|l[a++]<<24;a=0,{low:new lu(h,p),high:new lu(d,y)}.high.lessThan(lu.ZERO)&&f.push("-");var g=y>>26&31;if(g>>3==3){if(30===g)return f.join("")+"Infinity";if(31===g)return"NaN";e=y>>15&16383,o=8+(y>>14&1)}else o=y>>14&7,e=y>>17&16383;var v=e-6176;if(u.parts[0]=(16383&y)+((15&o)<<14),u.parts[1]=d,u.parts[2]=p,u.parts[3]=h,0===u.parts[0]&&0===u.parts[1]&&0===u.parts[2]&&0===u.parts[3])c=!0;else for(s=3;s>=0;s--){var _=0,m=Eu(u);if(u=m.quotient,_=m.rem.low)for(i=8;i>=0;i--)n[9*s+i]=_%10,_=Math.floor(_/10)}if(c)t=1,n[a]=0;else for(t=36;!n[a];)t-=1,a+=1;var w=t-1+v;if(w>=34||w<=-7||v>0){if(t>34)return f.push("".concat(0)),v>0?f.push("E+".concat(v)):v<0&&f.push("E".concat(v)),f.join("");f.push("".concat(n[a++])),(t-=1)&&f.push(".");for(r=0;r<t;r++)f.push("".concat(n[a++]));f.push("E"),w>0?f.push("+".concat(w)):f.push("".concat(w))}else if(v>=0)for(r=0;r<t;r++)f.push("".concat(n[a++]));else{var b=t+v;if(b>0)for(r=0;r<b;r++)f.push("".concat(n[a++]));else f.push("0");for(f.push(".");b++<0;)f.push("0");for(r=0;r<t-Math.max(b-1,0);r++)f.push("".concat(n[a++]))}return f.join("")},t.prototype.toJSON=function(){return{$numberDecimal:this.toString()}},t.prototype.toExtendedJSON=function(){return{$numberDecimal:this.toString()}},t.fromExtendedJSON=function(e){return t.fromString(e.$numberDecimal)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return'new Decimal128("'.concat(this.toString(),'")')},t}();Object.defineProperty(Iu.prototype,"_bsontype",{value:"Decimal128"});var Au=function(){function e(t){if(!(this instanceof e))return new e(t);t instanceof Number&&(t=t.valueOf()),this.value=+t}return e.prototype.valueOf=function(){return this.value},e.prototype.toJSON=function(){return this.value},e.prototype.toString=function(e){return this.value.toString(e)},e.prototype.toExtendedJSON=function(e){return e&&(e.legacy||e.relaxed&&isFinite(this.value))?this.value:Object.is(Math.sign(this.value),-0)?{$numberDouble:"-".concat(this.value.toFixed(1))}:{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}},e.fromExtendedJSON=function(t,n){var r=parseFloat(t.$numberDouble);return n&&n.relaxed?r:new e(r)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var e=this.toExtendedJSON();return"new Double(".concat(e.$numberDouble,")")},e}();Object.defineProperty(Au.prototype,"_bsontype",{value:"Double"});var Ou=function(){function e(t){if(!(this instanceof e))return new e(t);t instanceof Number&&(t=t.valueOf()),this.value=0|+t}return e.prototype.valueOf=function(){return this.value},e.prototype.toString=function(e){return this.value.toString(e)},e.prototype.toJSON=function(){return this.value},e.prototype.toExtendedJSON=function(e){return e&&(e.relaxed||e.legacy)?this.value:{$numberInt:this.value.toString()}},e.fromExtendedJSON=function(t,n){return n&&n.relaxed?parseInt(t.$numberInt,10):new e(t.$numberInt)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new Int32(".concat(this.valueOf(),")")},e}();Object.defineProperty(Ou.prototype,"_bsontype",{value:"Int32"});var Nu=function(){function e(){if(!(this instanceof e))return new e}return e.prototype.toExtendedJSON=function(){return{$maxKey:1}},e.fromExtendedJSON=function(){return new e},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new MaxKey()"},e}();Object.defineProperty(Nu.prototype,"_bsontype",{value:"MaxKey"});var Tu=function(){function e(){if(!(this instanceof e))return new e}return e.prototype.toExtendedJSON=function(){return{$minKey:1}},e.fromExtendedJSON=function(){return new e},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new MinKey()"},e}();Object.defineProperty(Tu.prototype,"_bsontype",{value:"MinKey"});var xu=new RegExp("^[0-9a-fA-F]{24}$"),Ru=null,Pu=Symbol("id"),ku=function(){function t(n){if(!(this instanceof t))return new t(n);var r;if("object"==typeof n&&n&&"id"in n){if("string"!=typeof n.id&&!ArrayBuffer.isView(n.id))throw new qc("Argument passed in must have an id that is of type string or Buffer");r="toHexString"in n&&"function"==typeof n.toHexString?e.from(n.toHexString(),"hex"):n.id}else r=n;if(null==r||"number"==typeof r)this[Pu]=t.generate("number"==typeof r?r:void 0);else if(ArrayBuffer.isView(r)&&12===r.byteLength)this[Pu]=r instanceof e?r:Jc(r);else{if("string"!=typeof r)throw new qc("Argument passed in does not match the accepted types");if(12===r.length){var o=e.from(r);if(12!==o.byteLength)throw new qc("Argument passed in must be a string of 12 bytes");this[Pu]=o}else{if(24!==r.length||!xu.test(r))throw new qc("Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer");this[Pu]=e.from(r,"hex")}}t.cacheHexString&&(this.__id=this.id.toString("hex"))}return Object.defineProperty(t.prototype,"id",{get:function(){return this[Pu]},set:function(e){this[Pu]=e,t.cacheHexString&&(this.__id=e.toString("hex"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"generationTime",{get:function(){return this.id.readInt32BE(0)},set:function(e){this.id.writeUInt32BE(e,0)},enumerable:!1,configurable:!0}),t.prototype.toHexString=function(){if(t.cacheHexString&&this.__id)return this.__id;var e=this.id.toString("hex");return t.cacheHexString&&!this.__id&&(this.__id=e),e},t.getInc=function(){return t.index=(t.index+1)%16777215},t.generate=function(n){"number"!=typeof n&&(n=Math.floor(Date.now()/1e3));var r=t.getInc(),o=e.alloc(12);return o.writeUInt32BE(n,0),null===Ru&&(Ru=$c(5)),o[4]=Ru[0],o[5]=Ru[1],o[6]=Ru[2],o[7]=Ru[3],o[8]=Ru[4],o[11]=255&r,o[10]=r>>8&255,o[9]=r>>16&255,o},t.prototype.toString=function(e){return e?this.id.toString(e):this.toHexString()},t.prototype.toJSON=function(){return this.toHexString()},t.prototype.equals=function(n){if(null==n)return!1;if(n instanceof t)return this[Pu][11]===n[Pu][11]&&this[Pu].equals(n[Pu]);if("string"==typeof n&&t.isValid(n)&&12===n.length&&Kc(this.id))return n===e.prototype.toString.call(this.id,"latin1");if("string"==typeof n&&t.isValid(n)&&24===n.length)return n.toLowerCase()===this.toHexString();if("string"==typeof n&&t.isValid(n)&&12===n.length)return e.from(n).equals(this.id);if("object"==typeof n&&"toHexString"in n&&"function"==typeof n.toHexString){var r=n.toHexString(),o=this.toHexString().toLowerCase();return"string"==typeof r&&r.toLowerCase()===o}return!1},t.prototype.getTimestamp=function(){var e=new Date,t=this.id.readUInt32BE(0);return e.setTime(1e3*Math.floor(t)),e},t.createPk=function(){return new t},t.createFromTime=function(n){var r=e.from([0,0,0,0,0,0,0,0,0,0,0,0]);return r.writeUInt32BE(n,0),new t(r)},t.createFromHexString=function(n){if(void 0===n||null!=n&&24!==n.length)throw new qc("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");return new t(e.from(n,"hex"))},t.isValid=function(e){if(null==e)return!1;try{return new t(e),!0}catch(e){return!1}},t.prototype.toExtendedJSON=function(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}},t.fromExtendedJSON=function(e){return new t(e.$oid)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return'new ObjectId("'.concat(this.toHexString(),'")')},t.index=Math.floor(16777215*Math.random()),t}();Object.defineProperty(ku.prototype,"generate",{value:Vc((function(e){return ku.generate(e)}),"Please use the static `ObjectId.generate(time)` instead")}),Object.defineProperty(ku.prototype,"getInc",{value:Vc((function(){return ku.getInc()}),"Please use the static `ObjectId.getInc()` instead")}),Object.defineProperty(ku.prototype,"get_inc",{value:Vc((function(){return ku.getInc()}),"Please use the static `ObjectId.getInc()` instead")}),Object.defineProperty(ku,"get_inc",{value:Vc((function(){return ku.getInc()}),"Please use the static `ObjectId.getInc()` instead")}),Object.defineProperty(ku.prototype,"_bsontype",{value:"ObjectID"});var Cu=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);if(this.pattern=t,this.options=(null!=n?n:"").split("").sort().join(""),-1!==this.pattern.indexOf("\0"))throw new Bc("BSON Regex patterns cannot contain null bytes, found: ".concat(JSON.stringify(this.pattern)));if(-1!==this.options.indexOf("\0"))throw new Bc("BSON Regex options cannot contain null bytes, found: ".concat(JSON.stringify(this.options)));for(var r=0;r<this.options.length;r++)if("i"!==this.options[r]&&"m"!==this.options[r]&&"x"!==this.options[r]&&"l"!==this.options[r]&&"s"!==this.options[r]&&"u"!==this.options[r])throw new Bc("The regular expression option [".concat(this.options[r],"] is not supported"))}return e.parseOptions=function(e){return e?e.split("").sort().join(""):""},e.prototype.toExtendedJSON=function(e){return(e=e||{}).legacy?{$regex:this.pattern,$options:this.options}:{$regularExpression:{pattern:this.pattern,options:this.options}}},e.fromExtendedJSON=function(t){if("$regex"in t){if("string"==typeof t.$regex)return new e(t.$regex,e.parseOptions(t.$options));if("BSONRegExp"===t.$regex._bsontype)return t}if("$regularExpression"in t)return new e(t.$regularExpression.pattern,e.parseOptions(t.$regularExpression.options));throw new qc("Unexpected BSONRegExp EJSON object form: ".concat(JSON.stringify(t)))},e}();Object.defineProperty(Cu.prototype,"_bsontype",{value:"BSONRegExp"});var Lu=function(){function e(t){if(!(this instanceof e))return new e(t);this.value=t}return e.prototype.valueOf=function(){return this.value},e.prototype.toString=function(){return this.value},e.prototype.inspect=function(){return'new BSONSymbol("'.concat(this.value,'")')},e.prototype.toJSON=function(){return this.value},e.prototype.toExtendedJSON=function(){return{$symbol:this.value}},e.fromExtendedJSON=function(t){return new e(t.$symbol)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e}();Object.defineProperty(Lu.prototype,"_bsontype",{value:"Symbol"});var Du=function(e){function t(n,r){var o=this;return o instanceof t?(o=lu.isLong(n)?e.call(this,n.low,n.high,!0)||this:Gc(n)&&void 0!==n.t&&void 0!==n.i?e.call(this,n.i,n.t,!0)||this:e.call(this,n,r,!0)||this,Object.defineProperty(o,"_bsontype",{value:"Timestamp",writable:!1,configurable:!1,enumerable:!1}),o):new t(n,r)}return Mc(t,e),t.prototype.toJSON=function(){return{$timestamp:this.toString()}},t.fromInt=function(e){return new t(lu.fromInt(e,!0))},t.fromNumber=function(e){return new t(lu.fromNumber(e,!0))},t.fromBits=function(e,n){return new t(e,n)},t.fromString=function(e,n){return new t(lu.fromString(e,!0,n))},t.prototype.toExtendedJSON=function(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}},t.fromExtendedJSON=function(e){return new t(e.$timestamp)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return"new Timestamp({ t: ".concat(this.getHighBits(),", i: ").concat(this.getLowBits()," })")},t.MAX_VALUE=lu.MAX_UNSIGNED_VALUE,t}(lu);var Uu=2147483647,ju=-2147483648,Mu=0x8000000000000000,Bu=-0x8000000000000000,qu={$oid:ku,$binary:tu,$uuid:tu,$symbol:Lu,$numberInt:Ou,$numberDecimal:Iu,$numberDouble:Au,$numberLong:lu,$minKey:Tu,$maxKey:Nu,$regex:Cu,$regularExpression:Cu,$timestamp:Du};function Wu(e,t){if(void 0===t&&(t={}),"number"==typeof e){if(t.relaxed||t.legacy)return e;if(Math.floor(e)===e){if(e>=ju&&e<=Uu)return new Ou(e);if(e>=Bu&&e<=Mu)return lu.fromNumber(e)}return new Au(e)}if(null==e||"object"!=typeof e)return e;if(e.$undefined)return null;for(var n=Object.keys(e).filter((function(t){return t.startsWith("$")&&null!=e[t]})),r=0;r<n.length;r++){var o=qu[n[r]];if(o)return o.fromExtendedJSON(e,t)}if(null!=e.$date){var i=e.$date,s=new Date;return t.legacy?"number"==typeof i?s.setTime(i):"string"==typeof i&&s.setTime(Date.parse(i)):"string"==typeof i?s.setTime(Date.parse(i)):lu.isLong(i)?s.setTime(i.toNumber()):"number"==typeof i&&t.relaxed&&s.setTime(i),s}if(null!=e.$code){var a=Object.assign({},e);return e.$scope&&(a.$scope=Wu(e.$scope)),ru.fromExtendedJSON(e)}if(function(e){return Gc(e)&&null!=e.$id&&"string"==typeof e.$ref&&(null==e.$db||"string"==typeof e.$db)}(e)||e.$dbPointer){var c=e.$ref?e:e.$dbPointer;if(c instanceof ou)return c;var u=Object.keys(c).filter((function(e){return e.startsWith("$")})),f=!0;if(u.forEach((function(e){-1===["$ref","$id","$db"].indexOf(e)&&(f=!1)})),f)return ou.fromExtendedJSON(c)}return e}function Fu(e){var t=e.toISOString();return 0!==e.getUTCMilliseconds()?t:t.slice(0,-5)+"Z"}function Hu(e,t){if(("object"==typeof e||"function"==typeof e)&&null!==e){var n=t.seenObjects.findIndex((function(t){return t.obj===e}));if(-1!==n){var r=t.seenObjects.map((function(e){return e.propertyName})),o=r.slice(0,n).map((function(e){return"".concat(e," -> ")})).join(""),i=r[n],s=" -> "+r.slice(n+1,r.length-1).map((function(e){return"".concat(e," -> ")})).join(""),a=r[r.length-1],c=" ".repeat(o.length+i.length/2),u="-".repeat(s.length+(i.length+a.length)/2-1);throw new qc("Converting circular structure to EJSON:\n"+" ".concat(o).concat(i).concat(s).concat(a,"\n")+" ".concat(c,"\\").concat(u,"/"))}t.seenObjects[t.seenObjects.length-1].obj=e}if(Array.isArray(e))return function(e,t){return e.map((function(e,n){t.seenObjects.push({propertyName:"index ".concat(n),obj:null});try{return Hu(e,t)}finally{t.seenObjects.pop()}}))}(e,t);if(void 0===e)return null;if(e instanceof Date||Gc(h=e)&&"[object Date]"===Object.prototype.toString.call(h)){var f=e.getTime(),l=f>-1&&f<2534023188e5;return t.legacy?t.relaxed&&l?{$date:e.getTime()}:{$date:Fu(e)}:t.relaxed&&l?{$date:Fu(e)}:{$date:{$numberLong:e.getTime().toString()}}}var h;if(!("number"!=typeof e||t.relaxed&&isFinite(e))){if(Math.floor(e)===e){var p=e>=Bu&&e<=Mu;if(e>=ju&&e<=Uu)return{$numberInt:e.toString()};if(p)return{$numberLong:e.toString()}}return{$numberDouble:e.toString()}}if(e instanceof RegExp||function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}(e)){var d=e.flags;if(void 0===d){var y=e.toString().match(/[gimuy]*$/);y&&(d=y[0])}return new Cu(e.source,d).toExtendedJSON(t)}return null!=e&&"object"==typeof e?function(e,t){if(null==e||"object"!=typeof e)throw new Bc("not an object instance");var n=e._bsontype;if(void 0===n){var r={};for(var o in e){t.seenObjects.push({propertyName:o,obj:null});try{var i=Hu(e[o],t);"__proto__"===o?Object.defineProperty(r,o,{value:i,writable:!0,enumerable:!0,configurable:!0}):r[o]=i}finally{t.seenObjects.pop()}}return r}if(function(e){return Gc(e)&&Reflect.has(e,"_bsontype")&&"string"==typeof e._bsontype}(e)){var s=e;if("function"!=typeof s.toExtendedJSON){var a=Ku[e._bsontype];if(!a)throw new qc("Unrecognized or invalid _bsontype: "+e._bsontype);s=a(s)}return"Code"===n&&s.scope?s=new ru(s.code,Hu(s.scope,t)):"DBRef"===n&&s.oid&&(s=new ou(Hu(s.collection,t),Hu(s.oid,t),Hu(s.db,t),Hu(s.fields,t))),s.toExtendedJSON(t)}throw new Bc("_bsontype must be a string, but was: "+typeof n)}(e,t):e}var $u,Ku={Binary:function(e){return new tu(e.value(),e.sub_type)},Code:function(e){return new ru(e.code,e.scope)},DBRef:function(e){return new ou(e.collection||e.namespace,e.oid,e.db,e.fields)},Decimal128:function(e){return new Iu(e.bytes)},Double:function(e){return new Au(e.value)},Int32:function(e){return new Ou(e.value)},Long:function(e){return lu.fromBits(null!=e.low?e.low:e.low_,null!=e.low?e.high:e.high_,null!=e.low?e.unsigned:e.unsigned_)},MaxKey:function(){return new Nu},MinKey:function(){return new Tu},ObjectID:function(e){return new ku(e)},ObjectId:function(e){return new ku(e)},BSONRegExp:function(e){return new Cu(e.pattern,e.options)},Symbol:function(e){return new Lu(e.value)},Timestamp:function(e){return Du.fromBits(e.low,e.high)}};!function(e){function t(e,t){var n=Object.assign({},{relaxed:!0,legacy:!1},t);return"boolean"==typeof n.relaxed&&(n.strict=!n.relaxed),"boolean"==typeof n.strict&&(n.relaxed=!n.strict),JSON.parse(e,(function(e,t){if(-1!==e.indexOf("\0"))throw new Bc("BSON Document field names cannot contain null bytes, found: ".concat(JSON.stringify(e)));return Wu(t,n)}))}function n(e,t,n,r){null!=n&&"object"==typeof n&&(r=n,n=0),null==t||"object"!=typeof t||Array.isArray(t)||(r=t,t=void 0,n=0);var o=Hu(e,Object.assign({relaxed:!0,legacy:!1},r,{seenObjects:[{propertyName:"(root)",obj:null}]}));return JSON.stringify(o,t,n)}e.parse=t,e.stringify=n,e.serialize=function(e,t){return t=t||{},JSON.parse(n(e,t))},e.deserialize=function(e,n){return n=n||{},t(JSON.stringify(e),n)}}($u||($u={}));var Gu=Fc();Gu.Map?Gu.Map:function(){function e(e){void 0===e&&(e=[]),this._keys=[],this._values={};for(var t=0;t<e.length;t++)if(null!=e[t]){var n=e[t],r=n[0],o=n[1];this._keys.push(r),this._values[r]={v:o,i:this._keys.length-1}}}e.prototype.clear=function(){this._keys=[],this._values={}},e.prototype.delete=function(e){var t=this._values[e];return null!=t&&(delete this._values[e],this._keys.splice(t.i,1),!0)},e.prototype.entries=function(){var e=this,t=0;return{next:function(){var n=e._keys[t++];return{value:void 0!==n?[n,e._values[n].v]:void 0,done:void 0===n}}}},e.prototype.forEach=function(e,t){t=t||this;for(var n=0;n<this._keys.length;n++){var r=this._keys[n];e.call(t,this._values[r].v,r,t)}},e.prototype.get=function(e){return this._values[e]?this._values[e].v:void 0},e.prototype.has=function(e){return null!=this._values[e]},e.prototype.keys=function(){var e=this,t=0;return{next:function(){var n=e._keys[t++];return{value:void 0!==n?n:void 0,done:void 0===n}}}},e.prototype.set=function(e,t){return this._values[e]?(this._values[e].v=t,this):(this._keys.push(e),this._values[e]={v:t,i:this._keys.length-1},this)},e.prototype.values=function(){var e=this,t=0;return{next:function(){var n=e._keys[t++];return{value:void 0!==n?e._values[n].v:void 0,done:void 0===n}}}},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!1,configurable:!0})}(),lu.fromNumber(Qc),lu.fromNumber(eu);var Vu=new Uint8Array(8);new DataView(Vu.buffer,Vu.byteOffset,Vu.byteLength);e.alloc(17825792);var Ju=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},zu=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},Yu=function(){function e(e,t){this._stages=[],e&&t&&(this._db=e,this._request=new bf.reqClass(this._db.config),this._collectionName=t)}return e.prototype.end=function(){return Ju(this,void 0,void 0,(function(){var e;return zu(this,(function(t){switch(t.label){case 0:if(!this._collectionName||!this._db)throw new Error("Aggregation pipeline cannot send request");return[4,this._request.send("database.aggregate",{collectionName:this._collectionName,stages:this._stages})];case 1:return(e=t.sent())&&e.data&&e.data.list?[2,{requestId:e.requestId,data:JSON.parse(e.data.list).map($u.parse)}]:[2,e]}}))}))},e.prototype.unwrap=function(){return this._stages},e.prototype.done=function(){return this._stages.map((function(e){var t,n=e.stageKey,r=e.stageValue;return(t={})[n]=JSON.parse(r),t}))},e.prototype._pipe=function(e,t){return this._stages.push({stageKey:"$"+e,stageValue:JSON.stringify(t)}),this},e.prototype.addFields=function(e){return this._pipe("addFields",e)},e.prototype.bucket=function(e){return this._pipe("bucket",e)},e.prototype.bucketAuto=function(e){return this._pipe("bucketAuto",e)},e.prototype.count=function(e){return this._pipe("count",e)},e.prototype.geoNear=function(e){return this._pipe("geoNear",e)},e.prototype.group=function(e){return this._pipe("group",e)},e.prototype.limit=function(e){return this._pipe("limit",e)},e.prototype.match=function(e){return this._pipe("match",Cc.encode(e))},e.prototype.project=function(e){return this._pipe("project",e)},e.prototype.lookup=function(e){return this._pipe("lookup",e)},e.prototype.replaceRoot=function(e){return this._pipe("replaceRoot",e)},e.prototype.sample=function(e){return this._pipe("sample",e)},e.prototype.skip=function(e){return this._pipe("skip",e)},e.prototype.sort=function(e){return this._pipe("sort",e)},e.prototype.sortByCount=function(e){return this._pipe("sortByCount",e)},e.prototype.unwind=function(e){return this._pipe("unwind",e)},e}(),Xu=Yu,Zu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qu=function(e){function t(t,n){return e.call(this,t,n)||this}return Zu(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this._coll},enumerable:!0,configurable:!0}),t.prototype.doc=function(e){if("string"!=typeof e&&"number"!=typeof e)throw new Error("docId必须为字符串或数字");return new kc(this._db,this._coll,e)},t.prototype.add=function(e,t){return new kc(this._db,this._coll,void 0).create(e,t)},t.prototype.aggregate=function(){return new Xu(this._db,this._coll)},t}(Uc),ef={eq:function(e){return new uc(ac.EQ,[e])},neq:function(e){return new uc(ac.NEQ,[e])},lt:function(e){return new uc(ac.LT,[e])},lte:function(e){return new uc(ac.LTE,[e])},gt:function(e){return new uc(ac.GT,[e])},gte:function(e){return new uc(ac.GTE,[e])},in:function(e){return new uc(ac.IN,e)},nin:function(e){return new uc(ac.NIN,e)},all:function(e){return new uc(ac.ALL,e)},elemMatch:function(e){return new uc(ac.ELEM_MATCH,[e])},exists:function(e){return new uc(ac.EXISTS,[e])},size:function(e){return new uc(ac.SIZE,[e])},mod:function(e){return new uc(ac.MOD,[e])},geoNear:function(e){return new uc(ac.GEO_NEAR,[e])},geoWithin:function(e){return new uc(ac.GEO_WITHIN,[e])},geoIntersects:function(e){return new uc(ac.GEO_INTERSECTS,[e])},and:function(){var e=Ba(arguments[0])?arguments[0]:Array.from(arguments);return new ic(nc.AND,e)},nor:function(){var e=Ba(arguments[0])?arguments[0]:Array.from(arguments);return new ic(nc.NOR,e)},or:function(){var e=Ba(arguments[0])?arguments[0]:Array.from(arguments);return new ic(nc.OR,e)},not:function(){var e=Ba(arguments[0])?arguments[0]:Array.from(arguments);return new ic(nc.NOT,e)},set:function(e){return new rc(ka.SET,[e])},remove:function(){return new rc(ka.REMOVE,[])},inc:function(e){return new rc(ka.INC,[e])},mul:function(e){return new rc(ka.MUL,[e])},push:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(ja(t[0])&&t[0].hasOwnProperty("each")){var r=t[0];e={$each:r.each,$position:r.position,$sort:r.sort,$slice:r.slice}}else e=Ba(t[0])?t[0]:Array.from(t);return new rc(ka.PUSH,e)},pull:function(e){return new rc(ka.PULL,e)},pullAll:function(e){return new rc(ka.PULL_ALL,e)},pop:function(){return new rc(ka.POP,[])},shift:function(){return new rc(ka.SHIFT,[])},unshift:function(){var e=Ba(arguments[0])?arguments[0]:Array.from(arguments);return new rc(ka.UNSHIFT,e)},addToSet:function(e){return new rc(ka.ADD_TO_SET,e)},rename:function(e){return new rc(ka.RENAME,[e])},bit:function(e){return new rc(ka.BIT,[e])},max:function(e){return new rc(ka.MAX,[e])},min:function(e){return new rc(ka.MIN,[e])},expr:function(e){return{$expr:e}},jsonSchema:function(e){return{$jsonSchema:e}},text:function(e){return"string"===Ua(e)?{$search:e.search}:{$search:e.search,$language:e.language,$caseSensitive:e.caseSensitive,$diacriticSensitive:e.diacriticSensitive}},aggregate:{pipeline:function(){return new Xu},abs:function(e){return new tf("abs",e)},add:function(e){return new tf("add",e)},ceil:function(e){return new tf("ceil",e)},divide:function(e){return new tf("divide",e)},exp:function(e){return new tf("exp",e)},floor:function(e){return new tf("floor",e)},ln:function(e){return new tf("ln",e)},log:function(e){return new tf("log",e)},log10:function(e){return new tf("log10",e)},mod:function(e){return new tf("mod",e)},multiply:function(e){return new tf("multiply",e)},pow:function(e){return new tf("pow",e)},sqrt:function(e){return new tf("sqrt",e)},subtract:function(e){return new tf("subtract",e)},trunc:function(e){return new tf("trunc",e)},arrayElemAt:function(e){return new tf("arrayElemAt",e)},arrayToObject:function(e){return new tf("arrayToObject",e)},concatArrays:function(e){return new tf("concatArrays",e)},filter:function(e){return new tf("filter",e)},in:function(e){return new tf("in",e)},indexOfArray:function(e){return new tf("indexOfArray",e)},isArray:function(e){return new tf("isArray",e)},map:function(e){return new tf("map",e)},range:function(e){return new tf("range",e)},reduce:function(e){return new tf("reduce",e)},reverseArray:function(e){return new tf("reverseArray",e)},size:function(e){return new tf("size",e)},slice:function(e){return new tf("slice",e)},zip:function(e){return new tf("zip",e)},and:function(e){return new tf("and",e)},not:function(e){return new tf("not",e)},or:function(e){return new tf("or",e)},cmp:function(e){return new tf("cmp",e)},eq:function(e){return new tf("eq",e)},gt:function(e){return new tf("gt",e)},gte:function(e){return new tf("gte",e)},lt:function(e){return new tf("lt",e)},lte:function(e){return new tf("lte",e)},neq:function(e){return new tf("ne",e)},cond:function(e){return new tf("cond",e)},ifNull:function(e){return new tf("ifNull",e)},switch:function(e){return new tf("switch",e)},dateFromParts:function(e){return new tf("dateFromParts",e)},dateFromString:function(e){return new tf("dateFromString",e)},dayOfMonth:function(e){return new tf("dayOfMonth",e)},dayOfWeek:function(e){return new tf("dayOfWeek",e)},dayOfYear:function(e){return new tf("dayOfYear",e)},isoDayOfWeek:function(e){return new tf("isoDayOfWeek",e)},isoWeek:function(e){return new tf("isoWeek",e)},isoWeekYear:function(e){return new tf("isoWeekYear",e)},millisecond:function(e){return new tf("millisecond",e)},minute:function(e){return new tf("minute",e)},month:function(e){return new tf("month",e)},second:function(e){return new tf("second",e)},hour:function(e){return new tf("hour",e)},week:function(e){return new tf("week",e)},year:function(e){return new tf("year",e)},literal:function(e){return new tf("literal",e)},mergeObjects:function(e){return new tf("mergeObjects",e)},objectToArray:function(e){return new tf("objectToArray",e)},allElementsTrue:function(e){return new tf("allElementsTrue",e)},anyElementTrue:function(e){return new tf("anyElementTrue",e)},setDifference:function(e){return new tf("setDifference",e)},setEquals:function(e){return new tf("setEquals",e)},setIntersection:function(e){return new tf("setIntersection",e)},setIsSubset:function(e){return new tf("setIsSubset",e)},setUnion:function(e){return new tf("setUnion",e)},concat:function(e){return new tf("concat",e)},dateToString:function(e){return new tf("dateToString",e)},indexOfBytes:function(e){return new tf("indexOfBytes",e)},indexOfCP:function(e){return new tf("indexOfCP",e)},split:function(e){return new tf("split",e)},strLenBytes:function(e){return new tf("strLenBytes",e)},strLenCP:function(e){return new tf("strLenCP",e)},strcasecmp:function(e){return new tf("strcasecmp",e)},substr:function(e){return new tf("substr",e)},substrBytes:function(e){return new tf("substrBytes",e)},substrCP:function(e){return new tf("substrCP",e)},toLower:function(e){return new tf("toLower",e)},toUpper:function(e){return new tf("toUpper",e)},meta:function(e){return new tf("meta",e)},addToSet:function(e){return new tf("addToSet",e)},avg:function(e){return new tf("avg",e)},first:function(e){return new tf("first",e)},last:function(e){return new tf("last",e)},max:function(e){return new tf("max",e)},min:function(e){return new tf("min",e)},push:function(e){return new tf("push",e)},stdDevPop:function(e){return new tf("stdDevPop",e)},stdDevSamp:function(e){return new tf("stdDevSamp",e)},sum:function(e){return new tf("sum",e)},let:function(e){return new tf("let",e)}},project:{slice:function(e){return new nf("slice",e)},elemMatch:function(e){return new nf("elemMatch",e)}}},tf=function(e,t){this["$"+e]=t},nf=function(e,t){this["$"+e]=t},rf=function(){function e(e){var t=e.regexp,n=e.options;if(!t)throw new TypeError("regexp must be a string");this.$regex=t,this.$options=n}return e.prototype.parse=function(){return{$regex:this.$regex,$options:this.$options}},Object.defineProperty(e.prototype,"_internalType",{get:function(){return xa},enumerable:!0,configurable:!0}),e}();function of(e){return new rf(e)}var sf={code:"INSERT_DOC_FAIL",message:"insert document failed"},af={code:"DATABASE_TRANSACTION_CONFLICT",message:"database transaction conflict"},cf=function(){return cf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cf.apply(this,arguments)},uf=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},ff=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},lf="database.updateDocInTransaction",hf=function(){function e(e,t,n){this._coll=t,this.id=n,this._transaction=e,this._request=this._transaction.getRequestMethod(),this._transactionId=this._transaction.getTransactionId()}return e.prototype.create=function(e){return uf(this,void 0,void 0,(function(){var t,n,r,o;return ff(this,(function(i){switch(i.label){case 0:return t={collectionName:this._coll,transactionId:this._transactionId,data:$u.stringify(_c(e),{relaxed:!1})},this.id&&(t._id=this.id),[4,this._request.send("database.insertDocInTransaction",t)];case 1:if((n=i.sent()).code)throw n;if(r=$u.parse(n.inserted),1==(o=$u.parse(n.ok))&&1==r)return[2,cf(cf({},n),{ok:o,inserted:r})];throw new Error(sf.message)}}))}))},e.prototype.get=function(){return uf(this,void 0,void 0,(function(){var e,t;return ff(this,(function(n){switch(n.label){case 0:return e={collectionName:this._coll,transactionId:this._transactionId,query:{_id:{$eq:this.id}}},[4,this._request.send("database.getInTransaction",e)];case 1:if((t=n.sent()).code)throw t;return[2,{data:"null"!==t.data?La.formatField($u.parse(t.data)):$u.parse(t.data),requestId:t.requestId}]}}))}))},e.prototype.set=function(e){return uf(this,void 0,void 0,(function(){var t,n;return ff(this,(function(r){switch(r.label){case 0:return t={collectionName:this._coll,transactionId:this._transactionId,query:{_id:{$eq:this.id}},data:$u.stringify(_c(e),{relaxed:!1}),upsert:!0},[4,this._request.send(lf,t)];case 1:if((n=r.sent()).code)throw n;return[2,cf(cf({},n),{updated:$u.parse(n.updated),upserted:n.upserted?JSON.parse(n.upserted):null})]}}))}))},e.prototype.update=function(e){return uf(this,void 0,void 0,(function(){var t,n;return ff(this,(function(r){switch(r.label){case 0:return t={collectionName:this._coll,transactionId:this._transactionId,query:{_id:{$eq:this.id}},data:$u.stringify(Tc.encode(e),{relaxed:!1})},[4,this._request.send(lf,t)];case 1:if((n=r.sent()).code)throw n;return[2,cf(cf({},n),{updated:$u.parse(n.updated)})]}}))}))},e.prototype.delete=function(){return uf(this,void 0,void 0,(function(){var e,t;return ff(this,(function(n){switch(n.label){case 0:return e={collectionName:this._coll,transactionId:this._transactionId,query:{_id:{$eq:this.id}}},[4,this._request.send("database.deleteDocInTransaction",e)];case 1:if((t=n.sent()).code)throw t;return[2,cf(cf({},t),{deleted:$u.parse(t.deleted)})]}}))}))},e}(),pf=function(e,t){this._coll=t,this._transaction=e},df=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yf=function(e){function t(t,n){return e.call(this,t,n)||this}return df(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this._coll},enumerable:!0,configurable:!0}),t.prototype.doc=function(e){if("string"!=typeof e&&"number"!=typeof e)throw new Error("docId必须为字符串或数字");return new hf(this._transaction,this._coll,e)},t.prototype.add=function(e){var t;return void 0!==e._id&&(t=e._id),new hf(this._transaction,this._coll,t).create(e)},t}(pf),gf=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},vf=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},_f=function(){function e(e){this._db=e,this._request=new bf.reqClass(this._db.config),this.aborted=!1,this.commited=!1,this.inited=!1}return e.prototype.init=function(){return gf(this,void 0,void 0,(function(){var e;return vf(this,(function(t){switch(t.label){case 0:return[4,this._request.send("database.startTransaction")];case 1:if((e=t.sent()).code)throw e;return this.inited=!0,this._id=e.transactionId,[2]}}))}))},e.prototype.collection=function(e){if(!e)throw new Error("Collection name is required");return new yf(this,e)},e.prototype.getTransactionId=function(){return this._id},e.prototype.getRequestMethod=function(){return this._request},e.prototype.commit=function(){return gf(this,void 0,void 0,(function(){var e,t;return vf(this,(function(n){switch(n.label){case 0:return e={transactionId:this._id},[4,this._request.send("database.commitTransaction",e)];case 1:if((t=n.sent()).code)throw t;return this.commited=!0,[2,t]}}))}))},e.prototype.rollback=function(e){return gf(this,void 0,void 0,(function(){var t,n;return vf(this,(function(r){switch(r.label){case 0:return t={transactionId:this._id},[4,this._request.send("database.abortTransaction",t)];case 1:if((n=r.sent()).code)throw n;return this.aborted=!0,this.abortReason=e,[2,n]}}))}))},e}();function mf(){return gf(this,void 0,void 0,(function(){var e;return vf(this,(function(t){switch(t.label){case 0:return[4,(e=new _f(this)).init()];case 1:return t.sent(),[2,e]}}))}))}function wf(e,t){return void 0===t&&(t=3),gf(this,void 0,void 0,(function(){var n,r,o,i,s=this;return vf(this,(function(a){switch(a.label){case 0:return a.trys.push([0,4,,10]),[4,(n=new _f(this)).init()];case 1:return a.sent(),[4,e(n)];case 2:if(r=a.sent(),!0===n.aborted)throw n.abortReason;return[4,n.commit()];case 3:return a.sent(),[2,r];case 4:if(o=a.sent(),!1===n.inited)throw o;return i=function(e){return gf(s,void 0,void 0,(function(){return vf(this,(function(t){switch(t.label){case 0:if(n.aborted||n.commited)return[3,5];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,n.rollback()];case 2:case 3:return t.sent(),[3,4];case 4:throw e;case 5:if(!0===n.aborted)throw n.abortReason;throw e}}))}))},t<=0?[4,i(o)]:[3,6];case 5:a.sent(),a.label=6;case 6:return o&&o.code===af.code?[4,wf.bind(this)(e,--t)]:[3,8];case 7:return[2,a.sent()];case 8:return[4,i(o)];case 9:return a.sent(),[3,10];case 10:return[2]}}))}))}var bf=function(){function e(e){this.config=e,this.Geo=ec,this.serverDate=Pa,this.command=ef,this.RegExp=of,this.startTransaction=mf,this.runTransaction=wf,this.logicCommand=ic,this.updateCommand=rc,this.queryCommand=uc}return e.prototype.collection=function(e){if(!e)throw new Error("Collection name is required");return new Qu(this,e)},e.prototype.createCollection=function(t){var n={collectionName:t};return new e.reqClass(this.config).send("database.addCollection",n)},e}(),Ef=function(){return Ef=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ef.apply(this,arguments)};var Sf={name:"database",entity:{database:function(e){var t=this.platform,n=t.adapter,r=t.runtime;return bf.reqClass=this.request.constructor,bf.getAccessToken=this.authInstance?this.authInstance.getAccessToken.bind(this.authInstance):function(){return""},bf.runtime=r,this.wsClientClass&&(bf.wsClass=n.wsClass,bf.wsClientClass=this.wsClientClass),bf.ws||(bf.ws=null),new bf(Ef(Ef({},this.config),e))}}};try{cloudbase.registerComponent(Sf)}catch(e){}var If,Af="1.7.2";zt.registerVersion(Af);try{!function(e){try{e.registerComponent(Br)}catch(e){console.warn(e)}}(zt),function(e){try{e.registerComponent(Zr)}catch(e){console.warn(e)}}(zt),function(e){try{e.registerComponent(yo)}catch(e){console.warn(e)}}(zt),function(e){try{e.registerComponent(Sf)}catch(e){console.warn(e)}}(zt),function(e){try{e.registerComponent(js),e.registerHook(Us)}catch(e){console.warn(e)}}(zt),function(e){try{e.registerComponent(Ys)}catch(e){console.warn(e)}}(zt)}catch(e){}try{window.cloudbase=zt}catch(e){}!function(e){e.development="dev-1gpp53ju3ceb46c7",e.testing="dev-1gpp53ju3ceb46c7",e.production="release-7gvojkxi667a3f26"}(If||(If={}));var Of={ENV:If[process.env.NODE_ENV],REGION:"ap-shanghai"},Nf={region:Of.REGION,env:Of.ENV},Tf=zt.init(Nf);function xf(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return[4,Tf.callFunction(e)];case 1:return t=n.sent(),[2,new Promise((function(e,n){var r;(null===(r=t.result)||void 0===r?void 0:r.success)?e(t.result.data):n(t.result)}))]}}))}))}var Rf=t.create();function Pf(e){return function(e){!e.method&&e.data&&(e.method="post"),e.method||e.data||(e.method="get")}(e),function(e){e.requestInterceptors&&"function"==typeof e.requestInterceptors&&Rf.interceptors.request.use(e.requestInterceptors),e.responseInterceptors&&"function"==typeof e.responseInterceptors&&Rf.interceptors.response.use(e.responseInterceptors)}(e),new Promise((function(t,n){Rf.request({method:e.method,url:e.url,headers:(null==e?void 0:e.headers)||{},data:null==e?void 0:e.data,params:null==e?void 0:e.params,timeout:(null==e?void 0:e.timeout)||8e3}).then((function(e){if(200===e.status){var r=e.data;t(r)}else{r=e.data;n(r)}})).catch((function(t){var r=(null==t?void 0:t.response)||{};(null==e?void 0:e.catchCallback)&&"function"==typeof(null==e?void 0:e.catchCallback)&&(null==e||e.catchCallback(t));var o=null==r?void 0:r.data;n(o)}))}))}var kf={exports:{}};var Cf,Lf={exports:{}};function Df(){return Cf||(Cf=1,Lf.exports=function(){var e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==i&&i.crypto&&(n=i.crypto),!n)try{n=require("crypto")}catch(e){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=s<<24-(r+i)%4*8}else for(var a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new u.init(t,e)}}),f=s.enc={},l=f.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},h=f.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},p=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,f=e.min(4*c,i);if(c){for(var l=0;l<c;l+=s)this._doProcessBlock(o,l);n=o.splice(0,c),r.sigBytes-=f}return new u.init(n,f)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=d.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new y.HMAC.init(e,n).finalize(t)}}});var y=s.algo={};return s}(Math);return e}()),Lf.exports}var Uf,jf={exports:{}};function Mf(){return Uf||(Uf=1,jf.exports=function(e){return function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,s=n.x64={};s.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),e}(Df())),jf.exports}var Bf,qf={exports:{}};function Wf(){return Bf||(Bf=1,qf.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray}(Df())),qf.exports}var Ff,Hf={exports:{}};function $f(){return Ff||(Ff=1,Hf.exports=function(e){return function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var s=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16}(Df())),Hf.exports}var Kf,Gf={exports:{}};function Vf(){return Kf||(Kf=1,Gf.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<n;a++)o.push(r.charAt(s>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(Df())),Gf.exports}var Jf,zf={exports:{}};function Yf(){return Jf||(Jf=1,zf.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],s=0;s<r;s+=3)for(var a=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<r;c++)i.push(o.charAt(a>>>6*(3-c)&63));var u=o.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<o.length;s++)i[o.charCodeAt(s)]=s}var a=o.charAt(64);if(a){var c=e.indexOf(a);-1!==c&&(n=c)}return r(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url}(Df())),zf.exports}var Xf,Zf={exports:{}};function Qf(){return Xf||(Xf=1,Zf.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],p=e[t+2],d=e[t+3],y=e[t+4],g=e[t+5],v=e[t+6],_=e[t+7],m=e[t+8],w=e[t+9],b=e[t+10],E=e[t+11],S=e[t+12],I=e[t+13],A=e[t+14],O=e[t+15],N=i[0],T=i[1],x=i[2],R=i[3];N=u(N,T,x,R,s,7,a[0]),R=u(R,N,T,x,c,12,a[1]),x=u(x,R,N,T,p,17,a[2]),T=u(T,x,R,N,d,22,a[3]),N=u(N,T,x,R,y,7,a[4]),R=u(R,N,T,x,g,12,a[5]),x=u(x,R,N,T,v,17,a[6]),T=u(T,x,R,N,_,22,a[7]),N=u(N,T,x,R,m,7,a[8]),R=u(R,N,T,x,w,12,a[9]),x=u(x,R,N,T,b,17,a[10]),T=u(T,x,R,N,E,22,a[11]),N=u(N,T,x,R,S,7,a[12]),R=u(R,N,T,x,I,12,a[13]),x=u(x,R,N,T,A,17,a[14]),N=f(N,T=u(T,x,R,N,O,22,a[15]),x,R,c,5,a[16]),R=f(R,N,T,x,v,9,a[17]),x=f(x,R,N,T,E,14,a[18]),T=f(T,x,R,N,s,20,a[19]),N=f(N,T,x,R,g,5,a[20]),R=f(R,N,T,x,b,9,a[21]),x=f(x,R,N,T,O,14,a[22]),T=f(T,x,R,N,y,20,a[23]),N=f(N,T,x,R,w,5,a[24]),R=f(R,N,T,x,A,9,a[25]),x=f(x,R,N,T,d,14,a[26]),T=f(T,x,R,N,m,20,a[27]),N=f(N,T,x,R,I,5,a[28]),R=f(R,N,T,x,p,9,a[29]),x=f(x,R,N,T,_,14,a[30]),N=l(N,T=f(T,x,R,N,S,20,a[31]),x,R,g,4,a[32]),R=l(R,N,T,x,m,11,a[33]),x=l(x,R,N,T,E,16,a[34]),T=l(T,x,R,N,A,23,a[35]),N=l(N,T,x,R,c,4,a[36]),R=l(R,N,T,x,y,11,a[37]),x=l(x,R,N,T,_,16,a[38]),T=l(T,x,R,N,b,23,a[39]),N=l(N,T,x,R,I,4,a[40]),R=l(R,N,T,x,s,11,a[41]),x=l(x,R,N,T,d,16,a[42]),T=l(T,x,R,N,v,23,a[43]),N=l(N,T,x,R,w,4,a[44]),R=l(R,N,T,x,S,11,a[45]),x=l(x,R,N,T,O,16,a[46]),N=h(N,T=l(T,x,R,N,p,23,a[47]),x,R,s,6,a[48]),R=h(R,N,T,x,_,10,a[49]),x=h(x,R,N,T,A,15,a[50]),T=h(T,x,R,N,g,21,a[51]),N=h(N,T,x,R,S,6,a[52]),R=h(R,N,T,x,d,10,a[53]),x=h(x,R,N,T,b,15,a[54]),T=h(T,x,R,N,c,21,a[55]),N=h(N,T,x,R,m,6,a[56]),R=h(R,N,T,x,O,10,a[57]),x=h(x,R,N,T,v,15,a[58]),T=h(T,x,R,N,I,21,a[59]),N=h(N,T,x,R,y,6,a[60]),R=h(R,N,T,x,E,10,a[61]),x=h(x,R,N,T,p,15,a[62]),T=h(T,x,R,N,w,21,a[63]),i[0]=i[0]+N|0,i[1]=i[1]+T|0,i[2]=i[2]+x|0,i[3]=i[3]+R|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),s=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var f=c[u];c[u]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,o,i,s){var a=e+(t&n|~t&r)+o+s;return(a<<i|a>>>32-i)+t}function f(e,t,n,r,o,i,s){var a=e+(t&r|n&~r)+o+s;return(a<<i|a>>>32-i)+t}function l(e,t,n,r,o,i,s){var a=e+(t^n^r)+o+s;return(a<<i|a>>>32-i)+t}function h(e,t,n,r,o,i,s){var a=e+(n^(t|~r))+o+s;return(a<<i|a>>>32-i)+t}n.MD5=i._createHelper(c),n.HmacMD5=i._createHmacHelper(c)}(Math),e.MD5}(Df())),Zf.exports}var el,tl={exports:{}};function nl(){return el||(el=1,tl.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,s=[],a=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],c=n[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var f=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=f<<1|f>>>31}var l=(r<<5|r>>>27)+c+s[u];l+=u<20?1518500249+(o&i|~o&a):u<40?1859775393+(o^i^a):u<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,c=a,a=i,i=o<<30|o>>>2,o=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(a),t.HmacSHA1=o._createHmacHelper(a)}(),e.SHA1}(Df())),tl.exports}var rl,ol={exports:{}};function il(){return rl||(rl=1,ol.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(a[o]=n(t.pow(r,.5))),c[o]=n(t.pow(r,1/3)),o++),r++}();var u=[],f=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],f=n[5],l=n[6],h=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var d=u[p-15],y=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,g=u[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[p]=y+u[p-7]+v+u[p-16]}var _=r&o^r&i^o&i,m=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&f^~a&l)+c[p]+u[p];h=l,l=f,f=a,a=s+w|0,s=i,i=o,o=r,r=w+(m+_)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+f|0,n[6]=n[6]+l|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(f),n.HmacSHA256=i._createHmacHelper(f)}(Math),e.SHA256}(Df())),ol.exports}var sl,al={exports:{}};var cl,ul={exports:{}};function fl(){return cl||(cl=1,ul.exports=function(e){return function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,i=r.WordArray,s=t.algo;function a(){return o.create.apply(o,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=a()}();var f=s.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],f=n[5],l=n[6],h=n[7],p=r.high,d=r.low,y=o.high,g=o.low,v=i.high,_=i.low,m=s.high,w=s.low,b=a.high,E=a.low,S=f.high,I=f.low,A=l.high,O=l.low,N=h.high,T=h.low,x=p,R=d,P=y,k=g,C=v,L=_,D=m,U=w,j=b,M=E,B=S,q=I,W=A,F=O,H=N,$=T,K=0;K<80;K++){var G,V,J=u[K];if(K<16)V=J.high=0|e[t+2*K],G=J.low=0|e[t+2*K+1];else{var z=u[K-15],Y=z.high,X=z.low,Z=(Y>>>1|X<<31)^(Y>>>8|X<<24)^Y>>>7,Q=(X>>>1|Y<<31)^(X>>>8|Y<<24)^(X>>>7|Y<<25),ee=u[K-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=u[K-7],se=ie.high,ae=ie.low,ce=u[K-16],ue=ce.high,fe=ce.low;V=(V=(V=Z+se+((G=Q+ae)>>>0<Q>>>0?1:0))+re+((G+=oe)>>>0<oe>>>0?1:0))+ue+((G+=fe)>>>0<fe>>>0?1:0),J.high=V,J.low=G}var le,he=j&B^~j&W,pe=M&q^~M&F,de=x&P^x&C^P&C,ye=R&k^R&L^k&L,ge=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7),ve=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7),_e=(j>>>14|M<<18)^(j>>>18|M<<14)^(j<<23|M>>>9),me=(M>>>14|j<<18)^(M>>>18|j<<14)^(M<<23|j>>>9),we=c[K],be=we.high,Ee=we.low,Se=H+_e+((le=$+me)>>>0<$>>>0?1:0),Ie=ve+ye;H=W,$=F,W=B,F=q,B=j,q=M,j=D+(Se=(Se=(Se=Se+he+((le+=pe)>>>0<pe>>>0?1:0))+be+((le+=Ee)>>>0<Ee>>>0?1:0))+V+((le+=G)>>>0<G>>>0?1:0))+((M=U+le|0)>>>0<U>>>0?1:0)|0,D=C,U=L,C=P,L=k,P=x,k=R,x=Se+(ge+de+(Ie>>>0<ve>>>0?1:0))+((R=le+Ie|0)>>>0<le>>>0?1:0)|0}d=r.low=d+R,r.high=p+x+(d>>>0<R>>>0?1:0),g=o.low=g+k,o.high=y+P+(g>>>0<k>>>0?1:0),_=i.low=_+L,i.high=v+C+(_>>>0<L>>>0?1:0),w=s.low=w+U,s.high=m+D+(w>>>0<U>>>0?1:0),E=a.low=E+M,a.high=b+j+(E>>>0<M>>>0?1:0),I=f.low=I+q,f.high=S+B+(I>>>0<q>>>0?1:0),O=l.low=O+F,l.high=A+W+(O>>>0<F>>>0?1:0),T=h.low=T+$,h.high=N+H+(T>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(f),t.HmacSHA512=n._createHmacHelper(f)}(),e.SHA512}(Df(),Mf())),ul.exports}var ll,hl={exports:{}};var pl,dl={exports:{}};function yl(){return pl||(pl=1,dl.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.x64.Word,a=n.algo,c=[],u=[],f=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var a=0,l=0,h=0;h<7;h++){if(1&o){var p=(1<<h)-1;p<32?l^=1<<p:a^=1<<p-32}128&o?o=o<<1^113:o<<=1}f[i]=s.create(a,l)}}();var l=[];!function(){for(var e=0;e<25;e++)l[e]=s.create()}();var h=a.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],s=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(T=n[o]).high^=s,T.low^=i}for(var a=0;a<24;a++){for(var h=0;h<5;h++){for(var p=0,d=0,y=0;y<5;y++)p^=(T=n[h+5*y]).high,d^=T.low;var g=l[h];g.high=p,g.low=d}for(h=0;h<5;h++){var v=l[(h+4)%5],_=l[(h+1)%5],m=_.high,w=_.low;for(p=v.high^(m<<1|w>>>31),d=v.low^(w<<1|m>>>31),y=0;y<5;y++)(T=n[h+5*y]).high^=p,T.low^=d}for(var b=1;b<25;b++){var E=(T=n[b]).high,S=T.low,I=c[b];I<32?(p=E<<I|S>>>32-I,d=S<<I|E>>>32-I):(p=S<<I-32|E>>>64-I,d=E<<I-32|S>>>64-I);var A=l[u[b]];A.high=p,A.low=d}var O=l[0],N=n[0];for(O.high=N.high,O.low=N.low,h=0;h<5;h++)for(y=0;y<5;y++){var T=n[b=h+5*y],x=l[b],R=l[(h+1)%5+5*y],P=l[(h+2)%5+5*y];T.high=x.high^~R.high&P.high,T.low=x.low^~R.low&P.low}T=n[0];var k=f[a];T.high^=k.high,T.low^=k.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,u=[],f=0;f<c;f++){var l=s[f],h=l.high,p=l.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(h)}return new o.init(u,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(h),n.HmacSHA3=i._createHmacHelper(h)}(Math),e.SHA3}(Df(),Mf())),dl.exports}var gl,vl={exports:{}};var _l,ml={exports:{}};function wl(){return _l||(_l=1,ml.exports=function(e){!function(){var t=e,n=t.lib.Base,r=t.enc.Utf8;t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,u=0;u<n;u++)a[u]^=1549556828,c[u]^=909522486;i.sigBytes=s.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}()}(Df())),ml.exports}var bl,El={exports:{}};var Sl,Il={exports:{}};function Al(){return Sl||(Sl=1,Il.exports=function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,s=i.MD5,a=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,i=r.hasher.create(),s=o.create(),a=s.words,c=r.keySize,u=r.iterations;a.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var f=1;f<u;f++)n=i.finalize(n),i.reset();s.concat(n)}return s.sigBytes=4*c,s}});t.EvpKDF=function(e,t,n){return a.create(n).compute(e,t)}}(),e.EvpKDF}(Df(),nl(),wl())),Il.exports}var Ol,Nl={exports:{}};function Tl(){return Ol||(Ol=1,Nl.exports=function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,s=r.BufferedBlockAlgorithm,a=n.enc;a.Utf8;var c=a.Base64,u=n.algo.EvpKDF,f=r.Cipher=s.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?m:v}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()});r.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=n.mode={},h=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=l.CBC=function(){var e=h.extend();function n(e,n,r){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var s=0;s<r;s++)e[n+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),e}(),d=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,s=[],a=0;a<r;a+=4)s.push(o);var c=i.create(s,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=f.extend({cfg:f.cfg.extend({mode:p,padding:d}),reset:function(){var e;f.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var y=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),y.create({ciphertext:n,salt:t})}},v=r.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),s=o.cfg;return y.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)s=u.create({keySize:t+n,hasher:o}).compute(e,r);else var s=u.create({keySize:t+n}).compute(e,r);var a=i.create(s.words.slice(t),4*n);return s.sigBytes=4*t,y.create({key:s,iv:a,salt:r})}},m=r.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:_}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=v.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,v.decrypt.call(this,e,t,o.key,r)}})}()}(Df(),Al())),Nl.exports}var xl,Rl={exports:{}};function Pl(){return xl||(xl=1,Rl.exports=function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var s=0;s<n;s++)e[t+s]^=o[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=i}}),t}(),e.mode.CFB}(Df(),Tl())),Rl.exports}var kl,Cl={exports:{}};function Ll(){return kl||(kl=1,Cl.exports=function(e){return e.mode.CTR=(t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var s=i.slice(0);n.encryptBlock(s,0),i[r-1]=i[r-1]+1|0;for(var a=0;a<r;a++)e[t+a]^=s[a]}}),t.Decryptor=n,t),e.mode.CTR;var t,n}(Df(),Tl())),Cl.exports}var Dl,Ul={exports:{}};function jl(){return Dl||(Dl=1,Ul.exports=function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),r(s);var a=s.slice(0);n.encryptBlock(a,0);for(var c=0;c<o;c++)e[t+c]^=a[c]}});return t.Decryptor=o,t}(),e.mode.CTRGladman}(Df(),Tl())),Ul.exports}var Ml,Bl={exports:{}};function ql(){return Ml||(Ml=1,Bl.exports=function(e){return e.mode.OFB=(t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var s=0;s<r;s++)e[t+s]^=i[s]}}),t.Decryptor=n,t),e.mode.OFB;var t,n}(Df(),Tl())),Bl.exports}var Wl,Fl={exports:{}};var Hl,$l={exports:{}};var Kl,Gl={exports:{}};var Vl,Jl={exports:{}};var zl,Yl={exports:{}};var Xl,Zl={exports:{}};var Ql,eh={exports:{}};var th,nh={exports:{}};var rh,oh={exports:{}};function ih(){return rh||(rh=1,oh.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,i=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var u=o[i]=[],f=c[i];for(n=0;n<24;n++)u[n/6|0]|=t[(a[n]-1+f)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(a[n+24]-1+f)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var l=this._invSubKeys=[];for(n=0;n<16;n++)l[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=u[c][((s^o[c])&f[c])>>>0];this._lBlock=s,this._rBlock=i^a}var l=this._lBlock;this._lBlock=this._rBlock,this._rBlock=l,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(l);var d=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=l.createEncryptor(r.create(t)),this._des2=l.createEncryptor(r.create(n)),this._des3=l.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(d)}(),e.TripleDES}(Df(),Vf(),Qf(),Al(),Tl())),oh.exports}var sh,ah={exports:{}};var ch,uh={exports:{}};var fh,lh={exports:{}};var hh,ph={exports:{}};function dh(){return hh||(hh=1,ph.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,s=e.sbox[0][n]+e.sbox[1][r];return s^=e.sbox[2][o],s+=e.sbox[3][i],s}function u(e,t,n){let r,i=t,s=n;for(let t=0;t<o;++t)i^=e.pbox[t],s=c(e,i)^s,r=i,i=s,s=r;return r=i,i=s,s=r,s^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:s}}function f(e,t,n){let r,i=t,s=n;for(let t=o+1;t>1;--t)i^=e.pbox[t],s=c(e,i)^s,r=i,i=s,s=r;return r=i,i=s,s=r,s^=e.pbox[1],i^=e.pbox[0],{left:i,right:s}}function l(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=s[t][n]}let r=0;for(let s=0;s<o+2;s++)e.pbox[s]=i[s]^t[r],r++,r>=n&&(r=0);let a=0,c=0,f=0;for(let t=0;t<o+2;t+=2)f=u(e,a,c),a=f.left,c=f.right,e.pbox[t]=a,e.pbox[t+1]=c;for(let t=0;t<4;t++)for(let n=0;n<256;n+=2)f=u(e,a,c),a=f.left,c=f.right,e.sbox[t][n]=a,e.sbox[t][n+1]=c;return!0}var h=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;l(a,t,n)}},encryptBlock:function(e,t){var n=u(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=f(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(h)}(),e.Blowfish}(Df(),Vf(),Qf(),Al(),Tl())),ph.exports}kf.exports=function(e){return e}(Df(),Mf(),Wf(),$f(),Vf(),Yf(),Qf(),nl(),il(),sl||(sl=1,al.exports=function(e){return function(){var t=e,n=t.lib.WordArray,r=t.algo,o=r.SHA256,i=r.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(i),t.HmacSHA224=o._createHmacHelper(i)}(),e.SHA224}(Df(),il())),fl(),ll||(ll=1,hl.exports=function(e){return function(){var t=e,n=t.x64,r=n.Word,o=n.WordArray,i=t.algo,s=i.SHA512,a=i.SHA384=s.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=s._createHelper(a),t.HmacSHA384=s._createHmacHelper(a)}(),e.SHA384}(Df(),Mf(),fl())),yl(),gl||(gl=1,vl.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=o.create([0,1518500249,1859775393,2400959708,2840853838]),h=o.create([1352829926,1548603684,1836072691,2053994217,0]),p=s.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,s,p,w,b,E,S,I,A,O,N,T=this._hash.words,x=l.words,R=h.words,P=a.words,k=c.words,C=u.words,L=f.words;for(E=i=T[0],S=s=T[1],I=p=T[2],A=w=T[3],O=b=T[4],n=0;n<80;n+=1)N=i+e[t+P[n]]|0,N+=n<16?d(s,p,w)+x[0]:n<32?y(s,p,w)+x[1]:n<48?g(s,p,w)+x[2]:n<64?v(s,p,w)+x[3]:_(s,p,w)+x[4],N=(N=m(N|=0,C[n]))+b|0,i=b,b=w,w=m(p,10),p=s,s=N,N=E+e[t+k[n]]|0,N+=n<16?_(S,I,A)+R[0]:n<32?v(S,I,A)+R[1]:n<48?g(S,I,A)+R[2]:n<64?y(S,I,A)+R[3]:d(S,I,A)+R[4],N=(N=m(N|=0,L[n]))+O|0,E=O,O=A,A=m(I,10),I=S,S=N;N=T[1]+p+A|0,T[1]=T[2]+w+O|0,T[2]=T[3]+b+E|0,T[3]=T[4]+i+S|0,T[4]=T[0]+s+I|0,T[0]=N},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,n){return e^t^n}function y(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function _(e,t,n){return e^(t|~n)}function m(e,t){return e<<t|e>>>32-t}n.RIPEMD160=i._createHelper(p),n.HmacRIPEMD160=i._createHmacHelper(p)}(),e.RIPEMD160}(Df())),wl(),bl||(bl=1,El.exports=function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,s=i.SHA256,a=i.HMAC,c=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=a.create(n.hasher,e),i=o.create(),s=o.create([1]),c=i.words,u=s.words,f=n.keySize,l=n.iterations;c.length<f;){var h=r.update(t).finalize(s);r.reset();for(var p=h.words,d=p.length,y=h,g=1;g<l;g++){y=r.finalize(y),r.reset();for(var v=y.words,_=0;_<d;_++)p[_]^=v[_]}i.concat(h),u[0]++}return i.sigBytes=4*f,i}});t.PBKDF2=function(e,t,n){return c.create(n).compute(e,t)}}(),e.PBKDF2}(Df(),il(),wl())),Al(),Tl(),Pl(),Ll(),jl(),ql(),Wl||(Wl=1,Fl.exports=function(e){return e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t),e.mode.ECB;var t}(Df(),Tl())),Hl||(Hl=1,$l.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(Df(),Tl())),Kl||(Kl=1,Gl.exports=function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(Df(),Tl())),Vl||(Vl=1,Jl.exports=function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(Df(),Tl())),zl||(zl=1,Yl.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}(Df(),Tl())),Xl||(Xl=1,Zl.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(Df(),Tl())),Ql||(Ql=1,eh.exports=function(e){return function(t){var n=e,r=n.lib.CipherParams,o=n.enc.Hex;n.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return r.create({ciphertext:t})}}}(),e.format.Hex}(Df(),Tl())),th||(th=1,nh.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],i=[],s=[],a=[],c=[],u=[],f=[],l=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var d=r^r<<1^r<<2^r<<3^r<<4;d=d>>>8^255&d^99,o[n]=d,i[d]=n;var y=e[n],g=e[y],v=e[g],_=257*e[d]^16843008*d;s[n]=_<<24|_>>>8,a[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,u[n]=_,_=16843009*v^65537*g^257*y^16843008*n,f[d]=_<<24|_>>>8,l[d]=_<<16|_>>>16,h[d]=_<<8|_>>>24,p[d]=_,n?(n=y^e[e[e[v^y]]],r^=e[e[r]]):n=r=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],y=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],s=0;s<r;s++)s<n?i[s]=t[s]:(u=i[s-1],s%n?n>6&&s%n==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=o[(u=u<<8|u>>>24)>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=d[s/n|0]<<24),i[s]=i[s-n]^u);for(var a=this._invKeySchedule=[],c=0;c<r;c++){if(s=r-c,c%4)var u=i[s];else u=i[s-4];a[c]=c<4||s<=4?u:f[o[u>>>24]]^l[o[u>>>16&255]]^h[o[u>>>8&255]]^p[o[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,c,u,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,f,l,h,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,s,a){for(var c=this._nRounds,u=e[t]^n[0],f=e[t+1]^n[1],l=e[t+2]^n[2],h=e[t+3]^n[3],p=4,d=1;d<c;d++){var y=r[u>>>24]^o[f>>>16&255]^i[l>>>8&255]^s[255&h]^n[p++],g=r[f>>>24]^o[l>>>16&255]^i[h>>>8&255]^s[255&u]^n[p++],v=r[l>>>24]^o[h>>>16&255]^i[u>>>8&255]^s[255&f]^n[p++],_=r[h>>>24]^o[u>>>16&255]^i[f>>>8&255]^s[255&l]^n[p++];u=y,f=g,l=v,h=_}y=(a[u>>>24]<<24|a[f>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^n[p++],g=(a[f>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^n[p++],v=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&f])^n[p++],_=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[f>>>8&255]<<8|a[255&l])^n[p++],e[t]=y,e[t+1]=g,e[t+2]=v,e[t+3]=_},keySize:8});t.AES=n._createHelper(y)}(),e.AES}(Df(),Vf(),Qf(),Al(),Tl())),ih(),sh||(sh=1,ah.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var s=o%n,a=t[s>>>2]>>>24-s%4*8&255;i=(i+r[o]+a)%256;var c=r[o];r[o]=r[i],r[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}t.RC4=n._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=n._createHelper(s)}(),e.RC4}(Df(),Vf(),Qf(),Al(),Tl())),ch||(ch=1,uh.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],s=[],a=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,s=i[0],a=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=u>>>16|4294901760&f,h=f<<16|65535&u;for(o[0]^=u,o[1]^=l,o[2]^=f,o[3]^=h,o[4]^=u,o[5]^=l,o[6]^=f,o[7]^=h,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=n._createHelper(a)}(),e.Rabbit}(Df(),Vf(),Qf(),Al(),Tl())),fh||(fh=1,lh.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],s=[],a=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,s=i[0],a=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=u>>>16|4294901760&f,h=f<<16|65535&u;for(r[0]^=u,r[1]^=l,r[2]^=f,r[3]^=h,r[4]^=u,r[5]^=l,r[6]^=f,r[7]^=h,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=n._createHelper(a)}(),e.RabbitLegacy}(Df(),Vf(),Qf(),Al(),Tl())),dh());var yh=s(kf.exports),gh=function(){function e(){this.token=null,this.loginPath="",this.instance=t.create(),this.setupInterceptors()}return e.prototype.setupTokenListener=function(e){var t=this;window.addEventListener("storage",(function(n){if("string"==typeof e&&n.key===e&&n.newValue&&t.setToken(n.newValue),"function"==typeof e){var r=e();t.setToken(r)}}));var n="string"==typeof e?window.localStorage.getItem(e):"function"==typeof e?e():null;n&&this.setToken(n)},e.prototype.setupAuthorizationCallback=function(e){this.instance.interceptors.response.use((function(e){return e}),(function(t){return t.response&&401===t.response.status&&("string"==typeof e?location.replace(e):"function"==typeof e&&e()),Promise.reject(t)}))},e.prototype.encryptToken=function(e){if(e){var t=e+"|+|"+(new Date).getTime();return yh.AES.encrypt(t,"214c!dsf1").toString()}},e.prototype.setToken=function(e){this.token=e},e.prototype.setupInterceptors=function(){var e=this;this.instance.interceptors.request.use((function(t){return e.token&&(t.headers["x-belink-authorization"]=e.encryptToken(e.token)),t}))},e.prototype.setRequestMethod=function(e){e&&!(null==e?void 0:e.method)&&(e.method=(null==e?void 0:e.data)?"post":"get")},e.prototype.setInterceptors=function(e){"function"==typeof e.requestInterceptors&&this.instance.interceptors.request.use(e.requestInterceptors),"function"==typeof e.responseInterceptors&&this.instance.interceptors.response.use(e.responseInterceptors)},e.prototype.setupCustomToken=function(e){(null==e?void 0:e.customToken)&&this.setToken(e.customToken)},e.prototype.request=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(r){return this.setRequestMethod(e),this.setInterceptors(e),this.setupCustomToken(e),[2,new Promise((function(r,o){t.instance.request({method:e.method,url:e.url,headers:e.headers,data:e.data,params:e.params,timeout:e.timeout||8e3}).then((function(e){200===e.status?r(e.data):o(e.data)})).catch((function(t){var r;null==t||t.response,e.catchCallback&&t instanceof n&&e.catchCallback(t),o((null===(r=t.response)||void 0===r?void 0:r.data)||t)}))}))]}))}))},e}(),vh=new gh;export{vh as beLinkRequest,xf as callFunction,Pf as request};
|