hfs 3.2.1 → 3.3.0-alpha1
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/admin/assets/{af-U8Sl5sCM.js → af-CevhRske.js} +1 -1
- package/admin/assets/{am-n9TdXja0.js → am-4ouVTwuo.js} +1 -1
- package/admin/assets/{ar-CUpxfuw5.js → ar-71cK8dbb.js} +1 -1
- package/admin/assets/{ar-dz-DC58Z9cj.js → ar-dz-CO7oh1gG.js} +1 -1
- package/admin/assets/{ar-iq-BDkrto6W.js → ar-iq-CjG6db8J.js} +1 -1
- package/admin/assets/{ar-kw-Bz806GvG.js → ar-kw-DMsdR225.js} +1 -1
- package/admin/assets/{ar-ly-DW7JaKir.js → ar-ly-ZhxIwUOA.js} +1 -1
- package/admin/assets/{ar-ma-BuveKbkq.js → ar-ma-Bo3Z1RyK.js} +1 -1
- package/admin/assets/{ar-sa-DRvob1Jp.js → ar-sa-Db44biae.js} +1 -1
- package/admin/assets/{ar-tn-Cae7pfui.js → ar-tn-DNWRixE0.js} +1 -1
- package/admin/assets/{az-B7PpjwCU.js → az-B6LcmVzB.js} +1 -1
- package/admin/assets/{be-DSy_sPdD.js → be-Dp0KhO5x.js} +1 -1
- package/admin/assets/{bg-Djacfatx.js → bg-TsOJJvBm.js} +1 -1
- package/admin/assets/{bi-DOLGYGEN.js → bi-DstczOGo.js} +1 -1
- package/admin/assets/{bm-BmR133he.js → bm-Bf09NN15.js} +1 -1
- package/admin/assets/{bn-DsjLUmm3.js → bn-Da3tHLgx.js} +1 -1
- package/admin/assets/{bn-bd-C3SafRtu.js → bn-bd-CeSalisC.js} +1 -1
- package/admin/assets/{bo-DsMRUw9A.js → bo-Ctxe0IKQ.js} +1 -1
- package/admin/assets/{br-BxR8Zm95.js → br-Y3dPq3Tj.js} +1 -1
- package/admin/assets/{bs-gH68uvCb.js → bs-BbAlSeZx.js} +1 -1
- package/admin/assets/{ca-DfGL180b.js → ca-8-Nn97gi.js} +1 -1
- package/admin/assets/{cs-D4lFVAq6.js → cs-BD5ArFNW.js} +1 -1
- package/admin/assets/{cv-CFyqoRN7.js → cv-CdMFVXGr.js} +1 -1
- package/admin/assets/{cy-DuubtylZ.js → cy-B3QEYlIT.js} +1 -1
- package/admin/assets/{da-Cp7c-T-B.js → da-Bju2YQ9G.js} +1 -1
- package/admin/assets/{de-CeQXU72n.js → de-DdzCTquR.js} +1 -1
- package/admin/assets/{de-at-Cx01BLTk.js → de-at-DgyKCkPl.js} +1 -1
- package/admin/assets/{de-ch-K5Vn_bWQ.js → de-ch-Dk9qkzvn.js} +1 -1
- package/admin/assets/{dist-CfPsVFTp.js → dist-KY_8edrw.js} +1 -1
- package/admin/assets/{dv-DB4pdLQj.js → dv-C5KWK8o4.js} +1 -1
- package/admin/assets/{el-CNA5lg_z.js → el-BDL_lPlM.js} +1 -1
- package/admin/assets/{en-Bpua-Wb5.js → en-Ds3H1Wec.js} +1 -1
- package/admin/assets/{en-au-CKwJ7DKC.js → en-au-CgltfNUb.js} +1 -1
- package/admin/assets/{en-ca-D8vKBgWW.js → en-ca-DEsKzbWO.js} +1 -1
- package/admin/assets/{en-in-Bhx4y1uu.js → en-gb-21AYC3Ik.js} +1 -1
- package/admin/assets/{en-ie-0gd4plad.js → en-ie-aN3g-yqK.js} +1 -1
- package/admin/assets/{en-il-BYIz25Pw.js → en-il-CZl2d7NK.js} +1 -1
- package/admin/assets/{en-tt-Bk-if7Re.js → en-in-C7Kv4c3w.js} +1 -1
- package/admin/assets/{en-nz-CtIJOjgh.js → en-nz-DA_sIaGR.js} +1 -1
- package/admin/assets/{en-sg-iygWx8GW.js → en-sg-CP5PJpZf.js} +1 -1
- package/admin/assets/{en-gb-C3jRv20Y.js → en-tt-B5vDLhL7.js} +1 -1
- package/admin/assets/{eo-DAvER5ej.js → eo-VE1KDD1u.js} +1 -1
- package/admin/assets/{es-C98a0Ggy.js → es-SUzi5oTU.js} +1 -1
- package/admin/assets/{es-do-TCakoZXN.js → es-do-Iri0eWm8.js} +1 -1
- package/admin/assets/{es-mx-BCj7c6Zn.js → es-mx-DwneKeOc.js} +1 -1
- package/admin/assets/{es-pr-rsR3Q8oM.js → es-pr-C4zPUdA1.js} +1 -1
- package/admin/assets/{es-us-DC9NM1XV.js → es-us-BPS67etc.js} +1 -1
- package/admin/assets/{esm-BQaMpob3.js → esm-CyNQ7bBW.js} +1 -1
- package/admin/assets/{et-tJ-d1AZX.js → et-Ciqbfae0.js} +1 -1
- package/admin/assets/{eu-xzUajtaj.js → eu-CGhOwQpe.js} +1 -1
- package/admin/assets/{fa-kR15gQkC.js → fa-BWZiAv_E.js} +1 -1
- package/admin/assets/{fi-DQjRBOgG.js → fi-DJmgkVsJ.js} +1 -1
- package/admin/assets/{fo-BHMXHU45.js → fo-DVez5N-g.js} +1 -1
- package/admin/assets/{fr-DGS71Nvo.js → fr-D206itJo.js} +1 -1
- package/admin/assets/{fr-ca-Bkzyy0tT.js → fr-ca-C6JiEHfi.js} +1 -1
- package/admin/assets/{fr-ch-BRrWrRWV.js → fr-ch-DUTEuSU_.js} +1 -1
- package/admin/assets/{fy-Dkv180q7.js → fy-C_r06zH-.js} +1 -1
- package/admin/assets/{ga-xsoXuVDY.js → ga-CrdQqAN5.js} +1 -1
- package/admin/assets/{gd-cLPVqYdG.js → gd-iWHfhKAH.js} +1 -1
- package/admin/assets/{gl-BUG0DHTt.js → gl-zgfy-pQ0.js} +1 -1
- package/admin/assets/{gom-latn-BKRncAa1.js → gom-latn-CMZ7Vj7V.js} +1 -1
- package/admin/assets/{gu-BpmXErqK.js → gu-DNqIMjZc.js} +1 -1
- package/admin/assets/{he-DNxd9A8z.js → he-OJBbYFzL.js} +1 -1
- package/admin/assets/{hi-dNFE6t75.js → hi-ByrMhKpX.js} +1 -1
- package/admin/assets/{hr-DNZiZtn4.js → hr-CfRZXzCu.js} +1 -1
- package/admin/assets/{ht-B1LoCeln.js → ht-DDrMtLzJ.js} +1 -1
- package/admin/assets/{hu-q6SYps3j.js → hu-Ckeq3R6_.js} +1 -1
- package/admin/assets/{hy-am-BLa2HL3i.js → hy-am-OpZy7Nvg.js} +1 -1
- package/admin/assets/{id-4zvXdXSK.js → id-BE8-Ys79.js} +1 -1
- package/admin/assets/{index-D2UH6ajh.js → index-34fRsXFH.js} +128 -123
- package/admin/assets/{is-B7wmPDNy.js → is-BOxJcH5N.js} +1 -1
- package/admin/assets/{it-CGm31WTp.js → it-BFlrIXvP.js} +1 -1
- package/admin/assets/{it-ch-HfVNoF64.js → it-ch-ILAp-lZZ.js} +1 -1
- package/admin/assets/{ja-RGFi1Jc2.js → ja-CbbYAYyn.js} +1 -1
- package/admin/assets/{jv-BclbE5yu.js → jv-CuLkRQCH.js} +1 -1
- package/admin/assets/{ka-D3ZrxVjT.js → ka-BFeRDN-I.js} +1 -1
- package/admin/assets/{kk-B7aIapNy.js → kk-CMvQxaPk.js} +1 -1
- package/admin/assets/{km-DPwsGner.js → km-BdQbDUNF.js} +1 -1
- package/admin/assets/{kn-CuXmm_DG.js → kn-CE5AS6Nx.js} +1 -1
- package/admin/assets/{ko-BlPgy9aF.js → ko-Ctl1mHOt.js} +1 -1
- package/admin/assets/{ku-B6w51rl_.js → ku-Blbo7opr.js} +1 -1
- package/admin/assets/{ky-RLmSGZmf.js → ky-iCha_cZX.js} +1 -1
- package/admin/assets/{lb-AKcfj05J.js → lb-BaP0S6h1.js} +1 -1
- package/admin/assets/{lo-VBKOzJn1.js → lo-B_Q4zUMa.js} +1 -1
- package/admin/assets/{lt-53JaHFcf.js → lt-BOaP1KGX.js} +1 -1
- package/admin/assets/{lv-DGOgmu9w.js → lv-S1XMSUX1.js} +1 -1
- package/admin/assets/{me-zNrvFUXX.js → me-ChOLVJHC.js} +1 -1
- package/admin/assets/{mi-BBDE1uK4.js → mi-CnoIUOGl.js} +1 -1
- package/admin/assets/{mk-2LiSrAS9.js → mk-BoEaxVXE.js} +1 -1
- package/admin/assets/{ml-BEwbrVql.js → ml-BuvmVn6P.js} +1 -1
- package/admin/assets/{mn-LuMGd2Ic.js → mn-2bvGd1HI.js} +1 -1
- package/admin/assets/{mr-C_dFhleR.js → mr-BAoAWQmy.js} +1 -1
- package/admin/assets/{ms-BHnmZJI4.js → ms-C2eT9r-f.js} +1 -1
- package/admin/assets/{ms-my-FcVPbGSE.js → ms-my-D2ZXdcAf.js} +1 -1
- package/admin/assets/{mt-DzhvOV5Z.js → mt-BL5JZC4T.js} +1 -1
- package/admin/assets/{my-Mmp3v0PH.js → my-CuJ4L0Ji.js} +1 -1
- package/admin/assets/{nb-CYPvI8e3.js → nb-CjE6cT80.js} +1 -1
- package/admin/assets/{ne-BtVsV5BN.js → ne-BL9I0cb1.js} +1 -1
- package/admin/assets/{nl-C6aRDFNr.js → nl-Dt3mtMln.js} +1 -1
- package/admin/assets/{nl-be-X-pQSY5N.js → nl-be-Am1mjZK9.js} +1 -1
- package/admin/assets/{nn-C1m9zYBT.js → nn-ChSewyYy.js} +1 -1
- package/admin/assets/{oc-lnc-CFT7xZs-.js → oc-lnc-x6_ChCE9.js} +1 -1
- package/admin/assets/{pa-in-Bby4AmI2.js → pa-in-DVyN8o2P.js} +1 -1
- package/admin/assets/{pl-MmIf2tXf.js → pl-CqcuAUGV.js} +1 -1
- package/admin/assets/{pt-DHCh_z9j.js → pt-B2BPpD7K.js} +1 -1
- package/admin/assets/{pt-br-Cu8EXyIK.js → pt-br-oBVRyUzP.js} +1 -1
- package/admin/assets/{rn-DZUJ5hf0.js → rn-B3e3nkfp.js} +1 -1
- package/admin/assets/{ro-BRHg1GDk.js → ro-C2tWFx0Q.js} +1 -1
- package/admin/assets/{ru-Wv8fMN5W.js → ru-CCsEUnFL.js} +1 -1
- package/admin/assets/{rw-B_XP1EHM.js → rw-CaCkWlGA.js} +1 -1
- package/admin/assets/{sd-_X3CAPlB.js → sd-90Zixcez.js} +1 -1
- package/admin/assets/{se-FItkWaOK.js → se-DaZXpLsK.js} +1 -1
- package/admin/assets/{sha512-UQMP5wnF.js → sha512-DlGRFb_l.js} +1 -1
- package/admin/assets/{si-DhVYEiDt.js → si-CSoBAkgi.js} +1 -1
- package/admin/assets/{sk-cWZR9gF4.js → sk-pgQaqa2z.js} +1 -1
- package/admin/assets/{sl-CJckZkV8.js → sl-Cr5kSdA7.js} +1 -1
- package/admin/assets/{sq-B7eoM8fS.js → sq-Pxi2MZOP.js} +1 -1
- package/admin/assets/{sr-SfiQA7kg.js → sr-Fdc9-lC-.js} +1 -1
- package/admin/assets/{sr-cyrl-Db8Rrl0U.js → sr-cyrl-06jNWqpg.js} +1 -1
- package/admin/assets/{ss-Bian2WDB.js → ss-BjEzSMit.js} +1 -1
- package/admin/assets/{sv-D-Dsf8uN.js → sv-CqWqUpcA.js} +1 -1
- package/admin/assets/{sv-fi-BBv1GPVJ.js → sv-fi-CsO2xQHd.js} +1 -1
- package/admin/assets/{sw-BIzZvuq6.js → sw-xQUdgYhn.js} +1 -1
- package/admin/assets/{ta-C2JoHqar.js → ta-epbFrZ1M.js} +1 -1
- package/admin/assets/{te-ByKFS-hT.js → te-DusTwU6q.js} +1 -1
- package/admin/assets/{tet-Bq9OQkFH.js → tet-ylc9v4gl.js} +1 -1
- package/admin/assets/{tg-BPqYCigR.js → tg-2QfVTAJf.js} +1 -1
- package/admin/assets/{th-m4ghaYsj.js → th-QIm0Mh7I.js} +1 -1
- package/admin/assets/{tk-CFxWTO9D.js → tk-140KMZeW.js} +1 -1
- package/admin/assets/{tl-ph-BiBY15io.js → tl-ph-S7IZkbx3.js} +1 -1
- package/admin/assets/{tlh-CyBfXfLa.js → tlh-C2fYb34-.js} +1 -1
- package/admin/assets/{tr-69QiF4Yn.js → tr-Be-IM6i4.js} +1 -1
- package/admin/assets/{tzl-BG9jvswA.js → tzl-DMy30zde.js} +1 -1
- package/admin/assets/{tzm-IJGtGn0k.js → tzm-Cu882cHO.js} +1 -1
- package/admin/assets/{tzm-latn-CAelnev_.js → tzm-latn-BYxpYHet.js} +1 -1
- package/admin/assets/{ug-cn-CKlXJ1Cr.js → ug-cn-Cl8Jqk2E.js} +1 -1
- package/admin/assets/{uk-DazXNZ9b.js → uk-B-8XymtC.js} +1 -1
- package/admin/assets/{ur-BFAjqt9p.js → ur-ChGuAlvQ.js} +1 -1
- package/admin/assets/{uz-CjoAOeqe.js → uz-QbfaW7fT.js} +1 -1
- package/admin/assets/{uz-latn-CzIzARA0.js → uz-latn-DIQivLCy.js} +1 -1
- package/admin/assets/{vi-DZuOT62g.js → vi-C2CmYlDu.js} +1 -1
- package/admin/assets/{x-pseudo-DlpsSPis.js → x-pseudo-BWgm1XlP.js} +1 -1
- package/admin/assets/{yo-BvI53ejW.js → yo-8bNbPP6u.js} +1 -1
- package/admin/assets/{zh-ci4y7UyJ.js → zh-CeNSRZ4r.js} +1 -1
- package/admin/assets/{zh-cn-CwOh6Lhp.js → zh-cn-BlbF5C_X.js} +1 -1
- package/admin/assets/{zh-hk-CPgMd5VF.js → zh-hk-kg1c_VSK.js} +1 -1
- package/admin/assets/{zh-tw-DJiWMOSA.js → zh-tw-BCl4UsPA.js} +1 -1
- package/admin/index.html +1 -1
- package/frontend/assets/{dist-legacy-CFPnugjA.js → dist-legacy-DYE1EOcc.js} +1 -1
- package/frontend/assets/index-legacy-Br-Lpsst.js +1 -0
- package/frontend/assets/{lib-legacy-CCULxbTk.js → lib-legacy-C4Gw_0kX.js} +1 -1
- package/frontend/assets/{sha512-legacy-D8zcvvqa.js → sha512-legacy-D3RbPSpl.js} +1 -1
- package/frontend/index.html +1 -1
- package/npm-shrinkwrap.json +16 -12
- package/package.json +6 -5
- package/src/AsapStream.js +18 -14
- package/src/SendList.js +42 -16
- package/src/ThrottledStream.js +3 -3
- package/src/acme.js +23 -10
- package/src/adminApis.js +7 -6
- package/src/api.accounts.js +11 -7
- package/src/api.auth.js +8 -5
- package/src/api.cert.js +1 -1
- package/src/api.get_file_list.js +4 -3
- package/src/api.lang.js +3 -2
- package/src/api.monitor.js +1 -1
- package/src/api.net.js +3 -1
- package/src/api.plugins.js +2 -0
- package/src/api.vfs.js +5 -4
- package/src/apiMiddleware.js +5 -1
- package/src/auth.js +4 -1
- package/src/basicWeb.js +1 -1
- package/src/block.js +5 -4
- package/src/commands.js +6 -5
- package/src/comments.js +29 -13
- package/src/config.js +7 -4
- package/src/connections.js +3 -2
- package/src/consoleLog.js +5 -1
- package/src/cross-const.js +27 -1
- package/src/cross.js +32 -33
- package/src/ddns.js +1 -4
- package/src/events.js +1 -4
- package/src/fileAttr.js +6 -2
- package/src/frontEndApis.js +7 -3
- package/src/geo.js +8 -2
- package/src/github.js +10 -9
- package/src/index.js +1 -1
- package/src/ips.js +24 -3
- package/src/langs/embedded.js +2 -1
- package/src/langs/hfs-lang-ar.json +1 -0
- package/src/langs/hfs-lang-bg.json +1 -0
- package/src/langs/hfs-lang-de.json +1 -0
- package/src/langs/hfs-lang-el.json +1 -0
- package/src/langs/hfs-lang-es.json +1 -0
- package/src/langs/hfs-lang-fi.json +1 -0
- package/src/langs/hfs-lang-fr.json +1 -0
- package/src/langs/hfs-lang-hu.json +1 -0
- package/src/langs/hfs-lang-it.json +1 -0
- package/src/langs/hfs-lang-ja.json +1 -0
- package/src/langs/hfs-lang-ko.json +1 -0
- package/src/langs/hfs-lang-lt.json +1 -0
- package/src/langs/hfs-lang-ms.json +1 -0
- package/src/langs/hfs-lang-nl.json +1 -0
- package/src/langs/hfs-lang-pl.json +182 -0
- package/src/langs/hfs-lang-pt-br.json +1 -0
- package/src/langs/hfs-lang-ro.json +1 -0
- package/src/langs/hfs-lang-ru.json +1 -0
- package/src/langs/hfs-lang-sr-latn.json +1 -0
- package/src/langs/hfs-lang-sr.json +1 -0
- package/src/langs/hfs-lang-th.json +1 -0
- package/src/langs/hfs-lang-tr.json +1 -0
- package/src/langs/hfs-lang-uk.json +1 -0
- package/src/langs/hfs-lang-vi.json +1 -0
- package/src/langs/hfs-lang-zh-tw.json +1 -0
- package/src/langs/hfs-lang-zh.json +1 -0
- package/src/listen.js +18 -14
- package/src/log.js +11 -2
- package/src/middlewares.js +8 -6
- package/src/misc.js +3 -3
- package/src/multipartUpload.js +1 -2
- package/src/nat.js +5 -3
- package/src/outboundProxy.js +8 -0
- package/src/perm.js +5 -3
- package/src/plugins.js +58 -36
- package/src/selfCheck.js +8 -7
- package/src/serveFile.js +8 -6
- package/src/serveGuiAndSharedFiles.js +7 -6
- package/src/serveGuiFiles.js +13 -1
- package/src/serverCode.js +27 -0
- package/src/throttler.js +3 -2
- package/src/update.js +9 -3
- package/src/upload.js +30 -12
- package/src/uploadOwners.js +95 -0
- package/src/util-files.js +4 -2
- package/src/util-http.js +3 -1
- package/src/vfs.js +36 -28
- package/src/walkDir.js +24 -11
- package/src/watchLoad.js +13 -2
- package/src/webdav.js +16 -2
- package/src/zip.js +4 -3
- package/frontend/assets/index-legacy-CCOgiwQJ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./index-legacy-CCOgiwQJ.js"],(function(t,i){var h,s,e,r,o,a;return{setters:[function(t){h=t.t}],execute:function(){s=h((function(t,i){!function(t){function h(t,i){return this instanceof h?(this._low=0,this._high=0,this.remainder=null,void 0===i?e.call(this,t):"string"==typeof t?r.call(this,t,i):void s.call(this,t,i)):new h(t,i)}function s(t,i){return this._low=0|t,this._high=0|i,this}function e(t){return this._low=65535&t,this._high=t>>>16,this}function r(t,i){var h=parseInt(t,i||10);return this._low=65535&h,this._high=h>>>16,this}h(Math.pow(36,5)),h(Math.pow(16,7)),h(Math.pow(10,9)),h(Math.pow(2,30)),h(36),h(16),h(10),h(2),h.prototype.fromBits=s,h.prototype.fromNumber=e,h.prototype.fromString=r,h.prototype.toNumber=function(){return 65536*this._high+this._low},h.prototype.toString=function(t){return this.toNumber().toString(t||10)},h.prototype.add=function(t){var i=this._low+t._low,h=i>>>16;return h+=this._high+t._high,this._low=65535&i,this._high=65535&h,this},h.prototype.subtract=function(t){return this.add(t.clone().negate())},h.prototype.multiply=function(t){var i,h=this._high,s=this._low,e=t._high,r=t._low,o=s*r;return i=o>>>16,i+=h*r,i&=65535,i+=s*e,this._low=65535&o,this._high=65535&i,this},h.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new h(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new h(0),this._low=1,this._high=0,this;for(var i=t.clone(),s=-1;!this.lt(i);)i.shiftLeft(1,!0),s++;for(this.remainder=this.clone(),this._low=0,this._high=0;s>=0;s--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),s>=16?this._high|=1<<s-16:this._low|=1<<s);return this},h.prototype.negate=function(){var t=1+(65535&~this._low);return this._low=65535&t,this._high=~this._high+(t>>>16)&65535,this},h.prototype.equals=h.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},h.prototype.greaterThan=h.prototype.gt=function(t){return this._high>t._high||!(this._high<t._high)&&this._low>t._low},h.prototype.lessThan=h.prototype.lt=function(t){return this._high<t._high||!(this._high>t._high)&&this._low<t._low},h.prototype.or=function(t){return this._low|=t._low,this._high|=t._high,this},h.prototype.and=function(t){return this._low&=t._low,this._high&=t._high,this},h.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},h.prototype.xor=function(t){return this._low^=t._low,this._high^=t._high,this},h.prototype.shiftRight=h.prototype.shiftr=function(t){return t>16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},h.prototype.shiftLeft=h.prototype.shiftl=function(t,i){return t>16?(this._high=this._low<<t-16,this._low=0,i||(this._high&=65535)):16==t?(this._high=this._low,this._low=0):(this._high=this._high<<t|this._low>>16-t,this._low=this._low<<t&65535,i||(this._high&=65535)),this},h.prototype.rotateLeft=h.prototype.rotl=function(t){var i=this._high<<16|this._low;return i=i<<t|i>>>32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.rotateRight=h.prototype.rotr=function(t){var i=this._high<<16|this._low;return i=i>>>t|i<<32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.clone=function(){return new h(this._low,this._high)},"undefined"!=typeof define&&define.amd?define([],(function(){return h})):void 0!==i&&i.exports?i.exports=h:t.UINT32=h}(t)})),e=h((function(t,i){!function(t){var h={16:e(Math.pow(16,5)),10:e(Math.pow(10,5)),2:e(Math.pow(2,5))},s={16:e(16),10:e(10),2:e(2)};function e(t,i,h,s){return this instanceof e?(this.remainder=null,"string"==typeof t?a.call(this,t,i):void 0===i?o.call(this,t):void r.apply(this,arguments)):new e(t,i,h,s)}function r(t,i,h,s){return void 0===h?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&i,this._a48=i>>>16,this):(this._a00=0|t,this._a16=0|i,this._a32=0|h,this._a48=0|s,this)}function o(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function a(t,i){i=i||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var s=h[i]||new e(Math.pow(i,5)),r=0,o=t.length;r<o;r+=5){var a=Math.min(5,o-r),m=parseInt(t.slice(r,r+a),i);this.multiply(a<5?new e(Math.pow(i,a)):s).add(new e(m))}return this}e.prototype.fromBits=r,e.prototype.fromNumber=o,e.prototype.fromString=a,e.prototype.toNumber=function(){return 65536*this._a16+this._a00},e.prototype.toString=function(t){var i=s[t=t||10]||new e(t);if(!this.gt(i))return this.toNumber().toString(t);for(var h=this.clone(),r=new Array(64),o=63;o>=0&&(h.div(i),r[o]=h.remainder.toNumber().toString(t),h.gt(i));o--);return r[o-1]=h.toNumber().toString(t),r.join("")},e.prototype.add=function(t){var i=this._a00+t._a00,h=i>>>16,s=(h+=this._a16+t._a16)>>>16,e=(s+=this._a32+t._a32)>>>16;return e+=this._a48+t._a48,this._a00=65535&i,this._a16=65535&h,this._a32=65535&s,this._a48=65535&e,this},e.prototype.subtract=function(t){return this.add(t.clone().negate())},e.prototype.multiply=function(t){var i=this._a00,h=this._a16,s=this._a32,e=this._a48,r=t._a00,o=t._a16,a=t._a32,m=i*r,n=m>>>16,_=(n+=i*o)>>>16;n&=65535,_+=(n+=h*r)>>>16;var l=(_+=i*a)>>>16;return _&=65535,l+=(_+=h*o)>>>16,_&=65535,l+=(_+=s*r)>>>16,l+=i*t._a48,l&=65535,l+=h*a,l&=65535,l+=s*o,l&=65535,l+=e*r,this._a00=65535&m,this._a16=65535&n,this._a32=65535&_,this._a48=65535&l,this},e.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new e(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new e(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var i=t.clone(),h=-1;!this.lt(i);)i.shiftLeft(1,!0),h++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;h>=0;h--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),h>=48?this._a48|=1<<h-48:h>=32?this._a32|=1<<h-32:h>=16?this._a16|=1<<h-16:this._a00|=1<<h);return this},e.prototype.negate=function(){var t=1+(65535&~this._a00);return this._a00=65535&t,t=(65535&~this._a16)+(t>>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},e.prototype.equals=e.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},e.prototype.greaterThan=e.prototype.gt=function(t){return this._a48>t._a48||!(this._a48<t._a48)&&(this._a32>t._a32||!(this._a32<t._a32)&&(this._a16>t._a16||!(this._a16<t._a16)&&this._a00>t._a00))},e.prototype.lessThan=e.prototype.lt=function(t){return this._a48<t._a48||!(this._a48>t._a48)&&(this._a32<t._a32||!(this._a32>t._a32)&&(this._a16<t._a16||!(this._a16>t._a16)&&this._a00<t._a00))},e.prototype.or=function(t){return this._a00|=t._a00,this._a16|=t._a16,this._a32|=t._a32,this._a48|=t._a48,this},e.prototype.and=function(t){return this._a00&=t._a00,this._a16&=t._a16,this._a32&=t._a32,this._a48&=t._a48,this},e.prototype.xor=function(t){return this._a00^=t._a00,this._a16^=t._a16,this._a32^=t._a32,this._a48^=t._a48,this},e.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},e.prototype.shiftRight=e.prototype.shiftr=function(t){return(t%=64)>=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},e.prototype.shiftLeft=e.prototype.shiftl=function(t,i){return(t%=64)>=48?(this._a48=this._a00<<t-48,this._a32=0,this._a16=0,this._a00=0):t>=32?(t-=32,this._a48=this._a16<<t|this._a00>>16-t,this._a32=this._a00<<t&65535,this._a16=0,this._a00=0):t>=16?(t-=16,this._a48=this._a32<<t|this._a16>>16-t,this._a32=65535&(this._a16<<t|this._a00>>16-t),this._a16=this._a00<<t&65535,this._a00=0):(this._a48=this._a48<<t|this._a32>>16-t,this._a32=65535&(this._a32<<t|this._a16>>16-t),this._a16=65535&(this._a16<<t|this._a00>>16-t),this._a00=this._a00<<t&65535),i||(this._a48&=65535),this},e.prototype.rotateLeft=e.prototype.rotl=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h<<t|s>>>32-t,r=s<<t|h>>>32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.rotateRight=e.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h>>>t|s<<32-t,r=s>>>t|h<<32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.clone=function(){return new e(this._a00,this._a16,this._a32,this._a48)},"undefined"!=typeof define&&define.amd?define([],(function(){return e})):void 0!==i&&i.exports?i.exports=e:t.UINT64=e}(t)})),r=h((function(t){t.UINT32=s(),t.UINT64=e()})),o=h((function(t,i){var h=r().UINT32;h.prototype.xxh_update=function(t,i){var h,r=e._low,o=e._high,a=t*r;h=a>>>16,h+=i*r,h&=65535,h+=t*o;var m=this._low+(65535&a),n=m>>>16,_=(n+=this._high+(65535&h))<<16|65535&m;n=(_=_<<13|_>>>19)>>>16,h=(a=(m=65535&_)*(r=s._low))>>>16,h+=n*r,h&=65535,h+=m*(o=s._high),this._low=65535&a,this._high=65535&h};var s=h("2654435761"),e=h("2246822519"),o=h("3266489917"),a=h("668265263"),m=h("374761393");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,h="string"==typeof t;h&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),h=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var s=0,e=t.length,r=s+e;if(0==e)return this;if(this.total_len+=e,0==this.memsize&&(this.memory=h?"":i?new Uint8Array(16):new Buffer(16)),this.memsize+e<16)return h?this.memory+=t:i?this.memory.set(t.subarray(0,e),this.memsize):t.copy(this.memory,this.memsize,0,e),this.memsize+=e,this;if(this.memsize>0){h?this.memory+=t.slice(0,16-this.memsize):i?this.memory.set(t.subarray(0,16-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,16-this.memsize);var o=0;h?(this.v1.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v2.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v3.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v4.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2))):(this.v1.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v2.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v3.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v4.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2])),s+=16-this.memsize,this.memsize=0,h&&(this.memory="")}if(s<=r-16){var a=r-16;do{h?(this.v1.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v2.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v3.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v4.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2))):(this.v1.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v2.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v3.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v4.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2])),s+=4}while(s<=a)}return s<r&&(h?this.memory+=t.slice(s):i?this.memory.set(t.subarray(s,r),this.memsize):t.copy(this.memory,this.memsize,s,r),this.memsize=r-s),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for((t=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(m)).add(d.fromNumber(this.total_len));_<=l-4;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2]),t.add(d.multiply(o)).rotl(17).multiply(a),_+=4;for(;_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0),t.add(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(15),t.xor(i).multiply(e),i=t.clone().shiftRight(13),t.xor(i).multiply(o),i=t.clone().shiftRight(16),t.xor(i),this.init(this.seed),t},i.exports=n})),a=h((function(t,i){var h=r().UINT64,s=h("11400714785074694791"),e=h("14029467366897019727"),o=h("1609587929392839161"),a=h("9650029242287828579"),m=h("2870177450012600261");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,r="string"==typeof t;r&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),r=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var o=0,a=t.length,m=o+a;if(0==a)return this;if(this.total_len+=a,0==this.memsize&&(this.memory=r?"":i?new Uint8Array(32):new Buffer(32)),this.memsize+a<32)return r?this.memory+=t:i?this.memory.set(t.subarray(0,a),this.memsize):t.copy(this.memory,this.memsize,0,a),this.memsize+=a,this;if(this.memsize>0){r?this.memory+=t.slice(0,32-this.memsize):i?this.memory.set(t.subarray(0,32-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,32-this.memsize);var n=0;if(r){var _=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6));this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)}else _=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s);o+=32-this.memsize,this.memsize=0,r&&(this.memory="")}if(o<=m-32){var l=m-32;do{r?(_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v1.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)):(_=h(t[o+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s)),o+=8}while(o<=l)}return o<m&&(r?this.memory+=t.slice(o):i?this.memory.set(t.subarray(o,m),this.memsize):t.copy(this.memory,this.memsize,o,m),this.memsize=m-o),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for(this.total_len>=32?((t=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),t.add(this.v3.clone().rotl(12)),t.add(this.v4.clone().rotl(18)),t.xor(this.v1.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v2.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v3.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v4.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a)):t=this.seed.clone().add(m),t.add(d.fromNumber(this.total_len));_<=l-8;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),r.charCodeAt(_+5)<<8|r.charCodeAt(_+4),r.charCodeAt(_+7)<<8|r.charCodeAt(_+6)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],r[_+5]<<8|r[_+4],r[_+7]<<8|r[_+6]),d.multiply(e).rotl(31).multiply(s),t.xor(d).rotl(27).multiply(s).add(a),_+=8;for(_+4<=l&&(n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),0,0):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],0,0),t.xor(d.multiply(s)).rotl(23).multiply(e).add(o),_+=4);_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0,0,0),t.xor(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(33),t.xor(i).multiply(e),i=t.clone().shiftRight(29),t.xor(i).multiply(o),i=t.clone().shiftRight(32),t.xor(i),this.init(this.seed),t},i.exports=n})),t("default",h((function(t,i){i.exports={h32:o(),h64:a()}}))())}}}));
|
|
1
|
+
System.register(["./index-legacy-Br-Lpsst.js"],(function(t,i){var h,s,e,r,o,a;return{setters:[function(t){h=t.t}],execute:function(){s=h((function(t,i){!function(t){function h(t,i){return this instanceof h?(this._low=0,this._high=0,this.remainder=null,void 0===i?e.call(this,t):"string"==typeof t?r.call(this,t,i):void s.call(this,t,i)):new h(t,i)}function s(t,i){return this._low=0|t,this._high=0|i,this}function e(t){return this._low=65535&t,this._high=t>>>16,this}function r(t,i){var h=parseInt(t,i||10);return this._low=65535&h,this._high=h>>>16,this}h(Math.pow(36,5)),h(Math.pow(16,7)),h(Math.pow(10,9)),h(Math.pow(2,30)),h(36),h(16),h(10),h(2),h.prototype.fromBits=s,h.prototype.fromNumber=e,h.prototype.fromString=r,h.prototype.toNumber=function(){return 65536*this._high+this._low},h.prototype.toString=function(t){return this.toNumber().toString(t||10)},h.prototype.add=function(t){var i=this._low+t._low,h=i>>>16;return h+=this._high+t._high,this._low=65535&i,this._high=65535&h,this},h.prototype.subtract=function(t){return this.add(t.clone().negate())},h.prototype.multiply=function(t){var i,h=this._high,s=this._low,e=t._high,r=t._low,o=s*r;return i=o>>>16,i+=h*r,i&=65535,i+=s*e,this._low=65535&o,this._high=65535&i,this},h.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new h(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new h(0),this._low=1,this._high=0,this;for(var i=t.clone(),s=-1;!this.lt(i);)i.shiftLeft(1,!0),s++;for(this.remainder=this.clone(),this._low=0,this._high=0;s>=0;s--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),s>=16?this._high|=1<<s-16:this._low|=1<<s);return this},h.prototype.negate=function(){var t=1+(65535&~this._low);return this._low=65535&t,this._high=~this._high+(t>>>16)&65535,this},h.prototype.equals=h.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},h.prototype.greaterThan=h.prototype.gt=function(t){return this._high>t._high||!(this._high<t._high)&&this._low>t._low},h.prototype.lessThan=h.prototype.lt=function(t){return this._high<t._high||!(this._high>t._high)&&this._low<t._low},h.prototype.or=function(t){return this._low|=t._low,this._high|=t._high,this},h.prototype.and=function(t){return this._low&=t._low,this._high&=t._high,this},h.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},h.prototype.xor=function(t){return this._low^=t._low,this._high^=t._high,this},h.prototype.shiftRight=h.prototype.shiftr=function(t){return t>16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},h.prototype.shiftLeft=h.prototype.shiftl=function(t,i){return t>16?(this._high=this._low<<t-16,this._low=0,i||(this._high&=65535)):16==t?(this._high=this._low,this._low=0):(this._high=this._high<<t|this._low>>16-t,this._low=this._low<<t&65535,i||(this._high&=65535)),this},h.prototype.rotateLeft=h.prototype.rotl=function(t){var i=this._high<<16|this._low;return i=i<<t|i>>>32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.rotateRight=h.prototype.rotr=function(t){var i=this._high<<16|this._low;return i=i>>>t|i<<32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.clone=function(){return new h(this._low,this._high)},"undefined"!=typeof define&&define.amd?define([],(function(){return h})):void 0!==i&&i.exports?i.exports=h:t.UINT32=h}(t)})),e=h((function(t,i){!function(t){var h={16:e(Math.pow(16,5)),10:e(Math.pow(10,5)),2:e(Math.pow(2,5))},s={16:e(16),10:e(10),2:e(2)};function e(t,i,h,s){return this instanceof e?(this.remainder=null,"string"==typeof t?a.call(this,t,i):void 0===i?o.call(this,t):void r.apply(this,arguments)):new e(t,i,h,s)}function r(t,i,h,s){return void 0===h?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&i,this._a48=i>>>16,this):(this._a00=0|t,this._a16=0|i,this._a32=0|h,this._a48=0|s,this)}function o(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function a(t,i){i=i||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var s=h[i]||new e(Math.pow(i,5)),r=0,o=t.length;r<o;r+=5){var a=Math.min(5,o-r),m=parseInt(t.slice(r,r+a),i);this.multiply(a<5?new e(Math.pow(i,a)):s).add(new e(m))}return this}e.prototype.fromBits=r,e.prototype.fromNumber=o,e.prototype.fromString=a,e.prototype.toNumber=function(){return 65536*this._a16+this._a00},e.prototype.toString=function(t){var i=s[t=t||10]||new e(t);if(!this.gt(i))return this.toNumber().toString(t);for(var h=this.clone(),r=new Array(64),o=63;o>=0&&(h.div(i),r[o]=h.remainder.toNumber().toString(t),h.gt(i));o--);return r[o-1]=h.toNumber().toString(t),r.join("")},e.prototype.add=function(t){var i=this._a00+t._a00,h=i>>>16,s=(h+=this._a16+t._a16)>>>16,e=(s+=this._a32+t._a32)>>>16;return e+=this._a48+t._a48,this._a00=65535&i,this._a16=65535&h,this._a32=65535&s,this._a48=65535&e,this},e.prototype.subtract=function(t){return this.add(t.clone().negate())},e.prototype.multiply=function(t){var i=this._a00,h=this._a16,s=this._a32,e=this._a48,r=t._a00,o=t._a16,a=t._a32,m=i*r,n=m>>>16,_=(n+=i*o)>>>16;n&=65535,_+=(n+=h*r)>>>16;var l=(_+=i*a)>>>16;return _&=65535,l+=(_+=h*o)>>>16,_&=65535,l+=(_+=s*r)>>>16,l+=i*t._a48,l&=65535,l+=h*a,l&=65535,l+=s*o,l&=65535,l+=e*r,this._a00=65535&m,this._a16=65535&n,this._a32=65535&_,this._a48=65535&l,this},e.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new e(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new e(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var i=t.clone(),h=-1;!this.lt(i);)i.shiftLeft(1,!0),h++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;h>=0;h--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),h>=48?this._a48|=1<<h-48:h>=32?this._a32|=1<<h-32:h>=16?this._a16|=1<<h-16:this._a00|=1<<h);return this},e.prototype.negate=function(){var t=1+(65535&~this._a00);return this._a00=65535&t,t=(65535&~this._a16)+(t>>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},e.prototype.equals=e.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},e.prototype.greaterThan=e.prototype.gt=function(t){return this._a48>t._a48||!(this._a48<t._a48)&&(this._a32>t._a32||!(this._a32<t._a32)&&(this._a16>t._a16||!(this._a16<t._a16)&&this._a00>t._a00))},e.prototype.lessThan=e.prototype.lt=function(t){return this._a48<t._a48||!(this._a48>t._a48)&&(this._a32<t._a32||!(this._a32>t._a32)&&(this._a16<t._a16||!(this._a16>t._a16)&&this._a00<t._a00))},e.prototype.or=function(t){return this._a00|=t._a00,this._a16|=t._a16,this._a32|=t._a32,this._a48|=t._a48,this},e.prototype.and=function(t){return this._a00&=t._a00,this._a16&=t._a16,this._a32&=t._a32,this._a48&=t._a48,this},e.prototype.xor=function(t){return this._a00^=t._a00,this._a16^=t._a16,this._a32^=t._a32,this._a48^=t._a48,this},e.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},e.prototype.shiftRight=e.prototype.shiftr=function(t){return(t%=64)>=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},e.prototype.shiftLeft=e.prototype.shiftl=function(t,i){return(t%=64)>=48?(this._a48=this._a00<<t-48,this._a32=0,this._a16=0,this._a00=0):t>=32?(t-=32,this._a48=this._a16<<t|this._a00>>16-t,this._a32=this._a00<<t&65535,this._a16=0,this._a00=0):t>=16?(t-=16,this._a48=this._a32<<t|this._a16>>16-t,this._a32=65535&(this._a16<<t|this._a00>>16-t),this._a16=this._a00<<t&65535,this._a00=0):(this._a48=this._a48<<t|this._a32>>16-t,this._a32=65535&(this._a32<<t|this._a16>>16-t),this._a16=65535&(this._a16<<t|this._a00>>16-t),this._a00=this._a00<<t&65535),i||(this._a48&=65535),this},e.prototype.rotateLeft=e.prototype.rotl=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h<<t|s>>>32-t,r=s<<t|h>>>32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.rotateRight=e.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h>>>t|s<<32-t,r=s>>>t|h<<32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.clone=function(){return new e(this._a00,this._a16,this._a32,this._a48)},"undefined"!=typeof define&&define.amd?define([],(function(){return e})):void 0!==i&&i.exports?i.exports=e:t.UINT64=e}(t)})),r=h((function(t){t.UINT32=s(),t.UINT64=e()})),o=h((function(t,i){var h=r().UINT32;h.prototype.xxh_update=function(t,i){var h,r=e._low,o=e._high,a=t*r;h=a>>>16,h+=i*r,h&=65535,h+=t*o;var m=this._low+(65535&a),n=m>>>16,_=(n+=this._high+(65535&h))<<16|65535&m;n=(_=_<<13|_>>>19)>>>16,h=(a=(m=65535&_)*(r=s._low))>>>16,h+=n*r,h&=65535,h+=m*(o=s._high),this._low=65535&a,this._high=65535&h};var s=h("2654435761"),e=h("2246822519"),o=h("3266489917"),a=h("668265263"),m=h("374761393");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,h="string"==typeof t;h&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),h=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var s=0,e=t.length,r=s+e;if(0==e)return this;if(this.total_len+=e,0==this.memsize&&(this.memory=h?"":i?new Uint8Array(16):new Buffer(16)),this.memsize+e<16)return h?this.memory+=t:i?this.memory.set(t.subarray(0,e),this.memsize):t.copy(this.memory,this.memsize,0,e),this.memsize+=e,this;if(this.memsize>0){h?this.memory+=t.slice(0,16-this.memsize):i?this.memory.set(t.subarray(0,16-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,16-this.memsize);var o=0;h?(this.v1.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v2.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v3.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v4.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2))):(this.v1.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v2.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v3.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v4.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2])),s+=16-this.memsize,this.memsize=0,h&&(this.memory="")}if(s<=r-16){var a=r-16;do{h?(this.v1.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v2.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v3.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v4.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2))):(this.v1.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v2.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v3.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v4.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2])),s+=4}while(s<=a)}return s<r&&(h?this.memory+=t.slice(s):i?this.memory.set(t.subarray(s,r),this.memsize):t.copy(this.memory,this.memsize,s,r),this.memsize=r-s),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for((t=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(m)).add(d.fromNumber(this.total_len));_<=l-4;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2]),t.add(d.multiply(o)).rotl(17).multiply(a),_+=4;for(;_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0),t.add(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(15),t.xor(i).multiply(e),i=t.clone().shiftRight(13),t.xor(i).multiply(o),i=t.clone().shiftRight(16),t.xor(i),this.init(this.seed),t},i.exports=n})),a=h((function(t,i){var h=r().UINT64,s=h("11400714785074694791"),e=h("14029467366897019727"),o=h("1609587929392839161"),a=h("9650029242287828579"),m=h("2870177450012600261");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,r="string"==typeof t;r&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),r=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var o=0,a=t.length,m=o+a;if(0==a)return this;if(this.total_len+=a,0==this.memsize&&(this.memory=r?"":i?new Uint8Array(32):new Buffer(32)),this.memsize+a<32)return r?this.memory+=t:i?this.memory.set(t.subarray(0,a),this.memsize):t.copy(this.memory,this.memsize,0,a),this.memsize+=a,this;if(this.memsize>0){r?this.memory+=t.slice(0,32-this.memsize):i?this.memory.set(t.subarray(0,32-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,32-this.memsize);var n=0;if(r){var _=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6));this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)}else _=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s);o+=32-this.memsize,this.memsize=0,r&&(this.memory="")}if(o<=m-32){var l=m-32;do{r?(_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v1.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)):(_=h(t[o+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s)),o+=8}while(o<=l)}return o<m&&(r?this.memory+=t.slice(o):i?this.memory.set(t.subarray(o,m),this.memsize):t.copy(this.memory,this.memsize,o,m),this.memsize=m-o),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for(this.total_len>=32?((t=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),t.add(this.v3.clone().rotl(12)),t.add(this.v4.clone().rotl(18)),t.xor(this.v1.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v2.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v3.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v4.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a)):t=this.seed.clone().add(m),t.add(d.fromNumber(this.total_len));_<=l-8;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),r.charCodeAt(_+5)<<8|r.charCodeAt(_+4),r.charCodeAt(_+7)<<8|r.charCodeAt(_+6)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],r[_+5]<<8|r[_+4],r[_+7]<<8|r[_+6]),d.multiply(e).rotl(31).multiply(s),t.xor(d).rotl(27).multiply(s).add(a),_+=8;for(_+4<=l&&(n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),0,0):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],0,0),t.xor(d.multiply(s)).rotl(23).multiply(e).add(o),_+=4);_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0,0,0),t.xor(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(33),t.xor(i).multiply(e),i=t.clone().shiftRight(29),t.xor(i).multiply(o),i=t.clone().shiftRight(32),t.xor(i),this.init(this.seed),t},i.exports=n})),t("default",h((function(t,i){i.exports={h32:o(),h64:a()}}))())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./index-legacy-CCOgiwQJ.js"],(function(h,t){var i;return{setters:[function(h){i=h.t}],execute:function(){h("default",i((function(h,t){!function(){var h="input is invalid type",i="object"==typeof window,s=i?window:{};s.JS_SHA512_NO_WINDOW&&(i=!1);var e=!i&&"object"==typeof self;!s.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?s=global:e&&(s=self);var r=!s.JS_SHA512_NO_COMMON_JS&&"object"==typeof t&&t.exports,n="function"==typeof define&&define.amd,o=!s.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),l=[-2147483648,8388608,32768,128],f=[24,16,8,0],c=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],u=["hex","array","digest","arrayBuffer"],y=[];!s.JS_SHA512_NO_NODE_JS&&Array.isArray||(Array.isArray=function(h){return"[object Array]"===Object.prototype.toString.call(h)}),!o||!s.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(h){return"object"==typeof h&&h.buffer&&h.buffer.constructor===ArrayBuffer});var p=function(h,t){return function(i){return new A(t,!0).update(i)[h]()}},d=function(h){var t=p("hex",h);t.create=function(){return new A(h)},t.update=function(h){return t.create().update(h)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=p(s,h)}return t},b=function(h,t){return function(i,s){return new v(i,t,!0).update(s)[h]()}},w=function(h){var t=b("hex",h);t.create=function(t){return new v(t,h)},t.update=function(h,i){return t.create(h).update(i)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=b(s,h)}return t};function A(h,t){t?(y[0]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=y[16]=y[17]=y[18]=y[19]=y[20]=y[21]=y[22]=y[23]=y[24]=y[25]=y[26]=y[27]=y[28]=y[29]=y[30]=y[31]=y[32]=0,this.blocks=y):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==h?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==h?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==h?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=h,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function v(t,i,s){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);e=!0}var n=t.length;if(!e){for(var a,l=[],f=(n=t.length,0),c=0;c<n;++c)(a=t.charCodeAt(c))<128?l[f++]=a:a<2048?(l[f++]=192|a>>6,l[f++]=128|63&a):a<55296||a>=57344?(l[f++]=224|a>>12,l[f++]=128|a>>6&63,l[f++]=128|63&a):(a=65536+((1023&a)<<10|1023&t.charCodeAt(++c)),l[f++]=240|a>>18,l[f++]=128|a>>12&63,l[f++]=128|a>>6&63,l[f++]=128|63&a);t=l}t.length>128&&(t=new A(i,!0).update(t).array());var u=[],y=[];for(c=0;c<128;++c){var p=t[c]||0;u[c]=92^p,y[c]=54^p}A.call(this,i,s),this.update(y),this.oKeyPad=u,this.inner=!0,this.sharedMemory=s}A.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var i,s=typeof t;if("string"!==s){if("object"!==s)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);i=!0}for(var e,r,n=0,a=t.length,l=this.blocks;n<a;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=l[16]=l[17]=l[18]=l[19]=l[20]=l[21]=l[22]=l[23]=l[24]=l[25]=l[26]=l[27]=l[28]=l[29]=l[30]=l[31]=l[32]=0),i)for(r=this.start;n<a&&r<128;++n)l[r>>2]|=t[n]<<f[3&r++];else for(r=this.start;n<a&&r<128;++n)(e=t.charCodeAt(n))<128?l[r>>2]|=e<<f[3&r++]:e<2048?(l[r>>2]|=(192|e>>6)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):e<55296||e>=57344?(l[r>>2]|=(224|e>>12)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++n)),l[r>>2]|=(240|e>>18)<<f[3&r++],l[r>>2]|=(128|e>>12&63)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=128?(this.block=l[32],this.start=r-128,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var h=this.blocks,t=this.lastByteIndex;h[32]=this.block,h[t>>2]|=l[3&t],this.block=h[32],t>=112&&(this.hashed||this.hash(),h[0]=this.block,h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=h[16]=h[17]=h[18]=h[19]=h[20]=h[21]=h[22]=h[23]=h[24]=h[25]=h[26]=h[27]=h[28]=h[29]=h[30]=h[31]=h[32]=0),h[30]=this.hBytes<<3|this.bytes>>>29,h[31]=this.bytes<<3,this.hash()}},A.prototype.hash=function(){var h,t,i,s,e,r,n,o,a,l,f,u,y,p,d,b,w,A,v,_,B,U,g,S,k,z=this.h0h,x=this.h0l,E=this.h1h,O=this.h1l,j=this.h2h,N=this.h2l,J=this.h3h,m=this.h3l,H=this.h4h,I=this.h4l,R=this.h5h,V=this.h5l,C=this.h6h,K=this.h6l,P=this.h7h,D=this.h7l,F=this.blocks;for(h=32;h<160;h+=2)t=((_=F[h-30])>>>1|(B=F[h-29])<<31)^(_>>>8|B<<24)^_>>>7,i=(B>>>1|_<<31)^(B>>>8|_<<24)^(B>>>7|_<<25),s=((_=F[h-4])>>>19|(B=F[h-3])<<13)^(B>>>29|_<<3)^_>>>6,e=(B>>>19|_<<13)^(_>>>29|B<<3)^(B>>>6|_<<26),_=F[h-32],B=F[h-31],a=((U=F[h-14])>>>16)+(_>>>16)+(t>>>16)+(s>>>16)+((o=(65535&U)+(65535&_)+(65535&t)+(65535&s)+((n=((g=F[h-13])>>>16)+(B>>>16)+(i>>>16)+(e>>>16)+((r=(65535&g)+(65535&B)+(65535&i)+(65535&e))>>>16))>>>16))>>>16),F[h]=a<<16|65535&o,F[h+1]=n<<16|65535&r;var M=z,T=x,W=E,Y=O,q=j,G=N,L=J,Q=m,X=H,Z=I,$=R,hh=V,th=C,ih=K,sh=P,eh=D;for(b=W&q,w=Y&G,h=0;h<160;h+=8)t=(M>>>28|T<<4)^(T>>>2|M<<30)^(T>>>7|M<<25),i=(T>>>28|M<<4)^(M>>>2|T<<30)^(M>>>7|T<<25),s=(X>>>14|Z<<18)^(X>>>18|Z<<14)^(Z>>>9|X<<23),e=(Z>>>14|X<<18)^(Z>>>18|X<<14)^(X>>>9|Z<<23),A=(l=M&W)^M&q^b,v=(f=T&Y)^T&G^w,S=X&$^~X&th,k=Z&hh^~Z&ih,_=F[h],B=F[h+1],_=(a=((U=c[h])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(sh>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&sh)+((n=((g=c[h+1])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(eh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&eh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,sh=(a=(L>>>16)+(_>>>16)+((o=(65535&L)+(65535&_)+((n=(Q>>>16)+(B>>>16)+((r=(65535&Q)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,eh=n<<16|65535&r,t=((L=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Q=n<<16|65535&r)<<4)^(Q>>>2|L<<30)^(Q>>>7|L<<25),i=(Q>>>28|L<<4)^(L>>>2|Q<<30)^(L>>>7|Q<<25),s=(sh>>>14|eh<<18)^(sh>>>18|eh<<14)^(eh>>>9|sh<<23),e=(eh>>>14|sh<<18)^(eh>>>18|sh<<14)^(sh>>>9|eh<<23),A=(u=L&M)^L&W^l,v=(y=Q&T)^Q&Y^f,S=sh&X^~sh&$,k=eh&Z^~eh&hh,_=F[h+2],B=F[h+3],_=(a=((U=c[h+2])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(th>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&th)+((n=((g=c[h+3])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(ih>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&ih))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,th=(a=(q>>>16)+(_>>>16)+((o=(65535&q)+(65535&_)+((n=(G>>>16)+(B>>>16)+((r=(65535&G)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,ih=n<<16|65535&r,t=((q=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(G=n<<16|65535&r)<<4)^(G>>>2|q<<30)^(G>>>7|q<<25),i=(G>>>28|q<<4)^(q>>>2|G<<30)^(q>>>7|G<<25),s=(th>>>14|ih<<18)^(th>>>18|ih<<14)^(ih>>>9|th<<23),e=(ih>>>14|th<<18)^(ih>>>18|th<<14)^(th>>>9|ih<<23),A=(p=q&L)^q&M^u,v=(d=G&Q)^G&T^y,S=th&sh^~th&X,k=ih&eh^~ih&Z,_=F[h+4],B=F[h+5],_=(a=((U=c[h+4])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+($>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&$)+((n=((g=c[h+5])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(hh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&hh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,$=(a=(W>>>16)+(_>>>16)+((o=(65535&W)+(65535&_)+((n=(Y>>>16)+(B>>>16)+((r=(65535&Y)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,hh=n<<16|65535&r,t=((W=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Y=n<<16|65535&r)<<4)^(Y>>>2|W<<30)^(Y>>>7|W<<25),i=(Y>>>28|W<<4)^(W>>>2|Y<<30)^(W>>>7|Y<<25),s=($>>>14|hh<<18)^($>>>18|hh<<14)^(hh>>>9|$<<23),e=(hh>>>14|$<<18)^(hh>>>18|$<<14)^($>>>9|hh<<23),A=(b=W&q)^W&L^p,v=(w=Y&G)^Y&Q^d,S=$&th^~$&sh,k=hh&ih^~hh&eh,_=F[h+6],B=F[h+7],_=(a=((U=c[h+6])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(X>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&X)+((n=((g=c[h+7])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(Z>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&Z))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,X=(a=(M>>>16)+(_>>>16)+((o=(65535&M)+(65535&_)+((n=(T>>>16)+(B>>>16)+((r=(65535&T)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,Z=n<<16|65535&r,M=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,T=n<<16|65535&r;a=(z>>>16)+(M>>>16)+((o=(65535&z)+(65535&M)+((n=(x>>>16)+(T>>>16)+((r=(65535&x)+(65535&T))>>>16))>>>16))>>>16),this.h0h=a<<16|65535&o,this.h0l=n<<16|65535&r,a=(E>>>16)+(W>>>16)+((o=(65535&E)+(65535&W)+((n=(O>>>16)+(Y>>>16)+((r=(65535&O)+(65535&Y))>>>16))>>>16))>>>16),this.h1h=a<<16|65535&o,this.h1l=n<<16|65535&r,a=(j>>>16)+(q>>>16)+((o=(65535&j)+(65535&q)+((n=(N>>>16)+(G>>>16)+((r=(65535&N)+(65535&G))>>>16))>>>16))>>>16),this.h2h=a<<16|65535&o,this.h2l=n<<16|65535&r,a=(J>>>16)+(L>>>16)+((o=(65535&J)+(65535&L)+((n=(m>>>16)+(Q>>>16)+((r=(65535&m)+(65535&Q))>>>16))>>>16))>>>16),this.h3h=a<<16|65535&o,this.h3l=n<<16|65535&r,a=(H>>>16)+(X>>>16)+((o=(65535&H)+(65535&X)+((n=(I>>>16)+(Z>>>16)+((r=(65535&I)+(65535&Z))>>>16))>>>16))>>>16),this.h4h=a<<16|65535&o,this.h4l=n<<16|65535&r,a=(R>>>16)+($>>>16)+((o=(65535&R)+(65535&$)+((n=(V>>>16)+(hh>>>16)+((r=(65535&V)+(65535&hh))>>>16))>>>16))>>>16),this.h5h=a<<16|65535&o,this.h5l=n<<16|65535&r,a=(C>>>16)+(th>>>16)+((o=(65535&C)+(65535&th)+((n=(K>>>16)+(ih>>>16)+((r=(65535&K)+(65535&ih))>>>16))>>>16))>>>16),this.h6h=a<<16|65535&o,this.h6l=n<<16|65535&r,a=(P>>>16)+(sh>>>16)+((o=(65535&P)+(65535&sh)+((n=(D>>>16)+(eh>>>16)+((r=(65535&D)+(65535&eh))>>>16))>>>16))>>>16),this.h7h=a<<16|65535&o,this.h7l=n<<16|65535&r},A.prototype.hex=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,l=this.h4h,f=this.h4l,c=this.h5h,u=this.h5l,y=this.h6h,p=this.h6l,d=this.h7h,b=this.h7l,w=this.bits,A=a[h>>28&15]+a[h>>24&15]+a[h>>20&15]+a[h>>16&15]+a[h>>12&15]+a[h>>8&15]+a[h>>4&15]+a[15&h]+a[t>>28&15]+a[t>>24&15]+a[t>>20&15]+a[t>>16&15]+a[t>>12&15]+a[t>>8&15]+a[t>>4&15]+a[15&t]+a[i>>28&15]+a[i>>24&15]+a[i>>20&15]+a[i>>16&15]+a[i>>12&15]+a[i>>8&15]+a[i>>4&15]+a[15&i]+a[s>>28&15]+a[s>>24&15]+a[s>>20&15]+a[s>>16&15]+a[s>>12&15]+a[s>>8&15]+a[s>>4&15]+a[15&s]+a[e>>28&15]+a[e>>24&15]+a[e>>20&15]+a[e>>16&15]+a[e>>12&15]+a[e>>8&15]+a[e>>4&15]+a[15&e]+a[r>>28&15]+a[r>>24&15]+a[r>>20&15]+a[r>>16&15]+a[r>>12&15]+a[r>>8&15]+a[r>>4&15]+a[15&r]+a[n>>28&15]+a[n>>24&15]+a[n>>20&15]+a[n>>16&15]+a[n>>12&15]+a[n>>8&15]+a[n>>4&15]+a[15&n];return w>=256&&(A+=a[o>>28&15]+a[o>>24&15]+a[o>>20&15]+a[o>>16&15]+a[o>>12&15]+a[o>>8&15]+a[o>>4&15]+a[15&o]),w>=384&&(A+=a[l>>28&15]+a[l>>24&15]+a[l>>20&15]+a[l>>16&15]+a[l>>12&15]+a[l>>8&15]+a[l>>4&15]+a[15&l]+a[f>>28&15]+a[f>>24&15]+a[f>>20&15]+a[f>>16&15]+a[f>>12&15]+a[f>>8&15]+a[f>>4&15]+a[15&f]+a[c>>28&15]+a[c>>24&15]+a[c>>20&15]+a[c>>16&15]+a[c>>12&15]+a[c>>8&15]+a[c>>4&15]+a[15&c]+a[u>>28&15]+a[u>>24&15]+a[u>>20&15]+a[u>>16&15]+a[u>>12&15]+a[u>>8&15]+a[u>>4&15]+a[15&u]),512==w&&(A+=a[y>>28&15]+a[y>>24&15]+a[y>>20&15]+a[y>>16&15]+a[y>>12&15]+a[y>>8&15]+a[y>>4&15]+a[15&y]+a[p>>28&15]+a[p>>24&15]+a[p>>20&15]+a[p>>16&15]+a[p>>12&15]+a[p>>8&15]+a[p>>4&15]+a[15&p]+a[d>>28&15]+a[d>>24&15]+a[d>>20&15]+a[d>>16&15]+a[d>>12&15]+a[d>>8&15]+a[d>>4&15]+a[15&d]+a[b>>28&15]+a[b>>24&15]+a[b>>20&15]+a[b>>16&15]+a[b>>12&15]+a[b>>8&15]+a[b>>4&15]+a[15&b]),A},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,a=this.h4h,l=this.h4l,f=this.h5h,c=this.h5l,u=this.h6h,y=this.h6l,p=this.h7h,d=this.h7l,b=this.bits,w=[h>>24&255,h>>16&255,h>>8&255,255&h,t>>24&255,t>>16&255,t>>8&255,255&t,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n];return b>=256&&w.push(o>>24&255,o>>16&255,o>>8&255,255&o),b>=384&&w.push(a>>24&255,a>>16&255,a>>8&255,255&a,l>>24&255,l>>16&255,l>>8&255,255&l,f>>24&255,f>>16&255,f>>8&255,255&f,c>>24&255,c>>16&255,c>>8&255,255&c),512==b&&w.push(u>>24&255,u>>16&255,u>>8&255,255&u,y>>24&255,y>>16&255,y>>8&255,255&y,p>>24&255,p>>16&255,p>>8&255,255&p,d>>24&255,d>>16&255,d>>8&255,255&d),w},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var h=this.bits,t=new ArrayBuffer(h/8),i=new DataView(t);return i.setUint32(0,this.h0h),i.setUint32(4,this.h0l),i.setUint32(8,this.h1h),i.setUint32(12,this.h1l),i.setUint32(16,this.h2h),i.setUint32(20,this.h2l),i.setUint32(24,this.h3h),h>=256&&i.setUint32(28,this.h3l),h>=384&&(i.setUint32(32,this.h4h),i.setUint32(36,this.h4l),i.setUint32(40,this.h5h),i.setUint32(44,this.h5l)),512==h&&(i.setUint32(48,this.h6h),i.setUint32(52,this.h6l),i.setUint32(56,this.h7h),i.setUint32(60,this.h7l)),t},A.prototype.clone=function(){var h=new A(this.bits,!1);return this.copyTo(h),h},A.prototype.copyTo=function(h){var t=0,i=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t<i.length;++t)h[i[t]]=this[i[t]];for(t=0;t<this.blocks.length;++t)h.blocks[t]=this.blocks[t]},v.prototype=new A,v.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var h=this.array();A.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(h),A.prototype.finalize.call(this)}},v.prototype.clone=function(){var h=new v([],this.bits,!1);this.copyTo(h),h.inner=this.inner;for(var t=0;t<this.oKeyPad.length;++t)h.oKeyPad[t]=this.oKeyPad[t];return h};var _=d(512);_.sha512=_,_.sha384=d(384),_.sha512_256=d(256),_.sha512_224=d(224),_.sha512.hmac=w(512),_.sha384.hmac=w(384),_.sha512_256.hmac=w(256),_.sha512_224.hmac=w(224),r?t.exports=_:(s.sha512=_.sha512,s.sha384=_.sha384,s.sha512_256=_.sha512_256,s.sha512_224=_.sha512_224,n&&define((function(){return _})))}()}))())}}}));
|
|
1
|
+
System.register(["./index-legacy-Br-Lpsst.js"],(function(h,t){var i;return{setters:[function(h){i=h.t}],execute:function(){h("default",i((function(h,t){!function(){var h="input is invalid type",i="object"==typeof window,s=i?window:{};s.JS_SHA512_NO_WINDOW&&(i=!1);var e=!i&&"object"==typeof self;!s.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?s=global:e&&(s=self);var r=!s.JS_SHA512_NO_COMMON_JS&&"object"==typeof t&&t.exports,n="function"==typeof define&&define.amd,o=!s.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),l=[-2147483648,8388608,32768,128],f=[24,16,8,0],c=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],u=["hex","array","digest","arrayBuffer"],y=[];!s.JS_SHA512_NO_NODE_JS&&Array.isArray||(Array.isArray=function(h){return"[object Array]"===Object.prototype.toString.call(h)}),!o||!s.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(h){return"object"==typeof h&&h.buffer&&h.buffer.constructor===ArrayBuffer});var p=function(h,t){return function(i){return new A(t,!0).update(i)[h]()}},d=function(h){var t=p("hex",h);t.create=function(){return new A(h)},t.update=function(h){return t.create().update(h)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=p(s,h)}return t},b=function(h,t){return function(i,s){return new v(i,t,!0).update(s)[h]()}},w=function(h){var t=b("hex",h);t.create=function(t){return new v(t,h)},t.update=function(h,i){return t.create(h).update(i)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=b(s,h)}return t};function A(h,t){t?(y[0]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=y[16]=y[17]=y[18]=y[19]=y[20]=y[21]=y[22]=y[23]=y[24]=y[25]=y[26]=y[27]=y[28]=y[29]=y[30]=y[31]=y[32]=0,this.blocks=y):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==h?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==h?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==h?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=h,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function v(t,i,s){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);e=!0}var n=t.length;if(!e){for(var a,l=[],f=(n=t.length,0),c=0;c<n;++c)(a=t.charCodeAt(c))<128?l[f++]=a:a<2048?(l[f++]=192|a>>6,l[f++]=128|63&a):a<55296||a>=57344?(l[f++]=224|a>>12,l[f++]=128|a>>6&63,l[f++]=128|63&a):(a=65536+((1023&a)<<10|1023&t.charCodeAt(++c)),l[f++]=240|a>>18,l[f++]=128|a>>12&63,l[f++]=128|a>>6&63,l[f++]=128|63&a);t=l}t.length>128&&(t=new A(i,!0).update(t).array());var u=[],y=[];for(c=0;c<128;++c){var p=t[c]||0;u[c]=92^p,y[c]=54^p}A.call(this,i,s),this.update(y),this.oKeyPad=u,this.inner=!0,this.sharedMemory=s}A.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var i,s=typeof t;if("string"!==s){if("object"!==s)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);i=!0}for(var e,r,n=0,a=t.length,l=this.blocks;n<a;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=l[16]=l[17]=l[18]=l[19]=l[20]=l[21]=l[22]=l[23]=l[24]=l[25]=l[26]=l[27]=l[28]=l[29]=l[30]=l[31]=l[32]=0),i)for(r=this.start;n<a&&r<128;++n)l[r>>2]|=t[n]<<f[3&r++];else for(r=this.start;n<a&&r<128;++n)(e=t.charCodeAt(n))<128?l[r>>2]|=e<<f[3&r++]:e<2048?(l[r>>2]|=(192|e>>6)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):e<55296||e>=57344?(l[r>>2]|=(224|e>>12)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++n)),l[r>>2]|=(240|e>>18)<<f[3&r++],l[r>>2]|=(128|e>>12&63)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=128?(this.block=l[32],this.start=r-128,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var h=this.blocks,t=this.lastByteIndex;h[32]=this.block,h[t>>2]|=l[3&t],this.block=h[32],t>=112&&(this.hashed||this.hash(),h[0]=this.block,h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=h[16]=h[17]=h[18]=h[19]=h[20]=h[21]=h[22]=h[23]=h[24]=h[25]=h[26]=h[27]=h[28]=h[29]=h[30]=h[31]=h[32]=0),h[30]=this.hBytes<<3|this.bytes>>>29,h[31]=this.bytes<<3,this.hash()}},A.prototype.hash=function(){var h,t,i,s,e,r,n,o,a,l,f,u,y,p,d,b,w,A,v,_,B,U,g,S,k,z=this.h0h,x=this.h0l,E=this.h1h,O=this.h1l,j=this.h2h,N=this.h2l,J=this.h3h,m=this.h3l,H=this.h4h,I=this.h4l,R=this.h5h,V=this.h5l,C=this.h6h,K=this.h6l,P=this.h7h,D=this.h7l,F=this.blocks;for(h=32;h<160;h+=2)t=((_=F[h-30])>>>1|(B=F[h-29])<<31)^(_>>>8|B<<24)^_>>>7,i=(B>>>1|_<<31)^(B>>>8|_<<24)^(B>>>7|_<<25),s=((_=F[h-4])>>>19|(B=F[h-3])<<13)^(B>>>29|_<<3)^_>>>6,e=(B>>>19|_<<13)^(_>>>29|B<<3)^(B>>>6|_<<26),_=F[h-32],B=F[h-31],a=((U=F[h-14])>>>16)+(_>>>16)+(t>>>16)+(s>>>16)+((o=(65535&U)+(65535&_)+(65535&t)+(65535&s)+((n=((g=F[h-13])>>>16)+(B>>>16)+(i>>>16)+(e>>>16)+((r=(65535&g)+(65535&B)+(65535&i)+(65535&e))>>>16))>>>16))>>>16),F[h]=a<<16|65535&o,F[h+1]=n<<16|65535&r;var M=z,T=x,W=E,Y=O,q=j,G=N,L=J,Q=m,X=H,Z=I,$=R,hh=V,th=C,ih=K,sh=P,eh=D;for(b=W&q,w=Y&G,h=0;h<160;h+=8)t=(M>>>28|T<<4)^(T>>>2|M<<30)^(T>>>7|M<<25),i=(T>>>28|M<<4)^(M>>>2|T<<30)^(M>>>7|T<<25),s=(X>>>14|Z<<18)^(X>>>18|Z<<14)^(Z>>>9|X<<23),e=(Z>>>14|X<<18)^(Z>>>18|X<<14)^(X>>>9|Z<<23),A=(l=M&W)^M&q^b,v=(f=T&Y)^T&G^w,S=X&$^~X&th,k=Z&hh^~Z&ih,_=F[h],B=F[h+1],_=(a=((U=c[h])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(sh>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&sh)+((n=((g=c[h+1])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(eh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&eh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,sh=(a=(L>>>16)+(_>>>16)+((o=(65535&L)+(65535&_)+((n=(Q>>>16)+(B>>>16)+((r=(65535&Q)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,eh=n<<16|65535&r,t=((L=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Q=n<<16|65535&r)<<4)^(Q>>>2|L<<30)^(Q>>>7|L<<25),i=(Q>>>28|L<<4)^(L>>>2|Q<<30)^(L>>>7|Q<<25),s=(sh>>>14|eh<<18)^(sh>>>18|eh<<14)^(eh>>>9|sh<<23),e=(eh>>>14|sh<<18)^(eh>>>18|sh<<14)^(sh>>>9|eh<<23),A=(u=L&M)^L&W^l,v=(y=Q&T)^Q&Y^f,S=sh&X^~sh&$,k=eh&Z^~eh&hh,_=F[h+2],B=F[h+3],_=(a=((U=c[h+2])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(th>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&th)+((n=((g=c[h+3])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(ih>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&ih))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,th=(a=(q>>>16)+(_>>>16)+((o=(65535&q)+(65535&_)+((n=(G>>>16)+(B>>>16)+((r=(65535&G)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,ih=n<<16|65535&r,t=((q=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(G=n<<16|65535&r)<<4)^(G>>>2|q<<30)^(G>>>7|q<<25),i=(G>>>28|q<<4)^(q>>>2|G<<30)^(q>>>7|G<<25),s=(th>>>14|ih<<18)^(th>>>18|ih<<14)^(ih>>>9|th<<23),e=(ih>>>14|th<<18)^(ih>>>18|th<<14)^(th>>>9|ih<<23),A=(p=q&L)^q&M^u,v=(d=G&Q)^G&T^y,S=th&sh^~th&X,k=ih&eh^~ih&Z,_=F[h+4],B=F[h+5],_=(a=((U=c[h+4])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+($>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&$)+((n=((g=c[h+5])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(hh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&hh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,$=(a=(W>>>16)+(_>>>16)+((o=(65535&W)+(65535&_)+((n=(Y>>>16)+(B>>>16)+((r=(65535&Y)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,hh=n<<16|65535&r,t=((W=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Y=n<<16|65535&r)<<4)^(Y>>>2|W<<30)^(Y>>>7|W<<25),i=(Y>>>28|W<<4)^(W>>>2|Y<<30)^(W>>>7|Y<<25),s=($>>>14|hh<<18)^($>>>18|hh<<14)^(hh>>>9|$<<23),e=(hh>>>14|$<<18)^(hh>>>18|$<<14)^($>>>9|hh<<23),A=(b=W&q)^W&L^p,v=(w=Y&G)^Y&Q^d,S=$&th^~$&sh,k=hh&ih^~hh&eh,_=F[h+6],B=F[h+7],_=(a=((U=c[h+6])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(X>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&X)+((n=((g=c[h+7])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(Z>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&Z))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,X=(a=(M>>>16)+(_>>>16)+((o=(65535&M)+(65535&_)+((n=(T>>>16)+(B>>>16)+((r=(65535&T)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,Z=n<<16|65535&r,M=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,T=n<<16|65535&r;a=(z>>>16)+(M>>>16)+((o=(65535&z)+(65535&M)+((n=(x>>>16)+(T>>>16)+((r=(65535&x)+(65535&T))>>>16))>>>16))>>>16),this.h0h=a<<16|65535&o,this.h0l=n<<16|65535&r,a=(E>>>16)+(W>>>16)+((o=(65535&E)+(65535&W)+((n=(O>>>16)+(Y>>>16)+((r=(65535&O)+(65535&Y))>>>16))>>>16))>>>16),this.h1h=a<<16|65535&o,this.h1l=n<<16|65535&r,a=(j>>>16)+(q>>>16)+((o=(65535&j)+(65535&q)+((n=(N>>>16)+(G>>>16)+((r=(65535&N)+(65535&G))>>>16))>>>16))>>>16),this.h2h=a<<16|65535&o,this.h2l=n<<16|65535&r,a=(J>>>16)+(L>>>16)+((o=(65535&J)+(65535&L)+((n=(m>>>16)+(Q>>>16)+((r=(65535&m)+(65535&Q))>>>16))>>>16))>>>16),this.h3h=a<<16|65535&o,this.h3l=n<<16|65535&r,a=(H>>>16)+(X>>>16)+((o=(65535&H)+(65535&X)+((n=(I>>>16)+(Z>>>16)+((r=(65535&I)+(65535&Z))>>>16))>>>16))>>>16),this.h4h=a<<16|65535&o,this.h4l=n<<16|65535&r,a=(R>>>16)+($>>>16)+((o=(65535&R)+(65535&$)+((n=(V>>>16)+(hh>>>16)+((r=(65535&V)+(65535&hh))>>>16))>>>16))>>>16),this.h5h=a<<16|65535&o,this.h5l=n<<16|65535&r,a=(C>>>16)+(th>>>16)+((o=(65535&C)+(65535&th)+((n=(K>>>16)+(ih>>>16)+((r=(65535&K)+(65535&ih))>>>16))>>>16))>>>16),this.h6h=a<<16|65535&o,this.h6l=n<<16|65535&r,a=(P>>>16)+(sh>>>16)+((o=(65535&P)+(65535&sh)+((n=(D>>>16)+(eh>>>16)+((r=(65535&D)+(65535&eh))>>>16))>>>16))>>>16),this.h7h=a<<16|65535&o,this.h7l=n<<16|65535&r},A.prototype.hex=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,l=this.h4h,f=this.h4l,c=this.h5h,u=this.h5l,y=this.h6h,p=this.h6l,d=this.h7h,b=this.h7l,w=this.bits,A=a[h>>28&15]+a[h>>24&15]+a[h>>20&15]+a[h>>16&15]+a[h>>12&15]+a[h>>8&15]+a[h>>4&15]+a[15&h]+a[t>>28&15]+a[t>>24&15]+a[t>>20&15]+a[t>>16&15]+a[t>>12&15]+a[t>>8&15]+a[t>>4&15]+a[15&t]+a[i>>28&15]+a[i>>24&15]+a[i>>20&15]+a[i>>16&15]+a[i>>12&15]+a[i>>8&15]+a[i>>4&15]+a[15&i]+a[s>>28&15]+a[s>>24&15]+a[s>>20&15]+a[s>>16&15]+a[s>>12&15]+a[s>>8&15]+a[s>>4&15]+a[15&s]+a[e>>28&15]+a[e>>24&15]+a[e>>20&15]+a[e>>16&15]+a[e>>12&15]+a[e>>8&15]+a[e>>4&15]+a[15&e]+a[r>>28&15]+a[r>>24&15]+a[r>>20&15]+a[r>>16&15]+a[r>>12&15]+a[r>>8&15]+a[r>>4&15]+a[15&r]+a[n>>28&15]+a[n>>24&15]+a[n>>20&15]+a[n>>16&15]+a[n>>12&15]+a[n>>8&15]+a[n>>4&15]+a[15&n];return w>=256&&(A+=a[o>>28&15]+a[o>>24&15]+a[o>>20&15]+a[o>>16&15]+a[o>>12&15]+a[o>>8&15]+a[o>>4&15]+a[15&o]),w>=384&&(A+=a[l>>28&15]+a[l>>24&15]+a[l>>20&15]+a[l>>16&15]+a[l>>12&15]+a[l>>8&15]+a[l>>4&15]+a[15&l]+a[f>>28&15]+a[f>>24&15]+a[f>>20&15]+a[f>>16&15]+a[f>>12&15]+a[f>>8&15]+a[f>>4&15]+a[15&f]+a[c>>28&15]+a[c>>24&15]+a[c>>20&15]+a[c>>16&15]+a[c>>12&15]+a[c>>8&15]+a[c>>4&15]+a[15&c]+a[u>>28&15]+a[u>>24&15]+a[u>>20&15]+a[u>>16&15]+a[u>>12&15]+a[u>>8&15]+a[u>>4&15]+a[15&u]),512==w&&(A+=a[y>>28&15]+a[y>>24&15]+a[y>>20&15]+a[y>>16&15]+a[y>>12&15]+a[y>>8&15]+a[y>>4&15]+a[15&y]+a[p>>28&15]+a[p>>24&15]+a[p>>20&15]+a[p>>16&15]+a[p>>12&15]+a[p>>8&15]+a[p>>4&15]+a[15&p]+a[d>>28&15]+a[d>>24&15]+a[d>>20&15]+a[d>>16&15]+a[d>>12&15]+a[d>>8&15]+a[d>>4&15]+a[15&d]+a[b>>28&15]+a[b>>24&15]+a[b>>20&15]+a[b>>16&15]+a[b>>12&15]+a[b>>8&15]+a[b>>4&15]+a[15&b]),A},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,a=this.h4h,l=this.h4l,f=this.h5h,c=this.h5l,u=this.h6h,y=this.h6l,p=this.h7h,d=this.h7l,b=this.bits,w=[h>>24&255,h>>16&255,h>>8&255,255&h,t>>24&255,t>>16&255,t>>8&255,255&t,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n];return b>=256&&w.push(o>>24&255,o>>16&255,o>>8&255,255&o),b>=384&&w.push(a>>24&255,a>>16&255,a>>8&255,255&a,l>>24&255,l>>16&255,l>>8&255,255&l,f>>24&255,f>>16&255,f>>8&255,255&f,c>>24&255,c>>16&255,c>>8&255,255&c),512==b&&w.push(u>>24&255,u>>16&255,u>>8&255,255&u,y>>24&255,y>>16&255,y>>8&255,255&y,p>>24&255,p>>16&255,p>>8&255,255&p,d>>24&255,d>>16&255,d>>8&255,255&d),w},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var h=this.bits,t=new ArrayBuffer(h/8),i=new DataView(t);return i.setUint32(0,this.h0h),i.setUint32(4,this.h0l),i.setUint32(8,this.h1h),i.setUint32(12,this.h1l),i.setUint32(16,this.h2h),i.setUint32(20,this.h2l),i.setUint32(24,this.h3h),h>=256&&i.setUint32(28,this.h3l),h>=384&&(i.setUint32(32,this.h4h),i.setUint32(36,this.h4l),i.setUint32(40,this.h5h),i.setUint32(44,this.h5l)),512==h&&(i.setUint32(48,this.h6h),i.setUint32(52,this.h6l),i.setUint32(56,this.h7h),i.setUint32(60,this.h7l)),t},A.prototype.clone=function(){var h=new A(this.bits,!1);return this.copyTo(h),h},A.prototype.copyTo=function(h){var t=0,i=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t<i.length;++t)h[i[t]]=this[i[t]];for(t=0;t<this.blocks.length;++t)h.blocks[t]=this.blocks[t]},v.prototype=new A,v.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var h=this.array();A.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(h),A.prototype.finalize.call(this)}},v.prototype.clone=function(){var h=new v([],this.bits,!1);this.copyTo(h),h.inner=this.inner;for(var t=0;t<this.oKeyPad.length;++t)h.oKeyPad[t]=this.oKeyPad[t];return h};var _=d(512);_.sha512=_,_.sha384=d(384),_.sha512_256=d(256),_.sha512_224=d(224),_.sha512.hmac=w(512),_.sha384.hmac=w(384),_.sha512_256.hmac=w(256),_.sha512_224.hmac=w(224),r?t.exports=_:(s.sha512=_.sha512,s.sha384=_.sha384,s.sha512_256=_.sha512_256,s.sha512_224=_.sha512_224,n&&define((function(){return _})))}()}))())}}}));
|
package/frontend/index.html
CHANGED
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
document.getElementById('root').innerHTML = 'Loading...'
|
|
26
26
|
</script>
|
|
27
27
|
<script crossorigin id="vite-legacy-polyfill" src="/assets/polyfills-legacy-uhvhjQSD.js"></script>
|
|
28
|
-
<script crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-
|
|
28
|
+
<script crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-Br-Lpsst.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
|
29
29
|
</body>
|
|
30
30
|
</html>
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hfs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0-alpha1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "hfs",
|
|
9
|
-
"version": "3.
|
|
9
|
+
"version": "3.3.0-alpha1",
|
|
10
10
|
"license": "GPL-3.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@gregoranders/csv": "^0.0.13",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"node_modules/@nodable/entities": {
|
|
60
|
-
"version": "
|
|
61
|
-
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-
|
|
62
|
-
"integrity": "sha512-
|
|
60
|
+
"version": "3.0.0",
|
|
61
|
+
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-3.0.0.tgz",
|
|
62
|
+
"integrity": "sha512-8L9xFeTYKhm49xfIypoe2W5wV1m/3Z58kT+7kR9A8OyFxcPduI4VmxaUMQyKYrRjUoLLSXv6EKKID5Tvj9cUVw==",
|
|
63
63
|
"funding": [
|
|
64
64
|
{
|
|
65
65
|
"type": "github",
|
|
@@ -844,9 +844,9 @@
|
|
|
844
844
|
}
|
|
845
845
|
},
|
|
846
846
|
"node_modules/fast-xml-parser": {
|
|
847
|
-
"version": "5.10.
|
|
848
|
-
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.10.
|
|
849
|
-
"integrity": "sha512-
|
|
847
|
+
"version": "5.10.1",
|
|
848
|
+
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.10.1.tgz",
|
|
849
|
+
"integrity": "sha512-IEMIf7298kXuZSRFoGfMYrl7is8LpavODgbNz1cwIudv7KwVFnuU+UsMporfq6PD6aXSlawZlARiA3UywCTfMw==",
|
|
850
850
|
"funding": [
|
|
851
851
|
{
|
|
852
852
|
"type": "github",
|
|
@@ -855,7 +855,7 @@
|
|
|
855
855
|
],
|
|
856
856
|
"license": "MIT",
|
|
857
857
|
"dependencies": {
|
|
858
|
-
"@nodable/entities": "^
|
|
858
|
+
"@nodable/entities": "^3.0.0",
|
|
859
859
|
"fast-xml-builder": "^1.2.0",
|
|
860
860
|
"is-unsafe": "^2.0.0",
|
|
861
861
|
"path-expression-matcher": "^1.6.2",
|
|
@@ -1504,12 +1504,16 @@
|
|
|
1504
1504
|
}
|
|
1505
1505
|
},
|
|
1506
1506
|
"node_modules/media-typer": {
|
|
1507
|
-
"version": "1.1.
|
|
1508
|
-
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.
|
|
1509
|
-
"integrity": "sha512-
|
|
1507
|
+
"version": "1.1.1",
|
|
1508
|
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz",
|
|
1509
|
+
"integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==",
|
|
1510
1510
|
"license": "MIT",
|
|
1511
1511
|
"engines": {
|
|
1512
1512
|
"node": ">= 0.8"
|
|
1513
|
+
},
|
|
1514
|
+
"funding": {
|
|
1515
|
+
"type": "opencollective",
|
|
1516
|
+
"url": "https://opencollective.com/express"
|
|
1513
1517
|
}
|
|
1514
1518
|
},
|
|
1515
1519
|
"node_modules/merge2": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hfs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0-alpha1",
|
|
4
4
|
"description": "HTTP File Server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"file server",
|
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
"build-server": "rm -rf dist/src dist/plugins && npm i && tsc && touch package.json && cp -v -r package.json central.json README* LICENSE* hfs.ico plugins dist && find dist -name .DS_Store -o -name storage -exec rm -rf {} + && node scripts/afterbuild.js",
|
|
20
20
|
"build-frontend": "npm run build --workspace=frontend",
|
|
21
21
|
"build-admin": "npm run build --workspace=admin",
|
|
22
|
-
"
|
|
23
|
-
"server-for-test
|
|
22
|
+
"prepare-test": "mkdir -p tests/work tests/tmp && cp tests/config.yaml tests/work/config.yaml && cp tests/alfa.txt tests/tmp/alfa.txt",
|
|
23
|
+
"server-for-test": "npm run prepare-test && node dist/src --cwd tests/work --config tests/work/config.yaml --debug",
|
|
24
|
+
"server-for-test-dev": "npm run prepare-test && cross-env DEV=1 FRONTEND_PROXY=3005 ADMIN_PROXY=3006 nodemon --ignore tests/ --watch src -e ts,tsx --exec tsx src -- --cwd tests/work --config tests",
|
|
24
25
|
"test": "sh -c 'npm run port-is-free >/dev/null && { echo \"no server\"; exit 1; }; node --import tsx --test \"$@\" tests/test.ts' --",
|
|
25
|
-
"test-with-server": "sh -c 'npm run port-is-free && tsc && rm -rf tests/work tests/tmp &&
|
|
26
|
+
"test-with-server": "sh -c 'npm run port-is-free && tsc && rm -rf tests/work tests/tmp && npm run prepare-test && (node dist/src --cwd tests/work --config tests/work/config.yaml & echo $! > .server_pid) && sleep 2 && node --import tsx --test \"$@\" tests/test.ts; _exit=$?; if [ -f ./.server_pid ]; then SERVER_PID=$(cat ./.server_pid); kill \"$SERVER_PID\" 2>/dev/null || true; rm -f ./.server_pid; fi; exit $_exit' --",
|
|
26
27
|
"port-is-free": "node -e \"const port=process.argv[1]||8081;process.exit(await fetch('http://localhost:'+port).then(() => console.log('BUSY')||1, () => 0))\" --",
|
|
27
|
-
"test-ui": "npm run port-is-free -- 8081 && rm -rf tests/work tests/work2 && npx playwright test frontend && npx playwright test serial && npx playwright test admin-vfs",
|
|
28
|
+
"test-ui": "npm run port-is-free -- 8081 && rm -rf tests/work tests/work2 tests/tmp && npx playwright test frontend && npx playwright test serial && npx playwright test admin-vfs",
|
|
28
29
|
"test-with-ui": "sh -c 'npm run port-is-free -- 3005 && npm run start-frontend & npm run port-is-free -- 3006 && npm run start-admin & cross-env TEST_WITH_UI=1 npx playwright test --ui \"$@\"' --",
|
|
29
30
|
"pub": "cd dist && npm publish",
|
|
30
31
|
"dist": "STASHED=; STASH_BEFORE=$(git rev-parse -q --verify refs/stash || true); git update-index -q --refresh; if ! git diff-index --quiet HEAD --; then git stash push -m 'dist' || exit $?; STASH_AFTER=$(git rev-parse -q --verify refs/stash || true); [ \"$STASH_AFTER\" != \"$STASH_BEFORE\" ] && STASHED=1; fi; npm audit --omit=dev --audit-level=moderate && CI=1 FORCE_COLOR=1 npm run dist-uncommitted; EXIT_CODE=$?; if [ -n \"$STASHED\" ]; then git stash pop || exit $?; fi; exit $EXIT_CODE",
|
package/src/AsapStream.js
CHANGED
|
@@ -6,34 +6,30 @@ const cross_1 = require("./cross");
|
|
|
6
6
|
// produces as promises resolve, not sequentially
|
|
7
7
|
class AsapStream extends stream_1.Readable {
|
|
8
8
|
promises;
|
|
9
|
-
|
|
9
|
+
readingStarted = false;
|
|
10
10
|
constructor(promises) {
|
|
11
11
|
super({ objectMode: true });
|
|
12
12
|
this.promises = promises;
|
|
13
13
|
}
|
|
14
14
|
_read() {
|
|
15
|
-
if (this.
|
|
15
|
+
if (this.readingStarted)
|
|
16
16
|
return;
|
|
17
|
-
this.
|
|
17
|
+
this.readingStarted = true;
|
|
18
|
+
// local function below has its own this
|
|
19
|
+
const stream = this;
|
|
18
20
|
void (async () => {
|
|
19
21
|
const pending = [];
|
|
20
22
|
try {
|
|
21
|
-
if ((0, cross_1.isAsyncIterable)(this.promises))
|
|
23
|
+
if (!(0, cross_1.isAsyncIterable)(this.promises))
|
|
24
|
+
for (const p of this.promises)
|
|
25
|
+
track(p);
|
|
26
|
+
else {
|
|
22
27
|
const iterator = this.promises[Symbol.asyncIterator]();
|
|
23
28
|
while (true) {
|
|
24
29
|
const { value, done } = await iterator.next();
|
|
25
30
|
if (done)
|
|
26
31
|
break;
|
|
27
|
-
|
|
28
|
-
pending.push(promise);
|
|
29
|
-
promise.then(x => x !== undefined && this.push(x), e => this.emit('error', e));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
for (const p of this.promises) {
|
|
34
|
-
const promise = Promise.resolve(p);
|
|
35
|
-
pending.push(promise);
|
|
36
|
-
promise.then(x => x !== undefined && this.push(x), e => this.emit('error', e));
|
|
32
|
+
track(value);
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
35
|
await Promise.allSettled(pending);
|
|
@@ -43,6 +39,14 @@ class AsapStream extends stream_1.Readable {
|
|
|
43
39
|
this.emit('error', e);
|
|
44
40
|
this.push(null);
|
|
45
41
|
}
|
|
42
|
+
function track(p) {
|
|
43
|
+
const promise = Promise.resolve(p);
|
|
44
|
+
pending.push(promise);
|
|
45
|
+
promise.then(x => {
|
|
46
|
+
if (x !== undefined)
|
|
47
|
+
stream.push(x);
|
|
48
|
+
}, e => stream.emit('error', e));
|
|
49
|
+
}
|
|
46
50
|
})();
|
|
47
51
|
}
|
|
48
52
|
}
|
package/src/SendList.js
CHANGED
|
@@ -14,20 +14,22 @@ class SendListReadable extends stream_1.Readable {
|
|
|
14
14
|
buffer = [];
|
|
15
15
|
processBuffer;
|
|
16
16
|
sent;
|
|
17
|
-
constructor({ addAtStart, doAtStart, bufferTime, onEnd, diff } = {}) {
|
|
17
|
+
constructor({ addAtStart, doAtStart, bufferTime = 200, onEnd, diff } = {}) {
|
|
18
18
|
super({ objectMode: true, read() { } });
|
|
19
|
-
if (!bufferTime)
|
|
20
|
-
bufferTime = 200;
|
|
21
19
|
if (diff)
|
|
22
20
|
this.sent = [];
|
|
23
21
|
this.processBuffer = lodash_1.default.debounce(() => {
|
|
24
22
|
const { sent } = this;
|
|
25
23
|
if (sent)
|
|
26
24
|
this.buffer = this.buffer.filter(([cmd, a, b]) => {
|
|
27
|
-
if (cmd === cross_1.LIST.add)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
if (cmd === cross_1.LIST.add) {
|
|
26
|
+
sent.push(...(0, cross_1.wantArray)(a));
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
if (cmd === cross_1.LIST.remove) {
|
|
30
|
+
lodash_1.default.remove(sent, a);
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
31
33
|
if (cmd !== cross_1.LIST.update)
|
|
32
34
|
return true;
|
|
33
35
|
const found = lodash_1.default.find(sent, a);
|
|
@@ -38,7 +40,7 @@ class SendListReadable extends stream_1.Readable {
|
|
|
38
40
|
delete b[k];
|
|
39
41
|
else {
|
|
40
42
|
found[k] = b[k];
|
|
41
|
-
b[k] ??= null; //
|
|
43
|
+
b[k] ??= null; // undefined is omitted by JSON, so replace it with null; null tells the client to delete the property
|
|
42
44
|
}
|
|
43
45
|
return !lodash_1.default.isEmpty(b);
|
|
44
46
|
});
|
|
@@ -58,7 +60,7 @@ class SendListReadable extends stream_1.Readable {
|
|
|
58
60
|
this.ready();
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
|
-
|
|
63
|
+
queue(rec) {
|
|
62
64
|
this.buffer.push(rec);
|
|
63
65
|
if (this.buffer.length > 10_000) // hard limit
|
|
64
66
|
this.processBuffer.flush();
|
|
@@ -66,7 +68,7 @@ class SendListReadable extends stream_1.Readable {
|
|
|
66
68
|
this.processBuffer();
|
|
67
69
|
}
|
|
68
70
|
add(rec) {
|
|
69
|
-
this.
|
|
71
|
+
this.queue([cross_1.LIST.add, rec]);
|
|
70
72
|
}
|
|
71
73
|
remove(search) {
|
|
72
74
|
const match = lodash_1.default.matches(search);
|
|
@@ -80,7 +82,7 @@ class SendListReadable extends stream_1.Readable {
|
|
|
80
82
|
if (op === cross_1.LIST.add)
|
|
81
83
|
return; // assuming this never reached the client
|
|
82
84
|
}
|
|
83
|
-
this.
|
|
85
|
+
this.queue([cross_1.LIST.remove, search]);
|
|
84
86
|
}
|
|
85
87
|
update(search, change) {
|
|
86
88
|
if (lodash_1.default.isEmpty(change))
|
|
@@ -92,19 +94,19 @@ class SendListReadable extends stream_1.Readable {
|
|
|
92
94
|
return;
|
|
93
95
|
if (op === cross_1.LIST.add || op === cross_1.LIST.update)
|
|
94
96
|
return Object.assign(found[op === cross_1.LIST.add ? 1 : 2], change);
|
|
95
|
-
this.
|
|
97
|
+
this.queue([cross_1.LIST.update, search, change]);
|
|
96
98
|
}
|
|
97
99
|
ready() {
|
|
98
|
-
this.
|
|
100
|
+
this.queue([cross_1.LIST.ready]);
|
|
99
101
|
}
|
|
100
102
|
custom(name, data) {
|
|
101
|
-
this.
|
|
103
|
+
this.queue(data === undefined ? [name] : [name, data]);
|
|
102
104
|
}
|
|
103
105
|
props(props) {
|
|
104
|
-
this.
|
|
106
|
+
this.queue([cross_1.LIST.props, props]);
|
|
105
107
|
}
|
|
106
108
|
error(msg, close = false, props) {
|
|
107
|
-
this.
|
|
109
|
+
this.queue([cross_1.LIST.error, msg, props]);
|
|
108
110
|
this.lastError = msg;
|
|
109
111
|
if (close)
|
|
110
112
|
this.close();
|
|
@@ -120,6 +122,30 @@ class SendListReadable extends stream_1.Readable {
|
|
|
120
122
|
ctx.res.once('close', events_1.default.multi(eventMap, options));
|
|
121
123
|
return this;
|
|
122
124
|
}
|
|
125
|
+
async collectInitial() {
|
|
126
|
+
const list = [];
|
|
127
|
+
let props = {};
|
|
128
|
+
let error;
|
|
129
|
+
for await (const messages of this)
|
|
130
|
+
for (const [op, a, b] of messages) {
|
|
131
|
+
if (op === cross_1.LIST.add)
|
|
132
|
+
list.push(...(0, cross_1.wantArray)(a));
|
|
133
|
+
else if (op === cross_1.LIST.remove)
|
|
134
|
+
lodash_1.default.remove(list, a);
|
|
135
|
+
else if (op === cross_1.LIST.update)
|
|
136
|
+
Object.assign(lodash_1.default.find(list, a) || {}, b);
|
|
137
|
+
else if (op === cross_1.LIST.props)
|
|
138
|
+
Object.assign(props, a);
|
|
139
|
+
else if (op === cross_1.LIST.error)
|
|
140
|
+
error = a;
|
|
141
|
+
else if (op === cross_1.LIST.ready) // ready ends the initial snapshot; live updates require SSE
|
|
142
|
+
return result();
|
|
143
|
+
}
|
|
144
|
+
return result();
|
|
145
|
+
function result() {
|
|
146
|
+
return { ...props, list, ...(error === undefined ? {} : { error }) };
|
|
147
|
+
}
|
|
148
|
+
}
|
|
123
149
|
isClosed() {
|
|
124
150
|
return this.destroyed;
|
|
125
151
|
}
|
package/src/ThrottledStream.js
CHANGED
|
@@ -21,7 +21,7 @@ class ThrottledStream extends stream_1.Transform {
|
|
|
21
21
|
this.lastSpeedTime = copyStats.lastSpeedTime;
|
|
22
22
|
this.lastSpeed = copyStats.lastSpeed;
|
|
23
23
|
}
|
|
24
|
-
async _transform(chunk,
|
|
24
|
+
async _transform(chunk, _encoding, done) {
|
|
25
25
|
let pos = 0;
|
|
26
26
|
while (1) {
|
|
27
27
|
let n = this.group.suggestChunkSize();
|
|
@@ -82,11 +82,11 @@ class ThrottleGroup {
|
|
|
82
82
|
}
|
|
83
83
|
suggestChunkSize() {
|
|
84
84
|
let b = this.bucket;
|
|
85
|
-
b.parentBucket = this.parent?.bucket;
|
|
85
|
+
b.parentBucket = this.parent?.bucket; // updateLimit replaces buckets, so reconnect this bucket to the latest parent
|
|
86
86
|
let min = b.bucketSize;
|
|
87
87
|
while (b = b.parentBucket)
|
|
88
88
|
min = Math.min(min, b.bucketSize);
|
|
89
|
-
return min / 10;
|
|
89
|
+
return min / 10; // tenth-second chunks keep pacing responsive within the smallest bucket
|
|
90
90
|
}
|
|
91
91
|
consume(n) {
|
|
92
92
|
return this.bucket.removeTokens(n);
|
package/src/acme.js
CHANGED
|
@@ -15,6 +15,7 @@ const promises_1 = __importDefault(require("fs/promises"));
|
|
|
15
15
|
const config_1 = require("./config");
|
|
16
16
|
const events_1 = __importDefault(require("./events"));
|
|
17
17
|
const selfCheck_1 = require("./selfCheck");
|
|
18
|
+
const net_1 = require("net");
|
|
18
19
|
let acmeOngoing = false;
|
|
19
20
|
const acmeTokens = {};
|
|
20
21
|
const acmeListener = (req, res) => {
|
|
@@ -48,7 +49,8 @@ const TEMP_MAP = (0, nat_1.upnpMappingParam)(80, 80, 'hfs temporary', 5000); //
|
|
|
48
49
|
stop();
|
|
49
50
|
return client.removeMapping(TEMP_MAP);
|
|
50
51
|
});
|
|
51
|
-
async function generateSSLCert(domain, email, altNames) {
|
|
52
|
+
async function generateSSLCert(domain, email, altNames = []) {
|
|
53
|
+
const ipCertificate = [domain, ...altNames].some(net_1.isIP);
|
|
52
54
|
// will answer the challenge through our koa app (if on port 80) or must we spawn a dedicated server?
|
|
53
55
|
const nat = await (0, nat_1.getNatInfo)();
|
|
54
56
|
const { http } = await (0, listen_1.getServerStatus)();
|
|
@@ -63,7 +65,7 @@ async function generateSSLCert(domain, email, altNames) {
|
|
|
63
65
|
console.debug("ACME challenge server ready");
|
|
64
66
|
let tempMap;
|
|
65
67
|
try {
|
|
66
|
-
const checkUrl = `http://${
|
|
68
|
+
const checkUrl = `http://${(0, misc_1.ipForUrl)(domain)}`;
|
|
67
69
|
let check = await (0, selfCheck_1.selfCheck)(checkUrl); // some check services may not consider the domain, but we already verified that
|
|
68
70
|
if (check?.success === false && nat.upnp && !nat.mapped80) {
|
|
69
71
|
console.debug("Setting temporary port forward");
|
|
@@ -77,8 +79,19 @@ async function generateSSLCert(domain, email, altNames) {
|
|
|
77
79
|
accountKey: await acme_client_1.default.crypto.createPrivateKey(),
|
|
78
80
|
directoryUrl: acme_client_1.default.directory.letsencrypt.production
|
|
79
81
|
});
|
|
82
|
+
if (ipCertificate) {
|
|
83
|
+
const original = acmeClient.createOrder.bind(acmeClient);
|
|
84
|
+
acmeClient.createOrder = order => original({
|
|
85
|
+
...order, // acme-client auto() hardcodes every order identifier as DNS and cannot select the profile required for IP certificates
|
|
86
|
+
profile: 'shortlived',
|
|
87
|
+
identifiers: order.identifiers.map(({ value }) => ({ value, type: (0, net_1.isIP)(value) ? 'ip' : 'dns' }))
|
|
88
|
+
}); // profile key is not declared in types, but is needed for letsencrypt
|
|
89
|
+
}
|
|
80
90
|
acme_client_1.default.setLogger(console.debug);
|
|
81
|
-
const [key, csr] = await acme_client_1.default.crypto.createCsr({
|
|
91
|
+
const [key, csr] = await acme_client_1.default.crypto.createCsr({
|
|
92
|
+
commonName: (0, net_1.isIP)(domain) ? undefined : domain, // rejected because Boulder doesn't accept IP addresses in the Common Name
|
|
93
|
+
altNames: [domain, ...altNames],
|
|
94
|
+
});
|
|
82
95
|
const cert = await acmeClient.auto({
|
|
83
96
|
csr,
|
|
84
97
|
email,
|
|
@@ -103,8 +116,6 @@ async function generateSSLCert(domain, email, altNames) {
|
|
|
103
116
|
}
|
|
104
117
|
}
|
|
105
118
|
exports.makeCert = (0, debounceAsync_1.debounceAsync)(async (domain, email, altNames) => {
|
|
106
|
-
if (!domain)
|
|
107
|
-
return new apiMiddleware_1.ApiError(misc_1.HTTP_BAD_REQUEST, 'bad params');
|
|
108
119
|
const res = await generateSSLCert(domain, email, altNames).catch(e => {
|
|
109
120
|
throw e.message?.includes('Timeout') ? Error("ensure your router is forwarding port 80 correctly")
|
|
110
121
|
: e.message?.includes('not match this challenge') ? Error("a different server is responding on port 80 of your domain(s)")
|
|
@@ -119,8 +130,8 @@ exports.makeCert = (0, debounceAsync_1.debounceAsync)(async (domain, email, altN
|
|
|
119
130
|
exports.acmeRenewError = '';
|
|
120
131
|
});
|
|
121
132
|
exports.acmeRenewError = '';
|
|
122
|
-
const acmeDomain = (0, config_1.defineConfig)(
|
|
123
|
-
const acmeRenew = (0, config_1.defineConfig)(
|
|
133
|
+
const acmeDomain = (0, config_1.defineConfig)(misc_1.CFG.acme_domain, '');
|
|
134
|
+
const acmeRenew = (0, config_1.defineConfig)(misc_1.CFG.acme_renew, false); // handle config changes
|
|
124
135
|
events_1.default.once('httpsReady', () => (0, misc_1.repeat)(misc_1.HOUR, renewCert));
|
|
125
136
|
// checks if the cert is near expiration date, and if so renews it
|
|
126
137
|
const renewCert = (0, debounceAsync_1.debounceAsync)(async () => {
|
|
@@ -131,10 +142,12 @@ const renewCert = (0, debounceAsync_1.debounceAsync)(async () => {
|
|
|
131
142
|
if (!cert)
|
|
132
143
|
return;
|
|
133
144
|
const now = new Date();
|
|
145
|
+
const validFrom = new Date(cert.validFrom);
|
|
134
146
|
const validTo = new Date(cert.validTo);
|
|
135
|
-
//
|
|
136
|
-
|
|
147
|
+
// renew during the final third, adapting automatically to short-lived certificates
|
|
148
|
+
const renewBefore = (validTo.getTime() - validFrom.getTime()) / 3;
|
|
149
|
+
if (now > validFrom && now < validTo && validTo.getTime() - now.getTime() >= renewBefore)
|
|
137
150
|
return console.log("Certificate still good");
|
|
138
151
|
await (0, exports.makeCert)(domain, undefined, altNames)
|
|
139
152
|
.catch(e => console.log(exports.acmeRenewError = `Error renewing certificate, expiring ${(0, misc_1.formatDate)(validTo)}: ${String(e.message || e)}`));
|
|
140
|
-
}, { retain: misc_1.
|
|
153
|
+
}, { retain: misc_1.HOUR }); // short-lived certificates leave a renew window of just 2 days, and a failed renew is retained as a success here
|